@qitqode/qitqode-android-arm64 0.2.15 → 0.2.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/{chunk-wrzn87w0.js → chunk-098mr0zz.js} +1 -1
- package/bundle/{chunk-j15wejz0.js → chunk-0catm9vq.js} +1 -1
- package/bundle/{chunk-q896qkhe.js → chunk-0cqs1qkh.js} +1 -1
- package/bundle/{chunk-d10qre1b.js → chunk-0f3ncvfe.js} +1 -1
- package/bundle/{chunk-yhpwceqg.js → chunk-0gqwvt8w.js} +2 -2
- package/bundle/chunk-0mb55ytc.js +2 -0
- package/bundle/{chunk-dpbm03yh.js → chunk-0n2ncnwz.js} +1 -1
- package/bundle/chunk-0y0hm0m5.js +2 -0
- package/bundle/chunk-120e8yr1.js +2 -0
- package/bundle/{chunk-spcdwmy4.js → chunk-1aneepm5.js} +1 -1
- package/bundle/chunk-1dxm8yev.js +2 -0
- package/bundle/{chunk-96sra8g8.js → chunk-1jg7cybp.js} +1 -1
- package/bundle/{chunk-qk6jh32z.js → chunk-1k5nfw7g.js} +1 -1
- package/bundle/{chunk-fmcg649e.js → chunk-1kksj8cn.js} +1 -1
- package/bundle/chunk-1pgpv979.js +2 -0
- package/bundle/{chunk-szfqmkj6.js → chunk-1xsjkf4c.js} +1 -1
- package/bundle/{chunk-zx63mepv.js → chunk-1yetxft4.js} +1 -1
- package/bundle/chunk-23zh9s18.js +2 -0
- package/bundle/{chunk-8qpfphdz.js → chunk-24pf9s68.js} +1 -1
- package/bundle/chunk-2a0zf12g.js +2 -0
- package/bundle/chunk-2b8x31p3.js +2 -0
- package/bundle/chunk-2cvmdss3.js +2 -0
- package/bundle/{chunk-zhhcfqhh.js → chunk-2kvghwar.js} +1 -1
- package/bundle/{chunk-ch7s512a.js → chunk-2nkjwqpm.js} +1 -1
- package/bundle/chunk-2qbsg6dp.js +2 -0
- package/bundle/{chunk-9ttebtcf.js → chunk-2rvs18fx.js} +1 -1
- package/bundle/{chunk-rxt6gktt.js → chunk-2thbax1j.js} +1 -1
- package/bundle/{chunk-zbt53cb5.js → chunk-2zxygnx4.js} +1 -1
- package/bundle/{chunk-zgwasq3p.js → chunk-36kg3v3k.js} +1 -1
- package/bundle/{chunk-b6m5tr80.js → chunk-37hh7eee.js} +1 -1
- package/bundle/chunk-39mwv068.js +2 -0
- package/bundle/{chunk-set1f1wr.js → chunk-39z0qxkt.js} +1 -1
- package/bundle/{chunk-p0852vfn.js → chunk-3dfy9k0t.js} +2 -2
- package/bundle/{chunk-et3tgx7t.js → chunk-3e26pryk.js} +1 -1
- package/bundle/{chunk-w0t1ajhg.js → chunk-3eddms0g.js} +1 -1
- package/bundle/chunk-3re79hkf.js +2 -0
- package/bundle/{chunk-sy76e7nr.js → chunk-3vjs8aht.js} +1 -1
- package/bundle/{chunk-k769v1ds.js → chunk-3z7r4c0p.js} +1 -1
- package/bundle/chunk-40pe0tde.js +11 -0
- package/bundle/{chunk-0ejx0yqx.js → chunk-47nber5v.js} +1 -1
- package/bundle/{chunk-estc7tzt.js → chunk-491f4ab9.js} +2 -2
- package/bundle/{chunk-3152y1q9.js → chunk-4bp91rza.js} +1 -1
- package/bundle/{chunk-pdcxmr6x.js → chunk-4dy64hgp.js} +1 -1
- package/bundle/{chunk-0mztgsxp.js → chunk-4fqwg54p.js} +1 -1
- package/bundle/{chunk-2w3n0q9m.js → chunk-4gv7nsdd.js} +2 -2
- package/bundle/{chunk-csy1v12x.js → chunk-4nw19yab.js} +1 -1
- package/bundle/chunk-51fyaa6r.js +2 -0
- package/bundle/{chunk-kegvr7wt.js → chunk-52f62kr0.js} +2 -2
- package/bundle/chunk-52n4tdeh.js +5 -0
- package/bundle/{chunk-x4jnyj09.js → chunk-543jma8r.js} +1 -1
- package/bundle/chunk-58q03ah1.js +2 -0
- package/bundle/{chunk-hrcqbadm.js → chunk-5fhy0wb0.js} +1 -1
- package/bundle/{chunk-8zpsgfb6.js → chunk-5fym1zr2.js} +1 -1
- package/bundle/{chunk-a3g8de96.js → chunk-5k5jdayv.js} +1 -1
- package/bundle/chunk-5nmqgqj2.js +2 -0
- package/bundle/{chunk-psmwrvqs.js → chunk-5t69v8jg.js} +2 -2
- package/bundle/{chunk-7w571q26.js → chunk-5vtbg7pj.js} +1 -1
- package/bundle/{chunk-y4cz5s3h.js → chunk-5xmtzs15.js} +2 -2
- package/bundle/chunk-5ydg5ny1.js +2 -0
- package/bundle/{chunk-v5me0cj9.js → chunk-5z5rk3ng.js} +1 -1
- package/bundle/{chunk-5dvy83ms.js → chunk-62mb6wxm.js} +2 -2
- package/bundle/chunk-62mytrwv.js +2 -0
- package/bundle/{chunk-edvfqxfr.js → chunk-6396bg4p.js} +1 -1
- package/bundle/chunk-63bccmze.js +2 -0
- package/bundle/{chunk-1ypzf18e.js → chunk-64x1vtdq.js} +1 -1
- package/bundle/{chunk-9mabvb06.js → chunk-6kx4atkt.js} +1 -1
- package/bundle/{chunk-dmb0ez0m.js → chunk-6r7vm4xc.js} +3 -3
- package/bundle/{chunk-tcyzj3rz.js → chunk-6rggm6tm.js} +1 -1
- package/bundle/{chunk-fp2xgnjn.js → chunk-6vpc1y3w.js} +2 -2
- package/bundle/{chunk-71jmhvef.js → chunk-6vxddv5w.js} +2 -2
- package/bundle/chunk-6ynaebaw.js +2 -0
- package/bundle/{chunk-ep4drmt9.js → chunk-700jhn67.js} +1 -1
- package/bundle/{chunk-fdmz0502.js → chunk-76jbys6j.js} +2 -2
- package/bundle/chunk-782y3dm8.js +2 -0
- package/bundle/{chunk-d7h1dp0h.js → chunk-89g9wzc2.js} +1 -1
- package/bundle/chunk-8q50bha4.js +2 -0
- package/bundle/chunk-8v6qbhm1.js +2 -0
- package/bundle/chunk-955jtenj.js +2 -0
- package/bundle/chunk-95yzwxpf.js +2 -0
- package/bundle/{chunk-76wm7tw8.js → chunk-96281xfb.js} +2 -2
- package/bundle/{chunk-bdcd2mcb.js → chunk-96657nrr.js} +2 -2
- package/bundle/chunk-99ansgsj.js +2 -0
- package/bundle/{chunk-3c73rngn.js → chunk-9dd2krfn.js} +1 -1
- package/bundle/chunk-9exxjnxc.js +2 -0
- package/bundle/{chunk-eqsank84.js → chunk-9ge1mkfs.js} +1 -1
- package/bundle/{chunk-4r7fbkcm.js → chunk-9mmaja9n.js} +1 -1
- package/bundle/{chunk-mjkwd1sz.js → chunk-9rd7q5e9.js} +1 -1
- package/bundle/{chunk-6cztstry.js → chunk-9skj2w9e.js} +2 -2
- package/bundle/{chunk-nb4xtk1n.js → chunk-9tdbts1r.js} +1 -1
- package/bundle/{chunk-sg9enzsp.js → chunk-9tfm1dk2.js} +2 -2
- package/bundle/{chunk-z6qyx227.js → chunk-9xaea8h1.js} +1 -1
- package/bundle/{chunk-meehnnv9.js → chunk-a0c6w901.js} +2 -2
- package/bundle/chunk-a2tp2f6s.js +2 -0
- package/bundle/{chunk-69htq8kq.js → chunk-a3ynq3h7.js} +1 -1
- package/bundle/chunk-a4y0wjtq.js +3 -0
- package/bundle/{chunk-6dd2dx69.js → chunk-afagt413.js} +2 -2
- package/bundle/{chunk-px69995t.js → chunk-afzx47y2.js} +1 -1
- package/bundle/chunk-ag3s3t7x.js +2 -0
- package/bundle/{chunk-n7zd97hy.js → chunk-ajdn1n77.js} +2 -2
- package/bundle/chunk-arwm1qxm.js +2 -0
- package/bundle/{chunk-adws0hhk.js → chunk-awt3q88j.js} +2 -2
- package/bundle/{chunk-qn1fhqyw.js → chunk-az2pxgx6.js} +2 -2
- package/bundle/chunk-b0gq0s8a.js +2 -0
- package/bundle/{chunk-48rg4yhk.js → chunk-b2zfr7jz.js} +2 -2
- package/bundle/{chunk-mbmaeq0a.js → chunk-b63733cw.js} +1 -1
- package/bundle/chunk-b7430vg8.js +2 -0
- package/bundle/{chunk-4b56k59w.js → chunk-b7dw5ged.js} +1 -1
- package/bundle/{chunk-prz2fkn9.js → chunk-b83qf145.js} +1 -1
- package/bundle/{chunk-veptx3fk.js → chunk-b8w33ck9.js} +1 -1
- package/bundle/{chunk-674pexjx.js → chunk-bd21p9zz.js} +2 -2
- package/bundle/chunk-be2z0tr4.js +2 -0
- package/bundle/{chunk-x0de4z05.js → chunk-bkqemdv8.js} +2 -2
- package/bundle/chunk-bq585t67.js +2 -0
- package/bundle/chunk-bts3gw8w.js +2 -0
- package/bundle/{chunk-yvtkx4x4.js → chunk-c0sr83np.js} +1 -1
- package/bundle/{chunk-zh7e6kqs.js → chunk-c4tdfar1.js} +1 -1
- package/bundle/chunk-c6ege2yp.js +2 -0
- package/bundle/{chunk-00ft63qn.js → chunk-chs4bkgh.js} +1 -1
- package/bundle/{chunk-hmmn62jg.js → chunk-cm426ssg.js} +1 -1
- package/bundle/{chunk-crqycrs4.js → chunk-d4y5hyjg.js} +2 -2
- package/bundle/chunk-de0edzjs.js +2 -0
- package/bundle/{chunk-4xcwnwd6.js → chunk-der5kj1b.js} +1 -1
- package/bundle/{chunk-rk4c0zat.js → chunk-dhykktcp.js} +1 -1
- package/bundle/{chunk-mnjz8nqs.js → chunk-dm7hfb7f.js} +2 -2
- package/bundle/chunk-dntnvfdz.js +2 -0
- package/bundle/{chunk-q1dmxn63.js → chunk-dptvy1zn.js} +2 -2
- package/bundle/{chunk-2k2szpze.js → chunk-dqt8rrey.js} +1 -1
- package/bundle/{chunk-ky3fhz9z.js → chunk-dr003xka.js} +1 -1
- package/bundle/chunk-dtyzk0j7.js +2 -0
- package/bundle/{chunk-qrztx1b4.js → chunk-dwza14dk.js} +2 -2
- package/bundle/chunk-e3tmbywr.js +2 -0
- package/bundle/{chunk-ej0yzstw.js → chunk-e4nap6v9.js} +2 -2
- package/bundle/{chunk-5h1s0akp.js → chunk-e7x8v549.js} +1 -1
- package/bundle/{chunk-1e75j4m1.js → chunk-e826jvr2.js} +2 -2
- package/bundle/{chunk-djdfpezf.js → chunk-edm4c812.js} +1 -1
- package/bundle/{chunk-ws720v4j.js → chunk-eearwfay.js} +1 -1
- package/bundle/{chunk-knqpyc7s.js → chunk-ekavngf7.js} +1 -1
- package/bundle/chunk-em637k9q.js +2 -0
- package/bundle/{chunk-8gkz5550.js → chunk-epncmz5t.js} +1 -1
- package/bundle/{chunk-mdxtt9wv.js → chunk-eytpz91c.js} +2 -2
- package/bundle/chunk-f4qcwbx0.js +2 -0
- package/bundle/{chunk-a8askx4y.js → chunk-f6gd8809.js} +1 -1
- package/bundle/{chunk-878sb0es.js → chunk-fcbmedh3.js} +2 -2
- package/bundle/{chunk-4ycg2c6f.js → chunk-fg5f3a8a.js} +2 -2
- package/bundle/chunk-fj7jcv7m.js +2 -0
- package/bundle/{chunk-4gzggzc0.js → chunk-ft4msj4z.js} +3 -3
- package/bundle/chunk-fyntc5hj.js +2 -0
- package/bundle/chunk-fyt4yaq7.js +2 -0
- package/bundle/chunk-g4hcxhfs.js +2 -0
- package/bundle/{chunk-c5cyt23k.js → chunk-g7twcprm.js} +2 -2
- package/bundle/{chunk-9amnqaeq.js → chunk-g8844pb4.js} +1 -1
- package/bundle/{chunk-w136zswr.js → chunk-ganwjd6s.js} +3 -3
- package/bundle/chunk-gdew108b.js +2 -0
- package/bundle/chunk-gdy74wte.js +2 -0
- package/bundle/{chunk-e37gd3p2.js → chunk-gse0cgqc.js} +1 -1
- package/bundle/{chunk-z0dj15g9.js → chunk-gsjgbm0d.js} +1 -1
- package/bundle/{chunk-a1mbach4.js → chunk-gt10s0ks.js} +1 -1
- package/bundle/{chunk-qpk7jp6t.js → chunk-gxpx2nd8.js} +1 -1
- package/bundle/{chunk-8mqcar7f.js → chunk-gxq2fwnc.js} +1 -1
- package/bundle/chunk-gz90qgcn.js +2 -0
- package/bundle/chunk-gzz78dnm.js +2 -0
- package/bundle/{chunk-840mmmzz.js → chunk-h3yazfmh.js} +4 -4
- package/bundle/{chunk-d4faz5xa.js → chunk-h429rzqp.js} +1 -1
- package/bundle/{chunk-f0dp1tf9.js → chunk-h5y0pwwc.js} +1 -1
- package/bundle/{chunk-62gefpwn.js → chunk-h6b6acrv.js} +2 -2
- package/bundle/{chunk-19rs84t8.js → chunk-h8bq75er.js} +1 -1
- package/bundle/{chunk-99df6wvm.js → chunk-ha147mdc.js} +1 -1
- package/bundle/{chunk-xdcwx384.js → chunk-ha1w0xzh.js} +1 -1
- package/bundle/{chunk-5341jv20.js → chunk-ha294vpj.js} +1 -1
- package/bundle/chunk-hfrjkgyk.js +2 -0
- package/bundle/chunk-hjpt1n6g.js +2 -0
- package/bundle/{chunk-bzh71a92.js → chunk-hvdre0mb.js} +1 -1
- package/bundle/{chunk-86sfzgnf.js → chunk-hxf2a10r.js} +1 -1
- package/bundle/{chunk-4ppw719f.js → chunk-j09qf4zh.js} +1 -1
- package/bundle/chunk-j0jayfyn.js +35 -0
- package/bundle/{chunk-c1wc4b5q.js → chunk-j5b0yc0f.js} +1 -1
- package/bundle/{chunk-k8dbc1p5.js → chunk-j767byd1.js} +1 -1
- package/bundle/chunk-j794z99k.js +2 -0
- package/bundle/{chunk-5asf8f41.js → chunk-j95mkzwg.js} +114 -114
- package/bundle/{chunk-rn3je2hv.js → chunk-jcznttek.js} +1 -1
- package/bundle/{chunk-4v29ayke.js → chunk-jgw20mxx.js} +1 -1
- package/bundle/{chunk-175720ws.js → chunk-jhdpwndc.js} +2 -2
- package/bundle/{chunk-f0x3q5dj.js → chunk-jkqa49xc.js} +2 -2
- package/bundle/{chunk-sb3cgb4v.js → chunk-jmg64erz.js} +1 -1
- package/bundle/chunk-jpw7z507.js +2 -0
- package/bundle/{chunk-3cs1qf8x.js → chunk-jr622341.js} +1 -1
- package/bundle/{chunk-fswt9qc0.js → chunk-jv69hdp0.js} +2 -2
- package/bundle/chunk-jx9c90ft.js +2 -0
- package/bundle/{chunk-4jfnhghx.js → chunk-kevhkmn2.js} +2 -2
- package/bundle/{chunk-bxnsrggq.js → chunk-khpjjjsb.js} +1 -1
- package/bundle/chunk-kkfrys0w.js +2 -0
- package/bundle/chunk-kkq2vwm6.js +2 -0
- package/bundle/{chunk-h6b5966p.js → chunk-km1tyeyy.js} +1 -1
- package/bundle/chunk-kp0w1p79.js +2 -0
- package/bundle/chunk-kr7t73tg.js +3 -0
- package/bundle/chunk-kt7q9620.js +2 -0
- package/bundle/{chunk-8a9sj8gp.js → chunk-kzcb1pt4.js} +1 -1
- package/bundle/{chunk-ywj77e0m.js → chunk-m0f6cf9n.js} +2 -2
- package/bundle/chunk-m30bgt2t.js +2 -0
- package/bundle/chunk-m318f9es.js +2 -0
- package/bundle/{chunk-4yd2vvh6.js → chunk-m5r6zq6v.js} +1 -1
- package/bundle/chunk-m6g6za7b.js +2 -0
- package/bundle/chunk-m8djypsy.js +11 -0
- package/bundle/chunk-ma0vvbvy.js +2 -0
- package/bundle/chunk-mha4n5md.js +2 -0
- package/bundle/{chunk-s9epttpy.js → chunk-mhq2a5ms.js} +1 -1
- package/bundle/chunk-mp9qhnxg.js +2 -0
- package/bundle/{chunk-gd0j16gn.js → chunk-mqdvthkm.js} +1 -1
- package/bundle/{chunk-69k7cdtv.js → chunk-mqe1qa6t.js} +2 -2
- package/bundle/{chunk-j45p2v4a.js → chunk-mz6swd88.js} +3 -3
- package/bundle/{chunk-0m4gvjcv.js → chunk-n25t4j9w.js} +2 -2
- package/bundle/{chunk-83n11xym.js → chunk-n7ewvphw.js} +3 -3
- package/bundle/chunk-n9wre9wx.js +2 -0
- package/bundle/chunk-ncbj74tk.js +3 -0
- package/bundle/{chunk-06tgmvh6.js → chunk-ne3z7yye.js} +2 -2
- package/bundle/chunk-nnyvn2pm.js +2 -0
- package/bundle/chunk-nyhx3822.js +2 -0
- package/bundle/{chunk-zjyaze0d.js → chunk-p54bzjtv.js} +1 -1
- package/bundle/{chunk-dvp0r93q.js → chunk-p5d5qyzq.js} +1 -1
- package/bundle/{chunk-m8kjtp60.js → chunk-p6mxxem5.js} +1 -1
- package/bundle/{chunk-6zdzbmzs.js → chunk-p76c9s6g.js} +264 -264
- package/bundle/chunk-p8etcskm.js +2 -0
- package/bundle/{chunk-b350g18y.js → chunk-pf4gwr34.js} +2 -2
- package/bundle/{chunk-wf0n1cs9.js → chunk-pf61zhms.js} +1 -1
- package/bundle/{chunk-sh03ka27.js → chunk-pfx8ts02.js} +1 -1
- package/bundle/{chunk-e611m0p4.js → chunk-phvp9h7w.js} +1 -1
- package/bundle/chunk-pv71d7f3.js +2 -0
- package/bundle/{chunk-2fged9vy.js → chunk-pwcmc8j7.js} +1 -1
- package/bundle/{chunk-g77kddrs.js → chunk-pyt4xpze.js} +2 -2
- package/bundle/{chunk-1bq15kf0.js → chunk-q0pd8bac.js} +2 -2
- package/bundle/{chunk-yg9n2a2d.js → chunk-q12dtxep.js} +1 -1
- package/bundle/{chunk-v1axkp21.js → chunk-q2j2dm96.js} +2 -2
- package/bundle/{chunk-rx9eh3db.js → chunk-qf1hh45g.js} +3 -3
- package/bundle/{chunk-p4xqfkbh.js → chunk-qqjspfqw.js} +1 -1
- package/bundle/{chunk-9kc2th5c.js → chunk-qvnsgyfk.js} +2 -2
- package/bundle/{chunk-rqap90xh.js → chunk-qz35c4xy.js} +2 -2
- package/bundle/{chunk-bemyyen3.js → chunk-r3z77rjn.js} +1 -1
- package/bundle/{chunk-vsv4p060.js → chunk-r7mcn9ey.js} +1 -1
- package/bundle/{chunk-nzz7gzg2.js → chunk-rmpgmjtd.js} +1 -1
- package/bundle/{chunk-k0chq88p.js → chunk-rpt3rm31.js} +1 -1
- package/bundle/chunk-rteaec1s.js +2 -0
- package/bundle/chunk-rxwcah73.js +2 -0
- package/bundle/{chunk-s0gmxpxm.js → chunk-s1gy4hnw.js} +2 -2
- package/bundle/{chunk-4s1n38ds.js → chunk-s2ma1nz3.js} +2 -2
- package/bundle/chunk-s3gjc4m0.js +2 -0
- package/bundle/{chunk-6yshpz0z.js → chunk-s5taq9jy.js} +2 -2
- package/bundle/{chunk-5mf4qrye.js → chunk-s7017cak.js} +2 -2
- package/bundle/{chunk-6pt6nqwk.js → chunk-s9bn800b.js} +1 -1
- package/bundle/{chunk-73a7ts8r.js → chunk-sa3rjs2s.js} +1 -1
- package/bundle/{chunk-wfpnv00c.js → chunk-sprbs7aj.js} +2 -2
- package/bundle/{chunk-10q04xh5.js → chunk-sq2z7keb.js} +1 -1
- package/bundle/{chunk-w8nj5ph5.js → chunk-sqrx9csx.js} +1 -1
- package/bundle/{chunk-art8gejd.js → chunk-srf4jqcj.js} +1 -1
- package/bundle/{chunk-ffyj5nsg.js → chunk-ssp3nw24.js} +2 -2
- package/bundle/{chunk-2tkgtasa.js → chunk-svnhycdw.js} +2 -2
- package/bundle/chunk-swm990q6.js +2 -0
- package/bundle/chunk-sy42ayp2.js +2 -0
- package/bundle/{chunk-5rvvfgfy.js → chunk-t3kxce69.js} +2 -2
- package/bundle/chunk-t7mvej98.js +2 -0
- package/bundle/{chunk-6j53vtzd.js → chunk-t8pmy758.js} +1 -1
- package/bundle/{chunk-v7v0krrj.js → chunk-t9srpmte.js} +1 -1
- package/bundle/{chunk-2pw56zpj.js → chunk-tatecas7.js} +2 -2
- package/bundle/chunk-teagh4hx.js +2 -0
- package/bundle/{chunk-avksqxan.js → chunk-tf40p520.js} +1 -1
- package/bundle/{chunk-yms3bsm7.js → chunk-tpgksx59.js} +1 -1
- package/bundle/{chunk-02tmc2st.js → chunk-tr4cze2c.js} +1 -1
- package/bundle/chunk-tv4cp6f9.js +2 -0
- package/bundle/chunk-tw618904.js +2 -0
- package/bundle/{chunk-mq3w4z8k.js → chunk-v1bqh3m6.js} +176 -176
- package/bundle/{chunk-j46bxb1b.js → chunk-v3bfzxxg.js} +1 -1
- package/bundle/{chunk-vr13f6b5.js → chunk-v5gf0wx6.js} +2 -2
- package/bundle/{chunk-d385e2qt.js → chunk-v6mnbwtz.js} +1 -1
- package/bundle/{chunk-bq6cvf16.js → chunk-v93gr6n9.js} +2 -2
- package/bundle/chunk-vdpffam0.js +2 -0
- package/bundle/chunk-ve5w7nkb.js +2 -0
- package/bundle/chunk-vey57h4x.js +30 -0
- package/bundle/{chunk-pwq2f75j.js → chunk-vf492zs6.js} +1 -1
- package/bundle/{chunk-fkq0v5qv.js → chunk-vg9ec44m.js} +2 -2
- package/bundle/{chunk-61b81z2h.js → chunk-vh3n53qq.js} +1 -1
- package/bundle/{chunk-bmdqb48f.js → chunk-vk8gxf4y.js} +1 -1
- package/bundle/{chunk-rd08wx37.js → chunk-vr222v2n.js} +2 -2
- package/bundle/chunk-vrpca62q.js +2 -0
- package/bundle/{chunk-x3dzzq0t.js → chunk-w5fx69cw.js} +1 -1
- package/bundle/{chunk-k4wfq9cn.js → chunk-w9w59zjv.js} +2 -2
- package/bundle/{chunk-xmf59618.js → chunk-wbz79hns.js} +1 -1
- package/bundle/{chunk-gfvq78gy.js → chunk-wdrfzx4m.js} +1 -1
- package/bundle/{chunk-j3agzs13.js → chunk-wf18y499.js} +2 -2
- package/bundle/chunk-wvvygzz2.js +2 -0
- package/bundle/{chunk-wne3v1fk.js → chunk-wyxc99aa.js} +2 -2
- package/bundle/{chunk-5q98z8ck.js → chunk-x2mbre12.js} +2 -2
- package/bundle/{chunk-2d61z24r.js → chunk-x8rr2f15.js} +1 -1
- package/bundle/{chunk-vgmgg994.js → chunk-xpmgqa5n.js} +1 -1
- package/bundle/{chunk-rws2tsdv.js → chunk-xrwsttb7.js} +1 -1
- package/bundle/{chunk-ytfq6rn9.js → chunk-xz6psr05.js} +1 -1
- package/bundle/{chunk-4xqwt6dr.js → chunk-xzshjp04.js} +2 -2
- package/bundle/chunk-y27gwnx9.js +2 -0
- package/bundle/chunk-y2ms7q84.js +2 -0
- package/bundle/{chunk-1pft3sar.js → chunk-y8bjb32m.js} +1 -1
- package/bundle/{chunk-h036zy9e.js → chunk-ya7wrt5f.js} +2 -2
- package/bundle/{chunk-ahgb3r1c.js → chunk-ycjz7y1x.js} +2 -2
- package/bundle/{chunk-10kj86va.js → chunk-ykqx1z0b.js} +1 -1
- package/bundle/chunk-yq4vck53.js +2 -0
- package/bundle/{chunk-j2snkw45.js → chunk-yxsc90ba.js} +2 -2
- package/bundle/{chunk-5cwy8y78.js → chunk-yy5qqab3.js} +2 -2
- package/bundle/{chunk-86reb44c.js → chunk-z38am71w.js} +1 -1
- package/bundle/{chunk-pwrwb7mn.js → chunk-z6mqdbj1.js} +1 -1
- package/bundle/{chunk-nyxn7npc.js → chunk-z87ew6d3.js} +1 -1
- package/bundle/{chunk-m6967jtv.js → chunk-z9k4506p.js} +2 -2
- package/bundle/{chunk-hf39qx6t.js → chunk-zezz8xfw.js} +2 -2
- package/bundle/{chunk-ffx0cr44.js → chunk-zg72kz2k.js} +2 -2
- package/bundle/chunk-zkxc41ek.js +2 -0
- package/bundle/{chunk-tz1bzrnh.js → chunk-zssy3srh.js} +1 -1
- package/bundle/{chunk-xxck1man.js → chunk-zyz4na64.js} +1 -1
- package/bundle/{chunk-e18hshcg.js → chunk-zzsetq5f.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-1r7anzk5.js +0 -2
- package/bundle/chunk-2jzay8a9.js +0 -2
- package/bundle/chunk-30rghawe.js +0 -2
- package/bundle/chunk-31a47ptm.js +0 -10
- package/bundle/chunk-33mzqyyb.js +0 -3
- package/bundle/chunk-3dajnr1w.js +0 -2
- package/bundle/chunk-3ege6krg.js +0 -2
- package/bundle/chunk-43vpxggb.js +0 -2
- package/bundle/chunk-49y7zg15.js +0 -2
- package/bundle/chunk-5qhsfjzq.js +0 -3
- package/bundle/chunk-5re7995e.js +0 -2
- package/bundle/chunk-5xxn06g0.js +0 -2
- package/bundle/chunk-6k0y2332.js +0 -2
- package/bundle/chunk-6qwnty59.js +0 -8
- package/bundle/chunk-7cp30q0t.js +0 -2
- package/bundle/chunk-7t63wz2f.js +0 -2
- package/bundle/chunk-8gz8fk6r.js +0 -2
- package/bundle/chunk-8ht7cq3h.js +0 -2
- package/bundle/chunk-8qv0119d.js +0 -2
- package/bundle/chunk-9m0eawt5.js +0 -2
- package/bundle/chunk-a32y70fe.js +0 -2
- package/bundle/chunk-ae1b15bd.js +0 -31
- package/bundle/chunk-apneazwv.js +0 -2
- package/bundle/chunk-aw5yv01t.js +0 -2
- package/bundle/chunk-az12tp53.js +0 -2
- package/bundle/chunk-b5dpzcc7.js +0 -2
- package/bundle/chunk-baq0wk3q.js +0 -2
- package/bundle/chunk-bcgtqx3g.js +0 -2
- package/bundle/chunk-bde5d507.js +0 -2
- package/bundle/chunk-bzzggc3s.js +0 -2
- package/bundle/chunk-c8qx439t.js +0 -2
- package/bundle/chunk-ckw51fn6.js +0 -2
- package/bundle/chunk-denp0wrq.js +0 -2
- package/bundle/chunk-depxzjer.js +0 -2
- package/bundle/chunk-dhvqpcf3.js +0 -2
- package/bundle/chunk-dkqqswbv.js +0 -2
- package/bundle/chunk-e5t7jsxa.js +0 -2
- package/bundle/chunk-eb811dt2.js +0 -2
- package/bundle/chunk-fbz2xv2w.js +0 -2
- package/bundle/chunk-ffynh19k.js +0 -2
- package/bundle/chunk-fgr9xshx.js +0 -2
- package/bundle/chunk-gbvcb4k1.js +0 -2
- package/bundle/chunk-gdtnqzbp.js +0 -2
- package/bundle/chunk-gkfvhh28.js +0 -2
- package/bundle/chunk-gvx5hmhk.js +0 -2
- package/bundle/chunk-gww6abk3.js +0 -2
- package/bundle/chunk-hham7r33.js +0 -2
- package/bundle/chunk-hmm0gj34.js +0 -3
- package/bundle/chunk-hsjbe5zy.js +0 -2
- package/bundle/chunk-j89sv999.js +0 -2
- package/bundle/chunk-k9b4005p.js +0 -2
- package/bundle/chunk-kht2kwam.js +0 -2
- package/bundle/chunk-kzkb4648.js +0 -2
- package/bundle/chunk-m2540waa.js +0 -2
- package/bundle/chunk-mreacz8r.js +0 -2
- package/bundle/chunk-mscvm1rm.js +0 -2
- package/bundle/chunk-mw3hh526.js +0 -2
- package/bundle/chunk-n3nsrk5n.js +0 -2
- package/bundle/chunk-n4qbnecw.js +0 -35
- package/bundle/chunk-n9nmc4q4.js +0 -2
- package/bundle/chunk-nj4as8vy.js +0 -2
- package/bundle/chunk-nxm6gpyv.js +0 -2
- package/bundle/chunk-pqzx9ha6.js +0 -2
- package/bundle/chunk-qbjqkezn.js +0 -2
- package/bundle/chunk-qhtp1xvx.js +0 -2
- package/bundle/chunk-qkztgpay.js +0 -2
- package/bundle/chunk-rnf3dy0y.js +0 -2
- package/bundle/chunk-rry4kq85.js +0 -2
- package/bundle/chunk-rt49c6js.js +0 -5
- package/bundle/chunk-ryfj80q6.js +0 -2
- package/bundle/chunk-snx49w8h.js +0 -2
- package/bundle/chunk-t21mdqbb.js +0 -2
- package/bundle/chunk-tkbjcznz.js +0 -2
- package/bundle/chunk-tn2yyqeb.js +0 -2
- package/bundle/chunk-ttebf3nt.js +0 -2
- package/bundle/chunk-twpfh0mx.js +0 -2
- package/bundle/chunk-tzf6d5qy.js +0 -2
- package/bundle/chunk-v2mq09wx.js +0 -2
- package/bundle/chunk-v59a02aj.js +0 -2
- package/bundle/chunk-vxr4rzt0.js +0 -2
- package/bundle/chunk-w0h9rczg.js +0 -2
- package/bundle/chunk-w8344et5.js +0 -2
- package/bundle/chunk-weyg78et.js +0 -2
- package/bundle/chunk-wyavgt96.js +0 -2
- package/bundle/chunk-xchj8gna.js +0 -2
- package/bundle/chunk-yvjecrjy.js +0 -2
- package/bundle/chunk-yw2x6by6.js +0 -2
- package/bundle/chunk-z0r4syk8.js +0 -2
- package/bundle/chunk-z7c00g63.js +0 -2
- package/bundle/chunk-z93n3cbm.js +0 -2
- package/bundle/chunk-znr0saas.js +0 -2
- package/bundle/chunk-zqqt7v17.js +0 -2
- package/bundle/chunk-zwrgh1hc.js +0 -2
- package/bundle/chunk-zwxp07yc.js +0 -2
package/bundle/chunk-8ht7cq3h.js
DELETED
package/bundle/chunk-8qv0119d.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Jg as r}from"./chunk-4s1n38ds.js";import{yP as o}from"./chunk-sh03ka27.js";var c=new r("zod v4");async function m(){return async(n,e)=>{let t;if("_zod"in n)try{t=(await import("./chunk-s9epttpy.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-nyxn7npc.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
|
package/bundle/chunk-9m0eawt5.js
DELETED
package/bundle/chunk-a32y70fe.js
DELETED
package/bundle/chunk-ae1b15bd.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Zo as MJ,bp as $J,tp as kJ}from"./chunk-6qwnty59.js";import{Ip as qJ}from"./chunk-crqycrs4.js";import{et as F}from"./chunk-5re7995e.js";import{It as LJ}from"./chunk-6yshpz0z.js";import{Pt as e,Xt as SJ}from"./chunk-5dvy83ms.js";import{ju as OJ,mu as QJ}from"./chunk-ffx0cr44.js";var cJ=0.9,mJ=256,VJ="[Earlier tool result removed to fit the request size limit]",c;function h(J){return Buffer.byteLength(JSON.stringify(J),"utf8")}function NJ(){return e.QITQODE_QLEX_MAX_REQUEST_BYTES??c}function JJ(J){let K=e.QITQODE_QLEX_MAX_REQUEST_BYTES;if(K!==void 0)return K;let Z=Math.max(1,Math.min(Math.floor(J*cJ),Math.floor(J)-1));return c=c===void 0?Z:Math.min(c,Z),c}function m(J,K){return!!J&&typeof J==="object"&&J.role===K}function DJ(J){let K=[],Z=0;while(Z<J.length){let $=Z,z=J[Z];if(Z++,m(z,"assistant")&&Array.isArray(z?.tool_calls)&&z.tool_calls.length>0)while(Z<J.length&&m(J[Z],"tool"))Z++;K.push({start:$,end:Z})}return K}function WJ(J,K){if(K.length===0)return[];let Z=-1;for(let $=K.length-1;$>=0;$--){let z=K[$],X=!1;for(let Y=z.start;Y<z.end;Y++)if(m(J[Y],"user"))X=!0;if(X){Z=$;break}}return K.filter(($,z)=>{if(z===K.length-1)return!1;if(z===Z)return!1;if($.start===0&&m(J[0],"system"))return!1;return!0})}function KJ(J,K){let Z=h(J),$={toolResultsElided:0,unitsDropped:0},z=()=>({body:J,bytes:Z,originalBytes:Z,reduced:!1,actions:$});if(!J||typeof J!=="object")return z();let X=J.messages;if(!Array.isArray(X))return z();let Y=X.map((j)=>j&&typeof j==="object"?{...j}:j),H=()=>({...J,messages:Y}),V=()=>h(H())<=K;{let j=Y;for(let N of WJ(j,DJ(j))){let L=!1;for(let O=N.start;O<N.end;O++){let k=j[O];if(!m(k,"tool"))continue;let w=k?.content;if(typeof w!=="string"||w.length<mJ)continue;if(w===VJ)continue;j[O]={...k,content:VJ},$.toolResultsElided++,L=!0}if(L&&V())break}}if(!V())for(;;){let j=Y,L=WJ(j,DJ(j))[0];if(!L)break;if(Y=[...j.slice(0,L.start),...j.slice(L.end)],$.unitsDropped++,V())break}let U=H(),P=h(U);return{body:U,bytes:P,originalBytes:Z,reduced:P<Z&&P<=K,actions:$}}import y from"fs/promises";import EJ from"path";import{randomUUID as dJ}from"crypto";var E=SJ({service:"provider.qlex"}),iJ=F.streamUrl(),lJ=F.omniqueryBaseUrl()+"/runOrchestrated",rJ=new Set(["rate_limited","transient","stream_truncated","stream_failed"]);function d(J,K){return K!==!1&&rJ.has(J)}function a(J){return typeof J==="string"&&/^[A-Za-z0-9][A-Za-z0-9._:-]{0,127}$/.test(J)?J:void 0}function x(J,K){let Z=J;if(K.status!==void 0)Z.status=K.status;if(K.upstreamCode!==void 0)Z.upstreamCode=K.upstreamCode;let $=a(K.requestId);if($!==void 0)Z.requestId=$;if(Z.category=K.category,Z.retryable=d(K.category,K.retryable),K.outputBudgetRecoveryAvailable!==void 0)Z.outputBudgetRecoveryAvailable=K.outputBudgetRecoveryAvailable;if(K.outputBudgetRecoveryTokens!==void 0)Z.outputBudgetRecoveryTokens=K.outputBudgetRecoveryTokens}function b(J,K){return{...J,...K}}class wJ extends Error{name="QlexNotLoggedInError";constructor(J){super(F.copy().notLoggedIn);x(this,b({category:"invalid_credentials",retryable:!1},J))}}class RJ extends Error{name="QlexInsufficientBalanceError";constructor(J,K){super(F.copy().insufficientBalance(J));x(this,b({status:402,category:"billing",retryable:!1},K))}}class CJ extends Error{name="QlexRateLimitError";constructor(J){super(F.copy().rateLimit);x(this,b({status:429,category:"rate_limited",retryable:!0},J))}}class AJ extends Error{name="QlexInvalidCredentialsError";constructor(J,K){super(F.copy().invalidCredentials(J));x(this,b({status:401,category:"invalid_credentials",retryable:!1},K))}}class TJ extends Error{name="QlexRequestRejectedError";constructor(J,K,Z){super(F.copy().requestRejected(J,K));x(this,b({status:400,category:"request_rejected",retryable:!1},Z))}}class t extends Error{name="QlexRequestTooLargeError";stage;constructor(J="irreducible",K,Z){super(J==="after-reduction"?F.copy().requestTooLargeAfterReduction(K):F.copy().requestTooLargeIrreducible(K));this.stage=J,x(this,b({status:413,category:"request_too_large",retryable:!1},Z))}}class BJ extends Error{name="QlexRequestNotSentError";constructor(J,K){super(F.copy().requestNotSent(J));x(this,b({category:"request_rejected",retryable:!1},K))}}class u extends Error{name="QlexGatewayError";constructor(J,K){super(F.copy().gatewayUnavailable(J));x(this,b({category:"gateway_routing",retryable:!1},K))}}var oJ=60000,sJ=320000;function aK(J){return F.sanitizeUpstreamError(J)}class v extends Error{name="QlexStreamError";constructor(J,K,Z){let $=b({category:"unknown",retryable:!1},K);super($.category==="output_budget_exhausted"?F.copy().outputBudgetExhausted():$.category==="empty_output"?F.copy().emptyOutput():$.category==="stream_truncated"?F.copy().streamCutOff(Z):$.category==="stream_failed"?F.copy().streamFailedAfterRetries(Z):F.copy().streamFailed(J));x(this,$),LJ(this)}}var aJ=[{match:/\b(unauthori[sz]ed|forbidden|invalid[ _-]?(api[ _-]?key|token|credential)|expired[ _-]?token|authentication[ _-]?(failed|error)|401|403)\b/i,category:"invalid_credentials",retryable:!1},{match:/(output (?:token )?budget|maximum output tokens|max_tokens|finish[_ -]?reason.{0,20}(length|budget)|reasoning.{0,20}(budget|tokens))/i,category:"output_budget_exhausted",retryable:!1},{match:/\b(no visible output|empty output|produced no (?:visible )?(?:text|output)|nothing to display)\b/i,category:"empty_output",retryable:!1},{match:/\b(insufficient[ _-]?(credits?|qredits?|balance|funds)|payment[ _-]?required|quota[ _-]?exceeded|out[ _-]?of[ _-]?(credits?|qredits?)|402)\b/i,category:"billing",retryable:!1},{match:/\b(rate[ _-]?limit(ed|s)?|too[ _-]?many[ _-]?requests|429)\b/i,category:"rate_limited",retryable:!0},{match:/(unexpected end of (json|input|stream|data)|premature (close|end)|socket hang ?up|socket connection was closed unexpectedly|incomplete (response|output|json|message)|truncated|stream (ended|closed|terminated) (early|unexpectedly|prematurely)|\bECONNRESET\b|\bEPIPE\b)/i,category:"stream_truncated",retryable:!0},{match:/\b(overloaded|at capacity|service[ _-]?unavailable|temporarily[ _-]?unavailable|bad[ _-]?gateway|gateway[ _-]?time(d[ _-]?out|out)|timed[ _-]?out|502|503|504)\b/i,category:"transient",retryable:!0}],tJ={ERR_EMPTY_RESULT:{category:"empty_output",retryable:!1},ERR_TRUNCATED_OUTPUT:{category:"stream_truncated",retryable:!0},ERR_STREAM:{category:"stream_failed",retryable:!0}},eJ=/^\s*(ERR_[A-Z0-9_]+)\b(?:\s*(?:[\u2014\u2013:-]\s*)?)?/i,JK=/\b(req_[A-Za-z0-9][A-Za-z0-9_-]*)\b/;function GJ(J){let K=J??"",Z=eJ.exec(K),$=Z?K.slice(Z[0].length):K,z=IJ($),X=Z?.[1]?.toUpperCase()??z.upstreamCode,Y=z.requestId??a(JK.exec(K)?.[1]),H=z.retryable;if(X!==void 0){let V=tJ[X];if(V!==void 0)return{...V,upstreamCode:X,retryable:d(V.category,H??V.retryable),...Y?{requestId:Y}:{}}}for(let V of aJ)if(V.match.test($))return{category:V.category,retryable:d(V.category,H??V.retryable),...X?{upstreamCode:X}:{},...Y?{requestId:Y}:{}};return{category:"unknown",retryable:d("unknown",H),...X?{upstreamCode:X}:{},...Y?{requestId:Y}:{}}}function KK(J){return MJ(J)}function IJ(J){try{let K=JSON.parse(J);if(!K||typeof K!=="object"||Array.isArray(K))return{};let Z=K,$=Z.error&&typeof Z.error==="object"&&!Array.isArray(Z.error)?Z.error:void 0,z=Z.details&&typeof Z.details==="object"&&!Array.isArray(Z.details)?Z.details:void 0,X=[Z.requestId,$?.requestId,z?.requestId].map(a).find((V)=>V!==void 0),Y=Z.retryable===!1||$?.retryable===!1?!1:Z.retryable===!0||$?.retryable===!0?!0:void 0,H=$?.code??Z.code;return{...X!==void 0?{requestId:X}:{},...Y!==void 0?{retryable:Y}:{},...typeof H==="string"&&/^[A-Z][A-Z0-9_]{0,63}$/i.test(H)?{upstreamCode:H.toUpperCase()}:{}}}catch{return{}}}function xJ(J,K){let Z,$,z,X=!1;try{let N=JSON.parse(K);if(N&&typeof N==="object"){let L=N.error&&typeof N.error==="object"?N.error:void 0;if(typeof L?.code==="string")Z=L.code;else if(typeof N.code==="string")Z=N.code;if(typeof L?.message==="string")$=L.message;else if(typeof N.message==="string")$=N.message;if(typeof N.details?.field==="string")z=N.details.field}}catch(N){X=/^\s*[\[{]/.test(K)&&(ZK(K)||/unexpected end|end of json|unterminated string/i.test(String(N)))}let Y=Z?.toUpperCase()??"",{requestId:H,retryable:V}=IJ(K),U=(()=>{if(X)return"stream_truncated";if(J===402)return"billing";if(J===413)return"request_too_large";if(J===429)return"rate_limited";if(J===401||J===403)return Y==="ERR_GATEWAY_REQUIRED"||KK(K)?"gateway_routing":"invalid_credentials";if(Y.includes("CONFIG"))return"configuration";if(J>=500)return"transient";if(J>=400)return"request_rejected";return"unknown"})(),P=d(U,V),j={status:J,category:U,retryable:P};if(Z!==void 0)j.upstreamCode=Z;if($!==void 0)j.upstreamMessage=$;if(z!==void 0)j.field=z;if(H!==void 0)j.requestId=H;return j}function ZK(J){let K=0,Z=!1,$=!1;for(let z of J){if(Z){if($)$=!1;else if(z==="\\")$=!0;else if(z==='"')Z=!1;continue}if(z==='"')Z=!0;else if(z==="{"||z==="[")K++;else if(z==="}"||z==="]")K--;if(K<0)return!1}return Z||K>0}function $K(J){let K=F.tierBudgetFacts(J.tier),Z=J.advisory,$=Z?.tierOutputLimit??K?.output;if(J.requestedTotal!==void 0)return{total:$===void 0?J.requestedTotal:Math.min(J.requestedTotal,$)};if(!Z&&!K)return{};let z=Z?.reasoningReserveTokens??K?.reasoningReserve??0,X=Z?.visibleOutputFloorTokens??K?.visibleOutputFloor??0,Y=Z?.recommendedTotalTokens??Z?.tierRecommendedStepTokens??K?.recommendedTotal??K?.recommendedStep??$,H=Z?.viableTotalFloorTokens??K?.viableTotalFloor??z+X,V=Y===void 0?H:Math.max(Y,H),U=Z?.reasoningReported??K?.reasoning;return{total:$===void 0?V:Math.min(V,$),reasoningBudget:U&&z>0?Math.min(z,V):void 0}}var zK=new Set(["coding","agent","research","review","chat"]);function XK(J){if(J===void 0)return;if(typeof J==="string"&&zK.has(J))return J;throw Error(`invalid Qortex posture: ${String(J)}`)}function YK(J){if(J===void 0)return;let K=Array.isArray(J)?J:[J];if(K.every((Z)=>typeof Z==="string"&&/^[^/\s]+\/[^/\s]+$/.test(Z)))return Array.isArray(J)?K:J;throw Error(`invalid Qortex directive registry key: ${String(J)}`)}function s(J){if(typeof J==="string")return J;if(Array.isArray(J))return J.map((K)=>{if(typeof K==="string")return K;if(K&&typeof K==="object"){let Z=K;if(typeof Z.text==="string")return Z.text;if(typeof Z.content==="string")return Z.content}return""}).join("");if(J===void 0||J===null)return"";return String(J)}var HK="[Tool call]",VK="[Tool returned no output]";function bJ(J){if(!Array.isArray(J))return{messages:J,dropped:[]};let K=[];return{messages:J.flatMap(($,z)=>{if(!$||typeof $!=="object")return K.push({index:z,role:typeof $,reason:"not-an-object"}),[];let X=$,Y=s(X.content);if(Y.trim().length>0)return[{...X,content:Y}];if(X.role==="assistant"&&Array.isArray(X.tool_calls)&&X.tool_calls.length>0)return[{...X,content:HK}];if(X.role==="tool"&&typeof X.tool_call_id==="string"&&X.tool_call_id.trim().length>0)return[{...X,content:VK}];return K.push({index:z,role:typeof X.role==="string"?X.role:"unknown",reason:"empty-content"}),[]}),dropped:K}}function DK(J){return bJ(J).messages}function WK(J){if(!Array.isArray(J))return!1;return J.some((K)=>!!K&&typeof K==="object"&&K.role==="user")}function NK(J){if(!Array.isArray(J))return!1;return J.some((K)=>{if(!K||typeof K!=="object")return!1;let Z=K;if(Z.role!=="user")return!1;return s(Z.content).trim().length>0})}function GK(J){if(!Array.isArray(J))return J;let K=(X)=>!!X&&typeof X==="object"&&X.role==="system",Z=0;while(Z<J.length&&K(J[Z]))Z++;if(Z<=1)return J;let $=J.slice(0,Z),z=$.map((X)=>typeof X.content==="string"?X.content:String(X.content??"")).filter((X)=>X.length>0).join(`
|
|
3
|
-
|
|
4
|
-
`);return[{...$[0],role:"system",content:z},...J.slice(Z)]}var n="<tool_call>",r="</tool_call>";function jK(J){if(!Array.isArray(J)||J.length===0)return;let K=J.map((Z)=>{try{return JSON.stringify(Z)}catch{return}}).filter((Z)=>Z!==void 0);if(K.length===0)return;return["# Tools","","You may call one or more functions to assist with the user query.","","You are provided with function signatures within <tools></tools> XML tags:","<tools>",...K,"</tools>","","For each function call, return a json object with function name and arguments within <tool_call></tool_call> XML tags:","<tool_call>",'{"name": <function-name>, "arguments": <args-json-object>}',"</tool_call>","","Function results will be provided within <tool_response></tool_response> XML tags. Do not write <tool_response> blocks yourself.","Only use the functions declared above. Never invent function names, and never write out a function-call-like block in any other format."].join(`
|
|
5
|
-
`)}var UK=3;function XJ(J){let K=J;for(let Z=0;Z<UK;Z++){if(K!==null&&typeof K==="object")return K;if(typeof K!=="string")return;try{K=JSON.parse(K)}catch{return}}return}function PK(J){let K=J?.tool_calls;if(!Array.isArray(K))return;for(let Z of K){let $=Z?.function;if(!$)continue;E.debug("tool call ingress",{tool:typeof $.name==="string"?$.name:"?",source:"native",args:YJ($.arguments)})}}function YJ(J,K=300){let Z;try{Z=typeof J==="string"?J:JSON.stringify(J)??String(J)}catch{Z="<unrenderable>"}return Z.length<=K?Z:`${Z.slice(0,K)}\u2026 (${Z.length} chars total)`}function _K(J){let K=J.function??{},Z=typeof K.name==="string"?K.name:"",$=K.arguments===void 0?{}:XJ(K.arguments);if($===void 0)E.warn("dropping unrecoverable tool-call arguments while re-encoding history",{tool:Z,raw:YJ(K.arguments)});return`${n}
|
|
6
|
-
${JSON.stringify({name:Z,arguments:$??{}})}
|
|
7
|
-
${r}`}function hJ(J,K){if(!Array.isArray(J))return J;let Z=J.map((z)=>{if(!z||typeof z!=="object")return z;let X=z;if(X.role==="assistant"&&Array.isArray(X.tool_calls)){let Y=X.tool_calls.map(_K).join(`
|
|
8
|
-
`),H=s(X.content),{tool_calls:V,...U}=X;return{...U,content:H.length>0?`${H}
|
|
9
|
-
${Y}`:Y}}if(X.role==="tool"){let{tool_call_id:Y,name:H,...V}=X;return{...V,role:"user",content:`<tool_response>
|
|
10
|
-
${s(X.content)}
|
|
11
|
-
</tool_response>`}}return z}),$=jK(K);if($){let z=0;while(z<Z.length&&!!Z[z]&&typeof Z[z]==="object"&&Z[z].role==="system")z++;Z.splice(z,0,{role:"system",content:$})}return Z}function FK(){return process.env.QITQODE_TOOL_PROTOCOL==="text"?"text":"native"}function OK(J){if(Array.isArray(J.tools)&&J.tools.length>0)return!0;let K=J.messages;if(!Array.isArray(K))return!1;return K.some((Z)=>{if(!Z||typeof Z!=="object")return!1;let $=Z;return $.role==="tool"||$.role==="assistant"&&Array.isArray($.tool_calls)})}function jJ(J,K){let Z=K?.toolMode??"native",$=J.model??"adaptive",z={stream:J.stream??!0};if(J.temperature!==void 0)z.temperature=J.temperature;if(J.max_tokens!==void 0)z.max_tokens=J.max_tokens;let X=$K({tier:$,advisory:K?.outputAdvisory,requestedTotal:z.max_tokens});if(X.total!==void 0)z.max_tokens=X.total;if(X.reasoningBudget!==void 0)z.thinking={budget_tokens:X.reasoningBudget};if(K?.outputBudgetRecoveryTokens!==void 0){let P=typeof z.max_tokens==="number"?z.max_tokens:0,j=K.outputAdvisory?.tierOutputLimit??F.tierBudgetFacts($)?.output,N=Math.min(K.outputBudgetRecoveryTokens,j??K.outputBudgetRecoveryTokens);if(N>P)z.max_tokens=N}if(J.tools!==void 0)z.tools=J.tools;if(J.tool_choice!==void 0)z.tool_choice=J.tool_choice;if(J.stream_options!==void 0)z.stream_options=J.stream_options;let Y=Z==="text"?hJ(J.messages,J.tools):J.messages,H={},V=XK(J.posture);if(V!==void 0)H.posture=V;let U=YK(J.directive);if(U!==void 0)H.directive=U;if(J.modelPersona!==void 0)H.modelPersona=J.modelPersona;return{tier:$,messages:GK(DK(Y)),opts:z,...H}}var i=new Map,p=EJ.join(QJ.Path.data,"qlex-tier-advisories.json"),QK="qlex-tier-advisories",SK=2592000000,UJ=!1,LK;function fJ(J,K){if(!J||typeof J!=="object")return;let Z=J;if(typeof Z.capturedAt!=="number"||K-Z.capturedAt>SK)return;if(!Z.advisory)return;return{advisory:Z.advisory,capturedAt:Z.capturedAt}}async function MK(){if(UJ)return;try{let J=JSON.parse(await y.readFile(p,"utf8")),K=Date.now();for(let[Z,$]of Object.entries(J)){let z=fJ($,K);if(z)vJ(Z,z.advisory,z.capturedAt)}}catch{}UJ=!0}function kK(){return LK??=MK()}function vJ(J,K,Z=Date.now()){i.set(J,{advisory:K,capturedAt:Z})}async function qK(J){await OJ.withLock(QK,async()=>{let K={};try{let $=JSON.parse(await y.readFile(p,"utf8")),z=Date.now();for(let[X,Y]of Object.entries($)){let H=fJ(Y,z);if(H)K[X]=H}}catch{}for(let[$,z]of J){let X=K[$];if(!X||X.capturedAt<=z.capturedAt)K[$]=z}await y.mkdir(EJ.dirname(p),{recursive:!0});let Z=`${p}.${process.pid}.${dJ()}.tmp`;try{await y.writeFile(Z,JSON.stringify(K)),await y.rename(Z,p)}catch($){throw await y.rm(Z,{force:!0}).catch(()=>{}),$}})}function EK(){if(l)return;l=!0,zJ=zJ.then(()=>{return l=!1,qK([...i].map(([J,K])=>[J,K]))}).catch((J)=>{l=!1,E.warn("failed to persist tier output advisories",{file:p,error:J instanceof Error?J.message:String(J)})})}function f(J){return typeof J==="number"&&Number.isFinite(J)&&J>0?J:void 0}function wK(J,K){let Z={},$=f(K.tierOutputLimit),z=f(K.tierRecommendedStepTokens),X=f(K.reasoningReserveTokens),Y=f(K.visibleOutputFloorTokens),H=f(K.recommendedTotalTokens),V=f(K.viableTotalFloorTokens),U=f(K.budgetPolicyVersion);if($!==void 0)Z.tierOutputLimit=$;if(z!==void 0)Z.tierRecommendedStepTokens=z;if(X!==void 0)Z.reasoningReserveTokens=X;if(Y!==void 0)Z.visibleOutputFloorTokens=Y;if(H!==void 0)Z.recommendedTotalTokens=H;if(V!==void 0)Z.viableTotalFloorTokens=V;if(typeof K.reasoningReported==="boolean")Z.reasoningReported=K.reasoningReported;if(U!==void 0)Z.budgetPolicyVersion=U;if(Object.keys(Z).length===0)return;vJ(J,Z),EK()}function RK(J){return i.get(J)?.advisory}function tK(){i.clear()}function eK(){return zJ}function CK(J){let K=(Z)=>typeof Z==="string"&&(Z.startsWith("qlex")||Z.startsWith("qortex"));return K(J.id)||K(J.object)}function AK(J){return J.id==="qortex-routing"&&J.object==="qortex.routing.status"&&J.status==="free-fallback"}function JZ(J){if(!J||typeof J!=="object")return!1;let K=J,Z=K.qortex_routing;return K.id==="qlex-stream"&&K.object==="chat.completion.chunk"&&Array.isArray(K.choices)&&!!Z&&typeof Z==="object"&&Z.status==="free-fallback"}function TK(J){let K=[],Z=J.indexOf(`
|
|
12
|
-
`)===-1?[J]:J.split(`
|
|
13
|
-
`);for(let Y of Z){let H=Y.endsWith("\r")?Y.slice(0,-1):Y;if(!H.startsWith("data:"))continue;let V=H.slice(5);if(V.startsWith(" "))V=V.slice(1);K.push(V)}if(K.length===0)return{kind:"skip"};let $=K.length===1?K[0]:K.join(`
|
|
14
|
-
`);if($==="")return{kind:"skip"};if($==="[DONE]")return{kind:"done"};if($.startsWith("[ERROR]"))return{kind:"error",message:$.slice(7).trim()||"qlex stream error"};let z=$.charCodeAt(0),X=z===123||z===91||z===32||z===9||z===10||z===13;try{if(!X)return{kind:"token",content:$};let Y=JSON.parse($);if(Y&&typeof Y==="object"){let H=Y.id;if(H==="qlex-cost"||H==="qortex-cost")return{kind:"cost",cost:Y};if(H==="qlex-stream"&&Y.usage&&typeof Y.usage==="object"){let P=Y.choices,j;if(Array.isArray(P)&&P[0]&&typeof P[0]==="object"){let N=P[0].finish_reason;if(typeof N==="string")j=N}return{kind:"usage",usage:Y.usage,finishReason:j}}if(AK(Y))return{kind:"control",control:"free-tier-fallback",chunk:Y};if(Array.isArray(Y.choices))return{kind:"passthrough",chunk:Y};let V=Y,U=typeof V.content==="string"?V.content:typeof V.text==="string"?V.text:typeof V.delta==="string"?V.delta:void 0;if(U!==void 0)return{kind:"token",content:U};if(CK(Y)){let P=Y.object;return{kind:"control",control:typeof P==="string"&&P.endsWith(".tier.outputLimits")?"tier-output-limits":"unknown",chunk:Y}}}}catch{}return{kind:"token",content:$}}function BK(J,K){let Z=Math.min(J.length,K.length-1);for(let $=Z;$>=1;$--)if(K.startsWith(J.slice(J.length-$)))return $;return 0}function IK(J){if(typeof J==="string"){try{let Z=JSON.parse(J);if(Z!==null&&typeof Z==="object")return J}catch{}let K=XJ(J);return JSON.stringify(K??J)}return JSON.stringify(J??{})}class gJ{onText;onToolCall;pending="";inBlock=!1;constructor(J,K){this.onText=J;this.onToolCall=K}feed(J){this.pending+=J,this.drain(!1)}flush(){if(this.drain(!0),this.inBlock)this.emitBlock(this.pending,!0),this.inBlock=!1;else if(this.pending.length>0)this.onText(this.pending);this.pending=""}drain(J){while(!0)if(!this.inBlock){let K=this.pending.indexOf(n);if(K===-1){let Z=J?0:BK(this.pending,n),$=this.pending.length-Z;if($>0)this.onText(this.pending.slice(0,$)),this.pending=Z>0?this.pending.slice($):"";return}if(K>0)this.onText(this.pending.slice(0,K));this.pending=this.pending.slice(K+n.length),this.inBlock=!0}else{let K=this.pending.indexOf(r);if(K===-1)return;if(this.emitBlock(this.pending.slice(0,K),!1),this.pending=this.pending.slice(K+r.length),this.pending.startsWith(`\r
|
|
15
|
-
`))this.pending=this.pending.slice(2);else if(this.pending.startsWith(`
|
|
16
|
-
`))this.pending=this.pending.slice(1);this.inBlock=!1}}emitBlock(J,K){try{let Z=JSON.parse(J.trim());if(Z&&typeof Z==="object"&&typeof Z.name==="string"){this.onToolCall({name:Z.name,arguments:IK(Z.arguments)});return}}catch{}this.onText(`${n}${J}${K?"":r}`)}}function ZJ(J,K,Z){let $={id:"qlex-stream",object:"chat.completion.chunk",created:Math.floor(Date.now()/1000),model:"qlex",choices:[{index:0,delta:J,finish_reason:K}]};if(Z)$.usage=Z;return`data: ${JSON.stringify($)}
|
|
17
|
-
|
|
18
|
-
`}function xK(J,K){let Z=K?.toolProtocolEnabled===!0,$=K?.tier,z=K?.requestedOutputBudget,X=K?.idleTimeoutMs??sJ,Y=J.getReader(),H=new TextDecoder,V=new TextEncoder,U="",P=!1,j=!1,N,L,O,k,w=!1,I=!1,g=0,T=0;return new ReadableStream({async start(q){let B=(G)=>{if(G.length>0)w=!0;T+=G.length;let D=P?{content:G}:{role:"assistant",content:G};P=!0,q.enqueue(V.encode(ZJ(D,null)))},S=0,A=Z?new gJ(B,(G)=>{E.debug("tool call ingress",{tool:G.name,source:"text-shim",args:YJ(G.arguments),objectShaped:XJ(G.arguments)!==void 0});let D={...P?{}:{role:"assistant"},tool_calls:[{index:S,id:`qlexcall_${Date.now().toString(36)}_${S}`,type:"function",function:{name:G.name,arguments:G.arguments}}]};P=!0,I=!0,S++,q.enqueue(V.encode(ZJ(D,null)))}):void 0,HJ=(G)=>A?A.feed(G):B(G),Q=()=>{A?.flush();let D=N||L!==void 0||O!==void 0?{prompt_tokens:N?.tokens.prompt??O?.prompt??0,completion_tokens:N?.tokens.completion??O?.completion??0,total_tokens:N?.tokens.total??(N?.tokens.prompt??O?.prompt??0)+(N?.tokens.completion??O?.completion??0),cost_usd:N?.cost_usd,cost_credits:N?.cost_credits??N?.cost_qredits,context_window:L}:void 0;if(D&&(D.cost_usd??0)>0&&D.prompt_tokens===0)E.warn("qlex billed turn reported zero prompt tokens",{tier:$,completionTokens:D.completion_tokens,costUsd:D.cost_usd,source:N?"cost.summary":"usage frame"});let W=S>0?"tool_calls":k??"stop";if(W==="length"||W==="max_tokens"){let _=o($??"adaptive",z),C=_!==void 0;E.debug("qlex output budget exhausted",{tier:$,contentStreamed:w,outputBudgetRecoveryAvailable:C}),q.error(new v("output budget exhausted",{category:"output_budget_exhausted",retryable:!1,outputBudgetRecoveryAvailable:C,outputBudgetRecoveryTokens:_})),j=!0;return}if(!w&&!I&&k!=="tool_calls"){let _=o($??"adaptive",z),C=_!==void 0;E.debug("qlex completed without visible output",{tier:$,outputBudgetRecoveryAvailable:C}),q.error(new v("empty output",{category:"empty_output",retryable:!1,outputBudgetRecoveryAvailable:C,outputBudgetRecoveryTokens:_})),j=!0;return}if(q.enqueue(V.encode(ZJ({},W,D))),q.enqueue(V.encode(`data: [DONE]
|
|
19
|
-
|
|
20
|
-
`)),!N&&$!==void 0)E.info("qlex cost frame absent on stream finish",{tier:$});q.close(),j=!0},M=(G)=>{let D=TK(G);switch(g++,D.kind){case"skip":return!1;case"token":return HJ(D.content),!1;case"passthrough":{let W=D.chunk.choices;if(Array.isArray(W)&&W[0]&&typeof W[0]==="object"){let _=W[0].finish_reason;if(typeof _==="string")k=_;let C=W[0].delta;if(typeof C?.content==="string"&&C.content.length>0)w=!0;if(Array.isArray(C?.tool_calls))I=!0;PK(W[0].delta)}P=!0;{let _=D.chunk.choices?.[0]?.delta?.content;if(typeof _==="string")T+=_.length}return q.enqueue(V.encode(`data: ${JSON.stringify(D.chunk)}
|
|
21
|
-
|
|
22
|
-
`)),!1}case"cost":if(D.cost.final)N=D.cost;return!1;case"usage":if(D.usage.context_window!==void 0)L=D.usage.context_window;if(D.usage.prompt_tokens!==void 0&&D.usage.completion_tokens!==void 0)O={prompt:D.usage.prompt_tokens,completion:D.usage.completion_tokens};if(D.finishReason!==void 0)k=D.finishReason;return!1;case"control":{if(D.control==="tier-output-limits"){let W=D.chunk;if($!==void 0)wK($,W);E.debug("qlex tier output limits",{tierOutputLimit:W.tierOutputLimit,tierRecommendedStepTokens:W.tierRecommendedStepTokens,tierStepGuidance:W.tierStepGuidance,reasoningReserveTokens:W.reasoningReserveTokens,visibleOutputFloorTokens:W.visibleOutputFloorTokens,recommendedTotalTokens:W.recommendedTotalTokens,viableTotalFloorTokens:W.viableTotalFloorTokens,reasoningReported:W.reasoningReported,budgetPolicyVersion:W.budgetPolicyVersion})}else if(D.control==="free-tier-fallback")q.enqueue(V.encode(`data: ${JSON.stringify({id:"qlex-stream",object:"chat.completion.chunk",created:Math.floor(Date.now()/1000),model:"qlex",choices:[],qortex_routing:{status:"free-fallback"}})}
|
|
23
|
-
|
|
24
|
-
`));else E.debug("qlex control frame dropped",{id:D.chunk.id,object:D.chunk.object});return!1}case"done":return Q(),!0;case"error":{let W=GJ(D.message);E.warn("qlex stream error frame",{tier:$,raw:D.message,frameIndex:g,streamedContentChars:T,contentStreamed:P,upstreamCode:W.upstreamCode,requestId:W.requestId,category:W.category,retryable:W.retryable});let _=W.category==="output_budget_exhausted"||W.category==="empty_output"?o($??"adaptive",z):void 0;if(W.retryable===!1&&_!==void 0)W.outputBudgetRecoveryAvailable=!0,W.outputBudgetRecoveryTokens=_;return q.error(new v(D.message,W,{textKept:w})),j=!0,!0}}},R=async()=>{if(!(X>0))return Y.read();let G;try{return await Promise.race([Y.read(),new Promise((D,W)=>{G=setTimeout(()=>{let _=Math.round(X/1000);E.warn("qlex stream idle timeout",{tier:$,idleTimeoutMs:X,frameIndex:g,streamedContentChars:T,contentStreamed:P}),W(new v(`the gateway sent nothing for ${_}s`,{category:"transient",retryable:!0})),Y.cancel(Error(`qlex stream idle for ${_}s`)).catch(()=>{})},X)})])}finally{if(G!==void 0)clearTimeout(G)}};try{while(!0){let{done:D,value:W}=await R();if(D)break;U+=H.decode(W,{stream:!0});let _;while((_=U.indexOf(`
|
|
25
|
-
|
|
26
|
-
`))!==-1){let C=U.slice(0,_);if(U=U.slice(_+2),M(C))return}}U+=H.decode();let G=U.replace(/\r?\n$/,"");if(G.length>0&&M(G))return;if(!j)Q()}catch(G){if(j)return;if(G instanceof v){q.error(G);return}let D=G instanceof Error?G.message:String(G);q.error(new v(D,GJ(D),{textKept:w}))}finally{Y.releaseLock()}},cancel(q){Y.cancel(q).catch(()=>{})}})}function yJ(J){return{content:typeof J.content==="string"?J.content:J.choices?.[0]?.message?.content??"",finishReason:J.choices?.[0]?.finish_reason??"stop"}}function bK(J){let K=J??{},{content:Z,finishReason:$}=yJ(K),z=K.usage??{},X=z.prompt_tokens??0,Y=z.completion_tokens??0,H="orch-"+Date.now().toString(36),V=Math.floor(Date.now()/1000),U=(O,k,w)=>{let I={id:H,object:"chat.completion.chunk",created:V,model:"orchestrated",choices:[{index:0,delta:O,finish_reason:k}]};if(w)I.usage=w;return`data: ${JSON.stringify(I)}
|
|
27
|
-
|
|
28
|
-
`},P={prompt_tokens:X,completion_tokens:Y,total_tokens:z.total_tokens??X+Y};if(typeof z.cost_usd==="number")P.cost_usd=z.cost_usd;if(typeof z.cost_credits==="number")P.cost_credits=z.cost_credits;if(typeof z.context_window==="number")P.context_window=z.context_window;let j=[U({role:"assistant",content:""},null),U({content:Z},null),U({},$,P),`data: [DONE]
|
|
29
|
-
|
|
30
|
-
`],N=new TextEncoder,L=new ReadableStream({start(O){for(let k of j)O.enqueue(N.encode(k));O.close()}});return new Response(L,{status:200,headers:{"content-type":"text/event-stream"}})}function KZ(J){let K=J??{},{content:Z,finishReason:$}=yJ(K),z=K.usage??{},X=z.prompt_tokens??0,Y=z.completion_tokens??0,H={id:"orch-"+Date.now(),object:"chat.completion",created:Math.floor(Date.now()/1000),model:"orchestrated",choices:[{index:0,message:{role:"assistant",content:Z},finish_reason:$}],usage:{prompt_tokens:X,completion_tokens:Y,total_tokens:z.total_tokens??X+Y,...typeof z.cost_usd==="number"?{cost_usd:z.cost_usd}:{},...typeof z.context_window==="number"?{context_window:z.context_window}:{}}};return new Response(JSON.stringify(H),{status:200,headers:{"content-type":"application/json"}})}async function hK(J,K,Z){let $=xJ(J,K);if(!$.requestId)$.requestId=a(Z.requestId);let z=K?`HTTP ${J}: ${K}`:`HTTP ${J}`;switch(E.error("gateway rejected request",{tier:Z.tier,status:J,category:$.category,upstreamCode:$.upstreamCode,field:$.field,retryable:$.retryable}),$.category){case"billing":return new RJ(K||void 0,$);case"rate_limited":return new CJ($);case"gateway_routing":return new u(`HTTP ${J}`,$);case"invalid_credentials":return await Z.onInvalidCredentials?.().catch(()=>{}),new AJ(z,$);case"request_too_large":return new t("irreducible",$.upstreamMessage??K??void 0,$);case"request_rejected":case"tool_protocol":return new TJ($.upstreamMessage??K??void 0,$.field,$);case"configuration":case"transient":case"unknown":default:return new u(z,$)}}function PJ(J){let K=NJ();if(K===void 0)return J;let Z=h(J);if(Z<=K)return J;let $=KJ(J,K);return E.warn("request over known size ceiling, reducing before send",{tier:J.tier,bytes:Z,ceiling:K,reducedBytes:$.bytes,fits:$.reduced,...$.actions}),$.bytes<Z?$.body:J}function _J(J){let K=h(J),Z=JJ(K),$=KJ(J,Z);if(!$.reduced)throw E.error("request too large and cannot be reduced further",{tier:J.tier,rejectedBytes:K,ceiling:Z,reducedBytes:$.bytes,...$.actions}),new t("irreducible");return E.warn("request too large, retrying once with reduced history",{tier:J.tier,rejectedBytes:K,ceiling:Z,reducedBytes:$.bytes,...$.actions,notice:F.copy().requestTooLargeRecovering()}),$.body}function FJ(J){let K=h(J);throw JJ(K),E.error("reduced request still too large",{tier:J.tier,rejectedBytes:K}),new t("after-reduction")}function fK(J,K=globalThis.fetch,Z,$){let z=$?.responseTimeoutMs??oJ;return async(X,Y)=>{if(Y?.method==="POST"&&typeof Y?.body==="string"){let H;try{H=JSON.parse(Y.body)}catch{return K(X,Y)}let U=(typeof H.model==="string"?H.model:void 0)?.split("/").at(-1);if(U&&F.isDecisionTier(U))F.assertChatTierSupported(U);let P=FK();await kK();let j=RK(H.model??"adaptive"),N=jJ(H,{toolMode:P,outputAdvisory:j});if(WK(H.messages)&&!NK(N.messages)){let{dropped:Q}=bJ(P==="text"?hJ(H.messages,H.tools):H.messages);throw E.error("refusing to send: user message lost in normalization",{tier:N.tier,toolMode:P,inputRoles:Array.isArray(H.messages)?H.messages.map((M)=>M&&typeof M==="object"?String(M.role):"?"):"not-an-array",droppedCount:Q.length,dropped:Q}),new BJ("your message could not be turned into sendable content")}let L=await J(),O=typeof L==="string"?{key:L,method:"sso"}:L;if(!O?.key)throw new wJ;let k=new Headers(Y.headers),w=()=>{if(O.method==="api-key")k.delete("Authorization"),k.set("x-api-key",O.key);else k.delete("x-api-key"),k.set("Authorization",`Bearer ${O.key}`)};w(),k.set("Content-Type","application/json");let I=!1,g=async(Q,M,R)=>{let G=xJ(Q,M),D=async()=>({retry:!1,error:await hK(Q,M,{onInvalidCredentials:Z,tier:N.tier,requestId:R?.get("x-request-id")??R?.get("request-id")??R?.get("x-qlex-request-id")??void 0})});if(G.category!=="invalid_credentials"||I)return D();I=!0;let W=$J(O),_=await kJ(O);if(_.kind==="recovered"&&$J(_.credential)!==W)return O=_.credential,w(),{retry:!0};if(_.kind==="inconclusive")return{retry:!1,error:new u(`HTTP ${Q}: ${_.reason}`,G)};return D()};if(N.tier==="orchestrated"){let Q=Y.signal,M=async(D)=>{let W=new AbortController,_=()=>W.abort(Q?.reason);if(Q)if(Q.aborted)W.abort(Q.reason);else Q.addEventListener("abort",_,{once:!0});let C=!1,pJ=setTimeout(()=>{C=!0,W.abort()},z);try{return await K(lJ,{method:"POST",headers:k,body:JSON.stringify(D),signal:W.signal})}catch(uJ){if(C)throw new u(`no response within ${Math.round(z/1000)}s`);throw uJ}finally{clearTimeout(pJ),Q?.removeEventListener("abort",_)}},R=PJ(N),G=await M(R);if(G.status===413){if(await G.body?.cancel().catch(()=>{}),R=_J(R),G=await M(R),G.status===413)await G.body?.cancel().catch(()=>{}),FJ(R)}while(!G.ok){let D=await G.text().catch(()=>""),W=await g(G.status,D,G.headers);if(!W.retry)throw W.error;G=await M(R)}return bK(await G.json())}let T=Y.signal,q=async(Q)=>{let M=new AbortController,R=()=>M.abort(T?.reason);if(T)if(T.aborted)M.abort(T.reason);else T.addEventListener("abort",R,{once:!0});let G=()=>T?.removeEventListener("abort",R),D=!1,W=setTimeout(()=>{D=!0,M.abort()},z);try{return{res:await K(iJ,{method:"POST",headers:k,body:JSON.stringify(Q),signal:M.signal}),detach:G}}catch(_){if(G(),D)throw new u(`no response within ${Math.round(z/1000)}s`);throw _}finally{clearTimeout(W)}},B=PJ(N),{res:S,detach:A}=await q(B);if(S.status===400&&P==="native"&&OK(H))A(),await S.body?.cancel().catch(()=>{}),B=jJ(H,{toolMode:"text",outputAdvisory:j}),{res:S,detach:A}=await q(B);if(S.status===413){if(A(),await S.body?.cancel().catch(()=>{}),B=_J(B),{res:S,detach:A}=await q(B),S.status===413)A(),await S.body?.cancel().catch(()=>{}),FJ(B)}try{while(!S.ok){let Q=await S.text().catch(()=>""),M=await g(S.status,Q,S.headers);if(A(),!M.retry)throw M.error;({res:S,detach:A}=await q(B))}}catch(Q){throw A(),Q}if(H.stream!==!1&&S.body){let Q=Array.isArray(H.tools)&&H.tools.length>0;return new Response(xK(S.body,{toolProtocolEnabled:Q,tier:N.tier,requestedOutputBudget:N.opts.max_tokens}),{status:S.status,statusText:S.statusText,headers:{"content-type":"text/event-stream"}})}return S}return K(X,Y)}}function ZZ(J){let K=J.getToken??(async()=>J.bearerToken),Z=fK(K,globalThis.fetch,J.onInvalidCredentials);return qJ({name:J.name??"qlex",baseURL:F.streamBaseUrl(),fetch:Z})}function $Z(J,K){return o(J,K)!==void 0}var vK=2;function o(J,K){let Z=i.get(J)?.advisory,$=F.tierBudgetFacts(J),z=Z?.tierOutputLimit??$?.output;if(!z)return;let X=K??Z?.recommendedTotalTokens??Z?.tierRecommendedStepTokens??$?.recommendedTotal??$?.recommendedStep;if(!X||X>=z)return;let Y=Z?.recommendedTotalTokens??Z?.tierRecommendedStepTokens??$?.recommendedTotal??$?.recommendedStep??X,H=Math.min(z,Math.max(X+1,X*vK,Y));return H>X?H:void 0}var l=!1,zJ=Promise.resolve();
|
|
31
|
-
export{iJ as Zn,lJ as _n,d as $n,a as ao,wJ as bo,RJ as co,CJ as do,AJ as eo,TJ as fo,t as go,BJ as ho,u as io,oJ as jo,sJ as ko,aK as lo,v as mo,GJ as no,KK as oo,IJ as po,xJ as qo,$K as ro,s as so,bJ as to,DK as uo,WK as vo,NK as wo,GK as xo,n as yo,r as zo,jK as Ao,XJ as Bo,hJ as Co,FK as Do,OK as Eo,jJ as Fo,wK as Go,RK as Ho,tK as Io,eK as Jo,JZ as Ko,TK as Lo,BK as Mo,IK as No,gJ as Oo,xK as Po,bK as Qo,KZ as Ro,fK as So,ZZ as To,$Z as Uo,o as Vo};
|
package/bundle/chunk-apneazwv.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fl as a,gl as b,hl as c,il as d,jl as e,kl as f,ll as g,ml as h,nl as i}from"./chunk-2pw56zpj.js";import"./chunk-4gzggzc0.js";import"./chunk-h036zy9e.js";import"./chunk-3152y1q9.js";import"./chunk-6cztstry.js";import"./chunk-4yd2vvh6.js";import"./chunk-fkq0v5qv.js";import"./chunk-1e75j4m1.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{i as stopRefresh,h as startRefresh,g as refresh,d as readModelCatalogResponse,f as get,c as Provider,b as Model,a as MODEL_CATALOG_MAX_BYTES,e as Data};
|
package/bundle/chunk-aw5yv01t.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{a,b,c,d,e,f,g}from"./chunk-rk4c0zat.js";import"./chunk-zbt53cb5.js";import"./chunk-rn3je2hv.js";import"./chunk-djdfpezf.js";import"./chunk-p0852vfn.js";import"./chunk-ej0yzstw.js";import"./chunk-w8nj5ph5.js";import"./chunk-psmwrvqs.js";import"./chunk-f0x3q5dj.js";import"./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"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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"./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"./chunk-sh03ka27.js";export{f as statusEffect,a as resolveApiKeyFlag,e as logoutEffect,d as loginEffect,c as interactiveLogin,b as apiKeyLoginEffect,g as AuthCommand};
|
package/bundle/chunk-az12tp53.js
DELETED
package/bundle/chunk-b5dpzcc7.js
DELETED
package/bundle/chunk-baq0wk3q.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Br as a,Cr as b,Dr as c}from"./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-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{c as makeRuntime,a as attachWith,b as attach};
|
package/bundle/chunk-bcgtqx3g.js
DELETED
package/bundle/chunk-bde5d507.js
DELETED
package/bundle/chunk-bzzggc3s.js
DELETED
package/bundle/chunk-c8qx439t.js
DELETED
package/bundle/chunk-ckw51fn6.js
DELETED
package/bundle/chunk-denp0wrq.js
DELETED
package/bundle/chunk-depxzjer.js
DELETED
package/bundle/chunk-dhvqpcf3.js
DELETED
package/bundle/chunk-dkqqswbv.js
DELETED
package/bundle/chunk-e5t7jsxa.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
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};
|
package/bundle/chunk-eb811dt2.js
DELETED
package/bundle/chunk-fbz2xv2w.js
DELETED
package/bundle/chunk-ffynh19k.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{A as g,u as a,v as b,w as c,x as d,y as e,z as f}from"./chunk-h6b5966p.js";import"./chunk-ywj77e0m.js";import"./chunk-83n11xym.js";import"./chunk-h036zy9e.js";import"./chunk-j3agzs13.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-fdmz0502.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{e as waitForDependencies,c as layer,f as get,d as defaultLayer,g as TuiConfig,b as Service,a as Info};
|
package/bundle/chunk-fgr9xshx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Al as s,Bl as t,Cl as u,El as v,Fl as w}from"./chunk-rt49c6js.js";import"./chunk-4gzggzc0.js";import{Am as c,Bm as d,Cm as e,Dm as f,Em as g,Fm as h,Gm as i,Hm as j,Im as k,Km as l,Lm as m,Mm as n,Om as o,Qm as p,Xm as q,Ym as r,mm as a,zm as b}from"./chunk-31a47ptm.js";import"./chunk-j3agzs13.js";import"./chunk-3152y1q9.js";import"./chunk-71jmhvef.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-6dd2dx69.js";import"./chunk-fdmz0502.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{a as sql,e as or,f as not,c as ne,j as lte,i as lt,p as like,l as isNull,m as isNotNull,k as inArray,h as gte,g as gt,n as exists,b as eq,r as desc,t as count,o as between,q as asc,d as and,w as Storage,v as NotFoundError,s as JsonMigration,u as Database};
|
package/bundle/chunk-gbvcb4k1.js
DELETED
package/bundle/chunk-gdtnqzbp.js
DELETED
package/bundle/chunk-gkfvhh28.js
DELETED
package/bundle/chunk-gvx5hmhk.js
DELETED
package/bundle/chunk-gww6abk3.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{n as a,o as b}from"./chunk-mq3w4z8k.js";import"./chunk-vgmgg994.js";import"./chunk-h6b5966p.js";import"./chunk-ajyfms68.js";import"./chunk-djdfpezf.js";import"./chunk-n4qbnecw.js";import"./chunk-art8gejd.js";import"./chunk-wne3v1fk.js";import"./chunk-840mmmzz.js";import"./chunk-rqap90xh.js";import"./chunk-k769v1ds.js";import"./chunk-0mztgsxp.js";import"./chunk-ej0yzstw.js";import"./chunk-c5cyt23k.js";import"./chunk-v1axkp21.js";import"./chunk-fswt9qc0.js";import"./chunk-psmwrvqs.js";import"./chunk-878sb0es.js";import"./chunk-f0x3q5dj.js";import"./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"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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-06tgmvh6.js";import"./chunk-fdmz0502.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-hf39qx6t.js";import"./chunk-x0de4z05.js";import"./chunk-sh03ka27.js";export{b as tui,a as rendererConfig};
|
package/bundle/chunk-hham7r33.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{iP as a,jP as b,kP as c,lP as d,mP as e,nP as f,oP as g,pP as h,qP as i,rP as j}from"./chunk-hf39qx6t.js";import"./chunk-sh03ka27.js";export{c as TreeCursor,b as Tree,f as Query,j as Parser,d as Node,i as MIN_COMPATIBLE_VERSION,a as LookaheadIterator,g as Language,h as LANGUAGE_VERSION,e as CaptureQuantifier};
|
package/bundle/chunk-hmm0gj34.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{jg as E}from"./chunk-y4cz5s3h.js";import"./chunk-yhpwceqg.js";import"./chunk-878sb0es.js";import"./chunk-f0x3q5dj.js";import"./chunk-5qhsfjzq.js";import"./chunk-nfg7nt13.js";import"./chunk-4s1n38ds.js";import"./chunk-76wm7tw8.js";import"./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"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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"./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{yP as z}from"./chunk-sh03ka27.js";var J={command:"generate",handler:async()=>{let A=await E.openapi();for(let q of Object.values(A.paths))for(let y of["get","post","put","delete","patch"]){let k=q[y];if(!k?.operationId)continue;k["x-codeSamples"]=[{lang:"js",source:['import { createQitQodeClient } from "@qitqode/sdk"',"","const client = createQitQodeClient()",`await client.${k.operationId}({`," ...","})"].join(`
|
|
3
|
-
`)}]}let F=JSON.stringify(A,null,2),B=await import("./chunk-dmb0ez0m.js"),C=await import("./chunk-6pt6nqwk.js"),D=await import("./chunk-gfvq78gy.js"),G=await(B.format??B.default?.format)(F,{parser:"json",plugins:[C.default??C,D.default??D],printWidth:120});await new Promise((q,y)=>{process.stdout.write(G,(k)=>{if(k)y(k);else q()})})}};export{J as GenerateCommand};
|
package/bundle/chunk-hsjbe5zy.js
DELETED
package/bundle/chunk-j89sv999.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{bl as a}from"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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-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"./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-x0de4z05.js";import"./chunk-sh03ka27.js";export{a as Session};
|
package/bundle/chunk-k9b4005p.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{o as L}from"./chunk-mq3w4z8k.js";import"./chunk-vgmgg994.js";import{A as K}from"./chunk-h6b5966p.js";import{B as N}from"./chunk-tz1sv9kt.js";import{D as F,F as J}from"./chunk-ajyfms68.js";import"./chunk-djdfpezf.js";import"./chunk-n4qbnecw.js";import"./chunk-art8gejd.js";import"./chunk-wne3v1fk.js";import{da as M}from"./chunk-bq6cvf16.js";import"./chunk-840mmmzz.js";import"./chunk-rqap90xh.js";import"./chunk-k769v1ds.js";import"./chunk-0mztgsxp.js";import"./chunk-ej0yzstw.js";import{fe as B}from"./chunk-w8nj5ph5.js";import"./chunk-c5cyt23k.js";import"./chunk-v1axkp21.js";import"./chunk-fswt9qc0.js";import{cg as z}from"./chunk-psmwrvqs.js";import"./chunk-878sb0es.js";import"./chunk-f0x3q5dj.js";import"./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"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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-06tgmvh6.js";import"./chunk-fdmz0502.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-hf39qx6t.js";import"./chunk-x0de4z05.js";import"./chunk-sh03ka27.js";var x=B({command:"attach <url>",describe:"attach to a running qitqode server",builder:(j)=>j.positional("url",{type:"string",describe:"http://localhost:4096",demandOption:!0}).option("dir",{type:"string",description:"directory to run in"}).option("continue",{alias:["c"],describe:"continue the last session",type:"boolean"}).option("session",{alias:["s"],type:"string",describe:"session id to continue"}).option("fork",{type:"boolean",describe:"fork the session when continuing (use with --continue or --session)"}).option("password",{alias:["p"],type:"string",describe:"basic auth password (defaults to QITQODE_SERVER_PASSWORD)"}),handler:async(j)=>{let Q=J();try{F();let q=N(j);if(q){z.error(q),process.exitCode=1;return}let R=(()=>{if(!j.dir)return;try{return process.chdir(j.dir),process.cwd()}catch{return j.dir}})(),S=M({password:j.password}),V=await K.get();await L({url:j.url,config:V,args:{continue:j.continue,sessionID:j.session,fork:j.fork},directory:R,headers:S})}finally{Q?.()}}});export{x as AttachCommand};
|
package/bundle/chunk-kht2kwam.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ah as b,zh as a}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"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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"./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"./chunk-sh03ka27.js";export{b as AppRuntime,a as AppLayer};
|
package/bundle/chunk-kzkb4648.js
DELETED
package/bundle/chunk-m2540waa.js
DELETED
package/bundle/chunk-mreacz8r.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{fg as a,gg as b,hg as c,ig as d,jg as e}from"./chunk-y4cz5s3h.js";import"./chunk-yhpwceqg.js";import"./chunk-878sb0es.js";import"./chunk-f0x3q5dj.js";import"./chunk-5qhsfjzq.js";import"./chunk-nfg7nt13.js";import"./chunk-4s1n38ds.js";import"./chunk-76wm7tw8.js";import"./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"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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"./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"./chunk-sh03ka27.js";export{c as url,b as openapi,d as listen,e as Server,a as Default};
|
package/bundle/chunk-mscvm1rm.js
DELETED
package/bundle/chunk-mw3hh526.js
DELETED
package/bundle/chunk-n3nsrk5n.js
DELETED
package/bundle/chunk-n4qbnecw.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ah as M}from"./chunk-6zdzbmzs.js";import{bl as Y}from"./chunk-5asf8f41.js";import{Gs as F}from"./chunk-4yd2vvh6.js";import{et as W}from"./chunk-5re7995e.js";import{hu as y}from"./chunk-ffx0cr44.js";import{gI as K}from"./chunk-9kc2th5c.js";import{EOL as b}from"os";import B from"path";var z=W.tiers().map((q)=>({label:q.label,providerID:q.providerID,modelID:q.modelID})),$=Object.fromEntries(W.tiers().map((q)=>[`${q.providerID}/${q.modelID}`,q.label]));function H(q){return new Map((q??[]).map((w)=>[w.id,w]))}function T(q,w,C){return(q instanceof Map?q.get(w):Array.isArray(q)?q.find((Q)=>Q.id===w):void 0)?.models[C]}function N(q,w,C){let J=`${w}/${C}`;if($[J])return $[J];return T(q,w,C)?.name??C}function f(q,w){return q&&w===!0?`${q} (fallback)`:q}function I(q){if(!q.busy||!q.model)return!1;let w=[...q.messages].reverse().find((C)=>C.role==="assistant"&&C.time?.completed===void 0);return w?.providerID===q.model.providerID&&w.modelID===q.model.modelID&&w.freeTierFallback===!0}function D(q,w){let C=W.tiers().find((J)=>J.providerID===q&&J.modelID===w);return C?W.TIER_RATINGS[C.id]:void 0}async function n(q){return M.runPromise(Y.Service.use((w)=>K.gen(function*(){let C=yield*w.get(q),J=yield*w.messages({sessionID:C.id,agentID:"*"});return{info:C,messages:J}})))}function o(){let q=Y.list({limit:1}).next();return q.done?void 0:q.value}function d(q,w){return`session-${q.slice(0,8)}.${w==="markdown"?"md":"json"}`}function E(q,w){return B.resolve(q,w)}async function i(q,w,C){let J=E(q,w);return await y.write(J,C),J}function G(q,w,C){return C.trim()?`[redacted:${q}:${w}]`:C}function U(q,w,C){if(!C)return C;return Object.keys(C).length?{redacted:`${q}:${w}`}:C}function X(q,w){return{...w,value:G("file-text",q,w.value)}}function O(q,w){return w?.map((C,J)=>({...C,file:G(`${q}-file`,String(J),C.file),patch:G(`${q}-patch`,String(J),C.patch)}))}function L(q){if(!q.source)return q.source;if(q.source.type==="symbol")return{...q.source,path:G("file-path",q.id,q.source.path),name:G("file-symbol",q.id,q.source.name),text:X(q.id,q.source.text)};if(q.source.type==="resource")return{...q.source,clientName:G("file-client",q.id,q.source.clientName),uri:G("file-uri",q.id,q.source.uri),text:X(q.id,q.source.text)};return{...q.source,path:G("file-path",q.id,q.source.path),text:X(q.id,q.source.text)}}function x(q){return{...q,url:G("file-url",q.id,q.url),filename:q.filename===void 0?void 0:G("file-name",q.id,q.filename),source:L(q)}}function R(q){switch(q.type){case"text":return{...q,text:G("text",q.id,q.text),metadata:U("text-metadata",q.id,q.metadata)};case"reasoning":return{...q,text:G("reasoning",q.id,q.text),metadata:U("reasoning-metadata",q.id,q.metadata)};case"file":return x(q);case"subtask":return{...q,prompt:G("subtask-prompt",q.id,q.prompt),description:G("subtask-description",q.id,q.description),command:q.command===void 0?void 0:G("subtask-command",q.id,q.command)};case"tool":return{...q,metadata:U("tool-metadata",q.id,q.metadata),state:q.state.status==="pending"?{...q.state,input:U("tool-input",q.id,q.state.input)??q.state.input,raw:G("tool-raw",q.id,q.state.raw)}:q.state.status==="running"?{...q.state,input:U("tool-input",q.id,q.state.input)??q.state.input,title:q.state.title===void 0?void 0:G("tool-title",q.id,q.state.title),metadata:U("tool-state-metadata",q.id,q.state.metadata)}:q.state.status==="completed"?{...q.state,input:U("tool-input",q.id,q.state.input)??q.state.input,output:G("tool-output",q.id,q.state.output),title:G("tool-title",q.id,q.state.title),metadata:U("tool-state-metadata",q.id,q.state.metadata)??q.state.metadata,attachments:q.state.attachments?.map(x)}:{...q.state,input:U("tool-input",q.id,q.state.input)??q.state.input,error:G("tool-error",q.id,q.state.error),metadata:U("tool-state-metadata",q.id,q.state.metadata)}};case"patch":return{...q,hash:G("patch",q.id,q.hash),files:q.files.map((w,C)=>G("patch-file",`${q.id}-${C}`,w))};case"snapshot":return{...q,snapshot:G("snapshot",q.id,q.snapshot)};case"step-start":case"step-finish":return{...q,snapshot:q.snapshot===void 0?void 0:G("snapshot",q.id,q.snapshot)};case"agent":return{...q,source:!q.source?q.source:{...q.source,value:G("agent-source",q.id,q.source.value)}};default:return q}}function s(q){return{info:{...q.info,title:G("session-title",q.info.id,q.info.title),directory:G("session-directory",q.info.id,q.info.directory),summary:!q.info.summary?q.info.summary:{...q.info.summary,diffs:O("session-diff",q.info.summary.diffs)},revert:!q.info.revert?q.info.revert:{...q.info.revert,snapshot:q.info.revert.snapshot===void 0?void 0:G("revert-snapshot",q.info.id,q.info.revert.snapshot),diff:q.info.revert.diff===void 0?void 0:G("revert-diff",q.info.id,q.info.revert.diff)}},messages:q.messages.map((w)=>({info:w.info.role==="user"?{...w.info,system:w.info.system===void 0?void 0:G("system",w.info.id,w.info.system),summary:!w.info.summary?w.info.summary:{...w.info.summary,title:w.info.summary.title===void 0?void 0:G("summary-title",w.info.id,w.info.summary.title),body:w.info.summary.body===void 0?void 0:G("summary-body",w.info.id,w.info.summary.body),diffs:O("message-diff",w.info.summary.diffs)}}:{...w.info,path:{cwd:G("cwd",w.info.id,w.info.path.cwd),root:G("root",w.info.id,w.info.path.root)}},parts:w.parts.map(R)}))}}function e(q,w,C){let J=H(C.providers),Q=`# ${q.title}
|
|
3
|
-
|
|
4
|
-
`;Q+=`**Session ID:** ${q.id}
|
|
5
|
-
`,Q+=`**Created:** ${new Date(q.time.created).toLocaleString()}
|
|
6
|
-
`,Q+=`**Updated:** ${new Date(q.time.updated).toLocaleString()}
|
|
7
|
-
|
|
8
|
-
`,Q+=`---
|
|
9
|
-
|
|
10
|
-
`;for(let V of w)Q+=S(V.info,V.parts,C,J),Q+=`---
|
|
11
|
-
|
|
12
|
-
`;return Q}function S(q,w,C,J){let Q=q.role==="user"?`## User
|
|
13
|
-
|
|
14
|
-
`:h(q,C.assistantMetadata,J??C.providers);for(let V of w)Q+=k(V,C);return Q}function h(q,w,C){if(!w)return`## Assistant
|
|
15
|
-
|
|
16
|
-
`;let J=q.time.completed&&q.time.created?((q.time.completed-q.time.created)/1000).toFixed(1)+"s":"",Q=N(C,q.providerID,q.modelID);return`## Assistant (${F.titlecase(q.agent)} \xB7 ${Q}${J?` \xB7 ${J}`:""})
|
|
17
|
-
|
|
18
|
-
`}function k(q,w){if(q.type==="text"&&!q.synthetic)return`${q.text}
|
|
19
|
-
|
|
20
|
-
`;if(q.type==="reasoning")return w.thinking?`_Thinking:_
|
|
21
|
-
|
|
22
|
-
${q.text}
|
|
23
|
-
|
|
24
|
-
`:"";if(q.type!=="tool")return"";let C=(Q,V="")=>{let _=Math.max(0,...Array.from(Q.matchAll(/`+/g),(j)=>j[0].length)),Z="`".repeat(Math.max(3,_+1));return`${Z}${V}
|
|
25
|
-
${Q}
|
|
26
|
-
${Z}
|
|
27
|
-
`},J=`**Tool: ${q.tool}**
|
|
28
|
-
`;if(w.toolDetails&&q.state.input)J+=`
|
|
29
|
-
**Input:**
|
|
30
|
-
${C(JSON.stringify(q.state.input,null,2),"json")}`;if(w.toolDetails&&q.state.status==="completed"&&q.state.output)J+=`
|
|
31
|
-
**Output:**
|
|
32
|
-
${C(q.state.output)}`;if(w.toolDetails&&q.state.status==="error"&&q.state.error)J+=`
|
|
33
|
-
**Error:**
|
|
34
|
-
${C(q.state.error)}`;return J+b}
|
|
35
|
-
export{z as J,$ as K,H as L,N as M,f as N,I as O,D as P,n as Q,o as R,d as S,i as T,s as U,e as V};
|
package/bundle/chunk-n9nmc4q4.js
DELETED
package/bundle/chunk-nj4as8vy.js
DELETED
package/bundle/chunk-nxm6gpyv.js
DELETED
package/bundle/chunk-pqzx9ha6.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{vg as a,wg as b,xg as c}from"./chunk-yhpwceqg.js";import"./chunk-5asf8f41.js";import"./chunk-2pw56zpj.js";import"./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-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"./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-x0de4z05.js";import"./chunk-sh03ka27.js";export{b as run,a as encodeDir,c as ClaudeImport};
|
package/bundle/chunk-qbjqkezn.js
DELETED
package/bundle/chunk-qhtp1xvx.js
DELETED
package/bundle/chunk-qkztgpay.js
DELETED
package/bundle/chunk-rnf3dy0y.js
DELETED
package/bundle/chunk-rry4kq85.js
DELETED