@opencode/core 2.1.3 → 2.2.0
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 +1 -1
- package/dist/agent.js +89 -85
- package/dist/aisdk-native.js +97 -91
- package/dist/aisdk.js +103 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -75
- package/dist/chunks/{instruction-discovery-9hbqwfdp.js → tool-012mq190.js} +39 -39
- package/dist/chunks/{instruction-discovery-jsbhksmn.js → tool-02nh8ewm.js} +18 -14
- package/dist/chunks/{instruction-discovery-034tev2y.js → tool-034tev2y.js} +2 -2
- package/dist/chunks/{instruction-discovery-1vdntpm3.js → tool-09bv4atg.js} +13 -7
- package/dist/chunks/{instruction-discovery-7w0k7xvm.js → tool-0a2sm9cp.js} +19 -19
- package/dist/chunks/{instruction-discovery-2azy8kv6.js → tool-0ahs07zn.js} +4 -4
- package/dist/chunks/{instruction-discovery-kbp23r6j.js → tool-0fhbvqtr.js} +9 -9
- package/dist/chunks/{instruction-discovery-1887s9ws.js → tool-0t332zg2.js} +6 -6
- package/dist/chunks/{instruction-discovery-8jztxfpf.js → tool-11hfp36g.js} +4 -4
- package/dist/chunks/tool-12cx84te.js +224 -0
- package/dist/chunks/{instruction-discovery-43jry69q.js → tool-14kcwm24.js} +11 -11
- package/dist/chunks/{instruction-discovery-sm5tp0dc.js → tool-18s0c7mk.js} +13 -13
- package/dist/chunks/{instruction-discovery-j4mjn1pq.js → tool-19y1mz66.js} +7 -7
- package/dist/chunks/{instruction-discovery-x2sbbjmw.js → tool-1b236rmr.js} +193 -143
- package/dist/chunks/{instruction-discovery-wkr28yqr.js → tool-1dvrssaw.js} +6 -4
- package/dist/chunks/{instruction-discovery-1ep2p91f.js → tool-1ep2p91f.js} +2 -2
- package/dist/chunks/{instruction-discovery-5fjb7ams.js → tool-1jakw16s.js} +2 -2
- package/dist/chunks/{instruction-discovery-znn5w31e.js → tool-1px95g66.js} +10 -10
- package/dist/chunks/{instruction-discovery-5yzc6bj8.js → tool-1qb2fn2e.js} +12 -12
- package/dist/chunks/{instruction-discovery-y9awcm76.js → tool-1vpe07px.js} +78 -23
- package/dist/chunks/{instruction-discovery-1x2knyw4.js → tool-1x2knyw4.js} +1 -1
- package/dist/chunks/{instruction-discovery-vd3b3yk9.js → tool-204s3925.js} +13 -2
- package/dist/chunks/{instruction-discovery-p4az2c5k.js → tool-27c23e33.js} +15 -15
- package/dist/chunks/{instruction-discovery-kr28pkn3.js → tool-28pnz6dy.js} +36 -32
- package/dist/chunks/tool-2esqe60t.js +252 -0
- package/dist/chunks/{instruction-discovery-956c56jz.js → tool-2jrrfqe1.js} +15 -5
- package/dist/chunks/{instruction-discovery-v1wb27er.js → tool-2nkqvy4a.js} +36 -36
- package/dist/chunks/{instruction-discovery-pthf9bv3.js → tool-2qgpse07.js} +10 -10
- package/dist/chunks/{instruction-discovery-x62216mf.js → tool-2xw2f3vf.js} +11 -11
- package/dist/chunks/{instruction-discovery-kj7e2tww.js → tool-30wtetgq.js} +129 -47
- package/dist/chunks/{instruction-discovery-x0kw00z1.js → tool-39j6yt37.js} +12 -14
- package/dist/chunks/{instruction-discovery-ymqv4qqa.js → tool-39tkfg3g.js} +9 -9
- package/dist/chunks/{instruction-discovery-b5j1fcax.js → tool-3ewwa9eq.js} +31 -31
- package/dist/chunks/{instruction-discovery-xg53n6nb.js → tool-3f13jy3s.js} +27 -27
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-4wn1snmt.js → tool-3jy1f5rc.js} +68 -51
- package/dist/chunks/{instruction-discovery-a12mwymm.js → tool-3k7t0q4z.js} +14 -14
- package/dist/chunks/{instruction-discovery-3nnrz6f6.js → tool-3nnrz6f6.js} +1 -1
- package/dist/chunks/{instruction-discovery-ffdw0et2.js → tool-3nr2yc9a.js} +5 -5
- package/dist/chunks/{instruction-discovery-a4b9rhwe.js → tool-3t4066nw.js} +21 -14
- package/dist/chunks/{instruction-discovery-pp5hwqdy.js → tool-41sh1bbt.js} +8 -6
- package/dist/chunks/{instruction-discovery-ewjr930z.js → tool-47cq5kqw.js} +4 -4
- package/dist/chunks/{instruction-discovery-ba1860as.js → tool-4czcg6bs.js} +16 -16
- package/dist/chunks/{instruction-discovery-5091jnev.js → tool-4jw80zew.js} +88 -88
- package/dist/chunks/{instruction-discovery-pkyv6v7h.js → tool-4m86bj6y.js} +24 -15
- package/dist/chunks/{instruction-discovery-nttn14j9.js → tool-4pw98qd4.js} +4 -4
- package/dist/chunks/{instruction-discovery-2z1j29yd.js → tool-4pyp9zr9.js} +19 -3
- package/dist/chunks/{instruction-discovery-c0emejqt.js → tool-4t7jqkaw.js} +13 -13
- package/dist/chunks/{instruction-discovery-4v008n1t.js → tool-4v008n1t.js} +1 -1
- package/dist/chunks/{instruction-discovery-wh2p867q.js → tool-4zsrmah6.js} +47 -47
- package/dist/chunks/{instruction-discovery-ztzjzgcq.js → tool-5858b97a.js} +13 -13
- package/dist/chunks/{instruction-discovery-8p073n4r.js → tool-5887ft1y.js} +4 -4
- package/dist/chunks/{instruction-discovery-nxsjqf5t.js → tool-5dme8x4x.js} +8 -8
- package/dist/chunks/{instruction-discovery-0txtbpzw.js → tool-5fgj30xe.js} +33 -33
- package/dist/chunks/{instruction-discovery-kkh84317.js → tool-5k0vn9gs.js} +2 -2
- package/dist/chunks/{instruction-discovery-5m9w47nd.js → tool-5m9w47nd.js} +1 -1
- package/dist/chunks/{instruction-discovery-3ffdjm8e.js → tool-5n6snyjt.js} +52 -36
- package/dist/chunks/tool-5w3e23ze.js +16 -0
- package/dist/chunks/{instruction-discovery-rx7ecff6.js → tool-5wtqv2es.js} +5 -5
- package/dist/chunks/{instruction-discovery-zba5tm1j.js → tool-61ennm6n.js} +4 -4
- package/dist/chunks/{instruction-discovery-jme6sax1.js → tool-67cvb3ht.js} +9 -9
- package/dist/chunks/{instruction-discovery-20e5g7bx.js → tool-6adqbtbr.js} +39 -28
- package/dist/chunks/tool-6bshxcsx.js +18 -0
- package/dist/chunks/{instruction-discovery-6esdw8yj.js → tool-6esdw8yj.js} +1 -1
- package/dist/chunks/{instruction-discovery-4x6wmwcx.js → tool-6h9hqrxp.js} +26 -24
- package/dist/chunks/{instruction-discovery-qhhs3wjj.js → tool-6jehphsq.js} +36 -36
- package/dist/chunks/{instruction-discovery-6vnjn6e3.js → tool-6mmkz41v.js} +16 -16
- package/dist/chunks/{instruction-discovery-hyynj17b.js → tool-6qtsf31h.js} +3 -3
- package/dist/chunks/{instruction-discovery-010690t7.js → tool-6rfxa98r.js} +25 -25
- package/dist/chunks/{instruction-discovery-gcjdgkn2.js → tool-6twykydk.js} +9 -9
- package/dist/chunks/{instruction-discovery-pytpe3gf.js → tool-6wz31r82.js} +11 -11
- package/dist/chunks/{instruction-discovery-j035ke4x.js → tool-7467kx48.js} +61 -42
- package/dist/chunks/{instruction-discovery-v3tkh1aj.js → tool-752zwhsj.js} +20 -14
- package/dist/chunks/{instruction-discovery-76cb1hcw.js → tool-76cb1hcw.js} +1 -1
- package/dist/chunks/{instruction-discovery-770pw0s1.js → tool-770pw0s1.js} +1 -1
- package/dist/chunks/{instruction-discovery-y09thtp3.js → tool-780q7vq9.js} +9 -7
- package/dist/chunks/{instruction-discovery-6q77emv1.js → tool-78kz22ny.js} +19 -19
- package/dist/chunks/{instruction-discovery-v2dnm4n9.js → tool-798y36pp.js} +49 -29
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-qz04j05z.js → tool-7f02p6s5.js} +1 -1
- package/dist/chunks/{instruction-discovery-tmqhwsdc.js → tool-7gm95e0b.js} +6 -6
- package/dist/chunks/{instruction-discovery-w76j0mqj.js → tool-7harcha2.js} +2 -2
- package/dist/chunks/{instruction-discovery-scaas24c.js → tool-7hsh0za6.js} +46 -46
- package/dist/chunks/{instruction-discovery-hq055v4c.js → tool-7mwfr1ya.js} +10 -10
- package/dist/chunks/{instruction-discovery-zygdztbw.js → tool-7tjh76vn.js} +28 -9
- package/dist/chunks/{instruction-discovery-7w2ypzdf.js → tool-7w2ypzdf.js} +1 -1
- package/dist/chunks/{instruction-discovery-11xg13et.js → tool-88degkwg.js} +48 -23
- package/dist/chunks/{instruction-discovery-bcyzxrby.js → tool-8cvc109z.js} +23 -23
- package/dist/chunks/{instruction-discovery-vw33scy9.js → tool-8d9gtfa7.js} +27 -20
- package/dist/chunks/tool-8e0gbf5j.js +537 -0
- package/dist/chunks/{instruction-discovery-2vnhppnj.js → tool-8feq5yxx.js} +26 -20
- package/dist/chunks/tool-8jkecmvj.js +111 -0
- package/dist/chunks/{instruction-discovery-avzkbq4q.js → tool-8rk0v0nw.js} +44 -44
- package/dist/chunks/{instruction-discovery-c1tsfj35.js → tool-8t8mrqrh.js} +6 -6
- package/dist/chunks/{instruction-discovery-6y263vp8.js → tool-8wc2fpae.js} +5 -5
- package/dist/chunks/{instruction-discovery-8wtp7s3z.js → tool-8wtp7s3z.js} +1 -1
- package/dist/chunks/{instruction-discovery-m37sd98t.js → tool-8y4jps98.js} +4 -4
- package/dist/chunks/{instruction-discovery-maspj1v3.js → tool-90zstvax.js} +44 -8
- package/dist/chunks/{instruction-discovery-x2c3sws5.js → tool-94as0g8p.js} +60 -40
- package/dist/chunks/{instruction-discovery-0rmtycpk.js → tool-9e6q8a6s.js} +14 -14
- package/dist/chunks/{instruction-discovery-6c5cd6ez.js → tool-9f3sjfep.js} +9 -9
- package/dist/chunks/{instruction-discovery-tzjzgnfr.js → tool-9kqcsae8.js} +15 -9
- package/dist/chunks/{instruction-discovery-97cewran.js → tool-9nkjg9qd.js} +6 -6
- package/dist/chunks/{instruction-discovery-1y0wdj51.js → tool-9q8g9sv8.js} +9 -9
- package/dist/chunks/{instruction-discovery-0afbw91q.js → tool-9t5cp16p.js} +32 -22
- package/dist/chunks/{instruction-discovery-y8a8xdaa.js → tool-9taxa3wa.js} +15 -12
- package/dist/chunks/{instruction-discovery-76ncshtz.js → tool-a35byqw0.js} +29 -29
- package/dist/chunks/{instruction-discovery-y299mpjs.js → tool-agmw1zcy.js} +62 -62
- package/dist/chunks/tool-asd4mxps.js +26 -0
- package/dist/chunks/{instruction-discovery-ayjs7tqn.js → tool-ayjs7tqn.js} +2 -2
- package/dist/chunks/{instruction-discovery-4x3py1rw.js → tool-ayv543vf.js} +23 -23
- package/dist/chunks/{instruction-discovery-zspgb8vt.js → tool-b08y6na7.js} +2 -2
- package/dist/chunks/{instruction-discovery-b6vsg801.js → tool-b6vsg801.js} +2 -2
- package/dist/chunks/{instruction-discovery-6j214bp7.js → tool-b7286km2.js} +9 -9
- package/dist/chunks/{instruction-discovery-46r0wh18.js → tool-bavxd7np.js} +91 -67
- package/dist/chunks/{instruction-discovery-wjj7prxr.js → tool-beh6qq61.js} +11 -0
- package/dist/chunks/{instruction-discovery-1x75wf9g.js → tool-bgs9y14h.js} +5 -5
- package/dist/chunks/{instruction-discovery-nad4mkqt.js → tool-bk7xq8bh.js} +7 -7
- package/dist/chunks/{instruction-discovery-bstexjd6.js → tool-bstexjd6.js} +1 -1
- package/dist/chunks/{instruction-discovery-ffcwgx2p.js → tool-c065g2ca.js} +67 -51
- package/dist/chunks/{instruction-discovery-7nepz6ee.js → tool-c1y12bqd.js} +35 -37
- package/dist/chunks/{instruction-discovery-mpx851pd.js → tool-c347jtgq.js} +29 -29
- package/dist/chunks/{instruction-discovery-3wvbe35v.js → tool-cnga39w3.js} +17 -17
- package/dist/chunks/{instruction-discovery-p3ram5kx.js → tool-cnh9xgcw.js} +46 -44
- package/dist/chunks/tool-cqv5kn06.js +13 -0
- package/dist/chunks/{instruction-discovery-ryq7zjd3.js → tool-cwq9059v.js} +18 -16
- package/dist/chunks/{instruction-discovery-b0mv4wxm.js → tool-cwrgdav8.js} +2 -2
- package/dist/chunks/{instruction-discovery-y78a4wcp.js → tool-d3qmtx3n.js} +73 -41
- package/dist/chunks/{instruction-discovery-d4v9tmah.js → tool-d4v9tmah.js} +2 -2
- package/dist/chunks/{instruction-discovery-0dw5cvz7.js → tool-d893c1qn.js} +13 -13
- package/dist/chunks/{instruction-discovery-7fyd11se.js → tool-d9hg8633.js} +19 -19
- package/dist/chunks/{instruction-discovery-18b8n2mx.js → tool-ds82yrjj.js} +35 -22
- package/dist/chunks/{instruction-discovery-j113cymg.js → tool-dt77769w.js} +2 -2
- package/dist/chunks/{instruction-discovery-5hny5v5k.js → tool-dtfj6qhp.js} +126 -99
- package/dist/chunks/{instruction-discovery-gq24h8g9.js → tool-dvbyh3pq.js} +51 -48
- package/dist/chunks/{instruction-discovery-ma4p4v89.js → tool-dwxkhmt2.js} +21 -23
- package/dist/chunks/tool-e07q2w5p.js +83 -0
- package/dist/chunks/{instruction-discovery-bzfg3f7z.js → tool-e4vy1v26.js} +92 -40
- package/dist/chunks/{instruction-discovery-e834z07m.js → tool-e834z07m.js} +1 -1
- package/dist/chunks/{instruction-discovery-2ph54kq6.js → tool-edkh5za3.js} +3 -3
- package/dist/chunks/{instruction-discovery-cqxf2v2j.js → tool-ewr5k9wg.js} +8 -8
- package/dist/chunks/{instruction-discovery-xac4ky40.js → tool-f1kzydc9.js} +30 -29
- package/dist/chunks/{instruction-discovery-f0st8ac1.js → tool-f449218g.js} +3 -3
- package/dist/chunks/{instruction-discovery-5t4dhsbz.js → tool-f68rfrfr.js} +38 -41
- package/dist/chunks/{instruction-discovery-w194z9kg.js → tool-f8jj8vg7.js} +12 -12
- package/dist/chunks/{instruction-discovery-fffv3p7h.js → tool-fffv3p7h.js} +1 -1
- package/dist/chunks/tool-fkpq3x5p.js +36 -0
- package/dist/chunks/{instruction-discovery-7yv7aars.js → tool-g2pxrbdf.js} +105 -87
- package/dist/chunks/{instruction-discovery-2p8pcvpp.js → tool-g3b4788n.js} +33 -21
- package/dist/chunks/{instruction-discovery-mfa5g8gf.js → tool-ge4qdnbb.js} +28 -25
- package/dist/chunks/{instruction-discovery-998yhzzq.js → tool-gg8p9cgs.js} +24 -18
- package/dist/chunks/{instruction-discovery-jzrtge32.js → tool-gjasn01h.js} +4 -4
- package/dist/chunks/{instruction-discovery-62mdyzxb.js → tool-gn0hevf2.js} +13 -13
- package/dist/chunks/{instruction-discovery-kdmjmd4e.js → tool-gtqjgkpw.js} +1 -1
- package/dist/chunks/{instruction-discovery-mjatteds.js → tool-h0ya90rh.js} +19 -15
- package/dist/chunks/{instruction-discovery-d63q5jb9.js → tool-h8wtbm19.js} +44 -44
- package/dist/chunks/{instruction-discovery-c3cfh5w6.js → tool-hdfrs5mg.js} +5 -5
- package/dist/chunks/{instruction-discovery-6pjqjmy2.js → tool-hpg1pkwy.js} +2 -2
- package/dist/chunks/{instruction-discovery-d0bfceqm.js → tool-hs9cwcgs.js} +30 -30
- package/dist/chunks/{instruction-discovery-7ayzy530.js → tool-hy05jz59.js} +4 -4
- package/dist/chunks/{instruction-discovery-8a6bse1c.js → tool-j04c4e1z.js} +22 -22
- package/dist/chunks/{instruction-discovery-7m02jy4j.js → tool-j3xa31ke.js} +17 -17
- package/dist/chunks/tool-j56qcejd.js +517 -0
- package/dist/chunks/tool-j775gmwt.js +171 -0
- package/dist/chunks/{instruction-discovery-91rj84md.js → tool-jfaecv01.js} +2 -2
- package/dist/chunks/{instruction-discovery-043wk7y2.js → tool-jhz9911s.js} +46 -31
- package/dist/chunks/{instruction-discovery-pd3xbwyj.js → tool-jsqg4353.js} +15 -15
- package/dist/chunks/{instruction-discovery-rjw99gz0.js → tool-jszqqvxf.js} +9 -9
- package/dist/chunks/{instruction-discovery-g5h9c0rr.js → tool-jtnps1zs.js} +2 -2
- package/dist/chunks/tool-jwr30sdr.js +13 -0
- package/dist/chunks/{instruction-discovery-08c8nzsh.js → tool-jz5b6eqf.js} +32 -26
- package/dist/chunks/{instruction-discovery-fhjfpzy5.js → tool-k66e5v3s.js} +13 -13
- package/dist/chunks/{instruction-discovery-k814nvkf.js → tool-k814nvkf.js} +1 -1
- package/dist/chunks/{instruction-discovery-4shrmavh.js → tool-kcw9vyak.js} +11 -11
- package/dist/chunks/{instruction-discovery-k5dps1se.js → tool-kh9rt25c.js} +11 -11
- package/dist/chunks/{instruction-discovery-5fkm8khv.js → tool-ks0qaf84.js} +23 -21
- package/dist/chunks/{instruction-discovery-t31xmjpq.js → tool-ks473cwm.js} +22 -22
- package/dist/chunks/tool-kt3bjfbg.js +26 -0
- package/dist/chunks/{instruction-discovery-6pg400w5.js → tool-kzvqqj4g.js} +24 -24
- package/dist/chunks/{instruction-discovery-m1714858.js → tool-m1714858.js} +1 -1
- package/dist/chunks/{instruction-discovery-7d2ezwbt.js → tool-m89ew3ks.js} +33 -33
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-ad4wbrpy.js → tool-maq43m3m.js} +11 -11
- package/dist/chunks/{instruction-discovery-zhtsgqh5.js → tool-mpvgefqy.js} +4 -4
- package/dist/chunks/tool-mrzap57y.js +295 -0
- package/dist/chunks/{instruction-discovery-pk22050n.js → tool-mvzrjhep.js} +2 -2
- package/dist/chunks/{instruction-discovery-1dqke238.js → tool-n0w6tq5t.js} +8 -8
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → tool-ncqqe42p.js} +2 -2
- package/dist/chunks/{instruction-discovery-exc8xa65.js → tool-nfga29bv.js} +31 -30
- package/dist/chunks/{instruction-discovery-8k3r5dp0.js → tool-nfk1y8jw.js} +26 -26
- package/dist/chunks/{instruction-discovery-hxbv21kt.js → tool-nfq3amnp.js} +31 -30
- package/dist/chunks/{instruction-discovery-b8mk3enz.js → tool-nh9ma6fe.js} +11 -11
- package/dist/chunks/{instruction-discovery-f8fq6sgx.js → tool-nn3qjkhj.js} +24 -24
- package/dist/chunks/{instruction-discovery-w0ap69e3.js → tool-nq0efya9.js} +7 -7
- package/dist/chunks/{instruction-discovery-c2sed5cq.js → tool-nvxqht09.js} +3 -3
- package/dist/chunks/{instruction-discovery-jzmsqkqv.js → tool-nyw2x12k.js} +1 -1
- package/dist/chunks/{instruction-discovery-6z2tyrnm.js → tool-nz89qvcx.js} +32 -30
- package/dist/chunks/{instruction-discovery-p015t6z3.js → tool-p015t6z3.js} +2 -2
- package/dist/chunks/{instruction-discovery-p8t554mv.js → tool-p56gnsnx.js} +29 -29
- package/dist/chunks/tool-p71gwv9c.js +153 -0
- package/dist/chunks/{instruction-discovery-1yq9hg58.js → tool-p7vhpwh8.js} +5 -5
- package/dist/chunks/{instruction-discovery-0mhrw39n.js → tool-p84syj9g.js} +31 -29
- package/dist/chunks/{instruction-discovery-w7zjqt6n.js → tool-pbbktnbz.js} +6 -6
- package/dist/chunks/{instruction-discovery-m46e9dn8.js → tool-pbwrhxm9.js} +19 -19
- package/dist/chunks/{instruction-discovery-t633519e.js → tool-pckyv4f2.js} +36 -36
- package/dist/chunks/{instruction-discovery-b9p9sb5m.js → tool-pfnzsr07.js} +19 -19
- package/dist/chunks/{instruction-discovery-3z193f8y.js → tool-pfstxkm2.js} +1 -1
- package/dist/chunks/tool-pjtyf8t7.js +133 -0
- package/dist/chunks/{instruction-discovery-pknna89w.js → tool-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-e65cdmhb.js → tool-pnwsrq7c.js} +11 -11
- package/dist/chunks/tool-prq7xxp2.js +37 -0
- package/dist/chunks/{instruction-discovery-jjbtbvzd.js → tool-pvzzwdfq.js} +18 -18
- package/dist/chunks/{instruction-discovery-1cx70z4q.js → tool-q2z4k2x9.js} +12 -12
- package/dist/chunks/{instruction-discovery-0kjn1fz0.js → tool-q63v4kjv.js} +19 -14
- package/dist/chunks/{instruction-discovery-ta8jwj2a.js → tool-qakjdagf.js} +42 -32
- package/dist/chunks/{instruction-discovery-v4gdxem8.js → tool-qcsk8x8g.js} +113 -63
- package/dist/chunks/{instruction-discovery-4n11yhw4.js → tool-qhfm6m5r.js} +27 -25
- package/dist/chunks/tool-qp7r0hxv.js +120 -0
- package/dist/chunks/{instruction-discovery-bwg9673r.js → tool-r023m38x.js} +16 -16
- package/dist/chunks/{instruction-discovery-r0yr0wbs.js → tool-r0yr0wbs.js} +1 -1
- package/dist/chunks/{instruction-discovery-mbvnayvm.js → tool-r0yvbzfa.js} +282 -128
- package/dist/chunks/{instruction-discovery-scfq87m9.js → tool-r2z94j39.js} +6 -6
- package/dist/chunks/{instruction-discovery-tw8zr1ps.js → tool-r542h3bh.js} +5 -2
- package/dist/chunks/{instruction-discovery-1acn2yrp.js → tool-r850md5t.js} +9 -9
- package/dist/chunks/{instruction-discovery-3p713cmj.js → tool-r8dwygj6.js} +54 -54
- package/dist/chunks/{instruction-discovery-9r0x1bva.js → tool-r9zrswe1.js} +9 -9
- package/dist/chunks/{instruction-discovery-kmzgegqq.js → tool-ra6js1h8.js} +8 -8
- package/dist/chunks/{instruction-discovery-rb9dy4dg.js → tool-rb9dy4dg.js} +1 -1
- package/dist/chunks/tool-rbhebfmq.js +58 -0
- package/dist/chunks/{instruction-discovery-pmz5xcbe.js → tool-rgmk1r1t.js} +62 -27
- package/dist/chunks/{instruction-discovery-wbmymcea.js → tool-rjf5h5f7.js} +8 -8
- package/dist/chunks/{instruction-discovery-8d991bzx.js → tool-rr19gkj4.js} +13 -13
- package/dist/chunks/{instruction-discovery-rt5dr6hb.js → tool-rt5dr6hb.js} +1 -1
- package/dist/chunks/{instruction-discovery-a9n89zg4.js → tool-rvy8xhsv.js} +33 -32
- package/dist/chunks/{instruction-discovery-b974jjnj.js → tool-rzh929cz.js} +13 -13
- package/dist/chunks/{instruction-discovery-1m4hc5mh.js → tool-s6jj6eh0.js} +13 -13
- package/dist/chunks/{instruction-discovery-rtqr9ste.js → tool-s9zns2yk.js} +23 -30
- package/dist/chunks/tool-sa3fpqfw.js +46 -0
- package/dist/chunks/{instruction-discovery-8mhma7yw.js → tool-sa46y2cf.js} +12 -9
- package/dist/chunks/{instruction-discovery-cgwzn4dm.js → tool-sbj9xhv5.js} +79 -53
- package/dist/chunks/{instruction-discovery-7d1g1zxa.js → tool-sc5azq8x.js} +81 -48
- package/dist/chunks/{instruction-discovery-gwkpgrwq.js → tool-spqj5yby.js} +26 -26
- package/dist/chunks/{instruction-discovery-sqjzf8x2.js → tool-sqjzf8x2.js} +1 -1
- package/dist/chunks/{instruction-discovery-ssfehs1z.js → tool-ssfehs1z.js} +1 -1
- package/dist/chunks/{instruction-discovery-mn6tycs6.js → tool-st7p3hwb.js} +2 -2
- package/dist/chunks/{instruction-discovery-zkg84ctx.js → tool-svcy3p9a.js} +4 -2
- package/dist/chunks/{instruction-discovery-etwrvj6f.js → tool-sw5vdw2h.js} +12 -12
- package/dist/chunks/{instruction-discovery-k61mxn43.js → tool-sws77t7f.js} +11 -11
- package/dist/chunks/{instruction-discovery-tczq8hjw.js → tool-tczq8hjw.js} +1 -1
- package/dist/chunks/{instruction-discovery-2dh20r6m.js → tool-tt79p4vp.js} +13 -13
- package/dist/chunks/tool-twcztz12.js +479 -0
- package/dist/chunks/{instruction-discovery-twv2r8f4.js → tool-twssxy5n.js} +2 -2
- package/dist/chunks/{instruction-discovery-me5bcav6.js → tool-v2r1d0zg.js} +2 -2
- package/dist/chunks/{instruction-discovery-2annm2pv.js → tool-v6njdshh.js} +30 -25
- package/dist/chunks/{instruction-discovery-2cjmrnhq.js → tool-v91xp2c8.js} +20 -20
- package/dist/chunks/{instruction-discovery-vfjveysg.js → tool-vacfhfey.js} +10 -10
- package/dist/chunks/{instruction-discovery-pc1v25hk.js → tool-vb80j1wh.js} +4 -4
- package/dist/chunks/{instruction-discovery-veqvce7d.js → tool-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-rh2kdvv3.js → tool-vmx0pqdh.js} +30 -31
- package/dist/chunks/{instruction-discovery-mt3ysty9.js → tool-vsqvcqta.js} +7 -7
- package/dist/chunks/{instruction-discovery-6zh9yw36.js → tool-vvj7j8xf.js} +3 -3
- package/dist/chunks/{instruction-discovery-cqmfkhmj.js → tool-vvqzd10p.js} +40 -40
- package/dist/chunks/{instruction-discovery-jc512s3p.js → tool-vycsk1c7.js} +8 -8
- package/dist/chunks/{instruction-discovery-kdbzq6ew.js → tool-w08h028t.js} +9 -9
- package/dist/chunks/{instruction-discovery-r41sfy63.js → tool-w2eysc6j.js} +6 -6
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-00vfyfmg.js → tool-w9z9y32t.js} +21 -21
- package/dist/chunks/{instruction-discovery-wakvkjy4.js → tool-wakvkjy4.js} +1 -1
- package/dist/chunks/{instruction-discovery-wd87259q.js → tool-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-n0p0277s.js → tool-wnhgecwx.js} +35 -4
- package/dist/chunks/{instruction-discovery-fznmdakp.js → tool-wr3re1en.js} +4 -4
- package/dist/chunks/tool-wz464gjx.js +42 -0
- package/dist/chunks/{instruction-discovery-hdgh8tc2.js → tool-x75vegnr.js} +13 -11
- package/dist/chunks/{instruction-discovery-jf30r1rb.js → tool-xasx590j.js} +7 -7
- package/dist/chunks/{instruction-discovery-5v9evq2g.js → tool-xhrs65th.js} +7 -7
- package/dist/chunks/{instruction-discovery-ygtqa21c.js → tool-xpx0z35b.js} +11 -11
- package/dist/chunks/{instruction-discovery-v466f70q.js → tool-xqxzn5yn.js} +14 -14
- package/dist/chunks/{instruction-discovery-jneg3k74.js → tool-xt0z8zst.js} +6 -6
- package/dist/chunks/{instruction-discovery-55tcnysh.js → tool-xw4ev616.js} +12 -12
- package/dist/chunks/{instruction-discovery-ekeaw6g8.js → tool-y420wvgt.js} +30 -30
- package/dist/chunks/{instruction-discovery-a6r83rnm.js → tool-y5kjjy07.js} +24 -24
- package/dist/chunks/{instruction-discovery-kb0avjr6.js → tool-y7287ygs.js} +6 -6
- package/dist/chunks/tool-yara3q77.js +132 -0
- package/dist/chunks/{instruction-discovery-yb20nhc3.js → tool-yb20nhc3.js} +1 -1
- package/dist/chunks/{instruction-discovery-t8qa7zg5.js → tool-ycd18cxa.js} +7 -7
- package/dist/chunks/{instruction-discovery-wp4rg1a9.js → tool-ymky0t0b.js} +5 -5
- package/dist/chunks/{instruction-discovery-n5194rg1.js → tool-yqsmg75a.js} +64 -30
- package/dist/chunks/{instruction-discovery-2m2g9ynh.js → tool-yqveydy6.js} +4 -4
- package/dist/chunks/{instruction-discovery-vp60xasa.js → tool-yxjvbhxs.js} +4 -4
- package/dist/chunks/{instruction-discovery-ddbr5e5j.js → tool-yytcp89d.js} +25 -25
- package/dist/chunks/{instruction-discovery-z81weg6a.js → tool-yzaa036j.js} +32 -32
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-z38nccrw.js → tool-z38nccrw.js} +1 -1
- package/dist/chunks/{instruction-discovery-fnw4y167.js → tool-zdkwz0rs.js} +5 -8
- package/dist/chunks/tool-zfjx7vmh.js +257 -0
- package/dist/chunks/{instruction-discovery-4xvmh7wp.js → tool-zgkm4kzm.js} +3 -3
- package/dist/chunks/{instruction-discovery-psq905b5.js → tool-zw3yjf62.js} +13 -13
- package/dist/chunks/{instruction-discovery-r6ff3mpm.js → tool-zyqv3h6k.js} +8 -8
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -85
- package/dist/config/discovery.js +90 -84
- package/dist/config/integration.js +14 -0
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +109 -103
- package/dist/config/plugin/agent.js +123 -118
- package/dist/config/plugin/command.js +221 -214
- package/dist/config/plugin/compaction.js +162 -155
- package/dist/config/plugin/compatibility.js +142 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -117
- package/dist/config/plugin/image.js +121 -116
- package/dist/config/plugin/instruction.js +121 -116
- package/dist/config/plugin/location-watcher.js +121 -116
- package/dist/config/plugin/mcp.js +130 -125
- package/dist/config/plugin/policy.js +123 -117
- package/dist/config/plugin/provider.js +124 -116
- package/dist/config/plugin/reference.js +123 -118
- package/dist/config/plugin/shell.js +121 -116
- package/dist/config/plugin/skill-file.js +138 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +145 -138
- package/dist/config/plugin/snapshot.js +121 -116
- package/dist/config/plugin/source.js +124 -119
- package/dist/config/plugin/tool-output.js +122 -117
- package/dist/config/plugin/websearch.js +120 -115
- package/dist/config/plugin/worktree.js +123 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -121
- package/dist/console-access.js +12 -0
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -79
- package/dist/database/database.js +78 -74
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +6 -0
- package/dist/database/migration/20261024175301_drop_session_allowance.js +6 -0
- package/dist/database/migration/20261025123711_blob.js +6 -0
- package/dist/database/migration/20261025154125_drop_session_pending.js +6 -0
- package/dist/database/migration.gen.js +55 -51
- package/dist/database/migration.js +57 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +163 -89
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +386 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +3 -1
- package/dist/environment/index.js +104 -96
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -76
- package/dist/file-access.js +148 -106
- package/dist/file-mutation.js +102 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +221 -0
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +232 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +109 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +110 -104
- package/dist/form.js +80 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -89
- package/dist/generate.js +125 -111
- package/dist/git.js +13 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -95
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon-normalize.js +12 -0
- package/dist/image/photon-worker.js +19 -0
- package/dist/image/photon.js +125 -79
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +373 -360
- package/dist/instruction-discovery.js +92 -88
- package/dist/instructions/builtins.js +91 -85
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -87
- package/dist/job.js +84 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -75
- package/dist/location-activity.js +168 -163
- package/dist/location-lifecycle.js +142 -109
- package/dist/location-service-map.js +94 -88
- package/dist/location-services.js +370 -357
- package/dist/location.js +97 -91
- package/dist/managed-policy.js +5 -4
- package/dist/mcp/client.js +146 -108
- package/dist/mcp/index.js +115 -109
- package/dist/mcp/instructions.js +166 -138
- package/dist/mcp/oauth.js +93 -83
- package/dist/mcp/socket-client.js +71 -0
- package/dist/mcp/stdio.js +98 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -95
- package/dist/model-resolver.js +109 -103
- package/dist/model-retry.js +4 -2
- package/dist/model.js +108 -100
- package/dist/models-dev/v1.js +8 -0
- package/dist/models-dev.js +120 -111
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +151 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -77
- package/dist/plugin/agent.js +82 -78
- package/dist/plugin/command.js +110 -104
- package/dist/plugin/hooks.js +3 -3
- package/dist/plugin/host.js +227 -220
- package/dist/plugin/identity.js +5 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -98
- package/dist/plugin/module.js +123 -117
- package/dist/plugin/optimize.js +5 -3
- package/dist/plugin/plan.js +138 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -92
- package/dist/plugin/provider/azure.js +121 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -97
- package/dist/plugin/provider/gitlab.js +101 -95
- package/dist/plugin/provider/google-vertex.js +118 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -80
- package/dist/plugin/provider/lmstudio.js +130 -125
- package/dist/plugin/provider/local.js +127 -122
- package/dist/plugin/provider/modal.js +100 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -125
- package/dist/plugin/provider/openai-context-caps.js +103 -0
- package/dist/plugin/provider/openai.js +121 -116
- package/dist/plugin/provider/opencode-legacy.js +119 -0
- package/dist/plugin/provider/opencode.js +127 -103
- package/dist/plugin/provider/openrouter.js +99 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -115
- package/dist/plugin/provider/vercel.js +98 -92
- package/dist/plugin/provider/vllm.js +130 -125
- package/dist/plugin/provider/xai.js +99 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -170
- package/dist/plugin/sdk.js +82 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +362 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -88
- package/dist/plugin/vcs/hg.js +94 -88
- package/dist/plugin/verbosity.js +101 -95
- package/dist/plugin/warming.js +119 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +236 -227
- package/dist/project/icon.js +14 -0
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +94 -88
- package/dist/provider.js +105 -97
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +11 -4
- package/dist/pty.js +98 -93
- package/dist/reference/instructions.js +96 -91
- package/dist/reference.js +98 -93
- package/dist/repository-cache.js +88 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -97
- package/dist/rpc.js +96 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +157 -0
- package/dist/session/command.js +80 -76
- package/dist/session/compaction.js +162 -136
- package/dist/session/context.js +188 -164
- package/dist/session/diff.js +96 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -224
- package/dist/session/execution.js +154 -130
- package/dist/session/generate.js +190 -166
- package/dist/session/history.js +134 -14
- package/dist/session/inbox.js +146 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -132
- package/dist/session/projector.js +134 -91
- package/dist/session/prompt.js +140 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -101
- package/dist/session/runner/publish-llm-event.js +141 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -128
- package/dist/session/runner/to-llm-message.js +128 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -165
- package/dist/session/shell.js +135 -130
- package/dist/session/skill.js +139 -105
- package/dist/session/sql.js +10 -8
- package/dist/session/stats.js +81 -77
- package/dist/session/store.js +133 -87
- package/dist/session/stored.js +23 -0
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +215 -208
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +192 -168
- package/dist/session/to-session-error.js +140 -114
- package/dist/session/transfer.js +230 -223
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +137 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +141 -107
- package/dist/skill.js +150 -116
- package/dist/snapshot.js +99 -93
- package/dist/state.js +3 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +167 -139
- package/dist/tool/plugin/edit.js +150 -116
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -126
- package/dist/tool/plugin/grep.js +160 -126
- package/dist/tool/plugin/mcp-resource.js +154 -126
- package/dist/tool/plugin/opencode.js +153 -111
- package/dist/tool/plugin/patch.js +156 -122
- package/dist/tool/plugin/question.js +138 -105
- package/dist/tool/plugin/read.js +161 -127
- package/dist/tool/plugin/shell.js +222 -215
- package/dist/tool/plugin/skill.js +147 -113
- package/dist/tool/plugin/subagent.js +226 -219
- package/dist/tool/plugin/todo.js +145 -138
- package/dist/tool/plugin/webfetch.js +147 -113
- package/dist/tool/plugin/websearch.js +145 -114
- package/dist/tool/plugin/write.js +158 -124
- package/dist/tool/read-filesystem.js +108 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/agent.d.ts +5 -0
- package/dist/types/aisdk.d.ts +1 -1
- package/dist/types/config/integration.d.ts +81 -0
- package/dist/types/config/plugin/command.d.ts +1 -1
- package/dist/types/config/plugin/provider.d.ts +8 -0
- package/dist/types/config.d.ts +8 -1
- package/dist/types/console-access.d.ts +7 -0
- package/dist/types/credential.d.ts +2 -0
- package/dist/types/database/migration/20261024002554_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261024175301_drop_session_allowance.d.ts +3 -0
- package/dist/types/database/migration/20261025123711_blob.d.ts +3 -0
- package/dist/types/database/migration/20261025154125_drop_session_pending.d.ts +3 -0
- package/dist/types/database/v1-migration.bun.d.ts +4 -2
- package/dist/types/effect/app-node-platform.d.ts +3 -2
- package/dist/types/environment/files.d.ts +2 -0
- package/dist/types/environment/index.d.ts +1 -1
- package/dist/types/file-access.d.ts +3 -3
- package/dist/types/filesystem/fff.d.ts +1 -0
- package/dist/types/filesystem/file-watch.d.ts +33 -0
- package/dist/types/filesystem/search.d.ts +3 -0
- package/dist/types/generate.d.ts +39 -7
- package/dist/types/git.d.ts +17 -2
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +2 -2
- package/dist/types/image/photon-normalize.d.ts +28 -0
- package/dist/types/image/photon-wasm.bun.d.ts +1 -1
- package/dist/types/image/photon-worker.d.ts +12 -0
- package/dist/types/image/photon.d.ts +14 -4
- package/dist/types/instance/service.d.ts +2 -0
- package/dist/types/instance.d.ts +2 -2
- package/dist/types/job.d.ts +1 -4
- package/dist/types/mcp/client.d.ts +10 -281
- package/dist/types/mcp/index.d.ts +9 -2
- package/dist/types/mcp/socket-client.d.ts +28 -0
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +8 -1
- package/dist/types/model-retry.d.ts +3 -1
- package/dist/types/model.d.ts +28 -1
- package/dist/types/models-dev/v1.d.ts +3 -0
- package/dist/types/models-dev.d.ts +3 -3
- package/dist/types/permission.d.ts +0 -1
- package/dist/types/persistent-pty/daemon.d.ts +0 -6
- package/dist/types/plugin/host.d.ts +3 -2
- package/dist/types/plugin/internal.d.ts +2 -3
- package/dist/types/plugin/module.d.ts +10 -0
- package/dist/types/plugin/optimize.d.ts +26 -0
- package/dist/types/plugin/provider/azure.d.ts +2 -2
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +1 -1
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/google-vertex.d.ts +1 -1
- package/dist/types/plugin/provider/modal.d.ts +1 -1
- package/dist/types/plugin/provider/openai-context-caps.d.ts +2 -0
- package/dist/types/plugin/provider/openai.d.ts +1 -1
- package/dist/types/plugin/provider/opencode-legacy.d.ts +69 -0
- package/dist/types/plugin/provider/opencode.d.ts +2 -2
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/service.d.ts +12 -0
- package/dist/types/plugin.d.ts +1 -1
- package/dist/types/project/icon.d.ts +26 -0
- package/dist/types/project.d.ts +9 -4
- package/dist/types/provider.d.ts +33 -3
- package/dist/types/pty/ticket.d.ts +7 -1
- package/dist/types/ripgrep/binary.d.ts +1 -0
- package/dist/types/rpc.d.ts +2 -0
- package/dist/types/session/blob.d.ts +2687 -0
- package/dist/types/session/compaction.d.ts +18 -8
- package/dist/types/session/diff.d.ts +0 -1
- package/dist/types/session/error.d.ts +6 -16
- package/dist/types/session/generate.d.ts +2 -2
- package/dist/types/session/history.d.ts +2348 -293
- package/dist/types/session/inbox.d.ts +74 -115
- package/dist/types/session/instruction-entry.d.ts +1 -1
- package/dist/types/session/model-request.d.ts +2 -2
- package/dist/types/session/prompt.d.ts +6 -2
- package/dist/types/session/recent-text.d.ts +2 -1
- package/dist/types/session/runner/index.d.ts +1 -1
- package/dist/types/session/runner/model.d.ts +1 -2
- package/dist/types/session/runner/publish-llm-event.d.ts +4 -2
- package/dist/types/session/runner/retry.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +2 -2
- package/dist/types/session/runner/to-llm-message.d.ts +1 -1
- package/dist/types/session/schema.d.ts +10 -12
- package/dist/types/session/sql.d.ts +196 -122
- package/dist/types/session/stats.d.ts +12 -11
- package/dist/types/session/store.d.ts +7 -6
- package/dist/types/session/stored.d.ts +462 -0
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/to-session-error.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +23 -25
- package/dist/types/session/usage.d.ts +1 -1
- package/dist/types/session.d.ts +9 -6
- package/dist/types/shell/parser-wasm.bun.d.ts +3 -3
- package/dist/types/state.d.ts +6 -0
- package/dist/types/tool/plugin/edit.d.ts +2 -1
- package/dist/types/tool/plugin/glob.d.ts +1 -1
- package/dist/types/tool/plugin/grep.d.ts +1 -1
- package/dist/types/tool/plugin/opencode.d.ts +0 -2
- package/dist/types/tool/plugin/patch.d.ts +2 -1
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -3
- package/dist/types/tool/plugin/write.d.ts +1 -1
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/tool.d.ts +1 -1
- package/dist/types/usage-limits.d.ts +103 -0
- package/dist/types/util/git-executable.d.ts +6 -2
- package/dist/types/v1/config/mcp.d.ts +4 -0
- package/dist/types/v1/config/migrate.d.ts +3 -1
- package/dist/types/vcs.d.ts +3 -2
- package/dist/types/voice.d.ts +3 -31
- package/dist/types/wellknown/plugin.d.ts +1 -1
- package/dist/usage-limits.js +100 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +5 -2
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +100 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +101 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +99 -91
- package/dist/voice.js +92 -88
- package/dist/websearch.js +88 -84
- package/dist/wellknown/plugin.js +82 -78
- package/dist/wellknown.js +87 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +93 -87
- package/dist/worktree.js +100 -94
- package/package.json +15 -13
- package/dist/chunks/instruction-discovery-8wc7jg0k.js +0 -26
- package/dist/chunks/instruction-discovery-98t435zw.js +0 -219
- package/dist/chunks/instruction-discovery-e2mf0cbs.js +0 -321
- package/dist/chunks/instruction-discovery-ef5x83kb.js +0 -15
- package/dist/chunks/instruction-discovery-grzehpz7.js +0 -18
- package/dist/chunks/instruction-discovery-h50tsds5.js +0 -257
- package/dist/chunks/instruction-discovery-k6hny6gd.js +0 -107
- package/dist/chunks/instruction-discovery-mg3zv8ep.js +0 -82
- package/dist/chunks/instruction-discovery-n4jvz8kw.js +0 -39
- package/dist/chunks/instruction-discovery-wcs0vwrk.js +0 -621
- package/dist/chunks/instruction-discovery-zyp4ce26.js +0 -523
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → tool-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → tool-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2bv980vf.js → tool-2bv980vf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → tool-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → tool-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → tool-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → tool-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → tool-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → tool-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → tool-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → tool-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-84wd9syh.js → tool-84wd9syh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → tool-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a058387c.js → tool-a058387c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → tool-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → tool-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → tool-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → tool-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → tool-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → tool-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → tool-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → tool-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → tool-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → tool-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → tool-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → tool-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hcxmzztb.js → tool-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → tool-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jze0r7bz.js → tool-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-m18g726c.js → tool-m18g726c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → tool-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → tool-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → tool-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ve7vex1e.js → tool-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → tool-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → tool-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → tool-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → tool-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → tool-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → tool-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → tool-z9919s4g.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Message } from "@opencode/ai";
|
|
1
|
+
import { Message } from "@opencode/ai/effect";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
3
|
import type { Model } from "@opencode/schema/model";
|
|
4
4
|
import { MessageDecodeError } from "./error.js";
|
|
@@ -27,10 +27,9 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
27
27
|
readonly time: {
|
|
28
28
|
readonly created: import("effect/DateTime").Utc;
|
|
29
29
|
};
|
|
30
|
-
readonly type: "
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly summary: string;
|
|
30
|
+
readonly type: "agent-switched";
|
|
31
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
32
|
+
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
34
33
|
} | {
|
|
35
34
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
36
35
|
readonly metadata?: {
|
|
@@ -39,28 +38,40 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
39
38
|
readonly time: {
|
|
40
39
|
readonly created: import("effect/DateTime").Utc;
|
|
41
40
|
};
|
|
42
|
-
readonly type: "
|
|
43
|
-
readonly
|
|
44
|
-
|
|
45
|
-
readonly
|
|
46
|
-
readonly
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
readonly read: number;
|
|
50
|
-
readonly write: number;
|
|
51
|
-
};
|
|
52
|
-
} | undefined;
|
|
53
|
-
readonly status: "completed";
|
|
54
|
-
readonly reason: "auto" | "manual";
|
|
55
|
-
readonly model?: {
|
|
41
|
+
readonly type: "model-switched";
|
|
42
|
+
readonly model: {
|
|
43
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
44
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
45
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
46
|
+
};
|
|
47
|
+
readonly previous?: {
|
|
56
48
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
57
49
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
58
50
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
59
51
|
} | undefined;
|
|
60
|
-
|
|
52
|
+
} | {
|
|
53
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
54
|
+
readonly metadata?: {
|
|
61
55
|
readonly [x: string]: unknown;
|
|
62
56
|
} | undefined;
|
|
63
|
-
readonly
|
|
57
|
+
readonly time: {
|
|
58
|
+
readonly created: import("effect/DateTime").Utc;
|
|
59
|
+
};
|
|
60
|
+
readonly type: "location-switched";
|
|
61
|
+
readonly location: {
|
|
62
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
63
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
64
|
+
};
|
|
65
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
66
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
67
|
+
readonly previous?: {
|
|
68
|
+
readonly location: {
|
|
69
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
70
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
71
|
+
};
|
|
72
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
73
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
74
|
+
} | undefined;
|
|
64
75
|
} | {
|
|
65
76
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
66
77
|
readonly metadata?: {
|
|
@@ -69,28 +80,54 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
69
80
|
readonly time: {
|
|
70
81
|
readonly created: import("effect/DateTime").Utc;
|
|
71
82
|
};
|
|
72
|
-
readonly
|
|
73
|
-
readonly
|
|
74
|
-
|
|
75
|
-
readonly
|
|
76
|
-
readonly
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
readonly
|
|
80
|
-
readonly
|
|
83
|
+
readonly text: string;
|
|
84
|
+
readonly files?: readonly {
|
|
85
|
+
readonly data: string;
|
|
86
|
+
readonly mime: string;
|
|
87
|
+
readonly source: {
|
|
88
|
+
readonly type: "inline";
|
|
89
|
+
} | {
|
|
90
|
+
readonly type: "uri";
|
|
91
|
+
readonly uri: string;
|
|
81
92
|
};
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
readonly status?: number | undefined;
|
|
89
|
-
readonly response?: {
|
|
90
|
-
readonly body: string;
|
|
93
|
+
readonly name?: string | undefined;
|
|
94
|
+
readonly description?: string | undefined;
|
|
95
|
+
readonly mention?: {
|
|
96
|
+
readonly start: number;
|
|
97
|
+
readonly end: number;
|
|
98
|
+
readonly text: string;
|
|
91
99
|
} | undefined;
|
|
92
|
-
|
|
100
|
+
}[] | undefined;
|
|
101
|
+
readonly agents?: readonly {
|
|
102
|
+
readonly name: string;
|
|
103
|
+
readonly mention?: {
|
|
104
|
+
readonly start: number;
|
|
105
|
+
readonly end: number;
|
|
106
|
+
readonly text: string;
|
|
107
|
+
} | undefined;
|
|
108
|
+
}[] | undefined;
|
|
109
|
+
readonly skills?: readonly {
|
|
110
|
+
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
111
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
112
|
+
readonly text?: string | undefined;
|
|
113
|
+
readonly mention?: {
|
|
114
|
+
readonly start: number;
|
|
115
|
+
readonly end: number;
|
|
116
|
+
readonly text: string;
|
|
117
|
+
} | undefined;
|
|
118
|
+
}[] | undefined;
|
|
119
|
+
readonly type: "user";
|
|
120
|
+
} | {
|
|
121
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
122
|
+
readonly metadata?: {
|
|
123
|
+
readonly [x: string]: unknown;
|
|
124
|
+
} | undefined;
|
|
125
|
+
readonly time: {
|
|
126
|
+
readonly created: import("effect/DateTime").Utc;
|
|
93
127
|
};
|
|
128
|
+
readonly text: string;
|
|
129
|
+
readonly description?: string | undefined;
|
|
130
|
+
readonly type: "synthetic";
|
|
94
131
|
} | {
|
|
95
132
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
96
133
|
readonly metadata?: {
|
|
@@ -99,9 +136,41 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
99
136
|
readonly time: {
|
|
100
137
|
readonly created: import("effect/DateTime").Utc;
|
|
101
138
|
};
|
|
102
|
-
readonly type: "
|
|
103
|
-
readonly
|
|
104
|
-
readonly
|
|
139
|
+
readonly type: "system";
|
|
140
|
+
readonly text: string;
|
|
141
|
+
readonly description?: string | undefined;
|
|
142
|
+
} | {
|
|
143
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
144
|
+
readonly metadata?: {
|
|
145
|
+
readonly [x: string]: unknown;
|
|
146
|
+
} | undefined;
|
|
147
|
+
readonly time: {
|
|
148
|
+
readonly created: import("effect/DateTime").Utc;
|
|
149
|
+
};
|
|
150
|
+
readonly type: "skill";
|
|
151
|
+
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
152
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
153
|
+
readonly text: string;
|
|
154
|
+
} | {
|
|
155
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
156
|
+
readonly metadata?: {
|
|
157
|
+
readonly [x: string]: unknown;
|
|
158
|
+
} | undefined;
|
|
159
|
+
readonly type: "shell";
|
|
160
|
+
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
161
|
+
readonly command: string;
|
|
162
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
163
|
+
readonly exit?: number | undefined;
|
|
164
|
+
readonly output?: {
|
|
165
|
+
readonly output: string;
|
|
166
|
+
readonly cursor: number;
|
|
167
|
+
readonly size: number;
|
|
168
|
+
readonly truncated: boolean;
|
|
169
|
+
} | undefined;
|
|
170
|
+
readonly time: {
|
|
171
|
+
readonly created: import("effect/DateTime").Utc;
|
|
172
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
173
|
+
};
|
|
105
174
|
} | {
|
|
106
175
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
107
176
|
readonly metadata?: {
|
|
@@ -262,6 +331,78 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
262
331
|
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
263
332
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
264
333
|
};
|
|
334
|
+
} | {
|
|
335
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
336
|
+
readonly metadata?: {
|
|
337
|
+
readonly [x: string]: unknown;
|
|
338
|
+
} | undefined;
|
|
339
|
+
readonly time: {
|
|
340
|
+
readonly created: import("effect/DateTime").Utc;
|
|
341
|
+
};
|
|
342
|
+
readonly type: "compaction";
|
|
343
|
+
readonly status: "running";
|
|
344
|
+
readonly reason: "auto" | "manual";
|
|
345
|
+
readonly summary: string;
|
|
346
|
+
} | {
|
|
347
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
348
|
+
readonly metadata?: {
|
|
349
|
+
readonly [x: string]: unknown;
|
|
350
|
+
} | undefined;
|
|
351
|
+
readonly time: {
|
|
352
|
+
readonly created: import("effect/DateTime").Utc;
|
|
353
|
+
};
|
|
354
|
+
readonly type: "compaction";
|
|
355
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
356
|
+
readonly tokens?: {
|
|
357
|
+
readonly input: number;
|
|
358
|
+
readonly output: number;
|
|
359
|
+
readonly reasoning: number;
|
|
360
|
+
readonly cache: {
|
|
361
|
+
readonly read: number;
|
|
362
|
+
readonly write: number;
|
|
363
|
+
};
|
|
364
|
+
} | undefined;
|
|
365
|
+
readonly status: "completed";
|
|
366
|
+
readonly reason: "auto" | "manual";
|
|
367
|
+
readonly model?: {
|
|
368
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
369
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
370
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
371
|
+
} | undefined;
|
|
372
|
+
readonly native?: {
|
|
373
|
+
readonly [x: string]: unknown;
|
|
374
|
+
} | undefined;
|
|
375
|
+
readonly summary: string;
|
|
376
|
+
} | {
|
|
377
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
378
|
+
readonly metadata?: {
|
|
379
|
+
readonly [x: string]: unknown;
|
|
380
|
+
} | undefined;
|
|
381
|
+
readonly time: {
|
|
382
|
+
readonly created: import("effect/DateTime").Utc;
|
|
383
|
+
};
|
|
384
|
+
readonly type: "compaction";
|
|
385
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
386
|
+
readonly tokens?: {
|
|
387
|
+
readonly input: number;
|
|
388
|
+
readonly output: number;
|
|
389
|
+
readonly reasoning: number;
|
|
390
|
+
readonly cache: {
|
|
391
|
+
readonly read: number;
|
|
392
|
+
readonly write: number;
|
|
393
|
+
};
|
|
394
|
+
} | undefined;
|
|
395
|
+
readonly status: "failed";
|
|
396
|
+
readonly reason: "auto" | "manual";
|
|
397
|
+
readonly error: {
|
|
398
|
+
readonly type: string;
|
|
399
|
+
readonly message: string;
|
|
400
|
+
readonly status?: number | undefined;
|
|
401
|
+
readonly response?: {
|
|
402
|
+
readonly body: string;
|
|
403
|
+
} | undefined;
|
|
404
|
+
readonly retryAfterMs?: number | undefined;
|
|
405
|
+
};
|
|
265
406
|
} | {
|
|
266
407
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
267
408
|
readonly metadata?: {
|
|
@@ -281,7 +422,8 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
281
422
|
} | undefined;
|
|
282
423
|
readonly retryAfterMs?: number | undefined;
|
|
283
424
|
} | undefined;
|
|
284
|
-
}
|
|
425
|
+
};
|
|
426
|
+
export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
|
|
285
427
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
286
428
|
readonly metadata?: {
|
|
287
429
|
readonly [x: string]: unknown;
|
|
@@ -289,21 +431,9 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
289
431
|
readonly time: {
|
|
290
432
|
readonly created: import("effect/DateTime").Utc;
|
|
291
433
|
};
|
|
292
|
-
readonly type: "
|
|
293
|
-
readonly
|
|
294
|
-
|
|
295
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
296
|
-
};
|
|
297
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
298
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
299
|
-
readonly previous?: {
|
|
300
|
-
readonly location: {
|
|
301
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
302
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
303
|
-
};
|
|
304
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
305
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
306
|
-
} | undefined;
|
|
434
|
+
readonly type: "agent-switched";
|
|
435
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
436
|
+
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
307
437
|
} | {
|
|
308
438
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
309
439
|
readonly metadata?: {
|
|
@@ -323,26 +453,6 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
323
453
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
324
454
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
325
455
|
} | undefined;
|
|
326
|
-
} | {
|
|
327
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
328
|
-
readonly metadata?: {
|
|
329
|
-
readonly [x: string]: unknown;
|
|
330
|
-
} | undefined;
|
|
331
|
-
readonly type: "shell";
|
|
332
|
-
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
333
|
-
readonly command: string;
|
|
334
|
-
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
335
|
-
readonly exit?: number | undefined;
|
|
336
|
-
readonly output?: {
|
|
337
|
-
readonly output: string;
|
|
338
|
-
readonly cursor: number;
|
|
339
|
-
readonly size: number;
|
|
340
|
-
readonly truncated: boolean;
|
|
341
|
-
} | undefined;
|
|
342
|
-
readonly time: {
|
|
343
|
-
readonly created: import("effect/DateTime").Utc;
|
|
344
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
345
|
-
};
|
|
346
456
|
} | {
|
|
347
457
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
348
458
|
readonly metadata?: {
|
|
@@ -351,32 +461,21 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
351
461
|
readonly time: {
|
|
352
462
|
readonly created: import("effect/DateTime").Utc;
|
|
353
463
|
};
|
|
354
|
-
readonly type: "
|
|
355
|
-
readonly
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
} | {
|
|
359
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
360
|
-
readonly metadata?: {
|
|
361
|
-
readonly [x: string]: unknown;
|
|
362
|
-
} | undefined;
|
|
363
|
-
readonly time: {
|
|
364
|
-
readonly created: import("effect/DateTime").Utc;
|
|
464
|
+
readonly type: "location-switched";
|
|
465
|
+
readonly location: {
|
|
466
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
467
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
365
468
|
};
|
|
366
|
-
readonly
|
|
367
|
-
readonly
|
|
368
|
-
readonly
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
469
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
470
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
471
|
+
readonly previous?: {
|
|
472
|
+
readonly location: {
|
|
473
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
474
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
475
|
+
};
|
|
476
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
477
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
373
478
|
} | undefined;
|
|
374
|
-
readonly time: {
|
|
375
|
-
readonly created: import("effect/DateTime").Utc;
|
|
376
|
-
};
|
|
377
|
-
readonly type: "system";
|
|
378
|
-
readonly text: string;
|
|
379
|
-
readonly description?: string | undefined;
|
|
380
479
|
} | {
|
|
381
480
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
382
481
|
readonly metadata?: {
|
|
@@ -422,8 +521,7 @@ export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inf
|
|
|
422
521
|
} | undefined;
|
|
423
522
|
}[] | undefined;
|
|
424
523
|
readonly type: "user";
|
|
425
|
-
}
|
|
426
|
-
export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
|
|
524
|
+
} | {
|
|
427
525
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
428
526
|
readonly metadata?: {
|
|
429
527
|
readonly [x: string]: unknown;
|
|
@@ -431,10 +529,9 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
431
529
|
readonly time: {
|
|
432
530
|
readonly created: import("effect/DateTime").Utc;
|
|
433
531
|
};
|
|
434
|
-
readonly
|
|
435
|
-
readonly
|
|
436
|
-
readonly
|
|
437
|
-
readonly summary: string;
|
|
532
|
+
readonly text: string;
|
|
533
|
+
readonly description?: string | undefined;
|
|
534
|
+
readonly type: "synthetic";
|
|
438
535
|
} | {
|
|
439
536
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
440
537
|
readonly metadata?: {
|
|
@@ -443,28 +540,9 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
443
540
|
readonly time: {
|
|
444
541
|
readonly created: import("effect/DateTime").Utc;
|
|
445
542
|
};
|
|
446
|
-
readonly type: "
|
|
447
|
-
readonly
|
|
448
|
-
readonly
|
|
449
|
-
readonly input: number;
|
|
450
|
-
readonly output: number;
|
|
451
|
-
readonly reasoning: number;
|
|
452
|
-
readonly cache: {
|
|
453
|
-
readonly read: number;
|
|
454
|
-
readonly write: number;
|
|
455
|
-
};
|
|
456
|
-
} | undefined;
|
|
457
|
-
readonly status: "completed";
|
|
458
|
-
readonly reason: "auto" | "manual";
|
|
459
|
-
readonly model?: {
|
|
460
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
461
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
462
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
463
|
-
} | undefined;
|
|
464
|
-
readonly native?: {
|
|
465
|
-
readonly [x: string]: unknown;
|
|
466
|
-
} | undefined;
|
|
467
|
-
readonly summary: string;
|
|
543
|
+
readonly type: "system";
|
|
544
|
+
readonly text: string;
|
|
545
|
+
readonly description?: string | undefined;
|
|
468
546
|
} | {
|
|
469
547
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
470
548
|
readonly metadata?: {
|
|
@@ -473,39 +551,30 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
473
551
|
readonly time: {
|
|
474
552
|
readonly created: import("effect/DateTime").Utc;
|
|
475
553
|
};
|
|
476
|
-
readonly type: "
|
|
477
|
-
readonly
|
|
478
|
-
readonly
|
|
479
|
-
|
|
480
|
-
readonly output: number;
|
|
481
|
-
readonly reasoning: number;
|
|
482
|
-
readonly cache: {
|
|
483
|
-
readonly read: number;
|
|
484
|
-
readonly write: number;
|
|
485
|
-
};
|
|
486
|
-
} | undefined;
|
|
487
|
-
readonly status: "failed";
|
|
488
|
-
readonly reason: "auto" | "manual";
|
|
489
|
-
readonly error: {
|
|
490
|
-
readonly type: string;
|
|
491
|
-
readonly message: string;
|
|
492
|
-
readonly status?: number | undefined;
|
|
493
|
-
readonly response?: {
|
|
494
|
-
readonly body: string;
|
|
495
|
-
} | undefined;
|
|
496
|
-
readonly retryAfterMs?: number | undefined;
|
|
497
|
-
};
|
|
554
|
+
readonly type: "skill";
|
|
555
|
+
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
556
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
557
|
+
readonly text: string;
|
|
498
558
|
} | {
|
|
499
559
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
500
560
|
readonly metadata?: {
|
|
501
561
|
readonly [x: string]: unknown;
|
|
502
562
|
} | undefined;
|
|
563
|
+
readonly type: "shell";
|
|
564
|
+
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
565
|
+
readonly command: string;
|
|
566
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
567
|
+
readonly exit?: number | undefined;
|
|
568
|
+
readonly output?: {
|
|
569
|
+
readonly output: string;
|
|
570
|
+
readonly cursor: number;
|
|
571
|
+
readonly size: number;
|
|
572
|
+
readonly truncated: boolean;
|
|
573
|
+
} | undefined;
|
|
503
574
|
readonly time: {
|
|
504
575
|
readonly created: import("effect/DateTime").Utc;
|
|
576
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
505
577
|
};
|
|
506
|
-
readonly type: "agent-switched";
|
|
507
|
-
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
508
|
-
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
509
578
|
} | {
|
|
510
579
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
511
580
|
readonly metadata?: {
|
|
@@ -674,17 +743,10 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
674
743
|
readonly time: {
|
|
675
744
|
readonly created: import("effect/DateTime").Utc;
|
|
676
745
|
};
|
|
677
|
-
readonly type: "
|
|
678
|
-
readonly
|
|
679
|
-
readonly
|
|
680
|
-
|
|
681
|
-
readonly message: string;
|
|
682
|
-
readonly status?: number | undefined;
|
|
683
|
-
readonly response?: {
|
|
684
|
-
readonly body: string;
|
|
685
|
-
} | undefined;
|
|
686
|
-
readonly retryAfterMs?: number | undefined;
|
|
687
|
-
} | undefined;
|
|
746
|
+
readonly type: "compaction";
|
|
747
|
+
readonly status: "running";
|
|
748
|
+
readonly reason: "auto" | "manual";
|
|
749
|
+
readonly summary: string;
|
|
688
750
|
} | {
|
|
689
751
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
690
752
|
readonly metadata?: {
|
|
@@ -693,60 +755,28 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
693
755
|
readonly time: {
|
|
694
756
|
readonly created: import("effect/DateTime").Utc;
|
|
695
757
|
};
|
|
696
|
-
readonly type: "
|
|
697
|
-
readonly
|
|
698
|
-
|
|
699
|
-
readonly
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
706
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
758
|
+
readonly type: "compaction";
|
|
759
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
760
|
+
readonly tokens?: {
|
|
761
|
+
readonly input: number;
|
|
762
|
+
readonly output: number;
|
|
763
|
+
readonly reasoning: number;
|
|
764
|
+
readonly cache: {
|
|
765
|
+
readonly read: number;
|
|
766
|
+
readonly write: number;
|
|
707
767
|
};
|
|
708
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
709
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
710
768
|
} | undefined;
|
|
711
|
-
|
|
712
|
-
readonly
|
|
713
|
-
readonly
|
|
714
|
-
readonly [x: string]: unknown;
|
|
715
|
-
} | undefined;
|
|
716
|
-
readonly time: {
|
|
717
|
-
readonly created: import("effect/DateTime").Utc;
|
|
718
|
-
};
|
|
719
|
-
readonly type: "model-switched";
|
|
720
|
-
readonly model: {
|
|
721
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
722
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
723
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
724
|
-
};
|
|
725
|
-
readonly previous?: {
|
|
769
|
+
readonly status: "completed";
|
|
770
|
+
readonly reason: "auto" | "manual";
|
|
771
|
+
readonly model?: {
|
|
726
772
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
727
773
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
728
774
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
729
775
|
} | undefined;
|
|
730
|
-
|
|
731
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
732
|
-
readonly metadata?: {
|
|
776
|
+
readonly native?: {
|
|
733
777
|
readonly [x: string]: unknown;
|
|
734
778
|
} | undefined;
|
|
735
|
-
readonly
|
|
736
|
-
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
737
|
-
readonly command: string;
|
|
738
|
-
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
739
|
-
readonly exit?: number | undefined;
|
|
740
|
-
readonly output?: {
|
|
741
|
-
readonly output: string;
|
|
742
|
-
readonly cursor: number;
|
|
743
|
-
readonly size: number;
|
|
744
|
-
readonly truncated: boolean;
|
|
745
|
-
} | undefined;
|
|
746
|
-
readonly time: {
|
|
747
|
-
readonly created: import("effect/DateTime").Utc;
|
|
748
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
749
|
-
};
|
|
779
|
+
readonly summary: string;
|
|
750
780
|
} | {
|
|
751
781
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
752
782
|
readonly metadata?: {
|
|
@@ -755,21 +785,28 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
755
785
|
readonly time: {
|
|
756
786
|
readonly created: import("effect/DateTime").Utc;
|
|
757
787
|
};
|
|
758
|
-
readonly type: "
|
|
759
|
-
readonly
|
|
760
|
-
readonly
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
788
|
+
readonly type: "compaction";
|
|
789
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
790
|
+
readonly tokens?: {
|
|
791
|
+
readonly input: number;
|
|
792
|
+
readonly output: number;
|
|
793
|
+
readonly reasoning: number;
|
|
794
|
+
readonly cache: {
|
|
795
|
+
readonly read: number;
|
|
796
|
+
readonly write: number;
|
|
797
|
+
};
|
|
766
798
|
} | undefined;
|
|
767
|
-
readonly
|
|
768
|
-
|
|
799
|
+
readonly status: "failed";
|
|
800
|
+
readonly reason: "auto" | "manual";
|
|
801
|
+
readonly error: {
|
|
802
|
+
readonly type: string;
|
|
803
|
+
readonly message: string;
|
|
804
|
+
readonly status?: number | undefined;
|
|
805
|
+
readonly response?: {
|
|
806
|
+
readonly body: string;
|
|
807
|
+
} | undefined;
|
|
808
|
+
readonly retryAfterMs?: number | undefined;
|
|
769
809
|
};
|
|
770
|
-
readonly text: string;
|
|
771
|
-
readonly description?: string | undefined;
|
|
772
|
-
readonly type: "synthetic";
|
|
773
810
|
} | {
|
|
774
811
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
775
812
|
readonly metadata?: {
|
|
@@ -778,22 +815,514 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
778
815
|
readonly time: {
|
|
779
816
|
readonly created: import("effect/DateTime").Utc;
|
|
780
817
|
};
|
|
781
|
-
readonly type: "
|
|
782
|
-
readonly
|
|
783
|
-
readonly
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
readonly
|
|
818
|
+
readonly type: "idle";
|
|
819
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
820
|
+
readonly error?: {
|
|
821
|
+
readonly type: string;
|
|
822
|
+
readonly message: string;
|
|
823
|
+
readonly status?: number | undefined;
|
|
824
|
+
readonly response?: {
|
|
825
|
+
readonly body: string;
|
|
826
|
+
} | undefined;
|
|
827
|
+
readonly retryAfterMs?: number | undefined;
|
|
788
828
|
} | undefined;
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
readonly
|
|
796
|
-
readonly
|
|
829
|
+
}, MessageDecodeError, never>;
|
|
830
|
+
/** Decodes rows after restoring media stored in `blob`. Reads that return media must use this. */
|
|
831
|
+
export declare const decodeMessageRows: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
832
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
833
|
+
}, rows: readonly {
|
|
834
|
+
data: Omit<{
|
|
835
|
+
readonly id: string;
|
|
836
|
+
readonly metadata?: {
|
|
837
|
+
readonly [x: string]: unknown;
|
|
838
|
+
} | undefined;
|
|
839
|
+
readonly time: {
|
|
840
|
+
readonly created: number;
|
|
841
|
+
};
|
|
842
|
+
readonly type: "agent-switched";
|
|
843
|
+
readonly agent: string;
|
|
844
|
+
readonly previous?: string | undefined;
|
|
845
|
+
}, "id" | "type"> | Omit<{
|
|
846
|
+
readonly id: string;
|
|
847
|
+
readonly metadata?: {
|
|
848
|
+
readonly [x: string]: unknown;
|
|
849
|
+
} | undefined;
|
|
850
|
+
readonly time: {
|
|
851
|
+
readonly created: number;
|
|
852
|
+
};
|
|
853
|
+
readonly type: "model-switched";
|
|
854
|
+
readonly model: {
|
|
855
|
+
readonly id: string;
|
|
856
|
+
readonly providerID: string;
|
|
857
|
+
readonly variant?: string | undefined;
|
|
858
|
+
};
|
|
859
|
+
readonly previous?: {
|
|
860
|
+
readonly id: string;
|
|
861
|
+
readonly providerID: string;
|
|
862
|
+
readonly variant?: string | undefined;
|
|
863
|
+
} | undefined;
|
|
864
|
+
}, "id" | "type"> | Omit<{
|
|
865
|
+
readonly id: string;
|
|
866
|
+
readonly metadata?: {
|
|
867
|
+
readonly [x: string]: unknown;
|
|
868
|
+
} | undefined;
|
|
869
|
+
readonly time: {
|
|
870
|
+
readonly created: number;
|
|
871
|
+
};
|
|
872
|
+
readonly type: "location-switched";
|
|
873
|
+
readonly location: {
|
|
874
|
+
readonly directory: string;
|
|
875
|
+
readonly workspaceID?: string | undefined;
|
|
876
|
+
};
|
|
877
|
+
readonly projectID?: string | undefined;
|
|
878
|
+
readonly subpath?: string | undefined;
|
|
879
|
+
readonly previous?: {
|
|
880
|
+
readonly location: {
|
|
881
|
+
readonly directory: string;
|
|
882
|
+
readonly workspaceID?: string | undefined;
|
|
883
|
+
};
|
|
884
|
+
readonly projectID?: string | undefined;
|
|
885
|
+
readonly subpath?: string | undefined;
|
|
886
|
+
} | undefined;
|
|
887
|
+
}, "id" | "type"> | Omit<{
|
|
888
|
+
readonly id: string;
|
|
889
|
+
readonly metadata?: {
|
|
890
|
+
readonly [x: string]: unknown;
|
|
891
|
+
} | undefined;
|
|
892
|
+
readonly time: {
|
|
893
|
+
readonly created: number;
|
|
894
|
+
};
|
|
895
|
+
readonly text: string;
|
|
896
|
+
readonly description?: string | undefined;
|
|
897
|
+
readonly type: "synthetic";
|
|
898
|
+
}, "id" | "type"> | Omit<{
|
|
899
|
+
readonly id: string;
|
|
900
|
+
readonly metadata?: {
|
|
901
|
+
readonly [x: string]: unknown;
|
|
902
|
+
} | undefined;
|
|
903
|
+
readonly time: {
|
|
904
|
+
readonly created: number;
|
|
905
|
+
};
|
|
906
|
+
readonly type: "system";
|
|
907
|
+
readonly text: string;
|
|
908
|
+
readonly description?: string | undefined;
|
|
909
|
+
}, "id" | "type"> | Omit<{
|
|
910
|
+
readonly id: string;
|
|
911
|
+
readonly metadata?: {
|
|
912
|
+
readonly [x: string]: unknown;
|
|
913
|
+
} | undefined;
|
|
914
|
+
readonly time: {
|
|
915
|
+
readonly created: number;
|
|
916
|
+
};
|
|
917
|
+
readonly type: "skill";
|
|
918
|
+
readonly skill: string;
|
|
919
|
+
readonly name: string;
|
|
920
|
+
readonly text: string;
|
|
921
|
+
}, "id" | "type"> | Omit<{
|
|
922
|
+
readonly id: string;
|
|
923
|
+
readonly metadata?: {
|
|
924
|
+
readonly [x: string]: unknown;
|
|
925
|
+
} | undefined;
|
|
926
|
+
readonly type: "shell";
|
|
927
|
+
readonly shellID: string;
|
|
928
|
+
readonly command: string;
|
|
929
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
930
|
+
readonly exit?: number | undefined;
|
|
931
|
+
readonly output?: {
|
|
932
|
+
readonly output: string;
|
|
933
|
+
readonly cursor: number;
|
|
934
|
+
readonly size: number;
|
|
935
|
+
readonly truncated: boolean;
|
|
936
|
+
} | undefined;
|
|
937
|
+
readonly time: {
|
|
938
|
+
readonly created: number;
|
|
939
|
+
readonly completed?: number | undefined;
|
|
940
|
+
};
|
|
941
|
+
}, "id" | "type"> | Omit<{
|
|
942
|
+
readonly id: string;
|
|
943
|
+
readonly metadata?: {
|
|
944
|
+
readonly [x: string]: unknown;
|
|
945
|
+
} | undefined;
|
|
946
|
+
readonly type: "assistant";
|
|
947
|
+
readonly agent: string;
|
|
948
|
+
readonly model: {
|
|
949
|
+
readonly id: string;
|
|
950
|
+
readonly providerID: string;
|
|
951
|
+
readonly variant?: string | undefined;
|
|
952
|
+
};
|
|
953
|
+
readonly content: readonly ({
|
|
954
|
+
readonly type: "tool";
|
|
955
|
+
readonly id: string;
|
|
956
|
+
readonly name: string;
|
|
957
|
+
readonly executed?: boolean | undefined;
|
|
958
|
+
readonly native?: {
|
|
959
|
+
readonly [x: string]: unknown;
|
|
960
|
+
} | undefined;
|
|
961
|
+
readonly state: {
|
|
962
|
+
readonly status: "streaming";
|
|
963
|
+
readonly input: string;
|
|
964
|
+
} | {
|
|
965
|
+
readonly status: "running";
|
|
966
|
+
readonly input: {
|
|
967
|
+
readonly [x: string]: unknown;
|
|
968
|
+
};
|
|
969
|
+
readonly metadata: {
|
|
970
|
+
readonly [x: string]: Schema.Json;
|
|
971
|
+
};
|
|
972
|
+
} | {
|
|
973
|
+
readonly status: "completed";
|
|
974
|
+
readonly input: {
|
|
975
|
+
readonly [x: string]: unknown;
|
|
976
|
+
};
|
|
977
|
+
readonly content: readonly [{
|
|
978
|
+
readonly type: "text";
|
|
979
|
+
readonly text: string;
|
|
980
|
+
} | {
|
|
981
|
+
readonly type: "file";
|
|
982
|
+
readonly uri: string;
|
|
983
|
+
readonly mime: string;
|
|
984
|
+
readonly name?: string | undefined;
|
|
985
|
+
}, ...({
|
|
986
|
+
readonly type: "text";
|
|
987
|
+
readonly text: string;
|
|
988
|
+
} | {
|
|
989
|
+
readonly type: "file";
|
|
990
|
+
readonly uri: string;
|
|
991
|
+
readonly mime: string;
|
|
992
|
+
readonly name?: string | undefined;
|
|
993
|
+
})[]];
|
|
994
|
+
readonly metadata?: {
|
|
995
|
+
readonly [x: string]: Schema.Json;
|
|
996
|
+
} | undefined;
|
|
997
|
+
} | {
|
|
998
|
+
readonly status: "error";
|
|
999
|
+
readonly input: {
|
|
1000
|
+
readonly [x: string]: unknown;
|
|
1001
|
+
};
|
|
1002
|
+
readonly error: {
|
|
1003
|
+
readonly type: string;
|
|
1004
|
+
readonly message: string;
|
|
1005
|
+
readonly status?: number | undefined;
|
|
1006
|
+
readonly response?: {
|
|
1007
|
+
readonly body: string;
|
|
1008
|
+
} | undefined;
|
|
1009
|
+
readonly retryAfterMs?: number | undefined;
|
|
1010
|
+
};
|
|
1011
|
+
readonly content?: readonly [{
|
|
1012
|
+
readonly type: "text";
|
|
1013
|
+
readonly text: string;
|
|
1014
|
+
} | {
|
|
1015
|
+
readonly type: "file";
|
|
1016
|
+
readonly uri: string;
|
|
1017
|
+
readonly mime: string;
|
|
1018
|
+
readonly name?: string | undefined;
|
|
1019
|
+
}, ...({
|
|
1020
|
+
readonly type: "text";
|
|
1021
|
+
readonly text: string;
|
|
1022
|
+
} | {
|
|
1023
|
+
readonly type: "file";
|
|
1024
|
+
readonly uri: string;
|
|
1025
|
+
readonly mime: string;
|
|
1026
|
+
readonly name?: string | undefined;
|
|
1027
|
+
})[]] | undefined;
|
|
1028
|
+
readonly metadata?: {
|
|
1029
|
+
readonly [x: string]: Schema.Json;
|
|
1030
|
+
} | undefined;
|
|
1031
|
+
};
|
|
1032
|
+
readonly time: {
|
|
1033
|
+
readonly created: number;
|
|
1034
|
+
readonly ran?: number | undefined;
|
|
1035
|
+
readonly completed?: number | undefined;
|
|
1036
|
+
};
|
|
1037
|
+
} | {
|
|
1038
|
+
readonly type: "text";
|
|
1039
|
+
readonly text: string;
|
|
1040
|
+
readonly native?: {
|
|
1041
|
+
readonly [x: string]: unknown;
|
|
1042
|
+
} | undefined;
|
|
1043
|
+
} | {
|
|
1044
|
+
readonly type: "reasoning";
|
|
1045
|
+
readonly text: string;
|
|
1046
|
+
readonly native?: {
|
|
1047
|
+
readonly [x: string]: unknown;
|
|
1048
|
+
} | undefined;
|
|
1049
|
+
readonly time?: {
|
|
1050
|
+
readonly created: number;
|
|
1051
|
+
readonly completed?: number | undefined;
|
|
1052
|
+
} | undefined;
|
|
1053
|
+
})[];
|
|
1054
|
+
readonly snapshot?: {
|
|
1055
|
+
readonly start?: string | undefined;
|
|
1056
|
+
readonly end?: string | undefined;
|
|
1057
|
+
readonly files?: readonly string[] | undefined;
|
|
1058
|
+
} | undefined;
|
|
1059
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
1060
|
+
readonly rawFinish?: string | undefined;
|
|
1061
|
+
readonly native?: {
|
|
1062
|
+
readonly [x: string]: unknown;
|
|
1063
|
+
} | undefined;
|
|
1064
|
+
readonly cost?: number | undefined;
|
|
1065
|
+
readonly tokens?: {
|
|
1066
|
+
readonly input: number;
|
|
1067
|
+
readonly output: number;
|
|
1068
|
+
readonly reasoning: number;
|
|
1069
|
+
readonly cache: {
|
|
1070
|
+
readonly read: number;
|
|
1071
|
+
readonly write: number;
|
|
1072
|
+
};
|
|
1073
|
+
} | undefined;
|
|
1074
|
+
readonly error?: {
|
|
1075
|
+
readonly type: string;
|
|
1076
|
+
readonly message: string;
|
|
1077
|
+
readonly status?: number | undefined;
|
|
1078
|
+
readonly response?: {
|
|
1079
|
+
readonly body: string;
|
|
1080
|
+
} | undefined;
|
|
1081
|
+
readonly retryAfterMs?: number | undefined;
|
|
1082
|
+
} | undefined;
|
|
1083
|
+
readonly retry?: {
|
|
1084
|
+
readonly attempt: number;
|
|
1085
|
+
readonly at: number;
|
|
1086
|
+
readonly error: {
|
|
1087
|
+
readonly type: string;
|
|
1088
|
+
readonly message: string;
|
|
1089
|
+
readonly status?: number | undefined;
|
|
1090
|
+
readonly response?: {
|
|
1091
|
+
readonly body: string;
|
|
1092
|
+
} | undefined;
|
|
1093
|
+
readonly retryAfterMs?: number | undefined;
|
|
1094
|
+
};
|
|
1095
|
+
} | undefined;
|
|
1096
|
+
readonly time: {
|
|
1097
|
+
readonly created: number;
|
|
1098
|
+
readonly streamed?: number | undefined;
|
|
1099
|
+
readonly completed?: number | undefined;
|
|
1100
|
+
};
|
|
1101
|
+
}, "id" | "type"> | Omit<{
|
|
1102
|
+
readonly id: string;
|
|
1103
|
+
readonly metadata?: {
|
|
1104
|
+
readonly [x: string]: unknown;
|
|
1105
|
+
} | undefined;
|
|
1106
|
+
readonly time: {
|
|
1107
|
+
readonly created: number;
|
|
1108
|
+
};
|
|
1109
|
+
readonly type: "compaction";
|
|
1110
|
+
readonly status: "running";
|
|
1111
|
+
readonly reason: "auto" | "manual";
|
|
1112
|
+
readonly summary: string;
|
|
1113
|
+
}, "id" | "type"> | Omit<{
|
|
1114
|
+
readonly id: string;
|
|
1115
|
+
readonly metadata?: {
|
|
1116
|
+
readonly [x: string]: unknown;
|
|
1117
|
+
} | undefined;
|
|
1118
|
+
readonly time: {
|
|
1119
|
+
readonly created: number;
|
|
1120
|
+
};
|
|
1121
|
+
readonly type: "compaction";
|
|
1122
|
+
readonly cost?: number | undefined;
|
|
1123
|
+
readonly tokens?: {
|
|
1124
|
+
readonly input: number;
|
|
1125
|
+
readonly output: number;
|
|
1126
|
+
readonly reasoning: number;
|
|
1127
|
+
readonly cache: {
|
|
1128
|
+
readonly read: number;
|
|
1129
|
+
readonly write: number;
|
|
1130
|
+
};
|
|
1131
|
+
} | undefined;
|
|
1132
|
+
readonly status: "completed";
|
|
1133
|
+
readonly reason: "auto" | "manual";
|
|
1134
|
+
readonly model?: {
|
|
1135
|
+
readonly id: string;
|
|
1136
|
+
readonly providerID: string;
|
|
1137
|
+
readonly variant?: string | undefined;
|
|
1138
|
+
} | undefined;
|
|
1139
|
+
readonly native?: {
|
|
1140
|
+
readonly [x: string]: unknown;
|
|
1141
|
+
} | undefined;
|
|
1142
|
+
readonly summary: string;
|
|
1143
|
+
}, "id" | "type"> | Omit<{
|
|
1144
|
+
readonly id: string;
|
|
1145
|
+
readonly metadata?: {
|
|
1146
|
+
readonly [x: string]: unknown;
|
|
1147
|
+
} | undefined;
|
|
1148
|
+
readonly time: {
|
|
1149
|
+
readonly created: number;
|
|
1150
|
+
};
|
|
1151
|
+
readonly type: "compaction";
|
|
1152
|
+
readonly cost?: number | undefined;
|
|
1153
|
+
readonly tokens?: {
|
|
1154
|
+
readonly input: number;
|
|
1155
|
+
readonly output: number;
|
|
1156
|
+
readonly reasoning: number;
|
|
1157
|
+
readonly cache: {
|
|
1158
|
+
readonly read: number;
|
|
1159
|
+
readonly write: number;
|
|
1160
|
+
};
|
|
1161
|
+
} | undefined;
|
|
1162
|
+
readonly status: "failed";
|
|
1163
|
+
readonly reason: "auto" | "manual";
|
|
1164
|
+
readonly error: {
|
|
1165
|
+
readonly type: string;
|
|
1166
|
+
readonly message: string;
|
|
1167
|
+
readonly status?: number | undefined;
|
|
1168
|
+
readonly response?: {
|
|
1169
|
+
readonly body: string;
|
|
1170
|
+
} | undefined;
|
|
1171
|
+
readonly retryAfterMs?: number | undefined;
|
|
1172
|
+
};
|
|
1173
|
+
}, "id" | "type"> | Omit<{
|
|
1174
|
+
readonly id: string;
|
|
1175
|
+
readonly metadata?: {
|
|
1176
|
+
readonly [x: string]: unknown;
|
|
1177
|
+
} | undefined;
|
|
1178
|
+
readonly time: {
|
|
1179
|
+
readonly created: number;
|
|
1180
|
+
};
|
|
1181
|
+
readonly type: "idle";
|
|
1182
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
1183
|
+
readonly error?: {
|
|
1184
|
+
readonly type: string;
|
|
1185
|
+
readonly message: string;
|
|
1186
|
+
readonly status?: number | undefined;
|
|
1187
|
+
readonly response?: {
|
|
1188
|
+
readonly body: string;
|
|
1189
|
+
} | undefined;
|
|
1190
|
+
readonly retryAfterMs?: number | undefined;
|
|
1191
|
+
} | undefined;
|
|
1192
|
+
}, "id" | "type"> | Omit<{
|
|
1193
|
+
readonly id: string;
|
|
1194
|
+
readonly metadata?: {
|
|
1195
|
+
readonly [x: string]: unknown;
|
|
1196
|
+
} | undefined;
|
|
1197
|
+
readonly time: {
|
|
1198
|
+
readonly created: number;
|
|
1199
|
+
};
|
|
1200
|
+
readonly text: string;
|
|
1201
|
+
readonly agents?: readonly {
|
|
1202
|
+
readonly name: string;
|
|
1203
|
+
readonly mention?: {
|
|
1204
|
+
readonly start: number;
|
|
1205
|
+
readonly end: number;
|
|
1206
|
+
readonly text: string;
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
}[] | undefined;
|
|
1209
|
+
readonly skills?: readonly {
|
|
1210
|
+
readonly id: string;
|
|
1211
|
+
readonly name: string;
|
|
1212
|
+
readonly text?: string | undefined;
|
|
1213
|
+
readonly mention?: {
|
|
1214
|
+
readonly start: number;
|
|
1215
|
+
readonly end: number;
|
|
1216
|
+
readonly text: string;
|
|
1217
|
+
} | undefined;
|
|
1218
|
+
}[] | undefined;
|
|
1219
|
+
readonly type: "user";
|
|
1220
|
+
readonly files?: readonly ({
|
|
1221
|
+
readonly data: string;
|
|
1222
|
+
readonly mime: string;
|
|
1223
|
+
readonly source: {
|
|
1224
|
+
readonly type: "inline";
|
|
1225
|
+
} | {
|
|
1226
|
+
readonly type: "uri";
|
|
1227
|
+
readonly uri: string;
|
|
1228
|
+
};
|
|
1229
|
+
readonly name?: string | undefined;
|
|
1230
|
+
readonly description?: string | undefined;
|
|
1231
|
+
readonly mention?: {
|
|
1232
|
+
readonly start: number;
|
|
1233
|
+
readonly end: number;
|
|
1234
|
+
readonly text: string;
|
|
1235
|
+
} | undefined;
|
|
1236
|
+
} | {
|
|
1237
|
+
readonly mime: string;
|
|
1238
|
+
readonly source: {
|
|
1239
|
+
readonly type: "inline";
|
|
1240
|
+
} | {
|
|
1241
|
+
readonly type: "uri";
|
|
1242
|
+
readonly uri: string;
|
|
1243
|
+
};
|
|
1244
|
+
readonly name?: string | undefined;
|
|
1245
|
+
readonly description?: string | undefined;
|
|
1246
|
+
readonly mention?: {
|
|
1247
|
+
readonly start: number;
|
|
1248
|
+
readonly end: number;
|
|
1249
|
+
readonly text: string;
|
|
1250
|
+
} | undefined;
|
|
1251
|
+
readonly uri: string;
|
|
1252
|
+
})[] | undefined;
|
|
1253
|
+
}, "id" | "type">;
|
|
1254
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1255
|
+
seq: number;
|
|
1256
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1257
|
+
time_created: number;
|
|
1258
|
+
time_updated: number;
|
|
1259
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
1260
|
+
}[]) => Effect.Effect<({
|
|
1261
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1262
|
+
readonly metadata?: {
|
|
1263
|
+
readonly [x: string]: unknown;
|
|
1264
|
+
} | undefined;
|
|
1265
|
+
readonly time: {
|
|
1266
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1267
|
+
};
|
|
1268
|
+
readonly type: "agent-switched";
|
|
1269
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
1270
|
+
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
1271
|
+
} | {
|
|
1272
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1273
|
+
readonly metadata?: {
|
|
1274
|
+
readonly [x: string]: unknown;
|
|
1275
|
+
} | undefined;
|
|
1276
|
+
readonly time: {
|
|
1277
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1278
|
+
};
|
|
1279
|
+
readonly type: "model-switched";
|
|
1280
|
+
readonly model: {
|
|
1281
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1282
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1283
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1284
|
+
};
|
|
1285
|
+
readonly previous?: {
|
|
1286
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1287
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1288
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1289
|
+
} | undefined;
|
|
1290
|
+
} | {
|
|
1291
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1292
|
+
readonly metadata?: {
|
|
1293
|
+
readonly [x: string]: unknown;
|
|
1294
|
+
} | undefined;
|
|
1295
|
+
readonly time: {
|
|
1296
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1297
|
+
};
|
|
1298
|
+
readonly type: "location-switched";
|
|
1299
|
+
readonly location: {
|
|
1300
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1301
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1302
|
+
};
|
|
1303
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
1304
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
1305
|
+
readonly previous?: {
|
|
1306
|
+
readonly location: {
|
|
1307
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1308
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1309
|
+
};
|
|
1310
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
1311
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
1312
|
+
} | undefined;
|
|
1313
|
+
} | {
|
|
1314
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1315
|
+
readonly metadata?: {
|
|
1316
|
+
readonly [x: string]: unknown;
|
|
1317
|
+
} | undefined;
|
|
1318
|
+
readonly time: {
|
|
1319
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1320
|
+
};
|
|
1321
|
+
readonly text: string;
|
|
1322
|
+
readonly files?: readonly {
|
|
1323
|
+
readonly data: string;
|
|
1324
|
+
readonly mime: string;
|
|
1325
|
+
readonly source: {
|
|
797
1326
|
readonly type: "inline";
|
|
798
1327
|
} | {
|
|
799
1328
|
readonly type: "uri";
|
|
@@ -826,30 +1355,7 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
826
1355
|
} | undefined;
|
|
827
1356
|
}[] | undefined;
|
|
828
1357
|
readonly type: "user";
|
|
829
|
-
}
|
|
830
|
-
export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
831
|
-
$client: import("effect/sql/SqlClient").SqlClient;
|
|
832
|
-
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<SessionMessage.Info[], MessageDecodeError, never>;
|
|
833
|
-
export declare const entriesForRunner: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
834
|
-
$client: import("effect/sql/SqlClient").SqlClient;
|
|
835
|
-
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
|
|
836
|
-
initial: string;
|
|
837
|
-
entries: readonly {
|
|
838
|
-
readonly seq: number;
|
|
839
|
-
readonly message: SessionMessage.Info;
|
|
840
|
-
}[];
|
|
841
|
-
}, never, never>;
|
|
842
|
-
export declare const preview: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
843
|
-
$client: import("effect/sql/SqlClient").SqlClient;
|
|
844
|
-
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
|
|
845
|
-
initial: string;
|
|
846
|
-
messages: SessionMessage.Info[];
|
|
847
|
-
instructionUpdate: string;
|
|
848
|
-
}, Instructions.InitializationBlocked, never>;
|
|
849
|
-
/** Returns the session's first user message. */
|
|
850
|
-
export declare const firstUserMessage: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
851
|
-
$client: import("effect/sql/SqlClient").SqlClient;
|
|
852
|
-
}, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<{
|
|
1358
|
+
} | {
|
|
853
1359
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
854
1360
|
readonly metadata?: {
|
|
855
1361
|
readonly [x: string]: unknown;
|
|
@@ -858,41 +1364,1590 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
|
|
|
858
1364
|
readonly created: import("effect/DateTime").Utc;
|
|
859
1365
|
};
|
|
860
1366
|
readonly text: string;
|
|
861
|
-
readonly
|
|
862
|
-
|
|
1367
|
+
readonly description?: string | undefined;
|
|
1368
|
+
readonly type: "synthetic";
|
|
1369
|
+
} | {
|
|
1370
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1371
|
+
readonly metadata?: {
|
|
1372
|
+
readonly [x: string]: unknown;
|
|
1373
|
+
} | undefined;
|
|
1374
|
+
readonly time: {
|
|
1375
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1376
|
+
};
|
|
1377
|
+
readonly type: "system";
|
|
1378
|
+
readonly text: string;
|
|
1379
|
+
readonly description?: string | undefined;
|
|
1380
|
+
} | {
|
|
1381
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1382
|
+
readonly metadata?: {
|
|
1383
|
+
readonly [x: string]: unknown;
|
|
1384
|
+
} | undefined;
|
|
1385
|
+
readonly time: {
|
|
1386
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1387
|
+
};
|
|
1388
|
+
readonly type: "skill";
|
|
1389
|
+
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
1390
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
1391
|
+
readonly text: string;
|
|
1392
|
+
} | {
|
|
1393
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1394
|
+
readonly metadata?: {
|
|
1395
|
+
readonly [x: string]: unknown;
|
|
1396
|
+
} | undefined;
|
|
1397
|
+
readonly type: "shell";
|
|
1398
|
+
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1399
|
+
readonly command: string;
|
|
1400
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
1401
|
+
readonly exit?: number | undefined;
|
|
1402
|
+
readonly output?: {
|
|
1403
|
+
readonly output: string;
|
|
1404
|
+
readonly cursor: number;
|
|
1405
|
+
readonly size: number;
|
|
1406
|
+
readonly truncated: boolean;
|
|
1407
|
+
} | undefined;
|
|
1408
|
+
readonly time: {
|
|
1409
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1410
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1411
|
+
};
|
|
1412
|
+
} | {
|
|
1413
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1414
|
+
readonly metadata?: {
|
|
1415
|
+
readonly [x: string]: unknown;
|
|
1416
|
+
} | undefined;
|
|
1417
|
+
readonly type: "assistant";
|
|
1418
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
1419
|
+
readonly model: {
|
|
1420
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1421
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1422
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1423
|
+
};
|
|
1424
|
+
readonly content: readonly ({
|
|
1425
|
+
readonly type: "tool";
|
|
1426
|
+
readonly id: string;
|
|
1427
|
+
readonly name: string;
|
|
1428
|
+
readonly executed?: boolean | undefined;
|
|
1429
|
+
readonly native?: {
|
|
1430
|
+
readonly [x: string]: unknown;
|
|
1431
|
+
} | undefined;
|
|
1432
|
+
readonly state: {
|
|
1433
|
+
readonly status: "streaming";
|
|
1434
|
+
readonly input: string;
|
|
1435
|
+
} | {
|
|
1436
|
+
readonly status: "running";
|
|
1437
|
+
readonly input: {
|
|
1438
|
+
readonly [x: string]: unknown;
|
|
1439
|
+
};
|
|
1440
|
+
readonly metadata: {
|
|
1441
|
+
readonly [x: string]: Schema.Json;
|
|
1442
|
+
};
|
|
1443
|
+
} | {
|
|
1444
|
+
readonly status: "completed";
|
|
1445
|
+
readonly input: {
|
|
1446
|
+
readonly [x: string]: unknown;
|
|
1447
|
+
};
|
|
1448
|
+
readonly content: readonly [{
|
|
1449
|
+
readonly type: "text";
|
|
1450
|
+
readonly text: string;
|
|
1451
|
+
} | {
|
|
1452
|
+
readonly type: "file";
|
|
1453
|
+
readonly uri: string;
|
|
1454
|
+
readonly mime: string;
|
|
1455
|
+
readonly name?: string | undefined;
|
|
1456
|
+
}, ...({
|
|
1457
|
+
readonly type: "text";
|
|
1458
|
+
readonly text: string;
|
|
1459
|
+
} | {
|
|
1460
|
+
readonly type: "file";
|
|
1461
|
+
readonly uri: string;
|
|
1462
|
+
readonly mime: string;
|
|
1463
|
+
readonly name?: string | undefined;
|
|
1464
|
+
})[]];
|
|
1465
|
+
readonly metadata?: {
|
|
1466
|
+
readonly [x: string]: Schema.Json;
|
|
1467
|
+
} | undefined;
|
|
1468
|
+
} | {
|
|
1469
|
+
readonly status: "error";
|
|
1470
|
+
readonly input: {
|
|
1471
|
+
readonly [x: string]: unknown;
|
|
1472
|
+
};
|
|
1473
|
+
readonly error: {
|
|
1474
|
+
readonly type: string;
|
|
1475
|
+
readonly message: string;
|
|
1476
|
+
readonly status?: number | undefined;
|
|
1477
|
+
readonly response?: {
|
|
1478
|
+
readonly body: string;
|
|
1479
|
+
} | undefined;
|
|
1480
|
+
readonly retryAfterMs?: number | undefined;
|
|
1481
|
+
};
|
|
1482
|
+
readonly content?: readonly [{
|
|
1483
|
+
readonly type: "text";
|
|
1484
|
+
readonly text: string;
|
|
1485
|
+
} | {
|
|
1486
|
+
readonly type: "file";
|
|
1487
|
+
readonly uri: string;
|
|
1488
|
+
readonly mime: string;
|
|
1489
|
+
readonly name?: string | undefined;
|
|
1490
|
+
}, ...({
|
|
1491
|
+
readonly type: "text";
|
|
1492
|
+
readonly text: string;
|
|
1493
|
+
} | {
|
|
1494
|
+
readonly type: "file";
|
|
1495
|
+
readonly uri: string;
|
|
1496
|
+
readonly mime: string;
|
|
1497
|
+
readonly name?: string | undefined;
|
|
1498
|
+
})[]] | undefined;
|
|
1499
|
+
readonly metadata?: {
|
|
1500
|
+
readonly [x: string]: Schema.Json;
|
|
1501
|
+
} | undefined;
|
|
1502
|
+
};
|
|
1503
|
+
readonly time: {
|
|
1504
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1505
|
+
readonly ran?: import("effect/DateTime").Utc | undefined;
|
|
1506
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1507
|
+
};
|
|
1508
|
+
} | {
|
|
1509
|
+
readonly type: "text";
|
|
1510
|
+
readonly text: string;
|
|
1511
|
+
readonly native?: {
|
|
1512
|
+
readonly [x: string]: unknown;
|
|
1513
|
+
} | undefined;
|
|
1514
|
+
} | {
|
|
1515
|
+
readonly type: "reasoning";
|
|
1516
|
+
readonly text: string;
|
|
1517
|
+
readonly native?: {
|
|
1518
|
+
readonly [x: string]: unknown;
|
|
1519
|
+
} | undefined;
|
|
1520
|
+
readonly time?: {
|
|
1521
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1522
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1523
|
+
} | undefined;
|
|
1524
|
+
})[];
|
|
1525
|
+
readonly snapshot?: {
|
|
1526
|
+
readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
1527
|
+
readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
1528
|
+
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
1529
|
+
} | undefined;
|
|
1530
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
1531
|
+
readonly rawFinish?: string | undefined;
|
|
1532
|
+
readonly native?: {
|
|
1533
|
+
readonly [x: string]: unknown;
|
|
1534
|
+
} | undefined;
|
|
1535
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1536
|
+
readonly tokens?: {
|
|
1537
|
+
readonly input: number;
|
|
1538
|
+
readonly output: number;
|
|
1539
|
+
readonly reasoning: number;
|
|
1540
|
+
readonly cache: {
|
|
1541
|
+
readonly read: number;
|
|
1542
|
+
readonly write: number;
|
|
1543
|
+
};
|
|
1544
|
+
} | undefined;
|
|
1545
|
+
readonly error?: {
|
|
1546
|
+
readonly type: string;
|
|
1547
|
+
readonly message: string;
|
|
1548
|
+
readonly status?: number | undefined;
|
|
1549
|
+
readonly response?: {
|
|
1550
|
+
readonly body: string;
|
|
1551
|
+
} | undefined;
|
|
1552
|
+
readonly retryAfterMs?: number | undefined;
|
|
1553
|
+
} | undefined;
|
|
1554
|
+
readonly retry?: {
|
|
1555
|
+
readonly attempt: number;
|
|
1556
|
+
readonly at: import("effect/DateTime").Utc;
|
|
1557
|
+
readonly error: {
|
|
1558
|
+
readonly type: string;
|
|
1559
|
+
readonly message: string;
|
|
1560
|
+
readonly status?: number | undefined;
|
|
1561
|
+
readonly response?: {
|
|
1562
|
+
readonly body: string;
|
|
1563
|
+
} | undefined;
|
|
1564
|
+
readonly retryAfterMs?: number | undefined;
|
|
1565
|
+
};
|
|
1566
|
+
} | undefined;
|
|
1567
|
+
readonly time: {
|
|
1568
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1569
|
+
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
1570
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1571
|
+
};
|
|
1572
|
+
} | {
|
|
1573
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1574
|
+
readonly metadata?: {
|
|
1575
|
+
readonly [x: string]: unknown;
|
|
1576
|
+
} | undefined;
|
|
1577
|
+
readonly time: {
|
|
1578
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1579
|
+
};
|
|
1580
|
+
readonly type: "compaction";
|
|
1581
|
+
readonly status: "running";
|
|
1582
|
+
readonly reason: "auto" | "manual";
|
|
1583
|
+
readonly summary: string;
|
|
1584
|
+
} | {
|
|
1585
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1586
|
+
readonly metadata?: {
|
|
1587
|
+
readonly [x: string]: unknown;
|
|
1588
|
+
} | undefined;
|
|
1589
|
+
readonly time: {
|
|
1590
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1591
|
+
};
|
|
1592
|
+
readonly type: "compaction";
|
|
1593
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1594
|
+
readonly tokens?: {
|
|
1595
|
+
readonly input: number;
|
|
1596
|
+
readonly output: number;
|
|
1597
|
+
readonly reasoning: number;
|
|
1598
|
+
readonly cache: {
|
|
1599
|
+
readonly read: number;
|
|
1600
|
+
readonly write: number;
|
|
1601
|
+
};
|
|
1602
|
+
} | undefined;
|
|
1603
|
+
readonly status: "completed";
|
|
1604
|
+
readonly reason: "auto" | "manual";
|
|
1605
|
+
readonly model?: {
|
|
1606
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1607
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1608
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1609
|
+
} | undefined;
|
|
1610
|
+
readonly native?: {
|
|
1611
|
+
readonly [x: string]: unknown;
|
|
1612
|
+
} | undefined;
|
|
1613
|
+
readonly summary: string;
|
|
1614
|
+
} | {
|
|
1615
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1616
|
+
readonly metadata?: {
|
|
1617
|
+
readonly [x: string]: unknown;
|
|
1618
|
+
} | undefined;
|
|
1619
|
+
readonly time: {
|
|
1620
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1621
|
+
};
|
|
1622
|
+
readonly type: "compaction";
|
|
1623
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1624
|
+
readonly tokens?: {
|
|
1625
|
+
readonly input: number;
|
|
1626
|
+
readonly output: number;
|
|
1627
|
+
readonly reasoning: number;
|
|
1628
|
+
readonly cache: {
|
|
1629
|
+
readonly read: number;
|
|
1630
|
+
readonly write: number;
|
|
1631
|
+
};
|
|
1632
|
+
} | undefined;
|
|
1633
|
+
readonly status: "failed";
|
|
1634
|
+
readonly reason: "auto" | "manual";
|
|
1635
|
+
readonly error: {
|
|
1636
|
+
readonly type: string;
|
|
1637
|
+
readonly message: string;
|
|
1638
|
+
readonly status?: number | undefined;
|
|
1639
|
+
readonly response?: {
|
|
1640
|
+
readonly body: string;
|
|
1641
|
+
} | undefined;
|
|
1642
|
+
readonly retryAfterMs?: number | undefined;
|
|
1643
|
+
};
|
|
1644
|
+
} | {
|
|
1645
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1646
|
+
readonly metadata?: {
|
|
1647
|
+
readonly [x: string]: unknown;
|
|
1648
|
+
} | undefined;
|
|
1649
|
+
readonly time: {
|
|
1650
|
+
readonly created: import("effect/DateTime").Utc;
|
|
1651
|
+
};
|
|
1652
|
+
readonly type: "idle";
|
|
1653
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
1654
|
+
readonly error?: {
|
|
1655
|
+
readonly type: string;
|
|
1656
|
+
readonly message: string;
|
|
1657
|
+
readonly status?: number | undefined;
|
|
1658
|
+
readonly response?: {
|
|
1659
|
+
readonly body: string;
|
|
1660
|
+
} | undefined;
|
|
1661
|
+
readonly retryAfterMs?: number | undefined;
|
|
1662
|
+
} | undefined;
|
|
1663
|
+
})[], MessageDecodeError, never>;
|
|
1664
|
+
/** Decodes rows for clients that fetch media themselves, so files stored in `blob` stay `media:` refs. */
|
|
1665
|
+
export declare const decodeMessageRowsWithRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1666
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1667
|
+
}, rows: readonly {
|
|
1668
|
+
data: Omit<{
|
|
1669
|
+
readonly id: string;
|
|
1670
|
+
readonly metadata?: {
|
|
1671
|
+
readonly [x: string]: unknown;
|
|
1672
|
+
} | undefined;
|
|
1673
|
+
readonly time: {
|
|
1674
|
+
readonly created: number;
|
|
1675
|
+
};
|
|
1676
|
+
readonly type: "agent-switched";
|
|
1677
|
+
readonly agent: string;
|
|
1678
|
+
readonly previous?: string | undefined;
|
|
1679
|
+
}, "id" | "type"> | Omit<{
|
|
1680
|
+
readonly id: string;
|
|
1681
|
+
readonly metadata?: {
|
|
1682
|
+
readonly [x: string]: unknown;
|
|
1683
|
+
} | undefined;
|
|
1684
|
+
readonly time: {
|
|
1685
|
+
readonly created: number;
|
|
1686
|
+
};
|
|
1687
|
+
readonly type: "model-switched";
|
|
1688
|
+
readonly model: {
|
|
1689
|
+
readonly id: string;
|
|
1690
|
+
readonly providerID: string;
|
|
1691
|
+
readonly variant?: string | undefined;
|
|
1692
|
+
};
|
|
1693
|
+
readonly previous?: {
|
|
1694
|
+
readonly id: string;
|
|
1695
|
+
readonly providerID: string;
|
|
1696
|
+
readonly variant?: string | undefined;
|
|
1697
|
+
} | undefined;
|
|
1698
|
+
}, "id" | "type"> | Omit<{
|
|
1699
|
+
readonly id: string;
|
|
1700
|
+
readonly metadata?: {
|
|
1701
|
+
readonly [x: string]: unknown;
|
|
1702
|
+
} | undefined;
|
|
1703
|
+
readonly time: {
|
|
1704
|
+
readonly created: number;
|
|
1705
|
+
};
|
|
1706
|
+
readonly type: "location-switched";
|
|
1707
|
+
readonly location: {
|
|
1708
|
+
readonly directory: string;
|
|
1709
|
+
readonly workspaceID?: string | undefined;
|
|
1710
|
+
};
|
|
1711
|
+
readonly projectID?: string | undefined;
|
|
1712
|
+
readonly subpath?: string | undefined;
|
|
1713
|
+
readonly previous?: {
|
|
1714
|
+
readonly location: {
|
|
1715
|
+
readonly directory: string;
|
|
1716
|
+
readonly workspaceID?: string | undefined;
|
|
1717
|
+
};
|
|
1718
|
+
readonly projectID?: string | undefined;
|
|
1719
|
+
readonly subpath?: string | undefined;
|
|
1720
|
+
} | undefined;
|
|
1721
|
+
}, "id" | "type"> | Omit<{
|
|
1722
|
+
readonly id: string;
|
|
1723
|
+
readonly metadata?: {
|
|
1724
|
+
readonly [x: string]: unknown;
|
|
1725
|
+
} | undefined;
|
|
1726
|
+
readonly time: {
|
|
1727
|
+
readonly created: number;
|
|
1728
|
+
};
|
|
1729
|
+
readonly text: string;
|
|
1730
|
+
readonly description?: string | undefined;
|
|
1731
|
+
readonly type: "synthetic";
|
|
1732
|
+
}, "id" | "type"> | Omit<{
|
|
1733
|
+
readonly id: string;
|
|
1734
|
+
readonly metadata?: {
|
|
1735
|
+
readonly [x: string]: unknown;
|
|
1736
|
+
} | undefined;
|
|
1737
|
+
readonly time: {
|
|
1738
|
+
readonly created: number;
|
|
1739
|
+
};
|
|
1740
|
+
readonly type: "system";
|
|
1741
|
+
readonly text: string;
|
|
1742
|
+
readonly description?: string | undefined;
|
|
1743
|
+
}, "id" | "type"> | Omit<{
|
|
1744
|
+
readonly id: string;
|
|
1745
|
+
readonly metadata?: {
|
|
1746
|
+
readonly [x: string]: unknown;
|
|
1747
|
+
} | undefined;
|
|
1748
|
+
readonly time: {
|
|
1749
|
+
readonly created: number;
|
|
1750
|
+
};
|
|
1751
|
+
readonly type: "skill";
|
|
1752
|
+
readonly skill: string;
|
|
1753
|
+
readonly name: string;
|
|
1754
|
+
readonly text: string;
|
|
1755
|
+
}, "id" | "type"> | Omit<{
|
|
1756
|
+
readonly id: string;
|
|
1757
|
+
readonly metadata?: {
|
|
1758
|
+
readonly [x: string]: unknown;
|
|
1759
|
+
} | undefined;
|
|
1760
|
+
readonly type: "shell";
|
|
1761
|
+
readonly shellID: string;
|
|
1762
|
+
readonly command: string;
|
|
1763
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
1764
|
+
readonly exit?: number | undefined;
|
|
1765
|
+
readonly output?: {
|
|
1766
|
+
readonly output: string;
|
|
1767
|
+
readonly cursor: number;
|
|
1768
|
+
readonly size: number;
|
|
1769
|
+
readonly truncated: boolean;
|
|
1770
|
+
} | undefined;
|
|
1771
|
+
readonly time: {
|
|
1772
|
+
readonly created: number;
|
|
1773
|
+
readonly completed?: number | undefined;
|
|
1774
|
+
};
|
|
1775
|
+
}, "id" | "type"> | Omit<{
|
|
1776
|
+
readonly id: string;
|
|
1777
|
+
readonly metadata?: {
|
|
1778
|
+
readonly [x: string]: unknown;
|
|
1779
|
+
} | undefined;
|
|
1780
|
+
readonly type: "assistant";
|
|
1781
|
+
readonly agent: string;
|
|
1782
|
+
readonly model: {
|
|
1783
|
+
readonly id: string;
|
|
1784
|
+
readonly providerID: string;
|
|
1785
|
+
readonly variant?: string | undefined;
|
|
1786
|
+
};
|
|
1787
|
+
readonly content: readonly ({
|
|
1788
|
+
readonly type: "tool";
|
|
1789
|
+
readonly id: string;
|
|
1790
|
+
readonly name: string;
|
|
1791
|
+
readonly executed?: boolean | undefined;
|
|
1792
|
+
readonly native?: {
|
|
1793
|
+
readonly [x: string]: unknown;
|
|
1794
|
+
} | undefined;
|
|
1795
|
+
readonly state: {
|
|
1796
|
+
readonly status: "streaming";
|
|
1797
|
+
readonly input: string;
|
|
1798
|
+
} | {
|
|
1799
|
+
readonly status: "running";
|
|
1800
|
+
readonly input: {
|
|
1801
|
+
readonly [x: string]: unknown;
|
|
1802
|
+
};
|
|
1803
|
+
readonly metadata: {
|
|
1804
|
+
readonly [x: string]: Schema.Json;
|
|
1805
|
+
};
|
|
1806
|
+
} | {
|
|
1807
|
+
readonly status: "completed";
|
|
1808
|
+
readonly input: {
|
|
1809
|
+
readonly [x: string]: unknown;
|
|
1810
|
+
};
|
|
1811
|
+
readonly content: readonly [{
|
|
1812
|
+
readonly type: "text";
|
|
1813
|
+
readonly text: string;
|
|
1814
|
+
} | {
|
|
1815
|
+
readonly type: "file";
|
|
1816
|
+
readonly uri: string;
|
|
1817
|
+
readonly mime: string;
|
|
1818
|
+
readonly name?: string | undefined;
|
|
1819
|
+
}, ...({
|
|
1820
|
+
readonly type: "text";
|
|
1821
|
+
readonly text: string;
|
|
1822
|
+
} | {
|
|
1823
|
+
readonly type: "file";
|
|
1824
|
+
readonly uri: string;
|
|
1825
|
+
readonly mime: string;
|
|
1826
|
+
readonly name?: string | undefined;
|
|
1827
|
+
})[]];
|
|
1828
|
+
readonly metadata?: {
|
|
1829
|
+
readonly [x: string]: Schema.Json;
|
|
1830
|
+
} | undefined;
|
|
1831
|
+
} | {
|
|
1832
|
+
readonly status: "error";
|
|
1833
|
+
readonly input: {
|
|
1834
|
+
readonly [x: string]: unknown;
|
|
1835
|
+
};
|
|
1836
|
+
readonly error: {
|
|
1837
|
+
readonly type: string;
|
|
1838
|
+
readonly message: string;
|
|
1839
|
+
readonly status?: number | undefined;
|
|
1840
|
+
readonly response?: {
|
|
1841
|
+
readonly body: string;
|
|
1842
|
+
} | undefined;
|
|
1843
|
+
readonly retryAfterMs?: number | undefined;
|
|
1844
|
+
};
|
|
1845
|
+
readonly content?: readonly [{
|
|
1846
|
+
readonly type: "text";
|
|
1847
|
+
readonly text: string;
|
|
1848
|
+
} | {
|
|
1849
|
+
readonly type: "file";
|
|
1850
|
+
readonly uri: string;
|
|
1851
|
+
readonly mime: string;
|
|
1852
|
+
readonly name?: string | undefined;
|
|
1853
|
+
}, ...({
|
|
1854
|
+
readonly type: "text";
|
|
1855
|
+
readonly text: string;
|
|
1856
|
+
} | {
|
|
1857
|
+
readonly type: "file";
|
|
1858
|
+
readonly uri: string;
|
|
1859
|
+
readonly mime: string;
|
|
1860
|
+
readonly name?: string | undefined;
|
|
1861
|
+
})[]] | undefined;
|
|
1862
|
+
readonly metadata?: {
|
|
1863
|
+
readonly [x: string]: Schema.Json;
|
|
1864
|
+
} | undefined;
|
|
1865
|
+
};
|
|
1866
|
+
readonly time: {
|
|
1867
|
+
readonly created: number;
|
|
1868
|
+
readonly ran?: number | undefined;
|
|
1869
|
+
readonly completed?: number | undefined;
|
|
1870
|
+
};
|
|
1871
|
+
} | {
|
|
1872
|
+
readonly type: "text";
|
|
1873
|
+
readonly text: string;
|
|
1874
|
+
readonly native?: {
|
|
1875
|
+
readonly [x: string]: unknown;
|
|
1876
|
+
} | undefined;
|
|
1877
|
+
} | {
|
|
1878
|
+
readonly type: "reasoning";
|
|
1879
|
+
readonly text: string;
|
|
1880
|
+
readonly native?: {
|
|
1881
|
+
readonly [x: string]: unknown;
|
|
1882
|
+
} | undefined;
|
|
1883
|
+
readonly time?: {
|
|
1884
|
+
readonly created: number;
|
|
1885
|
+
readonly completed?: number | undefined;
|
|
1886
|
+
} | undefined;
|
|
1887
|
+
})[];
|
|
1888
|
+
readonly snapshot?: {
|
|
1889
|
+
readonly start?: string | undefined;
|
|
1890
|
+
readonly end?: string | undefined;
|
|
1891
|
+
readonly files?: readonly string[] | undefined;
|
|
1892
|
+
} | undefined;
|
|
1893
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
1894
|
+
readonly rawFinish?: string | undefined;
|
|
1895
|
+
readonly native?: {
|
|
1896
|
+
readonly [x: string]: unknown;
|
|
1897
|
+
} | undefined;
|
|
1898
|
+
readonly cost?: number | undefined;
|
|
1899
|
+
readonly tokens?: {
|
|
1900
|
+
readonly input: number;
|
|
1901
|
+
readonly output: number;
|
|
1902
|
+
readonly reasoning: number;
|
|
1903
|
+
readonly cache: {
|
|
1904
|
+
readonly read: number;
|
|
1905
|
+
readonly write: number;
|
|
1906
|
+
};
|
|
1907
|
+
} | undefined;
|
|
1908
|
+
readonly error?: {
|
|
1909
|
+
readonly type: string;
|
|
1910
|
+
readonly message: string;
|
|
1911
|
+
readonly status?: number | undefined;
|
|
1912
|
+
readonly response?: {
|
|
1913
|
+
readonly body: string;
|
|
1914
|
+
} | undefined;
|
|
1915
|
+
readonly retryAfterMs?: number | undefined;
|
|
1916
|
+
} | undefined;
|
|
1917
|
+
readonly retry?: {
|
|
1918
|
+
readonly attempt: number;
|
|
1919
|
+
readonly at: number;
|
|
1920
|
+
readonly error: {
|
|
1921
|
+
readonly type: string;
|
|
1922
|
+
readonly message: string;
|
|
1923
|
+
readonly status?: number | undefined;
|
|
1924
|
+
readonly response?: {
|
|
1925
|
+
readonly body: string;
|
|
1926
|
+
} | undefined;
|
|
1927
|
+
readonly retryAfterMs?: number | undefined;
|
|
1928
|
+
};
|
|
1929
|
+
} | undefined;
|
|
1930
|
+
readonly time: {
|
|
1931
|
+
readonly created: number;
|
|
1932
|
+
readonly streamed?: number | undefined;
|
|
1933
|
+
readonly completed?: number | undefined;
|
|
1934
|
+
};
|
|
1935
|
+
}, "id" | "type"> | Omit<{
|
|
1936
|
+
readonly id: string;
|
|
1937
|
+
readonly metadata?: {
|
|
1938
|
+
readonly [x: string]: unknown;
|
|
1939
|
+
} | undefined;
|
|
1940
|
+
readonly time: {
|
|
1941
|
+
readonly created: number;
|
|
1942
|
+
};
|
|
1943
|
+
readonly type: "compaction";
|
|
1944
|
+
readonly status: "running";
|
|
1945
|
+
readonly reason: "auto" | "manual";
|
|
1946
|
+
readonly summary: string;
|
|
1947
|
+
}, "id" | "type"> | Omit<{
|
|
1948
|
+
readonly id: string;
|
|
1949
|
+
readonly metadata?: {
|
|
1950
|
+
readonly [x: string]: unknown;
|
|
1951
|
+
} | undefined;
|
|
1952
|
+
readonly time: {
|
|
1953
|
+
readonly created: number;
|
|
1954
|
+
};
|
|
1955
|
+
readonly type: "compaction";
|
|
1956
|
+
readonly cost?: number | undefined;
|
|
1957
|
+
readonly tokens?: {
|
|
1958
|
+
readonly input: number;
|
|
1959
|
+
readonly output: number;
|
|
1960
|
+
readonly reasoning: number;
|
|
1961
|
+
readonly cache: {
|
|
1962
|
+
readonly read: number;
|
|
1963
|
+
readonly write: number;
|
|
1964
|
+
};
|
|
1965
|
+
} | undefined;
|
|
1966
|
+
readonly status: "completed";
|
|
1967
|
+
readonly reason: "auto" | "manual";
|
|
1968
|
+
readonly model?: {
|
|
1969
|
+
readonly id: string;
|
|
1970
|
+
readonly providerID: string;
|
|
1971
|
+
readonly variant?: string | undefined;
|
|
1972
|
+
} | undefined;
|
|
1973
|
+
readonly native?: {
|
|
1974
|
+
readonly [x: string]: unknown;
|
|
1975
|
+
} | undefined;
|
|
1976
|
+
readonly summary: string;
|
|
1977
|
+
}, "id" | "type"> | Omit<{
|
|
1978
|
+
readonly id: string;
|
|
1979
|
+
readonly metadata?: {
|
|
1980
|
+
readonly [x: string]: unknown;
|
|
1981
|
+
} | undefined;
|
|
1982
|
+
readonly time: {
|
|
1983
|
+
readonly created: number;
|
|
1984
|
+
};
|
|
1985
|
+
readonly type: "compaction";
|
|
1986
|
+
readonly cost?: number | undefined;
|
|
1987
|
+
readonly tokens?: {
|
|
1988
|
+
readonly input: number;
|
|
1989
|
+
readonly output: number;
|
|
1990
|
+
readonly reasoning: number;
|
|
1991
|
+
readonly cache: {
|
|
1992
|
+
readonly read: number;
|
|
1993
|
+
readonly write: number;
|
|
1994
|
+
};
|
|
1995
|
+
} | undefined;
|
|
1996
|
+
readonly status: "failed";
|
|
1997
|
+
readonly reason: "auto" | "manual";
|
|
1998
|
+
readonly error: {
|
|
1999
|
+
readonly type: string;
|
|
2000
|
+
readonly message: string;
|
|
2001
|
+
readonly status?: number | undefined;
|
|
2002
|
+
readonly response?: {
|
|
2003
|
+
readonly body: string;
|
|
2004
|
+
} | undefined;
|
|
2005
|
+
readonly retryAfterMs?: number | undefined;
|
|
2006
|
+
};
|
|
2007
|
+
}, "id" | "type"> | Omit<{
|
|
2008
|
+
readonly id: string;
|
|
2009
|
+
readonly metadata?: {
|
|
2010
|
+
readonly [x: string]: unknown;
|
|
2011
|
+
} | undefined;
|
|
2012
|
+
readonly time: {
|
|
2013
|
+
readonly created: number;
|
|
2014
|
+
};
|
|
2015
|
+
readonly type: "idle";
|
|
2016
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
2017
|
+
readonly error?: {
|
|
2018
|
+
readonly type: string;
|
|
2019
|
+
readonly message: string;
|
|
2020
|
+
readonly status?: number | undefined;
|
|
2021
|
+
readonly response?: {
|
|
2022
|
+
readonly body: string;
|
|
2023
|
+
} | undefined;
|
|
2024
|
+
readonly retryAfterMs?: number | undefined;
|
|
2025
|
+
} | undefined;
|
|
2026
|
+
}, "id" | "type"> | Omit<{
|
|
2027
|
+
readonly id: string;
|
|
2028
|
+
readonly metadata?: {
|
|
2029
|
+
readonly [x: string]: unknown;
|
|
2030
|
+
} | undefined;
|
|
2031
|
+
readonly time: {
|
|
2032
|
+
readonly created: number;
|
|
2033
|
+
};
|
|
2034
|
+
readonly text: string;
|
|
2035
|
+
readonly agents?: readonly {
|
|
2036
|
+
readonly name: string;
|
|
2037
|
+
readonly mention?: {
|
|
2038
|
+
readonly start: number;
|
|
2039
|
+
readonly end: number;
|
|
2040
|
+
readonly text: string;
|
|
2041
|
+
} | undefined;
|
|
2042
|
+
}[] | undefined;
|
|
2043
|
+
readonly skills?: readonly {
|
|
2044
|
+
readonly id: string;
|
|
2045
|
+
readonly name: string;
|
|
2046
|
+
readonly text?: string | undefined;
|
|
2047
|
+
readonly mention?: {
|
|
2048
|
+
readonly start: number;
|
|
2049
|
+
readonly end: number;
|
|
2050
|
+
readonly text: string;
|
|
2051
|
+
} | undefined;
|
|
2052
|
+
}[] | undefined;
|
|
2053
|
+
readonly type: "user";
|
|
2054
|
+
readonly files?: readonly ({
|
|
2055
|
+
readonly data: string;
|
|
2056
|
+
readonly mime: string;
|
|
2057
|
+
readonly source: {
|
|
2058
|
+
readonly type: "inline";
|
|
2059
|
+
} | {
|
|
2060
|
+
readonly type: "uri";
|
|
2061
|
+
readonly uri: string;
|
|
2062
|
+
};
|
|
2063
|
+
readonly name?: string | undefined;
|
|
2064
|
+
readonly description?: string | undefined;
|
|
2065
|
+
readonly mention?: {
|
|
2066
|
+
readonly start: number;
|
|
2067
|
+
readonly end: number;
|
|
2068
|
+
readonly text: string;
|
|
2069
|
+
} | undefined;
|
|
2070
|
+
} | {
|
|
2071
|
+
readonly mime: string;
|
|
2072
|
+
readonly source: {
|
|
2073
|
+
readonly type: "inline";
|
|
2074
|
+
} | {
|
|
2075
|
+
readonly type: "uri";
|
|
2076
|
+
readonly uri: string;
|
|
2077
|
+
};
|
|
2078
|
+
readonly name?: string | undefined;
|
|
2079
|
+
readonly description?: string | undefined;
|
|
2080
|
+
readonly mention?: {
|
|
2081
|
+
readonly start: number;
|
|
2082
|
+
readonly end: number;
|
|
2083
|
+
readonly text: string;
|
|
2084
|
+
} | undefined;
|
|
2085
|
+
readonly uri: string;
|
|
2086
|
+
})[] | undefined;
|
|
2087
|
+
}, "id" | "type">;
|
|
2088
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2089
|
+
seq: number;
|
|
2090
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
2091
|
+
time_created: number;
|
|
2092
|
+
time_updated: number;
|
|
2093
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
2094
|
+
}[]) => Effect.Effect<({
|
|
2095
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2096
|
+
readonly metadata?: {
|
|
2097
|
+
readonly [x: string]: unknown;
|
|
2098
|
+
} | undefined;
|
|
2099
|
+
readonly time: {
|
|
2100
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2101
|
+
};
|
|
2102
|
+
readonly type: "agent-switched";
|
|
2103
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
2104
|
+
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
2105
|
+
} | {
|
|
2106
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2107
|
+
readonly metadata?: {
|
|
2108
|
+
readonly [x: string]: unknown;
|
|
2109
|
+
} | undefined;
|
|
2110
|
+
readonly time: {
|
|
2111
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2112
|
+
};
|
|
2113
|
+
readonly type: "model-switched";
|
|
2114
|
+
readonly model: {
|
|
2115
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2116
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2117
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2118
|
+
};
|
|
2119
|
+
readonly previous?: {
|
|
2120
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2121
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2122
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2123
|
+
} | undefined;
|
|
2124
|
+
} | {
|
|
2125
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2126
|
+
readonly metadata?: {
|
|
2127
|
+
readonly [x: string]: unknown;
|
|
2128
|
+
} | undefined;
|
|
2129
|
+
readonly time: {
|
|
2130
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2131
|
+
};
|
|
2132
|
+
readonly type: "location-switched";
|
|
2133
|
+
readonly location: {
|
|
2134
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2135
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2136
|
+
};
|
|
2137
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
2138
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
2139
|
+
readonly previous?: {
|
|
2140
|
+
readonly location: {
|
|
2141
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2142
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2143
|
+
};
|
|
2144
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
2145
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
} | {
|
|
2148
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2149
|
+
readonly metadata?: {
|
|
2150
|
+
readonly [x: string]: unknown;
|
|
2151
|
+
} | undefined;
|
|
2152
|
+
readonly time: {
|
|
2153
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2154
|
+
};
|
|
2155
|
+
readonly text: string;
|
|
2156
|
+
readonly agents?: readonly {
|
|
2157
|
+
readonly name: string;
|
|
2158
|
+
readonly mention?: {
|
|
2159
|
+
readonly start: number;
|
|
2160
|
+
readonly end: number;
|
|
2161
|
+
readonly text: string;
|
|
2162
|
+
} | undefined;
|
|
2163
|
+
}[] | undefined;
|
|
2164
|
+
readonly skills?: readonly {
|
|
2165
|
+
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
2166
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
2167
|
+
readonly text?: string | undefined;
|
|
2168
|
+
readonly mention?: {
|
|
2169
|
+
readonly start: number;
|
|
2170
|
+
readonly end: number;
|
|
2171
|
+
readonly text: string;
|
|
2172
|
+
} | undefined;
|
|
2173
|
+
}[] | undefined;
|
|
2174
|
+
readonly type: "user";
|
|
2175
|
+
readonly files?: readonly ({
|
|
2176
|
+
readonly data: string;
|
|
2177
|
+
readonly mime: string;
|
|
2178
|
+
readonly source: {
|
|
2179
|
+
readonly type: "inline";
|
|
2180
|
+
} | {
|
|
2181
|
+
readonly type: "uri";
|
|
2182
|
+
readonly uri: string;
|
|
2183
|
+
};
|
|
2184
|
+
readonly name?: string | undefined;
|
|
2185
|
+
readonly description?: string | undefined;
|
|
2186
|
+
readonly mention?: {
|
|
2187
|
+
readonly start: number;
|
|
2188
|
+
readonly end: number;
|
|
2189
|
+
readonly text: string;
|
|
2190
|
+
} | undefined;
|
|
2191
|
+
} | {
|
|
2192
|
+
readonly mime: string;
|
|
2193
|
+
readonly source: {
|
|
2194
|
+
readonly type: "inline";
|
|
2195
|
+
} | {
|
|
2196
|
+
readonly type: "uri";
|
|
2197
|
+
readonly uri: string;
|
|
2198
|
+
};
|
|
2199
|
+
readonly name?: string | undefined;
|
|
2200
|
+
readonly description?: string | undefined;
|
|
2201
|
+
readonly mention?: {
|
|
2202
|
+
readonly start: number;
|
|
2203
|
+
readonly end: number;
|
|
2204
|
+
readonly text: string;
|
|
2205
|
+
} | undefined;
|
|
2206
|
+
readonly uri: string;
|
|
2207
|
+
readonly bytes?: number | undefined;
|
|
2208
|
+
readonly width?: number | undefined;
|
|
2209
|
+
readonly height?: number | undefined;
|
|
2210
|
+
})[] | undefined;
|
|
2211
|
+
} | {
|
|
2212
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2213
|
+
readonly metadata?: {
|
|
2214
|
+
readonly [x: string]: unknown;
|
|
2215
|
+
} | undefined;
|
|
2216
|
+
readonly time: {
|
|
2217
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2218
|
+
};
|
|
2219
|
+
readonly text: string;
|
|
2220
|
+
readonly description?: string | undefined;
|
|
2221
|
+
readonly type: "synthetic";
|
|
2222
|
+
} | {
|
|
2223
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2224
|
+
readonly metadata?: {
|
|
2225
|
+
readonly [x: string]: unknown;
|
|
2226
|
+
} | undefined;
|
|
2227
|
+
readonly time: {
|
|
2228
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2229
|
+
};
|
|
2230
|
+
readonly type: "system";
|
|
2231
|
+
readonly text: string;
|
|
2232
|
+
readonly description?: string | undefined;
|
|
2233
|
+
} | {
|
|
2234
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2235
|
+
readonly metadata?: {
|
|
2236
|
+
readonly [x: string]: unknown;
|
|
2237
|
+
} | undefined;
|
|
2238
|
+
readonly time: {
|
|
2239
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2240
|
+
};
|
|
2241
|
+
readonly type: "skill";
|
|
2242
|
+
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
2243
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
2244
|
+
readonly text: string;
|
|
2245
|
+
} | {
|
|
2246
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2247
|
+
readonly metadata?: {
|
|
2248
|
+
readonly [x: string]: unknown;
|
|
2249
|
+
} | undefined;
|
|
2250
|
+
readonly type: "shell";
|
|
2251
|
+
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
2252
|
+
readonly command: string;
|
|
2253
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
2254
|
+
readonly exit?: number | undefined;
|
|
2255
|
+
readonly output?: {
|
|
2256
|
+
readonly output: string;
|
|
2257
|
+
readonly cursor: number;
|
|
2258
|
+
readonly size: number;
|
|
2259
|
+
readonly truncated: boolean;
|
|
2260
|
+
} | undefined;
|
|
2261
|
+
readonly time: {
|
|
2262
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2263
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2264
|
+
};
|
|
2265
|
+
} | {
|
|
2266
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2267
|
+
readonly metadata?: {
|
|
2268
|
+
readonly [x: string]: unknown;
|
|
2269
|
+
} | undefined;
|
|
2270
|
+
readonly type: "assistant";
|
|
2271
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
2272
|
+
readonly model: {
|
|
2273
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2274
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2275
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2276
|
+
};
|
|
2277
|
+
readonly content: readonly ({
|
|
2278
|
+
readonly type: "tool";
|
|
2279
|
+
readonly id: string;
|
|
2280
|
+
readonly name: string;
|
|
2281
|
+
readonly executed?: boolean | undefined;
|
|
2282
|
+
readonly native?: {
|
|
2283
|
+
readonly [x: string]: unknown;
|
|
2284
|
+
} | undefined;
|
|
2285
|
+
readonly state: {
|
|
2286
|
+
readonly status: "streaming";
|
|
2287
|
+
readonly input: string;
|
|
2288
|
+
} | {
|
|
2289
|
+
readonly status: "running";
|
|
2290
|
+
readonly input: {
|
|
2291
|
+
readonly [x: string]: unknown;
|
|
2292
|
+
};
|
|
2293
|
+
readonly metadata: {
|
|
2294
|
+
readonly [x: string]: Schema.Json;
|
|
2295
|
+
};
|
|
2296
|
+
} | {
|
|
2297
|
+
readonly status: "completed";
|
|
2298
|
+
readonly input: {
|
|
2299
|
+
readonly [x: string]: unknown;
|
|
2300
|
+
};
|
|
2301
|
+
readonly content: readonly [{
|
|
2302
|
+
readonly type: "text";
|
|
2303
|
+
readonly text: string;
|
|
2304
|
+
} | {
|
|
2305
|
+
readonly type: "file";
|
|
2306
|
+
readonly uri: string;
|
|
2307
|
+
readonly mime: string;
|
|
2308
|
+
readonly name?: string | undefined;
|
|
2309
|
+
}, ...({
|
|
2310
|
+
readonly type: "text";
|
|
2311
|
+
readonly text: string;
|
|
2312
|
+
} | {
|
|
2313
|
+
readonly type: "file";
|
|
2314
|
+
readonly uri: string;
|
|
2315
|
+
readonly mime: string;
|
|
2316
|
+
readonly name?: string | undefined;
|
|
2317
|
+
})[]];
|
|
2318
|
+
readonly metadata?: {
|
|
2319
|
+
readonly [x: string]: Schema.Json;
|
|
2320
|
+
} | undefined;
|
|
2321
|
+
} | {
|
|
2322
|
+
readonly status: "error";
|
|
2323
|
+
readonly input: {
|
|
2324
|
+
readonly [x: string]: unknown;
|
|
2325
|
+
};
|
|
2326
|
+
readonly error: {
|
|
2327
|
+
readonly type: string;
|
|
2328
|
+
readonly message: string;
|
|
2329
|
+
readonly status?: number | undefined;
|
|
2330
|
+
readonly response?: {
|
|
2331
|
+
readonly body: string;
|
|
2332
|
+
} | undefined;
|
|
2333
|
+
readonly retryAfterMs?: number | undefined;
|
|
2334
|
+
};
|
|
2335
|
+
readonly content?: readonly [{
|
|
2336
|
+
readonly type: "text";
|
|
2337
|
+
readonly text: string;
|
|
2338
|
+
} | {
|
|
2339
|
+
readonly type: "file";
|
|
2340
|
+
readonly uri: string;
|
|
2341
|
+
readonly mime: string;
|
|
2342
|
+
readonly name?: string | undefined;
|
|
2343
|
+
}, ...({
|
|
2344
|
+
readonly type: "text";
|
|
2345
|
+
readonly text: string;
|
|
2346
|
+
} | {
|
|
2347
|
+
readonly type: "file";
|
|
2348
|
+
readonly uri: string;
|
|
2349
|
+
readonly mime: string;
|
|
2350
|
+
readonly name?: string | undefined;
|
|
2351
|
+
})[]] | undefined;
|
|
2352
|
+
readonly metadata?: {
|
|
2353
|
+
readonly [x: string]: Schema.Json;
|
|
2354
|
+
} | undefined;
|
|
2355
|
+
};
|
|
2356
|
+
readonly time: {
|
|
2357
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2358
|
+
readonly ran?: import("effect/DateTime").Utc | undefined;
|
|
2359
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2360
|
+
};
|
|
2361
|
+
} | {
|
|
2362
|
+
readonly type: "text";
|
|
2363
|
+
readonly text: string;
|
|
2364
|
+
readonly native?: {
|
|
2365
|
+
readonly [x: string]: unknown;
|
|
2366
|
+
} | undefined;
|
|
2367
|
+
} | {
|
|
2368
|
+
readonly type: "reasoning";
|
|
2369
|
+
readonly text: string;
|
|
2370
|
+
readonly native?: {
|
|
2371
|
+
readonly [x: string]: unknown;
|
|
2372
|
+
} | undefined;
|
|
2373
|
+
readonly time?: {
|
|
2374
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2375
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2376
|
+
} | undefined;
|
|
2377
|
+
})[];
|
|
2378
|
+
readonly snapshot?: {
|
|
2379
|
+
readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
2380
|
+
readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
2381
|
+
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
2382
|
+
} | undefined;
|
|
2383
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
2384
|
+
readonly rawFinish?: string | undefined;
|
|
2385
|
+
readonly native?: {
|
|
2386
|
+
readonly [x: string]: unknown;
|
|
2387
|
+
} | undefined;
|
|
2388
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2389
|
+
readonly tokens?: {
|
|
2390
|
+
readonly input: number;
|
|
2391
|
+
readonly output: number;
|
|
2392
|
+
readonly reasoning: number;
|
|
2393
|
+
readonly cache: {
|
|
2394
|
+
readonly read: number;
|
|
2395
|
+
readonly write: number;
|
|
2396
|
+
};
|
|
2397
|
+
} | undefined;
|
|
2398
|
+
readonly error?: {
|
|
2399
|
+
readonly type: string;
|
|
2400
|
+
readonly message: string;
|
|
2401
|
+
readonly status?: number | undefined;
|
|
2402
|
+
readonly response?: {
|
|
2403
|
+
readonly body: string;
|
|
2404
|
+
} | undefined;
|
|
2405
|
+
readonly retryAfterMs?: number | undefined;
|
|
2406
|
+
} | undefined;
|
|
2407
|
+
readonly retry?: {
|
|
2408
|
+
readonly attempt: number;
|
|
2409
|
+
readonly at: import("effect/DateTime").Utc;
|
|
2410
|
+
readonly error: {
|
|
2411
|
+
readonly type: string;
|
|
2412
|
+
readonly message: string;
|
|
2413
|
+
readonly status?: number | undefined;
|
|
2414
|
+
readonly response?: {
|
|
2415
|
+
readonly body: string;
|
|
2416
|
+
} | undefined;
|
|
2417
|
+
readonly retryAfterMs?: number | undefined;
|
|
2418
|
+
};
|
|
2419
|
+
} | undefined;
|
|
2420
|
+
readonly time: {
|
|
2421
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2422
|
+
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
2423
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2424
|
+
};
|
|
2425
|
+
} | {
|
|
2426
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2427
|
+
readonly metadata?: {
|
|
2428
|
+
readonly [x: string]: unknown;
|
|
2429
|
+
} | undefined;
|
|
2430
|
+
readonly time: {
|
|
2431
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2432
|
+
};
|
|
2433
|
+
readonly type: "compaction";
|
|
2434
|
+
readonly status: "running";
|
|
2435
|
+
readonly reason: "auto" | "manual";
|
|
2436
|
+
readonly summary: string;
|
|
2437
|
+
} | {
|
|
2438
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2439
|
+
readonly metadata?: {
|
|
2440
|
+
readonly [x: string]: unknown;
|
|
2441
|
+
} | undefined;
|
|
2442
|
+
readonly time: {
|
|
2443
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2444
|
+
};
|
|
2445
|
+
readonly type: "compaction";
|
|
2446
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2447
|
+
readonly tokens?: {
|
|
2448
|
+
readonly input: number;
|
|
2449
|
+
readonly output: number;
|
|
2450
|
+
readonly reasoning: number;
|
|
2451
|
+
readonly cache: {
|
|
2452
|
+
readonly read: number;
|
|
2453
|
+
readonly write: number;
|
|
2454
|
+
};
|
|
2455
|
+
} | undefined;
|
|
2456
|
+
readonly status: "completed";
|
|
2457
|
+
readonly reason: "auto" | "manual";
|
|
2458
|
+
readonly model?: {
|
|
2459
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2460
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2461
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2462
|
+
} | undefined;
|
|
2463
|
+
readonly native?: {
|
|
2464
|
+
readonly [x: string]: unknown;
|
|
2465
|
+
} | undefined;
|
|
2466
|
+
readonly summary: string;
|
|
2467
|
+
} | {
|
|
2468
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2469
|
+
readonly metadata?: {
|
|
2470
|
+
readonly [x: string]: unknown;
|
|
2471
|
+
} | undefined;
|
|
2472
|
+
readonly time: {
|
|
2473
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2474
|
+
};
|
|
2475
|
+
readonly type: "compaction";
|
|
2476
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2477
|
+
readonly tokens?: {
|
|
2478
|
+
readonly input: number;
|
|
2479
|
+
readonly output: number;
|
|
2480
|
+
readonly reasoning: number;
|
|
2481
|
+
readonly cache: {
|
|
2482
|
+
readonly read: number;
|
|
2483
|
+
readonly write: number;
|
|
2484
|
+
};
|
|
2485
|
+
} | undefined;
|
|
2486
|
+
readonly status: "failed";
|
|
2487
|
+
readonly reason: "auto" | "manual";
|
|
2488
|
+
readonly error: {
|
|
2489
|
+
readonly type: string;
|
|
2490
|
+
readonly message: string;
|
|
2491
|
+
readonly status?: number | undefined;
|
|
2492
|
+
readonly response?: {
|
|
2493
|
+
readonly body: string;
|
|
2494
|
+
} | undefined;
|
|
2495
|
+
readonly retryAfterMs?: number | undefined;
|
|
2496
|
+
};
|
|
2497
|
+
} | {
|
|
2498
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2499
|
+
readonly metadata?: {
|
|
2500
|
+
readonly [x: string]: unknown;
|
|
2501
|
+
} | undefined;
|
|
2502
|
+
readonly time: {
|
|
2503
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2504
|
+
};
|
|
2505
|
+
readonly type: "idle";
|
|
2506
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
2507
|
+
readonly error?: {
|
|
2508
|
+
readonly type: string;
|
|
2509
|
+
readonly message: string;
|
|
2510
|
+
readonly status?: number | undefined;
|
|
2511
|
+
readonly response?: {
|
|
2512
|
+
readonly body: string;
|
|
2513
|
+
} | undefined;
|
|
2514
|
+
readonly retryAfterMs?: number | undefined;
|
|
2515
|
+
} | undefined;
|
|
2516
|
+
})[], MessageDecodeError, never>;
|
|
2517
|
+
export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
2518
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
2519
|
+
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<SessionMessage.Info[], MessageDecodeError, never>;
|
|
2520
|
+
export declare const entriesForRunner: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
2521
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
2522
|
+
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
|
|
2523
|
+
initial: string;
|
|
2524
|
+
entries: readonly {
|
|
2525
|
+
readonly seq: number;
|
|
2526
|
+
readonly message: SessionMessage.Info;
|
|
2527
|
+
}[];
|
|
2528
|
+
}, never, never>;
|
|
2529
|
+
export declare const preview: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
2530
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
2531
|
+
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
|
|
2532
|
+
initial: string;
|
|
2533
|
+
messages: SessionMessage.Info[];
|
|
2534
|
+
instructionUpdate: string;
|
|
2535
|
+
}, Instructions.InitializationBlocked, never>;
|
|
2536
|
+
/**
|
|
2537
|
+
* The synthetic messages `load(db, sessionID, "latest")` would return, read without the rest of the transcript. Under
|
|
2538
|
+
* that boundary every row from the latest completed compaction on is kept, and synthetic rows carry no media.
|
|
2539
|
+
*/
|
|
2540
|
+
export declare const synthetics: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
2541
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
2542
|
+
}, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<({
|
|
2543
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2544
|
+
readonly metadata?: {
|
|
2545
|
+
readonly [x: string]: unknown;
|
|
2546
|
+
} | undefined;
|
|
2547
|
+
readonly time: {
|
|
2548
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2549
|
+
};
|
|
2550
|
+
readonly type: "agent-switched";
|
|
2551
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
2552
|
+
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
2553
|
+
} | {
|
|
2554
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2555
|
+
readonly metadata?: {
|
|
2556
|
+
readonly [x: string]: unknown;
|
|
2557
|
+
} | undefined;
|
|
2558
|
+
readonly time: {
|
|
2559
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2560
|
+
};
|
|
2561
|
+
readonly type: "model-switched";
|
|
2562
|
+
readonly model: {
|
|
2563
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2564
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2565
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2566
|
+
};
|
|
2567
|
+
readonly previous?: {
|
|
2568
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2569
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2570
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2571
|
+
} | undefined;
|
|
2572
|
+
} | {
|
|
2573
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2574
|
+
readonly metadata?: {
|
|
2575
|
+
readonly [x: string]: unknown;
|
|
2576
|
+
} | undefined;
|
|
2577
|
+
readonly time: {
|
|
2578
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2579
|
+
};
|
|
2580
|
+
readonly type: "location-switched";
|
|
2581
|
+
readonly location: {
|
|
2582
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2583
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2584
|
+
};
|
|
2585
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
2586
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
2587
|
+
readonly previous?: {
|
|
2588
|
+
readonly location: {
|
|
2589
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
2590
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
2591
|
+
};
|
|
2592
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
2593
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
2594
|
+
} | undefined;
|
|
2595
|
+
} | {
|
|
2596
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2597
|
+
readonly metadata?: {
|
|
2598
|
+
readonly [x: string]: unknown;
|
|
2599
|
+
} | undefined;
|
|
2600
|
+
readonly time: {
|
|
2601
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2602
|
+
};
|
|
2603
|
+
readonly text: string;
|
|
2604
|
+
readonly files?: readonly {
|
|
2605
|
+
readonly data: string;
|
|
863
2606
|
readonly mime: string;
|
|
864
2607
|
readonly source: {
|
|
865
2608
|
readonly type: "inline";
|
|
866
2609
|
} | {
|
|
867
|
-
readonly type: "uri";
|
|
868
|
-
readonly uri: string;
|
|
2610
|
+
readonly type: "uri";
|
|
2611
|
+
readonly uri: string;
|
|
2612
|
+
};
|
|
2613
|
+
readonly name?: string | undefined;
|
|
2614
|
+
readonly description?: string | undefined;
|
|
2615
|
+
readonly mention?: {
|
|
2616
|
+
readonly start: number;
|
|
2617
|
+
readonly end: number;
|
|
2618
|
+
readonly text: string;
|
|
2619
|
+
} | undefined;
|
|
2620
|
+
}[] | undefined;
|
|
2621
|
+
readonly agents?: readonly {
|
|
2622
|
+
readonly name: string;
|
|
2623
|
+
readonly mention?: {
|
|
2624
|
+
readonly start: number;
|
|
2625
|
+
readonly end: number;
|
|
2626
|
+
readonly text: string;
|
|
2627
|
+
} | undefined;
|
|
2628
|
+
}[] | undefined;
|
|
2629
|
+
readonly skills?: readonly {
|
|
2630
|
+
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
2631
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
2632
|
+
readonly text?: string | undefined;
|
|
2633
|
+
readonly mention?: {
|
|
2634
|
+
readonly start: number;
|
|
2635
|
+
readonly end: number;
|
|
2636
|
+
readonly text: string;
|
|
2637
|
+
} | undefined;
|
|
2638
|
+
}[] | undefined;
|
|
2639
|
+
readonly type: "user";
|
|
2640
|
+
} | {
|
|
2641
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2642
|
+
readonly metadata?: {
|
|
2643
|
+
readonly [x: string]: unknown;
|
|
2644
|
+
} | undefined;
|
|
2645
|
+
readonly time: {
|
|
2646
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2647
|
+
};
|
|
2648
|
+
readonly text: string;
|
|
2649
|
+
readonly description?: string | undefined;
|
|
2650
|
+
readonly type: "synthetic";
|
|
2651
|
+
} | {
|
|
2652
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2653
|
+
readonly metadata?: {
|
|
2654
|
+
readonly [x: string]: unknown;
|
|
2655
|
+
} | undefined;
|
|
2656
|
+
readonly time: {
|
|
2657
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2658
|
+
};
|
|
2659
|
+
readonly type: "system";
|
|
2660
|
+
readonly text: string;
|
|
2661
|
+
readonly description?: string | undefined;
|
|
2662
|
+
} | {
|
|
2663
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2664
|
+
readonly metadata?: {
|
|
2665
|
+
readonly [x: string]: unknown;
|
|
2666
|
+
} | undefined;
|
|
2667
|
+
readonly time: {
|
|
2668
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2669
|
+
};
|
|
2670
|
+
readonly type: "skill";
|
|
2671
|
+
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
2672
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
2673
|
+
readonly text: string;
|
|
2674
|
+
} | {
|
|
2675
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2676
|
+
readonly metadata?: {
|
|
2677
|
+
readonly [x: string]: unknown;
|
|
2678
|
+
} | undefined;
|
|
2679
|
+
readonly type: "shell";
|
|
2680
|
+
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
2681
|
+
readonly command: string;
|
|
2682
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
2683
|
+
readonly exit?: number | undefined;
|
|
2684
|
+
readonly output?: {
|
|
2685
|
+
readonly output: string;
|
|
2686
|
+
readonly cursor: number;
|
|
2687
|
+
readonly size: number;
|
|
2688
|
+
readonly truncated: boolean;
|
|
2689
|
+
} | undefined;
|
|
2690
|
+
readonly time: {
|
|
2691
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2692
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2693
|
+
};
|
|
2694
|
+
} | {
|
|
2695
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2696
|
+
readonly metadata?: {
|
|
2697
|
+
readonly [x: string]: unknown;
|
|
2698
|
+
} | undefined;
|
|
2699
|
+
readonly type: "assistant";
|
|
2700
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
2701
|
+
readonly model: {
|
|
2702
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2703
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2704
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2705
|
+
};
|
|
2706
|
+
readonly content: readonly ({
|
|
2707
|
+
readonly type: "tool";
|
|
2708
|
+
readonly id: string;
|
|
2709
|
+
readonly name: string;
|
|
2710
|
+
readonly executed?: boolean | undefined;
|
|
2711
|
+
readonly native?: {
|
|
2712
|
+
readonly [x: string]: unknown;
|
|
2713
|
+
} | undefined;
|
|
2714
|
+
readonly state: {
|
|
2715
|
+
readonly status: "streaming";
|
|
2716
|
+
readonly input: string;
|
|
2717
|
+
} | {
|
|
2718
|
+
readonly status: "running";
|
|
2719
|
+
readonly input: {
|
|
2720
|
+
readonly [x: string]: unknown;
|
|
2721
|
+
};
|
|
2722
|
+
readonly metadata: {
|
|
2723
|
+
readonly [x: string]: Schema.Json;
|
|
2724
|
+
};
|
|
2725
|
+
} | {
|
|
2726
|
+
readonly status: "completed";
|
|
2727
|
+
readonly input: {
|
|
2728
|
+
readonly [x: string]: unknown;
|
|
2729
|
+
};
|
|
2730
|
+
readonly content: readonly [{
|
|
2731
|
+
readonly type: "text";
|
|
2732
|
+
readonly text: string;
|
|
2733
|
+
} | {
|
|
2734
|
+
readonly type: "file";
|
|
2735
|
+
readonly uri: string;
|
|
2736
|
+
readonly mime: string;
|
|
2737
|
+
readonly name?: string | undefined;
|
|
2738
|
+
}, ...({
|
|
2739
|
+
readonly type: "text";
|
|
2740
|
+
readonly text: string;
|
|
2741
|
+
} | {
|
|
2742
|
+
readonly type: "file";
|
|
2743
|
+
readonly uri: string;
|
|
2744
|
+
readonly mime: string;
|
|
2745
|
+
readonly name?: string | undefined;
|
|
2746
|
+
})[]];
|
|
2747
|
+
readonly metadata?: {
|
|
2748
|
+
readonly [x: string]: Schema.Json;
|
|
2749
|
+
} | undefined;
|
|
2750
|
+
} | {
|
|
2751
|
+
readonly status: "error";
|
|
2752
|
+
readonly input: {
|
|
2753
|
+
readonly [x: string]: unknown;
|
|
2754
|
+
};
|
|
2755
|
+
readonly error: {
|
|
2756
|
+
readonly type: string;
|
|
2757
|
+
readonly message: string;
|
|
2758
|
+
readonly status?: number | undefined;
|
|
2759
|
+
readonly response?: {
|
|
2760
|
+
readonly body: string;
|
|
2761
|
+
} | undefined;
|
|
2762
|
+
readonly retryAfterMs?: number | undefined;
|
|
2763
|
+
};
|
|
2764
|
+
readonly content?: readonly [{
|
|
2765
|
+
readonly type: "text";
|
|
2766
|
+
readonly text: string;
|
|
2767
|
+
} | {
|
|
2768
|
+
readonly type: "file";
|
|
2769
|
+
readonly uri: string;
|
|
2770
|
+
readonly mime: string;
|
|
2771
|
+
readonly name?: string | undefined;
|
|
2772
|
+
}, ...({
|
|
2773
|
+
readonly type: "text";
|
|
2774
|
+
readonly text: string;
|
|
2775
|
+
} | {
|
|
2776
|
+
readonly type: "file";
|
|
2777
|
+
readonly uri: string;
|
|
2778
|
+
readonly mime: string;
|
|
2779
|
+
readonly name?: string | undefined;
|
|
2780
|
+
})[]] | undefined;
|
|
2781
|
+
readonly metadata?: {
|
|
2782
|
+
readonly [x: string]: Schema.Json;
|
|
2783
|
+
} | undefined;
|
|
869
2784
|
};
|
|
870
|
-
readonly
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
readonly
|
|
874
|
-
|
|
875
|
-
|
|
2785
|
+
readonly time: {
|
|
2786
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2787
|
+
readonly ran?: import("effect/DateTime").Utc | undefined;
|
|
2788
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2789
|
+
};
|
|
2790
|
+
} | {
|
|
2791
|
+
readonly type: "text";
|
|
2792
|
+
readonly text: string;
|
|
2793
|
+
readonly native?: {
|
|
2794
|
+
readonly [x: string]: unknown;
|
|
876
2795
|
} | undefined;
|
|
877
|
-
}
|
|
878
|
-
|
|
879
|
-
readonly
|
|
880
|
-
readonly
|
|
881
|
-
readonly
|
|
882
|
-
readonly end: number;
|
|
883
|
-
readonly text: string;
|
|
2796
|
+
} | {
|
|
2797
|
+
readonly type: "reasoning";
|
|
2798
|
+
readonly text: string;
|
|
2799
|
+
readonly native?: {
|
|
2800
|
+
readonly [x: string]: unknown;
|
|
884
2801
|
} | undefined;
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
889
|
-
readonly text?: string | undefined;
|
|
890
|
-
readonly mention?: {
|
|
891
|
-
readonly start: number;
|
|
892
|
-
readonly end: number;
|
|
893
|
-
readonly text: string;
|
|
2802
|
+
readonly time?: {
|
|
2803
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2804
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
894
2805
|
} | undefined;
|
|
895
|
-
}[]
|
|
896
|
-
readonly
|
|
2806
|
+
})[];
|
|
2807
|
+
readonly snapshot?: {
|
|
2808
|
+
readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
2809
|
+
readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
2810
|
+
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
2811
|
+
} | undefined;
|
|
2812
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
2813
|
+
readonly rawFinish?: string | undefined;
|
|
2814
|
+
readonly native?: {
|
|
2815
|
+
readonly [x: string]: unknown;
|
|
2816
|
+
} | undefined;
|
|
2817
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2818
|
+
readonly tokens?: {
|
|
2819
|
+
readonly input: number;
|
|
2820
|
+
readonly output: number;
|
|
2821
|
+
readonly reasoning: number;
|
|
2822
|
+
readonly cache: {
|
|
2823
|
+
readonly read: number;
|
|
2824
|
+
readonly write: number;
|
|
2825
|
+
};
|
|
2826
|
+
} | undefined;
|
|
2827
|
+
readonly error?: {
|
|
2828
|
+
readonly type: string;
|
|
2829
|
+
readonly message: string;
|
|
2830
|
+
readonly status?: number | undefined;
|
|
2831
|
+
readonly response?: {
|
|
2832
|
+
readonly body: string;
|
|
2833
|
+
} | undefined;
|
|
2834
|
+
readonly retryAfterMs?: number | undefined;
|
|
2835
|
+
} | undefined;
|
|
2836
|
+
readonly retry?: {
|
|
2837
|
+
readonly attempt: number;
|
|
2838
|
+
readonly at: import("effect/DateTime").Utc;
|
|
2839
|
+
readonly error: {
|
|
2840
|
+
readonly type: string;
|
|
2841
|
+
readonly message: string;
|
|
2842
|
+
readonly status?: number | undefined;
|
|
2843
|
+
readonly response?: {
|
|
2844
|
+
readonly body: string;
|
|
2845
|
+
} | undefined;
|
|
2846
|
+
readonly retryAfterMs?: number | undefined;
|
|
2847
|
+
};
|
|
2848
|
+
} | undefined;
|
|
2849
|
+
readonly time: {
|
|
2850
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2851
|
+
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
2852
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
2853
|
+
};
|
|
2854
|
+
} | {
|
|
2855
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2856
|
+
readonly metadata?: {
|
|
2857
|
+
readonly [x: string]: unknown;
|
|
2858
|
+
} | undefined;
|
|
2859
|
+
readonly time: {
|
|
2860
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2861
|
+
};
|
|
2862
|
+
readonly type: "compaction";
|
|
2863
|
+
readonly status: "running";
|
|
2864
|
+
readonly reason: "auto" | "manual";
|
|
2865
|
+
readonly summary: string;
|
|
2866
|
+
} | {
|
|
2867
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2868
|
+
readonly metadata?: {
|
|
2869
|
+
readonly [x: string]: unknown;
|
|
2870
|
+
} | undefined;
|
|
2871
|
+
readonly time: {
|
|
2872
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2873
|
+
};
|
|
2874
|
+
readonly type: "compaction";
|
|
2875
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2876
|
+
readonly tokens?: {
|
|
2877
|
+
readonly input: number;
|
|
2878
|
+
readonly output: number;
|
|
2879
|
+
readonly reasoning: number;
|
|
2880
|
+
readonly cache: {
|
|
2881
|
+
readonly read: number;
|
|
2882
|
+
readonly write: number;
|
|
2883
|
+
};
|
|
2884
|
+
} | undefined;
|
|
2885
|
+
readonly status: "completed";
|
|
2886
|
+
readonly reason: "auto" | "manual";
|
|
2887
|
+
readonly model?: {
|
|
2888
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
2889
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
2890
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
2891
|
+
} | undefined;
|
|
2892
|
+
readonly native?: {
|
|
2893
|
+
readonly [x: string]: unknown;
|
|
2894
|
+
} | undefined;
|
|
2895
|
+
readonly summary: string;
|
|
2896
|
+
} | {
|
|
2897
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2898
|
+
readonly metadata?: {
|
|
2899
|
+
readonly [x: string]: unknown;
|
|
2900
|
+
} | undefined;
|
|
2901
|
+
readonly time: {
|
|
2902
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2903
|
+
};
|
|
2904
|
+
readonly type: "compaction";
|
|
2905
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
2906
|
+
readonly tokens?: {
|
|
2907
|
+
readonly input: number;
|
|
2908
|
+
readonly output: number;
|
|
2909
|
+
readonly reasoning: number;
|
|
2910
|
+
readonly cache: {
|
|
2911
|
+
readonly read: number;
|
|
2912
|
+
readonly write: number;
|
|
2913
|
+
};
|
|
2914
|
+
} | undefined;
|
|
2915
|
+
readonly status: "failed";
|
|
2916
|
+
readonly reason: "auto" | "manual";
|
|
2917
|
+
readonly error: {
|
|
2918
|
+
readonly type: string;
|
|
2919
|
+
readonly message: string;
|
|
2920
|
+
readonly status?: number | undefined;
|
|
2921
|
+
readonly response?: {
|
|
2922
|
+
readonly body: string;
|
|
2923
|
+
} | undefined;
|
|
2924
|
+
readonly retryAfterMs?: number | undefined;
|
|
2925
|
+
};
|
|
2926
|
+
} | {
|
|
2927
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2928
|
+
readonly metadata?: {
|
|
2929
|
+
readonly [x: string]: unknown;
|
|
2930
|
+
} | undefined;
|
|
2931
|
+
readonly time: {
|
|
2932
|
+
readonly created: import("effect/DateTime").Utc;
|
|
2933
|
+
};
|
|
2934
|
+
readonly type: "idle";
|
|
2935
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
2936
|
+
readonly error?: {
|
|
2937
|
+
readonly type: string;
|
|
2938
|
+
readonly message: string;
|
|
2939
|
+
readonly status?: number | undefined;
|
|
2940
|
+
readonly response?: {
|
|
2941
|
+
readonly body: string;
|
|
2942
|
+
} | undefined;
|
|
2943
|
+
readonly retryAfterMs?: number | undefined;
|
|
2944
|
+
} | undefined;
|
|
2945
|
+
})[], MessageDecodeError, never>;
|
|
2946
|
+
/** The id and text of the session's first user message. */
|
|
2947
|
+
export declare const firstUserMessage: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
2948
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
2949
|
+
}, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<{
|
|
2950
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
2951
|
+
text: string;
|
|
897
2952
|
} | undefined, never, never>;
|
|
898
2953
|
export * as SessionHistory from "./history.js";
|