@qitqode/qitqode-android-arm64 0.2.13 → 0.2.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bun +2 -2
- package/bundle/{chunk-9c0f79mt.js → chunk-00ft63qn.js} +1 -1
- package/bundle/{chunk-vr7525pa.js → chunk-02tmc2st.js} +1 -1
- package/bundle/{chunk-ewde5bss.js → chunk-06tgmvh6.js} +2 -2
- package/bundle/{chunk-wqm1vawg.js → chunk-0ejx0yqx.js} +1 -1
- package/bundle/{chunk-2md5fz4f.js → chunk-0m4gvjcv.js} +2 -2
- package/bundle/{chunk-jf4zyy7r.js → chunk-0mztgsxp.js} +1 -1
- package/bundle/{chunk-7bvh48s2.js → chunk-10kj86va.js} +1 -1
- package/bundle/{chunk-b46t2315.js → chunk-10q04xh5.js} +1 -1
- package/bundle/{chunk-dwjv3m5s.js → chunk-175720ws.js} +2 -2
- package/bundle/{chunk-xgphhnpk.js → chunk-19rs84t8.js} +1 -1
- package/bundle/{chunk-hsmtjb4d.js → chunk-1bq15kf0.js} +2 -2
- package/bundle/{chunk-1sejtx9a.js → chunk-1e75j4m1.js} +2 -2
- package/bundle/{chunk-dmgdwvn1.js → chunk-1pft3sar.js} +1 -1
- package/bundle/chunk-1r7anzk5.js +2 -0
- package/bundle/{chunk-rr94dpe9.js → chunk-1ypzf18e.js} +1 -1
- package/bundle/{chunk-q7wc3frq.js → chunk-2d61z24r.js} +1 -1
- package/bundle/{chunk-r9hsd9pw.js → chunk-2fged9vy.js} +1 -1
- package/bundle/chunk-2jzay8a9.js +2 -0
- package/bundle/{chunk-5828bcp8.js → chunk-2k2szpze.js} +1 -1
- package/bundle/{chunk-2p1qaqv3.js → chunk-2pw56zpj.js} +2 -2
- package/bundle/{chunk-yzxcjr6y.js → chunk-2tkgtasa.js} +2 -2
- package/bundle/{chunk-jrh028na.js → chunk-2w3n0q9m.js} +2 -2
- package/bundle/chunk-30rghawe.js +2 -0
- package/bundle/{chunk-jt94rhev.js → chunk-3152y1q9.js} +1 -1
- package/bundle/{chunk-1851skhm.js → chunk-31a47ptm.js} +1 -1
- package/bundle/chunk-33mzqyyb.js +3 -0
- package/bundle/{chunk-fqzfytjk.js → chunk-3c73rngn.js} +1 -1
- package/bundle/{chunk-wspm2k19.js → chunk-3cs1qf8x.js} +1 -1
- package/bundle/chunk-3dajnr1w.js +2 -0
- package/bundle/chunk-3ege6krg.js +2 -0
- package/bundle/chunk-43vpxggb.js +2 -0
- package/bundle/{chunk-hcd0k14e.js → chunk-48rg4yhk.js} +2 -2
- package/bundle/chunk-49y7zg15.js +2 -0
- package/bundle/{chunk-etvwxwn3.js → chunk-4b56k59w.js} +1 -1
- package/bundle/{chunk-aq75kv5f.js → chunk-4gzggzc0.js} +3 -3
- package/bundle/{chunk-rqdfmbns.js → chunk-4jfnhghx.js} +2 -2
- package/bundle/{chunk-g6ffx794.js → chunk-4ppw719f.js} +1 -1
- package/bundle/{chunk-g0x6q2ks.js → chunk-4r7fbkcm.js} +1 -1
- package/bundle/{chunk-5fbzvy6q.js → chunk-4s1n38ds.js} +2 -2
- package/bundle/{chunk-z6qb4gt5.js → chunk-4v29ayke.js} +1 -1
- package/bundle/{chunk-qa38xchd.js → chunk-4xcwnwd6.js} +1 -1
- package/bundle/{chunk-gvc1mqrs.js → chunk-4xqwt6dr.js} +2 -2
- package/bundle/{chunk-1bhcg889.js → chunk-4ycg2c6f.js} +2 -2
- package/bundle/{chunk-3be70hxy.js → chunk-4yd2vvh6.js} +1 -1
- package/bundle/{chunk-pzn7cade.js → chunk-5341jv20.js} +1 -1
- package/bundle/{chunk-z4gczap3.js → chunk-5asf8f41.js} +72 -72
- package/bundle/{chunk-z6f54x4k.js → chunk-5cwy8y78.js} +2 -2
- package/bundle/{chunk-6g3bzap8.js → chunk-5dvy83ms.js} +2 -2
- package/bundle/{chunk-ff031crt.js → chunk-5h1s0akp.js} +1 -1
- package/bundle/{chunk-tn0sfsks.js → chunk-5mf4qrye.js} +2 -2
- package/bundle/{chunk-0mdmqtfr.js → chunk-5q98z8ck.js} +2 -2
- package/bundle/chunk-5qhsfjzq.js +3 -0
- package/bundle/chunk-5re7995e.js +2 -0
- package/bundle/{chunk-y9kjt2jj.js → chunk-5rvvfgfy.js} +2 -2
- package/bundle/chunk-5xxn06g0.js +2 -0
- package/bundle/{chunk-2d0vympj.js → chunk-61b81z2h.js} +1 -1
- package/bundle/{chunk-4enhsmq1.js → chunk-62gefpwn.js} +2 -2
- package/bundle/{chunk-2h8b0csf.js → chunk-674pexjx.js} +2 -2
- package/bundle/{chunk-4ar8hey8.js → chunk-69htq8kq.js} +1 -1
- package/bundle/{chunk-h1p3xcfp.js → chunk-69k7cdtv.js} +2 -2
- package/bundle/{chunk-53n3tfwn.js → chunk-6cztstry.js} +2 -2
- package/bundle/{chunk-vqxyk6as.js → chunk-6dd2dx69.js} +2 -2
- package/bundle/{chunk-eftk07r3.js → chunk-6j53vtzd.js} +1 -1
- package/bundle/chunk-6k0y2332.js +2 -0
- package/bundle/{chunk-sn15skh8.js → chunk-6pt6nqwk.js} +1 -1
- package/bundle/{chunk-6wt8g6mc.js → chunk-6qwnty59.js} +2 -2
- package/bundle/{chunk-vvmvryh1.js → chunk-6yshpz0z.js} +2 -2
- package/bundle/{chunk-cv3xdp8q.js → chunk-6zdzbmzs.js} +394 -323
- package/bundle/{chunk-2ts2s8b4.js → chunk-71jmhvef.js} +2 -2
- package/bundle/{chunk-9xbc558j.js → chunk-73a7ts8r.js} +1 -1
- package/bundle/{chunk-sv27ep93.js → chunk-76wm7tw8.js} +2 -2
- package/bundle/chunk-7cp30q0t.js +2 -0
- package/bundle/chunk-7t63wz2f.js +2 -0
- package/bundle/{chunk-v30fmrz0.js → chunk-7w571q26.js} +1 -1
- package/bundle/{chunk-fbd971t7.js → chunk-83n11xym.js} +3 -3
- package/bundle/{chunk-m18pxkdg.js → chunk-840mmmzz.js} +4 -4
- package/bundle/{chunk-jcn8bg31.js → chunk-86reb44c.js} +1 -1
- package/bundle/{chunk-hnbtfpb7.js → chunk-86sfzgnf.js} +1 -1
- package/bundle/{chunk-4krmja97.js → chunk-878sb0es.js} +2 -2
- package/bundle/{chunk-v9yxkbz7.js → chunk-8a9sj8gp.js} +1 -1
- package/bundle/{chunk-0cjp9088.js → chunk-8gkz5550.js} +1 -1
- package/bundle/chunk-8gz8fk6r.js +2 -0
- package/bundle/chunk-8ht7cq3h.js +2 -0
- package/bundle/{chunk-msbe5rb7.js → chunk-8mqcar7f.js} +1 -1
- package/bundle/{chunk-3rcfy8te.js → chunk-8qpfphdz.js} +1 -1
- package/bundle/chunk-8qv0119d.js +2 -0
- package/bundle/{chunk-t1hw67x4.js → chunk-8zpsgfb6.js} +1 -1
- package/bundle/{chunk-c99npyz9.js → chunk-96sra8g8.js} +1 -1
- package/bundle/{chunk-nn2hbew8.js → chunk-99df6wvm.js} +1 -1
- package/bundle/{chunk-5wjwzbk8.js → chunk-9amnqaeq.js} +1 -1
- package/bundle/{chunk-hk8m8vax.js → chunk-9kc2th5c.js} +2 -2
- package/bundle/chunk-9m0eawt5.js +2 -0
- package/bundle/{chunk-fj87htwn.js → chunk-9mabvb06.js} +1 -1
- package/bundle/{chunk-xn6mwsc9.js → chunk-9ttebtcf.js} +1 -1
- package/bundle/{chunk-mfg4stzn.js → chunk-a1mbach4.js} +1 -1
- package/bundle/chunk-a32y70fe.js +2 -0
- package/bundle/{chunk-hgcnzsd5.js → chunk-a3g8de96.js} +1 -1
- package/bundle/{chunk-bydaqb08.js → chunk-a8askx4y.js} +1 -1
- package/bundle/{chunk-gcpwm7b5.js → chunk-adws0hhk.js} +2 -2
- package/bundle/{chunk-08mgb5tt.js → chunk-ae1b15bd.js} +12 -10
- package/bundle/{chunk-y5m9c5ek.js → chunk-ahgb3r1c.js} +2 -2
- package/bundle/chunk-apneazwv.js +2 -0
- package/bundle/{chunk-6p848y99.js → chunk-art8gejd.js} +1 -1
- package/bundle/{chunk-eh73j82b.js → chunk-avksqxan.js} +1 -1
- package/bundle/chunk-aw5yv01t.js +2 -0
- package/bundle/chunk-az12tp53.js +2 -0
- package/bundle/{chunk-gjmxrz0v.js → chunk-b350g18y.js} +2 -2
- package/bundle/chunk-b5dpzcc7.js +2 -0
- package/bundle/{chunk-c1srcpfk.js → chunk-b6m5tr80.js} +1 -1
- package/bundle/chunk-baq0wk3q.js +2 -0
- package/bundle/chunk-bcgtqx3g.js +2 -0
- package/bundle/{chunk-0w77vhg4.js → chunk-bdcd2mcb.js} +2 -2
- package/bundle/chunk-bde5d507.js +2 -0
- package/bundle/{chunk-139qfnsq.js → chunk-bemyyen3.js} +1 -1
- package/bundle/{chunk-1bbx1da7.js → chunk-bmdqb48f.js} +1 -1
- package/bundle/{chunk-bpv378bm.js → chunk-bq6cvf16.js} +2 -2
- package/bundle/{chunk-t66gerft.js → chunk-bxnsrggq.js} +1 -1
- package/bundle/{chunk-2b80n6nx.js → chunk-bzh71a92.js} +1 -1
- package/bundle/chunk-bzzggc3s.js +2 -0
- package/bundle/{chunk-2bfq0mtx.js → chunk-c1wc4b5q.js} +1 -1
- package/bundle/{chunk-78rfz0ex.js → chunk-c5cyt23k.js} +2 -2
- package/bundle/chunk-c8qx439t.js +2 -0
- package/bundle/{chunk-t1e52h0k.js → chunk-ch7s512a.js} +1 -1
- package/bundle/chunk-ckw51fn6.js +2 -0
- package/bundle/{chunk-1rafe6f5.js → chunk-crqycrs4.js} +2 -2
- package/bundle/{chunk-bd4krah7.js → chunk-csy1v12x.js} +1 -1
- package/bundle/{chunk-z2cnd2cp.js → chunk-d10qre1b.js} +1 -1
- package/bundle/{chunk-v6djkm35.js → chunk-d385e2qt.js} +1 -1
- package/bundle/{chunk-paqy0c2v.js → chunk-d4faz5xa.js} +1 -1
- package/bundle/{chunk-8xbd0ra5.js → chunk-d7h1dp0h.js} +1 -1
- package/bundle/chunk-denp0wrq.js +2 -0
- package/bundle/chunk-depxzjer.js +2 -0
- package/bundle/chunk-dhvqpcf3.js +2 -0
- package/bundle/{chunk-gdawpkxs.js → chunk-djdfpezf.js} +1 -1
- package/bundle/chunk-dkqqswbv.js +2 -0
- package/bundle/{chunk-e4658j15.js → chunk-dmb0ez0m.js} +3 -3
- package/bundle/chunk-dpbm03yh.js +2 -0
- package/bundle/{chunk-es6vbsjg.js → chunk-dvp0r93q.js} +1 -1
- package/bundle/{chunk-374js0y6.js → chunk-e18hshcg.js} +1 -1
- package/bundle/{chunk-5rtsnnjk.js → chunk-e37gd3p2.js} +1 -1
- package/bundle/chunk-e5t7jsxa.js +2 -0
- package/bundle/{chunk-wac35a6p.js → chunk-e611m0p4.js} +1 -1
- package/bundle/chunk-eb811dt2.js +2 -0
- package/bundle/{chunk-95ga21eq.js → chunk-edvfqxfr.js} +1 -1
- package/bundle/{chunk-yhe5qz48.js → chunk-ej0yzstw.js} +2 -2
- package/bundle/{chunk-7p8f8xav.js → chunk-ep4drmt9.js} +1 -1
- package/bundle/{chunk-xaewye8w.js → chunk-eqsank84.js} +1 -1
- package/bundle/{chunk-84712kbe.js → chunk-estc7tzt.js} +2 -2
- package/bundle/{chunk-s7ypkpg2.js → chunk-et3tgx7t.js} +1 -1
- package/bundle/{chunk-trg0zg0q.js → chunk-f0dp1tf9.js} +1 -1
- package/bundle/{chunk-z1psybn1.js → chunk-f0x3q5dj.js} +2 -2
- package/bundle/chunk-fbz2xv2w.js +2 -0
- package/bundle/{chunk-mbma071k.js → chunk-fdmz0502.js} +2 -2
- package/bundle/{chunk-mrh5q4s6.js → chunk-ffx0cr44.js} +2 -2
- package/bundle/{chunk-e6s8ep9m.js → chunk-ffyj5nsg.js} +2 -2
- package/bundle/chunk-ffynh19k.js +2 -0
- package/bundle/chunk-fgr9xshx.js +2 -0
- package/bundle/{chunk-9a9qcvtz.js → chunk-fkq0v5qv.js} +2 -2
- package/bundle/{chunk-mp5m0acf.js → chunk-fmcg649e.js} +1 -1
- package/bundle/{chunk-g3y5kvg6.js → chunk-fp2xgnjn.js} +2 -2
- package/bundle/{chunk-rwt0rwvn.js → chunk-fswt9qc0.js} +2 -2
- package/bundle/{chunk-1exjy880.js → chunk-g77kddrs.js} +2 -2
- package/bundle/chunk-gbvcb4k1.js +2 -0
- package/bundle/{chunk-mgff8bcx.js → chunk-gd0j16gn.js} +1 -1
- package/bundle/chunk-gdtnqzbp.js +2 -0
- package/bundle/{chunk-hrfdrz36.js → chunk-gfvq78gy.js} +1 -1
- package/bundle/chunk-gkfvhh28.js +2 -0
- package/bundle/chunk-gvx5hmhk.js +2 -0
- package/bundle/chunk-gww6abk3.js +2 -0
- package/bundle/{chunk-1f9qcrn6.js → chunk-h036zy9e.js} +2 -2
- package/bundle/{chunk-71naz1qp.js → chunk-h6b5966p.js} +1 -1
- package/bundle/{chunk-zhddj91f.js → chunk-hf39qx6t.js} +2 -2
- package/bundle/chunk-hham7r33.js +2 -0
- package/bundle/chunk-hmm0gj34.js +3 -0
- package/bundle/{chunk-404ew3d3.js → chunk-hmmn62jg.js} +1 -1
- package/bundle/{chunk-map852em.js → chunk-hrcqbadm.js} +1 -1
- package/bundle/chunk-hsjbe5zy.js +2 -0
- package/bundle/{chunk-04x4b2yy.js → chunk-j15wejz0.js} +1 -1
- package/bundle/{chunk-5es19n1m.js → chunk-j2snkw45.js} +2 -2
- package/bundle/{chunk-z66xdxkg.js → chunk-j3agzs13.js} +2 -2
- package/bundle/{chunk-4wzv2v36.js → chunk-j45p2v4a.js} +3 -3
- package/bundle/{chunk-094m66q5.js → chunk-j46bxb1b.js} +1 -1
- package/bundle/chunk-j89sv999.js +2 -0
- package/bundle/{chunk-1gt6ppza.js → chunk-k0chq88p.js} +1 -1
- package/bundle/{chunk-81mwbcy3.js → chunk-k4wfq9cn.js} +2 -2
- package/bundle/{chunk-8t17w67q.js → chunk-k769v1ds.js} +1 -1
- package/bundle/{chunk-rf9pjbg3.js → chunk-k8dbc1p5.js} +1 -1
- package/bundle/chunk-k9b4005p.js +2 -0
- package/bundle/{chunk-xgdst5n5.js → chunk-kegvr7wt.js} +2 -2
- package/bundle/chunk-kht2kwam.js +2 -0
- package/bundle/{chunk-h2vtypa5.js → chunk-knqpyc7s.js} +1 -1
- package/bundle/{chunk-8hrt4d0v.js → chunk-ky3fhz9z.js} +1 -1
- package/bundle/chunk-kzkb4648.js +2 -0
- package/bundle/chunk-m2540waa.js +2 -0
- package/bundle/{chunk-hp9q7vvq.js → chunk-m6967jtv.js} +2 -2
- package/bundle/{chunk-7h0regqs.js → chunk-m8kjtp60.js} +1 -1
- package/bundle/{chunk-q65qzc9w.js → chunk-mbmaeq0a.js} +1 -1
- package/bundle/chunk-mdxtt9wv.js +8 -0
- package/bundle/{chunk-anm5g0m4.js → chunk-meehnnv9.js} +2 -2
- package/bundle/{chunk-k3x6z5q1.js → chunk-mjkwd1sz.js} +1 -1
- package/bundle/{chunk-dpm5x19e.js → chunk-mnjz8nqs.js} +2 -2
- package/bundle/{chunk-e0w082wt.js → chunk-mq3w4z8k.js} +184 -184
- package/bundle/chunk-mreacz8r.js +2 -0
- package/bundle/chunk-mscvm1rm.js +2 -0
- package/bundle/chunk-mw3hh526.js +2 -0
- package/bundle/chunk-n3nsrk5n.js +2 -0
- package/bundle/chunk-n4qbnecw.js +35 -0
- package/bundle/{chunk-wrkt670m.js → chunk-n7zd97hy.js} +2 -2
- package/bundle/chunk-n9nmc4q4.js +2 -0
- package/bundle/{chunk-p3tcw42f.js → chunk-nb4xtk1n.js} +1 -1
- package/bundle/chunk-nj4as8vy.js +2 -0
- package/bundle/chunk-nxm6gpyv.js +2 -0
- package/bundle/{chunk-5gv6r7v8.js → chunk-nyxn7npc.js} +1 -1
- package/bundle/{chunk-mhn0a828.js → chunk-nzz7gzg2.js} +1 -1
- package/bundle/{chunk-y9mxwwz7.js → chunk-p0852vfn.js} +2 -2
- package/bundle/{chunk-xrb46v1e.js → chunk-p4xqfkbh.js} +1 -1
- package/bundle/{chunk-7nh8vjx4.js → chunk-pdcxmr6x.js} +1 -1
- package/bundle/chunk-pqzx9ha6.js +2 -0
- package/bundle/{chunk-w264gs2c.js → chunk-prz2fkn9.js} +1 -1
- package/bundle/{chunk-d2049chz.js → chunk-psmwrvqs.js} +2 -2
- package/bundle/{chunk-4d9s7cgr.js → chunk-pwq2f75j.js} +1 -1
- package/bundle/{chunk-5psekq9f.js → chunk-pwrwb7mn.js} +1 -1
- package/bundle/{chunk-1wy8wmah.js → chunk-px69995t.js} +1 -1
- package/bundle/{chunk-pfen4ekj.js → chunk-q1dmxn63.js} +2 -2
- package/bundle/{chunk-ycth54ja.js → chunk-q896qkhe.js} +1 -1
- package/bundle/chunk-qbjqkezn.js +2 -0
- package/bundle/chunk-qhtp1xvx.js +2 -0
- package/bundle/{chunk-hd6sd912.js → chunk-qk6jh32z.js} +1 -1
- package/bundle/chunk-qkztgpay.js +2 -0
- package/bundle/{chunk-x0wy15q9.js → chunk-qn1fhqyw.js} +2 -2
- package/bundle/{chunk-n73ckwr7.js → chunk-qpk7jp6t.js} +1 -1
- package/bundle/{chunk-7k1q26yn.js → chunk-qrztx1b4.js} +2 -2
- package/bundle/{chunk-dzy3ezht.js → chunk-rd08wx37.js} +2 -2
- package/bundle/{chunk-ba2hn77m.js → chunk-rk4c0zat.js} +1 -1
- package/bundle/{chunk-mqtj38j9.js → chunk-rn3je2hv.js} +1 -1
- package/bundle/chunk-rnf3dy0y.js +2 -0
- package/bundle/{chunk-72qx43fq.js → chunk-rqap90xh.js} +2 -2
- package/bundle/chunk-rry4kq85.js +2 -0
- package/bundle/{chunk-47pxz6cb.js → chunk-rt49c6js.js} +2 -2
- package/bundle/{chunk-5a4zt1b7.js → chunk-rws2tsdv.js} +1 -1
- package/bundle/{chunk-r65zw08x.js → chunk-rx9eh3db.js} +3 -3
- package/bundle/{chunk-tzw56029.js → chunk-rxt6gktt.js} +1 -1
- package/bundle/chunk-ryfj80q6.js +2 -0
- package/bundle/{chunk-ec1bwa7f.js → chunk-s0gmxpxm.js} +2 -2
- package/bundle/{chunk-8psfgg8y.js → chunk-s9epttpy.js} +1 -1
- package/bundle/{chunk-gtmtvjwc.js → chunk-sb3cgb4v.js} +1 -1
- package/bundle/{chunk-p863r97y.js → chunk-set1f1wr.js} +1 -1
- package/bundle/{chunk-zgj7jx8k.js → chunk-sg9enzsp.js} +2 -2
- package/bundle/{chunk-0xf12tf3.js → chunk-sh03ka27.js} +1 -1
- package/bundle/chunk-snx49w8h.js +2 -0
- package/bundle/{chunk-610mqqqa.js → chunk-spcdwmy4.js} +1 -1
- package/bundle/{chunk-ydz7387e.js → chunk-sy76e7nr.js} +1 -1
- package/bundle/{chunk-csbndz33.js → chunk-szfqmkj6.js} +1 -1
- package/bundle/chunk-t21mdqbb.js +2 -0
- package/bundle/{chunk-t7gp6mjm.js → chunk-tcyzj3rz.js} +1 -1
- package/bundle/chunk-tkbjcznz.js +2 -0
- package/bundle/chunk-tn2yyqeb.js +2 -0
- package/bundle/chunk-ttebf3nt.js +2 -0
- package/bundle/chunk-twpfh0mx.js +2 -0
- package/bundle/{chunk-a4242cn4.js → chunk-tz1bzrnh.js} +1 -1
- package/bundle/chunk-tzf6d5qy.js +2 -0
- package/bundle/{chunk-hzzvmr41.js → chunk-v1axkp21.js} +2 -2
- package/bundle/chunk-v2mq09wx.js +2 -0
- package/bundle/chunk-v59a02aj.js +2 -0
- package/bundle/{chunk-8rbbt1s8.js → chunk-v5me0cj9.js} +1 -1
- package/bundle/{chunk-gw2fz5ry.js → chunk-v7v0krrj.js} +1 -1
- package/bundle/{chunk-9r6wk75s.js → chunk-veptx3fk.js} +1 -1
- package/bundle/{chunk-d4ys15w3.js → chunk-vgmgg994.js} +1 -1
- package/bundle/{chunk-vvcyvdnk.js → chunk-vr13f6b5.js} +2 -2
- package/bundle/{chunk-jmrqp50k.js → chunk-vsv4p060.js} +1 -1
- package/bundle/chunk-vxr4rzt0.js +2 -0
- package/bundle/chunk-w0h9rczg.js +2 -0
- package/bundle/{chunk-fmvmp278.js → chunk-w0t1ajhg.js} +1 -1
- package/bundle/{chunk-6jb4mnvq.js → chunk-w136zswr.js} +3 -3
- package/bundle/chunk-w8344et5.js +2 -0
- package/bundle/{chunk-b274mb6v.js → chunk-w8nj5ph5.js} +1 -1
- package/bundle/chunk-weyg78et.js +2 -0
- package/bundle/{chunk-6kpk6pr3.js → chunk-wf0n1cs9.js} +1 -1
- package/bundle/{chunk-00krzh3y.js → chunk-wfpnv00c.js} +2 -2
- package/bundle/{chunk-mchf2bcc.js → chunk-wne3v1fk.js} +2 -2
- package/bundle/{chunk-wwtyrgga.js → chunk-wrzn87w0.js} +1 -1
- package/bundle/{chunk-npryn3en.js → chunk-ws720v4j.js} +1 -1
- package/bundle/chunk-wyavgt96.js +2 -0
- package/bundle/{chunk-t4kma6mq.js → chunk-x0de4z05.js} +2 -2
- package/bundle/{chunk-qqftaqza.js → chunk-x3dzzq0t.js} +1 -1
- package/bundle/{chunk-45dtsre6.js → chunk-x4jnyj09.js} +1 -1
- package/bundle/chunk-xchj8gna.js +2 -0
- package/bundle/{chunk-s81ck6bw.js → chunk-xdcwx384.js} +1 -1
- package/bundle/{chunk-yqvqzg7b.js → chunk-xmf59618.js} +1 -1
- package/bundle/{chunk-1rw4srd1.js → chunk-xxck1man.js} +1 -1
- package/bundle/{chunk-yg5azmxb.js → chunk-y4cz5s3h.js} +2 -2
- package/bundle/{chunk-vzj91hg8.js → chunk-yg9n2a2d.js} +1 -1
- package/bundle/{chunk-eefzbdbk.js → chunk-yhpwceqg.js} +2 -2
- package/bundle/{chunk-h9tcpbr7.js → chunk-yms3bsm7.js} +1 -1
- package/bundle/{chunk-9h2fms7x.js → chunk-ytfq6rn9.js} +1 -1
- package/bundle/chunk-yvjecrjy.js +2 -0
- package/bundle/{chunk-xpz5mnwz.js → chunk-yvtkx4x4.js} +1 -1
- package/bundle/chunk-yw2x6by6.js +2 -0
- package/bundle/{chunk-0ware2sh.js → chunk-ywj77e0m.js} +2 -2
- package/bundle/{chunk-962hspr0.js → chunk-z0dj15g9.js} +1 -1
- package/bundle/chunk-z0r4syk8.js +2 -0
- package/bundle/{chunk-1q5h95hc.js → chunk-z6qyx227.js} +1 -1
- package/bundle/chunk-z7c00g63.js +2 -0
- package/bundle/chunk-z93n3cbm.js +2 -0
- package/bundle/{chunk-3fx3eghq.js → chunk-zbt53cb5.js} +1 -1
- package/bundle/{chunk-tks3qzsw.js → chunk-zgwasq3p.js} +1 -1
- package/bundle/{chunk-6dmk2eyt.js → chunk-zh7e6kqs.js} +1 -1
- package/bundle/{chunk-4s9d2zte.js → chunk-zhhcfqhh.js} +1 -1
- package/bundle/{chunk-4q14whpc.js → chunk-zjyaze0d.js} +1 -1
- package/bundle/chunk-znr0saas.js +2 -0
- package/bundle/chunk-zqqt7v17.js +2 -0
- package/bundle/chunk-zwrgh1hc.js +2 -0
- package/bundle/chunk-zwxp07yc.js +2 -0
- package/bundle/{chunk-821zkh5v.js → chunk-zx63mepv.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-0nves64y.js +0 -2
- package/bundle/chunk-0v7knkt5.js +0 -2
- package/bundle/chunk-1h5jdsgx.js +0 -2
- package/bundle/chunk-1r5e1jsb.js +0 -2
- package/bundle/chunk-1wyy3c48.js +0 -2
- package/bundle/chunk-1z299xq6.js +0 -2
- package/bundle/chunk-21aqt31s.js +0 -2
- package/bundle/chunk-22aq9ymg.js +0 -2
- package/bundle/chunk-26a17c9z.js +0 -2
- package/bundle/chunk-2a154mr0.js +0 -2
- package/bundle/chunk-2nbce486.js +0 -2
- package/bundle/chunk-2npxatq9.js +0 -2
- package/bundle/chunk-3gryj9r9.js +0 -2
- package/bundle/chunk-3jnanbjr.js +0 -2
- package/bundle/chunk-3meh1cbc.js +0 -2
- package/bundle/chunk-3t71xfr6.js +0 -2
- package/bundle/chunk-4045jzv5.js +0 -2
- package/bundle/chunk-4b2vv484.js +0 -2
- package/bundle/chunk-4ene1ymj.js +0 -2
- package/bundle/chunk-58r5etg8.js +0 -2
- package/bundle/chunk-5c2zw4h0.js +0 -2
- package/bundle/chunk-5e0vejcb.js +0 -8
- package/bundle/chunk-608f83n0.js +0 -2
- package/bundle/chunk-671r50ry.js +0 -2
- package/bundle/chunk-6bfnhr3d.js +0 -2
- package/bundle/chunk-6cv6d8rw.js +0 -2
- package/bundle/chunk-6qm6f88j.js +0 -2
- package/bundle/chunk-78bfwwmc.js +0 -2
- package/bundle/chunk-7wwtgxxf.js +0 -2
- package/bundle/chunk-98sb49dz.js +0 -2
- package/bundle/chunk-9kbtpq9m.js +0 -2
- package/bundle/chunk-9szp9b4m.js +0 -2
- package/bundle/chunk-9xqszq0c.js +0 -2
- package/bundle/chunk-a32kjs9e.js +0 -2
- package/bundle/chunk-ajykvcas.js +0 -2
- package/bundle/chunk-apym02ct.js +0 -2
- package/bundle/chunk-armv2rv5.js +0 -2
- package/bundle/chunk-as215v64.js +0 -2
- package/bundle/chunk-bnmpgpyf.js +0 -2
- package/bundle/chunk-bq3zt1x1.js +0 -2
- package/bundle/chunk-bx8fgjam.js +0 -2
- package/bundle/chunk-ckcnb59t.js +0 -2
- package/bundle/chunk-d79xaj6s.js +0 -3
- package/bundle/chunk-dah2d37s.js +0 -2
- package/bundle/chunk-dhgjv1n2.js +0 -2
- package/bundle/chunk-dk9k8ff5.js +0 -2
- package/bundle/chunk-dymysn4h.js +0 -2
- package/bundle/chunk-ev4gw5k6.js +0 -2
- package/bundle/chunk-ew2dxm43.js +0 -2
- package/bundle/chunk-ffp4wg27.js +0 -2
- package/bundle/chunk-hjy90gt2.js +0 -2
- package/bundle/chunk-hmden934.js +0 -2
- package/bundle/chunk-hsm8fbb1.js +0 -2
- package/bundle/chunk-hz1xfedb.js +0 -2
- package/bundle/chunk-ja9y478k.js +0 -2
- package/bundle/chunk-jam7xyjf.js +0 -2
- package/bundle/chunk-k51qphrk.js +0 -2
- package/bundle/chunk-kee7xpe3.js +0 -2
- package/bundle/chunk-p13eeqe4.js +0 -2
- package/bundle/chunk-p45f2nyb.js +0 -2
- package/bundle/chunk-qvwx32p9.js +0 -35
- package/bundle/chunk-qw9whsy2.js +0 -2
- package/bundle/chunk-r77kpzdv.js +0 -2
- package/bundle/chunk-rc95tp19.js +0 -2
- package/bundle/chunk-rmh2fhqy.js +0 -2
- package/bundle/chunk-rrn86a8w.js +0 -2
- package/bundle/chunk-s8v0h63x.js +0 -2
- package/bundle/chunk-sh4mngre.js +0 -2
- package/bundle/chunk-shqqngm8.js +0 -2
- package/bundle/chunk-sjfcwykr.js +0 -2
- package/bundle/chunk-sv01v0n0.js +0 -2
- package/bundle/chunk-tn8hsd2c.js +0 -2
- package/bundle/chunk-tqsx7w8z.js +0 -2
- package/bundle/chunk-tyt1negg.js +0 -2
- package/bundle/chunk-v580zwpf.js +0 -3
- package/bundle/chunk-vdv6cyh0.js +0 -2
- package/bundle/chunk-vsk8yfxp.js +0 -2
- package/bundle/chunk-vvgmkjym.js +0 -2
- package/bundle/chunk-vzf04vad.js +0 -2
- package/bundle/chunk-w0zyex7f.js +0 -2
- package/bundle/chunk-w623r5kb.js +0 -3
- package/bundle/chunk-wkxt9v7s.js +0 -2
- package/bundle/chunk-wwf6zacw.js +0 -2
- package/bundle/chunk-x9c8eddk.js +0 -2
- package/bundle/chunk-xjed8t2h.js +0 -2
- package/bundle/chunk-xxhta1tm.js +0 -2
- package/bundle/chunk-yhj6858v.js +0 -2
- package/bundle/chunk-yq3byrpv.js +0 -2
- package/bundle/chunk-ys8ajwys.js +0 -2
- package/bundle/chunk-yzt7p956.js +0 -2
- package/bundle/chunk-z56cb3fs.js +0 -2
- package/bundle/chunk-zhypknyg.js +0 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$p as JV,Aq as BQ,Bq as $Q,Cq as AV,Fq as xV,Gp as l,Hp as zV,Lp as UQ,Np as JQ,Pp as GV,Up as wQ,Wp as QQ,bq as FQ,dq as KV,eq as SV,gq as PV,hq as D,kq as F,lq as t,nq as BV,pq as qQ,rq as VQ,sq as WQ,tq as xQ,wq as EV,xq as a,zq as UV}from"./chunk-hsmtjb4d.js";import{Iq as ZV,Mq as $V,Nq as AQ,Sq as jV,Uq as YQ}from"./chunk-7nh8vjx4.js";import"./chunk-cqtkxwd8.js";import"./chunk-mfg4stzn.js";import{Iu as Q}from"./chunk-zgj7jx8k.js";import"./chunk-0mdmqtfr.js";import"./chunk-0xf12tf3.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{Aq as a,Cq as UV,Dq as BQ,Eq as $Q,Fq as AV,Iq as xV,Jp as l,Kp as zV,Op as UQ,Qp as JQ,Sp as GV,Xp as wQ,Zp as QQ,cq as JV,eq as FQ,gq as KV,hq as SV,jq as PV,kq as D,nq as F,oq as t,qq as BV,sq as qQ,uq as VQ,vq as WQ,wq as xQ,zq as EV}from"./chunk-1bq15kf0.js";import{Lq as ZV,Pq as $V,Qq as AQ,Vq as jV,Xq as YQ}from"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import{Lu as Q}from"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-sh03ka27.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}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Ap as z}from"./chunk-6qwnty59.js";class B extends Error{cause;constructor(q,x){super(q);this.name="QreditChargeError",this.cause=x}}async function E(q){return z(q)}function F(q){if(q===void 0)return"\u2014";if(q===0)return"0";let x=q<0?"-":"",j=Math.abs(q);if(j<0.001)return x+j.toFixed(6);if(j<0.01)return x+j.toFixed(4);if(j<0.1)return x+j.toFixed(3);if(j<1)return x+j.toFixed(2);return x+(Number.isInteger(j)?String(j):j.toFixed(2))}
|
|
3
3
|
export{B as G,E as H,F as I};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{wP as B7,yP as RZ}from"./chunk-sh03ka27.js";import{createRequire as M8}from"module";import{fileURLToPath as k8}from"url";import{dirname as b8}from"path";import B0 from"path";import*as y6 from"path";import*as q4 from"url";import K6 from"path";import*as U6 from"path";import*as $2 from"fs/promises";import*as w6 from"path";import OJ from"process";import*as z1 from"path";import _J from"process";import Q4 from"path";import{pathToFileURL as Jz}from"url";import uz from"fs/promises";import cz from"path";import{pathToFileURL as nz}from"url";import A6 from"assert";import{statSync as f6,realpathSync as dz}from"fs";import p0 from"process";import{URL as KZ,fileURLToPath as HZ,pathToFileURL as j4}from"url";import g6 from"path";import{builtinModules as y4}from"module";import{fileURLToPath as ez}from"url";import oz from"fs";import tz from"path";import{fileURLToPath as p2}from"url";import ZV from"v8";import E0 from"assert";import{format as $V,inspect as E2}from"util";import{createRequire as nV}from"module";import f5 from"assert";import{fileURLToPath as kQ}from"url";import _Q from"assert";import D5 from"path";import{pathToFileURL as l5}from"url";import TW from"path";import s1 from"path";import sW from"url";var U2={};B7(U2,{utils:()=>s4,printer:()=>i4,default:()=>w8,builders:()=>_4});var S7=Object.defineProperty,F7=(Z,$)=>{for(var J in $)S7(Z,J,{get:$[J],enumerable:!0})},P4={};F7(P4,{builders:()=>_4,printer:()=>i4,utils:()=>s4});var R0="string",xZ="array",Y0="cursor",H0="indent",X0="align",v0="trim",CZ="group",j0="fill",DZ="if-break",y0="indent-if-break",G0="line-suffix",K0="line-suffix-boundary",AZ="line",U0="label",aZ="break-parent",C4=new Set([Y0,H0,X0,v0,CZ,j0,DZ,y0,G0,K0,AZ,U0,aZ]),N7=(Z,$,J)=>{if(Z&&($===void 0||$===null))return;if(Array.isArray($)||typeof $==="string")return $[J<0?$.length+J:J];return $.at(J)},W0=N7;function h7(Z){let $=Z.length;while($>0&&(Z[$-1]==="\r"||Z[$-1]===`
|
|
3
3
|
`))$--;return $<Z.length?Z.slice(0,$):Z}function L7(Z){if(typeof Z==="string")return R0;if(Array.isArray(Z))return xZ;if(!Z)return;let{type:$}=Z;if(C4.has($))return $}var I0=L7,A7=(Z)=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(Z);function f7(Z){let $=Z===null?"null":typeof Z;if($!=="string"&&$!=="object")return`Unexpected doc '${$}',
|
|
4
4
|
Expected it to be 'string' or 'object'.`;if(I0(Z))throw Error("doc is valid.");let J=Object.prototype.toString.call(Z);if(J!=="[object Object]")return`Unexpected doc '${J}'.`;let z=A7([...C4].map((V)=>`'${V}'`));return`Unexpected doc.type '${Z.type}'.
|
|
5
5
|
Expected it to be ${z}.`}var g7=class extends Error{name="InvalidDocError";constructor(Z){super(f7(Z));this.doc=Z}},r0=g7,R4={};function m7(Z,$,J,z){let V=[Z];while(V.length>0){let q=V.pop();if(q===R4){J(V.pop());continue}if(J)V.push(q,R4);let Q=I0(q);if(!Q)throw new r0(q);if(($==null?void 0:$(q))===!1)continue;switch(Q){case xZ:case j0:{let W=Q===xZ?q:q.parts;for(let H=W.length,v=H-1;v>=0;--v)V.push(W[v]);break}case DZ:V.push(q.flatContents,q.breakContents);break;case CZ:if(z&&q.expandedStates)for(let W=q.expandedStates.length,H=W-1;H>=0;--H)V.push(q.expandedStates[H]);else V.push(q.contents);break;case X0:case H0:case y0:case U0:case G0:V.push(q.contents);break;case R0:case Y0:case v0:case K0:case AZ:case aZ:break;default:throw new r0(q)}}}var v2=m7;function f1(Z,$){if(typeof Z==="string")return $(Z);let J=new Map;return z(Z);function z(q){if(J.has(q))return J.get(q);let Q=V(q);return J.set(q,Q),Q}function V(q){switch(I0(q)){case xZ:return $(q.map(z));case j0:return $({...q,parts:q.parts.map(z)});case DZ:return $({...q,breakContents:z(q.breakContents),flatContents:z(q.flatContents)});case CZ:{let{expandedStates:Q,contents:W}=q;if(Q)Q=Q.map(z),W=Q[0];else W=z(W);return $({...q,contents:W,expandedStates:Q})}case X0:case H0:case y0:case U0:case G0:return $({...q,contents:z(q.contents)});case R0:case Y0:case v0:case K0:case AZ:case aZ:return $(q);default:throw new r0(q)}}}function j2(Z,$,J){let z=J,V=!1;function q(Q){if(V)return!1;let W=$(Q);if(W!==void 0)V=!0,z=W}return v2(Z,q),z}function R7(Z){if(Z.type===CZ&&Z.break)return!0;if(Z.type===AZ&&Z.hard)return!0;if(Z.type===aZ)return!0}function Y7(Z){return j2(Z,R7,!1)}function Y4(Z){if(Z.length>0){let $=W0(!1,Z,-1);if(!$.expandedStates&&!$.break)$.break="propagated"}return null}function I7(Z){let $=new Set,J=[];function z(q){if(q.type===aZ)Y4(J);if(q.type===CZ){if(J.push(q),$.has(q))return!1;$.add(q)}}function V(q){if(q.type===CZ){if(J.pop().break)Y4(J)}}v2(Z,z,V,!0)}function P7(Z){if(Z.type===AZ&&!Z.hard)return Z.soft?"":" ";if(Z.type===DZ)return Z.flatContents;return Z}function C7(Z){return f1(Z,P7)}function I4(Z){Z=[...Z];while(Z.length>=2&&W0(!1,Z,-2).type===AZ&&W0(!1,Z,-1).type===aZ)Z.length-=2;if(Z.length>0){let $=q1(W0(!1,Z,-1));Z[Z.length-1]=$}return Z}function q1(Z){switch(I0(Z)){case H0:case y0:case CZ:case G0:case U0:{let $=q1(Z.contents);return{...Z,contents:$}}case DZ:return{...Z,breakContents:q1(Z.breakContents),flatContents:q1(Z.flatContents)};case j0:return{...Z,parts:I4(Z.parts)};case xZ:return I4(Z);case R0:return h7(Z);case X0:case Y0:case v0:case K0:case AZ:case aZ:break;default:throw new r0(Z)}return Z}function T7(Z){return q1(u7(Z))}function O7(Z){switch(I0(Z)){case j0:if(Z.parts.every(($)=>$===""))return"";break;case CZ:if(!Z.contents&&!Z.id&&!Z.break&&!Z.expandedStates)return"";if(Z.contents.type===CZ&&Z.contents.id===Z.id&&Z.contents.break===Z.break&&Z.contents.expandedStates===Z.expandedStates)return Z.contents;break;case X0:case H0:case y0:case G0:if(!Z.contents)return"";break;case DZ:if(!Z.flatContents&&!Z.breakContents)return"";break;case xZ:{let $=[];for(let J of Z){if(!J)continue;let[z,...V]=Array.isArray(J)?J:[J];if(typeof z==="string"&&typeof W0(!1,$,-1)==="string")$[$.length-1]+=z;else $.push(z);$.push(...V)}if($.length===0)return"";if($.length===1)return $[0];return $}case R0:case Y0:case v0:case K0:case AZ:case U0:case aZ:break;default:throw new r0(Z)}return Z}function u7(Z){return f1(Z,($)=>O7($))}function D7(Z,$=D4){return f1(Z,(J)=>typeof J==="string"?l4($,J.split(`
|
|
@@ -75,7 +75,7 @@ ${V}`,$);this.line=J,this.column=z,this.codeblock=V}};function n1(Z,$=0,J=Z.leng
|
|
|
75
75
|
`)throw new $Z("newlines are not allowed in inline tables",{toml:Z,ptr:$-1});else if(q==="#")throw new $Z("inline tables cannot contain comments",{toml:Z,ptr:$-1});else if(q===",")throw new $Z("expected key-value, found comma",{toml:Z,ptr:$-1});else if(q!==" "&&q!=="\t"){let W,H=z,v=!1,[X,j]=l2(Z,$-1);for(let G=0;G<X.length;G++){if(G)H=v?H[W]:H[W]={};if(W=X[G],(v=Object.hasOwn(H,W))&&(typeof H[W]!=="object"||V.has(H[W])))throw new $Z("trying to redefine an already defined value",{toml:Z,ptr:$});if(!v&&W==="__proto__")Object.defineProperty(H,W,{enumerable:!0,configurable:!0,writable:!0})}if(v)throw new $Z("trying to redefine an already defined value",{toml:Z,ptr:$});let[y,K]=X4(Z,j,"}",J-1);V.add(y),H[W]=y,$=K,Q=Z[$-1]===","?$-1:0}if(Q)throw new $Z("trailing commas are not allowed in inline tables",{toml:Z,ptr:Q});if(!q)throw new $Z("unfinished table encountered",{toml:Z,ptr:$});return[z,$]}function Tz(Z,$,J=-1){let z=[],V;$++;while((V=Z[$++])!=="]"&&V)if(V===",")throw new $Z("expected value, found comma",{toml:Z,ptr:$-1});else if(V==="#")$=H4(Z,$);else if(V!==" "&&V!=="\t"&&V!==`
|
|
76
76
|
`&&V!=="\r"){let q=X4(Z,$-1,"]",J-1);z.push(q[0]),$=q[1]}if(!V)throw new $Z("unfinished array encountered",{toml:Z,ptr:$});return[z,$]}function X5(Z,$,J,z){var V,q;let Q=$,W=J,H,v=!1,X;for(let j=0;j<Z.length;j++){if(j){if(Q=v?Q[H]:Q[H]={},W=(X=W[H]).c,z===0&&(X.t===1||X.t===2))return null;if(X.t===2){let y=Q.length-1;Q=Q[y],W=W[y].c}}if(H=Z[j],(v=Object.hasOwn(Q,H))&&((V=W[H])==null?void 0:V.t)===0&&((q=W[H])==null?void 0:q.d))return null;if(!v){if(H==="__proto__")Object.defineProperty(Q,H,{enumerable:!0,configurable:!0,writable:!0}),Object.defineProperty(W,H,{enumerable:!0,configurable:!0,writable:!0});W[H]={t:j<Z.length-1&&z===2?3:z,d:!1,i:0,c:{}}}}if(X=W[H],X.t!==z&&!(z===1&&X.t===3))return null;if(z===2){if(!X.d)X.d=!0,Q[H]=[];Q[H].push(Q={}),X.c[X.i++]=X={t:1,d:!1,i:0,c:{}}}if(X.d)return null;if(X.d=!0,z===1)Q=v?Q[H]:Q[H]={};else if(z===0&&v)return null;return[H,Q,X.c]}function Oz(Z,$){let J=($==null?void 0:$.maxDepth)??1000,z={},V={},q=z,Q=V;for(let W=Z0(Z,0);W<Z.length;){if(Z[W]==="["){let H=Z[++W]==="[",v=l2(Z,W+=+H,"]");if(H){if(Z[v[1]-1]!=="]")throw new $Z("expected end of table declaration",{toml:Z,ptr:v[1]-1});v[1]++}let X=X5(v[0],z,V,H?2:1);if(!X)throw new $Z("trying to redefine an already defined table or value",{toml:Z,ptr:W});Q=X[2],q=X[1],W=v[1]}else{let H=l2(Z,W),v=X5(H[0],q,Q,0);if(!v)throw new $Z("trying to redefine an already defined table or value",{toml:Z,ptr:W});let X=X4(Z,H[1],void 0,J);v[1][v[0]]=X[0],W=X[1]}if(W=Z0(Z,W,!0),Z[W]&&Z[W]!==`
|
|
77
77
|
`&&Z[W]!=="\r")throw new $Z("each key-value declaration must be followed by an end-of-line",{toml:Z,ptr:W});W=Z0(Z,W)}return z}async function Dz(Z){if(G6(Z))Z=new URL(Z);try{return await uz.readFile(Z,"utf8")}catch($){if($.code==="ENOENT")return;throw Error(`Unable to read '${Z}': ${$.message}`)}}var b1=Dz;async function v4(Z){let $=await b1(Z);try{return Sz($)}catch(J){throw J.message=`JSON Error in ${Z}:
|
|
78
|
-
${J.message}`,J}}async function O0(Z){return(await import(Jz(Z).href)).default}async function lz(Z){try{return await v4(Z)}catch($){try{return await O0(Z)}catch{}throw $}}var h6=process.versions.bun?async function($){let{prettier:J}=await lz($);return J}:async function($){let{prettier:J}=await v4($);return J};async function L6(Z){let{prettier:$}=await D1(Z);return $}var b2;async function D1(Z){let $=await b1(Z);if(!b2)({__parsePrettierYamlConfig:b2}=await import("./chunk-
|
|
78
|
+
${J.message}`,J}}async function O0(Z){return(await import(Jz(Z).href)).default}async function lz(Z){try{return await v4(Z)}catch($){try{return await O0(Z)}catch{}throw $}}var h6=process.versions.bun?async function($){let{prettier:J}=await lz($);return J}:async function($){let{prettier:J}=await v4($);return J};async function L6(Z){let{prettier:$}=await D1(Z);return $}var b2;async function D1(Z){let $=await b1(Z);if(!b2)({__parsePrettierYamlConfig:b2}=await import("./chunk-wf0n1cs9.js"));try{return b2($)}catch(J){throw J.message=`YAML Error in ${Z}:
|
|
79
79
|
${J.message}`,J}}async function pz(Z){let $=await b1(Z);try{return Oz($)}catch(J){throw J.message=`TOML Error in ${Z}:
|
|
80
80
|
${J.message}`,J}}async function Ez(Z){let $=await b1(Z);try{return yz.parse($)}catch(J){throw J.message=`JSON5 Error in ${Z}:
|
|
81
81
|
${J.message}`,J}}var _z={".toml":pz,".json5":Ez,".json":v4,".js":O0,".mjs":O0,".cjs":O0,".ts":O0,".mts":O0,".cts":O0,".yaml":D1,".yml":D1,"":D1},iz=_z,sz=["package.json","package.yaml",".prettierrc",".prettierrc.json",".prettierrc.yaml",".prettierrc.yml",".prettierrc.json5",".prettierrc.js",".prettierrc.ts",".prettierrc.mjs",".prettierrc.mts",".prettierrc.cjs",".prettierrc.cts","prettier.config.js","prettier.config.ts","prettier.config.mjs","prettier.config.mts","prettier.config.cjs","prettier.config.cts",".prettierrc.toml"];async function az({name:Z,path:$}){if(Z==="package.json")try{return Boolean(await h6($))}catch{return!1}if(Z==="package.yaml")try{return Boolean(await L6($))}catch{return!1}return!0}function rz(Z){return new aJ(sz,{filter:az,stopDirectory:Z})}var xz=rz,JV={}.hasOwnProperty,zV=/^([A-Z][a-z\d]*)+$/,VV=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]),NZ={};function B2(Z,$="and"){return Z.length<3?Z.join(` ${$} `):`${Z.slice(0,-1).join(", ")}, ${$} ${Z[Z.length-1]}`}var m6=new Map,qV="__node_internal_",v5;NZ.ERR_INVALID_ARG_TYPE=uZ("ERR_INVALID_ARG_TYPE",(Z,$,J)=>{if(E0(typeof Z==="string","'name' must be a string"),!Array.isArray($))$=[$];let z="The ";if(Z.endsWith(" argument"))z+=`${Z} `;else{let W=Z.includes(".")?"property":"argument";z+=`"${Z}" ${W} `}z+="must be ";let V=[],q=[],Q=[];for(let W of $)if(E0(typeof W==="string","All expected entries have to be of type string"),VV.has(W))V.push(W.toLowerCase());else if(zV.exec(W)===null)E0(W!=="object",'The value "object" should be written as "Object"'),Q.push(W);else q.push(W);if(q.length>0){let W=V.indexOf("object");if(W!==-1)V.slice(W,1),q.push("Object")}if(V.length>0){if(z+=`${V.length>1?"one of type":"of type"} ${B2(V,"or")}`,q.length>0||Q.length>0)z+=" or "}if(q.length>0){if(z+=`an instance of ${B2(q,"or")}`,Q.length>0)z+=" or "}if(Q.length>0)if(Q.length>1)z+=`one of ${B2(Q,"or")}`;else{if(Q[0].toLowerCase()!==Q[0])z+="an ";z+=`${Q[0]}`}return z+=`. Received ${vV(J)}`,z},TypeError);NZ.ERR_INVALID_MODULE_SPECIFIER=uZ("ERR_INVALID_MODULE_SPECIFIER",(Z,$,J=void 0)=>{return`Invalid module "${Z}" ${$}${J?` imported from ${J}`:""}`},TypeError);NZ.ERR_INVALID_PACKAGE_CONFIG=uZ("ERR_INVALID_PACKAGE_CONFIG",(Z,$,J)=>{return`Invalid package config ${Z}${$?` while importing ${$}`:""}${J?`. ${J}`:""}`},Error);NZ.ERR_INVALID_PACKAGE_TARGET=uZ("ERR_INVALID_PACKAGE_TARGET",(Z,$,J,z=!1,V=void 0)=>{let q=typeof J==="string"&&!z&&J.length>0&&!J.startsWith("./");if($===".")return E0(z===!1),`Invalid "exports" main target ${JSON.stringify(J)} defined in the package config ${Z}package.json${V?` imported from ${V}`:""}${q?'; targets must start with "./"':""}`;return`Invalid "${z?"imports":"exports"}" target ${JSON.stringify(J)} defined for '${$}' in the package config ${Z}package.json${V?` imported from ${V}`:""}${q?'; targets must start with "./"':""}`},Error);NZ.ERR_MODULE_NOT_FOUND=uZ("ERR_MODULE_NOT_FOUND",(Z,$,J=!1)=>{return`Cannot find ${J?"module":"package"} '${Z}' imported from ${$}`},Error);NZ.ERR_NETWORK_IMPORT_DISALLOWED=uZ("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);NZ.ERR_PACKAGE_IMPORT_NOT_DEFINED=uZ("ERR_PACKAGE_IMPORT_NOT_DEFINED",(Z,$,J)=>{return`Package import specifier "${Z}" is not defined${$?` in package ${$}package.json`:""} imported from ${J}`},TypeError);NZ.ERR_PACKAGE_PATH_NOT_EXPORTED=uZ("ERR_PACKAGE_PATH_NOT_EXPORTED",(Z,$,J=void 0)=>{if($===".")return`No "exports" main defined in ${Z}package.json${J?` imported from ${J}`:""}`;return`Package subpath '${$}' is not defined by "exports" in ${Z}package.json${J?` imported from ${J}`:""}`},Error);NZ.ERR_UNSUPPORTED_DIR_IMPORT=uZ("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);NZ.ERR_UNSUPPORTED_RESOLVE_REQUEST=uZ("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);NZ.ERR_UNKNOWN_FILE_EXTENSION=uZ("ERR_UNKNOWN_FILE_EXTENSION",(Z,$)=>{return`Unknown file extension "${Z}" for ${$}`},TypeError);NZ.ERR_INVALID_ARG_VALUE=uZ("ERR_INVALID_ARG_VALUE",(Z,$,J="is invalid")=>{let z=E2($);if(z.length>128)z=`${z.slice(0,128)}...`;return`The ${Z.includes(".")?"property":"argument"} '${Z}' ${J}. Received ${z}`},TypeError);function uZ(Z,$,J){return m6.set(Z,$),QV(J,Z)}function QV(Z,$){return J;function J(...z){let V=Error.stackTraceLimit;if(_2())Error.stackTraceLimit=0;let q=new Z;if(_2())Error.stackTraceLimit=V;let Q=XV($,z,q);return Object.defineProperties(q,{message:{value:Q,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${$}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),HV(q),q.code=$,q}}function _2(){try{if(ZV.startupSnapshot.isBuildingSnapshot())return!1}catch{}let Z=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");if(Z===void 0)return Object.isExtensible(Error);return JV.call(Z,"writable")&&Z.writable!==void 0?Z.writable:Z.set!==void 0}function WV(Z){let $=qV+Z.name;return Object.defineProperty(Z,"name",{value:$}),Z}var HV=WV(function(Z){let $=_2();if($)v5=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY;if(Error.captureStackTrace(Z),$)Error.stackTraceLimit=v5;return Z});function XV(Z,$,J){let z=m6.get(Z);if(E0(z!==void 0,"expected `message` to be found"),typeof z==="function")return E0(z.length<=$.length,`Code: ${Z}; The provided arguments length (${$.length}) does not match the required ones (${z.length}).`),Reflect.apply(z,J,$);let V=/%[dfijoOs]/g,q=0;while(V.exec(z)!==null)q++;if(E0(q===$.length,`Code: ${Z}; The provided arguments length (${$.length}) does not match the required ones (${q}).`),$.length===0)return z;return $.unshift(z),Reflect.apply($V,null,$)}function vV(Z){if(Z===null||Z===void 0)return String(Z);if(typeof Z==="function"&&Z.name)return`function ${Z.name}`;if(typeof Z==="object"){if(Z.constructor&&Z.constructor.name)return`an instance of ${Z.constructor.name}`;return`${E2(Z,{depth:-1})}`}let $=E2(Z,{colors:!1});if($.length>28)$=`${$.slice(0,25)}...`;return`type ${typeof Z} (${$})`}var Q1={}.hasOwnProperty,{ERR_INVALID_PACKAGE_CONFIG:jV}=NZ,j5=new Map;function R6(Z,{base:$,specifier:J}){let z=j5.get(Z);if(z)return z;let V;try{V=oz.readFileSync(tz.toNamespacedPath(Z),"utf8")}catch(Q){let W=Q;if(W.code!=="ENOENT")throw W}let q={exists:!1,pjsonPath:Z,main:void 0,name:void 0,type:"none",exports:void 0,imports:void 0};if(V!==void 0){let Q;try{Q=JSON.parse(V)}catch(W){let H=W,v=new jV(Z,($?`"${J}" from `:"")+p2($||J),H.message);throw v.cause=H,v}if(q.exists=!0,Q1.call(Q,"name")&&typeof Q.name==="string")q.name=Q.name;if(Q1.call(Q,"main")&&typeof Q.main==="string")q.main=Q.main;if(Q1.call(Q,"exports"))q.exports=Q.exports;if(Q1.call(Q,"imports"))q.imports=Q.imports;if(Q1.call(Q,"type")&&(Q.type==="commonjs"||Q.type==="module"))q.type=Q.type}return j5.set(Z,q),q}function G4(Z){let $=new URL("package.json",Z);while(!0){if($.pathname.endsWith("node_modules/package.json"))break;let V=R6(p2($),{specifier:Z});if(V.exists)return V;let q=$;if($=new URL("../package.json",$),$.pathname===q.pathname)break}return{pjsonPath:p2($),exists:!1,type:"none"}}function y5(Z){return G4(Z).type}var{ERR_UNKNOWN_FILE_EXTENSION:yV}=NZ,GV={}.hasOwnProperty,KV={__proto__:null,".cjs":"commonjs",".js":"module",".json":"json",".mjs":"module"};function UV(Z){if(Z&&/\s*(text|application)\/javascript\s*(;\s*charset=utf-?8\s*)?/i.test(Z))return"module";if(Z==="application/json")return"json";return null}var G5={__proto__:null,"data:":wV,"file:":kV,"http:":K5,"https:":K5,"node:"(){return"builtin"}};function wV(Z){let{1:$}=/^([^/]+\/[^;,]+)[^,]*?(;base64)?,/.exec(Z.pathname)||[null,null,null];return UV($)}function MV(Z){let $=Z.pathname,J=$.length;while(J--){let z=$.codePointAt(J);if(z===47)return"";if(z===46)return $.codePointAt(J-1)===47?"":$.slice(J)}return""}function kV(Z,$,J){let z=MV(Z);if(z===".js"){let Q=y5(Z);if(Q!=="none")return Q;return"commonjs"}if(z===""){let Q=y5(Z);if(Q==="none"||Q==="commonjs")return"commonjs";return"module"}let V=KV[z];if(V)return V;if(J)return;let q=ez(Z);throw new yV(z,q)}function K5(){}function Y6(Z,$){let J=Z.protocol;if(!GV.call(G5,J))return null;return G5[J](Z,$,!0)||null}var{ERR_INVALID_ARG_VALUE:bV}=NZ,I6=Object.freeze(["node","import"]),BV=new Set(I6);function SV(){return I6}function FV(){return BV}function NV(Z){if(Z!==void 0&&Z!==SV()){if(!Array.isArray(Z))throw new bV("conditions",Z,"expected an array");return new Set(Z)}return FV()}var m1=RegExp.prototype[Symbol.replace],{ERR_NETWORK_IMPORT_DISALLOWED:S2,ERR_INVALID_MODULE_SPECIFIER:J2,ERR_INVALID_PACKAGE_CONFIG:P6,ERR_INVALID_PACKAGE_TARGET:hV,ERR_MODULE_NOT_FOUND:K4,ERR_PACKAGE_IMPORT_NOT_DEFINED:LV,ERR_PACKAGE_PATH_NOT_EXPORTED:AV,ERR_UNSUPPORTED_DIR_IMPORT:fV,ERR_UNSUPPORTED_RESOLVE_REQUEST:U5}=NZ,C6={}.hasOwnProperty,w5=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))?(\\|\/|$)/i,M5=/(^|\\|\/)((\.|%2e)(\.|%2e)?|(n|%6e|%4e)(o|%6f|%4f)(d|%64|%44)(e|%65|%45)(_|%5f)(m|%6d|%4d)(o|%6f|%4f)(d|%64|%44)(u|%75|%55)(l|%6c|%4c)(e|%65|%45)(s|%73|%53))(\\|\/|$)/i,gV=/^\.|%|\\/,R1=/\*/g,mV=/%2f|%5c/i,k5=new Set,RV=/[/\\]{2}/;function b5(Z,$,J,z,V,q,Q){if(p0.noDeprecation)return;let W=HZ(z),H=RV.exec(Q?Z:$)!==null;p0.emitWarning(`Use of deprecated ${H?"double slash":"leading or trailing slash matching"} resolving "${Z}" for module request "${$}" ${$===J?"":`matched to "${J}" `}in the "${V?"imports":"exports"}" field module resolution of the package at ${W}${q?` imported from ${HZ(q)}`:""}.`,"DeprecationWarning","DEP0166")}function B5(Z,$,J,z){if(p0.noDeprecation)return;if(Y6(Z,{parentURL:J.href})!=="module")return;let q=HZ(Z.href),Q=HZ(new KZ(".",$)),W=HZ(J);if(!z)p0.emitWarning(`No "main" or "exports" field defined in the package.json for ${Q} resolving the main entry point "${q.slice(Q.length)}", imported from ${W}.
|
|
@@ -104,7 +104,7 @@ The range will extend backwards to the start of the first line containing the se
|
|
|
104
104
|
`)y+=E6(K.slice(0,y),`
|
|
105
105
|
`);K=B1(!1,K,`
|
|
106
106
|
`,G)}return{formatted:K,cursorOffset:y,comments:X.comments}}function g2(Z,$,J){if(typeof $!=="number"||Number.isNaN($)||$<0||$>Z.length)return J;return $}function T5(Z,$){let{cursorOffset:J,rangeStart:z,rangeEnd:V}=$;return J=g2(Z,J,-1),z=g2(Z,z,0),V=g2(Z,V,Z.length),{...$,cursorOffset:J,rangeStart:z,rangeEnd:V}}function v7(Z,$){let{cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q}=T5(Z,$),Q=Z.charAt(0)===H7;if(Q)Z=Z.slice(1),J--,z--,V--;if(q==="auto")q=Gq(Z);if(Z.includes("\r")){let W=(H)=>E6(Z.slice(0,Math.max(H,0)),`\r
|
|
107
|
-
`);J-=W(J),z-=W(z),V-=W(V),Z=Kq(Z)}return{hasBOM:Q,text:Z,options:T5(Z,{...$,cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q})}}async function O5(Z,$){let J=await L4($);return!J.hasPragma||J.hasPragma(Z)}async function dQ(Z,$){var J;let z=await L4($);return(J=z.hasIgnorePragma)==null?void 0:J.call(z,Z)}async function j7(Z,$){let{hasBOM:J,text:z,options:V}=v7(Z,await V1($));if(V.rangeStart>=V.rangeEnd&&z!==""||V.requirePragma&&!await O5(z,V)||V.checkIgnorePragma&&await dQ(z,V))return{formatted:Z,cursorOffset:$.cursorOffset,comments:[]};let q;if(V.rangeStart>0||V.rangeEnd<z.length)q=await nQ(z,V);else{if(!V.requirePragma&&V.insertPragma&&V.printer.insertPragma&&!await O5(z,V))z=V.printer.insertPragma(z);q=await X7(z,V)}if(J){if(q.formatted=H7+q.formatted,q.cursorOffset>=0)q.cursorOffset++}return q}async function eQ(Z,$,J){let{text:z,options:V}=v7(Z,await V1($)),q=await N1(z,V);if(J){if(J.preprocessForPrint)q.ast=await q7(q.ast,V);if(J.massage)q.ast=lQ(q.ast,V)}return q}async function oQ(Z,$){$=await V1($);let J=await q2(Z,$);return k4(J,$)}async function tQ(Z,$){let J=Yq(Z),{formatted:z}=await j7(J,{...$,parser:"__js_expression"});return z}async function ZW(Z,$){$=await V1($);let{ast:J}=await N1(Z,$);if($.cursorOffset>=0)$={...$,...Q7(J,$)};return q2(J,$)}async function $W(Z,$){return k4(Z,await V1($))}var y7={};M1(y7,{CATEGORY_CONFIG:()=>JW,CATEGORY_EDITOR:()=>zW,CATEGORY_FORMAT:()=>VW,CATEGORY_GLOBAL:()=>WW,CATEGORY_OTHER:()=>qW,CATEGORY_OUTPUT:()=>QW,CATEGORY_SPECIAL:()=>HW});var JW="Config",zW="Editor",VW="Format",qW="Other",QW="Output",WW="Global",HW="Special",G7={};M1(G7,{languages:()=>YW,options:()=>RW,parsers:()=>IW,printers:()=>PW});var XW=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],PZ={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},vW={singleQuote:PZ.singleQuote},jW=vW,yW=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],GW={bracketSpacing:PZ.bracketSpacing},KW=GW,UW=[{name:"Handlebars",type:"markup",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],wW=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],u5="HTML",MW={bracketSameLine:PZ.bracketSameLine,htmlWhitespaceSensitivity:{category:u5,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:PZ.singleAttributePerLine,vueIndentScriptAndStyle:{category:u5,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kW=MW,bW=[{name:"JavaScript",type:"programming",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],tmScope:"source.js",aceMode:"javascript",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],filenames:["Jakefile","start.frag","end.frag"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",extensions:[".js.flow"],tmScope:"source.js",aceMode:"javascript",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],filenames:[],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,filenames:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],w0="JavaScript",BW={arrowParens:{category:w0,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:PZ.bracketSameLine,objectWrap:PZ.objectWrap,bracketSpacing:PZ.bracketSpacing,jsxBracketSameLine:{category:w0,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:w0,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:w0,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:w0,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:PZ.singleQuote,jsxSingleQuote:{category:w0,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:w0,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:w0,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:PZ.singleAttributePerLine},SW=BW,FW=[{name:"JSON.stringify",type:"data",extensions:[".importmap"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],tmScope:"source.json.comments",aceMode:"javascript",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],NW=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],hW={proseWrap:PZ.proseWrap,singleQuote:PZ.singleQuote},LW=hW,AW=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],fW={bracketSpacing:PZ.bracketSpacing,singleQuote:PZ.singleQuote,proseWrap:PZ.proseWrap},gW=fW;function mW(Z){let $=Object.create(null),J=Object.create(null);for(let{importPlugin:z,parsers:V=[],printers:q=[]}of Z){let Q=async()=>{let W=await z();return Object.assign($,W.parsers),Object.assign(J,W.printers),W};for(let W of V)$[W]=async()=>(await Q()).parsers[W];for(let W of q)J[W]=async()=>(await Q()).printers[W]}return{parsers:$,printers:J}}var RW={...jW,...KW,...kW,...SW,...LW,...gW},YW=[...XW,...yW,...UW,...wW,...bW,...FW,...NW,...AW],{parsers:IW,printers:PW}=mW([{importPlugin:()=>import("./chunk-paqy0c2v.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./chunk-04x4b2yy.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./chunk-sn15skh8.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./chunk-hrfdrz36.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./chunk-fj87htwn.js"),parsers:["flow"]},{importPlugin:()=>import("./chunk-trg0zg0q.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./chunk-9r6wk75s.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./chunk-tzw56029.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./chunk-wqm1vawg.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./chunk-mhn0a828.js"),parsers:["meriyah"]},{importPlugin:()=>import("./chunk-t66gerft.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./chunk-xaewye8w.js"),parsers:["typescript"]},{importPlugin:()=>import("./chunk-6kpk6pr3.js"),parsers:["yaml"],printers:["yaml"]}]);function CW(){return[G7]}var K7=CW;function OW(Z,$){return D6(Z,TW.join($,"noop.js"))}var uW=OW;async function DW(Z,$){if(t1(Z))return import(Z);if(D5.isAbsolute(Z))return import(l5(Z).href);try{return await import(l5(D5.resolve(Z)).href)}catch{return uW(Z,$)}}async function lW(Z,$){let J=await DW(Z,$);return{name:Z,...J.default??J}}var i1=new Map;function pW(Z){if(typeof Z!=="string"&&!(Z instanceof URL))return Z;let $=process.cwd(),J=JSON.stringify({name:Z,cwd:$});if(!i1.has(J))i1.set(J,lW(Z,$));return i1.get(J)}function EW(){i1.clear()}function _W(Z=[]){return Promise.all(Z.map(($)=>pW($)))}var U7=_W,iW=_Z(x$(),1),aW=s1.sep==="\\"?(Z)=>B1(!1,Z,"\\","/"):(Z)=>Z;function rW(Z,$){let J=Z2($),z=t1(Z)?sW.fileURLToPath(Z):s1.resolve(Z);return s1.relative(J?s1.dirname(J):process.cwd(),z)}async function xW(Z,$){let J="";if(Z)J+=await b1(Z)??"";if(!$)J+=`
|
|
107
|
+
`);J-=W(J),z-=W(z),V-=W(V),Z=Kq(Z)}return{hasBOM:Q,text:Z,options:T5(Z,{...$,cursorOffset:J,rangeStart:z,rangeEnd:V,endOfLine:q})}}async function O5(Z,$){let J=await L4($);return!J.hasPragma||J.hasPragma(Z)}async function dQ(Z,$){var J;let z=await L4($);return(J=z.hasIgnorePragma)==null?void 0:J.call(z,Z)}async function j7(Z,$){let{hasBOM:J,text:z,options:V}=v7(Z,await V1($));if(V.rangeStart>=V.rangeEnd&&z!==""||V.requirePragma&&!await O5(z,V)||V.checkIgnorePragma&&await dQ(z,V))return{formatted:Z,cursorOffset:$.cursorOffset,comments:[]};let q;if(V.rangeStart>0||V.rangeEnd<z.length)q=await nQ(z,V);else{if(!V.requirePragma&&V.insertPragma&&V.printer.insertPragma&&!await O5(z,V))z=V.printer.insertPragma(z);q=await X7(z,V)}if(J){if(q.formatted=H7+q.formatted,q.cursorOffset>=0)q.cursorOffset++}return q}async function eQ(Z,$,J){let{text:z,options:V}=v7(Z,await V1($)),q=await N1(z,V);if(J){if(J.preprocessForPrint)q.ast=await q7(q.ast,V);if(J.massage)q.ast=lQ(q.ast,V)}return q}async function oQ(Z,$){$=await V1($);let J=await q2(Z,$);return k4(J,$)}async function tQ(Z,$){let J=Yq(Z),{formatted:z}=await j7(J,{...$,parser:"__js_expression"});return z}async function ZW(Z,$){$=await V1($);let{ast:J}=await N1(Z,$);if($.cursorOffset>=0)$={...$,...Q7(J,$)};return q2(J,$)}async function $W(Z,$){return k4(Z,await V1($))}var y7={};M1(y7,{CATEGORY_CONFIG:()=>JW,CATEGORY_EDITOR:()=>zW,CATEGORY_FORMAT:()=>VW,CATEGORY_GLOBAL:()=>WW,CATEGORY_OTHER:()=>qW,CATEGORY_OUTPUT:()=>QW,CATEGORY_SPECIAL:()=>HW});var JW="Config",zW="Editor",VW="Format",qW="Other",QW="Output",WW="Global",HW="Special",G7={};M1(G7,{languages:()=>YW,options:()=>RW,parsers:()=>IW,printers:()=>PW});var XW=[{name:"CSS",type:"markup",extensions:[".css",".wxss"],tmScope:"source.css",aceMode:"css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",extensions:[".pcss",".postcss"],tmScope:"source.postcss",aceMode:"text",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",extensions:[".less"],tmScope:"source.css.less",aceMode:"less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",extensions:[".scss"],tmScope:"source.css.scss",aceMode:"scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],PZ={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}},vW={singleQuote:PZ.singleQuote},jW=vW,yW=[{name:"GraphQL",type:"data",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"],linguistLanguageId:139}],GW={bracketSpacing:PZ.bracketSpacing},KW=GW,UW=[{name:"Handlebars",type:"markup",extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",aliases:["hbs","htmlbars"],parsers:["glimmer"],vscodeLanguageIds:["handlebars"],linguistLanguageId:155}],wW=[{name:"Angular",type:"markup",extensions:[".component.html"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["angular"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"HTML",type:"markup",extensions:[".html",".hta",".htm",".html.hl",".inc",".xht",".xhtml"],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["html"],vscodeLanguageIds:["html"],linguistLanguageId:146},{name:"Lightning Web Components",type:"markup",extensions:[],tmScope:"text.html.basic",aceMode:"html",aliases:["xhtml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["lwc"],vscodeLanguageIds:["html"],filenames:[],linguistLanguageId:146},{name:"MJML",type:"markup",extensions:[".mjml"],tmScope:"text.mjml.basic",aceMode:"html",aliases:["MJML","mjml"],codemirrorMode:"htmlmixed",codemirrorMimeType:"text/html",parsers:["mjml"],filenames:[],vscodeLanguageIds:["mjml"],linguistLanguageId:146},{name:"Vue",type:"markup",extensions:[".vue"],tmScope:"source.vue",aceMode:"html",parsers:["vue"],vscodeLanguageIds:["vue"],linguistLanguageId:391}],u5="HTML",MW={bracketSameLine:PZ.bracketSameLine,htmlWhitespaceSensitivity:{category:u5,type:"choice",default:"css",description:"How to handle whitespaces in HTML.",choices:[{value:"css",description:"Respect the default value of CSS display property."},{value:"strict",description:"Whitespaces are considered sensitive."},{value:"ignore",description:"Whitespaces are considered insensitive."}]},singleAttributePerLine:PZ.singleAttributePerLine,vueIndentScriptAndStyle:{category:u5,type:"boolean",default:!1,description:"Indent script and style tags in Vue files."}},kW=MW,bW=[{name:"JavaScript",type:"programming",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],tmScope:"source.js",aceMode:"javascript",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],filenames:["Jakefile","start.frag","end.frag"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"],linguistLanguageId:183},{name:"Flow",type:"programming",extensions:[".js.flow"],tmScope:"source.js",aceMode:"javascript",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],filenames:[],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",extensions:[".jsx"],tmScope:"source.js.jsx",aceMode:"javascript",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,filenames:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],w0="JavaScript",BW={arrowParens:{category:w0,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:PZ.bracketSameLine,objectWrap:PZ.objectWrap,bracketSpacing:PZ.bracketSpacing,jsxBracketSameLine:{category:w0,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:w0,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:w0,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:w0,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:PZ.singleQuote,jsxSingleQuote:{category:w0,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:w0,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:w0,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:PZ.singleAttributePerLine},SW=BW,FW=[{name:"JSON.stringify",type:"data",extensions:[".importmap"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:["package.json","package-lock.json","composer.json"],parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],tmScope:"source.json",aceMode:"json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],tmScope:"source.json.comments",aceMode:"javascript",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",filenames:[],parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",extensions:[".json5"],tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],NW=[{name:"Markdown",type:"prose",extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:["contents.lr","README"],wrap:!0,parsers:["markdown"],vscodeLanguageIds:["markdown"],linguistLanguageId:222},{name:"MDX",type:"prose",extensions:[".mdx"],tmScope:"text.md",aceMode:"markdown",aliases:["md","pandoc"],codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",filenames:[],wrap:!0,parsers:["mdx"],vscodeLanguageIds:["mdx"],linguistLanguageId:222}],hW={proseWrap:PZ.proseWrap,singleQuote:PZ.singleQuote},LW=hW,AW=[{name:"YAML",type:"data",extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],tmScope:"source.yaml",aceMode:"yaml",aliases:["yml"],codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",filenames:[".clang-format",".clang-tidy",".clangd",".gemrc","CITATION.cff","glide.lock","pixi.lock",".prettierrc",".stylelintrc",".lintstagedrc"],parsers:["yaml"],vscodeLanguageIds:["yaml","ansible","dockercompose","github-actions-workflow","home-assistant"],linguistLanguageId:407}],fW={bracketSpacing:PZ.bracketSpacing,singleQuote:PZ.singleQuote,proseWrap:PZ.proseWrap},gW=fW;function mW(Z){let $=Object.create(null),J=Object.create(null);for(let{importPlugin:z,parsers:V=[],printers:q=[]}of Z){let Q=async()=>{let W=await z();return Object.assign($,W.parsers),Object.assign(J,W.printers),W};for(let W of V)$[W]=async()=>(await Q()).parsers[W];for(let W of q)J[W]=async()=>(await Q()).printers[W]}return{parsers:$,printers:J}}var RW={...jW,...KW,...kW,...SW,...LW,...gW},YW=[...XW,...yW,...UW,...wW,...bW,...FW,...NW,...AW],{parsers:IW,printers:PW}=mW([{importPlugin:()=>import("./chunk-d4faz5xa.js"),parsers:["acorn","espree"]},{importPlugin:()=>import("./chunk-j15wejz0.js"),parsers:["__ng_action","__ng_binding","__ng_interpolation","__ng_directive"]},{importPlugin:()=>import("./chunk-6pt6nqwk.js"),parsers:["babel","babel-flow","babel-ts","__js_expression","__ts_expression","__vue_expression","__vue_ts_expression","__vue_event_binding","__vue_ts_event_binding","__babel_estree","json","json5","jsonc","json-stringify"]},{importPlugin:()=>import("./chunk-gfvq78gy.js"),printers:["estree","estree-json"]},{importPlugin:()=>import("./chunk-9mabvb06.js"),parsers:["flow"]},{importPlugin:()=>import("./chunk-f0dp1tf9.js"),parsers:["glimmer"],printers:["glimmer"]},{importPlugin:()=>import("./chunk-veptx3fk.js"),parsers:["graphql"],printers:["graphql"]},{importPlugin:()=>import("./chunk-rxt6gktt.js"),parsers:["html","angular","vue","lwc","mjml"],printers:["html"]},{importPlugin:()=>import("./chunk-0ejx0yqx.js"),parsers:["markdown","mdx","remark"],printers:["mdast"]},{importPlugin:()=>import("./chunk-nzz7gzg2.js"),parsers:["meriyah"]},{importPlugin:()=>import("./chunk-bxnsrggq.js"),parsers:["css","less","scss"],printers:["postcss"]},{importPlugin:()=>import("./chunk-eqsank84.js"),parsers:["typescript"]},{importPlugin:()=>import("./chunk-wf0n1cs9.js"),parsers:["yaml"],printers:["yaml"]}]);function CW(){return[G7]}var K7=CW;function OW(Z,$){return D6(Z,TW.join($,"noop.js"))}var uW=OW;async function DW(Z,$){if(t1(Z))return import(Z);if(D5.isAbsolute(Z))return import(l5(Z).href);try{return await import(l5(D5.resolve(Z)).href)}catch{return uW(Z,$)}}async function lW(Z,$){let J=await DW(Z,$);return{name:Z,...J.default??J}}var i1=new Map;function pW(Z){if(typeof Z!=="string"&&!(Z instanceof URL))return Z;let $=process.cwd(),J=JSON.stringify({name:Z,cwd:$});if(!i1.has(J))i1.set(J,lW(Z,$));return i1.get(J)}function EW(){i1.clear()}function _W(Z=[]){return Promise.all(Z.map(($)=>pW($)))}var U7=_W,iW=_Z(x$(),1),aW=s1.sep==="\\"?(Z)=>B1(!1,Z,"\\","/"):(Z)=>Z;function rW(Z,$){let J=Z2($),z=t1(Z)?sW.fileURLToPath(Z):s1.resolve(Z);return s1.relative(J?s1.dirname(J):process.cwd(),z)}async function xW(Z,$){let J="";if(Z)J+=await b1(Z)??"";if(!$)J+=`
|
|
108
108
|
node_modules`;if(!J)return;let z=(0,iW.default)({allowRelativePaths:!0}).add(J);return(V)=>z.checkIgnore(aW(rW(V,Z))).ignored}async function w7(Z,$){if(Z.length===0&&!$)Z=[void 0];let J=(await Promise.all(Z.map((z)=>xW(z,$)))).filter(Boolean);return(z)=>J.some((V)=>V(z))}async function cW(Z,$){let{ignorePath:J,withNodeModules:z}=$;return(await w7(J,z))(Z)}function nW(Z,$){return $=new Set($),Object.fromEntries(Object.entries(Z).filter(([J])=>!$.has(J)))}var dW=nW;async function eW(Z,$={}){if(typeof Z!=="string"&&!(Z instanceof URL))throw TypeError(`expect \`file\` to be a string or URL, got \`${typeof Z}\``);let{ignorePath:J,withNodeModules:z}=$;if(!Array.isArray(J))J=[J];let V=await cW(Z,{ignorePath:J,withNodeModules:z}),q;if(!V)q=$.parser??await oW(Z,$);return{ignored:V,inferredParser:q??null}}async function oW(Z,$){let J;if($.resolveConfig!==!1)J=await p6(Z,{editorconfig:!1});if(J==null?void 0:J.parser)return J.parser;let z=$.plugins??(J==null?void 0:J.plugins)??[];return z=(await Promise.all([K7(),U7(z)])).flat(),h4({plugins:z},{physicalFile:Z})}var tW=eW,ZH="3.6.2",M7={};M1(M7,{addDanglingComment:()=>D0,addLeadingComment:()=>U1,addTrailingComment:()=>w1,getAlignmentSize:()=>b4,getIndentSize:()=>QH,getMaxContinuousCount:()=>XH,getNextNonSpaceNonCommentCharacter:()=>jH,getNextNonSpaceNonCommentCharacterIndex:()=>SH,getPreferredQuote:()=>GH,getStringWidth:()=>M4,hasNewline:()=>b0,hasNewlineInRange:()=>UH,hasSpaces:()=>MH,isNextLineEmpty:()=>LH,isNextLineEmptyAfterIndex:()=>m4,isPreviousLineEmpty:()=>NH,makeString:()=>bH,skip:()=>S1,skipEverythingButNewLine:()=>x6,skipInlineComment:()=>A4,skipNewline:()=>_0,skipSpaces:()=>F0,skipToLineEnd:()=>r6,skipTrailingComment:()=>f4,skipWhitespace:()=>xq});function $H(Z,$){if($===!1)return!1;if(Z.charAt($)==="/"&&Z.charAt($+1)==="*"){for(let J=$+2;J<Z.length;++J)if(Z.charAt(J)==="*"&&Z.charAt(J+1)==="/")return J+2}return $}var A4=$H;function JH(Z,$){if($===!1)return!1;if(Z.charAt($)==="/"&&Z.charAt($+1)==="/")return x6(Z,$);return $}var f4=JH;function zH(Z,$){let J=null,z=$;while(z!==J)J=z,z=F0(Z,z),z=A4(Z,z),z=f4(Z,z),z=_0(Z,z);return z}var g4=zH;function VH(Z,$){let J=null,z=$;while(z!==J)J=z,z=r6(Z,z),z=A4(Z,z),z=F0(Z,z);return z=f4(Z,z),z=_0(Z,z),z!==!1&&b0(Z,z)}var m4=VH;function qH(Z,$){let J=Z.lastIndexOf(`
|
|
109
109
|
`);if(J===-1)return 0;return b4(Z.slice(J+1).match(/^[\t ]*/u)[0],$)}var QH=qH;function WH(Z){if(typeof Z!=="string")throw TypeError("Expected a string");return Z.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function HH(Z,$){let J=Z.match(new RegExp(`(${WH($)})+`,"gu"));if(J===null)return 0;return J.reduce((z,V)=>Math.max(z,V.length/$.length),0)}var XH=HH;function vH(Z,$){let J=g4(Z,$);return J===!1?"":Z.charAt(J)}var jH=vH,I1="'",p5='"';function yH(Z,$){let J=$===!0||$===I1?I1:p5,z=J===I1?p5:I1,V=0,q=0;for(let Q of Z)if(Q===J)V++;else if(Q===z)q++;return V>q?z:J}var GH=yH;function KH(Z,$,J){for(let z=$;z<J;++z)if(Z.charAt(z)===`
|
|
110
110
|
`)return!0;return!1}var UH=KH;function wH(Z,$,J={}){return F0(Z,J.backwards?$-1:$,J)!==$}var MH=wH;function kH(Z,$,J){let z=$==='"'?"'":'"',q=B1(!1,Z,/\\(.)|(["'])/gsu,(Q,W,H)=>{if(W===z)return W;if(H===$)return"\\"+H;if(H)return H;return J&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(W)?W:"\\"+W});return $+q+$}var bH=kH;function BH(Z,$,J){return g4(Z,J($))}function SH(Z,$){return arguments.length===2||typeof $==="number"?g4(Z,$):BH(...arguments)}function FH(Z,$,J){return F4(Z,J($))}function NH(Z,$){return arguments.length===2||typeof $==="number"?F4(Z,$):FH(...arguments)}function hH(Z,$,J){return m4(Z,J($))}function LH(Z,$){return arguments.length===2||typeof $==="number"?m4(Z,$):hH(...arguments)}function k0(Z,$=1){return async(...J)=>{let z=J[$]??{},{plugins:V=[]}=z;return J[$]={...z,plugins:(await Promise.all([K7(),U7(V)])).flat()},Z(...J)}}var k7=k0(j7);async function b7(Z,$){let{formatted:J}=await k7(Z,{...$,cursorOffset:-1});return J}async function AH(Z,$){return await b7(Z,$)===Z}async function fH(){Qq(),EW()}var gH=k0(N4,0),mH=k0((Z,$)=>h4($,{physicalFile:Z})),RH={errors:X6,optionCategories:y7,createIsIgnoredFunction:w7,formatOptionsHiddenDefaults:c2,normalizeOptions:$7,getSupportInfoWithoutPlugins:N4,normalizeOptionSettings:t6,inferParser:(Z,$)=>Promise.resolve(($==null?void 0:$.parser)??mH(Z,$)),vnopts:{ChoiceSchema:H6,apiDescriptor:l0},fastGlob:JJ.default,createTwoFilesPatch:ZJ,picocolors:zJ.default,leven:J6,utils:{omit:dW,createMockable:v6}},YH={parse:k0(eQ),formatAST:k0(oQ),formatDoc:k0(tQ),printToDoc:k0(ZW),printDocToString:k0($W),mockable:j6},KX=Z6;export{ZH as version,M7 as util,Xq as resolveConfigFile,p6 as resolveConfig,gH as getSupportInfo,tW as getFileInfo,k7 as formatWithCursor,b7 as format,U2 as doc,KX as default,fH as clearConfigCache,AH as check,RH as __internal,YH as __debug};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{$n as c,Ao as D,Bo as E,Co as F,Do as G,Eo as H,Fo as I,Go as J,Ho as K,Io as L,Jo as M,Ko as N,Lo as O,Mo as P,No as Q,Oo as R,Po as S,Qo as T,Ro as U,So as V,To as W,Uo as X,Vo as Y,Zn as a,_n as b,ao as d,bo as e,co as f,do as g,eo as h,fo as i,go as j,ho as k,io as l,jo as m,ko as n,lo as o,mo as p,no as q,oo as r,po as s,qo as t,ro as u,so as v,to as w,uo as x,vo as y,wo as z,xo as A,yo as B,zo as C}from"./chunk-ae1b15bd.js";import"./chunk-6qwnty59.js";import"./chunk-crqycrs4.js";import"./chunk-1bq15kf0.js";import"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import"./chunk-4yd2vvh6.js";import"./chunk-fkq0v5qv.js";import"./chunk-1e75j4m1.js";import"./chunk-5re7995e.js";import"./chunk-mnjz8nqs.js";import"./chunk-6yshpz0z.js";import"./chunk-5dvy83ms.js";import"./chunk-ffx0cr44.js";import"./chunk-33mzqyyb.js";import"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-wfpnv00c.js";import"./chunk-9kc2th5c.js";import"./chunk-sh03ka27.js";export{S as transformQlexStream,T as toOrchestratedSSEStream,U as toOpenAICompletion,o as sanitizeUpstreamProviderError,d as safeQlexRequestId,G as resolveToolMode,c as resolveQlexRetryable,D as renderToolProtocolPrompt,J as recordTierOutputAdvisory,u as planTierBudget,P as partialTagSuffixLength,O as parseQlexFrame,t as parseQlexError,w as normalizeQlexMessagesWithReport,x as normalizeQlexMessages,A as mergeLeadingSystemMessages,r as isGatewayRequiredError,N as isFreeTierFallbackRoutingChunk,y as hasUserRoleMessage,z as hasUsableUserMessage,H as hasToolContext,Y as getTierOutputBudgetRecovery,K as getTierOutputAdvisory,M as flushTierOutputAdvisoryWrites,v as flattenMessageContent,s as extractQlexErrorMetadata,F as encodeToolProtocolMessages,Q as encodeExtractedArguments,E as decodeToolArgumentsToObject,W as createQlexProvider,V as createCustomFetch,L as clearTierOutputAdvisories,q as classifyQlexStreamError,X as canIncreaseTierOutputBudget,I as buildQlexBody,R as ToolCallExtractor,B as TOOL_CALL_OPEN,C as TOOL_CALL_CLOSE,p as QlexStreamError,j as QlexRequestTooLargeError,i as QlexRequestRejectedError,k as QlexRequestNotSentError,g as QlexRateLimitError,e as QlexNotLoggedInError,h as QlexInvalidCredentialsError,f as QlexInsufficientBalanceError,l as QlexGatewayError,a as QLEX_STREAM_URL,n as QLEX_STREAM_IDLE_TIMEOUT_MS,m as QLEX_RESPONSE_TIMEOUT_MS,b as QLEX_ORCHESTRATED_URL};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{
|
|
2
|
+
import{Te as F}from"./chunk-meehnnv9.js";import{df as B,gf as D,xf as E}from"./chunk-4ycg2c6f.js";import{Uq as w}from"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-sh03ka27.js";var P="2.0.39";function Q(q={}){var x;let G=E((x=q.baseURL)!=null?x:"https://api.v0.dev/v1"),J=()=>B({Authorization:`Bearer ${D({apiKey:q.apiKey,environmentVariableName:"VERCEL_API_KEY",description:"Vercel"})}`,...q.headers},`ai-sdk/vercel/${P}`),K=(j)=>({provider:`vercel.${j}`,url:({path:N})=>`${G}${N}`,headers:J,fetch:q.fetch}),z=(j)=>{return new F(j,{...K("chat")})},k=(j)=>z(j);return k.specificationVersion="v3",k.languageModel=z,k.embeddingModel=(j)=>{throw new w({modelId:j,modelType:"embeddingModel"})},k.textEmbeddingModel=k.embeddingModel,k.imageModel=(j)=>{throw new w({modelId:j,modelType:"imageModel"})},k}var X=Q();export{X as vercel,Q as createVercel,P as VERSION};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-0mztgsxp.js";import"./chunk-sh03ka27.js";var e={"ui.sessionReview.title":"\u4F1A\u8BDD\u53D8\u66F4","ui.sessionReview.title.lastTurn":"\u4E0A\u4E00\u8F6E\u53D8\u66F4","ui.sessionReview.diffStyle.unified":"\u7EDF\u4E00","ui.sessionReview.diffStyle.split":"\u62C6\u5206","ui.sessionReview.openFile":"\u6253\u5F00\u6587\u4EF6","ui.sessionReview.selection.line":"\u7B2C {{line}} \u884C","ui.sessionReview.selection.lines":"\u7B2C {{start}}-{{end}} \u884C","ui.sessionReview.expandAll":"\u5168\u90E8\u5C55\u5F00","ui.sessionReview.collapseAll":"\u5168\u90E8\u6536\u8D77","ui.sessionReview.change.added":"\u5DF2\u6DFB\u52A0","ui.sessionReview.change.removed":"\u5DF2\u79FB\u9664","ui.sessionReview.change.modified":"\u5DF2\u4FEE\u6539","ui.sessionReview.image.loading":"\u52A0\u8F7D\u4E2D...","ui.sessionReview.image.placeholder":"\u56FE\u7247","ui.sessionReview.largeDiff.title":"\u5DEE\u5F02\u8FC7\u5927\uFF0C\u65E0\u6CD5\u6E32\u67D3","ui.sessionReview.largeDiff.meta":"\u9650\u5236\uFF1A{{limit}} \u884C\u53D8\u66F4\u3002\u5F53\u524D\uFF1A{{current}} \u884C\u53D8\u66F4\u3002","ui.sessionReview.largeDiff.renderAnyway":"\u4ECD\u7136\u6E32\u67D3","ui.fileMedia.kind.image":"\u56FE\u7247","ui.fileMedia.kind.audio":"\u97F3\u9891","ui.fileMedia.state.removed":"{{kind}}\u5DF2\u79FB\u9664","ui.fileMedia.state.loading":"\u6B63\u5728\u52A0\u8F7D{{kind}}...","ui.fileMedia.state.error":"\u52A0\u8F7D{{kind}}\u5931\u8D25","ui.fileMedia.state.unavailable":"{{kind}}\u4E0D\u53EF\u9884\u89C8","ui.fileMedia.binary.title":"\u4E8C\u8FDB\u5236\u6587\u4EF6","ui.fileMedia.binary.description.path":"\u65E0\u6CD5\u663E\u793A {{path}}\uFF0C\u56E0\u4E3A\u5B83\u662F\u4E8C\u8FDB\u5236\u6587\u4EF6\u3002","ui.fileMedia.binary.description.default":"\u65E0\u6CD5\u663E\u793A\u6B64\u6587\u4EF6\uFF0C\u56E0\u4E3A\u5B83\u662F\u4E8C\u8FDB\u5236\u6587\u4EF6\u3002","ui.lineComment.label.prefix":"\u8BC4\u8BBA ","ui.lineComment.label.suffix":"","ui.lineComment.editorLabel.prefix":"\u6B63\u5728\u8BC4\u8BBA ","ui.lineComment.editorLabel.suffix":"","ui.lineComment.placeholder":"\u6DFB\u52A0\u8BC4\u8BBA","ui.lineComment.submit":"\u8BC4\u8BBA","ui.sessionTurn.steps.show":"\u663E\u793A\u6B65\u9AA4","ui.sessionTurn.steps.hide":"\u9690\u85CF\u6B65\u9AA4","ui.sessionTurn.summary.response":"\u56DE\u590D","ui.sessionTurn.diff.showMore":"\u663E\u793A\u66F4\u591A\u66F4\u6539\uFF08{{count}}\uFF09","ui.sessionTurn.retry.retrying":"\u91CD\u8BD5\u4E2D","ui.sessionTurn.retry.inSeconds":"{{seconds}} \u79D2\u540E","ui.sessionTurn.retry.attempt":"\u7B2C {{attempt}} \u6B21","ui.sessionTurn.retry.attemptLine":"{{line}} - \u7B2C {{attempt}} \u6B21","ui.sessionTurn.retry.geminiHot":"gemini \u5F53\u524D\u8FC7\u8F7D","ui.sessionTurn.error.freeUsageExceeded":"\u514D\u8D39\u4F7F\u7528\u989D\u5EA6\u5DF2\u7528\u5B8C","ui.sessionTurn.error.addQredits":"\u6DFB\u52A0\u79EF\u5206","ui.sessionTurn.status.delegating":"\u6B63\u5728\u59D4\u6D3E\u5DE5\u4F5C","ui.sessionTurn.status.planning":"\u6B63\u5728\u89C4\u5212\u4E0B\u4E00\u6B65","ui.sessionTurn.status.gatheringContext":"\u6B63\u5728\u63A2\u7D22","ui.sessionTurn.status.gatheredContext":"\u5DF2\u63A2\u7D22","ui.sessionTurn.status.searchingCodebase":"\u6B63\u5728\u641C\u7D22\u4EE3\u7801\u5E93","ui.sessionTurn.status.searchingWeb":"\u6B63\u5728\u641C\u7D22\u7F51\u9875","ui.sessionTurn.status.makingEdits":"\u6B63\u5728\u4FEE\u6539","ui.sessionTurn.status.runningCommands":"\u6B63\u5728\u8FD0\u884C\u547D\u4EE4","ui.sessionTurn.status.thinking":"\u601D\u8003\u4E2D","ui.sessionTurn.status.thinkingWithTopic":"\u601D\u8003\uFF1A{{topic}}","ui.sessionTurn.status.gatheringThoughts":"\u6B63\u5728\u6574\u7406\u601D\u8DEF","ui.sessionTurn.status.consideringNextSteps":"\u6B63\u5728\u8003\u8651\u4E0B\u4E00\u6B65","ui.messagePart.questions.dismissed":"\u95EE\u9898\u5DF2\u5FFD\u7565","ui.messagePart.compaction":"\u4F1A\u8BDD\u5DF2\u538B\u7F29","ui.messagePart.context.read.one":"{{count}} \u6B21\u8BFB\u53D6","ui.messagePart.context.read.other":"{{count}} \u6B21\u8BFB\u53D6","ui.messagePart.context.search.one":"{{count}} \u6B21\u641C\u7D22","ui.messagePart.context.search.other":"{{count}} \u6B21\u641C\u7D22","ui.messagePart.context.list.one":"{{count}} \u4E2A\u5217\u8868","ui.messagePart.context.list.other":"{{count}} \u4E2A\u5217\u8868","ui.messagePart.diagnostic.error":"\u9519\u8BEF","ui.messagePart.title.edit":"\u7F16\u8F91","ui.messagePart.title.write":"\u5199\u5165","ui.messagePart.option.typeOwnAnswer":"\u8F93\u5165\u81EA\u5DF1\u7684\u7B54\u6848","ui.messagePart.review.title":"\u68C0\u67E5\u4F60\u7684\u7B54\u6848","ui.list.loading":"\u52A0\u8F7D\u4E2D","ui.list.empty":"\u65E0\u7ED3\u679C","ui.list.clearFilter":"\u6E05\u9664\u7B5B\u9009","ui.list.emptyWithFilter.prefix":"\u6CA1\u6709\u5173\u4E8E","ui.list.emptyWithFilter.suffix":"\u7684\u7ED3\u679C","ui.messageNav.newMessage":"\u65B0\u6D88\u606F","ui.textField.copyToClipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","ui.textField.copyLink":"\u590D\u5236\u94FE\u63A5","ui.textField.copied":"\u5DF2\u590D\u5236","ui.imagePreview.alt":"\u56FE\u7247\u9884\u89C8","ui.scrollView.ariaLabel":"\u53EF\u6EDA\u52A8\u5185\u5BB9","ui.tool.read":"\u8BFB\u53D6","ui.tool.loaded":"\u5DF2\u52A0\u8F7D","ui.tool.list":"\u5217\u8868","ui.tool.glob":"Glob","ui.tool.grep":"Grep","ui.tool.webfetch":"Webfetch","ui.tool.websearch":"\u7F51\u7EDC\u641C\u7D22","ui.tool.codesearch":"\u4EE3\u7801\u641C\u7D22","ui.tool.shell":"Shell","ui.tool.patch":"\u8865\u4E01","ui.tool.todos":"\u5F85\u529E","ui.tool.todos.read":"\u8BFB\u53D6\u5F85\u529E","ui.tool.questions":"\u95EE\u9898","ui.tool.agent":"{{type}} \u667A\u80FD\u4F53","ui.tool.agent.default":"\u667A\u80FD\u4F53","ui.common.file.one":"\u4E2A\u6587\u4EF6","ui.common.file.other":"\u4E2A\u6587\u4EF6","ui.common.question.one":"\u4E2A\u95EE\u9898","ui.common.question.other":"\u4E2A\u95EE\u9898","ui.common.add":"\u6DFB\u52A0","ui.common.back":"\u8FD4\u56DE","ui.common.cancel":"\u53D6\u6D88","ui.common.confirm":"\u786E\u8BA4","ui.common.dismiss":"\u5FFD\u7565","ui.common.close":"\u5173\u95ED","ui.common.next":"\u4E0B\u4E00\u6B65","ui.common.submit":"\u63D0\u4EA4","ui.permission.deny":"\u62D2\u7EDD","ui.permission.allowAlways":"\u59CB\u7EC8\u5141\u8BB8","ui.permission.allowOnce":"\u5141\u8BB8\u4E00\u6B21","ui.message.expand":"\u5C55\u5F00\u6D88\u606F","ui.message.collapse":"\u6536\u8D77\u6D88\u606F","ui.message.copy":"\u590D\u5236","ui.message.copyMessage":"\u590D\u5236\u6D88\u606F","ui.message.forkMessage":"\u5206\u53C9\u5230\u65B0\u4F1A\u8BDD","ui.message.revertMessage":"\u91CD\u7F6E\u5230\u6B64\u70B9","ui.message.copyResponse":"\u590D\u5236\u56DE\u590D","ui.message.copied":"\u5DF2\u590D\u5236\uFF01","ui.message.interrupted":"\u5DF2\u4E2D\u65AD","ui.message.queued":"\u6392\u961F\u4E2D","ui.message.attachment.alt":"\u9644\u4EF6","ui.patch.action.deleted":"\u5DF2\u5220\u9664","ui.patch.action.created":"\u5DF2\u521B\u5EFA","ui.patch.action.moved":"\u5DF2\u79FB\u52A8","ui.patch.action.patched":"\u5DF2\u5E94\u7528\u8865\u4E01","ui.question.subtitle.answered":"{{count}} \u5DF2\u56DE\u7B54","ui.question.answer.none":"(\u65E0\u7B54\u6848)","ui.question.review.notAnswered":"(\u672A\u56DE\u7B54)","ui.question.multiHint":"\u53EF\u591A\u9009","ui.question.singleHint":"\u9009\u62E9\u4E00\u4E2A\u7B54\u6848","ui.question.custom.placeholder":"\u8F93\u5165\u4F60\u7684\u7B54\u6848...","ui.fileSearch.placeholder":"\u67E5\u627E","ui.fileSearch.previousMatch":"\u4E0A\u4E00\u4E2A","ui.fileSearch.nextMatch":"\u4E0B\u4E00\u4E2A","ui.fileSearch.close":"\u5173\u95ED\u641C\u7D22","ui.tool.task":"\u4EFB\u52A1","ui.tool.skill":"\u6280\u80FD","ui.basicTool.called":"\u8C03\u7528\u4E86 `{{tool}}`","ui.toolErrorCard.failed":"\u5931\u8D25","ui.toolErrorCard.copyError":"\u590D\u5236\u9519\u8BEF","ui.message.duration.seconds":"{{count}}\u79D2","ui.message.duration.minutesSeconds":"{{minutes}}\u5206 {{seconds}}\u79D2"};export{e as dict};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// @bun
|
|
2
|
-
import{$d as
|
|
2
|
+
import{$d as O,Vd as m,Yd as P,Zd as R,_d as k,be as q,ce as $,de as I}from"./chunk-p0852vfn.js";import"./chunk-ej0yzstw.js";import{fe as h}from"./chunk-w8nj5ph5.js";import{cg as r}from"./chunk-psmwrvqs.js";import{Ah as L,ph as E}from"./chunk-6zdzbmzs.js";import"./chunk-qn1fhqyw.js";import"./chunk-674pexjx.js";import"./chunk-zjyaze0d.js";import"./chunk-xdcwx384.js";import"./chunk-rd08wx37.js";import"./chunk-fp2xgnjn.js";import{Dj as N,Sk as x}from"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import{Ml as i}from"./chunk-rt49c6js.js";import"./chunk-4gzggzc0.js";import"./chunk-31a47ptm.js";import"./chunk-ywj77e0m.js";import"./chunk-83n11xym.js";import"./chunk-h036zy9e.js";import"./chunk-j3agzs13.js";import"./chunk-3152y1q9.js";import"./chunk-71jmhvef.js";import"./chunk-qrztx1b4.js";import"./chunk-ae1b15bd.js";import"./chunk-6qwnty59.js";import"./chunk-crqycrs4.js";import"./chunk-1bq15kf0.js";import"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import"./chunk-m6967jtv.js";import"./chunk-j2snkw45.js";import"./chunk-bmdqb48f.js";import"./chunk-3cs1qf8x.js";import"./chunk-4xqwt6dr.js";import"./chunk-g77kddrs.js";import"./chunk-kegvr7wt.js";import"./chunk-2tkgtasa.js";import"./chunk-6cztstry.js";import"./chunk-4yd2vvh6.js";import"./chunk-fkq0v5qv.js";import"./chunk-1e75j4m1.js";import"./chunk-2w3n0q9m.js";import"./chunk-6dd2dx69.js";import"./chunk-fdmz0502.js";import"./chunk-5re7995e.js";import"./chunk-mnjz8nqs.js";import"./chunk-6yshpz0z.js";import"./chunk-5dvy83ms.js";import{hu as C,mu as j}from"./chunk-ffx0cr44.js";import"./chunk-33mzqyyb.js";import"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-wfpnv00c.js";import"./chunk-9kc2th5c.js";import"./chunk-hf39qx6t.js";import"./chunk-x0de4z05.js";import{uP as F}from"./chunk-sh03ka27.js";import u from"path";import U from"fs/promises";var T=F(N(),1);import{EOL as S}from"os";var c=["bash","read","write","edit","glob","grep","webfetch","actor","task"],B=h({command:"create",describe:"create a new agent",builder:(o)=>o.option("path",{type:"string",describe:"directory path to generate the agent file"}).option("description",{type:"string",describe:"what the agent should do"}).option("mode",{type:"string",describe:"agent mode",choices:["all","primary","subagent"]}).option("tools",{type:"string",describe:`comma-separated list of tools to enable (default: all). Available: "${c.join(", ")}"`}).option("model",{type:"string",alias:["m"],describe:"model to use in the format of provider/model"}),async handler(o){await i.provide({directory:process.cwd(),async fn(){let{path:l,description:t,mode:s,tools:p}=o,d=l&&t&&s&&p!==void 0;if(!d)r.empty(),R("Create agent");let D=i.project,g;if(l)g=u.join(l,"agent");else{let e="global";if(D.vcs==="git"){let n=await $({message:"Location",options:[{label:"Current project",value:"project",hint:i.worktree},{label:"Global",value:"global",hint:j.Path.config}]});if(m(n))throw new r.CancelledError;e=n}g=u.join(e==="global"?j.Path.config:u.join(i.worktree,".qitqode"),"agent")}let b;if(t)b=t;else{let e=await I({message:"Description",placeholder:"What should this agent do?",validate:(n)=>n&&n.length>0?void 0:"Required"});if(m(e))throw new r.CancelledError;b=e}let w=q();w.start("Generating agent configuration...");let G=o.model?x.parseModel(o.model):void 0,f=await L.runPromise(E.Service.use((e)=>e.generate({description:b,model:G}))).catch((e)=>{if(w.stop(`LLM failed to generate agent: ${e.message}`,1),d)process.exit(1);throw new r.CancelledError});w.stop(`Agent ${f.identifier} generated`);let y;if(p!==void 0)y=p?p.split(",").map((e)=>e.trim()):c;else{let e=await O({message:"Select tools to enable (Space to toggle)",options:c.map((n)=>({label:n,value:n})),initialValues:c});if(m(e))throw new r.CancelledError;y=e}let v;if(s)v=s;else{let e=await $({message:"Agent mode",options:[{label:"All",value:"all",hint:"Can function in both primary and subagent roles"},{label:"Primary",value:"primary",hint:"Acts as a primary/main agent"},{label:"Subagent",value:"subagent",hint:"Can be used as a subagent by other agents"}],initialValue:"all"});if(m(e))throw new r.CancelledError;v=e}let A={};for(let e of c)if(!y.includes(e))A[e]=!1;let M={description:f.whenToUse,mode:v};if(Object.keys(A).length>0)M.tools=A;let V=T.default.stringify(f.systemPrompt,M),a=u.join(g,`${f.identifier}.md`);if(await U.mkdir(g,{recursive:!0}),await C.exists(a)){if(d)console.error(`Error: Agent file already exists: ${a}`),process.exit(1);throw P.error(`Agent file already exists: ${a}`),new r.CancelledError}if(await C.write(a,V),d)console.log(a);else P.success(`Agent created: ${a}`),k("Done")}})}}),J=h({command:"list",describe:"list all available agents",async handler(){await i.provide({directory:process.cwd(),async fn(){let l=(await L.runPromise(E.Service.use((t)=>t.list()))).sort((t,s)=>{if(t.native!==s.native)return t.native?-1:1;return t.name.localeCompare(s.name)});for(let t of l)process.stdout.write(`${t.name} (${t.mode})`+S),process.stdout.write(` ${JSON.stringify(t.permission,null,2)}`+S)}})}}),ne=h({command:"agent",describe:"manage agents",builder:(o)=>o.command(B).command(J).demandCommand(),async handler(){}});export{ne as AgentCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
import{Ip as h}from"./chunk-crqycrs4.js";import"./chunk-1bq15kf0.js";import"./chunk-pdcxmr6x.js";import"./chunk-cqtkxwd8.js";import"./chunk-a1mbach4.js";import"./chunk-sg9enzsp.js";import"./chunk-5q98z8ck.js";import"./chunk-sh03ka27.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};
|