@qitqode/qitqode-android-arm64 0.1.25 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundle/{chunk-sx5m81em.js → chunk-01gwb793.js} +1 -1
- package/bundle/{chunk-42t25nkb.js → chunk-05amr7y9.js} +1 -1
- package/bundle/{chunk-4kb2efq3.js → chunk-06x1p3t4.js} +1 -1
- package/bundle/{chunk-t07a5431.js → chunk-07net7s8.js} +1 -1
- package/bundle/{chunk-v7ah9gg0.js → chunk-08y06vgt.js} +2 -2
- package/bundle/chunk-09ecxdmd.js +2 -0
- package/bundle/{chunk-2armxd20.js → chunk-0cehm5fn.js} +1 -1
- package/bundle/chunk-0jaj2g7x.js +2 -0
- package/bundle/{chunk-9f6pqped.js → chunk-0m2tj2h9.js} +1 -1
- package/bundle/{chunk-pk0tytcm.js → chunk-0mekr486.js} +1 -1
- package/bundle/{chunk-qe0sfafy.js → chunk-0ndvy0nh.js} +1 -1
- package/bundle/chunk-0nr2925m.js +2 -0
- package/bundle/{chunk-gvtw9c44.js → chunk-0w5npkgr.js} +1 -1
- package/bundle/chunk-0wbq1y92.js +2 -0
- package/bundle/chunk-12pxszgn.js +2 -0
- package/bundle/chunk-1337582e.js +2 -0
- package/bundle/{chunk-ybn8tb09.js → chunk-14ag9ea0.js} +1 -1
- package/bundle/chunk-182jf8fz.js +2 -0
- package/bundle/chunk-1ht3zcsh.js +2 -0
- package/bundle/{chunk-zny2qaqa.js → chunk-1n4w8dya.js} +2 -2
- package/bundle/{chunk-meaybtcc.js → chunk-1qbm1k9y.js} +2 -2
- package/bundle/{chunk-dk3z4k46.js → chunk-1xkwm21b.js} +3 -3
- package/bundle/{chunk-dee1a3yk.js → chunk-1xpx1t40.js} +1 -1
- package/bundle/{chunk-j5b5h08g.js → chunk-1yx4jesj.js} +1 -1
- package/bundle/{chunk-qfz0a58d.js → chunk-25zkavr0.js} +1 -1
- package/bundle/{chunk-b2xya6pq.js → chunk-28vnspd4.js} +1 -1
- package/bundle/{chunk-26qt44f1.js → chunk-2cm91ktc.js} +1 -1
- package/bundle/chunk-2jfd82jk.js +2 -0
- package/bundle/{chunk-3h08jdq8.js → chunk-2jn2hd12.js} +1 -1
- package/bundle/chunk-2k7bbzj2.js +2 -0
- package/bundle/{chunk-0xmx2zfg.js → chunk-2kdn66xt.js} +1 -1
- package/bundle/{chunk-mbh1pdv9.js → chunk-2q76qax6.js} +2 -2
- package/bundle/{chunk-6ddp36ar.js → chunk-2yb59jwr.js} +1 -1
- package/bundle/chunk-30081kwd.js +2 -0
- package/bundle/{chunk-ykfq8bem.js → chunk-32zrch7h.js} +1 -1
- package/bundle/{chunk-2rxt1s22.js → chunk-3bb7y9pq.js} +1 -1
- package/bundle/{chunk-7q5srx7q.js → chunk-3kdhvq0p.js} +1 -1
- package/bundle/chunk-3rgct4bd.js +11 -0
- package/bundle/{chunk-8za87zkr.js → chunk-3s0d17xe.js} +1 -1
- package/bundle/chunk-3vag59se.js +2 -0
- package/bundle/{chunk-wb69d52j.js → chunk-3w64fpwn.js} +1 -1
- package/bundle/chunk-3x5v6sjw.js +2 -0
- package/bundle/{chunk-08ba67f4.js → chunk-3zn71txs.js} +1 -1
- package/bundle/{chunk-qdnxv55k.js → chunk-41ftye7w.js} +1 -1
- package/bundle/chunk-43ep9d7a.js +2 -0
- package/bundle/chunk-48j09m6e.js +3 -0
- package/bundle/{chunk-bnc4626b.js → chunk-4920vf6a.js} +1 -1
- package/bundle/{chunk-78h5dd4t.js → chunk-49tqzsy0.js} +1 -1
- package/bundle/{chunk-9jvnc14g.js → chunk-49ypxzfx.js} +1 -1
- package/bundle/{chunk-0hsb4knd.js → chunk-4k70wrhf.js} +1 -1
- package/bundle/{chunk-dd11kryy.js → chunk-4nck07pc.js} +2 -2
- package/bundle/chunk-4qqja22v.js +2 -0
- package/bundle/{chunk-av290sja.js → chunk-56pwz1kk.js} +1 -1
- package/bundle/{chunk-vq6bh2z9.js → chunk-56qm8xpt.js} +1 -1
- package/bundle/{chunk-9dpn4792.js → chunk-58gp7wbg.js} +2 -2
- package/bundle/{chunk-2z35ewwc.js → chunk-5dm3p5r6.js} +1 -1
- package/bundle/chunk-5gazgxt5.js +2 -0
- package/bundle/{chunk-kb14wxcs.js → chunk-5jtd006j.js} +1 -1
- package/bundle/{chunk-7v4fzkbb.js → chunk-5mec6cde.js} +1 -1
- package/bundle/{chunk-hwbxehhf.js → chunk-5yaahmjb.js} +1 -1
- package/bundle/{chunk-4wyjapes.js → chunk-5ymj2q6j.js} +1 -1
- package/bundle/{chunk-psveqqv2.js → chunk-613kegcn.js} +1 -1
- package/bundle/chunk-63znhwx0.js +2 -0
- package/bundle/{chunk-6gbaw2pk.js → chunk-6fpfr8tk.js} +1 -1
- package/bundle/{chunk-gaen9ya4.js → chunk-6h2faxs9.js} +2 -2
- package/bundle/chunk-6hmyy7n6.js +2 -0
- package/bundle/{chunk-bsqcfqya.js → chunk-6nk3wx6f.js} +1 -1
- package/bundle/{chunk-c27rpvdz.js → chunk-6nkcfncg.js} +1 -1
- package/bundle/{chunk-jqzejny3.js → chunk-6vb26adv.js} +1 -1
- package/bundle/{chunk-rgecc41f.js → chunk-6wdwwpsc.js} +1 -1
- package/bundle/{chunk-7rjf9b8n.js → chunk-77e1wh0j.js} +1 -1
- package/bundle/chunk-7dyddrpk.js +2 -0
- package/bundle/{chunk-7d6jhzng.js → chunk-7e1aw8rw.js} +1 -1
- package/bundle/{chunk-gefh32jb.js → chunk-7ez3ye6e.js} +1 -1
- package/bundle/{chunk-pvee151a.js → chunk-7fmy4cvn.js} +1 -1
- package/bundle/{chunk-xy4t5qf8.js → chunk-7n2kpqh5.js} +1 -1
- package/bundle/chunk-7penjsgq.js +2 -0
- package/bundle/{chunk-amx3x4kd.js → chunk-7qxn24qa.js} +2 -2
- package/bundle/{chunk-grkkzrg1.js → chunk-7rxsj310.js} +1 -1
- package/bundle/{chunk-9va5eh9s.js → chunk-7ryv0f5h.js} +1 -1
- package/bundle/chunk-7t5gzkj6.js +2 -0
- package/bundle/{chunk-nqefvn28.js → chunk-7tbvr236.js} +1 -1
- package/bundle/{chunk-14qvaxtp.js → chunk-81engf0t.js} +1 -1
- package/bundle/{chunk-1n1dh6zj.js → chunk-880msfsd.js} +1 -1
- package/bundle/chunk-89vgt8vq.js +2 -0
- package/bundle/{chunk-evmfntm3.js → chunk-8bzwgcjb.js} +1 -1
- package/bundle/chunk-8e8n82f9.js +2 -0
- package/bundle/{chunk-5mp82az0.js → chunk-91khd3fq.js} +1 -1
- package/bundle/chunk-97exhw9j.js +2 -0
- package/bundle/chunk-9cvkaht5.js +2 -0
- package/bundle/{chunk-d0m7nbbx.js → chunk-9p83me3p.js} +2 -2
- package/bundle/{chunk-5mdsrv0a.js → chunk-9qtf8khv.js} +1 -1
- package/bundle/{chunk-vfj5nwab.js → chunk-9wm41z2f.js} +2 -2
- package/bundle/{chunk-gw0j8hr9.js → chunk-9zrwbxx0.js} +1 -1
- package/bundle/{chunk-dgggvses.js → chunk-admgf65a.js} +1 -1
- package/bundle/{chunk-tdmaxc6n.js → chunk-afhg3w2j.js} +1 -1
- package/bundle/chunk-akdvstd9.js +2 -0
- package/bundle/{chunk-3j7skhxg.js → chunk-atbm0pnt.js} +2 -2
- package/bundle/chunk-ave2e4sa.js +2 -0
- package/bundle/chunk-axnwehc7.js +2 -0
- package/bundle/{chunk-ydsen7w0.js → chunk-b79k456s.js} +1 -1
- package/bundle/chunk-bmzyxspj.js +2 -0
- package/bundle/{chunk-v4xgceeq.js → chunk-bse8p94q.js} +1 -1
- package/bundle/chunk-bvaqpfv8.js +2 -0
- package/bundle/{chunk-n8dcmjph.js → chunk-c0k8j498.js} +1 -1
- package/bundle/{chunk-4stgw33j.js → chunk-cbmw8fy2.js} +1 -1
- package/bundle/{chunk-h19ty95q.js → chunk-cn10hn58.js} +1 -1
- package/bundle/{chunk-tf1me2r4.js → chunk-cqhpbfcn.js} +2 -2
- package/bundle/{chunk-4wgb80jm.js → chunk-cr06m77n.js} +1 -1
- package/bundle/{chunk-s76hdgw6.js → chunk-cxb05cdg.js} +1 -1
- package/bundle/chunk-cxe92z5c.js +2 -0
- package/bundle/{chunk-vqq5vmh1.js → chunk-cyjzqa5p.js} +4 -4
- package/bundle/{chunk-msm3r7ny.js → chunk-d2n09yvh.js} +2 -2
- package/bundle/{chunk-bpnpxdyv.js → chunk-d31yrcrn.js} +1 -1
- package/bundle/chunk-d5wp85kw.js +2 -0
- package/bundle/{chunk-cjxp72dv.js → chunk-dazye86e.js} +1 -1
- package/bundle/chunk-dm5xnb4t.js +2 -0
- package/bundle/chunk-dpeqsvan.js +2 -0
- package/bundle/chunk-drxtmg5c.js +2 -0
- package/bundle/{chunk-1ce5jpdc.js → chunk-dv5zf5gz.js} +1 -1
- package/bundle/{chunk-99p5m2f1.js → chunk-e57d1he9.js} +1 -1
- package/bundle/{chunk-z015twaq.js → chunk-e58pdw5k.js} +1 -1
- package/bundle/chunk-e9pfdjcy.js +2 -0
- package/bundle/chunk-ejn5hfzd.js +2 -0
- package/bundle/{chunk-9w5rx0fb.js → chunk-ek1fawsj.js} +1 -1
- package/bundle/{chunk-3xna2rk5.js → chunk-eq33vmze.js} +1 -1
- package/bundle/{chunk-fgw420gb.js → chunk-eqaym8gm.js} +1 -1
- package/bundle/chunk-ernd18jb.js +2 -0
- package/bundle/{chunk-zh808d4t.js → chunk-ewvgbg68.js} +1 -1
- package/bundle/{chunk-e075v4e9.js → chunk-f3c9667r.js} +2 -2
- package/bundle/{chunk-h2fh1g8g.js → chunk-f3rrd2p6.js} +1 -1
- package/bundle/{chunk-bqs6a1ts.js → chunk-f416n3mp.js} +1 -1
- package/bundle/{chunk-mybpgrjj.js → chunk-f6y7a5w3.js} +1 -1
- package/bundle/{chunk-2zj3h3xj.js → chunk-fd9zrmhr.js} +1 -1
- package/bundle/chunk-ff9b4cg8.js +2 -0
- package/bundle/{chunk-0jaxgrq0.js → chunk-fffj9447.js} +1 -1
- package/bundle/{chunk-k8bp3jjv.js → chunk-fk3praj7.js} +1 -1
- package/bundle/{chunk-c1ypbbka.js → chunk-fk8cctjy.js} +1 -1
- package/bundle/{chunk-eg7drzzt.js → chunk-fkat2pw6.js} +1 -1
- package/bundle/chunk-fpff6a4q.js +2 -0
- package/bundle/{chunk-syhay5ye.js → chunk-fvy5w4dh.js} +1 -1
- package/bundle/{chunk-ey4ktbyb.js → chunk-fx7w497c.js} +1 -1
- package/bundle/{chunk-qnqqrvvs.js → chunk-fxb6vjcb.js} +1 -1
- package/bundle/{chunk-d1bsxz2t.js → chunk-g6dgc5af.js} +1 -1
- package/bundle/{chunk-rq4hqwjy.js → chunk-g7vahvkz.js} +1 -1
- package/bundle/{chunk-58680z2j.js → chunk-g8wvr7a1.js} +1 -1
- package/bundle/{chunk-2je5tp0x.js → chunk-gaxbbxk6.js} +1 -1
- package/bundle/chunk-gq361kdt.js +2 -0
- package/bundle/{chunk-gfmfrkxc.js → chunk-gxa2r4zc.js} +1 -1
- package/bundle/{chunk-jq81hb32.js → chunk-hb4d06q0.js} +1 -1
- package/bundle/chunk-hbagpppv.js +2 -0
- package/bundle/chunk-hf473xav.js +2 -0
- package/bundle/{chunk-gsz1wqy6.js → chunk-hjratj6g.js} +1 -1
- package/bundle/{chunk-zsnbxsdx.js → chunk-hk8j5ht8.js} +1 -1
- package/bundle/{chunk-p80dc6kt.js → chunk-hkmb3zer.js} +2 -2
- package/bundle/chunk-hr88054m.js +2 -0
- package/bundle/{chunk-jhq5bvhs.js → chunk-hybq019j.js} +2 -2
- package/bundle/{chunk-e1pwnf0b.js → chunk-hyckncza.js} +1 -1
- package/bundle/{chunk-jgs6ngte.js → chunk-hz1hd1bd.js} +1 -1
- package/bundle/{chunk-hznsed5n.js → chunk-j0ftbmex.js} +1 -1
- package/bundle/{chunk-4wa0gf8y.js → chunk-j3czd7v2.js} +1 -1
- package/bundle/{chunk-xyn3xxfs.js → chunk-j7zs1yg2.js} +1 -1
- package/bundle/{chunk-1e8mja6v.js → chunk-j87bvp1b.js} +1 -1
- package/bundle/chunk-j9m2d6t5.js +2 -0
- package/bundle/chunk-jd9edy2s.js +2 -0
- package/bundle/{chunk-yzchwmb4.js → chunk-jdkxeqw5.js} +1 -1
- package/bundle/chunk-jwtdbx31.js +2 -0
- package/bundle/{chunk-rjcptzem.js → chunk-jzcz92pq.js} +2 -2
- package/bundle/{chunk-6rrmjrm2.js → chunk-k7h6tfzj.js} +1 -1
- package/bundle/{chunk-eaatrmcg.js → chunk-kbg3k1az.js} +1 -1
- package/bundle/{chunk-87x607rz.js → chunk-kbjwdv1x.js} +6 -6
- package/bundle/{chunk-jtrcnpm7.js → chunk-kbyk7hyn.js} +2 -2
- package/bundle/{chunk-3nhth7c2.js → chunk-kfk1zqc1.js} +1 -1
- package/bundle/{chunk-754varfr.js → chunk-kkdgzeva.js} +1 -1
- package/bundle/{chunk-mkdyknbz.js → chunk-kn318ev4.js} +1 -1
- package/bundle/{chunk-zss93r48.js → chunk-kp84yba1.js} +1 -1
- package/bundle/{chunk-m2ang7yb.js → chunk-kpnfndkg.js} +1 -1
- package/bundle/chunk-krkxrej2.js +2 -0
- package/bundle/{chunk-z3zx6g09.js → chunk-kvz0vzsn.js} +1 -1
- package/bundle/chunk-m26mcy8p.js +2 -0
- package/bundle/{chunk-pd33qvr0.js → chunk-m62wgqp1.js} +1 -1
- package/bundle/{chunk-y0xt5a6g.js → chunk-m7txgh5w.js} +1 -1
- package/bundle/chunk-m84cn9c6.js +2 -0
- package/bundle/{chunk-vb4e7y4d.js → chunk-md7vpe1e.js} +1 -1
- package/bundle/{chunk-61ks7c71.js → chunk-mg239rc3.js} +3 -3
- package/bundle/chunk-mvc7pvtq.js +2 -0
- package/bundle/{chunk-8cty50g7.js → chunk-n07rsssz.js} +1 -1
- package/bundle/{chunk-7ws3gdjq.js → chunk-n10atvac.js} +1 -1
- package/bundle/chunk-nfp9xtca.js +3 -0
- package/bundle/{chunk-p8enedkf.js → chunk-ngz5xw45.js} +1 -1
- package/bundle/{chunk-3f054f69.js → chunk-njzpswgt.js} +6 -6
- package/bundle/{chunk-nmnsf3fc.js → chunk-nszqy06d.js} +1 -1
- package/bundle/{chunk-3e8p4a3y.js → chunk-nxjbbq5h.js} +1 -1
- package/bundle/{chunk-hmfefq0d.js → chunk-p0k4sv89.js} +3 -3
- package/bundle/{chunk-mkyrg7gt.js → chunk-p31yg62z.js} +2 -2
- package/bundle/chunk-p5t9mq8r.js +2 -0
- package/bundle/chunk-pfbykat1.js +2 -0
- package/bundle/{chunk-kgsq240v.js → chunk-pjbbdm96.js} +1 -1
- package/bundle/{chunk-4w5t515p.js → chunk-pnj8s20t.js} +1 -1
- package/bundle/{chunk-nf8gkxbk.js → chunk-ppvmy940.js} +2 -2
- package/bundle/{chunk-veev25yg.js → chunk-ptf09vmp.js} +1 -1
- package/bundle/{chunk-ggeena9t.js → chunk-q2exgz82.js} +1 -1
- package/bundle/{chunk-2s28fdbp.js → chunk-qan3kwbv.js} +1 -1
- package/bundle/{chunk-5zw7knvd.js → chunk-qb5qemtp.js} +1 -1
- package/bundle/chunk-qd0nvn4z.js +2 -0
- package/bundle/chunk-qh99kv2j.js +2 -0
- package/bundle/{chunk-7fx6x8x9.js → chunk-qkwhgfjt.js} +2 -2
- package/bundle/{chunk-9r6bvkp4.js → chunk-qmhcbdkg.js} +2 -2
- package/bundle/{chunk-3fy57jcy.js → chunk-qngs31yf.js} +1 -1
- package/bundle/{chunk-jv98gw88.js → chunk-qpv4438m.js} +2 -2
- package/bundle/{chunk-yhqk8bzk.js → chunk-qq71akpw.js} +2 -2
- package/bundle/chunk-qyrafh4m.js +2 -0
- package/bundle/{chunk-xjrt0dta.js → chunk-r1yqmd4y.js} +1 -1
- package/bundle/chunk-rc37cw86.js +2 -0
- package/bundle/{chunk-a27yjp71.js → chunk-rf625fxx.js} +1 -1
- package/bundle/chunk-rmpty636.js +2 -0
- package/bundle/{chunk-qnv2v02g.js → chunk-rs0nx844.js} +2 -2
- package/bundle/{chunk-8atry88r.js → chunk-rvrjw0fy.js} +1 -1
- package/bundle/{chunk-kwm87f18.js → chunk-rz54qjew.js} +1 -1
- package/bundle/{chunk-wrgg270f.js → chunk-s1h0k1yj.js} +1 -1
- package/bundle/{chunk-0rmmg3g4.js → chunk-s2za1y84.js} +1 -1
- package/bundle/chunk-s3wjwxme.js +2 -0
- package/bundle/chunk-s4ncnbgd.js +2 -0
- package/bundle/{chunk-3jhx8g5d.js → chunk-s54c8fpf.js} +1 -1
- package/bundle/{chunk-mr7agwgn.js → chunk-s5krbdvd.js} +1 -1
- package/bundle/{chunk-4pssh5d3.js → chunk-s86fj82v.js} +2 -2
- package/bundle/{chunk-8gy99gfb.js → chunk-sdsggxm4.js} +1 -1
- package/bundle/{chunk-ym4ydwrz.js → chunk-se195e52.js} +2 -2
- package/bundle/chunk-snz3w30x.js +2 -0
- package/bundle/chunk-srw748gr.js +2 -0
- package/bundle/{chunk-692vn48b.js → chunk-st74db4c.js} +1 -1
- package/bundle/{chunk-2k2axg73.js → chunk-t1vtdgd6.js} +1 -1
- package/bundle/{chunk-nhx2xp2x.js → chunk-t6xm49ea.js} +1 -1
- package/bundle/{chunk-xqa6qkx2.js → chunk-t7tstr83.js} +1 -1
- package/bundle/{chunk-p409grvp.js → chunk-tedrfa7d.js} +2 -2
- package/bundle/{chunk-vbf73c7z.js → chunk-tn167yyz.js} +1 -1
- package/bundle/{chunk-pepn5jp4.js → chunk-txty44v2.js} +1 -1
- package/bundle/{chunk-d5b0bqbr.js → chunk-tyy4gx61.js} +1 -1
- package/bundle/chunk-v1xwe58d.js +2 -0
- package/bundle/{chunk-7qvkyjjg.js → chunk-vh05n2x3.js} +1 -1
- package/bundle/{chunk-zbdbsagd.js → chunk-vpqd0t8a.js} +1 -1
- package/bundle/chunk-vrfegg5f.js +2 -0
- package/bundle/{chunk-3dvyfmgc.js → chunk-vthm5q05.js} +1 -1
- package/bundle/{chunk-vmgknvxs.js → chunk-vw673y0t.js} +2 -2
- package/bundle/{chunk-b50t4jc5.js → chunk-vx837ete.js} +1 -1
- package/bundle/{chunk-x6b99nt3.js → chunk-vy9xre57.js} +1 -1
- package/bundle/{chunk-g3s2z5xa.js → chunk-vyjsng14.js} +1 -1
- package/bundle/{chunk-rs1mm5ef.js → chunk-vztxv9dj.js} +1 -1
- package/bundle/{chunk-kyny0t2g.js → chunk-w01gjnty.js} +2 -2
- package/bundle/{chunk-k6zvb8xm.js → chunk-w12tky28.js} +1 -1
- package/bundle/{chunk-kdct3e8s.js → chunk-w2gpgapp.js} +1 -1
- package/bundle/{chunk-hvpe07pt.js → chunk-w3pzv615.js} +1 -1
- package/bundle/{chunk-pf7cj4jd.js → chunk-w4hbw37v.js} +1 -1
- package/bundle/chunk-w9ct698t.js +2 -0
- package/bundle/{chunk-3tnek022.js → chunk-wefjbwv6.js} +1 -1
- package/bundle/{chunk-0x7dbj5e.js → chunk-wg42cxrw.js} +1 -1
- package/bundle/{chunk-j9s62g01.js → chunk-wg5dv21f.js} +1 -1
- package/bundle/{chunk-qvcfst7n.js → chunk-wms4skr9.js} +1 -1
- package/bundle/{chunk-w98r39gd.js → chunk-wr5hdsst.js} +1 -1
- package/bundle/chunk-wxnqgh8t.js +2 -0
- package/bundle/chunk-wzmte7sy.js +3 -0
- package/bundle/chunk-x0h1jdxt.js +2 -0
- package/bundle/{chunk-ww8ear80.js → chunk-x3931we7.js} +2 -2
- package/bundle/{chunk-23f6rc7a.js → chunk-x3z8q0ep.js} +1 -1
- package/bundle/chunk-x6hsmnhz.js +2 -0
- package/bundle/{chunk-se79ke63.js → chunk-xak2r993.js} +1 -1
- package/bundle/{chunk-t0amhhsk.js → chunk-xc3fadkh.js} +1 -1
- package/bundle/{chunk-rjf21v5c.js → chunk-xcs2jbz9.js} +1 -1
- package/bundle/{chunk-ddxjc803.js → chunk-xdv9xt0y.js} +1 -1
- package/bundle/{chunk-aw0q4y3s.js → chunk-xdwej3ae.js} +1 -1
- package/bundle/chunk-xg9e0enb.js +2 -0
- package/bundle/{chunk-t2tsyazc.js → chunk-xqxpjbqk.js} +1 -1
- package/bundle/chunk-xtxxb25n.js +2 -0
- package/bundle/{chunk-9jncnqbj.js → chunk-y2ch07yv.js} +1 -1
- package/bundle/chunk-y3s7sh1e.js +2 -0
- package/bundle/{chunk-6a1g6jzn.js → chunk-ydvheqw9.js} +1 -1
- package/bundle/chunk-ygwe0vf1.js +5 -0
- package/bundle/{chunk-8jcx4tep.js → chunk-ykxde207.js} +1 -1
- package/bundle/{chunk-ag9thqkv.js → chunk-ynfbz3sz.js} +2 -2
- package/bundle/{chunk-p883sz67.js → chunk-yqtfvgrp.js} +1 -1
- package/bundle/{chunk-kdcspxvq.js → chunk-yt1yk4j1.js} +1 -1
- package/bundle/{chunk-xdde80rf.js → chunk-yvj021eg.js} +1 -1
- package/bundle/chunk-yxnq0d7k.js +2 -0
- package/bundle/{chunk-jvaffe5d.js → chunk-z2m09m4w.js} +1 -1
- package/bundle/{chunk-xw283h2r.js → chunk-z2q3mg73.js} +2 -2
- package/bundle/chunk-z2raegj9.js +2 -0
- package/bundle/{chunk-mczw8e3s.js → chunk-z3hj5bfd.js} +1 -1
- package/bundle/chunk-z3pyhmg6.js +2 -0
- package/bundle/{chunk-g73drh98.js → chunk-z4ae6jmb.js} +2 -2
- package/bundle/{chunk-qpm5afdz.js → chunk-z559gc3n.js} +1 -1
- package/bundle/{chunk-4aqd2bty.js → chunk-z7pg6sw1.js} +1 -1
- package/bundle/chunk-z84376c6.js +2 -0
- package/bundle/{chunk-aqm597px.js → chunk-ze00x1xb.js} +1 -1
- package/bundle/{chunk-1txkz6dt.js → chunk-zjvzc0my.js} +1 -1
- package/bundle/chunk-zn8th65r.js +2 -0
- package/bundle/{chunk-f55txcsa.js → chunk-zna6neq5.js} +1 -1
- package/bundle/chunk-ztv1brgn.js +2 -0
- package/bundle/{chunk-f84cd0a1.js → chunk-zvsafnkp.js} +1 -1
- package/bundle/{chunk-ydmrvx7q.js → chunk-zyxvd9fj.js} +1 -1
- package/bundle/index.js +3 -3
- package/bundle/parser.worker.js +2 -2
- package/bundle/worker.js +1 -1
- package/package.json +1 -1
- package/bundle/chunk-0eneddjj.js +0 -2
- package/bundle/chunk-0ke6x10y.js +0 -5
- package/bundle/chunk-0yb4pxjv.js +0 -2
- package/bundle/chunk-129kq1w7.js +0 -2
- package/bundle/chunk-1a5hq7d5.js +0 -2
- package/bundle/chunk-1w3y1dkk.js +0 -2
- package/bundle/chunk-2pkake0h.js +0 -2
- package/bundle/chunk-32188rww.js +0 -2
- package/bundle/chunk-334tc1rh.js +0 -2
- package/bundle/chunk-3ff94m8r.js +0 -2
- package/bundle/chunk-4xg5ptk9.js +0 -2
- package/bundle/chunk-5nm36wxa.js +0 -2
- package/bundle/chunk-64jet8nc.js +0 -2
- package/bundle/chunk-6584d9m8.js +0 -2
- package/bundle/chunk-66hv9bbw.js +0 -2
- package/bundle/chunk-6be8p915.js +0 -2
- package/bundle/chunk-6f03158n.js +0 -2
- package/bundle/chunk-7jnjttqx.js +0 -2
- package/bundle/chunk-7q8pa6s8.js +0 -2
- package/bundle/chunk-7w84hfxs.js +0 -3
- package/bundle/chunk-8casywce.js +0 -2
- package/bundle/chunk-8hxwxt5p.js +0 -2
- package/bundle/chunk-8y8140dm.js +0 -2
- package/bundle/chunk-9dqcyt6x.js +0 -2
- package/bundle/chunk-9he248a8.js +0 -2
- package/bundle/chunk-9qmmse2n.js +0 -2
- package/bundle/chunk-aabrsxrq.js +0 -2
- package/bundle/chunk-atd0q4v8.js +0 -3
- package/bundle/chunk-avaba4sr.js +0 -2
- package/bundle/chunk-bdy1etja.js +0 -2
- package/bundle/chunk-bqdvqmjc.js +0 -2
- package/bundle/chunk-cdws8ggq.js +0 -2
- package/bundle/chunk-cqs9a2cs.js +0 -2
- package/bundle/chunk-d0rjst58.js +0 -2
- package/bundle/chunk-d833a2fj.js +0 -2
- package/bundle/chunk-dday4nm2.js +0 -2
- package/bundle/chunk-e2sj30hk.js +0 -2
- package/bundle/chunk-enc0fykg.js +0 -2
- package/bundle/chunk-evan93av.js +0 -2
- package/bundle/chunk-f600dzsr.js +0 -2
- package/bundle/chunk-f6jzwydk.js +0 -2
- package/bundle/chunk-fv67ng8z.js +0 -2
- package/bundle/chunk-gevazsx3.js +0 -2
- package/bundle/chunk-gh18pzkx.js +0 -2
- package/bundle/chunk-gnvvgr4y.js +0 -2
- package/bundle/chunk-gsbjs2ws.js +0 -2
- package/bundle/chunk-j7pdz979.js +0 -2
- package/bundle/chunk-jfe2qbv8.js +0 -2
- package/bundle/chunk-kcht9kvx.js +0 -2
- package/bundle/chunk-knvsa1d4.js +0 -2
- package/bundle/chunk-kp6d68hd.js +0 -2
- package/bundle/chunk-me78p9x4.js +0 -2
- package/bundle/chunk-mv1d7wyt.js +0 -2
- package/bundle/chunk-n8xmmxh5.js +0 -2
- package/bundle/chunk-n90219q9.js +0 -2
- package/bundle/chunk-nckg3ydx.js +0 -2
- package/bundle/chunk-nhaenjw3.js +0 -2
- package/bundle/chunk-nhtrt5ec.js +0 -2
- package/bundle/chunk-p72n0tfq.js +0 -2
- package/bundle/chunk-pq3622ae.js +0 -2
- package/bundle/chunk-qatj4h6b.js +0 -2
- package/bundle/chunk-qjwfj51e.js +0 -2
- package/bundle/chunk-qkg73rs9.js +0 -2
- package/bundle/chunk-rmsqb6r4.js +0 -10
- package/bundle/chunk-rqrpbcm6.js +0 -2
- package/bundle/chunk-s7vhjg9e.js +0 -2
- package/bundle/chunk-sec3a60m.js +0 -2
- package/bundle/chunk-sjnt5e6w.js +0 -2
- package/bundle/chunk-sntb757q.js +0 -2
- package/bundle/chunk-svscftd7.js +0 -2
- package/bundle/chunk-sx0cabcs.js +0 -2
- package/bundle/chunk-tmdm6vm6.js +0 -2
- package/bundle/chunk-v6g0ksks.js +0 -2
- package/bundle/chunk-vbf9jpas.js +0 -2
- package/bundle/chunk-vrcf5q4s.js +0 -2
- package/bundle/chunk-vxrsp6n7.js +0 -2
- package/bundle/chunk-w8ax3pvh.js +0 -2
- package/bundle/chunk-xk2cmh49.js +0 -2
- package/bundle/chunk-xzhkfctf.js +0 -2
- package/bundle/chunk-z2rtcgad.js +0 -3
- package/bundle/chunk-z9b3t2jm.js +0 -2
- package/bundle/chunk-zzr8smtm.js +0 -2
package/bundle/chunk-0ke6x10y.js
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ul as jn,Vl as pt,Wl as bn,Xl as _t,Zl as Xr,_l as Yr}from"./chunk-meaybtcc.js";import{$l as uo,$m as wo,Am as Qr,Bm as U,Cm as fo,Dm as Rn,Em as go,Fm as so,Gm as po,Hm as _o,Im as No,Jm as To,Km as Ao,Lm as Br,Mm as Oo,Nm as $o,Om as Do,Pm as Ir,Qm as vo,Rm as Lr,Sm as Qo,Tm as Sr,Um as Gr,Vm as Mr,Wm as xr,Xm as Cr,Ym as Jr,Zm as Bo,_m as Io,am as yo,cm as er,dm as mr,em as ur,en as ut,fm as yr,gm as lr,hm as fr,im as gr,jm as sr,km as pr,lm as _r,mm as Nr,nm as Tr,om as q,pm as Ar,qm as dr,rm as Or,sm as $r,tm as Dr,um as vr,vm as F,wm as D,xm as yn,ym as un,zm as Zo}from"./chunk-rmsqb6r4.js";import{Kn as wn}from"./chunk-pf7cj4jd.js";import{do as Fn}from"./chunk-amx3x4kd.js";import{eo as ft}from"./chunk-b50t4jc5.js";import{fo as Mo}from"./chunk-nf8gkxbk.js";import{hq as Pn,iq as hn,jq as _n,kq as hr,lq as it,nq as nt}from"./chunk-dd11kryy.js";import{oq as rt}from"./chunk-msm3r7ny.js";import{ur as ro}from"./chunk-xw283h2r.js";import{Cs as a,is as fn,ss as On,ts as nn,yr as co}from"./chunk-v7ah9gg0.js";import{Os as Zr,Rs as ko,Ss as z,Ws as mo}from"./chunk-d0m7nbbx.js";import{Ys as j}from"./chunk-7w84hfxs.js";import{Ny as Nn,Vy as Gn,hz as Cn}from"./chunk-p409grvp.js";import{EN as Ur,FD as Zn,FM as Wo,MD as gn,TG as r,YA as an,aE as Wr,bC as Dn,gI as In,qE as h,tM as _,yD as Ro}from"./chunk-ag9thqkv.js";import{fO as dn}from"./chunk-0rmmg3g4.js";var qo={};dn(qo,{run:()=>Ot});var mn={time_created:F().notNull().$default(()=>Date.now()),time_updated:F().notNull().$onUpdate(()=>Date.now())};var G=un("project",{id:D().$type().primaryKey(),worktree:D().notNull(),vcs:D(),name:D(),icon_url:D(),icon_color:D(),...mn,time_initialized:F(),sandboxes:D({mode:"json"}).notNull().$type(),commands:D({mode:"json"}).$type()});var ln=un("session",{id:D().$type().primaryKey(),project_id:D().$type().notNull().references(()=>G.id,{onDelete:"cascade"}),workspace_id:D().$type(),parent_id:D().$type(),context_from:D().$type(),context_watermark:D().$type(),slug:D().notNull(),directory:D().notNull(),title:D().notNull(),version:D().notNull(),share_url:D(),summary_additions:F(),summary_deletions:F(),summary_files:F(),summary_diffs:D({mode:"json"}).$type(),revert:D({mode:"json"}).$type(),permission:D({mode:"json"}).$type(),...mn,time_compacting:F(),time_archived:F(),last_checkpoint_message_id:D().$type()},(n)=>[yn("session_project_idx").on(n.project_id),yn("session_workspace_idx").on(n.workspace_id),yn("session_parent_idx").on(n.parent_id),yn("session_context_from_idx").on(n.context_from)]),eo=un("message",{id:D().$type().primaryKey(),session_id:D().$type().notNull().references(()=>ln.id,{onDelete:"cascade"}),agent_id:D().notNull().default("main"),...mn,data:D({mode:"json"}).notNull().$type()},(n)=>[yn("message_session_time_created_id_idx").on(n.session_id,n.time_created,n.id),yn("message_session_agent_idx").on(n.session_id,n.agent_id,n.id)]),Xo=un("part",{id:D().$type().primaryKey(),message_id:D().$type().notNull().references(()=>eo.id,{onDelete:"cascade"}),session_id:D().$type().notNull(),...mn,data:D({mode:"json"}).notNull().$type()},(n)=>[yn("part_message_id_id_idx").on(n.message_id,n.id),yn("part_session_idx").on(n.session_id)]),Yo=un("todo",{session_id:D().$type().notNull().references(()=>ln.id,{onDelete:"cascade"}),content:D().notNull(),status:D().notNull(),position:F().notNull(),...mn},(n)=>[Zo({columns:[n.session_id,n.position]}),yn("todo_session_idx").on(n.session_id)]),ao=un("permission",{project_id:D().primaryKey().references(()=>G.id,{onDelete:"cascade"}),...mn,data:D({mode:"json"}).notNull().$type()});var zo=un("session_share",{session_id:D().primaryKey().references(()=>ln.id,{onDelete:"cascade"}),id:D().notNull(),secret:D().notNull(),url:D().notNull(),...mn});import Y from"path";var W=a.create({service:"json-migration"});async function Ot(n,o){let t=Y.join(On.Path.data,"storage");if(!await mo.exists(t))return W.info("storage directory does not exist, skipping migration"),{projects:0,sessions:0,messages:0,parts:0,todos:0,permissions:0,shares:0,errors:[]};W.info("starting json to sqlite migration",{storageDir:t});let g=performance.now();n.run("PRAGMA journal_mode = WAL"),n.run("PRAGMA synchronous = OFF"),n.run("PRAGMA cache_size = 10000"),n.run("PRAGMA temp_store = MEMORY");let e={projects:0,sessions:0,messages:0,parts:0,todos:0,permissions:0,shares:0,errors:[]},T={sessions:0,todos:0,permissions:0,shares:0},p=e.errors,A=1000,M=Date.now();async function H(l){return ko.scan(l,{cwd:t,absolute:!0})}async function C(l,L,x){let v=x-L,N=Array(v);for(let K=0;K<v;K++)N[K]=mo.readJson(l[L+K]);let S=await Promise.allSettled(N),P=Array(v);for(let K=0;K<S.length;K++){let k=S[K];if(k.status==="fulfilled"){P[K]=k.value;continue}p.push(`failed to read ${l[L+K]}: ${k.reason}`)}return P}function J(l,L,x){if(l.length===0)return 0;try{return n.insert(L).values(l).onConflictDoNothing().run(),l.length}catch(v){return p.push(`failed to migrate ${x} batch: ${v}`),0}}W.info("scanning files...");let[R,O,Q,I,f,s,m]=await Promise.all([H("project/*.json"),H("session/*/*.json"),H("message/*/*.json"),H("part/*/*.json"),H("todo/*.json"),H("permission/*.json"),H("session_share/*.json")]);W.info("file scan complete",{projects:R.length,sessions:O.length,messages:Q.length,parts:I.length,todos:f.length,permissions:s.length,shares:m.length});let y=Math.max(1,R.length+O.length+Q.length+I.length+f.length+s.length+m.length),i=o?.progress,u=0,$=(l,L)=>{u=Math.min(y,u+L),i?.({current:u,total:y,label:l})};i?.({current:u,total:y,label:"starting"}),n.run("BEGIN TRANSACTION");let B=new Set,d=[];for(let l=0;l<R.length;l+=A){let L=Math.min(l+A,R.length),x=await C(R,l,L);d.length=0;for(let v=0;v<x.length;v++){let N=x[v];if(!N)continue;let S=Y.basename(R[l+v],".json");B.add(S),d.push({id:S,worktree:N.worktree??"/",vcs:N.vcs,name:N.name??void 0,icon_url:N.icon?.url,icon_color:N.icon?.color,time_created:N.time?.created??M,time_updated:N.time?.updated??M,time_initialized:N.time?.initialized,sandboxes:N.sandboxes??[],commands:N.commands})}e.projects+=J(d,G,"project"),$("projects",L-l)}W.info("migrated projects",{count:e.projects,duration:Math.round(performance.now()-g)});let E=O.map((l)=>Y.basename(Y.dirname(l))),X=new Set,en=[];for(let l=0;l<O.length;l+=A){let L=Math.min(l+A,O.length),x=await C(O,l,L);en.length=0;for(let v=0;v<x.length;v++){let N=x[v];if(!N)continue;let S=Y.basename(O[l+v],".json"),P=E[l+v];if(!B.has(P)){T.sessions++;continue}X.add(S),en.push({id:S,project_id:P,parent_id:N.parentID??null,slug:N.slug??"",directory:N.directory??"",title:N.title??"",version:N.version??"",share_url:N.share?.url??null,summary_additions:N.summary?.additions??null,summary_deletions:N.summary?.deletions??null,summary_files:N.summary?.files??null,summary_diffs:N.summary?.diffs??null,revert:N.revert??null,permission:N.permission??null,time_created:N.time?.created??M,time_updated:N.time?.updated??M,time_compacting:N.time?.compacting??null,time_archived:N.time?.archived??null})}e.sessions+=J(en,ln,"session"),$("sessions",L-l)}if(W.info("migrated sessions",{count:e.sessions}),T.sessions>0)W.warn("skipped orphaned sessions",{count:T.sessions});let sn=[],c=[],zn=new Map;for(let l of Q){let L=Y.basename(Y.dirname(l));if(!X.has(L))continue;sn.push(l),c.push(L)}for(let l=0;l<sn.length;l+=A){let L=Math.min(l+A,sn.length),x=await C(sn,l,L),v=Array(x.length),N=0;for(let S=0;S<x.length;S++){let P=x[S];if(!P)continue;let K=sn[l+S],k=Y.basename(K,".json"),Hn=c[l+S];zn.set(k,Hn);let vn=P;delete vn.id,delete vn.sessionID,v[N++]={id:k,session_id:Hn,time_created:P.time?.created??M,time_updated:P.time?.updated??M,data:vn}}v.length=N,e.messages+=J(v,eo,"message"),$("messages",L-l)}W.info("migrated messages",{count:e.messages});for(let l=0;l<I.length;l+=A){let L=Math.min(l+A,I.length),x=await C(I,l,L),v=Array(x.length),N=0;for(let S=0;S<x.length;S++){let P=x[S];if(!P)continue;let K=I[l+S],k=Y.basename(K,".json"),Hn=Y.basename(Y.dirname(K)),vn=zn.get(Hn);if(!vn){p.push(`part missing message session: ${K}`);continue}if(!X.has(vn))continue;let Vn=P;delete Vn.id,delete Vn.messageID,delete Vn.sessionID,v[N++]={id:k,message_id:Hn,session_id:vn,time_created:P.time?.created??M,time_updated:P.time?.updated??M,data:Vn}}v.length=N,e.parts+=J(v,Xo,"part"),$("parts",L-l)}W.info("migrated parts",{count:e.parts});let An=f.map((l)=>Y.basename(l,".json"));for(let l=0;l<f.length;l+=A){let L=Math.min(l+A,f.length),x=await C(f,l,L),v=[];for(let N=0;N<x.length;N++){let S=x[N];if(!S)continue;let P=An[l+N];if(!X.has(P)){T.todos++;continue}if(!Array.isArray(S)){p.push(`todo not an array: ${f[l+N]}`);continue}for(let K=0;K<S.length;K++){let k=S[K];if(!k?.content||!k?.status)continue;v.push({session_id:P,content:k.content,status:k.status,position:K,time_created:M,time_updated:M})}}e.todos+=J(v,Yo,"todo"),$("todos",L-l)}if(W.info("migrated todos",{count:e.todos}),T.todos>0)W.warn("skipped orphaned todos",{count:T.todos});let kn=s.map((l)=>Y.basename(l,".json")),Jn=[];for(let l=0;l<s.length;l+=A){let L=Math.min(l+A,s.length),x=await C(s,l,L);Jn.length=0;for(let v=0;v<x.length;v++){let N=x[v];if(!N)continue;let S=kn[l+v];if(!B.has(S)){T.permissions++;continue}Jn.push({project_id:S,data:N})}e.permissions+=J(Jn,ao,"permission"),$("permissions",L-l)}if(W.info("migrated permissions",{count:e.permissions}),T.permissions>0)W.warn("skipped orphaned permissions",{count:T.permissions});let qn=m.map((l)=>Y.basename(l,".json")),Ln=[];for(let l=0;l<m.length;l+=A){let L=Math.min(l+A,m.length),x=await C(m,l,L);Ln.length=0;for(let v=0;v<x.length;v++){let N=x[v];if(!N)continue;let S=qn[l+v];if(!X.has(S)){T.shares++;continue}if(!N?.id||!N?.secret||!N?.url){p.push(`session_share missing id/secret/url: ${m[l+v]}`);continue}Ln.push({session_id:S,id:N.id,secret:N.secret,url:N.url})}e.shares+=J(Ln,zo,"session_share"),$("shares",L-l)}if(W.info("migrated session shares",{count:e.shares}),T.shares>0)W.warn("skipped orphaned session shares",{count:T.shares});if(n.run("COMMIT"),W.info("json migration complete",{projects:e.projects,sessions:e.sessions,messages:e.messages,parts:e.parts,todos:e.todos,permissions:e.permissions,shares:e.shares,errorCount:e.errors.length,duration:Math.round(performance.now()-g)}),e.errors.length>0)W.warn("migration errors",{errors:e.errors.slice(0,20)});return i?.({current:y,total:y,label:"complete"}),e}var Bn={};dn(Bn,{use:()=>Ce,transaction:()=>He,textDecoder:()=>re,sumDistinct:()=>rr,sum:()=>or,sql:()=>q,relationsOrderToSQL:()=>ci,relationsFilterToSQL:()=>Ri,relationToSQL:()=>Hi,relationExtrasToSQL:()=>Ji,processRelations:()=>Ci,placeholder:()=>dr,param:()=>Tr,orderSelectedFields:()=>oe,orderByOperators:()=>xi,or:()=>go,operators:()=>Mi,notLike:()=>Sr,notInArray:()=>Br,notIlike:()=>Mr,notExists:()=>Ir,notBetween:()=>Lr,not:()=>so,noopMapper:()=>_r,noopEncoder:()=>pr,noopDecoder:()=>sr,ne:()=>fo,name:()=>fr,min:()=>ir,max:()=>tr,mapUpdateSet:()=>ne,mapResultRow:()=>hi,mapRelationalRow:()=>Gi,mapColumnsInSQLToAlias:()=>ti,mapColumnsInAliasedSQLToAlias:()=>ri,lte:()=>To,lt:()=>No,like:()=>Qo,l2Distance:()=>Zi,l1Distance:()=>Ui,jaccardDistance:()=>Wi,isWithEnum:()=>bi,isView:()=>Dr,isTable:()=>Xt,isSQLWrapper:()=>mr,isNull:()=>Oo,isNotNull:()=>$o,isDriverValueEncoder:()=>gr,isConfig:()=>ji,is:()=>Mt,innerProduct:()=>Pi,inArray:()=>Ao,ilike:()=>Gr,haveSameKeys:()=>Fi,hasOwnEntityKind:()=>Gt,hammingDistance:()=>Ei,gte:()=>_o,gt:()=>po,getViewSelectedFields:()=>wi,getViewName:()=>vr,getTableUniqueName:()=>Zt,getTableName:()=>Ut,getTableLikeName:()=>Vi,getTableColumns:()=>qi,getTableAsAliasSQL:()=>Si,getOriginalColumnFromAlias:()=>oi,getOrderByOperators:()=>Li,getColumns:()=>ki,getColumnTable:()=>Ct,getColumnNameAndConfig:()=>zi,getChannelPath:()=>gt,fillPlaceholders:()=>Or,fieldSelectionToSQL:()=>Ii,extractTablesFromSchema:()=>Bi,extractExtendedColumnType:()=>mi,exists:()=>Do,eq:()=>U,entityKind:()=>St,effect:()=>Je,desc:()=>Io,defineRelationsPart:()=>Qi,defineRelations:()=>vi,createRelationsHelper:()=>Di,countDistinct:()=>bo,count:()=>lo,cosineDistance:()=>Ki,close:()=>xe,buildRelationsParts:()=>$i,buildRelations:()=>Oi,bindIfParam:()=>Qr,between:()=>vo,avgDistinct:()=>nr,avg:()=>ho,assertUnreachable:()=>ai,asc:()=>Bo,arrayOverlaps:()=>Jr,arrayContains:()=>xr,arrayContained:()=>Cr,applyMixins:()=>Yi,and:()=>Rn,aliasedTableColumn:()=>ni,aliasedTable:()=>ht,aliasedRelation:()=>bt,aliasedColumn:()=>jt,WithSubquery:()=>at,ViewSelectionAliasProxyHandler:()=>Ft,ViewBaseConfig:()=>zt,View:()=>$r,TransactionRollbackError:()=>li,TableSchema:()=>Wt,TableColumns:()=>Pt,TableAliasProxyHandler:()=>wt,Table:()=>Et,Subquery:()=>Yt,StringChunk:()=>ur,SQL:()=>yr,RelationsHelperStatic:()=>di,RelationsBuilderTable:()=>Ai,RelationsBuilderJunctionColumn:()=>Ti,RelationsBuilderColumn:()=>Ni,RelationTableAliasProxyHandler:()=>Vt,Relation:()=>_i,QueryPromise:()=>ii,Placeholder:()=>Ar,Path:()=>Ko,Param:()=>Nr,OriginalName:()=>Kt,One:()=>pi,NotFoundError:()=>Me,NoopLogger:()=>Lt,Name:()=>lr,Many:()=>si,IsAlias:()=>ct,FakePrimitiveParam:()=>er,ExtraConfigColumns:()=>Rt,ExtraConfigBuilder:()=>Ht,DrizzleQueryError:()=>yi,DrizzleError:()=>ui,DefaultLogger:()=>It,Count:()=>gi,ConsoleLogWriter:()=>Bt,ColumnTableAliasProxyHandler:()=>qt,ColumnBuilder:()=>ei,ColumnAliasProxyHandler:()=>kt,Column:()=>xt,Client:()=>Mn,CONSTANTS:()=>Xi,BaseName:()=>Jt,AggregatedField:()=>fi});import $t from"crypto";import Vo,{existsSync as Dt,readdirSync as vt}from"fs";import{join as Qt}from"path";function Fo(n){if(Vo.existsSync(`${n.migrationsFolder}/meta/_journal.json`))throw Error('We detected that you have old drizzle-kit migration folders. You must upgrade drizzle-kit and run "drizzle-kit up"');let o=n.migrationsFolder,t=[],g=vt(o).map((e)=>({path:Qt(o,e,"migration.sql"),name:e})).filter((e)=>Dt(e.path));g.sort((e,T)=>e.name.localeCompare(T.name));for(let e of g){let T=e.path,p=e.name.slice(0,14),A=Vo.readFileSync(T).toString(),M=A.split("--> statement-breakpoint").map((C)=>{return C}),H=wo(p);t.push({sql:M,bps:!0,folderMillis:H,hash:$t.createHash("sha256").update(A).digest("hex"),name:e.name})}return t}function jo(n,o){if(Array.isArray(o)||"migrationsJournal"in o){let g=Array.isArray(o)?o:o.migrationsJournal,e=Array.isArray(o)?void 0:o.migrationsTable,T=g.map((p)=>({sql:p.sql.split("--> statement-breakpoint"),folderMillis:p.timestamp,hash:"",bps:!0,name:p.name}));return n.dialect.migrate(T,n.session,{migrationsTable:e})}let t=Fo(o);return n.dialect.migrate(t,n.session,o)}function lo(n){return q`count(${n||q.raw("*")})`.mapWith(Number)}function bo(n){return q`count(distinct ${n})`.mapWith(Number)}function ho(n){return q`avg(${n})`.mapWith(String)}function nr(n){return q`avg(distinct ${n})`.mapWith(String)}function or(n){return q`sum(${n})`.mapWith(String)}function rr(n){return q`sum(distinct ${n})`.mapWith(String)}function tr(n){return q`max(${n})`.mapWith(uo(n,yo)?n:String)}function ir(n){return q`min(${n})`.mapWith(uo(n,yo)?n:String)}import oo from"path";var Wn={};dn(Wn,{workspaceID:()=>$e,useEffect:()=>Qe,use:()=>ve,make:()=>De,invalidate:()=>Ie,has:()=>Be,get:()=>Ho,directory:()=>no,context:()=>Jo,bind:()=>Oe});import{EventEmitter as te}from"events";var cn=new te;var Lo=new Set;function Hr(n){return Lo.add(n),()=>{Lo.delete(n)}}async function So(n){await Promise.allSettled([...Lo].map((o)=>o(n)))}function Kn(n){return n()}var Fr={};dn(Fr,{setInitialized:()=>se,list:()=>fe,layer:()=>wr,get:()=>ge,fromRow:()=>pn,defaultLayer:()=>Co,UpdateInput:()=>le,Service:()=>Sn,Info:()=>qr,Event:()=>Vr});import*as w from"fs/promises";import*as ar from"os";import*as $n from"path";var ie=_.String.pipe(_.brand("ProjectID")),V=ie.pipe(wn((n)=>({global:n.make("global"),zod:j.string().pipe(j.custom())})));import*as Qn from"fs/promises";import*as b from"path";import*as Kr from"crypto";async function Go(n){let o=b.resolve(n);while(!0){let t=b.join(o,".git"),g=await Qn.stat(t).catch(()=>null);if(g){if(g.isDirectory())return t;let p=(await Qn.readFile(t,"utf-8")).trim().match(/^gitdir:\s*(.+)$/);if(!p)return null;let A=b.isAbsolute(p[1])?p[1]:b.resolve(o,p[1]);return b.resolve(A,"../..")}let e=b.dirname(o);if(e===o)return null;o=e}}async function Rr(n){let o=await Qn.readFile(n,"utf-8").catch(()=>null);if(o===null)return null;return o.trim()||null}async function cr(n){let o=await Rr(n);if(o)return o;let t=Kr.randomUUID();try{return await Qn.writeFile(n,t,{flag:"wx"}),t}catch(g){if(g.code!=="EEXIST")throw g;let e=await Rr(n);if(e)return e;throw Error(`Project ID file was concurrently created but is empty: ${n}`)}}async function Er(n){let o=await Go(n);if(o){let g=b.join(o,"qitqode-project-id");return V.make(await cr(g))}let t=b.join(n,".qitqode-project-id");return V.make(await cr(t))}async function me(n){let o=await Go(n);if(!o)return;let t=$n.join(n,".qitqode-project-id"),g=$n.join(o,"qitqode-project-id"),e=(A)=>w.access(A).then(()=>!0).catch(()=>!1);if(await e(t)){if(!await e(g)){let A=await w.readFile(t,"utf-8");await w.writeFile(g,A)}await w.unlink(t).catch(()=>{})}let T=$n.join(o,"info","exclude");if(await w.mkdir($n.dirname(T),{recursive:!0}),!(await w.readFile(T,"utf-8").catch(()=>"")).includes(".qitqode-project-id"))await w.appendFile(T,`
|
|
3
|
-
.qitqode-project-id
|
|
4
|
-
`)}var Pr=a.create({service:"project"}),ue=262144,xo=_.Literal("git"),zr=_.Struct({url:_.optional(_.String),override:_.optional(_.String),color:_.optional(_.String)}),kr=_.Struct({start:_.optional(_.String.annotate({description:"Startup script to run when creating a new workspace (worktree)"}))}),ye=_.Struct({created:_.Number,updated:_.Number,initialized:_.optional(_.Number)}),qr=_.Struct({id:V,worktree:_.String,vcs:_.optional(xo),name:_.optional(_.String),icon:_.optional(zr),commands:_.optional(kr),time:ye,sandboxes:_.Array(_.String)}).annotate({identifier:"Project"}).pipe(wn((n)=>({zod:Fn(n)}))),Vr={Updated:Yr.define("project.updated",qr.zod)};function pn(n){let o=n.icon_url||n.icon_color?{url:n.icon_url??void 0,color:n.icon_color??void 0}:void 0;return{id:n.id,worktree:n.worktree,vcs:n.vcs?_.decodeUnknownSync(xo)(n.vcs):void 0,name:n.name??void 0,icon:o,time:{created:n.time_created,updated:n.time_updated,initialized:n.time_initialized??void 0},sandboxes:n.sandboxes,commands:n.commands??void 0}}var le=j.object({projectID:V.zod,name:j.string().optional(),icon:Fn(zr).optional(),commands:Fn(kr).optional()});class Sn extends Dn.Service()("@qitqode/Project"){}var wr=h.effect(Sn,r.gen(function*(){let n=yield*z.Service,o=yield*Ur.Path,t=yield*jn.ChildProcessSpawner,g=r.fnUntraced(function*(i,u){return yield*Xr(t,i,u)},r.catch(()=>r.succeed({code:1,text:"",stderr:""}))),e=(i)=>r.sync(()=>Bn.use(i)),T=(i)=>r.sync(()=>cn.emit("event",{directory:"global",project:i.id,payload:{type:Vr.Updated.type,properties:i}})),p=_.decodeUnknownSync(_.optional(xo))(nn.QITQODE_FAKE_VCS),A=(i,u)=>{if(!u)return i;if(u=u.replace(/[\r\n]+$/,""),!u)return i;if(u=z.windowsPath(u),o.isAbsolute(u))return o.normalize(u);return o.resolve(i,u)},M=yield*Wr.Scope,H=r.fn("Project.fromDirectory")(function*(i){Pr.info("fromDirectory",{directory:i});let u=yield*r.gen(function*(){if(nn.QITQODE_DISABLE_GIT)return{id:V.global,worktree:i,sandbox:i,vcs:p};let X=(yield*n.up({targets:[".git"],start:i}).pipe(r.orDie))[0];if(!X)return{id:V.global,worktree:"/",sandbox:"/",vcs:p};let en=o.dirname(X),sn=process.env.HOME??process.env.USERPROFILE??ar.homedir();if(en===sn||$n.parse(en).root===en)return Pr.warn("ignoring .git at home or filesystem root, snapshots disabled",{dotgit:X}),{id:V.global,worktree:i,sandbox:i,vcs:p};let c=en,zn=yield*r.sync(()=>Mo("git")),An;if(!zn)return{id:An??V.global,worktree:c,sandbox:c,vcs:p};let kn=yield*g(["rev-parse","--git-common-dir"],{cwd:c});if(kn.code!==0)return{id:An??V.global,worktree:c,sandbox:c,vcs:p};let Jn=(()=>{let Ln=A(c,kn.text.trim());return Ln===c?c:o.dirname(Ln)})();if(An==null)yield*r.promise(()=>me(c)),An=yield*r.promise(()=>Er(c));let qn=yield*g(["rev-parse","--show-toplevel"],{cwd:c});if(qn.code!==0)return{id:An,worktree:c,sandbox:c,vcs:p};return c=A(c,qn.text.trim()),{id:An,sandbox:c,worktree:Jn,vcs:"git"}}),$=yield*e((E)=>E.select().from(G).where(U(G.id,u.id)).get()),B=$?pn($):{id:u.id,worktree:u.worktree,vcs:u.vcs,sandboxes:[],time:{created:Date.now(),updated:Date.now()}};if(nn.QITQODE_EXPERIMENTAL_ICON_DISCOVERY)yield*C(B).pipe(r.ignore,r.forkIn(M));let d={...B,worktree:u.worktree,vcs:u.vcs,time:{...B.time,updated:Date.now()}};if(u.sandbox!==d.worktree&&!d.sandboxes.includes(u.sandbox))d.sandboxes.push(u.sandbox);if(d.sandboxes=yield*r.forEach(d.sandboxes,(E)=>n.exists(E).pipe(r.orDie,r.map((X)=>X?E:void 0)),{concurrency:16}).pipe(r.map((E)=>E.filter((X)=>X!==void 0))),yield*e((E)=>E.insert(G).values({id:d.id,worktree:d.worktree,vcs:d.vcs??null,name:d.name,icon_url:d.icon?.url,icon_color:d.icon?.color,time_created:d.time.created,time_updated:d.time.updated,time_initialized:d.time.initialized,sandboxes:d.sandboxes,commands:d.commands}).onConflictDoUpdate({target:G.id,set:{worktree:d.worktree,vcs:d.vcs??null,name:d.name,icon_url:d.icon?.url,icon_color:d.icon?.color,time_updated:d.time.updated,time_initialized:d.time.initialized,sandboxes:d.sandboxes,commands:d.commands}}).run()),u.id!==V.global)yield*e((E)=>E.update(ln).set({project_id:u.id}).where(Rn(U(ln.project_id,V.global),U(ln.directory,u.worktree))).run());return yield*T(d),{project:d,sandbox:u.sandbox}}),C=r.fn("Project.discover")(function*(i){if(i.vcs!=="git")return;if(i.icon?.override)return;if(i.icon?.url)return;let $=(yield*n.glob("**/favicon.{ico,png,svg,jpg,jpeg,webp}",{cwd:i.worktree,absolute:!0,include:"file"}).pipe(r.orDie)).sort((sn,c)=>sn.length-c.length)[0];if(!$)return;let B=yield*n.stat($).pipe(r.orDie);if(Number(B.size)>ue)return;let d=yield*n.readFile($).pipe(r.orDie),E=Buffer.from(d).toString("base64"),en=`data:${z.mimeType($)};base64,${E}`;yield*O({projectID:i.id,icon:{url:en}})}),J=r.fn("Project.list")(function*(){return yield*e((i)=>i.select().from(G).all().map(pn))}),R=r.fn("Project.get")(function*(i){let u=yield*e(($)=>$.select().from(G).where(U(G.id,i)).get());return u?pn(u):void 0}),O=r.fn("Project.update")(function*(i){let u=yield*e((B)=>B.update(G).set({name:i.name,icon_url:i.icon?.url,icon_color:i.icon?.color,commands:i.commands,time_updated:Date.now()}).where(U(G.id,i.projectID)).returning().get());if(!u)throw Error(`Project not found: ${i.projectID}`);let $=pn(u);return yield*T($),$}),Q=r.fn("Project.initGit")(function*(i){if(i.project.vcs==="git")return i.project;if(!(yield*r.sync(()=>Mo("git"))))throw Error("Git is not installed");let u=yield*g(["init","--quiet"],{cwd:i.directory});if(u.code!==0)throw Error(u.stderr.trim()||u.text.trim()||"Failed to initialize git repository");let{project:$}=yield*H(i.directory);return $}),I=r.fn("Project.setInitialized")(function*(i){yield*e((u)=>u.update(G).set({time_initialized:Date.now()}).where(U(G.id,i)).run())}),f=r.fn("Project.sandboxes")(function*(i){let u=yield*e((B)=>B.select().from(G).where(U(G.id,i)).get());if(!u)return[];let $=pn(u);return yield*r.forEach($.sandboxes,(B)=>n.isDir(B).pipe(r.orDie,r.map((d)=>d?B:void 0)),{concurrency:16}).pipe(r.map((B)=>B.filter((d)=>d!==void 0)))}),s=r.fnUntraced(function*(i,u){let $=yield*e((B)=>B.update(G).set({sandboxes:u,time_updated:Date.now()}).where(U(G.id,i)).returning().get());if(!$)throw Error(`Project not found: ${i}`);yield*T(pn($))}),m=r.fn("Project.addSandbox")(function*(i,u){let $=yield*e((d)=>d.select().from(G).where(U(G.id,i)).get());if(!$)throw Error(`Project not found: ${i}`);let B=[...$.sandboxes];if(!B.includes(u))B.push(u);yield*s(i,B)}),y=r.fn("Project.removeSandbox")(function*(i,u){let $=yield*e((d)=>d.select().from(G).where(U(G.id,i)).get());if(!$)throw Error(`Project not found: ${i}`);let B=$.sandboxes.filter((d)=>d!==u);yield*s(i,B)});return Sn.of({fromDirectory:H,discover:C,list:J,get:R,update:O,initGit:Q,setInitialized:I,sandboxes:f,addSandbox:m,removeSandbox:y})})),Co=wr.pipe(h.provide(bn),h.provide(z.defaultLayer),h.provide(Zr.layer));function fe(){return Bn.use((n)=>n.select().from(G).all().map((o)=>pn(o)))}function ge(n){let o=Bn.use((t)=>t.select().from(G).where(U(G.id,n)).get());if(!o)return;return pn(o)}function se(n){Bn.use((o)=>o.update(G).set({time_initialized:Date.now()}).where(U(G.id,n)).run())}import{parse as pe}from"path";var rn=fn.create("instance");hr(()=>rn.use());var tn=new Map,_e=nt(Sn,Co),Ne=new Set(["/etc","/proc","/sys","/dev","/boot","/root","/var","/private/etc","/private/var"]);function Te(n){if(n===pe(n).root)return"filesystem root is not a valid project directory";for(let o of Ne)if(n===o||z.contains(o,n))return"target is a protected system directory";return null}function Ae(n){let o=Te(n);if(o)throw Error("Access denied: "+o)}var En={all:void 0};function jr(n){return Kn(async()=>{let o=n.project&&n.worktree?{directory:n.directory,worktree:n.worktree,project:n.project}:await _e.runPromise((t)=>t.fromDirectory(n.directory)).then(({project:t,sandbox:g})=>({directory:n.directory,worktree:g,project:t}));return await rn.provide(o,async()=>{await n.init?.()}),o})}function br(n,o){let t=o.catch((g)=>{if(tn.get(n)===t)tn.delete(n);throw g});return tn.set(n,t),t}var on={async provide(n){let o=z.resolve(n.directory);Ae(o);let t=tn.get(o);if(!t)a.Default.info("creating instance",{directory:o}),t=br(o,jr({directory:o,init:n.init}));let g=await t;return rn.provide(g,async()=>{return n.fn()})},get current(){return rn.use()},get directory(){return rn.use().directory},get worktree(){return rn.use().worktree},get project(){return rn.use().project},containsPath(n,o){let t=o??on;if(z.contains(t.directory,n))return!0;if(t.worktree==="/")return!1;return z.contains(t.worktree,n)},bind(n){let o=rn.use();return(...t)=>rn.provide(o,()=>n(...t))},restore(n,o){return rn.provide(n,o)},async reload(n){let o=z.resolve(n.directory);a.Default.info("reloading instance",{directory:o}),await So(o),tn.delete(o);let t=br(o,jr({...n,directory:o}));return cn.emit("event",{directory:o,project:n.project?.id,workspace:_n.workspaceID,payload:{type:"server.instance.disposed",properties:{directory:o}}}),await t},async dispose(){let{directory:n,project:o}=on;a.Default.info("disposing instance",{directory:n}),await So(n),tn.delete(n),cn.emit("event",{directory:n,project:o.id,workspace:_n.workspaceID,payload:{type:"server.instance.disposed",properties:{directory:n}}})},async disposeAll(){if(En.all)return En.all;return En.all=Kn(async()=>{a.Default.info("disposing all instances");let n=[...tn.entries()];for(let[o,t]of n){if(tn.get(o)!==t)continue;let g=await t.catch((e)=>{a.Default.warn("instance dispose failed",{key:o,error:e});return});if(!g){if(tn.get(o)===t)tn.delete(o);continue}if(tn.get(o)!==t)continue;await rn.provide(g,async()=>{await on.dispose()})}}).finally(()=>{En.all=void 0}),En.all}};var ot="~qitqode/InstanceState",Oe=(n)=>{try{return on.bind(n)}catch(g){if(!(g instanceof fn.NotFound))throw g}let o=In.getCurrent(),t=o?Dn.getReferenceUnsafe(o.context,Pn):void 0;if(!t)return n;return(...g)=>on.restore(t,()=>n(...g))},Jo=r.gen(function*(){return(yield*Pn)??on.current}),$e=r.gen(function*(){return(yield*hn)??_n.workspaceID}),no=r.map(Jo,(n)=>n.directory),De=(n)=>r.gen(function*(){let o=yield*Gn.make({capacity:Number.POSITIVE_INFINITY,lookup:()=>r.gen(function*(){return yield*n(yield*Jo)})}),t=Hr((g)=>r.runPromise(Gn.invalidate(o,g).pipe(r.provide(rt))));return yield*r.addFinalizer(()=>r.sync(t)),{[ot]:ot,cache:o}}),Ho=(n)=>r.gen(function*(){return yield*Gn.get(n.cache,yield*no)}),ve=(n,o)=>r.map(Ho(n),o),Qe=(n,o)=>r.flatMap(Ho(n),o),Be=(n)=>r.gen(function*(){return yield*Gn.has(n.cache,yield*no)}),Ie=(n)=>r.gen(function*(){return yield*Gn.invalidate(n.cache,yield*no)});var et={};dn(et,{make:()=>Le});function tt(n,o,t){if(n&&o!==void 0)return _n.restore(o,()=>on.restore(n,t));if(n)return on.restore(n,t);if(o!==void 0)return _n.restore(o,t);return t()}function Le(){return r.gen(function*(){let n=yield*r.context(),t=(yield*Pn)??(()=>{try{return on.current}catch(p){if(!(p instanceof fn.NotFound))throw p}})(),g=(yield*hn)??_n.workspaceID,e=(p)=>it(p,{instance:t,workspace:g}),T=(p)=>e(p).pipe(r.provide(n));return{promise:(p)=>tt(t,g,()=>r.runPromise(T(p))),fork:(p)=>tt(t,g,()=>r.runFork(T(p)))}})}var mt={};dn(mt,{make:()=>Se,Cancelled:()=>Un});class Un extends _.TaggedErrorClass()("RunnerCancelled",{}){}var Se=(n,o)=>{let t=Nn.makeUnsafe({_tag:"Idle"}),g=o?.onIdle??r.void,e=o?.onBusy??r.void,T=o?.onInterrupt,p=0,A=()=>Nn.getUnsafe(t),M=()=>{return p+=1,p},H=(m,y)=>Zn.isFailure(y)&&Ro.hasInterruptsOnly(y.cause)?gn.fail(m,new Un).pipe(r.asVoid):gn.done(m,y).pipe(r.asVoid),C=()=>Nn.modify(t,(m)=>[m._tag==="Idle"?g:r.void,m]).pipe(r.flatten),J=(m,y,i)=>Nn.modify(t,(u)=>[r.gen(function*(){if(u._tag==="Running"&&u.run.id===m)yield*g;yield*H(y,i)}),u._tag==="Running"&&u.run.id===m?{_tag:"Idle"}:u]).pipe(r.flatten),R=(m,y)=>r.gen(function*(){let i=M(),u=yield*m.pipe(r.onExit(($)=>J(i,y,$)),r.forkIn(n));return{id:i,done:y,fiber:u}}),O=(m)=>Nn.modifyEffect(t,r.fnUntraced(function*(y){if(y._tag==="Shell"&&y.shell.id===m)return[g,{_tag:"Idle"}];if(y._tag==="ShellThenRun"&&y.shell.id===m){let i=yield*R(y.run.work,y.run.done);return[r.void,{_tag:"Running",run:i}]}return[r.void,y]})).pipe(r.flatten),Q=(m)=>In.interrupt(m.fiber),I=(m)=>Nn.modifyEffect(t,r.fnUntraced(function*(y){switch(y._tag){case"Running":case"ShellThenRun":if(o?.onReentryWarn)yield*o.onReentryWarn({label:o.label??"(unlabeled)",existingRunId:y.run.id});return[gn.await(y.run.done),y];case"Shell":{let i={id:M(),done:yield*gn.make(),work:m};return[gn.await(i.done),{_tag:"ShellThenRun",shell:y.shell,run:i}]}case"Idle":{let i=yield*gn.make(),u=yield*R(m,i);return[gn.await(i),{_tag:"Running",run:u}]}}})).pipe(r.flatten,r.catch((y)=>y instanceof Un?T??r.die(y):r.fail(y))),f=(m)=>Nn.modifyEffect(t,r.fnUntraced(function*(y){if(y._tag!=="Idle")return[r.sync(()=>{if(o?.busy)o.busy();throw Error("Runner is busy")}),y];yield*e;let i=M(),u=yield*m.pipe(r.ensuring(O(i)),r.forkChild),$={id:i,fiber:u};return[r.gen(function*(){let B=yield*In.await(u);if(Zn.isSuccess(B))return B.value;if(Ro.hasInterruptsOnly(B.cause)&&T)return yield*T;return yield*r.failCause(B.cause)}),{_tag:"Shell",shell:$}]})).pipe(r.flatten),s=Nn.modify(t,(m)=>{switch(m._tag){case"Idle":return[r.void,m];case"Running":return[r.gen(function*(){yield*In.interrupt(m.run.fiber);let y=yield*In.await(m.run.fiber);yield*H(m.run.done,y),yield*gn.await(m.run.done).pipe(r.exit,r.asVoid),yield*C()}),{_tag:"Idle"}];case"Shell":return[r.gen(function*(){yield*Q(m.shell),yield*C()}),{_tag:"Idle"}];case"ShellThenRun":return[r.gen(function*(){yield*gn.fail(m.run.done,new Un).pipe(r.asVoid),yield*Q(m.shell),yield*C()}),{_tag:"Idle"}]}}).pipe(r.flatten);return{get state(){return A()},get busy(){return A()._tag!=="Idle"},ensureRunning:I,startShell:f,cancel:s}};import{Database as Ge}from"bun:sqlite";function yt(n){let o=new Ge(n,{create:!0});return ut({client:o})}var Me=ro.create("NotFoundError",j.object({message:j.string()})),lt=a.create({service:"db"});function gt(){if(["latest","beta","prod"].includes(co)||nn.QITQODE_DISABLE_CHANNEL_DB)return oo.join(On.Path.data,"qitqode.db");let n=co.replace(/[^a-zA-Z0-9._-]/g,"-");return oo.join(On.Path.data,`qitqode-${n}.db`)}var Ko=Kn(()=>{if(nn.QITQODE_DB){if(nn.QITQODE_DB===":memory:"||oo.isAbsolute(nn.QITQODE_DB))return nn.QITQODE_DB;return oo.join(On.Path.data,nn.QITQODE_DB)}return gt()}),Mn=ft(()=>{lt.info("opening database",{path:Ko});let n=yt(Ko);n.run("PRAGMA journal_mode = WAL"),n.run("PRAGMA synchronous = NORMAL"),n.run("PRAGMA busy_timeout = 5000"),n.run("PRAGMA cache_size = -64000"),n.run("PRAGMA foreign_keys = ON"),n.run("PRAGMA wal_checkpoint(PASSIVE)");let o=[{sql:"CREATE TABLE `project` (\n\t`id` text PRIMARY KEY,\n\t`worktree` text NOT NULL,\n\t`vcs` text,\n\t`name` text,\n\t`icon_url` text,\n\t`icon_color` text,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`time_initialized` integer,\n\t`sandboxes` text NOT NULL\n);\n--> statement-breakpoint\nCREATE TABLE `message` (\n\t`id` text PRIMARY KEY,\n\t`session_id` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_message_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `part` (\n\t`id` text PRIMARY KEY,\n\t`message_id` text NOT NULL,\n\t`session_id` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_part_message_id_message_id_fk` FOREIGN KEY (`message_id`) REFERENCES `message`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `permission` (\n\t`project_id` text PRIMARY KEY,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_permission_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `session` (\n\t`id` text PRIMARY KEY,\n\t`project_id` text NOT NULL,\n\t`parent_id` text,\n\t`slug` text NOT NULL,\n\t`directory` text NOT NULL,\n\t`title` text NOT NULL,\n\t`version` text NOT NULL,\n\t`share_url` text,\n\t`summary_additions` integer,\n\t`summary_deletions` integer,\n\t`summary_files` integer,\n\t`summary_diffs` text,\n\t`revert` text,\n\t`permission` text,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`time_compacting` integer,\n\t`time_archived` integer,\n\tCONSTRAINT `fk_session_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `todo` (\n\t`session_id` text NOT NULL,\n\t`content` text NOT NULL,\n\t`status` text NOT NULL,\n\t`priority` text NOT NULL,\n\t`position` integer NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\tCONSTRAINT `todo_pk` PRIMARY KEY(`session_id`, `position`),\n\tCONSTRAINT `fk_todo_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE TABLE `session_share` (\n\t`session_id` text PRIMARY KEY,\n\t`id` text NOT NULL,\n\t`secret` text NOT NULL,\n\t`url` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\tCONSTRAINT `fk_session_share_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE INDEX `message_session_idx` ON `message` (`session_id`);--> statement-breakpoint\nCREATE INDEX `part_message_idx` ON `part` (`message_id`);--> statement-breakpoint\nCREATE INDEX `part_session_idx` ON `part` (`session_id`);--> statement-breakpoint\nCREATE INDEX `session_project_idx` ON `session` (`project_id`);--> statement-breakpoint\nCREATE INDEX `session_parent_idx` ON `session` (`parent_id`);--> statement-breakpoint\nCREATE INDEX `todo_session_idx` ON `todo` (`session_id`);",timestamp:1769552633000,name:"20260127222353_familiar_lady_ursula"},{sql:"ALTER TABLE `project` ADD `commands` text;",timestamp:1770830228000,name:"20260211171708_add_project_commands"},{sql:"CREATE TABLE `control_account` (\n\t`email` text NOT NULL,\n\t`url` text NOT NULL,\n\t`access_token` text NOT NULL,\n\t`refresh_token` text NOT NULL,\n\t`token_expiry` integer,\n\t`active` integer NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\tCONSTRAINT `control_account_pk` PRIMARY KEY(`email`, `url`)\n);\n",timestamp:1770993676000,name:"20260213144116_wakeful_the_professor"},{sql:"CREATE TABLE `workspace` (\n\t`id` text PRIMARY KEY,\n\t`branch` text,\n\t`project_id` text NOT NULL,\n\t`config` text NOT NULL,\n\tCONSTRAINT `fk_workspace_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n",timestamp:1772056728000,name:"20260225215848_workspace"},{sql:"ALTER TABLE `session` ADD `workspace_id` text;--> statement-breakpoint\nCREATE INDEX `session_workspace_idx` ON `session` (`workspace_id`);",timestamp:1772228279000,name:"20260227213759_add_session_workspace_id"},{sql:"CREATE TABLE `account` (\n\t`id` text PRIMARY KEY,\n\t`email` text NOT NULL,\n\t`url` text NOT NULL,\n\t`access_token` text NOT NULL,\n\t`refresh_token` text NOT NULL,\n\t`token_expiry` integer,\n\t`selected_org_id` text,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL\n);\n--> statement-breakpoint\nCREATE TABLE `account_state` (\n\t`id` integer PRIMARY KEY NOT NULL,\n\t`active_account_id` text,\n\tFOREIGN KEY (`active_account_id`) REFERENCES `account`(`id`) ON UPDATE no action ON DELETE set null\n);\n",timestamp:1772310750000,name:"20260228203230_blue_harpoon"},{sql:"ALTER TABLE `workspace` ADD `type` text NOT NULL;--> statement-breakpoint\nALTER TABLE `workspace` ADD `name` text;--> statement-breakpoint\nALTER TABLE `workspace` ADD `directory` text;--> statement-breakpoint\nALTER TABLE `workspace` ADD `extra` text;--> statement-breakpoint\nALTER TABLE `workspace` DROP COLUMN `config`;",timestamp:1772579546000,name:"20260303231226_add_workspace_fields"},{sql:"ALTER TABLE `account_state` ADD `active_org_id` text;--> statement-breakpoint\nUPDATE `account_state` SET `active_org_id` = (SELECT `selected_org_id` FROM `account` WHERE `account`.`id` = `account_state`.`active_account_id`);--> statement-breakpoint\nALTER TABLE `account` DROP COLUMN `selected_org_id`;\n",timestamp:1773097200000,name:"20260309230000_move_org_to_state"},{sql:"DROP INDEX IF EXISTS `message_session_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `part_message_idx`;--> statement-breakpoint\nCREATE INDEX `message_session_time_created_id_idx` ON `message` (`session_id`,`time_created`,`id`);--> statement-breakpoint\nCREATE INDEX `part_message_id_id_idx` ON `part` (`message_id`,`id`);",timestamp:1773290071000,name:"20260312043431_session_message_cursor"},{sql:"CREATE TABLE `event_sequence` (\n\t`aggregate_id` text PRIMARY KEY,\n\t`seq` integer NOT NULL\n);\n--> statement-breakpoint\nCREATE TABLE `event` (\n\t`id` text PRIMARY KEY,\n\t`aggregate_id` text NOT NULL,\n\t`seq` integer NOT NULL,\n\t`type` text NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_event_aggregate_id_event_sequence_aggregate_id_fk` FOREIGN KEY (`aggregate_id`) REFERENCES `event_sequence`(`aggregate_id`) ON DELETE CASCADE\n);\n",timestamp:1774309702000,name:"20260323234822_events"},{sql:"PRAGMA foreign_keys=OFF;--> statement-breakpoint\nCREATE TABLE `__new_workspace` (\n\t`id` text PRIMARY KEY,\n\t`type` text NOT NULL,\n\t`name` text DEFAULT '' NOT NULL,\n\t`branch` text,\n\t`directory` text,\n\t`extra` text,\n\t`project_id` text NOT NULL,\n\tCONSTRAINT `fk_workspace_project_id_project_id_fk` FOREIGN KEY (`project_id`) REFERENCES `project`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nINSERT INTO `__new_workspace`(`id`, `type`, `branch`, `name`, `directory`, `extra`, `project_id`) SELECT `id`, `type`, `branch`, `name`, `directory`, `extra`, `project_id` FROM `workspace`;--> statement-breakpoint\nDROP TABLE `workspace`;--> statement-breakpoint\nALTER TABLE `__new_workspace` RENAME TO `workspace`;--> statement-breakpoint\nPRAGMA foreign_keys=ON;",timestamp:1775843113000,name:"20260410174513_workspace-name"},{sql:"CREATE TABLE `session_entry` (\n\t`id` text PRIMARY KEY,\n\t`session_id` text NOT NULL,\n\t`type` text NOT NULL,\n\t`time_created` integer NOT NULL,\n\t`time_updated` integer NOT NULL,\n\t`data` text NOT NULL,\n\tCONSTRAINT `fk_session_entry_session_id_session_id_fk` FOREIGN KEY (`session_id`) REFERENCES `session`(`id`) ON DELETE CASCADE\n);\n--> statement-breakpoint\nCREATE INDEX `session_entry_session_idx` ON `session_entry` (`session_id`);--> statement-breakpoint\nCREATE INDEX `session_entry_session_type_idx` ON `session_entry` (`session_id`,`type`);--> statement-breakpoint\nCREATE INDEX `session_entry_time_created_idx` ON `session_entry` (`time_created`);",timestamp:1776103196000,name:"20260413175956_chief_energizer"},{sql:"ALTER TABLE `session` ADD `context_from` text;--> statement-breakpoint\nALTER TABLE `session` ADD `context_watermark` text;--> statement-breakpoint\nCREATE INDEX `session_context_from_idx` ON `session` (`context_from`);\n",timestamp:1776873600000,name:"20260422160000_context_inheritance"},{sql:"CREATE TABLE `task_registry` (\n `id` text PRIMARY KEY,\n `parent_session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `status` text NOT NULL,\n `agent` text NOT NULL,\n `description` text NOT NULL,\n `context_mode` text NOT NULL,\n `background` integer NOT NULL,\n `last_turn_time` integer NOT NULL,\n `turn_count` integer NOT NULL DEFAULT 0,\n `error` text,\n `time_completed` integer,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `task_registry_parent_idx` ON `task_registry` (`parent_session_id`);--> statement-breakpoint\nCREATE INDEX `task_registry_status_idx` ON `task_registry` (`status`);--> statement-breakpoint\nCREATE INDEX `task_registry_status_last_turn_idx` ON `task_registry` (`status`, `last_turn_time`);\n",timestamp:1776877200000,name:"20260422170000_task_registry"},{sql:"DROP INDEX IF EXISTS `session_entry_session_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `session_entry_session_type_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `session_entry_time_created_idx`;--> statement-breakpoint\nDROP TABLE IF EXISTS `session_entry`;\n",timestamp:1776956061000,name:"20260423145421_remove_session_entry"},{sql:"DROP INDEX IF EXISTS `task_registry_parent_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `task_registry_status_idx`;--> statement-breakpoint\nDROP INDEX IF EXISTS `task_registry_status_last_turn_idx`;--> statement-breakpoint\nALTER TABLE `task_registry` RENAME TO `actor_registry`;--> statement-breakpoint\nCREATE INDEX `actor_registry_parent_idx` ON `actor_registry` (`parent_session_id`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_idx` ON `actor_registry` (`status`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_last_turn_idx` ON `actor_registry` (`status`, `last_turn_time`);\n",timestamp:1778803200000,name:"20260515000000_actor_rename"},{sql:"CREATE TABLE `memory_fts` (\n `path` text PRIMARY KEY NOT NULL,\n `scope` text NOT NULL,\n `scope_id` text DEFAULT '' NOT NULL,\n `type` text NOT NULL,\n `body` text NOT NULL,\n `fingerprint` text NOT NULL,\n `last_indexed_at` integer NOT NULL\n);\n--> statement-breakpoint\nCREATE INDEX `memory_fts_scope_idx` ON `memory_fts` (`scope`, `scope_id`);\n--> statement-breakpoint\nCREATE INDEX `memory_fts_type_idx` ON `memory_fts` (`type`);\n--> statement-breakpoint\nCREATE VIRTUAL TABLE `memory_fts_idx` USING fts5(\n body,\n content='memory_fts',\n content_rowid='rowid',\n tokenize='unicode61 remove_diacritics 1'\n);\n--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ai` AFTER INSERT ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;\n--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ad` AFTER DELETE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.rowid;\nEND;\n--> statement-breakpoint\nCREATE TRIGGER `memory_fts_au` AFTER UPDATE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.rowid;\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;\n",timestamp:1778806800000,name:"20260515010000_memory_fts"},{sql:"CREATE TABLE `task` (\n `id` text NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `parent_task_id` text,\n `kind` text NOT NULL DEFAULT 'user',\n `status` text NOT NULL,\n `focus` integer NOT NULL DEFAULT 0,\n `summary` text NOT NULL,\n `created_at` integer NOT NULL,\n `last_event_at` integer NOT NULL,\n `ended_at` integer,\n `cleanup_after` integer,\n PRIMARY KEY (`session_id`, `id`)\n);--> statement-breakpoint\nCREATE INDEX `task_session_idx` ON `task` (`session_id`);--> statement-breakpoint\nCREATE INDEX `task_parent_idx` ON `task` (`session_id`, `parent_task_id`);--> statement-breakpoint\nCREATE INDEX `task_status_idx` ON `task` (`status`);--> statement-breakpoint\nCREATE INDEX `task_kind_idx` ON `task` (`kind`);--> statement-breakpoint\nCREATE UNIQUE INDEX `task_focus_per_session_idx` ON `task` (`session_id`) WHERE focus = 1;--> statement-breakpoint\nCREATE TABLE `task_event` (\n `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `task_id` text NOT NULL,\n `at` integer NOT NULL,\n `kind` text NOT NULL,\n `summary` text,\n FOREIGN KEY (`session_id`, `task_id`) REFERENCES `task`(`session_id`, `id`) ON DELETE CASCADE\n);--> statement-breakpoint\nCREATE INDEX `task_event_task_idx` ON `task_event` (`session_id`, `task_id`, `at`);\n",timestamp:1778810400000,name:"20260515020000_user_task"},{sql:"ALTER TABLE `session` ADD `last_checkpoint_message_id` text;\n",timestamp:1779148800000,name:"20260519000000_last_checkpoint_message_id"},{sql:"ALTER TABLE `message` ADD `agent_id` text;--> statement-breakpoint\nCREATE INDEX `message_session_agent_idx` ON `message` (`session_id`,`agent_id`,`id`);\n",timestamp:1779321600000,name:"20260521000000_message_agent_id"},{sql:"DROP TABLE `actor_registry`;--> statement-breakpoint\nCREATE TABLE `actor_registry` (\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `actor_id` text NOT NULL,\n `mode` text NOT NULL,\n `parent_actor_id` text,\n `status` text NOT NULL,\n `agent` text NOT NULL,\n `description` text NOT NULL,\n `context_mode` text NOT NULL,\n `context_watermark` text,\n `background` integer NOT NULL,\n `tools` text,\n `last_turn_time` integer NOT NULL,\n `turn_count` integer NOT NULL DEFAULT 0,\n `error` text,\n `time_completed` integer,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n PRIMARY KEY (`session_id`, `actor_id`)\n);--> statement-breakpoint\nCREATE INDEX `actor_registry_session_agent_idx` ON `actor_registry` (`session_id`, `agent`);--> statement-breakpoint\nCREATE INDEX `actor_registry_session_parent_idx` ON `actor_registry` (`session_id`, `parent_actor_id`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_idx` ON `actor_registry` (`status`);--> statement-breakpoint\nCREATE INDEX `actor_registry_status_last_turn_idx` ON `actor_registry` (`status`, `last_turn_time`);\n",timestamp:1779321660000,name:"20260521000100_actor_registry_v6"},{sql:"DROP TRIGGER IF EXISTS `memory_fts_ai`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_ad`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_au`;--> statement-breakpoint\nDROP TABLE IF EXISTS `memory_fts_idx`;--> statement-breakpoint\nDROP TABLE IF EXISTS `memory_fts`;--> statement-breakpoint\nCREATE TABLE `memory_fts` (\n `id` integer PRIMARY KEY AUTOINCREMENT NOT NULL,\n `path` text NOT NULL UNIQUE,\n `scope` text NOT NULL,\n `scope_id` text DEFAULT '' NOT NULL,\n `type` text NOT NULL,\n `body` text NOT NULL,\n `fingerprint` text NOT NULL,\n `last_indexed_at` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `memory_fts_scope_idx` ON `memory_fts` (`scope`, `scope_id`);--> statement-breakpoint\nCREATE INDEX `memory_fts_type_idx` ON `memory_fts` (`type`);--> statement-breakpoint\nCREATE VIRTUAL TABLE `memory_fts_idx` USING fts5(\n body,\n content='memory_fts',\n content_rowid='id',\n tokenize='unicode61 remove_diacritics 1'\n);--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ai` AFTER INSERT ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ad` AFTER DELETE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.id;\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_au` AFTER UPDATE ON `memory_fts` BEGIN\n DELETE FROM `memory_fts_idx` WHERE rowid = OLD.id;\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;\n",timestamp:1779325200000,name:"20260521010000_memory_fts_v6"},{sql:"-- Fix v6.1 trigger pattern: external content FTS5 vtab requires the 'delete'\n-- magic command to remove OLD body's tokens, NOT a plain DELETE FROM the vtab.\n-- The previous DELETE FROM pattern was contentless-mode syntax misapplied to\n-- external-content mode, leaving stale tokens accumulating until vtab corrupts.\nDROP TRIGGER IF EXISTS `memory_fts_ai`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_ad`;--> statement-breakpoint\nDROP TRIGGER IF EXISTS `memory_fts_au`;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ai` AFTER INSERT ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_ad` AFTER DELETE ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(`memory_fts_idx`, rowid, body) VALUES('delete', OLD.id, OLD.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `memory_fts_au` AFTER UPDATE ON `memory_fts` BEGIN\n INSERT INTO `memory_fts_idx`(`memory_fts_idx`, rowid, body) VALUES('delete', OLD.id, OLD.body);\n INSERT INTO `memory_fts_idx`(rowid, body) VALUES (NEW.id, NEW.body);\nEND;\n",timestamp:1779328800000,name:"20260521020000_memory_fts_triggers"},{sql:"UPDATE `message` SET `agent_id` = 'main' WHERE `agent_id` IS NULL;--> statement-breakpoint\nCREATE TABLE `message_new` (\n `id` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `agent_id` text NOT NULL DEFAULT 'main',\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL,\n `data` text NOT NULL\n);--> statement-breakpoint\nINSERT INTO `message_new` SELECT `id`, `session_id`, COALESCE(`agent_id`, 'main'), `time_created`, `time_updated`, `data` FROM `message`;--> statement-breakpoint\nDROP TABLE `message`;--> statement-breakpoint\nALTER TABLE `message_new` RENAME TO `message`;--> statement-breakpoint\nCREATE INDEX `message_session_time_created_id_idx` ON `message` (`session_id`,`time_created`,`id`);--> statement-breakpoint\nCREATE INDEX `message_session_agent_idx` ON `message` (`session_id`,`agent_id`,`id`);\n",timestamp:1779753600000,name:"20260526000000_agent_id_main"},{sql:"ALTER TABLE `actor_registry` ADD COLUMN `last_outcome` text;--> statement-breakpoint\nALTER TABLE `actor_registry` ADD COLUMN `lifecycle` text NOT NULL DEFAULT 'ephemeral';--> statement-breakpoint\nALTER TABLE `actor_registry` RENAME COLUMN `error` TO `last_error`;--> statement-breakpoint\nUPDATE `actor_registry` SET `last_outcome` = 'success' WHERE `status` = 'completed';--> statement-breakpoint\nUPDATE `actor_registry` SET `last_outcome` = 'failure' WHERE `status` = 'failed';--> statement-breakpoint\nUPDATE `actor_registry` SET `last_outcome` = 'cancelled' WHERE `status` = 'cancelled';--> statement-breakpoint\nUPDATE `actor_registry` SET `status` = 'idle' WHERE `status` IN ('completed','failed','cancelled');--> statement-breakpoint\nUPDATE `actor_registry` SET `lifecycle` = CASE `mode` WHEN 'peer' THEN 'persistent' WHEN 'main' THEN 'persistent' ELSE 'ephemeral' END;\n",timestamp:1779840000000,name:"20260527000000_actor_lifecycle"},{sql:"CREATE TABLE `inbox` (\n `id` text PRIMARY KEY NOT NULL,\n `receiver_session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `receiver_actor_id` text NOT NULL,\n `sender_session_id` text,\n `sender_actor_id` text,\n `type` text NOT NULL DEFAULT 'text',\n `content` text NOT NULL,\n `created_at` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `inbox_receiver_idx` ON `inbox` (`receiver_session_id`,`receiver_actor_id`,`id`);--> statement-breakpoint\nCREATE INDEX `inbox_created_idx` ON `inbox` (`created_at`);\n",timestamp:1779840060000,name:"20260527000100_inbox"},{sql:"-- todo: drop priority column\nALTER TABLE `todo` DROP COLUMN `priority`;\n--> statement-breakpoint\n\n-- task: drop focus-dependent index before dropping its column\nDROP INDEX `task_focus_per_session_idx`;\n--> statement-breakpoint\nDROP INDEX `task_kind_idx`;\n--> statement-breakpoint\nALTER TABLE `task` DROP COLUMN `focus`;\n--> statement-breakpoint\nALTER TABLE `task` DROP COLUMN `kind`;\n--> statement-breakpoint\n\n-- migrate status values: proposed/active -> open\nUPDATE `task` SET `status` = 'open' WHERE `status` IN ('proposed', 'active');\n",timestamp:1780012800000,name:"20260529000000_task_todo_redesign"},{sql:"ALTER TABLE `task` ADD COLUMN `owner` text;\n",timestamp:1780444800000,name:"20260603000000_task_in_progress_owner"},{sql:"CREATE TABLE `workflow_run` (\n `id` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL REFERENCES `session`(`id`) ON DELETE CASCADE,\n `name` text NOT NULL,\n `status` text NOT NULL,\n `running` integer NOT NULL DEFAULT 0,\n `succeeded` integer NOT NULL DEFAULT 0,\n `failed` integer NOT NULL DEFAULT 0,\n `current_phase` text,\n `parent_actor_id` text,\n `args` text,\n `error` text,\n `time_created` integer NOT NULL,\n `time_updated` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `workflow_run_session_idx` ON `workflow_run` (`session_id`);--> statement-breakpoint\nCREATE INDEX `workflow_run_status_idx` ON `workflow_run` (`status`);\n",timestamp:1780444800000,name:"20260603000000_workflow_run"},{sql:"ALTER TABLE `workflow_run` ADD COLUMN `script_sha` text;\n",timestamp:1780531200000,name:"20260604000000_workflow_script_sha"},{sql:"CREATE TABLE `claude_import` (\n `source_uuid` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL,\n `source_path` text NOT NULL,\n `source_mtime` integer NOT NULL,\n `time_imported` integer NOT NULL\n);\n",timestamp:1780876800000,name:"20260608000000_claude_import"},{sql:"ALTER TABLE `claude_import` ADD `message_ids` text;\n",timestamp:1780880400000,name:"20260608010000_claude_import_message_ids"},{sql:"CREATE TABLE `history_fts` (\n `part_id` text PRIMARY KEY NOT NULL,\n `session_id` text NOT NULL,\n `message_id` text NOT NULL,\n `project_id` text NOT NULL,\n `kind` text NOT NULL,\n `tool_name` text,\n `body` text NOT NULL,\n `time_created` integer NOT NULL\n);--> statement-breakpoint\nCREATE INDEX `history_fts_session_idx` ON `history_fts` (`session_id`, `time_created`);--> statement-breakpoint\nCREATE INDEX `history_fts_project_idx` ON `history_fts` (`project_id`, `time_created`);--> statement-breakpoint\nCREATE INDEX `history_fts_message_idx` ON `history_fts` (`message_id`);--> statement-breakpoint\nCREATE VIRTUAL TABLE `history_fts_idx` USING fts5(\n body,\n content='history_fts',\n content_rowid='rowid',\n tokenize='unicode61 remove_diacritics 1'\n);--> statement-breakpoint\nCREATE TRIGGER `history_fts_ai` AFTER INSERT ON `history_fts` BEGIN\n INSERT INTO `history_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `history_fts_ad` AFTER DELETE ON `history_fts` BEGIN\n INSERT INTO `history_fts_idx`(`history_fts_idx`, rowid, body) VALUES('delete', OLD.rowid, OLD.body);\nEND;--> statement-breakpoint\nCREATE TRIGGER `history_fts_au` AFTER UPDATE ON `history_fts` BEGIN\n INSERT INTO `history_fts_idx`(`history_fts_idx`, rowid, body) VALUES('delete', OLD.rowid, OLD.body);\n INSERT INTO `history_fts_idx`(rowid, body) VALUES (NEW.rowid, NEW.body);\nEND;\n",timestamp:1780963200000,name:"20260609000000_history_fts"},{sql:"ALTER TABLE `workflow_run` ADD COLUMN `agent_timeout_ms` integer;\n",timestamp:1781046000000,name:"20260609230000_workflow_agent_timeout"},{sql:"CREATE TABLE `external_import` (\n `source` text NOT NULL,\n `source_key` text NOT NULL,\n `session_id` text NOT NULL,\n `source_path` text NOT NULL,\n `source_mtime` integer NOT NULL,\n `time_imported` integer NOT NULL,\n `message_ids` text,\n PRIMARY KEY (`source`, `source_key`)\n);\n\nINSERT INTO `external_import` (`source`, `source_key`, `session_id`, `source_path`, `source_mtime`, `time_imported`, `message_ids`)\nSELECT 'cc', `source_uuid`, `session_id`, `source_path`, `source_mtime`, `time_imported`, `message_ids`\nFROM `claude_import`;\n\nDROP TABLE `claude_import`;\n",timestamp:1781222400000,name:"20260612000000_external_import"}];if(o.length>0){if(lt.info("applying migrations",{count:o.length,mode:"bundled"}),nn.QITQODE_SKIP_MIGRATIONS)for(let t of o)t.sql="select 1;";jo(n,o)}return n});function xe(){Mn().$client.close(),Mn.reset()}var Xn=fn.create("database");function Ce(n){try{return n(Xn.use().tx)}catch(o){if(o instanceof fn.NotFound){let t=[],g=Xn.provide({effects:t,tx:Mn()},()=>n(Mn()));for(let e of t)e();return g}throw o}}function Je(n){let o=Wn.bind(n);try{Xn.use().effects.push(o)}catch{o()}}function He(n,o){try{return n(Xn.use().tx)}catch(t){if(t instanceof fn.NotFound){let g=[],e=Wn.bind((p)=>Xn.provide({tx:p,effects:g},()=>n(p))),T=Mn().transaction(e,{behavior:o?.behavior});for(let p of g)p();return T}throw t}}var dt={};dn(dt,{layer:()=>At,defaultLayer:()=>Ve,Service:()=>io,NotFoundError:()=>Uo});import Z from"path";var xn={};dn(xn,{layer:()=>Nt,defaultLayer:()=>Ke,Service:()=>to,Git:()=>xn});var Re=["--no-optional-locks","-c","core.autocrlf=false","-c","core.fsmonitor=false","-c","core.longpaths=true","-c","core.symlinks=true","-c","core.quotepath=false"],Yn=(n)=>n.text().trim(),Eo=(n)=>n.split("\x00").filter(Boolean),ce=(n)=>({exitCode:1,text:()=>"",stdout:Buffer.alloc(0),stderr:Buffer.from(n instanceof Error?n.message:String(n))}),st=(n)=>{if(n==="??")return"added";if(n.includes("U"))return"modified";if(n.includes("A")&&!n.includes("D"))return"added";if(n.includes("D")&&!n.includes("A"))return"deleted";return"modified"};class to extends Dn.Service()("@qitqode/Git"){}var Nt=h.effect(to,r.gen(function*(){let n=yield*jn.ChildProcessSpawner,o=r.fn("Git.run")(function*(f,s){let m=pt.make("git",[...Re,...f],{cwd:s.cwd,env:s.env,extendEnv:!0,stdin:"ignore",stdout:"pipe",stderr:"pipe"}),y=yield*_t(n,m);return{exitCode:y.code,text:()=>y.text,stdout:Buffer.from(y.text),stderr:Buffer.from(y.stderr)}},r.scoped,r.catch((f)=>r.succeed(ce(f)))),t=r.fn("Git.text")(function*(f,s){return(yield*o(f,s)).text()}),g=r.fn("Git.lines")(function*(f,s){return(yield*t(f,s)).split(/\r?\n/).map((m)=>m.trim()).filter(Boolean)}),e=r.fnUntraced(function*(f){return yield*g(["for-each-ref","--format=%(refname:short)","refs/heads"],{cwd:f})}),T=r.fnUntraced(function*(f,s){let m=yield*o(["config","init.defaultBranch"],{cwd:f}),y=Yn(m);if(!y||!s.includes(y))return;return{name:y,ref:y}}),p=r.fnUntraced(function*(f){let s=yield*g(["remote"],{cwd:f});if(s.includes("origin"))return"origin";if(s.length===1)return s[0];if(s.includes("upstream"))return"upstream";return s[0]}),A=r.fn("Git.branch")(function*(f){let s=yield*o(["symbolic-ref","--quiet","--short","HEAD"],{cwd:f});if(s.exitCode!==0)return;return Yn(s)||void 0}),M=r.fn("Git.prefix")(function*(f){let s=yield*o(["rev-parse","--show-prefix"],{cwd:f});if(s.exitCode!==0)return"";return Yn(s)}),H=r.fn("Git.defaultBranch")(function*(f){let s=yield*p(f);if(s){let i=yield*o(["symbolic-ref",`refs/remotes/${s}/HEAD`],{cwd:f});if(i.exitCode===0){let u=Yn(i).replace(/^refs\/remotes\//,""),$=u.startsWith(`${s}/`)?u.slice(`${s}/`.length):"";if($)return{name:$,ref:u}}}let m=yield*e(f),y=yield*T(f,m);if(y)return y;if(m.includes("main"))return{name:"main",ref:"main"};if(m.includes("master"))return{name:"master",ref:"master"}}),C=r.fn("Git.hasHead")(function*(f){return(yield*o(["rev-parse","--verify","HEAD"],{cwd:f})).exitCode===0}),J=r.fn("Git.mergeBase")(function*(f,s,m="HEAD"){let y=yield*o(["merge-base",s,m],{cwd:f});if(y.exitCode!==0)return;return Yn(y)||void 0}),R=r.fn("Git.show")(function*(f,s,m,y=""){let i=y?`${y}${m}`:m,u=yield*o(["show",`${s}:${i}`],{cwd:f});if(u.exitCode!==0)return"";if(u.stdout.includes(0))return"";return u.text()}),O=r.fn("Git.status")(function*(f){return Eo(yield*t(["status","--porcelain=v1","--untracked-files=all","--no-renames","-z","--","."],{cwd:f})).flatMap((s)=>{let m=s.slice(3);if(!m)return[];let y=s.slice(0,2);return[{file:m,code:y,status:st(y)}]})}),Q=r.fn("Git.diff")(function*(f,s){let m=Eo(yield*t(["diff","--no-ext-diff","--no-renames","--name-status","-z",s,"--","."],{cwd:f}));return m.flatMap((y,i)=>{if(i%2!==0)return[];let u=m[i+1];if(!y||!u)return[];return[{file:u,code:y,status:st(y)}]})}),I=r.fn("Git.stats")(function*(f,s){return Eo(yield*t(["diff","--no-ext-diff","--no-renames","--numstat","-z",s,"--","."],{cwd:f})).flatMap((m)=>{let y=m.indexOf("\t"),i=m.indexOf("\t",y+1);if(y===-1||i===-1)return[];let u=m.slice(i+1);if(!u)return[];let $=m.slice(0,y),B=m.slice(y+1,i),d=$==="-"?0:Number.parseInt($||"0",10),E=B==="-"?0:Number.parseInt(B||"0",10);return[{file:u,additions:Number.isFinite(d)?d:0,deletions:Number.isFinite(E)?E:0}]})});return to.of({run:o,branch:A,prefix:M,defaultBranch:H,hasHead:C,mergeBase:J,show:R,status:O,diff:Q,stats:I})})),Ke=Nt.pipe(h.provide(bn));var Tn=a.create({service:"storage"}),Uo=ro.create("NotFoundError",j.object({message:j.string()})),Ee=_.Struct({path:_.optional(_.Struct({root:_.optional(_.String)}))}),Pe=_.Struct({id:_.String}),We=_.Struct({id:_.String}),Ue=_.Struct({additions:_.Number,deletions:_.Number}),Ze=_.Struct({id:_.String,projectID:_.String,summary:_.Struct({diffs:_.Array(Ue)})}),Xe=_.decodeUnknownOption(Ee),Ye=_.decodeUnknownOption(Pe),ae=_.decodeUnknownOption(We),ze=_.decodeUnknownOption(Ze);class io extends Dn.Service()("@qitqode/Storage"){}function ke(n,o){return Z.join(n,...o)+".json"}function Po(n){if(!n||typeof n!=="object")return!1;if("code"in n&&n.code==="ENOENT")return!0;if("reason"in n&&n.reason&&typeof n.reason==="object"&&"_tag"in n.reason)return n.reason._tag==="NotFound";return!1}function qe(n){let o=Number.parseInt(n,10);return Number.isNaN(o)?0:o}var Tt=[r.fn("Storage.migration.1")(function*(n,o,t){let g=Z.resolve(n,"../project");if(!(yield*o.isDir(g)))return;let e=yield*o.glob("*",{cwd:g,include:"all"});for(let T of e){let p=Z.join(g,T);if(!(yield*o.isDir(p)))continue;Tn.info(`migrating project ${T}`);let A=T,M="/";if(A!=="global"){for(let J of yield*o.glob("storage/session/message/*/*.json",{cwd:p,absolute:!0})){let R=Xe(yield*o.readJson(J),{onExcessProperty:"preserve"}),O=an.isSome(R)?R.value.path?.root:void 0;if(!O)continue;M=O;break}if(!M)continue;if(!(yield*o.isDir(M)))continue;let H=yield*t.run(["rev-list","--max-parents=0","--all"],{cwd:M}),[C]=H.text().split(`
|
|
5
|
-
`).filter(Boolean).map((J)=>J.trim()).toSorted();if(!C)continue;A=C,yield*o.writeWithDirs(Z.join(n,"project",A+".json"),JSON.stringify({id:C,vcs:"git",worktree:M,time:{created:Date.now(),initialized:Date.now()}},null,2)),Tn.info(`migrating sessions for project ${A}`);for(let J of yield*o.glob("storage/session/info/*.json",{cwd:p,absolute:!0})){let R=Z.join(n,"session",A,Z.basename(J));Tn.info("copying",{sessionFile:J,dest:R});let O=yield*o.readJson(J),Q=Ye(O,{onExcessProperty:"preserve"});if(yield*o.writeWithDirs(R,JSON.stringify(O,null,2)),an.isNone(Q))continue;Tn.info(`migrating messages for session ${Q.value.id}`);for(let I of yield*o.glob(`storage/session/message/${Q.value.id}/*.json`,{cwd:p,absolute:!0})){let f=Z.join(n,"message",Q.value.id,Z.basename(I));Tn.info("copying",{msgFile:I,dest:f});let s=yield*o.readJson(I),m=ae(s,{onExcessProperty:"preserve"});if(yield*o.writeWithDirs(f,JSON.stringify(s,null,2)),an.isNone(m))continue;Tn.info(`migrating parts for message ${m.value.id}`);for(let y of yield*o.glob(`storage/session/part/${Q.value.id}/${m.value.id}/*.json`,{cwd:p,absolute:!0})){let i=Z.join(n,"part",m.value.id,Z.basename(y)),u=yield*o.readJson(y);Tn.info("copying",{partFile:y,dest:i}),yield*o.writeWithDirs(i,JSON.stringify(u,null,2))}}}}}}),r.fn("Storage.migration.2")(function*(n,o){for(let t of yield*o.glob("session/*/*.json",{cwd:n,absolute:!0})){let g=yield*o.readJson(t),e=ze(g,{onExcessProperty:"preserve"});if(an.isNone(e))continue;let T=e.value.summary.diffs;yield*o.writeWithDirs(Z.join(n,"session_diff",e.value.id+".json"),JSON.stringify(T,null,2)),yield*o.writeWithDirs(Z.join(n,"session",e.value.projectID,e.value.id+".json"),JSON.stringify({...g,summary:{additions:T.reduce((p,A)=>p+A.additions,0),deletions:T.reduce((p,A)=>p+A.deletions,0)}},null,2))}})],At=h.effect(io,r.gen(function*(){let n=yield*z.Service,o=yield*xn.Service,t=yield*Wo.make({lookup:()=>Cn.make(),idleTimeToLive:0}),g=yield*r.cached(r.gen(function*(){let O=Z.join(On.Path.data,"storage"),Q=Z.join(O,"migration"),I=yield*n.readFileString(Q).pipe(r.map(qe),r.catchIf(Po,()=>r.succeed(0)),r.orElseSucceed(()=>0));for(let f=I;f<Tt.length;f++){Tn.info("running migration",{index:f});let s=Tt[f],m=yield*r.exit(s(O,n,o));if(Zn.isFailure(m)){Tn.error("failed to run migration",{index:f,cause:m.cause});break}yield*n.writeWithDirs(Q,String(f+1))}return{dir:O}})),e=(O)=>r.fail(new Uo({message:`Resource not found: ${O}`})),T=(O,Q)=>Q.pipe(r.catchIf(Po,()=>e(O))),p=r.fnUntraced(function*(O,Q){yield*n.writeWithDirs(O,JSON.stringify(Q,null,2))}),A=(O,Q)=>r.scoped(r.gen(function*(){let I=ke((yield*g).dir,O);return yield*Q(I,yield*Wo.get(t,I))})),M=r.fn("Storage.remove")(function*(O){yield*A(O,(Q,I)=>Cn.withWriteLock(I,n.remove(Q).pipe(r.catchIf(Po,()=>r.void))))}),H=(O)=>r.gen(function*(){return yield*A(O,(I,f)=>Cn.withReadLock(f,T(I,n.readJson(I))))}),C=(O,Q)=>r.gen(function*(){return yield*A(O,(f,s)=>Cn.withWriteLock(s,r.gen(function*(){let m=yield*T(f,n.readJson(f));return Q(m),yield*p(f,m),m})))}),J=(O,Q)=>r.gen(function*(){yield*A(O,(I,f)=>Cn.withWriteLock(f,p(I,Q)))}),R=r.fn("Storage.list")(function*(O){let Q=(yield*g).dir,I=Z.join(Q,...O);return(yield*n.glob("**/*",{cwd:I,include:"file"}).pipe(r.catch(()=>r.succeed([])))).map((s)=>[...O,...s.slice(0,-5).split(Z.sep)]).toSorted((s,m)=>s.join("/").localeCompare(m.join("/")))});return io.of({remove:M,read:H,update:C,write:J,list:R})})),Ve=At.pipe(h.provide(z.defaultLayer),h.provide(xn.defaultLayer));export{cn as rl,Hr as sl,Kn as tl,mn as ul,G as vl,ln as wl,eo as xl,Xo as yl,Yo as zl,ao as Al,zo as Bl,qo as Cl,lo as Dl,Bn as El,xn as Fl,Uo as Gl,dt as Hl,V as Il,Go as Jl,Er as Kl,se as Ll,Fr as Ml,Te as Nl,on as Ol,Wn as Pl,Le as Ql,et as Rl,mt as Sl};
|
package/bundle/chunk-0yb4pxjv.js
DELETED
package/bundle/chunk-129kq1w7.js
DELETED
package/bundle/chunk-1a5hq7d5.js
DELETED
package/bundle/chunk-1w3y1dkk.js
DELETED
package/bundle/chunk-2pkake0h.js
DELETED
package/bundle/chunk-32188rww.js
DELETED
package/bundle/chunk-334tc1rh.js
DELETED
package/bundle/chunk-3ff94m8r.js
DELETED
package/bundle/chunk-4xg5ptk9.js
DELETED
package/bundle/chunk-5nm36wxa.js
DELETED
package/bundle/chunk-64jet8nc.js
DELETED
package/bundle/chunk-6584d9m8.js
DELETED
package/bundle/chunk-66hv9bbw.js
DELETED
package/bundle/chunk-6be8p915.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ig as r}from"./chunk-aqm597px.js";import{hO as o}from"./chunk-0rmmg3g4.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-j5b5h08g.js")).toJSONSchema}catch{throw c}else try{t=(await import("./chunk-kdcspxvq.js")).zodToJsonSchema}catch{throw new r("zod-to-json-schema")}return t(n,e)}}export{m as default};
|
package/bundle/chunk-6f03158n.js
DELETED
package/bundle/chunk-7jnjttqx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{a,b,c,d,e,f}from"./chunk-qvcfst7n.js";import"./chunk-58680z2j.js";import"./chunk-mkdyknbz.js";import"./chunk-pepn5jp4.js";import"./chunk-0vqrakhw.js";import"./chunk-9jncnqbj.js";import"./chunk-754varfr.js";import"./chunk-g4qwkcdv.js";import"./chunk-qe0sfafy.js";import"./chunk-w98r39gd.js";import"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";export{e as statusEffect,a as resolveApiKeyFlag,d as logoutEffect,c as loginEffect,b as apiKeyLoginEffect,f as AuthCommand};
|
package/bundle/chunk-7q8pa6s8.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Hd as q,Id as K,Jd as D,Md as L,Nd as N}from"./chunk-9jncnqbj.js";import"./chunk-754varfr.js";import{Uf as B}from"./chunk-qe0sfafy.js";import{uh as G}from"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import"./chunk-3f054f69.js";import{gl as C}from"./chunk-26qt44f1.js";import"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import{xr as J}from"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";var X={command:"upgrade [target]",describe:"upgrade qitqode to the latest or a specific version",builder:(z)=>{return z.positional("target",{describe:"version to upgrade to, for ex '0.1.48' or 'v0.1.48'",type:"string"}).option("method",{alias:"m",describe:"installation method to use",type:"string",choices:["curl","npm","pnpm","bun","brew","choco","scoop"]})},handler:async(z)=>{B.empty(),B.println(B.logo(" ")),B.empty(),K("Upgrade");let O=await G.runPromise(C.Service.use((j)=>j.method())),E=z.method??O;if(E==="unknown"){if(q.error(`qitqode is installed to ${process.execPath} and may be managed by a package manager`),!await N({message:"Install anyways?",options:[{label:"Yes",value:!0},{label:"No",value:!1}],initialValue:!1})){D("Done");return}}q.info("Using method: "+E);let F=z.target?z.target.replace(/^v/,""):await G.runPromise(C.Service.use((j)=>j.latest()));if(J===F){q.warn(`qitqode upgrade skipped: ${F} is already installed`),D("Done");return}q.info(`From ${J} \u2192 ${F}`);let H=L();H.start("Upgrading...");let x=await G.runPromise(C.Service.use((j)=>j.upgrade(E,F))).catch((j)=>j);if(x){if(H.stop("Upgrade failed",1),x instanceof C.UpgradeFailedError)if(E==="choco"&&x.stderr.includes("not running from an elevated command shell"))q.error("Please run the terminal as Administrator and try again");else q.error(x.stderr);else if(x instanceof Error)q.error(x.message);D("Done");return}H.stop("Upgrade complete"),D("Done")}};export{X as UpgradeCommand};
|
package/bundle/chunk-7w84hfxs.js
DELETED
package/bundle/chunk-8casywce.js
DELETED
package/bundle/chunk-8hxwxt5p.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cl as s,Dl as t,El as u,Gl as v,Hl as w}from"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import{Bm as b,Cm as c,Dm as d,Em as e,Fm as f,Gm as g,Hm as h,Im as i,Jm as j,Km as k,Mm as l,Nm as m,Om as n,Qm as o,Sm as p,Zm as q,_m as r,om as a}from"./chunk-rmsqb6r4.js";import"./chunk-pf7cj4jd.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.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-8y8140dm.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{ke as a,le as b,me as c,ne as d,oe as e,pe as f,qe as g}from"./chunk-gvtw9c44.js";import"./chunk-g73drh98.js";import"./chunk-se79ke63.js";import"./chunk-4wyjapes.js";import"./chunk-0rmmg3g4.js";export{g as fromEnv,c as ENV_SESSION,b as ENV_SECRET,a as ENV_KEY,d as ENV_EXPIRATION,e as ENV_CREDENTIAL_SCOPE,f as ENV_ACCOUNT_ID};
|
package/bundle/chunk-9dqcyt6x.js
DELETED
package/bundle/chunk-9he248a8.js
DELETED
package/bundle/chunk-9qmmse2n.js
DELETED
package/bundle/chunk-aabrsxrq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Vf as a,Wf as b}from"./chunk-jq81hb32.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{a as start,b as Heap};
|
package/bundle/chunk-atd0q4v8.js
DELETED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hO as o}from"./chunk-0rmmg3g4.js";var i=(t)=>`standard-openapi: ${t}`,s=new Map,r=async(t)=>{let e=s.get(t);if(e)return e;let a;switch(t){case"valibot":a=(await import("./chunk-z3zx6g09.js")).default();break;case"zod":a=(await import("./chunk-knvsa1d4.js")).default();break;default:a=(await import("./chunk-v6g0ksks.js")).default()}return s.set(t,a),a},d=async(t,e={})=>{let a=await r(t["~standard"].vendor),{components:n={},options:c}=e;return{schema:await a(t,{components:n,options:c}),components:Object.keys(n).length>0?n:void 0}};
|
|
3
|
-
export{i as Gg,d as Hg};
|
package/bundle/chunk-avaba4sr.js
DELETED
package/bundle/chunk-bdy1etja.js
DELETED
package/bundle/chunk-bqdvqmjc.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Ag as j,Bg as k,Cg as l,Dg as m,Eg as n,Fg as o,rg as a,sg as b,tg as c,ug as d,vg as e,wg as f,xg as g,yg as h,zg as i}from"./chunk-w98r39gd.js";import"./chunk-wb69d52j.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-9va5eh9s.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{k as withRelayedToken,e as resolveDevicePoll,j as refreshAccessToken,i as probeToken,l as loginDevice,n as loginBrowser,m as login,c as isReplitEnv,g as isNearExpiry,d as getConfig,f as getCallbackUri,h as fetchQreditsBalance,o as checkoutApiKey,a as ForgewiseError,b as DeviceFlowUnsupportedError};
|
package/bundle/chunk-cdws8ggq.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Kg as a}from"./chunk-8gy99gfb.js";import{$g as t,uh as c}from"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import{Ys as i}from"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";var n=i.object({name:a.shape.name,branch:a.shape.branch.unwrap(),directory:a.shape.directory.unwrap()}),d={name:"Worktree",description:"Create a git worktree",async configure(e){let r=await c.runPromise(t.Service.use((o)=>o.makeWorktreeInfo()));return{...e,name:r.name,branch:r.branch,directory:r.directory}},async create(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.createFromInfo({name:r.name,directory:r.directory,branch:r.branch})))},async remove(e){let r=n.parse(e);await c.runPromise(t.Service.use((o)=>o.remove({directory:r.directory})))},target(e){return{type:"local",directory:n.parse(e).directory}}};export{d as WorktreeAdaptor};
|
package/bundle/chunk-cqs9a2cs.js
DELETED
package/bundle/chunk-d0rjst58.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Cs as n,Sr as a,cs as c,ds as d,es as e,gs as f,hs as h,is as i,js as j,ks as k,ms as l,ns as m}from"./chunk-v7ah9gg0.js";import{Ls as b,Ws as g}from"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{f as getEnvInfo,a as Wildcard,m as Token,l as Rpc,b as Process,n as Log,k as Lock,j as Locale,i as LocalContext,h as Keybind,g as Filesystem,e as EffectUtil,d as Color,c as Archive};
|
package/bundle/chunk-d833a2fj.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$N as i,TN as a,UN as b,VN as c,WN as d,XN as e,YN as f,ZN as g,_N as h,aO as j}from"./chunk-qnv2v02g.js";import"./chunk-0rmmg3g4.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-dday4nm2.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{if as a,jf as b,kf as c,lf as d,mf as e,nf as f}from"./chunk-zsnbxsdx.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-0rmmg3g4.js";export{f as createOpenAICompatible,e as VERSION,d as OpenAICompatibleImageModel,c as OpenAICompatibleEmbeddingModel,b as OpenAICompatibleCompletionLanguageModel,a as OpenAICompatibleChatLanguageModel};
|
package/bundle/chunk-e2sj30hk.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{rs as a,ss as b}from"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{a as Path,b as Global};
|
package/bundle/chunk-enc0fykg.js
DELETED
package/bundle/chunk-evan93av.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{hl as a,il as b,jl as c,kl as d,ll as e,ml as f,nl as g,ol as h,pl as i}from"./chunk-26qt44f1.js";import"./chunk-meaybtcc.js";import"./chunk-9dpn4792.js";import"./chunk-b50t4jc5.js";import"./chunk-e075v4e9.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.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-f600dzsr.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{nf as h}from"./chunk-zsnbxsdx.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-0rmmg3g4.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-f6jzwydk.js
DELETED
package/bundle/chunk-fv67ng8z.js
DELETED
package/bundle/chunk-gevazsx3.js
DELETED
package/bundle/chunk-gh18pzkx.js
DELETED
package/bundle/chunk-gnvvgr4y.js
DELETED
package/bundle/chunk-gsbjs2ws.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{$f as e,Xf as a,Yf as b,Zf as c,_f as d}from"./chunk-bqs6a1ts.js";import"./chunk-cjxp72dv.js";import"./chunk-2rxt1s22.js";import"./chunk-w98r39gd.js";import"./chunk-atd0q4v8.js";import"./chunk-nfg7nt13.js";import"./chunk-aqm597px.js";import"./chunk-8gy99gfb.js";import"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";export{c as url,b as openapi,d as listen,e as Server,a as Default};
|
package/bundle/chunk-j7pdz979.js
DELETED
package/bundle/chunk-jfe2qbv8.js
DELETED
package/bundle/chunk-kcht9kvx.js
DELETED
package/bundle/chunk-knvsa1d4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Bf as l}from"./chunk-qfz0a58d.js";import"./chunk-tfggzzqw.js";import{Gg as q}from"./chunk-atd0q4v8.js";import"./chunk-nfg7nt13.js";import"./chunk-aqm597px.js";import{hO as C}from"./chunk-0rmmg3g4.js";function J(){return async(f,b)=>{if("_zod"in f)return l()(f,{components:b.components,options:{io:"input",...b.options}});try{let{createSchema:w}=await import("./chunk-4stgw33j.js"),{schema:B,components:k}=w(f,{schemaType:"input",...b.options});if(k)b.components.schemas={...b.components.schemas,...k};return B}catch{throw Error(q('Missing dependencies "zod-openapi v4".'))}}}export{J as default};
|
package/bundle/chunk-kp6d68hd.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{lg as a,mg as b,ng as c}from"./chunk-cjxp72dv.js";import"./chunk-3f054f69.js";import"./chunk-26qt44f1.js";import"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";export{b as run,a as encodeDir,c as ClaudeImport};
|
package/bundle/chunk-me78p9x4.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{As as g,Bs as h,us as a,vs as b,ws as c,xs as d,ys as e,zs as f}from"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{g as redactValue,e as init,f as flush,d as file,b as enabled,h as create,a as Level,c as Default};
|
package/bundle/chunk-mv1d7wyt.js
DELETED
package/bundle/chunk-n8xmmxh5.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{t as a,u as b,v as c,w as d,x as e,y as f,z as g}from"./chunk-gw0j8hr9.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-amx3x4kd.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-xw283h2r.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.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-n90219q9.js
DELETED
package/bundle/chunk-nckg3ydx.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{Qd as b}from"./chunk-g4qwkcdv.js";import{Uf as t}from"./chunk-qe0sfafy.js";import{uh as u}from"./chunk-87x607rz.js";import"./chunk-9w5rx0fb.js";import"./chunk-wb69d52j.js";import"./chunk-pfn1db1m.js";import"./chunk-h56jxxvj.js";import"./chunk-x36jhtex.js";import"./chunk-c1ypbbka.js";import"./chunk-qnqqrvvs.js";import{$j as m,Uk as y}from"./chunk-3f054f69.js";import{ql as v}from"./chunk-26qt44f1.js";import{Ol as a}from"./chunk-0ke6x10y.js";import"./chunk-meaybtcc.js";import"./chunk-rmsqb6r4.js";import"./chunk-3j7skhxg.js";import"./chunk-4pssh5d3.js";import"./chunk-9dpn4792.js";import"./chunk-pf7cj4jd.js";import"./chunk-9r6bvkp4.js";import"./chunk-amx3x4kd.js";import"./chunk-b50t4jc5.js";import"./chunk-nf8gkxbk.js";import"./chunk-zny2qaqa.js";import"./chunk-9va5eh9s.js";import"./chunk-mkyrg7gt.js";import"./chunk-7v4fzkbb.js";import"./chunk-cqtkxwd8.js";import"./chunk-pk0tytcm.js";import"./chunk-ww8ear80.js";import"./chunk-kyny0t2g.js";import"./chunk-3e8p4a3y.js";import"./chunk-qpm5afdz.js";import"./chunk-jtrcnpm7.js";import"./chunk-gaen9ya4.js";import"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-jv98gw88.js";import"./chunk-jhq5bvhs.js";import"./chunk-xw283h2r.js";import"./chunk-8cty50g7.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import{TG as s}from"./chunk-ag9thqkv.js";import"./chunk-qnv2v02g.js";import"./chunk-7fx6x8x9.js";import"./chunk-0rmmg3g4.js";import{EOL as f}from"os";var M=b({command:"models [provider]",describe:"list all available models",builder:(r)=>{return r.positional("provider",{describe:"provider ID to filter models by",type:"string",array:!1}).option("verbose",{describe:"use more verbose model output (includes metadata like costs)",type:"boolean"}).option("refresh",{describe:"refresh the models cache from models.dev",type:"boolean"})},handler:async(r)=>{if(r.refresh)await v.refresh(!0),t.println(t.Style.TEXT_SUCCESS_BOLD+"Models cache refreshed"+t.Style.TEXT_NORMAL);await a.provide({directory:process.cwd(),async fn(){await u.runPromise(s.gen(function*(){let n=yield*(yield*y.Service).list(),l=(e,o)=>{let i=n[e],d=Object.entries(i.models).sort(([c],[p])=>c.localeCompare(p));for(let[c,p]of d)if(process.stdout.write(`${e}/${c}`),process.stdout.write(f),o)process.stdout.write(JSON.stringify(p,null,2)),process.stdout.write(f)};if(r.provider){let e=m.make(r.provider);if(!n[e]){yield*s.sync(()=>t.error(`Provider not found: ${r.provider}`));return}yield*s.sync(()=>l(e,r.verbose));return}let h=Object.keys(n).sort((e,o)=>{let i=e.startsWith("opencode"),d=o.startsWith("opencode");if(i&&!d)return-1;if(!i&&d)return 1;return e.localeCompare(o)});yield*s.sync(()=>{for(let e of h)l(m.make(e),r.verbose)})}))}})}});export{M as ModelsCommand};
|
package/bundle/chunk-nhaenjw3.js
DELETED
package/bundle/chunk-nhtrt5ec.js
DELETED
package/bundle/chunk-p72n0tfq.js
DELETED
package/bundle/chunk-pq3622ae.js
DELETED
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
// @bun
|
|
2
|
-
import{lq as a,mq as b,nq as c}from"./chunk-dd11kryy.js";import"./chunk-msm3r7ny.js";import"./chunk-e075v4e9.js";import"./chunk-v7ah9gg0.js";import"./chunk-d0m7nbbx.js";import"./chunk-vfj5nwab.js";import"./chunk-7w84hfxs.js";import"./chunk-ym4ydwrz.js";import"./chunk-vmgknvxs.js";import"./chunk-p409grvp.js";import"./chunk-ag9thqkv.js";import"./chunk-0rmmg3g4.js";export{c as makeRuntime,a as attachWith,b as attach};
|
package/bundle/chunk-qatj4h6b.js
DELETED
package/bundle/chunk-qjwfj51e.js
DELETED
package/bundle/chunk-qkg73rs9.js
DELETED