@opencode-ai/core 0.0.0-beta-18050 → 0.0.0-beta-18138
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/dist/account/sql.js +2 -2
- package/dist/agent.js +74 -74
- package/dist/aisdk-native.js +3 -3
- package/dist/aisdk.js +4 -4
- package/dist/app.js +2 -2
- package/dist/bus.js +72 -72
- package/dist/catalog.js +82 -82
- package/dist/chunks/{repository-02dbfq60.js → file-02dbfq60.js} +1 -1
- package/dist/chunks/{repository-19nk26qg.js → file-02s4hv33.js} +6 -6
- package/dist/chunks/{repository-11xbb36n.js → file-0730y5g4.js} +8 -8
- package/dist/chunks/{repository-0b17sr9d.js → file-0b17sr9d.js} +2 -2
- package/dist/chunks/{repository-0kvmztkf.js → file-0kvmztkf.js} +1 -1
- package/dist/chunks/{repository-d11spqme.js → file-0nwp4p60.js} +3 -3
- package/dist/chunks/{repository-y42a42h0.js → file-0qjze07f.js} +8 -8
- package/dist/chunks/{repository-0vgt3zn6.js → file-0vgt3zn6.js} +2 -2
- package/dist/chunks/{repository-m06817f1.js → file-0x72qwf2.js} +13 -13
- package/dist/chunks/{repository-smnxe6n4.js → file-0z1fqjbe.js} +5 -5
- package/dist/chunks/{repository-wqyc30nm.js → file-13eba9z3.js} +7 -7
- package/dist/chunks/{repository-p5dvx6y6.js → file-15fbqbqp.js} +16 -16
- package/dist/chunks/{repository-18pv8fg3.js → file-18pv8fg3.js} +2 -2
- package/dist/chunks/{repository-1a3a2s70.js → file-1a3a2s70.js} +2 -2
- package/dist/chunks/{repository-swj2q685.js → file-1b390eyt.js} +31 -31
- package/dist/chunks/{repository-mrqw8haq.js → file-1etxj66h.js} +27 -27
- package/dist/chunks/{repository-kcsrasp9.js → file-1qe3kv1r.js} +5 -5
- package/dist/chunks/{repository-hdzee9tm.js → file-1z2x4t8z.js} +6 -6
- package/dist/chunks/{repository-ystg2gyf.js → file-24za91nq.js} +4 -4
- package/dist/chunks/{repository-s4hn1693.js → file-2dargkq0.js} +2 -2
- package/dist/chunks/{repository-d86mjvzn.js → file-2dwzgw1w.js} +6 -6
- package/dist/chunks/{repository-tzx1ffr9.js → file-2m5exym4.js} +2 -2
- package/dist/chunks/{repository-2nmyybe0.js → file-2nmyybe0.js} +1 -1
- package/dist/chunks/{repository-2ya5073c.js → file-2ya5073c.js} +1 -1
- package/dist/chunks/{repository-2zf7hxjt.js → file-2zf7hxjt.js} +2 -2
- package/dist/chunks/{repository-37e9hbzs.js → file-37e9hbzs.js} +2 -2
- package/dist/chunks/{repository-858t3z28.js → file-38t3taeq.js} +14 -14
- package/dist/chunks/{repository-3d1t6jqf.js → file-3d1t6jqf.js} +3 -3
- package/dist/chunks/{repository-3g8vftxb.js → file-3g8vftxb.js} +2 -2
- package/dist/chunks/{repository-3gsv1x0v.js → file-3gsv1x0v.js} +2 -2
- package/dist/chunks/file-3mdsecvn.js +88 -0
- package/dist/chunks/{repository-3thh6229.js → file-3thh6229.js} +2 -2
- package/dist/chunks/{repository-h12xmwx7.js → file-44smmzfj.js} +4 -4
- package/dist/chunks/{repository-mb58nrky.js → file-46a8q1c3.js} +5 -5
- package/dist/chunks/{repository-4j7te1s0.js → file-4j7te1s0.js} +2 -2
- package/dist/chunks/{repository-4s2xwh5d.js → file-4s2xwh5d.js} +3 -3
- package/dist/chunks/{repository-8j59qhj0.js → file-4twc66gs.js} +4 -4
- package/dist/chunks/{repository-4zzdwbaz.js → file-4zzdwbaz.js} +2 -2
- package/dist/chunks/{repository-50jxp3hw.js → file-50jxp3hw.js} +1 -1
- package/dist/chunks/{repository-50qcmj3d.js → file-50qcmj3d.js} +2 -2
- package/dist/chunks/{repository-947javjk.js → file-50rqman0.js} +5 -5
- package/dist/chunks/{repository-57tzwnz4.js → file-57tzwnz4.js} +1 -1
- package/dist/chunks/{repository-58xdvehb.js → file-58xdvehb.js} +1 -1
- package/dist/chunks/{repository-5fe026tx.js → file-5fe026tx.js} +3 -3
- package/dist/chunks/{repository-6yx85d7j.js → file-5h5k77cm.js} +4 -4
- package/dist/chunks/{repository-017q37t7.js → file-5qa0fscy.js} +9 -9
- package/dist/chunks/{repository-5rs65q6p.js → file-5rs65q6p.js} +1 -1
- package/dist/chunks/{repository-5vcssjzn.js → file-5vcssjzn.js} +1 -1
- package/dist/chunks/{repository-5xrsrne4.js → file-5xrsrne4.js} +3 -3
- package/dist/chunks/{repository-65re92qg.js → file-65re92qg.js} +2 -2
- package/dist/chunks/{repository-j5hrhx3x.js → file-689gj8vg.js} +5 -5
- package/dist/chunks/{repository-hyaje1vk.js → file-68x9ed4b.js} +15 -15
- package/dist/chunks/{repository-gzbvfwf2.js → file-6embh6xw.js} +13 -13
- package/dist/chunks/{repository-6ky7rqk7.js → file-6ky7rqk7.js} +1 -1
- package/dist/chunks/{repository-6q0m15b3.js → file-6q0m15b3.js} +1 -1
- package/dist/chunks/{repository-gnbga0wc.js → file-6rhax1m5.js} +17 -17
- package/dist/chunks/{repository-e1jzrz0h.js → file-6tyekgkq.js} +8 -8
- package/dist/chunks/{repository-6x98y149.js → file-6x98y149.js} +2 -2
- package/dist/chunks/{repository-epzx4wh3.js → file-7f8kqfqc.js} +84 -9
- package/dist/chunks/{repository-7gqqz1s8.js → file-7gqqz1s8.js} +1 -1
- package/dist/chunks/{repository-81gd7d42.js → file-7khw64yh.js} +5 -5
- package/dist/chunks/{repository-7mrpdsq5.js → file-7mrpdsq5.js} +1 -1
- package/dist/chunks/{repository-7wcmqxrc.js → file-7wcmqxrc.js} +1 -1
- package/dist/chunks/{repository-mg0wjpxp.js → file-80vfrdzz.js} +17 -17
- package/dist/chunks/{repository-1x9t7cer.js → file-818cdpwq.js} +40 -40
- package/dist/chunks/{repository-88jbfw8z.js → file-88jbfw8z.js} +2 -2
- package/dist/chunks/{repository-hsyk7kfz.js → file-8bkmtpp6.js} +5 -5
- package/dist/chunks/{repository-8bqpm1yy.js → file-8bqpm1yy.js} +2 -2
- package/dist/chunks/{repository-fqkd4f6m.js → file-8etkm1gw.js} +12 -12
- package/dist/chunks/{repository-8gp1tmat.js → file-8gp1tmat.js} +3 -3
- package/dist/chunks/file-8rpfd2h6.js +6 -0
- package/dist/chunks/{repository-fvqaa73j.js → file-8sjpk5tw.js} +4 -4
- package/dist/chunks/{repository-8v47shgf.js → file-8v47shgf.js} +2 -2
- package/dist/chunks/{repository-qndqqkjp.js → file-90v3h0sr.js} +3 -3
- package/dist/chunks/{repository-999qd968.js → file-999qd968.js} +1 -1
- package/dist/chunks/{repository-7fr2g77j.js → file-9b76fep3.js} +6 -6
- package/dist/chunks/{repository-6pggz8rq.js → file-9ee5n1v5.js} +3 -3
- package/dist/chunks/{repository-9f0rnpkn.js → file-9f0rnpkn.js} +1 -1
- package/dist/chunks/{repository-kt73e9zh.js → file-9m4hsa37.js} +3 -3
- package/dist/chunks/{repository-y0vpjt24.js → file-9ns1xgcj.js} +3 -3
- package/dist/chunks/{repository-9p8mhgdp.js → file-9p8mhgdp.js} +1 -1
- package/dist/chunks/{repository-dpsnt732.js → file-9s93m60e.js} +48 -17
- package/dist/chunks/{repository-3a4x8zhx.js → file-9x3tbq7j.js} +19 -17
- package/dist/chunks/{repository-rn8rvmdr.js → file-9y1a5a00.js} +3 -3
- package/dist/chunks/{repository-g5f6jqvg.js → file-a230eh9a.js} +7 -7
- package/dist/chunks/{repository-bh2zsv8s.js → file-agc8qws7.js} +3 -3
- package/dist/chunks/{repository-yznwxyzd.js → file-an4m9hpw.js} +12 -12
- package/dist/chunks/{repository-ayfwnm78.js → file-ayfwnm78.js} +2 -2
- package/dist/chunks/{repository-b7hsw5bk.js → file-b7hsw5bk.js} +3 -3
- package/dist/chunks/{repository-34cvvbhq.js → file-b8519c25.js} +90 -90
- package/dist/chunks/{repository-b9cs3r7z.js → file-be8mxdgp.js} +6 -6
- package/dist/chunks/{repository-bh1wr8rq.js → file-bh1wr8rq.js} +2 -2
- package/dist/chunks/{repository-wtgj0n4x.js → file-bh4g4m9b.js} +11 -11
- package/dist/chunks/file-bjwj8hwv.js +7 -0
- package/dist/chunks/{repository-nzmxk4x3.js → file-bspa06mt.js} +5 -5
- package/dist/chunks/{repository-0a22mhbv.js → file-bss53per.js} +10 -10
- package/dist/chunks/{repository-byab506k.js → file-byab506k.js} +1 -1
- package/dist/chunks/{repository-c4wcb9vc.js → file-c4wcb9vc.js} +2 -2
- package/dist/chunks/{repository-jvjpc9xb.js → file-c6vmycfq.js} +31 -31
- package/dist/chunks/{repository-c9tk9ghs.js → file-c9tk9ghs.js} +2 -2
- package/dist/chunks/{repository-dsv9hv0k.js → file-chjbvzpp.js} +2 -2
- package/dist/chunks/{repository-cke3skfe.js → file-cke3skfe.js} +3 -3
- package/dist/chunks/{repository-cve546b2.js → file-cve546b2.js} +2 -2
- package/dist/chunks/{repository-cz3dkvcz.js → file-cz3dkvcz.js} +1 -1
- package/dist/chunks/{repository-d2gk9vpf.js → file-d2gk9vpf.js} +2 -2
- package/dist/chunks/{repository-943c5s14.js → file-d68fvrxq.js} +3 -3
- package/dist/chunks/{repository-7r0jfg0p.js → file-ddh4578g.js} +10 -10
- package/dist/chunks/{repository-x8gepb8z.js → file-dga9pvfg.js} +10 -10
- package/dist/chunks/{repository-dhphtf1x.js → file-dhphtf1x.js} +1 -1
- package/dist/chunks/{repository-ksyd53em.js → file-dj7k5g3p.js} +4 -4
- package/dist/chunks/{repository-djkt4gex.js → file-djkt4gex.js} +1 -1
- package/dist/chunks/{repository-dyrphakh.js → file-dyrphakh.js} +2 -2
- package/dist/chunks/{repository-xk7fbn0s.js → file-dzhyjawd.js} +2 -2
- package/dist/chunks/{repository-e1z9a0ts.js → file-e1z9a0ts.js} +2 -2
- package/dist/chunks/{repository-xa15jg7e.js → file-e49vbhvs.js} +6 -6
- package/dist/chunks/{repository-ec8vrfw5.js → file-ec8vrfw5.js} +1 -1
- package/dist/chunks/{repository-hyjdhe1s.js → file-eczrazwx.js} +4 -4
- package/dist/chunks/{repository-dbj39srv.js → file-eekh0m04.js} +42 -15
- package/dist/chunks/{repository-fhgzb35b.js → file-ek082he4.js} +3 -3
- package/dist/chunks/{repository-7dx1jgde.js → file-ekbp86xr.js} +2 -2
- package/dist/chunks/{repository-epzxjdf4.js → file-epzxjdf4.js} +4 -4
- package/dist/chunks/{repository-0rz83w8e.js → file-f0jkyhbh.js} +3 -3
- package/dist/chunks/{repository-ztjk4rav.js → file-f11jbhcb.js} +6 -6
- package/dist/chunks/{repository-24ferkdr.js → file-f1yj8g4w.js} +5 -5
- package/dist/chunks/{repository-tj4mvbx6.js → file-f20jmm2a.js} +2 -2
- package/dist/chunks/{repository-f9wt0tjw.js → file-f9wt0tjw.js} +2 -2
- package/dist/chunks/{repository-p27xxkqg.js → file-fb7nfzf2.js} +10 -10
- package/dist/chunks/{repository-dq1vq3k8.js → file-fba53602.js} +3 -3
- package/dist/chunks/{repository-arstc7zy.js → file-fdbvb5rr.js} +3 -3
- package/dist/chunks/{repository-chgqh167.js → file-fsq7r0g2.js} +8 -8
- package/dist/chunks/{repository-8zc0dyns.js → file-fxf1jxfh.js} +4 -4
- package/dist/chunks/{repository-60srq7mz.js → file-g3j9vny8.js} +150 -150
- package/dist/chunks/{repository-g7t6p8r2.js → file-g7t6p8r2.js} +1 -1
- package/dist/chunks/{repository-gcay93cp.js → file-gcay93cp.js} +1 -1
- package/dist/chunks/{repository-gd2xppx8.js → file-gd2xppx8.js} +1 -1
- package/dist/chunks/{repository-2tkyg9cf.js → file-gdza155x.js} +9 -9
- package/dist/chunks/{repository-gg8gy1ab.js → file-gg8gy1ab.js} +2 -2
- package/dist/chunks/{repository-1w9ckf05.js → file-gnc2830c.js} +13 -13
- package/dist/chunks/{repository-sd2erey0.js → file-grn88jbf.js} +4 -4
- package/dist/chunks/{repository-h75w0mx4.js → file-gzqp63az.js} +4 -4
- package/dist/chunks/{repository-hhxt27np.js → file-hhxt27np.js} +2 -2
- package/dist/chunks/{repository-bpdapyyw.js → file-hkmb5v6c.js} +8 -6
- package/dist/chunks/{repository-hp6rpdnc.js → file-hp6rpdnc.js} +1 -1
- package/dist/chunks/file-hv9r99ch.js +165 -0
- package/dist/chunks/{repository-44ct9h70.js → file-hwcs0txm.js} +10 -10
- package/dist/chunks/{repository-swbxkzfg.js → file-j5q8scqt.js} +13 -13
- package/dist/chunks/{repository-yp2vd71t.js → file-j7nk5ghy.js} +6 -6
- package/dist/chunks/{repository-sxnhh4fa.js → file-j832jmcd.js} +24 -24
- package/dist/chunks/{repository-gxwcshd7.js → file-j9xw7bp8.js} +96 -114
- package/dist/chunks/{repository-s9m64ven.js → file-jdmzymbb.js} +3 -3
- package/dist/chunks/{repository-5mt7txy3.js → file-jhqfhgc9.js} +21 -21
- package/dist/chunks/{repository-k1qbhf8n.js → file-jqggfpj6.js} +6 -6
- package/dist/chunks/{repository-jssy2dr3.js → file-jssy2dr3.js} +2 -2
- package/dist/chunks/{repository-8x7rdb4e.js → file-jxrzxbza.js} +6 -6
- package/dist/chunks/{repository-k42t1tha.js → file-k42t1tha.js} +2 -2
- package/dist/chunks/{repository-z82089tt.js → file-kav4v9q9.js} +6 -6
- package/dist/chunks/{repository-kg1345f7.js → file-kg1345f7.js} +1 -1
- package/dist/chunks/{repository-kp1t5rcy.js → file-kp1t5rcy.js} +1 -1
- package/dist/chunks/{repository-yz541yvf.js → file-m2wgpszj.js} +89 -89
- package/dist/chunks/{repository-mf0hyk7z.js → file-mf0hyk7z.js} +1 -1
- package/dist/chunks/{repository-mh28new4.js → file-mh28new4.js} +2 -2
- package/dist/chunks/{repository-mnb85w6b.js → file-mnb85w6b.js} +2 -2
- package/dist/chunks/{repository-anfsarxw.js → file-mvcs28cp.js} +3 -3
- package/dist/chunks/{repository-mxvw03gv.js → file-mxvw03gv.js} +1 -1
- package/dist/chunks/{repository-abqeyaxt.js → file-n4wxsfqz.js} +1 -1
- package/dist/chunks/{repository-nesb2rcz.js → file-nesb2rcz.js} +2 -2
- package/dist/chunks/{repository-nwbnyeam.js → file-nqy1sr3e.js} +3 -3
- package/dist/chunks/{repository-nr76rjj3.js → file-nr76rjj3.js} +2 -2
- package/dist/chunks/{repository-nrkas8zm.js → file-nrkas8zm.js} +3 -3
- package/dist/chunks/{repository-8jdbkzjk.js → file-nvkf6p6q.js} +8 -8
- package/dist/chunks/{repository-nny22dkj.js → file-nzjfanc8.js} +3 -3
- package/dist/chunks/{repository-nzrjycs5.js → file-nzrjycs5.js} +1 -1
- package/dist/chunks/{repository-e52jcrg1.js → file-nzxr5g83.js} +8 -8
- package/dist/chunks/{repository-kqga9xka.js → file-p0aver5h.js} +4 -4
- package/dist/chunks/{repository-t547ysa6.js → file-p53t4frd.js} +3 -3
- package/dist/chunks/{repository-ke6py03n.js → file-pbew5wz2.js} +6 -6
- package/dist/chunks/{repository-pfqehjmy.js → file-pfqehjmy.js} +2 -2
- package/dist/chunks/{repository-aqg9wnx6.js → file-pjywn1fy.js} +17 -2
- package/dist/chunks/{repository-pq4b4pqk.js → file-pq4b4pqk.js} +2 -2
- package/dist/chunks/{repository-qk37kkpq.js → file-q07sa4nq.js} +6 -6
- package/dist/chunks/{repository-qe0d689s.js → file-qe0d689s.js} +2 -2
- package/dist/chunks/{repository-p1adn62v.js → file-qf7y470v.js} +16 -16
- package/dist/chunks/{repository-qhdqjp31.js → file-qhdqjp31.js} +1 -1
- package/dist/chunks/{repository-phz4zzmh.js → file-qvmc37x7.js} +6 -6
- package/dist/chunks/{repository-hns32vgv.js → file-qwqfjq69.js} +4 -4
- package/dist/chunks/{repository-r3k9abhd.js → file-r3k9abhd.js} +2 -2
- package/dist/chunks/{repository-5285pnbc.js → file-r6mxy2q5.js} +15 -15
- package/dist/chunks/{repository-rwn7vgmr.js → file-raes8n7n.js} +11 -11
- package/dist/chunks/{repository-rahat93a.js → file-rahat93a.js} +1 -1
- package/dist/chunks/{repository-rfbm65k8.js → file-rfbm65k8.js} +1 -1
- package/dist/chunks/{repository-rn9r0ddn.js → file-rn9r0ddn.js} +2 -2
- package/dist/chunks/{repository-mbqs7b6g.js → file-rr0y3aaw.js} +11 -11
- package/dist/chunks/{repository-21keg6t3.js → file-rrm7rp2s.js} +5 -5
- package/dist/chunks/{repository-y5tfqx3j.js → file-rtsrywk9.js} +5 -5
- package/dist/chunks/{repository-wf2jn9n2.js → file-rttr42xr.js} +8 -8
- package/dist/chunks/{repository-rvfvac9x.js → file-rvfvac9x.js} +2 -1
- package/dist/chunks/{repository-277s4me9.js → file-rxrnqndq.js} +4 -4
- package/dist/chunks/{repository-s33fw6zm.js → file-s33fw6zm.js} +1 -1
- package/dist/chunks/{repository-72jhjh3r.js → file-s5tvk6n9.js} +5 -5
- package/dist/chunks/{repository-bm59mrh0.js → file-sghkxya1.js} +4 -4
- package/dist/chunks/{repository-smpeg8c9.js → file-smpeg8c9.js} +2 -2
- package/dist/chunks/{repository-r0as8gk2.js → file-sp1xf5gz.js} +44 -44
- package/dist/chunks/{repository-3n5gm0pn.js → file-sp5dp9w1.js} +7 -7
- package/dist/chunks/{repository-sw84ckhj.js → file-sw84ckhj.js} +1 -1
- package/dist/chunks/{repository-xw6an1q3.js → file-sxa995r9.js} +7 -7
- package/dist/chunks/{repository-t14kykx1.js → file-t14kykx1.js} +1 -1
- package/dist/chunks/{repository-tb33ng7x.js → file-tb33ng7x.js} +2 -2
- package/dist/chunks/{repository-tcptxgyq.js → file-tcptxgyq.js} +1 -1
- package/dist/chunks/{repository-16w0zs7e.js → file-te878rn7.js} +10 -10
- package/dist/chunks/{repository-0y0jz5bf.js → file-tejkswdv.js} +66 -66
- package/dist/chunks/{repository-rr2e1jn9.js → file-tezq3yeg.js} +4 -4
- package/dist/chunks/{repository-thstd87d.js → file-thstd87d.js} +1 -1
- package/dist/chunks/{repository-tjjf1q77.js → file-tjjf1q77.js} +1 -1
- package/dist/chunks/{repository-p4sm5gct.js → file-trfqt5dm.js} +2 -2
- package/dist/chunks/{repository-y1exgf6k.js → file-txnbwzh0.js} +3 -3
- package/dist/chunks/{repository-v2wshkax.js → file-v2wshkax.js} +1 -1
- package/dist/chunks/{repository-v80zsxnb.js → file-v80zsxnb.js} +1 -1
- package/dist/chunks/{repository-rkk4wksm.js → file-v8tbfjf6.js} +4 -4
- package/dist/chunks/{repository-v972xay6.js → file-v972xay6.js} +1 -1
- package/dist/chunks/{repository-v9bfv94f.js → file-v9bfv94f.js} +1 -1
- package/dist/chunks/{repository-vcwr2vpf.js → file-vcwr2vpf.js} +1 -1
- package/dist/chunks/{repository-vqbmgfq1.js → file-vqbmgfq1.js} +3 -3
- package/dist/chunks/{repository-vz89hfgr.js → file-vz89hfgr.js} +1 -1
- package/dist/chunks/{repository-ftfem5qt.js → file-w0rc0xfv.js} +1 -1
- package/dist/chunks/{repository-wbkt8qpj.js → file-wbkt8qpj.js} +1 -1
- package/dist/chunks/{repository-wd268jeg.js → file-wd268jeg.js} +1 -1
- package/dist/chunks/{repository-zvp2sgsa.js → file-wg27158t.js} +5 -5
- package/dist/chunks/{repository-t3sp3k68.js → file-wgf751x2.js} +18 -17
- package/dist/chunks/{repository-wmxdh12w.js → file-wmxdh12w.js} +1 -1
- package/dist/chunks/{repository-wps8gh8n.js → file-wps8gh8n.js} +2 -2
- package/dist/chunks/{repository-wqtnns9x.js → file-wsykb36d.js} +8 -8
- package/dist/chunks/{repository-6n27mqqm.js → file-wwawtb0h.js} +3 -3
- package/dist/chunks/{repository-84g8ahdh.js → file-wybrermd.js} +6 -6
- package/dist/chunks/{repository-thqb17t0.js → file-x6amy92w.js} +3 -3
- package/dist/chunks/{repository-47dnqmwe.js → file-xa99tsrk.js} +14 -14
- package/dist/chunks/{repository-xczfw7dq.js → file-xczfw7dq.js} +1 -1
- package/dist/chunks/{repository-cb498dyj.js → file-xg2fpfcy.js} +5 -5
- package/dist/chunks/{repository-xh2svg4f.js → file-xgkf7vmy.js} +3 -3
- package/dist/chunks/{repository-xgv25zxy.js → file-xgv25zxy.js} +1 -1
- package/dist/chunks/{repository-yh6mrny0.js → file-xm2seg7a.js} +3 -3
- package/dist/chunks/{repository-b0svqw20.js → file-xpc5hpjr.js} +9 -9
- package/dist/chunks/{repository-xwftk1fd.js → file-xwftk1fd.js} +2 -2
- package/dist/chunks/{repository-xxpvz42q.js → file-xxpvz42q.js} +3 -3
- package/dist/chunks/{repository-h1jmef1e.js → file-xzt9apj6.js} +3 -3
- package/dist/chunks/{repository-y0x38cee.js → file-y0x38cee.js} +1 -1
- package/dist/chunks/{repository-y198y2ra.js → file-y198y2ra.js} +1 -1
- package/dist/chunks/{repository-cbf6nhmm.js → file-y38bn8w1.js} +9 -9
- package/dist/chunks/{repository-qgznhsmr.js → file-y3a4dyqw.js} +5 -5
- package/dist/chunks/{repository-hs9wj59g.js → file-y3zr4m7f.js} +5 -5
- package/dist/chunks/{repository-y67x6rf6.js → file-y67x6rf6.js} +1 -1
- package/dist/chunks/{repository-y980s7ka.js → file-y980s7ka.js} +3 -3
- package/dist/chunks/{repository-ybhfpy64.js → file-ybhfpy64.js} +2 -2
- package/dist/chunks/{repository-ks3wexae.js → file-yc6egy2b.js} +8 -8
- package/dist/chunks/{repository-yf0knd5z.js → file-yf0knd5z.js} +2 -2
- package/dist/chunks/{repository-ygy0xbqa.js → file-ygy0xbqa.js} +3 -3
- package/dist/chunks/{repository-700nnqs0.js → file-yqhmb5qj.js} +4 -4
- package/dist/chunks/{repository-zbqqnp0n.js → file-zbqqnp0n.js} +1 -1
- package/dist/chunks/{repository-zdkg1k91.js → file-zdkg1k91.js} +1 -1
- package/dist/chunks/{repository-ym25hnj7.js → file-zgp9b4wn.js} +30 -30
- package/dist/chunks/{repository-cpqj333v.js → file-zvvvtv47.js} +7 -7
- package/dist/chunks/{repository-zxcy6vhn.js → file-zxcy6vhn.js} +1 -1
- package/dist/chunks/{repository-zxe9jjhn.js → file-zxe9jjhn.js} +2 -2
- package/dist/codemode/catalog.js +2 -2
- package/dist/codemode/instructions.js +4 -4
- package/dist/codemode/tool.js +3 -3
- package/dist/command.js +78 -102
- package/dist/config/markdown.js +2 -2
- package/dist/config/normalize.js +20 -20
- package/dist/config/plugin/agent.js +133 -133
- package/dist/config/plugin/command.js +117 -130
- package/dist/config/plugin/compaction.js +169 -169
- package/dist/config/plugin/entry-observer.js +113 -113
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +129 -129
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +115 -115
- package/dist/config/plugin/provider.js +114 -114
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +106 -106
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +113 -113
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +114 -114
- package/dist/config/variable.js +4 -4
- package/dist/config.js +112 -112
- package/dist/credential/sql.js +3 -3
- package/dist/credential.js +72 -72
- package/dist/database/database.js +69 -69
- package/dist/database/drizzle/effect-sqlite/driver.js +16 -16
- package/dist/database/drizzle/effect-sqlite/index.js +16 -16
- package/dist/database/drizzle/effect-sqlite/migrator.js +15 -15
- package/dist/database/drizzle/effect-sqlite/session.js +15 -15
- package/dist/database/drizzle/index.js +20 -20
- package/dist/database/drizzle/internal/drizzle-utils.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/count.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/db.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/delete.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/index.js +19 -19
- package/dist/database/drizzle/sqlite-core/effect/insert.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/query.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/raw.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/select.js +3 -3
- package/dist/database/drizzle/sqlite-core/effect/session.js +14 -14
- package/dist/database/drizzle/sqlite-core/effect/update.js +3 -3
- package/dist/database/drizzle/up-migrations/effect-sqlite.js +4 -4
- package/dist/database/drizzle/up-migrations/sqlite.js +2 -2
- package/dist/database/drizzle/up-migrations/utils.js +2 -2
- package/dist/database/drizzle.js +21 -21
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +2 -2
- package/dist/database/migration/20260211171708_add_project_commands.js +2 -2
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +2 -2
- package/dist/database/migration/20260225215848_workspace.js +2 -2
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +2 -2
- package/dist/database/migration/20260228203230_blue_harpoon.js +2 -2
- package/dist/database/migration/20260303231226_add_workspace_fields.js +2 -2
- package/dist/database/migration/20260309230000_move_org_to_state.js +2 -2
- package/dist/database/migration/20260312043431_session_message_cursor.js +2 -2
- package/dist/database/migration/20260323234822_events.js +2 -2
- package/dist/database/migration/20260410174513_workspace-name.js +2 -2
- package/dist/database/migration/20260413175956_chief_energizer.js +2 -2
- package/dist/database/migration/20260423070820_add_icon_url_override.js +2 -2
- package/dist/database/migration/20260427172553_slow_nightmare.js +2 -2
- package/dist/database/migration/20260428004200_add_session_path.js +2 -2
- package/dist/database/migration/20260501142318_next_venus.js +2 -2
- package/dist/database/migration/20260504145000_add_sync_owner.js +2 -2
- package/dist/database/migration/20260507164347_add_workspace_time.js +2 -2
- package/dist/database/migration/20260510033149_session_usage.js +2 -2
- package/dist/database/migration/20260511000411_data_migration_state.js +2 -2
- package/dist/database/migration/20260511173437_session-metadata.js +2 -2
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +2 -2
- package/dist/database/migration/20260601202201_amazing_prowler.js +2 -2
- package/dist/database/migration/20260602002951_lowly_union_jack.js +2 -2
- package/dist/database/migration/20260602182828_add_project_directories.js +2 -2
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +2 -2
- package/dist/database/migration/20260603040000_session_message_projection_order.js +2 -2
- package/dist/database/migration/20260603141458_session_input_inbox.js +2 -2
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +2 -2
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +2 -2
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +2 -2
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +2 -2
- package/dist/database/migration/20260611035744_credential.js +2 -2
- package/dist/database/migration/20260611192811_lush_chimera.js +2 -2
- package/dist/database/migration/20260612174303_project_dir_strategy.js +2 -2
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +2 -2
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +2 -2
- package/dist/database/migration/20260622202450_simplify_session_input.js +2 -2
- package/dist/database/migration/20260804233008_loose_psylocke.js +2 -2
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +2 -2
- package/dist/database/migration/20260808023530_workspace_domain.js +2 -2
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +2 -2
- package/dist/database/migration/20260812181746_session_inbox.js +2 -2
- package/dist/database/migration/20260812213948_worktree.js +2 -2
- package/dist/database/migration/20260819222447_session_viewed_state.js +2 -2
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +2 -2
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +3 -3
- package/dist/database/schema.gen.js +2 -2
- package/dist/database/schema.sql.js +2 -2
- package/dist/database/sqlite.bun.js +2 -2
- package/dist/database/sqlite.js +2 -2
- package/dist/database/sqlite.node.js +2 -2
- package/dist/database/sqlite.workerd.js +2 -2
- package/dist/database/v1-migration.bun.js +88 -88
- package/dist/database/v1-migration.js +2 -2
- package/dist/database/v1-migration.noop.js +1 -1
- package/dist/effect/app-node-builder.js +330 -330
- package/dist/effect/app-node-platform.js +3 -3
- package/dist/effect/keyed-mutex.js +2 -2
- package/dist/effect/websocket-constructor.js +2 -2
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +90 -90
- package/dist/environment/exec-defaults.js +3 -3
- package/dist/environment/files.js +2 -2
- package/dist/environment/index.js +90 -90
- package/dist/environment/local.js +3 -3
- package/dist/environment/memory.js +3 -3
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +2 -2
- package/dist/event-logger.js +72 -72
- package/dist/file-mutation.js +91 -91
- package/dist/file-retention.js +2 -2
- package/dist/file.js +2 -2
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +2 -2
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +3 -3
- package/dist/filesystem/location-watcher.js +305 -305
- package/dist/filesystem/protected.js +2 -2
- package/dist/filesystem/search.js +95 -95
- package/dist/filesystem/watcher-binding.js +2 -2
- package/dist/filesystem/watcher.js +4 -4
- package/dist/filesystem.js +95 -95
- package/dist/form.js +73 -73
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +84 -84
- package/dist/generate.js +88 -88
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +2 -2
- package/dist/github-copilot/chat/get-response-metadata.js +2 -2
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +2 -2
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +2 -2
- package/dist/github-copilot/copilot-provider.js +20 -20
- package/dist/github-copilot/models.js +4 -4
- package/dist/github-copilot/openai-compatible-error.js +2 -2
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +2 -2
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +2 -2
- package/dist/github-copilot/responses/openai-error.js +2 -2
- package/dist/github-copilot/responses/openai-responses-language-model.js +11 -11
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +7 -7
- package/dist/github-copilot/responses/tool/code-interpreter.js +2 -2
- package/dist/github-copilot/responses/tool/file-search.js +2 -2
- package/dist/github-copilot/responses/tool/image-generation.js +2 -2
- package/dist/github-copilot/responses/tool/web-search-preview.js +2 -2
- package/dist/github-copilot/responses/tool/web-search.js +2 -2
- package/dist/id/id.js +2 -2
- package/dist/image/photon-wasm.bun.js +1 -1
- package/dist/image/photon-wasm.node.js +1 -1
- package/dist/image/photon-wasm.workerd.js +1 -1
- package/dist/image/photon.js +97 -97
- package/dist/image.js +97 -97
- package/dist/instruction-discovery.js +76 -76
- package/dist/instructions/builtins.js +85 -85
- package/dist/instructions/index.js +2 -2
- package/dist/integration/connection.js +2 -2
- package/dist/integration.js +79 -79
- package/dist/job.js +4 -4
- package/dist/kv/sql.js +3 -3
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +84 -84
- package/dist/location-mutation.js +83 -83
- package/dist/location-service-map.js +83 -83
- package/dist/location-services.js +330 -330
- package/dist/location.js +82 -82
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +99 -97
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +2 -2
- package/dist/mcp/stdio.js +91 -91
- package/dist/mime.js +2 -2
- package/dist/model-resolver.js +85 -85
- package/dist/model.js +3 -3
- package/dist/models-dev.js +79 -79
- package/dist/oauth/page.js +2 -2
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +6 -6
- package/dist/permission.js +103 -103
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +98 -83
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +166 -166
- package/dist/plugin/internal.js +299 -299
- package/dist/plugin/mcp-codemode-exclusion.js +2 -2
- package/dist/plugin/models-dev.js +80 -80
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +2 -2
- package/dist/plugin/provider/alibaba.js +3 -3
- package/dist/plugin/provider/amazon-bedrock.js +3 -3
- package/dist/plugin/provider/anthropic.js +3 -3
- package/dist/plugin/provider/azure.js +120 -120
- package/dist/plugin/provider/cerebras.js +3 -3
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +3 -3
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/deepinfra.js +3 -3
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +2 -2
- package/dist/plugin/provider/gateway.js +3 -3
- package/dist/plugin/provider/github-copilot.js +86 -86
- package/dist/plugin/provider/gitlab.js +4 -4
- package/dist/plugin/provider/google-vertex.js +3 -3
- package/dist/plugin/provider/groq.js +3 -3
- package/dist/plugin/provider/kilo.js +3 -3
- package/dist/plugin/provider/llmgateway.js +81 -81
- package/dist/plugin/provider/lmstudio.js +113 -113
- package/dist/plugin/provider/mistral.js +3 -3
- package/dist/plugin/provider/nvidia.js +3 -3
- package/dist/plugin/provider/ollama.js +113 -113
- package/dist/plugin/provider/openai-compatible.js +2 -2
- package/dist/plugin/provider/openai.js +83 -83
- package/dist/plugin/provider/opencode.js +97 -97
- package/dist/plugin/provider/openrouter.js +4 -4
- package/dist/plugin/provider/perplexity.js +3 -3
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/snowflake-cortex.js +3 -3
- package/dist/plugin/provider/togetherai.js +3 -3
- package/dist/plugin/provider/venice.js +3 -3
- package/dist/plugin/provider/vercel.js +3 -3
- package/dist/plugin/provider/vllm.js +113 -113
- package/dist/plugin/provider/xai.js +82 -82
- package/dist/plugin/provider/zenmux.js +3 -3
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/runtime.js +155 -155
- package/dist/plugin/sdk.js +73 -73
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/supervisor-service.js +2 -2
- package/dist/plugin/supervisor.js +304 -304
- package/dist/plugin/system-prompt.js +2 -2
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +3 -3
- package/dist/plugin.js +167 -167
- package/dist/project/schema.js +3 -3
- package/dist/project/sql.js +5 -5
- package/dist/project.js +81 -81
- package/dist/provider.js +2 -2
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/pty.bun.js +1 -1
- package/dist/pty/pty.node.js +1 -1
- package/dist/pty/pty.workerd.js +1 -1
- package/dist/pty/schema.js +2 -2
- package/dist/pty/ticket.js +74 -74
- package/dist/pty.js +88 -88
- package/dist/reference/instructions.js +81 -81
- package/dist/reference.js +79 -79
- package/dist/repository-cache.js +7 -7
- package/dist/repository.js +2 -2
- package/dist/ripgrep/binary.js +3 -3
- package/dist/ripgrep.js +93 -93
- package/dist/schema.js +2 -2
- package/dist/session/compaction.js +141 -141
- package/dist/session/context.js +311 -311
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/event.js +2 -2
- package/dist/session/execution/restart.js +119 -119
- package/dist/session/execution.js +119 -119
- package/dist/session/generate-node.js +312 -312
- package/dist/session/generate.js +2 -2
- package/dist/session/history.js +81 -81
- package/dist/session/inbox.js +81 -81
- package/dist/session/info.js +91 -91
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +100 -100
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +4 -4
- package/dist/session/model-request.js +137 -137
- package/dist/session/model-transport.js +5 -5
- package/dist/session/projector.js +94 -94
- package/dist/session/prompt-cache-diagnostics.js +2 -2
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +2 -2
- package/dist/session/runner/index.js +88 -88
- package/dist/session/runner/llm.js +317 -317
- package/dist/session/runner/max-steps.js +2 -2
- package/dist/session/runner/model.js +87 -87
- package/dist/session/runner/publish-llm-event.js +4 -4
- package/dist/session/runner/retry.js +76 -76
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +4 -4
- package/dist/session/sql.js +6 -6
- package/dist/session/stats.js +375 -0
- package/dist/session/store.js +99 -99
- package/dist/session/system-prompt.js +2 -2
- package/dist/session/title.js +139 -139
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +160 -161
- package/dist/session/usage.js +2 -2
- package/dist/session.js +155 -156
- package/dist/shell/parse.js +5 -5
- package/dist/shell/parser-wasm.bun.js +1 -1
- package/dist/shell/parser-wasm.node.js +1 -1
- package/dist/shell/parser-wasm.workerd.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +4 -4
- package/dist/shell.js +98 -98
- package/dist/skill/discovery.js +3 -3
- package/dist/skill/instructions.js +105 -105
- package/dist/skill.js +104 -104
- package/dist/snapshot.js +84 -84
- package/dist/state.js +2 -2
- package/dist/tool/html-markdown.js +2 -2
- package/dist/tool/http-body.js +2 -2
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +113 -113
- package/dist/tool/plugin/file-diff.js +2 -2
- package/dist/tool/plugin/glob.js +115 -115
- package/dist/tool/plugin/grep.js +115 -115
- package/dist/tool/plugin/patch.js +113 -113
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +118 -118
- package/dist/tool/plugin/shell.js +185 -185
- package/dist/tool/plugin/skill.js +105 -105
- package/dist/tool/plugin/subagent.js +182 -182
- package/dist/tool/plugin/webfetch.js +106 -106
- package/dist/tool/plugin/websearch.js +108 -108
- package/dist/tool/plugin/write.js +113 -113
- package/dist/tool/read-filesystem.js +97 -97
- package/dist/tool/runtime.js +2 -2
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +119 -119
- package/dist/types/command.d.ts +23 -65
- package/dist/types/config/plugin/command.d.ts +4 -1
- package/dist/types/config/plugin/mcp.d.ts +2 -2
- package/dist/types/config/plugin/shell.d.ts +1 -1
- package/dist/types/location-service-map.d.ts +2 -2
- package/dist/types/location-services.d.ts +1 -1
- package/dist/types/mcp/index.d.ts +37 -0
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/plugin/command.d.ts +3 -1
- package/dist/types/plugin/host.d.ts +12 -14
- package/dist/types/plugin/internal.d.ts +3 -3
- package/dist/types/plugin/supervisor.d.ts +1 -1
- package/dist/types/session/execution.d.ts +3 -2
- package/dist/types/session/message.d.ts +1 -1
- package/dist/types/session/revert.d.ts +2 -2
- package/dist/types/session/run-coordinator.d.ts +3 -2
- package/dist/types/session/schema.d.ts +1 -1
- package/dist/types/session/sql.d.ts +2 -2
- package/dist/types/session/stats.d.ts +82 -0
- package/dist/types/session.d.ts +3 -7
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/v1/config/migrate.d.ts +9 -9
- package/dist/types/workspace.d.ts +16 -2
- package/dist/util/array.js +1 -1
- package/dist/util/error.js +2 -2
- package/dist/util/identifier.js +1 -1
- package/dist/util/iife.js +2 -2
- package/dist/util/lazy.js +2 -2
- package/dist/util/process-lock-ffi.bun.js +1 -1
- package/dist/util/process-lock-ffi.node.js +1 -1
- package/dist/util/process-lock-ffi.workerd.js +1 -1
- package/dist/util/process-lock.js +1 -1
- package/dist/util/slug.js +2 -2
- package/dist/util/token.js +2 -2
- package/dist/util/which.js +2 -2
- package/dist/util/wildcard.js +2 -2
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +2 -2
- package/dist/v1/config/config.js +15 -15
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +2 -2
- package/dist/v1/config/layout.js +2 -2
- package/dist/v1/config/lsp.js +2 -2
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +19 -19
- package/dist/v1/config/permission.js +2 -2
- package/dist/v1/config/plugin.js +2 -2
- package/dist/v1/config/provider-options.js +2 -2
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/server.js +3 -3
- package/dist/v1/config/skills.js +2 -2
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/git.js +3 -3
- package/dist/vcs/hg.js +3 -3
- package/dist/vcs/patch.js +2 -2
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +77 -77
- package/dist/wellknown/plugin.js +77 -77
- package/dist/wellknown.js +76 -76
- package/dist/workspace/driver.js +2 -2
- package/dist/workspace/sql.js +2 -2
- package/dist/workspace.js +76 -74
- package/dist/worktree/directory.js +3 -3
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +6 -6
- package/dist/worktree.js +86 -86
- package/package.json +7 -7
- package/dist/chunks/repository-25pxtba7.js +0 -13
- package/dist/chunks/repository-cgggcwed.js +0 -210
- package/dist/chunks/repository-jq8xj4c5.js +0 -93
- package/dist/chunks/repository-y8rs54ne.js +0 -16
- /package/dist/chunks/{repository-0cgt0xh2.js → file-0cgt0xh2.js} +0 -0
- /package/dist/chunks/{repository-0f48qthw.js → file-0f48qthw.js} +0 -0
- /package/dist/chunks/{repository-0zz82cjq.js → file-0zz82cjq.js} +0 -0
- /package/dist/chunks/{repository-1fb7bmpf.js → file-1fb7bmpf.js} +0 -0
- /package/dist/chunks/{repository-1wcz8fvj.js → file-1wcz8fvj.js} +0 -0
- /package/dist/chunks/{repository-2qdx6zz3.js → file-2qdx6zz3.js} +0 -0
- /package/dist/chunks/{repository-39ktntah.js → file-39ktntah.js} +0 -0
- /package/dist/chunks/{repository-3g3rpp2x.js → file-3g3rpp2x.js} +0 -0
- /package/dist/chunks/{repository-3q6gbwmd.js → file-3q6gbwmd.js} +0 -0
- /package/dist/chunks/{repository-3w3ybtfd.js → file-3w3ybtfd.js} +0 -0
- /package/dist/chunks/{repository-47ty4mvs.js → file-47ty4mvs.js} +0 -0
- /package/dist/chunks/{repository-4b2tz2m9.js → file-4b2tz2m9.js} +0 -0
- /package/dist/chunks/{repository-4zg0gww9.js → file-4zg0gww9.js} +0 -0
- /package/dist/chunks/{repository-5a5ch9ts.js → file-5a5ch9ts.js} +0 -0
- /package/dist/chunks/{repository-5va1yh78.js → file-5va1yh78.js} +0 -0
- /package/dist/chunks/{repository-61ek4hj9.js → file-61ek4hj9.js} +0 -0
- /package/dist/chunks/{repository-69qrqpw0.js → file-69qrqpw0.js} +0 -0
- /package/dist/chunks/{repository-6yt963b8.js → file-6yt963b8.js} +0 -0
- /package/dist/chunks/{repository-6zqxzw0a.js → file-6zqxzw0a.js} +0 -0
- /package/dist/chunks/{repository-7n9qwqk4.js → file-7n9qwqk4.js} +0 -0
- /package/dist/chunks/{repository-8nn8kqcn.js → file-8nn8kqcn.js} +0 -0
- /package/dist/chunks/{repository-8sj3ajy5.js → file-8sj3ajy5.js} +0 -0
- /package/dist/chunks/{repository-8w9tzfz1.js → file-8w9tzfz1.js} +0 -0
- /package/dist/chunks/{repository-906y0b6d.js → file-906y0b6d.js} +0 -0
- /package/dist/chunks/{repository-9dct5xhx.js → file-9dct5xhx.js} +0 -0
- /package/dist/chunks/{repository-9sdtsapf.js → file-9sdtsapf.js} +0 -0
- /package/dist/chunks/{repository-a02svayp.js → file-a02svayp.js} +0 -0
- /package/dist/chunks/{repository-a83yvq99.js → file-a83yvq99.js} +0 -0
- /package/dist/chunks/{repository-ayevdmef.js → file-ayevdmef.js} +0 -0
- /package/dist/chunks/{repository-b02txbh8.js → file-b02txbh8.js} +0 -0
- /package/dist/chunks/{repository-bbqs2y60.js → file-bbqs2y60.js} +0 -0
- /package/dist/chunks/{repository-brsh5f65.js → file-brsh5f65.js} +0 -0
- /package/dist/chunks/{repository-bxdhjb3y.js → file-bxdhjb3y.js} +0 -0
- /package/dist/chunks/{repository-c77ad0vh.js → file-c77ad0vh.js} +0 -0
- /package/dist/chunks/{repository-ck5pgha0.js → file-ck5pgha0.js} +0 -0
- /package/dist/chunks/{repository-cm67rqy2.js → file-cm67rqy2.js} +0 -0
- /package/dist/chunks/{repository-df3v2q6j.js → file-df3v2q6j.js} +0 -0
- /package/dist/chunks/{repository-dhcq6c44.js → file-dhcq6c44.js} +0 -0
- /package/dist/chunks/{repository-dht5baf0.js → file-dht5baf0.js} +0 -0
- /package/dist/chunks/{repository-dkmkay92.js → file-dkmkay92.js} +0 -0
- /package/dist/chunks/{repository-ehj9csmv.js → file-ehj9csmv.js} +0 -0
- /package/dist/chunks/{repository-em6xpscd.js → file-em6xpscd.js} +0 -0
- /package/dist/chunks/{repository-emmqknsm.js → file-emmqknsm.js} +0 -0
- /package/dist/chunks/{repository-ezs3tagn.js → file-ezs3tagn.js} +0 -0
- /package/dist/chunks/{repository-f14r7hfz.js → file-f14r7hfz.js} +0 -0
- /package/dist/chunks/{repository-f4cp4g4a.js → file-f4cp4g4a.js} +0 -0
- /package/dist/chunks/{repository-f84sxdqn.js → file-f84sxdqn.js} +0 -0
- /package/dist/chunks/{repository-faypg4r1.js → file-faypg4r1.js} +0 -0
- /package/dist/chunks/{repository-fgbfdq62.js → file-fgbfdq62.js} +0 -0
- /package/dist/chunks/{repository-gd5xeqc2.js → file-gd5xeqc2.js} +0 -0
- /package/dist/chunks/{repository-ghm4673n.js → file-ghm4673n.js} +0 -0
- /package/dist/chunks/{repository-ghwjy7my.js → file-ghwjy7my.js} +0 -0
- /package/dist/chunks/{repository-gy500k2r.js → file-gy500k2r.js} +0 -0
- /package/dist/chunks/{repository-hzeg9cfr.js → file-hzeg9cfr.js} +0 -0
- /package/dist/chunks/{repository-j07kk359.js → file-j07kk359.js} +0 -0
- /package/dist/chunks/{repository-jf35ek5b.js → file-jf35ek5b.js} +0 -0
- /package/dist/chunks/{repository-jve7t217.js → file-jve7t217.js} +0 -0
- /package/dist/chunks/{repository-k3e42drn.js → file-k3e42drn.js} +0 -0
- /package/dist/chunks/{repository-k8b45nas.js → file-k8b45nas.js} +0 -0
- /package/dist/chunks/{repository-kcacmy5c.js → file-kcacmy5c.js} +0 -0
- /package/dist/chunks/{repository-kpdbz7gn.js → file-kpdbz7gn.js} +0 -0
- /package/dist/chunks/{repository-kxy11nzk.js → file-kxy11nzk.js} +0 -0
- /package/dist/chunks/{repository-kyyqvx4s.js → file-kyyqvx4s.js} +0 -0
- /package/dist/chunks/{repository-m8cbvarh.js → file-m8cbvarh.js} +0 -0
- /package/dist/chunks/{repository-ma60vzgv.js → file-ma60vzgv.js} +0 -0
- /package/dist/chunks/{repository-n3m50c2t.js → file-n3m50c2t.js} +0 -0
- /package/dist/chunks/{repository-nkm1m8dz.js → file-nkm1m8dz.js} +0 -0
- /package/dist/chunks/{repository-nsc0c3zb.js → file-nsc0c3zb.js} +0 -0
- /package/dist/chunks/{repository-qaarhjrp.js → file-qaarhjrp.js} +0 -0
- /package/dist/chunks/{repository-qc167nrn.js → file-qc167nrn.js} +0 -0
- /package/dist/chunks/{repository-qp95y4jb.js → file-qp95y4jb.js} +0 -0
- /package/dist/chunks/{repository-r8f4w671.js → file-r8f4w671.js} +0 -0
- /package/dist/chunks/{repository-rdfev9jy.js → file-rdfev9jy.js} +0 -0
- /package/dist/chunks/{repository-s7whb9gt.js → file-s7whb9gt.js} +0 -0
- /package/dist/chunks/{repository-se76j685.js → file-se76j685.js} +0 -0
- /package/dist/chunks/{repository-sem2g21k.js → file-sem2g21k.js} +0 -0
- /package/dist/chunks/{repository-tmb1f636.js → file-tmb1f636.js} +0 -0
- /package/dist/chunks/{repository-ttxf0gsy.js → file-ttxf0gsy.js} +0 -0
- /package/dist/chunks/{repository-tvmhrvfj.js → file-tvmhrvfj.js} +0 -0
- /package/dist/chunks/{repository-v2adqbbe.js → file-v2adqbbe.js} +0 -0
- /package/dist/chunks/{repository-vkvb1sb3.js → file-vkvb1sb3.js} +0 -0
- /package/dist/chunks/{repository-wj4sxzqa.js → file-wj4sxzqa.js} +0 -0
- /package/dist/chunks/{repository-wwntjmk1.js → file-wwntjmk1.js} +0 -0
- /package/dist/chunks/{repository-wyqjaaa5.js → file-wyqjaaa5.js} +0 -0
- /package/dist/chunks/{repository-x4q807cx.js → file-x4q807cx.js} +0 -0
- /package/dist/chunks/{repository-xt0068v8.js → file-xt0068v8.js} +0 -0
- /package/dist/chunks/{repository-yrqrg4vp.js → file-yrqrg4vp.js} +0 -0
- /package/dist/chunks/{repository-z47nswr2.js → file-z47nswr2.js} +0 -0
- /package/dist/chunks/{repository-zsf8rs93.js → file-zsf8rs93.js} +0 -0
|
@@ -0,0 +1,375 @@
|
|
|
1
|
+
import {
|
|
2
|
+
SessionMessageTable,
|
|
3
|
+
SessionTable
|
|
4
|
+
} from "../chunks/file-ygy0xbqa.js";
|
|
5
|
+
import"../chunks/file-88jbfw8z.js";
|
|
6
|
+
import"../chunks/file-zbqqnp0n.js";
|
|
7
|
+
import"../chunks/file-j07kk359.js";
|
|
8
|
+
import {
|
|
9
|
+
EventTable
|
|
10
|
+
} from "../chunks/file-zsf8rs93.js";
|
|
11
|
+
import"../chunks/file-sem2g21k.js";
|
|
12
|
+
import {
|
|
13
|
+
exports_database
|
|
14
|
+
} from "../chunks/file-d68fvrxq.js";
|
|
15
|
+
import"../chunks/file-y3a4dyqw.js";
|
|
16
|
+
import"../chunks/file-m2wgpszj.js";
|
|
17
|
+
import"../chunks/file-qc167nrn.js";
|
|
18
|
+
import"../chunks/file-9sdtsapf.js";
|
|
19
|
+
import"../chunks/file-906y0b6d.js";
|
|
20
|
+
import"../chunks/file-nsc0c3zb.js";
|
|
21
|
+
import"../chunks/file-emmqknsm.js";
|
|
22
|
+
import"../chunks/file-tmb1f636.js";
|
|
23
|
+
import"../chunks/file-n3m50c2t.js";
|
|
24
|
+
import"../chunks/file-gd5xeqc2.js";
|
|
25
|
+
import"../chunks/file-dht5baf0.js";
|
|
26
|
+
import"../chunks/file-9dct5xhx.js";
|
|
27
|
+
import"../chunks/file-ghwjy7my.js";
|
|
28
|
+
import"../chunks/file-8sj3ajy5.js";
|
|
29
|
+
import"../chunks/file-f14r7hfz.js";
|
|
30
|
+
import"../chunks/file-kxy11nzk.js";
|
|
31
|
+
import"../chunks/file-v2adqbbe.js";
|
|
32
|
+
import"../chunks/file-qp95y4jb.js";
|
|
33
|
+
import"../chunks/file-69qrqpw0.js";
|
|
34
|
+
import"../chunks/file-47ty4mvs.js";
|
|
35
|
+
import"../chunks/file-ghm4673n.js";
|
|
36
|
+
import"../chunks/file-2qdx6zz3.js";
|
|
37
|
+
import"../chunks/file-ma60vzgv.js";
|
|
38
|
+
import"../chunks/file-nkm1m8dz.js";
|
|
39
|
+
import"../chunks/file-ayevdmef.js";
|
|
40
|
+
import"../chunks/file-z47nswr2.js";
|
|
41
|
+
import"../chunks/file-8nn8kqcn.js";
|
|
42
|
+
import"../chunks/file-vkvb1sb3.js";
|
|
43
|
+
import"../chunks/file-fgbfdq62.js";
|
|
44
|
+
import"../chunks/file-6yt963b8.js";
|
|
45
|
+
import"../chunks/file-6zqxzw0a.js";
|
|
46
|
+
import"../chunks/file-wwntjmk1.js";
|
|
47
|
+
import"../chunks/file-faypg4r1.js";
|
|
48
|
+
import"../chunks/file-em6xpscd.js";
|
|
49
|
+
import"../chunks/file-kyyqvx4s.js";
|
|
50
|
+
import"../chunks/file-x4q807cx.js";
|
|
51
|
+
import"../chunks/file-f4cp4g4a.js";
|
|
52
|
+
import"../chunks/file-wyqjaaa5.js";
|
|
53
|
+
import"../chunks/file-b02txbh8.js";
|
|
54
|
+
import"../chunks/file-5va1yh78.js";
|
|
55
|
+
import"../chunks/file-3w3ybtfd.js";
|
|
56
|
+
import"../chunks/file-yrqrg4vp.js";
|
|
57
|
+
import"../chunks/file-kpdbz7gn.js";
|
|
58
|
+
import"../chunks/file-3g3rpp2x.js";
|
|
59
|
+
import"../chunks/file-cm67rqy2.js";
|
|
60
|
+
import"../chunks/file-se76j685.js";
|
|
61
|
+
import"../chunks/file-1fb7bmpf.js";
|
|
62
|
+
import"../chunks/file-dhcq6c44.js";
|
|
63
|
+
import"../chunks/file-ttxf0gsy.js";
|
|
64
|
+
import"../chunks/file-2dwzgw1w.js";
|
|
65
|
+
import"../chunks/file-nzjfanc8.js";
|
|
66
|
+
import"../chunks/file-n4wxsfqz.js";
|
|
67
|
+
import"../chunks/file-w0rc0xfv.js";
|
|
68
|
+
import"../chunks/file-9ns1xgcj.js";
|
|
69
|
+
import"../chunks/file-8bkmtpp6.js";
|
|
70
|
+
import"../chunks/file-f84sxdqn.js";
|
|
71
|
+
import"../chunks/file-4zg0gww9.js";
|
|
72
|
+
import"../chunks/file-bh4g4m9b.js";
|
|
73
|
+
import"../chunks/file-0f48qthw.js";
|
|
74
|
+
import"../chunks/file-vcwr2vpf.js";
|
|
75
|
+
import"../chunks/file-zxcy6vhn.js";
|
|
76
|
+
import"../chunks/file-tcptxgyq.js";
|
|
77
|
+
import"../chunks/file-s7whb9gt.js";
|
|
78
|
+
import"../chunks/file-bxdhjb3y.js";
|
|
79
|
+
import"../chunks/file-wbkt8qpj.js";
|
|
80
|
+
import"../chunks/file-k8b45nas.js";
|
|
81
|
+
import"../chunks/file-39ktntah.js";
|
|
82
|
+
import {
|
|
83
|
+
__export
|
|
84
|
+
} from "../chunks/file-rvfvac9x.js";
|
|
85
|
+
|
|
86
|
+
// src/session/stats.ts
|
|
87
|
+
var exports_stats = {};
|
|
88
|
+
__export(exports_stats, {
|
|
89
|
+
get: () => get,
|
|
90
|
+
SessionStats: () => exports_stats,
|
|
91
|
+
InvalidRangeError: () => InvalidRangeError
|
|
92
|
+
});
|
|
93
|
+
import { DateTime, Effect, Option, Schema } from "effect";
|
|
94
|
+
import { and, eq, gte, inArray, lt, sql } from "drizzle-orm";
|
|
95
|
+
import { Model } from "@opencode-ai/schema/model";
|
|
96
|
+
import { Money } from "@opencode-ai/schema/money";
|
|
97
|
+
import { Provider } from "@opencode-ai/schema/provider";
|
|
98
|
+
import { SessionEvent } from "@opencode-ai/schema/session-event";
|
|
99
|
+
var decodeUsage = Schema.decodeUnknownOption(SessionEvent.UsageRecorded.data);
|
|
100
|
+
var Window = 31 * 24 * 60 * 60 * 1000;
|
|
101
|
+
|
|
102
|
+
class InvalidRangeError extends Schema.TaggedError()("SessionStats.InvalidRangeError", {
|
|
103
|
+
from: Schema.Finite,
|
|
104
|
+
to: Schema.Finite
|
|
105
|
+
}) {
|
|
106
|
+
}
|
|
107
|
+
var get = Effect.fn("SessionStats.get")(function* (input = {}) {
|
|
108
|
+
const db = (yield* exports_database.Service).db;
|
|
109
|
+
const to = input.to ?? Date.now();
|
|
110
|
+
if (input.from !== undefined && input.from >= to)
|
|
111
|
+
return yield* new InvalidRangeError({ from: input.from, to });
|
|
112
|
+
const project = input.projectID === undefined ? sql`` : sql`AND session.project_id = ${input.projectID}`;
|
|
113
|
+
const from = input.from ?? (yield* db.get(sql`
|
|
114
|
+
SELECT min(message.time_created) AS time
|
|
115
|
+
FROM ${SessionMessageTable} AS message
|
|
116
|
+
JOIN ${SessionTable} AS session ON session.id = message.session_id
|
|
117
|
+
WHERE message.type IN ('user', 'assistant')
|
|
118
|
+
AND message.time_created < ${to}
|
|
119
|
+
AND (session.fork_session_id IS NULL OR message.time_created >= session.time_created)
|
|
120
|
+
${project}
|
|
121
|
+
`).pipe(Effect.orDie))?.time ?? to;
|
|
122
|
+
const ranges = windows(from, to);
|
|
123
|
+
const toolMode = input.tools ?? "summary";
|
|
124
|
+
const sessions = new Set;
|
|
125
|
+
const subagents = new Set;
|
|
126
|
+
const activity = new Map;
|
|
127
|
+
const models = new Map;
|
|
128
|
+
const tools = new Map;
|
|
129
|
+
const totals = {
|
|
130
|
+
prompts: 0,
|
|
131
|
+
steps: 0,
|
|
132
|
+
tokens: emptyTokens(),
|
|
133
|
+
cost: 0
|
|
134
|
+
};
|
|
135
|
+
const toolTotals = { calls: 0, succeeded: 0, failed: 0, unfinished: 0 };
|
|
136
|
+
const dateKey = makeDateKey(input.timezone);
|
|
137
|
+
yield* Effect.forEach(ranges, (range) => db.all(sql`
|
|
138
|
+
SELECT
|
|
139
|
+
message.session_id AS sessionID,
|
|
140
|
+
session.parent_id AS parentID,
|
|
141
|
+
message.type AS type,
|
|
142
|
+
message.time_created AS timeCreated,
|
|
143
|
+
json_extract(message.data, '$.model.providerID') AS providerID,
|
|
144
|
+
json_extract(message.data, '$.model.id') AS modelID,
|
|
145
|
+
json_extract(message.data, '$.model.variant') AS variant,
|
|
146
|
+
json_extract(message.data, '$.tokens.input') AS input,
|
|
147
|
+
json_extract(message.data, '$.tokens.output') AS output,
|
|
148
|
+
json_extract(message.data, '$.tokens.reasoning') AS reasoning,
|
|
149
|
+
json_extract(message.data, '$.tokens.cache.read') AS cacheRead,
|
|
150
|
+
json_extract(message.data, '$.tokens.cache.write') AS cacheWrite,
|
|
151
|
+
json_extract(message.data, '$.cost') AS cost
|
|
152
|
+
FROM ${SessionMessageTable} AS message
|
|
153
|
+
JOIN ${SessionTable} AS session ON session.id = message.session_id
|
|
154
|
+
WHERE message.type IN ('user', 'assistant')
|
|
155
|
+
AND message.time_created >= ${range.from}
|
|
156
|
+
AND message.time_created < ${range.to}
|
|
157
|
+
AND (session.fork_session_id IS NULL OR message.time_created >= session.time_created)
|
|
158
|
+
${project}
|
|
159
|
+
`).pipe(Effect.orDie, Effect.tap((rows) => Effect.sync(() => {
|
|
160
|
+
rows.forEach((row) => {
|
|
161
|
+
if (row.parentID === null)
|
|
162
|
+
sessions.add(row.sessionID);
|
|
163
|
+
else
|
|
164
|
+
subagents.add(row.sessionID);
|
|
165
|
+
if (row.type === "user") {
|
|
166
|
+
if (row.parentID === null)
|
|
167
|
+
totals.prompts++;
|
|
168
|
+
return;
|
|
169
|
+
}
|
|
170
|
+
totals.steps++;
|
|
171
|
+
const tokens = rowTokens(row);
|
|
172
|
+
addTokens(totals.tokens, tokens);
|
|
173
|
+
totals.cost += row.cost ?? 0;
|
|
174
|
+
const day = dateKey(row.timeCreated);
|
|
175
|
+
activity.set(day, (activity.get(day) ?? 0) + 1);
|
|
176
|
+
if (!row.providerID || !row.modelID)
|
|
177
|
+
return;
|
|
178
|
+
const key = `${row.providerID}/${row.modelID}#${row.variant ?? ""}`;
|
|
179
|
+
const model = models.get(key) ?? {
|
|
180
|
+
model: {
|
|
181
|
+
providerID: Provider.ID.make(row.providerID),
|
|
182
|
+
id: Model.ID.make(row.modelID),
|
|
183
|
+
variant: row.variant ? Model.VariantID.make(row.variant) : undefined
|
|
184
|
+
},
|
|
185
|
+
steps: 0,
|
|
186
|
+
tokens: emptyTokens(),
|
|
187
|
+
cost: 0
|
|
188
|
+
};
|
|
189
|
+
models.set(key, model);
|
|
190
|
+
model.steps++;
|
|
191
|
+
model.cost += row.cost ?? 0;
|
|
192
|
+
addTokens(model.tokens, tokens);
|
|
193
|
+
});
|
|
194
|
+
}))), { concurrency: 1, discard: true });
|
|
195
|
+
if (toolMode !== "none")
|
|
196
|
+
yield* Effect.forEach(ranges, (range) => {
|
|
197
|
+
if (toolMode === "summary")
|
|
198
|
+
return db.get(sql`
|
|
199
|
+
WITH calls AS MATERIALIZED (
|
|
200
|
+
SELECT json_extract(content.value, '$.state.status') AS status
|
|
201
|
+
FROM ${SessionMessageTable} AS message
|
|
202
|
+
JOIN ${SessionTable} AS session ON session.id = message.session_id,
|
|
203
|
+
json_each(message.data, '$.content') AS content
|
|
204
|
+
WHERE message.type = 'assistant'
|
|
205
|
+
AND message.time_created >= ${range.from}
|
|
206
|
+
AND message.time_created < ${range.to}
|
|
207
|
+
AND (session.fork_session_id IS NULL OR message.time_created >= session.time_created)
|
|
208
|
+
AND json_extract(content.value, '$.type') = 'tool'
|
|
209
|
+
${project}
|
|
210
|
+
)
|
|
211
|
+
SELECT
|
|
212
|
+
count(*) AS calls,
|
|
213
|
+
count(*) FILTER (WHERE status = 'completed') AS succeeded,
|
|
214
|
+
count(*) FILTER (WHERE status = 'error') AS failed,
|
|
215
|
+
count(*) FILTER (WHERE status IS NULL OR status NOT IN ('completed', 'error')) AS unfinished
|
|
216
|
+
FROM calls
|
|
217
|
+
`).pipe(Effect.orDie, Effect.tap((row) => Effect.sync(() => {
|
|
218
|
+
if (!row)
|
|
219
|
+
return;
|
|
220
|
+
toolTotals.calls += row.calls;
|
|
221
|
+
toolTotals.succeeded += row.succeeded;
|
|
222
|
+
toolTotals.failed += row.failed;
|
|
223
|
+
toolTotals.unfinished += row.unfinished;
|
|
224
|
+
})), Effect.asVoid);
|
|
225
|
+
return db.all(sql`
|
|
226
|
+
SELECT
|
|
227
|
+
json_extract(content.value, '$.name') AS name,
|
|
228
|
+
json_extract(content.value, '$.state.status') AS status,
|
|
229
|
+
CASE
|
|
230
|
+
WHEN json_extract(content.value, '$.time.completed') IS NULL THEN NULL
|
|
231
|
+
ELSE json_extract(content.value, '$.time.completed')
|
|
232
|
+
- coalesce(json_extract(content.value, '$.time.ran'), json_extract(content.value, '$.time.created'))
|
|
233
|
+
END AS duration
|
|
234
|
+
FROM ${SessionMessageTable} AS message
|
|
235
|
+
JOIN ${SessionTable} AS session ON session.id = message.session_id,
|
|
236
|
+
json_each(message.data, '$.content') AS content
|
|
237
|
+
WHERE message.type = 'assistant'
|
|
238
|
+
AND message.time_created >= ${range.from}
|
|
239
|
+
AND message.time_created < ${range.to}
|
|
240
|
+
AND (session.fork_session_id IS NULL OR message.time_created >= session.time_created)
|
|
241
|
+
AND json_extract(content.value, '$.type') = 'tool'
|
|
242
|
+
${project}
|
|
243
|
+
`).pipe(Effect.orDie, Effect.tap((rows) => Effect.sync(() => {
|
|
244
|
+
rows.forEach((row) => {
|
|
245
|
+
addToolStatus(toolTotals, row.status, 1);
|
|
246
|
+
if (!row.name)
|
|
247
|
+
return;
|
|
248
|
+
const tool = tools.get(row.name) ?? {
|
|
249
|
+
name: row.name,
|
|
250
|
+
calls: 0,
|
|
251
|
+
succeeded: 0,
|
|
252
|
+
failed: 0,
|
|
253
|
+
unfinished: 0,
|
|
254
|
+
durations: []
|
|
255
|
+
};
|
|
256
|
+
tools.set(row.name, tool);
|
|
257
|
+
addToolStatus(tool, row.status, 1);
|
|
258
|
+
if (row.duration !== null)
|
|
259
|
+
tool.durations.push(row.duration);
|
|
260
|
+
});
|
|
261
|
+
})), Effect.asVoid);
|
|
262
|
+
}, { concurrency: 1, discard: true });
|
|
263
|
+
const ids = yield* db.select({ id: SessionTable.id }).from(SessionTable).where(input.projectID === undefined ? undefined : eq(SessionTable.project_id, input.projectID)).all().pipe(Effect.orDie);
|
|
264
|
+
const events = (yield* Effect.forEach(batches(ids.map((row) => row.id)), (batch) => db.select({ created: EventTable.created, data: EventTable.data }).from(EventTable).where(and(inArray(EventTable.aggregate_id, batch), eq(EventTable.type, SessionEvent.UsageRecorded.type), sql`json_extract(${EventTable.data}, '$.source') = 'compaction'`, gte(EventTable.created, from), lt(EventTable.created, to))).all().pipe(Effect.orDie), { concurrency: 4 })).flat();
|
|
265
|
+
events.forEach((row) => {
|
|
266
|
+
const decoded = decodeUsage(row.data);
|
|
267
|
+
if (Option.isNone(decoded))
|
|
268
|
+
return;
|
|
269
|
+
addTokens(totals.tokens, decoded.value.tokens);
|
|
270
|
+
totals.cost += decoded.value.cost;
|
|
271
|
+
});
|
|
272
|
+
const days = [...activity.entries()].sort(([a], [b]) => a.localeCompare(b));
|
|
273
|
+
return {
|
|
274
|
+
range: { from: DateTime.makeUnsafe(from), to: DateTime.makeUnsafe(to) },
|
|
275
|
+
sessions: sessions.size,
|
|
276
|
+
subagents: subagents.size,
|
|
277
|
+
prompts: totals.prompts,
|
|
278
|
+
steps: totals.steps,
|
|
279
|
+
tokens: totals.tokens,
|
|
280
|
+
cost: Money.USD.make(totals.cost),
|
|
281
|
+
tools: toolMode === "none" ? { mode: toolMode } : toolMode === "summary" ? { mode: toolMode, totals: toolTotals } : {
|
|
282
|
+
mode: toolMode,
|
|
283
|
+
totals: toolTotals,
|
|
284
|
+
usage: [...tools.values()].sort((a, b) => b.calls - a.calls).map((tool) => ({
|
|
285
|
+
name: tool.name,
|
|
286
|
+
calls: tool.calls,
|
|
287
|
+
succeeded: tool.succeeded,
|
|
288
|
+
failed: tool.failed,
|
|
289
|
+
unfinished: tool.unfinished,
|
|
290
|
+
durationP50: median(tool.durations)
|
|
291
|
+
}))
|
|
292
|
+
},
|
|
293
|
+
activeDays: days.length,
|
|
294
|
+
streak: longestStreak(days.map(([date]) => date)),
|
|
295
|
+
activity: days.map(([date, steps]) => ({ date, steps })),
|
|
296
|
+
models: [...models.values()].sort((a, b) => tokenTotal(b.tokens) - tokenTotal(a.tokens)).map((model) => ({ ...model, cost: Money.USD.make(model.cost) }))
|
|
297
|
+
};
|
|
298
|
+
});
|
|
299
|
+
function windows(from, to) {
|
|
300
|
+
return Array.from({ length: Math.ceil((to - from) / Window) }, (_, index) => ({
|
|
301
|
+
from: from + index * Window,
|
|
302
|
+
to: Math.min(to, from + (index + 1) * Window)
|
|
303
|
+
}));
|
|
304
|
+
}
|
|
305
|
+
function batches(ids) {
|
|
306
|
+
return Array.from({ length: Math.ceil(ids.length / 500) }, (_, index) => ids.slice(index * 500, (index + 1) * 500));
|
|
307
|
+
}
|
|
308
|
+
function rowTokens(row) {
|
|
309
|
+
return {
|
|
310
|
+
input: row.input ?? 0,
|
|
311
|
+
output: row.output ?? 0,
|
|
312
|
+
reasoning: row.reasoning ?? 0,
|
|
313
|
+
cache: { read: row.cacheRead ?? 0, write: row.cacheWrite ?? 0 }
|
|
314
|
+
};
|
|
315
|
+
}
|
|
316
|
+
function emptyTokens() {
|
|
317
|
+
return { input: 0, output: 0, reasoning: 0, cache: { read: 0, write: 0 } };
|
|
318
|
+
}
|
|
319
|
+
function addTokens(target, source) {
|
|
320
|
+
target.input += source.input;
|
|
321
|
+
target.output += source.output;
|
|
322
|
+
target.reasoning += source.reasoning;
|
|
323
|
+
target.cache.read += source.cache.read;
|
|
324
|
+
target.cache.write += source.cache.write;
|
|
325
|
+
}
|
|
326
|
+
function tokenTotal(tokens) {
|
|
327
|
+
return tokens.input + tokens.output + tokens.reasoning + tokens.cache.read + tokens.cache.write;
|
|
328
|
+
}
|
|
329
|
+
function addToolStatus(target, status, count) {
|
|
330
|
+
target.calls += count;
|
|
331
|
+
if (status === "completed") {
|
|
332
|
+
target.succeeded += count;
|
|
333
|
+
return;
|
|
334
|
+
}
|
|
335
|
+
if (status === "error") {
|
|
336
|
+
target.failed += count;
|
|
337
|
+
return;
|
|
338
|
+
}
|
|
339
|
+
target.unfinished += count;
|
|
340
|
+
}
|
|
341
|
+
function makeDateKey(timezone = "UTC") {
|
|
342
|
+
const formatter = new Intl.DateTimeFormat("en-US", {
|
|
343
|
+
timeZone: timezone,
|
|
344
|
+
year: "numeric",
|
|
345
|
+
month: "2-digit",
|
|
346
|
+
day: "2-digit"
|
|
347
|
+
});
|
|
348
|
+
return (time) => {
|
|
349
|
+
const parts = Object.fromEntries(formatter.formatToParts(time).map((part) => [part.type, part.value]));
|
|
350
|
+
return `${parts.year}-${parts.month}-${parts.day}`;
|
|
351
|
+
};
|
|
352
|
+
}
|
|
353
|
+
function longestStreak(days) {
|
|
354
|
+
return days.reduce((result, day, index) => {
|
|
355
|
+
const previous = days[index - 1];
|
|
356
|
+
const current = previous && dayOrdinal(day) - dayOrdinal(previous) === 1 ? result.current + 1 : 1;
|
|
357
|
+
return { current, longest: Math.max(result.longest, current) };
|
|
358
|
+
}, { current: 0, longest: 0 }).longest;
|
|
359
|
+
}
|
|
360
|
+
function dayOrdinal(value) {
|
|
361
|
+
const [year, month, day] = value.split("-").map(Number);
|
|
362
|
+
return Math.floor(Date.UTC(year, month - 1, day) / 86400000);
|
|
363
|
+
}
|
|
364
|
+
function median(values) {
|
|
365
|
+
if (values.length === 0)
|
|
366
|
+
return;
|
|
367
|
+
const sorted = values.toSorted((a, b) => a - b);
|
|
368
|
+
const middle = Math.floor(sorted.length / 2);
|
|
369
|
+
return sorted.length % 2 === 0 ? (sorted[middle - 1] + sorted[middle]) / 2 : sorted[middle];
|
|
370
|
+
}
|
|
371
|
+
export {
|
|
372
|
+
get,
|
|
373
|
+
exports_stats as SessionStats,
|
|
374
|
+
InvalidRangeError
|
|
375
|
+
};
|
package/dist/session/store.js
CHANGED
|
@@ -2,105 +2,105 @@ import {
|
|
|
2
2
|
Service,
|
|
3
3
|
exports_store,
|
|
4
4
|
node
|
|
5
|
-
} from "../chunks/
|
|
6
|
-
import"../chunks/
|
|
7
|
-
import"../chunks/
|
|
8
|
-
import"../chunks/
|
|
9
|
-
import"../chunks/
|
|
10
|
-
import"../chunks/
|
|
11
|
-
import"../chunks/
|
|
12
|
-
import"../chunks/
|
|
13
|
-
import"../chunks/
|
|
14
|
-
import"../chunks/
|
|
15
|
-
import"../chunks/
|
|
16
|
-
import"../chunks/
|
|
17
|
-
import"../chunks/
|
|
18
|
-
import"../chunks/
|
|
19
|
-
import"../chunks/
|
|
20
|
-
import"../chunks/
|
|
21
|
-
import"../chunks/
|
|
22
|
-
import"../chunks/
|
|
23
|
-
import"../chunks/
|
|
24
|
-
import"../chunks/
|
|
25
|
-
import"../chunks/
|
|
26
|
-
import"../chunks/
|
|
27
|
-
import"../chunks/
|
|
28
|
-
import"../chunks/
|
|
29
|
-
import"../chunks/
|
|
30
|
-
import"../chunks/
|
|
31
|
-
import"../chunks/
|
|
32
|
-
import"../chunks/
|
|
33
|
-
import"../chunks/
|
|
34
|
-
import"../chunks/
|
|
35
|
-
import"../chunks/
|
|
36
|
-
import"../chunks/
|
|
37
|
-
import"../chunks/
|
|
38
|
-
import"../chunks/
|
|
39
|
-
import"../chunks/
|
|
40
|
-
import"../chunks/
|
|
41
|
-
import"../chunks/
|
|
42
|
-
import"../chunks/
|
|
43
|
-
import"../chunks/
|
|
44
|
-
import"../chunks/
|
|
45
|
-
import"../chunks/
|
|
46
|
-
import"../chunks/
|
|
47
|
-
import"../chunks/
|
|
48
|
-
import"../chunks/
|
|
49
|
-
import"../chunks/
|
|
50
|
-
import"../chunks/
|
|
51
|
-
import"../chunks/
|
|
52
|
-
import"../chunks/
|
|
53
|
-
import"../chunks/
|
|
54
|
-
import"../chunks/
|
|
55
|
-
import"../chunks/
|
|
56
|
-
import"../chunks/
|
|
57
|
-
import"../chunks/
|
|
58
|
-
import"../chunks/
|
|
59
|
-
import"../chunks/
|
|
60
|
-
import"../chunks/
|
|
61
|
-
import"../chunks/
|
|
62
|
-
import"../chunks/
|
|
63
|
-
import"../chunks/
|
|
64
|
-
import"../chunks/
|
|
65
|
-
import"../chunks/
|
|
66
|
-
import"../chunks/
|
|
67
|
-
import"../chunks/
|
|
68
|
-
import"../chunks/
|
|
69
|
-
import"../chunks/
|
|
70
|
-
import"../chunks/
|
|
71
|
-
import"../chunks/
|
|
72
|
-
import"../chunks/
|
|
73
|
-
import"../chunks/
|
|
74
|
-
import"../chunks/
|
|
75
|
-
import"../chunks/
|
|
76
|
-
import"../chunks/
|
|
77
|
-
import"../chunks/
|
|
78
|
-
import"../chunks/
|
|
79
|
-
import"../chunks/
|
|
80
|
-
import"../chunks/
|
|
81
|
-
import"../chunks/
|
|
82
|
-
import"../chunks/
|
|
83
|
-
import"../chunks/
|
|
84
|
-
import"../chunks/
|
|
85
|
-
import"../chunks/
|
|
86
|
-
import"../chunks/
|
|
87
|
-
import"../chunks/
|
|
88
|
-
import"../chunks/
|
|
89
|
-
import"../chunks/
|
|
90
|
-
import"../chunks/
|
|
91
|
-
import"../chunks/
|
|
92
|
-
import"../chunks/
|
|
93
|
-
import"../chunks/
|
|
94
|
-
import"../chunks/
|
|
95
|
-
import"../chunks/
|
|
96
|
-
import"../chunks/
|
|
97
|
-
import"../chunks/
|
|
98
|
-
import"../chunks/
|
|
99
|
-
import"../chunks/
|
|
100
|
-
import"../chunks/
|
|
101
|
-
import"../chunks/
|
|
102
|
-
import"../chunks/
|
|
103
|
-
import"../chunks/
|
|
5
|
+
} from "../chunks/file-sxa995r9.js";
|
|
6
|
+
import"../chunks/file-6rhax1m5.js";
|
|
7
|
+
import"../chunks/file-6embh6xw.js";
|
|
8
|
+
import"../chunks/file-fb7nfzf2.js";
|
|
9
|
+
import"../chunks/file-f11jbhcb.js";
|
|
10
|
+
import"../chunks/file-ygy0xbqa.js";
|
|
11
|
+
import"../chunks/file-8rpfd2h6.js";
|
|
12
|
+
import"../chunks/file-ec8vrfw5.js";
|
|
13
|
+
import"../chunks/file-a83yvq99.js";
|
|
14
|
+
import"../chunks/file-bjwj8hwv.js";
|
|
15
|
+
import"../chunks/file-1a3a2s70.js";
|
|
16
|
+
import"../chunks/file-djkt4gex.js";
|
|
17
|
+
import"../chunks/file-9s93m60e.js";
|
|
18
|
+
import"../chunks/file-t14kykx1.js";
|
|
19
|
+
import"../chunks/file-61ek4hj9.js";
|
|
20
|
+
import"../chunks/file-fdbvb5rr.js";
|
|
21
|
+
import"../chunks/file-trfqt5dm.js";
|
|
22
|
+
import"../chunks/file-6tyekgkq.js";
|
|
23
|
+
import"../chunks/file-8v47shgf.js";
|
|
24
|
+
import"../chunks/file-mh28new4.js";
|
|
25
|
+
import"../chunks/file-88jbfw8z.js";
|
|
26
|
+
import"../chunks/file-zbqqnp0n.js";
|
|
27
|
+
import"../chunks/file-b7hsw5bk.js";
|
|
28
|
+
import"../chunks/file-j07kk359.js";
|
|
29
|
+
import"../chunks/file-gd2xppx8.js";
|
|
30
|
+
import"../chunks/file-qhdqjp31.js";
|
|
31
|
+
import"../chunks/file-e49vbhvs.js";
|
|
32
|
+
import"../chunks/file-zsf8rs93.js";
|
|
33
|
+
import"../chunks/file-sem2g21k.js";
|
|
34
|
+
import"../chunks/file-d68fvrxq.js";
|
|
35
|
+
import"../chunks/file-y3a4dyqw.js";
|
|
36
|
+
import"../chunks/file-m2wgpszj.js";
|
|
37
|
+
import"../chunks/file-qc167nrn.js";
|
|
38
|
+
import"../chunks/file-9sdtsapf.js";
|
|
39
|
+
import"../chunks/file-906y0b6d.js";
|
|
40
|
+
import"../chunks/file-nsc0c3zb.js";
|
|
41
|
+
import"../chunks/file-emmqknsm.js";
|
|
42
|
+
import"../chunks/file-tmb1f636.js";
|
|
43
|
+
import"../chunks/file-n3m50c2t.js";
|
|
44
|
+
import"../chunks/file-gd5xeqc2.js";
|
|
45
|
+
import"../chunks/file-dht5baf0.js";
|
|
46
|
+
import"../chunks/file-9dct5xhx.js";
|
|
47
|
+
import"../chunks/file-ghwjy7my.js";
|
|
48
|
+
import"../chunks/file-8sj3ajy5.js";
|
|
49
|
+
import"../chunks/file-f14r7hfz.js";
|
|
50
|
+
import"../chunks/file-kxy11nzk.js";
|
|
51
|
+
import"../chunks/file-v2adqbbe.js";
|
|
52
|
+
import"../chunks/file-qp95y4jb.js";
|
|
53
|
+
import"../chunks/file-69qrqpw0.js";
|
|
54
|
+
import"../chunks/file-47ty4mvs.js";
|
|
55
|
+
import"../chunks/file-ghm4673n.js";
|
|
56
|
+
import"../chunks/file-2qdx6zz3.js";
|
|
57
|
+
import"../chunks/file-ma60vzgv.js";
|
|
58
|
+
import"../chunks/file-nkm1m8dz.js";
|
|
59
|
+
import"../chunks/file-ayevdmef.js";
|
|
60
|
+
import"../chunks/file-z47nswr2.js";
|
|
61
|
+
import"../chunks/file-8nn8kqcn.js";
|
|
62
|
+
import"../chunks/file-vkvb1sb3.js";
|
|
63
|
+
import"../chunks/file-fgbfdq62.js";
|
|
64
|
+
import"../chunks/file-6yt963b8.js";
|
|
65
|
+
import"../chunks/file-6zqxzw0a.js";
|
|
66
|
+
import"../chunks/file-wwntjmk1.js";
|
|
67
|
+
import"../chunks/file-faypg4r1.js";
|
|
68
|
+
import"../chunks/file-em6xpscd.js";
|
|
69
|
+
import"../chunks/file-kyyqvx4s.js";
|
|
70
|
+
import"../chunks/file-x4q807cx.js";
|
|
71
|
+
import"../chunks/file-f4cp4g4a.js";
|
|
72
|
+
import"../chunks/file-wyqjaaa5.js";
|
|
73
|
+
import"../chunks/file-b02txbh8.js";
|
|
74
|
+
import"../chunks/file-5va1yh78.js";
|
|
75
|
+
import"../chunks/file-3w3ybtfd.js";
|
|
76
|
+
import"../chunks/file-yrqrg4vp.js";
|
|
77
|
+
import"../chunks/file-kpdbz7gn.js";
|
|
78
|
+
import"../chunks/file-3g3rpp2x.js";
|
|
79
|
+
import"../chunks/file-cm67rqy2.js";
|
|
80
|
+
import"../chunks/file-se76j685.js";
|
|
81
|
+
import"../chunks/file-1fb7bmpf.js";
|
|
82
|
+
import"../chunks/file-dhcq6c44.js";
|
|
83
|
+
import"../chunks/file-ttxf0gsy.js";
|
|
84
|
+
import"../chunks/file-2dwzgw1w.js";
|
|
85
|
+
import"../chunks/file-nzjfanc8.js";
|
|
86
|
+
import"../chunks/file-n4wxsfqz.js";
|
|
87
|
+
import"../chunks/file-w0rc0xfv.js";
|
|
88
|
+
import"../chunks/file-9ns1xgcj.js";
|
|
89
|
+
import"../chunks/file-8bkmtpp6.js";
|
|
90
|
+
import"../chunks/file-f84sxdqn.js";
|
|
91
|
+
import"../chunks/file-4zg0gww9.js";
|
|
92
|
+
import"../chunks/file-bh4g4m9b.js";
|
|
93
|
+
import"../chunks/file-0f48qthw.js";
|
|
94
|
+
import"../chunks/file-vcwr2vpf.js";
|
|
95
|
+
import"../chunks/file-zxcy6vhn.js";
|
|
96
|
+
import"../chunks/file-tcptxgyq.js";
|
|
97
|
+
import"../chunks/file-s7whb9gt.js";
|
|
98
|
+
import"../chunks/file-bxdhjb3y.js";
|
|
99
|
+
import"../chunks/file-wbkt8qpj.js";
|
|
100
|
+
import"../chunks/file-k8b45nas.js";
|
|
101
|
+
import"../chunks/file-39ktntah.js";
|
|
102
|
+
import"../chunks/file-0kvmztkf.js";
|
|
103
|
+
import"../chunks/file-rvfvac9x.js";
|
|
104
104
|
export {
|
|
105
105
|
node,
|
|
106
106
|
exports_store as SessionStore,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
exports_system_prompt,
|
|
3
3
|
make
|
|
4
|
-
} from "../chunks/
|
|
5
|
-
import"../chunks/
|
|
4
|
+
} from "../chunks/file-v80zsxnb.js";
|
|
5
|
+
import"../chunks/file-rvfvac9x.js";
|
|
6
6
|
export {
|
|
7
7
|
make,
|
|
8
8
|
exports_system_prompt as SessionSystemPrompt
|