@opencode/core 2.1.4 → 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 +7 -7
- package/dist/bus.js +79 -75
- package/dist/chunks/{location-xyswfhq2.js → tool-012mq190.js} +33 -33
- package/dist/chunks/{location-80cqk4v7.js → tool-02nh8ewm.js} +18 -14
- package/dist/chunks/{location-034tev2y.js → tool-034tev2y.js} +2 -2
- package/dist/chunks/{location-9b28cy4d.js → tool-09bv4atg.js} +13 -7
- package/dist/chunks/{location-jdcya02q.js → tool-0a2sm9cp.js} +18 -18
- package/dist/chunks/{location-2jq4ff38.js → tool-0ahs07zn.js} +4 -4
- package/dist/chunks/{location-ytsgm675.js → tool-0fhbvqtr.js} +9 -9
- package/dist/chunks/{location-3y1df9hb.js → tool-0t332zg2.js} +6 -6
- package/dist/chunks/{location-8jztxfpf.js → tool-11hfp36g.js} +4 -4
- package/dist/chunks/tool-12cx84te.js +224 -0
- package/dist/chunks/{location-6pe7vn7p.js → tool-14kcwm24.js} +15 -15
- package/dist/chunks/{location-jw4xm41e.js → tool-18s0c7mk.js} +13 -13
- package/dist/chunks/{location-2ggqsqg3.js → tool-19y1mz66.js} +7 -7
- package/dist/chunks/{location-jz6d5c41.js → tool-1b236rmr.js} +206 -156
- package/dist/chunks/{location-gnkrmvzs.js → tool-1dvrssaw.js} +6 -4
- package/dist/chunks/{location-1ep2p91f.js → tool-1ep2p91f.js} +2 -2
- package/dist/chunks/{location-5fjb7ams.js → tool-1jakw16s.js} +2 -2
- package/dist/chunks/{location-cp65cvxr.js → tool-1px95g66.js} +13 -13
- package/dist/chunks/{location-vxybbfew.js → tool-1qb2fn2e.js} +12 -12
- package/dist/chunks/{location-y9awcm76.js → tool-1vpe07px.js} +78 -23
- package/dist/chunks/{location-1x2knyw4.js → tool-1x2knyw4.js} +1 -1
- package/dist/chunks/{location-vd3b3yk9.js → tool-204s3925.js} +13 -2
- package/dist/chunks/{location-wxy5qeqz.js → tool-27c23e33.js} +15 -15
- package/dist/chunks/{location-rttdb5jp.js → tool-28pnz6dy.js} +33 -33
- package/dist/chunks/tool-2esqe60t.js +252 -0
- package/dist/chunks/{location-997dsrmm.js → tool-2jrrfqe1.js} +17 -7
- package/dist/chunks/{location-cxat4xx2.js → tool-2nkqvy4a.js} +29 -29
- package/dist/chunks/{location-rkvk32bt.js → tool-2qgpse07.js} +16 -16
- package/dist/chunks/{location-aft2va8r.js → tool-2xw2f3vf.js} +11 -11
- package/dist/chunks/{location-c34bh8hr.js → tool-30wtetgq.js} +49 -44
- package/dist/chunks/{location-yx8gesms.js → tool-39j6yt37.js} +10 -10
- package/dist/chunks/{location-09wmedhs.js → tool-39tkfg3g.js} +9 -9
- package/dist/chunks/{location-2bymr7vt.js → tool-3ewwa9eq.js} +28 -28
- package/dist/chunks/{location-x3w3gr0t.js → tool-3f13jy3s.js} +30 -30
- package/dist/chunks/{location-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-4v3515yy.js → tool-3jy1f5rc.js} +66 -49
- package/dist/chunks/{location-2n0y9ar2.js → tool-3k7t0q4z.js} +15 -15
- package/dist/chunks/{location-3nnrz6f6.js → tool-3nnrz6f6.js} +1 -1
- package/dist/chunks/{location-dvpv1qqw.js → tool-3nr2yc9a.js} +5 -5
- package/dist/chunks/{location-p184mqc5.js → tool-3t4066nw.js} +17 -17
- package/dist/chunks/{location-239z01gj.js → tool-41sh1bbt.js} +8 -6
- package/dist/chunks/{location-fjnhz8nn.js → tool-47cq5kqw.js} +4 -4
- package/dist/chunks/{location-2ahfrs74.js → tool-4czcg6bs.js} +16 -16
- package/dist/chunks/{location-9zetw7am.js → tool-4jw80zew.js} +77 -77
- package/dist/chunks/{location-pkyv6v7h.js → tool-4m86bj6y.js} +24 -15
- package/dist/chunks/{location-ddwaa558.js → tool-4pw98qd4.js} +4 -4
- package/dist/chunks/{location-2z1j29yd.js → tool-4pyp9zr9.js} +19 -3
- package/dist/chunks/{location-7vd4enbp.js → tool-4t7jqkaw.js} +15 -15
- package/dist/chunks/{location-4v008n1t.js → tool-4v008n1t.js} +1 -1
- package/dist/chunks/{location-4y92vxjf.js → tool-4zsrmah6.js} +51 -51
- package/dist/chunks/{location-j6sw43tq.js → tool-5858b97a.js} +15 -15
- package/dist/chunks/{location-2s6r54qs.js → tool-5887ft1y.js} +7 -7
- package/dist/chunks/{location-et9e0jv5.js → tool-5dme8x4x.js} +11 -11
- package/dist/chunks/{location-86439gfw.js → tool-5fgj30xe.js} +30 -30
- package/dist/chunks/{location-q89bkvf2.js → tool-5k0vn9gs.js} +2 -2
- package/dist/chunks/{location-5m9w47nd.js → tool-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-dgj49q4q.js → tool-5n6snyjt.js} +52 -36
- package/dist/chunks/tool-5w3e23ze.js +16 -0
- package/dist/chunks/{location-89c7n5pz.js → tool-5wtqv2es.js} +5 -5
- package/dist/chunks/{location-bjhzkqyk.js → tool-61ennm6n.js} +4 -4
- package/dist/chunks/{location-9s6wb0ev.js → tool-67cvb3ht.js} +9 -9
- package/dist/chunks/{location-6b66j3w1.js → tool-6adqbtbr.js} +43 -32
- package/dist/chunks/tool-6bshxcsx.js +18 -0
- package/dist/chunks/{location-6esdw8yj.js → tool-6esdw8yj.js} +1 -1
- package/dist/chunks/{location-830bkp7y.js → tool-6h9hqrxp.js} +26 -24
- package/dist/chunks/{location-37d4mgj3.js → tool-6jehphsq.js} +36 -36
- package/dist/chunks/{location-1bmrwaa5.js → tool-6mmkz41v.js} +16 -16
- package/dist/chunks/{location-eggkdbge.js → tool-6qtsf31h.js} +3 -3
- package/dist/chunks/{location-txg5xg0c.js → tool-6rfxa98r.js} +33 -33
- package/dist/chunks/{location-rjnacbrz.js → tool-6twykydk.js} +9 -9
- package/dist/chunks/{location-s9ty2h8k.js → tool-6wz31r82.js} +11 -11
- package/dist/chunks/{location-xr94g6d3.js → tool-7467kx48.js} +64 -45
- package/dist/chunks/{location-0hpjzkz5.js → tool-752zwhsj.js} +20 -14
- package/dist/chunks/{location-76cb1hcw.js → tool-76cb1hcw.js} +1 -1
- package/dist/chunks/{location-nah043kf.js → tool-770pw0s1.js} +4 -4
- package/dist/chunks/{location-mh30raav.js → tool-780q7vq9.js} +9 -7
- package/dist/chunks/{location-sk6vvdwr.js → tool-78kz22ny.js} +19 -19
- package/dist/chunks/{location-kp4ctdbn.js → tool-798y36pp.js} +51 -31
- package/dist/chunks/{location-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-584rjm98.js → tool-7f02p6s5.js} +1 -1
- package/dist/chunks/{location-1xwgv2nq.js → tool-7gm95e0b.js} +6 -6
- package/dist/chunks/{location-4bvc8sjz.js → tool-7harcha2.js} +2 -2
- package/dist/chunks/{location-ckr4b3py.js → tool-7hsh0za6.js} +48 -48
- package/dist/chunks/{location-pt3agb94.js → tool-7mwfr1ya.js} +14 -14
- package/dist/chunks/{location-7bgh3hsv.js → tool-7tjh76vn.js} +28 -9
- package/dist/chunks/{location-7w2ypzdf.js → tool-7w2ypzdf.js} +1 -1
- package/dist/chunks/{location-5qebhevh.js → tool-88degkwg.js} +48 -23
- package/dist/chunks/{location-2cjxs9ry.js → tool-8cvc109z.js} +23 -23
- package/dist/chunks/{location-3yy2vhmn.js → tool-8d9gtfa7.js} +30 -23
- package/dist/chunks/tool-8e0gbf5j.js +537 -0
- package/dist/chunks/{location-81va5nb7.js → tool-8feq5yxx.js} +19 -19
- package/dist/chunks/tool-8jkecmvj.js +111 -0
- package/dist/chunks/{location-a5h3ke48.js → tool-8rk0v0nw.js} +33 -33
- package/dist/chunks/{location-ptcpq2hv.js → tool-8t8mrqrh.js} +6 -6
- package/dist/chunks/{location-afmnpta1.js → tool-8wc2fpae.js} +5 -5
- package/dist/chunks/{location-8wtp7s3z.js → tool-8wtp7s3z.js} +1 -1
- package/dist/chunks/{location-g7esga4v.js → tool-8y4jps98.js} +7 -7
- package/dist/chunks/{location-maspj1v3.js → tool-90zstvax.js} +44 -8
- package/dist/chunks/{location-j8pg8rcr.js → tool-94as0g8p.js} +61 -41
- package/dist/chunks/{location-633qbm06.js → tool-9e6q8a6s.js} +14 -14
- package/dist/chunks/{location-3mgb105e.js → tool-9f3sjfep.js} +9 -9
- package/dist/chunks/{location-ytvhabzn.js → tool-9kqcsae8.js} +22 -16
- package/dist/chunks/{location-s2pfznc4.js → tool-9nkjg9qd.js} +6 -6
- package/dist/chunks/{location-1y0wdj51.js → tool-9q8g9sv8.js} +9 -9
- package/dist/chunks/{location-t6dn99ca.js → tool-9t5cp16p.js} +27 -22
- package/dist/chunks/{location-9dxz0jcc.js → tool-9taxa3wa.js} +15 -12
- package/dist/chunks/{location-8vjz6zkc.js → tool-a35byqw0.js} +28 -28
- package/dist/chunks/{location-dg6zbqet.js → tool-agmw1zcy.js} +61 -61
- package/dist/chunks/tool-asd4mxps.js +26 -0
- package/dist/chunks/{location-ayjs7tqn.js → tool-ayjs7tqn.js} +2 -2
- package/dist/chunks/{location-7jrmq8v4.js → tool-ayv543vf.js} +23 -23
- package/dist/chunks/{location-scdee33y.js → tool-b08y6na7.js} +2 -2
- package/dist/chunks/{location-b6vsg801.js → tool-b6vsg801.js} +2 -2
- package/dist/chunks/{location-m9ga4zyy.js → tool-b7286km2.js} +6 -6
- package/dist/chunks/{location-0pm6fm3r.js → tool-bavxd7np.js} +91 -67
- package/dist/chunks/{location-wjj7prxr.js → tool-beh6qq61.js} +11 -0
- package/dist/chunks/{location-b29mbqx6.js → tool-bgs9y14h.js} +5 -5
- package/dist/chunks/{location-v6h5bgwd.js → tool-bk7xq8bh.js} +8 -8
- package/dist/chunks/{location-bstexjd6.js → tool-bstexjd6.js} +1 -1
- package/dist/chunks/{location-xy22cvcr.js → tool-c065g2ca.js} +67 -51
- package/dist/chunks/{location-wedh6qfb.js → tool-c1y12bqd.js} +35 -37
- package/dist/chunks/{location-z06f5xk1.js → tool-c347jtgq.js} +29 -29
- package/dist/chunks/{location-6p8ga3wk.js → tool-cnga39w3.js} +17 -17
- package/dist/chunks/{location-n1ryh798.js → tool-cnh9xgcw.js} +46 -44
- package/dist/chunks/tool-cqv5kn06.js +13 -0
- package/dist/chunks/{location-m5nnd4yj.js → tool-cwq9059v.js} +19 -17
- package/dist/chunks/{location-b0mv4wxm.js → tool-cwrgdav8.js} +2 -2
- package/dist/chunks/{location-rxz7t1tx.js → tool-d3qmtx3n.js} +71 -39
- package/dist/chunks/{location-d4v9tmah.js → tool-d4v9tmah.js} +2 -2
- package/dist/chunks/{location-2h6s5afk.js → tool-d893c1qn.js} +13 -13
- package/dist/chunks/{location-7th4r57j.js → tool-d9hg8633.js} +17 -17
- package/dist/chunks/{location-x6zjgj80.js → tool-ds82yrjj.js} +35 -22
- package/dist/chunks/{location-j113cymg.js → tool-dt77769w.js} +2 -2
- package/dist/chunks/{location-d5m0d1jd.js → tool-dtfj6qhp.js} +121 -94
- package/dist/chunks/{location-dqc1xg2h.js → tool-dvbyh3pq.js} +51 -48
- package/dist/chunks/{location-ye1xrrbs.js → tool-dwxkhmt2.js} +18 -20
- package/dist/chunks/tool-e07q2w5p.js +83 -0
- package/dist/chunks/{location-ky7vvs7w.js → tool-e4vy1v26.js} +87 -35
- package/dist/chunks/{location-e834z07m.js → tool-e834z07m.js} +1 -1
- package/dist/chunks/{location-0928y98p.js → tool-edkh5za3.js} +3 -3
- package/dist/chunks/{location-nm4377q9.js → tool-ewr5k9wg.js} +5 -5
- package/dist/chunks/{location-snh71vez.js → tool-f1kzydc9.js} +30 -29
- package/dist/chunks/{location-bm60t44w.js → tool-f449218g.js} +3 -3
- package/dist/chunks/{location-k6wybhe4.js → tool-f68rfrfr.js} +33 -36
- package/dist/chunks/{location-h8rac0eh.js → tool-f8jj8vg7.js} +12 -12
- package/dist/chunks/{location-fffv3p7h.js → tool-fffv3p7h.js} +1 -1
- package/dist/chunks/tool-fkpq3x5p.js +36 -0
- package/dist/chunks/{location-eh71ek0g.js → tool-g2pxrbdf.js} +90 -77
- package/dist/chunks/{location-v0ajt838.js → tool-g3b4788n.js} +33 -21
- package/dist/chunks/{location-rkdfvdar.js → tool-ge4qdnbb.js} +28 -25
- package/dist/chunks/{location-998yhzzq.js → tool-gg8p9cgs.js} +24 -18
- package/dist/chunks/{location-w00s5rdr.js → tool-gjasn01h.js} +4 -4
- package/dist/chunks/{location-w67r90k6.js → tool-gn0hevf2.js} +13 -13
- package/dist/chunks/{location-fcfxs1zj.js → tool-gtqjgkpw.js} +3 -3
- package/dist/chunks/{location-v0h1q5gr.js → tool-h0ya90rh.js} +23 -19
- package/dist/chunks/{location-p894etz3.js → tool-h8wtbm19.js} +49 -49
- package/dist/chunks/{location-c3cfh5w6.js → tool-hdfrs5mg.js} +5 -5
- package/dist/chunks/{location-6pjqjmy2.js → tool-hpg1pkwy.js} +2 -2
- package/dist/chunks/{location-7hk3fzbx.js → tool-hs9cwcgs.js} +30 -30
- package/dist/chunks/{location-t09yj0zj.js → tool-hy05jz59.js} +4 -4
- package/dist/chunks/{location-y2hbnz15.js → tool-j04c4e1z.js} +25 -25
- package/dist/chunks/{location-5ysrq0ad.js → tool-j3xa31ke.js} +17 -17
- package/dist/chunks/{location-jbt1xm3n.js → tool-j56qcejd.js} +324 -330
- package/dist/chunks/tool-j775gmwt.js +171 -0
- package/dist/chunks/{location-91rj84md.js → tool-jfaecv01.js} +2 -2
- package/dist/chunks/{location-3043t2hd.js → tool-jhz9911s.js} +46 -31
- package/dist/chunks/{location-tx9vmxa7.js → tool-jsqg4353.js} +14 -14
- package/dist/chunks/{location-8bf8d73q.js → tool-jszqqvxf.js} +9 -9
- package/dist/chunks/{location-g5h9c0rr.js → tool-jtnps1zs.js} +2 -2
- package/dist/chunks/tool-jwr30sdr.js +13 -0
- package/dist/chunks/{location-vqpjc3nz.js → tool-jz5b6eqf.js} +32 -26
- package/dist/chunks/{location-6z79x2sm.js → tool-k66e5v3s.js} +13 -13
- package/dist/chunks/{location-k814nvkf.js → tool-k814nvkf.js} +1 -1
- package/dist/chunks/{location-8c8xwrnt.js → tool-kcw9vyak.js} +14 -14
- package/dist/chunks/{location-fphnwtmq.js → tool-kh9rt25c.js} +8 -8
- package/dist/chunks/{location-005psrwt.js → tool-ks0qaf84.js} +23 -21
- package/dist/chunks/{location-raq1s93x.js → tool-ks473cwm.js} +22 -22
- package/dist/chunks/tool-kt3bjfbg.js +26 -0
- package/dist/chunks/{location-ran0pwn3.js → tool-kzvqqj4g.js} +24 -24
- package/dist/chunks/{location-m1714858.js → tool-m1714858.js} +1 -1
- package/dist/chunks/{location-zakhs7qb.js → tool-m89ew3ks.js} +30 -30
- package/dist/chunks/{location-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-7jg3h9xc.js → tool-maq43m3m.js} +10 -10
- package/dist/chunks/{location-2brc2rvy.js → tool-mpvgefqy.js} +4 -4
- package/dist/chunks/tool-mrzap57y.js +295 -0
- package/dist/chunks/{location-42hxtx4a.js → tool-mvzrjhep.js} +2 -2
- package/dist/chunks/{location-1dqke238.js → tool-n0w6tq5t.js} +8 -8
- package/dist/chunks/{location-5qd3pb7m.js → tool-ncqqe42p.js} +2 -2
- package/dist/chunks/{location-t35vpv8z.js → tool-nfga29bv.js} +31 -30
- package/dist/chunks/{location-nfdwtzhc.js → tool-nfk1y8jw.js} +29 -29
- package/dist/chunks/{location-z24fzt3x.js → tool-nfq3amnp.js} +31 -30
- package/dist/chunks/{location-t9sf4w0m.js → tool-nh9ma6fe.js} +11 -11
- package/dist/chunks/{location-4kb4jvb8.js → tool-nn3qjkhj.js} +24 -24
- package/dist/chunks/{location-9p7ryr2b.js → tool-nq0efya9.js} +7 -7
- package/dist/chunks/{location-axe3mf62.js → tool-nvxqht09.js} +3 -3
- package/dist/chunks/{location-hyvp8sn8.js → tool-nyw2x12k.js} +1 -1
- package/dist/chunks/{location-hqgpx30z.js → tool-nz89qvcx.js} +34 -32
- package/dist/chunks/{location-p015t6z3.js → tool-p015t6z3.js} +2 -2
- package/dist/chunks/{location-hgn7fvrd.js → tool-p56gnsnx.js} +31 -31
- package/dist/chunks/tool-p71gwv9c.js +153 -0
- package/dist/chunks/{location-1yq9hg58.js → tool-p7vhpwh8.js} +5 -5
- package/dist/chunks/{location-nes0ks30.js → tool-p84syj9g.js} +31 -29
- package/dist/chunks/{location-zkgq49d1.js → tool-pbbktnbz.js} +6 -6
- package/dist/chunks/{location-nbvb24gq.js → tool-pbwrhxm9.js} +22 -22
- package/dist/chunks/{location-e6ke8dsh.js → tool-pckyv4f2.js} +36 -36
- package/dist/chunks/{location-2satw072.js → tool-pfnzsr07.js} +22 -22
- package/dist/chunks/{location-kjb4x69f.js → tool-pfstxkm2.js} +1 -1
- package/dist/chunks/tool-pjtyf8t7.js +133 -0
- package/dist/chunks/{location-pknna89w.js → tool-pknna89w.js} +1 -1
- package/dist/chunks/{location-a7hcemwv.js → tool-pnwsrq7c.js} +11 -11
- package/dist/chunks/tool-prq7xxp2.js +37 -0
- package/dist/chunks/{location-fqzd2d2r.js → tool-pvzzwdfq.js} +14 -14
- package/dist/chunks/{location-qbgwvbz8.js → tool-q2z4k2x9.js} +12 -12
- package/dist/chunks/{location-4jbtvrw1.js → tool-q63v4kjv.js} +21 -16
- package/dist/chunks/{location-hfkcnh3h.js → tool-qakjdagf.js} +42 -32
- package/dist/chunks/{location-xewrm1yq.js → tool-qcsk8x8g.js} +119 -69
- package/dist/chunks/{location-r20swzxr.js → tool-qhfm6m5r.js} +27 -25
- package/dist/chunks/tool-qp7r0hxv.js +120 -0
- package/dist/chunks/{location-jh9pmtvm.js → tool-r023m38x.js} +16 -16
- package/dist/chunks/{location-r0yr0wbs.js → tool-r0yr0wbs.js} +1 -1
- package/dist/chunks/{location-4fspmagn.js → tool-r0yvbzfa.js} +75 -60
- package/dist/chunks/{location-f7ma11rg.js → tool-r2z94j39.js} +6 -6
- package/dist/chunks/{location-tw8zr1ps.js → tool-r542h3bh.js} +5 -2
- package/dist/chunks/{location-fjngd7fj.js → tool-r850md5t.js} +11 -11
- package/dist/chunks/{location-tseqrb92.js → tool-r8dwygj6.js} +55 -55
- package/dist/chunks/{location-0gbb59p9.js → tool-r9zrswe1.js} +9 -9
- package/dist/chunks/{location-kmzgegqq.js → tool-ra6js1h8.js} +8 -8
- package/dist/chunks/{location-rb9dy4dg.js → tool-rb9dy4dg.js} +1 -1
- package/dist/chunks/{location-rgyfs092.js → tool-rbhebfmq.js} +6 -6
- package/dist/chunks/{location-xzb17nsd.js → tool-rgmk1r1t.js} +62 -27
- package/dist/chunks/{location-nb3nrvbh.js → tool-rjf5h5f7.js} +8 -8
- package/dist/chunks/{location-5nankzt7.js → tool-rr19gkj4.js} +13 -13
- package/dist/chunks/{location-rt5dr6hb.js → tool-rt5dr6hb.js} +1 -1
- package/dist/chunks/{location-x2adk3yy.js → tool-rvy8xhsv.js} +33 -32
- package/dist/chunks/{location-v3q8ezdd.js → tool-rzh929cz.js} +13 -13
- package/dist/chunks/{location-q55b1wrz.js → tool-s6jj6eh0.js} +15 -15
- package/dist/chunks/{location-3sfq932m.js → tool-s9zns2yk.js} +23 -30
- package/dist/chunks/tool-sa3fpqfw.js +46 -0
- package/dist/chunks/{location-qbm0r1ap.js → tool-sa46y2cf.js} +10 -8
- package/dist/chunks/{location-nte6bvsd.js → tool-sbj9xhv5.js} +79 -53
- package/dist/chunks/{location-ke7vzy3f.js → tool-sc5azq8x.js} +77 -45
- package/dist/chunks/{location-z359x3zf.js → tool-spqj5yby.js} +27 -27
- package/dist/chunks/{location-sqjzf8x2.js → tool-sqjzf8x2.js} +1 -1
- package/dist/chunks/{location-d2887f8n.js → tool-ssfehs1z.js} +4 -4
- package/dist/chunks/{location-3j92816q.js → tool-st7p3hwb.js} +2 -2
- package/dist/chunks/{location-zkg84ctx.js → tool-svcy3p9a.js} +4 -2
- package/dist/chunks/{location-jznc3yn3.js → tool-sw5vdw2h.js} +8 -8
- package/dist/chunks/{location-g3avwj86.js → tool-sws77t7f.js} +11 -11
- package/dist/chunks/{location-tczq8hjw.js → tool-tczq8hjw.js} +1 -1
- package/dist/chunks/{location-b259twyp.js → tool-tt79p4vp.js} +21 -21
- package/dist/chunks/tool-twcztz12.js +479 -0
- package/dist/chunks/{location-twv2r8f4.js → tool-twssxy5n.js} +2 -2
- package/dist/chunks/{location-v2r1d0zg.js → tool-v2r1d0zg.js} +1 -1
- package/dist/chunks/{location-dxbw252c.js → tool-v6njdshh.js} +21 -21
- package/dist/chunks/{location-j2cjg2qt.js → tool-v91xp2c8.js} +20 -20
- package/dist/chunks/{location-q1rqw855.js → tool-vacfhfey.js} +10 -10
- package/dist/chunks/{location-pc1v25hk.js → tool-vb80j1wh.js} +4 -4
- package/dist/chunks/{location-veqvce7d.js → tool-veqvce7d.js} +1 -1
- package/dist/chunks/{location-s56jz2hb.js → tool-vmx0pqdh.js} +28 -29
- package/dist/chunks/{location-c8666r4c.js → tool-vsqvcqta.js} +7 -7
- package/dist/chunks/{location-3e8nvsz7.js → tool-vvj7j8xf.js} +3 -3
- package/dist/chunks/{location-b46dzrwk.js → tool-vvqzd10p.js} +42 -42
- package/dist/chunks/{location-k732j073.js → tool-vycsk1c7.js} +8 -8
- package/dist/chunks/{location-1qtv120j.js → tool-w08h028t.js} +9 -9
- package/dist/chunks/{location-40za9wsf.js → tool-w2eysc6j.js} +9 -9
- package/dist/chunks/{location-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-30bn4rx3.js → tool-w9z9y32t.js} +21 -21
- package/dist/chunks/{location-wakvkjy4.js → tool-wakvkjy4.js} +1 -1
- package/dist/chunks/{location-wd87259q.js → tool-wd87259q.js} +1 -1
- package/dist/chunks/{location-n0p0277s.js → tool-wnhgecwx.js} +35 -4
- package/dist/chunks/{location-w687dnns.js → tool-wr3re1en.js} +4 -4
- package/dist/chunks/tool-wz464gjx.js +42 -0
- package/dist/chunks/{location-wf8nwwfn.js → tool-x75vegnr.js} +9 -9
- package/dist/chunks/{location-m0gv7qej.js → tool-xasx590j.js} +14 -14
- package/dist/chunks/{location-mjey6v08.js → tool-xhrs65th.js} +7 -7
- package/dist/chunks/{location-qyx1nkkd.js → tool-xpx0z35b.js} +19 -19
- package/dist/chunks/{location-37c15ztt.js → tool-xqxzn5yn.js} +14 -14
- package/dist/chunks/{location-jneg3k74.js → tool-xt0z8zst.js} +6 -6
- package/dist/chunks/{location-r1s8qxhz.js → tool-xw4ev616.js} +8 -8
- package/dist/chunks/{location-4c6ksw65.js → tool-y420wvgt.js} +39 -39
- package/dist/chunks/{location-2d2g0mpf.js → tool-y5kjjy07.js} +33 -33
- package/dist/chunks/{location-3wef9mrz.js → tool-y7287ygs.js} +8 -8
- package/dist/chunks/tool-yara3q77.js +132 -0
- package/dist/chunks/{location-yb20nhc3.js → tool-yb20nhc3.js} +1 -1
- package/dist/chunks/{location-9ypen6gf.js → tool-ycd18cxa.js} +6 -6
- package/dist/chunks/{location-kb4gstwj.js → tool-ymky0t0b.js} +5 -5
- package/dist/chunks/{location-ght5gt7k.js → tool-yqsmg75a.js} +63 -29
- package/dist/chunks/{location-e45fk36t.js → tool-yqveydy6.js} +4 -4
- package/dist/chunks/{location-6qtdkhme.js → tool-yxjvbhxs.js} +4 -4
- package/dist/chunks/{location-r3083m8p.js → tool-yytcp89d.js} +28 -28
- package/dist/chunks/{location-b93307df.js → tool-yzaa036j.js} +32 -32
- package/dist/chunks/{location-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-z38nccrw.js → tool-z38nccrw.js} +1 -1
- package/dist/chunks/{location-9mrr08ev.js → tool-zdkwz0rs.js} +5 -8
- package/dist/chunks/tool-zfjx7vmh.js +257 -0
- package/dist/chunks/{location-4xvmh7wp.js → tool-zgkm4kzm.js} +3 -3
- package/dist/chunks/{location-hwqvnpa6.js → tool-zw3yjf62.js} +13 -13
- package/dist/chunks/{location-s1t9wfqz.js → tool-zyqv3h6k.js} +8 -8
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- 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 +119 -114
- 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 +123 -118
- package/dist/config/plugin/skill-file.js +138 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +143 -136
- 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 +122 -117
- 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 +124 -119
- 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 +98 -92
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +386 -372
- 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 +106 -98
- 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 +107 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +9 -9
- 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 -361
- package/dist/instruction-discovery.js +90 -86
- package/dist/instructions/builtins.js +95 -89
- 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 -358
- package/dist/location.js +97 -91
- package/dist/managed-policy.js +11 -10
- package/dist/mcp/client.js +125 -95
- package/dist/mcp/index.js +115 -109
- package/dist/mcp/instructions.js +164 -136
- package/dist/mcp/oauth.js +84 -80
- package/dist/mcp/socket-client.js +1 -1
- 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 +112 -104
- 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 +94 -90
- 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 +5 -5
- 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 -333
- 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 +98 -92
- 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 -171
- 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 -352
- 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 +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- 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 +103 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +98 -93
- package/dist/reference/instructions.js +94 -89
- 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 +105 -99
- 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 +158 -132
- package/dist/session/context.js +184 -160
- 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 +144 -93
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -79
- 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 +153 -120
- package/dist/session/model-transport.js +7 -7
- 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 +3 -3
- 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 -102
- 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 +219 -212
- package/dist/session/system-prompt.js +5 -5
- 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 +225 -218
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +137 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -109
- package/dist/skill.js +150 -116
- package/dist/snapshot.js +101 -95
- 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 +163 -135
- package/dist/tool/plugin/edit.js +156 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +156 -122
- 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 +158 -124
- package/dist/tool/plugin/question.js +136 -103
- package/dist/tool/plugin/read.js +161 -127
- package/dist/tool/plugin/shell.js +224 -217
- package/dist/tool/plugin/skill.js +149 -115
- package/dist/tool/plugin/subagent.js +220 -213
- package/dist/tool/plugin/todo.js +145 -138
- package/dist/tool/plugin/webfetch.js +149 -115
- package/dist/tool/plugin/websearch.js +147 -116
- package/dist/tool/plugin/write.js +156 -122
- package/dist/tool/read-filesystem.js +106 -100
- 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/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/image/photon-normalize.d.ts +28 -0
- 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/mcp/client.d.ts +2 -0
- package/dist/types/mcp/index.d.ts +1 -1
- 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/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.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 +3 -2
- package/dist/types/provider.d.ts +33 -3
- 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 +13 -10
- package/dist/types/session/generate.d.ts +2 -2
- package/dist/types/session/history.d.ts +2078 -23
- package/dist/types/session/inbox.d.ts +73 -114
- 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 -1
- 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 +4 -0
- package/dist/types/session/sql.d.ts +196 -122
- package/dist/types/session/store.d.ts +7 -0
- 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 +4 -0
- package/dist/types/session/usage.d.ts +1 -1
- package/dist/types/session.d.ts +9 -0
- 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/patch.d.ts +2 -1
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/subagent.d.ts +1 -1
- 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 +2 -0
- 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 +94 -90
- package/dist/websearch.js +88 -84
- package/dist/wellknown/plugin.js +82 -78
- package/dist/wellknown.js +87 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -84
- 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 +97 -91
- package/dist/worktree.js +104 -98
- package/package.json +10 -9
- package/dist/chunks/location-00ve6mdn.js +0 -18
- package/dist/chunks/location-8230236v.js +0 -257
- package/dist/chunks/location-akfw3dm8.js +0 -321
- package/dist/chunks/location-ef5x83kb.js +0 -15
- package/dist/chunks/location-gb9gmc0j.js +0 -39
- package/dist/chunks/location-hzsp1kxy.js +0 -107
- package/dist/chunks/location-khh5ttga.js +0 -26
- package/dist/chunks/location-mx81xwtn.js +0 -82
- package/dist/chunks/location-z1f2n5q4.js +0 -621
- package/dist/chunks/location-zfwjf24c.js +0 -219
- /package/dist/chunks/{location-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-24dcb14g.js → tool-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-2710q6r3.js → tool-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-2bv980vf.js → tool-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-359p4xyc.js → tool-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-3asan66x.js → tool-3asan66x.js} +0 -0
- /package/dist/chunks/{location-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-53557ph1.js → tool-53557ph1.js} +0 -0
- /package/dist/chunks/{location-550bvhaj.js → tool-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-6prwharc.js → tool-6prwharc.js} +0 -0
- /package/dist/chunks/{location-6q2bdcd1.js → tool-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-7m9af43g.js → tool-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-822emrt2.js → tool-822emrt2.js} +0 -0
- /package/dist/chunks/{location-84wd9syh.js → tool-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-8n3pysct.js → tool-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-a058387c.js → tool-a058387c.js} +0 -0
- /package/dist/chunks/{location-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-af5trqkr.js → tool-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-afrmfg78.js → tool-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-d9fn303g.js → tool-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-dajrwvna.js → tool-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-dap0rakb.js → tool-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-df08tz66.js → tool-df08tz66.js} +0 -0
- /package/dist/chunks/{location-dy18nga0.js → tool-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-ec1grn59.js → tool-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-faypxj3z.js → tool-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-fd410y7t.js → tool-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-g86h250q.js → tool-g86h250q.js} +0 -0
- /package/dist/chunks/{location-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-gftt206x.js → tool-gftt206x.js} +0 -0
- /package/dist/chunks/{location-hcxmzztb.js → tool-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-hk9envan.js → tool-hk9envan.js} +0 -0
- /package/dist/chunks/{location-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-jze0r7bz.js → tool-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-m18g726c.js → tool-m18g726c.js} +0 -0
- /package/dist/chunks/{location-mp448xyj.js → tool-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-njntx4h6.js → tool-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-q74kybfr.js → tool-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-ve7vex1e.js → tool-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-w803qqfp.js → tool-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-wtztk69x.js → tool-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-x61499pn.js → tool-x61499pn.js} +0 -0
- /package/dist/chunks/{location-y44na4kk.js → tool-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-y8f7s663.js → tool-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-ym463w8f.js → tool-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-z9919s4g.js → tool-z9919s4g.js} +0 -0
|
@@ -0,0 +1,2687 @@
|
|
|
1
|
+
export * as SessionBlob from "./blob.js";
|
|
2
|
+
import { Effect, Schema } from "effect";
|
|
3
|
+
import type { Attachment } from "@opencode/schema/prompt";
|
|
4
|
+
import type { Database } from "../database/database.js";
|
|
5
|
+
import type { SessionMessage } from "./message.js";
|
|
6
|
+
import type { SessionSchema } from "./schema.js";
|
|
7
|
+
import { SessionInboxTable, SessionMessageTable } from "./sql.js";
|
|
8
|
+
import { SessionStored } from "./stored.js";
|
|
9
|
+
type DatabaseService = Database.Interface["db"];
|
|
10
|
+
type MessageRow = typeof SessionMessageTable.$inferSelect;
|
|
11
|
+
type InboxRow = typeof SessionInboxTable.$inferSelect;
|
|
12
|
+
/** Restores inline media for the refs in `session_message` rows. Rows without refs are returned untouched. */
|
|
13
|
+
export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
14
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
15
|
+
}, rows: readonly {
|
|
16
|
+
data: Omit<{
|
|
17
|
+
readonly id: string;
|
|
18
|
+
readonly metadata?: {
|
|
19
|
+
readonly [x: string]: unknown;
|
|
20
|
+
} | undefined;
|
|
21
|
+
readonly time: {
|
|
22
|
+
readonly created: number;
|
|
23
|
+
};
|
|
24
|
+
readonly type: "agent-switched";
|
|
25
|
+
readonly agent: string;
|
|
26
|
+
readonly previous?: string | undefined;
|
|
27
|
+
}, "id" | "type"> | Omit<{
|
|
28
|
+
readonly id: string;
|
|
29
|
+
readonly metadata?: {
|
|
30
|
+
readonly [x: string]: unknown;
|
|
31
|
+
} | undefined;
|
|
32
|
+
readonly time: {
|
|
33
|
+
readonly created: number;
|
|
34
|
+
};
|
|
35
|
+
readonly type: "model-switched";
|
|
36
|
+
readonly model: {
|
|
37
|
+
readonly id: string;
|
|
38
|
+
readonly providerID: string;
|
|
39
|
+
readonly variant?: string | undefined;
|
|
40
|
+
};
|
|
41
|
+
readonly previous?: {
|
|
42
|
+
readonly id: string;
|
|
43
|
+
readonly providerID: string;
|
|
44
|
+
readonly variant?: string | undefined;
|
|
45
|
+
} | undefined;
|
|
46
|
+
}, "id" | "type"> | Omit<{
|
|
47
|
+
readonly id: string;
|
|
48
|
+
readonly metadata?: {
|
|
49
|
+
readonly [x: string]: unknown;
|
|
50
|
+
} | undefined;
|
|
51
|
+
readonly time: {
|
|
52
|
+
readonly created: number;
|
|
53
|
+
};
|
|
54
|
+
readonly type: "location-switched";
|
|
55
|
+
readonly location: {
|
|
56
|
+
readonly directory: string;
|
|
57
|
+
readonly workspaceID?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
readonly projectID?: string | undefined;
|
|
60
|
+
readonly subpath?: string | undefined;
|
|
61
|
+
readonly previous?: {
|
|
62
|
+
readonly location: {
|
|
63
|
+
readonly directory: string;
|
|
64
|
+
readonly workspaceID?: string | undefined;
|
|
65
|
+
};
|
|
66
|
+
readonly projectID?: string | undefined;
|
|
67
|
+
readonly subpath?: string | undefined;
|
|
68
|
+
} | undefined;
|
|
69
|
+
}, "id" | "type"> | Omit<{
|
|
70
|
+
readonly id: string;
|
|
71
|
+
readonly metadata?: {
|
|
72
|
+
readonly [x: string]: unknown;
|
|
73
|
+
} | undefined;
|
|
74
|
+
readonly time: {
|
|
75
|
+
readonly created: number;
|
|
76
|
+
};
|
|
77
|
+
readonly text: string;
|
|
78
|
+
readonly description?: string | undefined;
|
|
79
|
+
readonly type: "synthetic";
|
|
80
|
+
}, "id" | "type"> | Omit<{
|
|
81
|
+
readonly id: string;
|
|
82
|
+
readonly metadata?: {
|
|
83
|
+
readonly [x: string]: unknown;
|
|
84
|
+
} | undefined;
|
|
85
|
+
readonly time: {
|
|
86
|
+
readonly created: number;
|
|
87
|
+
};
|
|
88
|
+
readonly type: "system";
|
|
89
|
+
readonly text: string;
|
|
90
|
+
readonly description?: string | undefined;
|
|
91
|
+
}, "id" | "type"> | Omit<{
|
|
92
|
+
readonly id: string;
|
|
93
|
+
readonly metadata?: {
|
|
94
|
+
readonly [x: string]: unknown;
|
|
95
|
+
} | undefined;
|
|
96
|
+
readonly time: {
|
|
97
|
+
readonly created: number;
|
|
98
|
+
};
|
|
99
|
+
readonly type: "skill";
|
|
100
|
+
readonly skill: string;
|
|
101
|
+
readonly name: string;
|
|
102
|
+
readonly text: string;
|
|
103
|
+
}, "id" | "type"> | Omit<{
|
|
104
|
+
readonly id: string;
|
|
105
|
+
readonly metadata?: {
|
|
106
|
+
readonly [x: string]: unknown;
|
|
107
|
+
} | undefined;
|
|
108
|
+
readonly type: "shell";
|
|
109
|
+
readonly shellID: string;
|
|
110
|
+
readonly command: string;
|
|
111
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
112
|
+
readonly exit?: number | undefined;
|
|
113
|
+
readonly output?: {
|
|
114
|
+
readonly output: string;
|
|
115
|
+
readonly cursor: number;
|
|
116
|
+
readonly size: number;
|
|
117
|
+
readonly truncated: boolean;
|
|
118
|
+
} | undefined;
|
|
119
|
+
readonly time: {
|
|
120
|
+
readonly created: number;
|
|
121
|
+
readonly completed?: number | undefined;
|
|
122
|
+
};
|
|
123
|
+
}, "id" | "type"> | Omit<{
|
|
124
|
+
readonly id: string;
|
|
125
|
+
readonly metadata?: {
|
|
126
|
+
readonly [x: string]: unknown;
|
|
127
|
+
} | undefined;
|
|
128
|
+
readonly type: "assistant";
|
|
129
|
+
readonly agent: string;
|
|
130
|
+
readonly model: {
|
|
131
|
+
readonly id: string;
|
|
132
|
+
readonly providerID: string;
|
|
133
|
+
readonly variant?: string | undefined;
|
|
134
|
+
};
|
|
135
|
+
readonly content: readonly ({
|
|
136
|
+
readonly type: "tool";
|
|
137
|
+
readonly id: string;
|
|
138
|
+
readonly name: string;
|
|
139
|
+
readonly executed?: boolean | undefined;
|
|
140
|
+
readonly native?: {
|
|
141
|
+
readonly [x: string]: unknown;
|
|
142
|
+
} | undefined;
|
|
143
|
+
readonly state: {
|
|
144
|
+
readonly status: "streaming";
|
|
145
|
+
readonly input: string;
|
|
146
|
+
} | {
|
|
147
|
+
readonly status: "running";
|
|
148
|
+
readonly input: {
|
|
149
|
+
readonly [x: string]: unknown;
|
|
150
|
+
};
|
|
151
|
+
readonly metadata: {
|
|
152
|
+
readonly [x: string]: Schema.Json;
|
|
153
|
+
};
|
|
154
|
+
} | {
|
|
155
|
+
readonly status: "completed";
|
|
156
|
+
readonly input: {
|
|
157
|
+
readonly [x: string]: unknown;
|
|
158
|
+
};
|
|
159
|
+
readonly content: readonly [{
|
|
160
|
+
readonly type: "text";
|
|
161
|
+
readonly text: string;
|
|
162
|
+
} | {
|
|
163
|
+
readonly type: "file";
|
|
164
|
+
readonly uri: string;
|
|
165
|
+
readonly mime: string;
|
|
166
|
+
readonly name?: string | undefined;
|
|
167
|
+
}, ...({
|
|
168
|
+
readonly type: "text";
|
|
169
|
+
readonly text: string;
|
|
170
|
+
} | {
|
|
171
|
+
readonly type: "file";
|
|
172
|
+
readonly uri: string;
|
|
173
|
+
readonly mime: string;
|
|
174
|
+
readonly name?: string | undefined;
|
|
175
|
+
})[]];
|
|
176
|
+
readonly metadata?: {
|
|
177
|
+
readonly [x: string]: Schema.Json;
|
|
178
|
+
} | undefined;
|
|
179
|
+
} | {
|
|
180
|
+
readonly status: "error";
|
|
181
|
+
readonly input: {
|
|
182
|
+
readonly [x: string]: unknown;
|
|
183
|
+
};
|
|
184
|
+
readonly error: {
|
|
185
|
+
readonly type: string;
|
|
186
|
+
readonly message: string;
|
|
187
|
+
readonly status?: number | undefined;
|
|
188
|
+
readonly response?: {
|
|
189
|
+
readonly body: string;
|
|
190
|
+
} | undefined;
|
|
191
|
+
readonly retryAfterMs?: number | undefined;
|
|
192
|
+
};
|
|
193
|
+
readonly content?: readonly [{
|
|
194
|
+
readonly type: "text";
|
|
195
|
+
readonly text: string;
|
|
196
|
+
} | {
|
|
197
|
+
readonly type: "file";
|
|
198
|
+
readonly uri: string;
|
|
199
|
+
readonly mime: string;
|
|
200
|
+
readonly name?: string | undefined;
|
|
201
|
+
}, ...({
|
|
202
|
+
readonly type: "text";
|
|
203
|
+
readonly text: string;
|
|
204
|
+
} | {
|
|
205
|
+
readonly type: "file";
|
|
206
|
+
readonly uri: string;
|
|
207
|
+
readonly mime: string;
|
|
208
|
+
readonly name?: string | undefined;
|
|
209
|
+
})[]] | undefined;
|
|
210
|
+
readonly metadata?: {
|
|
211
|
+
readonly [x: string]: Schema.Json;
|
|
212
|
+
} | undefined;
|
|
213
|
+
};
|
|
214
|
+
readonly time: {
|
|
215
|
+
readonly created: number;
|
|
216
|
+
readonly ran?: number | undefined;
|
|
217
|
+
readonly completed?: number | undefined;
|
|
218
|
+
};
|
|
219
|
+
} | {
|
|
220
|
+
readonly type: "text";
|
|
221
|
+
readonly text: string;
|
|
222
|
+
readonly native?: {
|
|
223
|
+
readonly [x: string]: unknown;
|
|
224
|
+
} | undefined;
|
|
225
|
+
} | {
|
|
226
|
+
readonly type: "reasoning";
|
|
227
|
+
readonly text: string;
|
|
228
|
+
readonly native?: {
|
|
229
|
+
readonly [x: string]: unknown;
|
|
230
|
+
} | undefined;
|
|
231
|
+
readonly time?: {
|
|
232
|
+
readonly created: number;
|
|
233
|
+
readonly completed?: number | undefined;
|
|
234
|
+
} | undefined;
|
|
235
|
+
})[];
|
|
236
|
+
readonly snapshot?: {
|
|
237
|
+
readonly start?: string | undefined;
|
|
238
|
+
readonly end?: string | undefined;
|
|
239
|
+
readonly files?: readonly string[] | undefined;
|
|
240
|
+
} | undefined;
|
|
241
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
242
|
+
readonly rawFinish?: string | undefined;
|
|
243
|
+
readonly native?: {
|
|
244
|
+
readonly [x: string]: unknown;
|
|
245
|
+
} | undefined;
|
|
246
|
+
readonly cost?: number | undefined;
|
|
247
|
+
readonly tokens?: {
|
|
248
|
+
readonly input: number;
|
|
249
|
+
readonly output: number;
|
|
250
|
+
readonly reasoning: number;
|
|
251
|
+
readonly cache: {
|
|
252
|
+
readonly read: number;
|
|
253
|
+
readonly write: number;
|
|
254
|
+
};
|
|
255
|
+
} | undefined;
|
|
256
|
+
readonly error?: {
|
|
257
|
+
readonly type: string;
|
|
258
|
+
readonly message: string;
|
|
259
|
+
readonly status?: number | undefined;
|
|
260
|
+
readonly response?: {
|
|
261
|
+
readonly body: string;
|
|
262
|
+
} | undefined;
|
|
263
|
+
readonly retryAfterMs?: number | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
readonly retry?: {
|
|
266
|
+
readonly attempt: number;
|
|
267
|
+
readonly at: number;
|
|
268
|
+
readonly error: {
|
|
269
|
+
readonly type: string;
|
|
270
|
+
readonly message: string;
|
|
271
|
+
readonly status?: number | undefined;
|
|
272
|
+
readonly response?: {
|
|
273
|
+
readonly body: string;
|
|
274
|
+
} | undefined;
|
|
275
|
+
readonly retryAfterMs?: number | undefined;
|
|
276
|
+
};
|
|
277
|
+
} | undefined;
|
|
278
|
+
readonly time: {
|
|
279
|
+
readonly created: number;
|
|
280
|
+
readonly streamed?: number | undefined;
|
|
281
|
+
readonly completed?: number | undefined;
|
|
282
|
+
};
|
|
283
|
+
}, "id" | "type"> | Omit<{
|
|
284
|
+
readonly id: string;
|
|
285
|
+
readonly metadata?: {
|
|
286
|
+
readonly [x: string]: unknown;
|
|
287
|
+
} | undefined;
|
|
288
|
+
readonly time: {
|
|
289
|
+
readonly created: number;
|
|
290
|
+
};
|
|
291
|
+
readonly type: "compaction";
|
|
292
|
+
readonly status: "running";
|
|
293
|
+
readonly reason: "auto" | "manual";
|
|
294
|
+
readonly summary: string;
|
|
295
|
+
}, "id" | "type"> | Omit<{
|
|
296
|
+
readonly id: string;
|
|
297
|
+
readonly metadata?: {
|
|
298
|
+
readonly [x: string]: unknown;
|
|
299
|
+
} | undefined;
|
|
300
|
+
readonly time: {
|
|
301
|
+
readonly created: number;
|
|
302
|
+
};
|
|
303
|
+
readonly type: "compaction";
|
|
304
|
+
readonly cost?: number | undefined;
|
|
305
|
+
readonly tokens?: {
|
|
306
|
+
readonly input: number;
|
|
307
|
+
readonly output: number;
|
|
308
|
+
readonly reasoning: number;
|
|
309
|
+
readonly cache: {
|
|
310
|
+
readonly read: number;
|
|
311
|
+
readonly write: number;
|
|
312
|
+
};
|
|
313
|
+
} | undefined;
|
|
314
|
+
readonly status: "completed";
|
|
315
|
+
readonly reason: "auto" | "manual";
|
|
316
|
+
readonly model?: {
|
|
317
|
+
readonly id: string;
|
|
318
|
+
readonly providerID: string;
|
|
319
|
+
readonly variant?: string | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
readonly native?: {
|
|
322
|
+
readonly [x: string]: unknown;
|
|
323
|
+
} | undefined;
|
|
324
|
+
readonly summary: string;
|
|
325
|
+
}, "id" | "type"> | Omit<{
|
|
326
|
+
readonly id: string;
|
|
327
|
+
readonly metadata?: {
|
|
328
|
+
readonly [x: string]: unknown;
|
|
329
|
+
} | undefined;
|
|
330
|
+
readonly time: {
|
|
331
|
+
readonly created: number;
|
|
332
|
+
};
|
|
333
|
+
readonly type: "compaction";
|
|
334
|
+
readonly cost?: number | undefined;
|
|
335
|
+
readonly tokens?: {
|
|
336
|
+
readonly input: number;
|
|
337
|
+
readonly output: number;
|
|
338
|
+
readonly reasoning: number;
|
|
339
|
+
readonly cache: {
|
|
340
|
+
readonly read: number;
|
|
341
|
+
readonly write: number;
|
|
342
|
+
};
|
|
343
|
+
} | undefined;
|
|
344
|
+
readonly status: "failed";
|
|
345
|
+
readonly reason: "auto" | "manual";
|
|
346
|
+
readonly error: {
|
|
347
|
+
readonly type: string;
|
|
348
|
+
readonly message: string;
|
|
349
|
+
readonly status?: number | undefined;
|
|
350
|
+
readonly response?: {
|
|
351
|
+
readonly body: string;
|
|
352
|
+
} | undefined;
|
|
353
|
+
readonly retryAfterMs?: number | undefined;
|
|
354
|
+
};
|
|
355
|
+
}, "id" | "type"> | Omit<{
|
|
356
|
+
readonly id: string;
|
|
357
|
+
readonly metadata?: {
|
|
358
|
+
readonly [x: string]: unknown;
|
|
359
|
+
} | undefined;
|
|
360
|
+
readonly time: {
|
|
361
|
+
readonly created: number;
|
|
362
|
+
};
|
|
363
|
+
readonly type: "idle";
|
|
364
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
365
|
+
readonly error?: {
|
|
366
|
+
readonly type: string;
|
|
367
|
+
readonly message: string;
|
|
368
|
+
readonly status?: number | undefined;
|
|
369
|
+
readonly response?: {
|
|
370
|
+
readonly body: string;
|
|
371
|
+
} | undefined;
|
|
372
|
+
readonly retryAfterMs?: number | undefined;
|
|
373
|
+
} | undefined;
|
|
374
|
+
}, "id" | "type"> | Omit<{
|
|
375
|
+
readonly id: string;
|
|
376
|
+
readonly metadata?: {
|
|
377
|
+
readonly [x: string]: unknown;
|
|
378
|
+
} | undefined;
|
|
379
|
+
readonly time: {
|
|
380
|
+
readonly created: number;
|
|
381
|
+
};
|
|
382
|
+
readonly text: string;
|
|
383
|
+
readonly agents?: readonly {
|
|
384
|
+
readonly name: string;
|
|
385
|
+
readonly mention?: {
|
|
386
|
+
readonly start: number;
|
|
387
|
+
readonly end: number;
|
|
388
|
+
readonly text: string;
|
|
389
|
+
} | undefined;
|
|
390
|
+
}[] | undefined;
|
|
391
|
+
readonly skills?: readonly {
|
|
392
|
+
readonly id: string;
|
|
393
|
+
readonly name: string;
|
|
394
|
+
readonly text?: string | undefined;
|
|
395
|
+
readonly mention?: {
|
|
396
|
+
readonly start: number;
|
|
397
|
+
readonly end: number;
|
|
398
|
+
readonly text: string;
|
|
399
|
+
} | undefined;
|
|
400
|
+
}[] | undefined;
|
|
401
|
+
readonly type: "user";
|
|
402
|
+
readonly files?: readonly ({
|
|
403
|
+
readonly data: string;
|
|
404
|
+
readonly mime: string;
|
|
405
|
+
readonly source: {
|
|
406
|
+
readonly type: "inline";
|
|
407
|
+
} | {
|
|
408
|
+
readonly type: "uri";
|
|
409
|
+
readonly uri: string;
|
|
410
|
+
};
|
|
411
|
+
readonly name?: string | undefined;
|
|
412
|
+
readonly description?: string | undefined;
|
|
413
|
+
readonly mention?: {
|
|
414
|
+
readonly start: number;
|
|
415
|
+
readonly end: number;
|
|
416
|
+
readonly text: string;
|
|
417
|
+
} | undefined;
|
|
418
|
+
} | {
|
|
419
|
+
readonly mime: string;
|
|
420
|
+
readonly source: {
|
|
421
|
+
readonly type: "inline";
|
|
422
|
+
} | {
|
|
423
|
+
readonly type: "uri";
|
|
424
|
+
readonly uri: string;
|
|
425
|
+
};
|
|
426
|
+
readonly name?: string | undefined;
|
|
427
|
+
readonly description?: string | undefined;
|
|
428
|
+
readonly mention?: {
|
|
429
|
+
readonly start: number;
|
|
430
|
+
readonly end: number;
|
|
431
|
+
readonly text: string;
|
|
432
|
+
} | undefined;
|
|
433
|
+
readonly uri: string;
|
|
434
|
+
})[] | undefined;
|
|
435
|
+
}, "id" | "type">;
|
|
436
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
437
|
+
seq: number;
|
|
438
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
439
|
+
time_created: number;
|
|
440
|
+
time_updated: number;
|
|
441
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
442
|
+
}[]) => Effect.Effect<readonly {
|
|
443
|
+
data: Omit<{
|
|
444
|
+
readonly id: string;
|
|
445
|
+
readonly metadata?: {
|
|
446
|
+
readonly [x: string]: unknown;
|
|
447
|
+
} | undefined;
|
|
448
|
+
readonly time: {
|
|
449
|
+
readonly created: number;
|
|
450
|
+
};
|
|
451
|
+
readonly type: "agent-switched";
|
|
452
|
+
readonly agent: string;
|
|
453
|
+
readonly previous?: string | undefined;
|
|
454
|
+
}, "id" | "type"> | Omit<{
|
|
455
|
+
readonly id: string;
|
|
456
|
+
readonly metadata?: {
|
|
457
|
+
readonly [x: string]: unknown;
|
|
458
|
+
} | undefined;
|
|
459
|
+
readonly time: {
|
|
460
|
+
readonly created: number;
|
|
461
|
+
};
|
|
462
|
+
readonly type: "model-switched";
|
|
463
|
+
readonly model: {
|
|
464
|
+
readonly id: string;
|
|
465
|
+
readonly providerID: string;
|
|
466
|
+
readonly variant?: string | undefined;
|
|
467
|
+
};
|
|
468
|
+
readonly previous?: {
|
|
469
|
+
readonly id: string;
|
|
470
|
+
readonly providerID: string;
|
|
471
|
+
readonly variant?: string | undefined;
|
|
472
|
+
} | undefined;
|
|
473
|
+
}, "id" | "type"> | Omit<{
|
|
474
|
+
readonly id: string;
|
|
475
|
+
readonly metadata?: {
|
|
476
|
+
readonly [x: string]: unknown;
|
|
477
|
+
} | undefined;
|
|
478
|
+
readonly time: {
|
|
479
|
+
readonly created: number;
|
|
480
|
+
};
|
|
481
|
+
readonly type: "location-switched";
|
|
482
|
+
readonly location: {
|
|
483
|
+
readonly directory: string;
|
|
484
|
+
readonly workspaceID?: string | undefined;
|
|
485
|
+
};
|
|
486
|
+
readonly projectID?: string | undefined;
|
|
487
|
+
readonly subpath?: string | undefined;
|
|
488
|
+
readonly previous?: {
|
|
489
|
+
readonly location: {
|
|
490
|
+
readonly directory: string;
|
|
491
|
+
readonly workspaceID?: string | undefined;
|
|
492
|
+
};
|
|
493
|
+
readonly projectID?: string | undefined;
|
|
494
|
+
readonly subpath?: string | undefined;
|
|
495
|
+
} | undefined;
|
|
496
|
+
}, "id" | "type"> | Omit<{
|
|
497
|
+
readonly id: string;
|
|
498
|
+
readonly metadata?: {
|
|
499
|
+
readonly [x: string]: unknown;
|
|
500
|
+
} | undefined;
|
|
501
|
+
readonly time: {
|
|
502
|
+
readonly created: number;
|
|
503
|
+
};
|
|
504
|
+
readonly text: string;
|
|
505
|
+
readonly description?: string | undefined;
|
|
506
|
+
readonly type: "synthetic";
|
|
507
|
+
}, "id" | "type"> | Omit<{
|
|
508
|
+
readonly id: string;
|
|
509
|
+
readonly metadata?: {
|
|
510
|
+
readonly [x: string]: unknown;
|
|
511
|
+
} | undefined;
|
|
512
|
+
readonly time: {
|
|
513
|
+
readonly created: number;
|
|
514
|
+
};
|
|
515
|
+
readonly type: "system";
|
|
516
|
+
readonly text: string;
|
|
517
|
+
readonly description?: string | undefined;
|
|
518
|
+
}, "id" | "type"> | Omit<{
|
|
519
|
+
readonly id: string;
|
|
520
|
+
readonly metadata?: {
|
|
521
|
+
readonly [x: string]: unknown;
|
|
522
|
+
} | undefined;
|
|
523
|
+
readonly time: {
|
|
524
|
+
readonly created: number;
|
|
525
|
+
};
|
|
526
|
+
readonly type: "skill";
|
|
527
|
+
readonly skill: string;
|
|
528
|
+
readonly name: string;
|
|
529
|
+
readonly text: string;
|
|
530
|
+
}, "id" | "type"> | Omit<{
|
|
531
|
+
readonly id: string;
|
|
532
|
+
readonly metadata?: {
|
|
533
|
+
readonly [x: string]: unknown;
|
|
534
|
+
} | undefined;
|
|
535
|
+
readonly type: "shell";
|
|
536
|
+
readonly shellID: string;
|
|
537
|
+
readonly command: string;
|
|
538
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
539
|
+
readonly exit?: number | undefined;
|
|
540
|
+
readonly output?: {
|
|
541
|
+
readonly output: string;
|
|
542
|
+
readonly cursor: number;
|
|
543
|
+
readonly size: number;
|
|
544
|
+
readonly truncated: boolean;
|
|
545
|
+
} | undefined;
|
|
546
|
+
readonly time: {
|
|
547
|
+
readonly created: number;
|
|
548
|
+
readonly completed?: number | undefined;
|
|
549
|
+
};
|
|
550
|
+
}, "id" | "type"> | Omit<{
|
|
551
|
+
readonly id: string;
|
|
552
|
+
readonly metadata?: {
|
|
553
|
+
readonly [x: string]: unknown;
|
|
554
|
+
} | undefined;
|
|
555
|
+
readonly type: "assistant";
|
|
556
|
+
readonly agent: string;
|
|
557
|
+
readonly model: {
|
|
558
|
+
readonly id: string;
|
|
559
|
+
readonly providerID: string;
|
|
560
|
+
readonly variant?: string | undefined;
|
|
561
|
+
};
|
|
562
|
+
readonly content: readonly ({
|
|
563
|
+
readonly type: "tool";
|
|
564
|
+
readonly id: string;
|
|
565
|
+
readonly name: string;
|
|
566
|
+
readonly executed?: boolean | undefined;
|
|
567
|
+
readonly native?: {
|
|
568
|
+
readonly [x: string]: unknown;
|
|
569
|
+
} | undefined;
|
|
570
|
+
readonly state: {
|
|
571
|
+
readonly status: "streaming";
|
|
572
|
+
readonly input: string;
|
|
573
|
+
} | {
|
|
574
|
+
readonly status: "running";
|
|
575
|
+
readonly input: {
|
|
576
|
+
readonly [x: string]: unknown;
|
|
577
|
+
};
|
|
578
|
+
readonly metadata: {
|
|
579
|
+
readonly [x: string]: Schema.Json;
|
|
580
|
+
};
|
|
581
|
+
} | {
|
|
582
|
+
readonly status: "completed";
|
|
583
|
+
readonly input: {
|
|
584
|
+
readonly [x: string]: unknown;
|
|
585
|
+
};
|
|
586
|
+
readonly content: readonly [{
|
|
587
|
+
readonly type: "text";
|
|
588
|
+
readonly text: string;
|
|
589
|
+
} | {
|
|
590
|
+
readonly type: "file";
|
|
591
|
+
readonly uri: string;
|
|
592
|
+
readonly mime: string;
|
|
593
|
+
readonly name?: string | undefined;
|
|
594
|
+
}, ...({
|
|
595
|
+
readonly type: "text";
|
|
596
|
+
readonly text: string;
|
|
597
|
+
} | {
|
|
598
|
+
readonly type: "file";
|
|
599
|
+
readonly uri: string;
|
|
600
|
+
readonly mime: string;
|
|
601
|
+
readonly name?: string | undefined;
|
|
602
|
+
})[]];
|
|
603
|
+
readonly metadata?: {
|
|
604
|
+
readonly [x: string]: Schema.Json;
|
|
605
|
+
} | undefined;
|
|
606
|
+
} | {
|
|
607
|
+
readonly status: "error";
|
|
608
|
+
readonly input: {
|
|
609
|
+
readonly [x: string]: unknown;
|
|
610
|
+
};
|
|
611
|
+
readonly error: {
|
|
612
|
+
readonly type: string;
|
|
613
|
+
readonly message: string;
|
|
614
|
+
readonly status?: number | undefined;
|
|
615
|
+
readonly response?: {
|
|
616
|
+
readonly body: string;
|
|
617
|
+
} | undefined;
|
|
618
|
+
readonly retryAfterMs?: number | undefined;
|
|
619
|
+
};
|
|
620
|
+
readonly content?: readonly [{
|
|
621
|
+
readonly type: "text";
|
|
622
|
+
readonly text: string;
|
|
623
|
+
} | {
|
|
624
|
+
readonly type: "file";
|
|
625
|
+
readonly uri: string;
|
|
626
|
+
readonly mime: string;
|
|
627
|
+
readonly name?: string | undefined;
|
|
628
|
+
}, ...({
|
|
629
|
+
readonly type: "text";
|
|
630
|
+
readonly text: string;
|
|
631
|
+
} | {
|
|
632
|
+
readonly type: "file";
|
|
633
|
+
readonly uri: string;
|
|
634
|
+
readonly mime: string;
|
|
635
|
+
readonly name?: string | undefined;
|
|
636
|
+
})[]] | undefined;
|
|
637
|
+
readonly metadata?: {
|
|
638
|
+
readonly [x: string]: Schema.Json;
|
|
639
|
+
} | undefined;
|
|
640
|
+
};
|
|
641
|
+
readonly time: {
|
|
642
|
+
readonly created: number;
|
|
643
|
+
readonly ran?: number | undefined;
|
|
644
|
+
readonly completed?: number | undefined;
|
|
645
|
+
};
|
|
646
|
+
} | {
|
|
647
|
+
readonly type: "text";
|
|
648
|
+
readonly text: string;
|
|
649
|
+
readonly native?: {
|
|
650
|
+
readonly [x: string]: unknown;
|
|
651
|
+
} | undefined;
|
|
652
|
+
} | {
|
|
653
|
+
readonly type: "reasoning";
|
|
654
|
+
readonly text: string;
|
|
655
|
+
readonly native?: {
|
|
656
|
+
readonly [x: string]: unknown;
|
|
657
|
+
} | undefined;
|
|
658
|
+
readonly time?: {
|
|
659
|
+
readonly created: number;
|
|
660
|
+
readonly completed?: number | undefined;
|
|
661
|
+
} | undefined;
|
|
662
|
+
})[];
|
|
663
|
+
readonly snapshot?: {
|
|
664
|
+
readonly start?: string | undefined;
|
|
665
|
+
readonly end?: string | undefined;
|
|
666
|
+
readonly files?: readonly string[] | undefined;
|
|
667
|
+
} | undefined;
|
|
668
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
669
|
+
readonly rawFinish?: string | undefined;
|
|
670
|
+
readonly native?: {
|
|
671
|
+
readonly [x: string]: unknown;
|
|
672
|
+
} | undefined;
|
|
673
|
+
readonly cost?: number | undefined;
|
|
674
|
+
readonly tokens?: {
|
|
675
|
+
readonly input: number;
|
|
676
|
+
readonly output: number;
|
|
677
|
+
readonly reasoning: number;
|
|
678
|
+
readonly cache: {
|
|
679
|
+
readonly read: number;
|
|
680
|
+
readonly write: number;
|
|
681
|
+
};
|
|
682
|
+
} | undefined;
|
|
683
|
+
readonly error?: {
|
|
684
|
+
readonly type: string;
|
|
685
|
+
readonly message: string;
|
|
686
|
+
readonly status?: number | undefined;
|
|
687
|
+
readonly response?: {
|
|
688
|
+
readonly body: string;
|
|
689
|
+
} | undefined;
|
|
690
|
+
readonly retryAfterMs?: number | undefined;
|
|
691
|
+
} | undefined;
|
|
692
|
+
readonly retry?: {
|
|
693
|
+
readonly attempt: number;
|
|
694
|
+
readonly at: number;
|
|
695
|
+
readonly error: {
|
|
696
|
+
readonly type: string;
|
|
697
|
+
readonly message: string;
|
|
698
|
+
readonly status?: number | undefined;
|
|
699
|
+
readonly response?: {
|
|
700
|
+
readonly body: string;
|
|
701
|
+
} | undefined;
|
|
702
|
+
readonly retryAfterMs?: number | undefined;
|
|
703
|
+
};
|
|
704
|
+
} | undefined;
|
|
705
|
+
readonly time: {
|
|
706
|
+
readonly created: number;
|
|
707
|
+
readonly streamed?: number | undefined;
|
|
708
|
+
readonly completed?: number | undefined;
|
|
709
|
+
};
|
|
710
|
+
}, "id" | "type"> | Omit<{
|
|
711
|
+
readonly id: string;
|
|
712
|
+
readonly metadata?: {
|
|
713
|
+
readonly [x: string]: unknown;
|
|
714
|
+
} | undefined;
|
|
715
|
+
readonly time: {
|
|
716
|
+
readonly created: number;
|
|
717
|
+
};
|
|
718
|
+
readonly type: "compaction";
|
|
719
|
+
readonly status: "running";
|
|
720
|
+
readonly reason: "auto" | "manual";
|
|
721
|
+
readonly summary: string;
|
|
722
|
+
}, "id" | "type"> | Omit<{
|
|
723
|
+
readonly id: string;
|
|
724
|
+
readonly metadata?: {
|
|
725
|
+
readonly [x: string]: unknown;
|
|
726
|
+
} | undefined;
|
|
727
|
+
readonly time: {
|
|
728
|
+
readonly created: number;
|
|
729
|
+
};
|
|
730
|
+
readonly type: "compaction";
|
|
731
|
+
readonly cost?: number | undefined;
|
|
732
|
+
readonly tokens?: {
|
|
733
|
+
readonly input: number;
|
|
734
|
+
readonly output: number;
|
|
735
|
+
readonly reasoning: number;
|
|
736
|
+
readonly cache: {
|
|
737
|
+
readonly read: number;
|
|
738
|
+
readonly write: number;
|
|
739
|
+
};
|
|
740
|
+
} | undefined;
|
|
741
|
+
readonly status: "completed";
|
|
742
|
+
readonly reason: "auto" | "manual";
|
|
743
|
+
readonly model?: {
|
|
744
|
+
readonly id: string;
|
|
745
|
+
readonly providerID: string;
|
|
746
|
+
readonly variant?: string | undefined;
|
|
747
|
+
} | undefined;
|
|
748
|
+
readonly native?: {
|
|
749
|
+
readonly [x: string]: unknown;
|
|
750
|
+
} | undefined;
|
|
751
|
+
readonly summary: string;
|
|
752
|
+
}, "id" | "type"> | Omit<{
|
|
753
|
+
readonly id: string;
|
|
754
|
+
readonly metadata?: {
|
|
755
|
+
readonly [x: string]: unknown;
|
|
756
|
+
} | undefined;
|
|
757
|
+
readonly time: {
|
|
758
|
+
readonly created: number;
|
|
759
|
+
};
|
|
760
|
+
readonly type: "compaction";
|
|
761
|
+
readonly cost?: number | undefined;
|
|
762
|
+
readonly tokens?: {
|
|
763
|
+
readonly input: number;
|
|
764
|
+
readonly output: number;
|
|
765
|
+
readonly reasoning: number;
|
|
766
|
+
readonly cache: {
|
|
767
|
+
readonly read: number;
|
|
768
|
+
readonly write: number;
|
|
769
|
+
};
|
|
770
|
+
} | undefined;
|
|
771
|
+
readonly status: "failed";
|
|
772
|
+
readonly reason: "auto" | "manual";
|
|
773
|
+
readonly error: {
|
|
774
|
+
readonly type: string;
|
|
775
|
+
readonly message: string;
|
|
776
|
+
readonly status?: number | undefined;
|
|
777
|
+
readonly response?: {
|
|
778
|
+
readonly body: string;
|
|
779
|
+
} | undefined;
|
|
780
|
+
readonly retryAfterMs?: number | undefined;
|
|
781
|
+
};
|
|
782
|
+
}, "id" | "type"> | Omit<{
|
|
783
|
+
readonly id: string;
|
|
784
|
+
readonly metadata?: {
|
|
785
|
+
readonly [x: string]: unknown;
|
|
786
|
+
} | undefined;
|
|
787
|
+
readonly time: {
|
|
788
|
+
readonly created: number;
|
|
789
|
+
};
|
|
790
|
+
readonly type: "idle";
|
|
791
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
792
|
+
readonly error?: {
|
|
793
|
+
readonly type: string;
|
|
794
|
+
readonly message: string;
|
|
795
|
+
readonly status?: number | undefined;
|
|
796
|
+
readonly response?: {
|
|
797
|
+
readonly body: string;
|
|
798
|
+
} | undefined;
|
|
799
|
+
readonly retryAfterMs?: number | undefined;
|
|
800
|
+
} | undefined;
|
|
801
|
+
}, "id" | "type"> | Omit<{
|
|
802
|
+
readonly id: string;
|
|
803
|
+
readonly metadata?: {
|
|
804
|
+
readonly [x: string]: unknown;
|
|
805
|
+
} | undefined;
|
|
806
|
+
readonly time: {
|
|
807
|
+
readonly created: number;
|
|
808
|
+
};
|
|
809
|
+
readonly text: string;
|
|
810
|
+
readonly agents?: readonly {
|
|
811
|
+
readonly name: string;
|
|
812
|
+
readonly mention?: {
|
|
813
|
+
readonly start: number;
|
|
814
|
+
readonly end: number;
|
|
815
|
+
readonly text: string;
|
|
816
|
+
} | undefined;
|
|
817
|
+
}[] | undefined;
|
|
818
|
+
readonly skills?: readonly {
|
|
819
|
+
readonly id: string;
|
|
820
|
+
readonly name: string;
|
|
821
|
+
readonly text?: string | undefined;
|
|
822
|
+
readonly mention?: {
|
|
823
|
+
readonly start: number;
|
|
824
|
+
readonly end: number;
|
|
825
|
+
readonly text: string;
|
|
826
|
+
} | undefined;
|
|
827
|
+
}[] | undefined;
|
|
828
|
+
readonly type: "user";
|
|
829
|
+
readonly files?: readonly ({
|
|
830
|
+
readonly data: string;
|
|
831
|
+
readonly mime: string;
|
|
832
|
+
readonly source: {
|
|
833
|
+
readonly type: "inline";
|
|
834
|
+
} | {
|
|
835
|
+
readonly type: "uri";
|
|
836
|
+
readonly uri: string;
|
|
837
|
+
};
|
|
838
|
+
readonly name?: string | undefined;
|
|
839
|
+
readonly description?: string | undefined;
|
|
840
|
+
readonly mention?: {
|
|
841
|
+
readonly start: number;
|
|
842
|
+
readonly end: number;
|
|
843
|
+
readonly text: string;
|
|
844
|
+
} | undefined;
|
|
845
|
+
} | {
|
|
846
|
+
readonly mime: string;
|
|
847
|
+
readonly source: {
|
|
848
|
+
readonly type: "inline";
|
|
849
|
+
} | {
|
|
850
|
+
readonly type: "uri";
|
|
851
|
+
readonly uri: string;
|
|
852
|
+
};
|
|
853
|
+
readonly name?: string | undefined;
|
|
854
|
+
readonly description?: string | undefined;
|
|
855
|
+
readonly mention?: {
|
|
856
|
+
readonly start: number;
|
|
857
|
+
readonly end: number;
|
|
858
|
+
readonly text: string;
|
|
859
|
+
} | undefined;
|
|
860
|
+
readonly uri: string;
|
|
861
|
+
})[] | undefined;
|
|
862
|
+
}, "id" | "type">;
|
|
863
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
864
|
+
seq: number;
|
|
865
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
866
|
+
time_created: number;
|
|
867
|
+
time_updated: number;
|
|
868
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
869
|
+
}[], never, never>;
|
|
870
|
+
/** Restores inline media for the refs in `session_inbox` rows. Rows without refs are returned untouched. */
|
|
871
|
+
export declare const hydrateInbox: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
872
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
873
|
+
}, rows: readonly {
|
|
874
|
+
delivery: "queue" | "steer";
|
|
875
|
+
enqueued_seq: number;
|
|
876
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
877
|
+
payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
|
|
878
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
879
|
+
time_created: number;
|
|
880
|
+
type: "compaction" | "move" | "synthetic" | "user";
|
|
881
|
+
}[]) => Effect.Effect<readonly {
|
|
882
|
+
delivery: "queue" | "steer";
|
|
883
|
+
enqueued_seq: number;
|
|
884
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
885
|
+
payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
|
|
886
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
887
|
+
time_created: number;
|
|
888
|
+
type: "compaction" | "move" | "synthetic" | "user";
|
|
889
|
+
}[], never, never>;
|
|
890
|
+
/** What a client that fetches bytes itself learns about a blob. */
|
|
891
|
+
export interface Meta {
|
|
892
|
+
readonly bytes: number;
|
|
893
|
+
readonly width: number | null;
|
|
894
|
+
readonly height: number | null;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* For clients that fetch media themselves: refs stay in `rows`, except those whose blob is gone or not referenced (the media route only serves referenced blobs), which become the
|
|
898
|
+
* same unavailable placeholder {@link hydrate} gives. Returns the size and dimensions of every blob still named.
|
|
899
|
+
*/
|
|
900
|
+
export declare const keepRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
901
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
902
|
+
}, rows: readonly {
|
|
903
|
+
data: Omit<{
|
|
904
|
+
readonly id: string;
|
|
905
|
+
readonly metadata?: {
|
|
906
|
+
readonly [x: string]: unknown;
|
|
907
|
+
} | undefined;
|
|
908
|
+
readonly time: {
|
|
909
|
+
readonly created: number;
|
|
910
|
+
};
|
|
911
|
+
readonly type: "agent-switched";
|
|
912
|
+
readonly agent: string;
|
|
913
|
+
readonly previous?: string | undefined;
|
|
914
|
+
}, "id" | "type"> | Omit<{
|
|
915
|
+
readonly id: string;
|
|
916
|
+
readonly metadata?: {
|
|
917
|
+
readonly [x: string]: unknown;
|
|
918
|
+
} | undefined;
|
|
919
|
+
readonly time: {
|
|
920
|
+
readonly created: number;
|
|
921
|
+
};
|
|
922
|
+
readonly type: "model-switched";
|
|
923
|
+
readonly model: {
|
|
924
|
+
readonly id: string;
|
|
925
|
+
readonly providerID: string;
|
|
926
|
+
readonly variant?: string | undefined;
|
|
927
|
+
};
|
|
928
|
+
readonly previous?: {
|
|
929
|
+
readonly id: string;
|
|
930
|
+
readonly providerID: string;
|
|
931
|
+
readonly variant?: string | undefined;
|
|
932
|
+
} | undefined;
|
|
933
|
+
}, "id" | "type"> | Omit<{
|
|
934
|
+
readonly id: string;
|
|
935
|
+
readonly metadata?: {
|
|
936
|
+
readonly [x: string]: unknown;
|
|
937
|
+
} | undefined;
|
|
938
|
+
readonly time: {
|
|
939
|
+
readonly created: number;
|
|
940
|
+
};
|
|
941
|
+
readonly type: "location-switched";
|
|
942
|
+
readonly location: {
|
|
943
|
+
readonly directory: string;
|
|
944
|
+
readonly workspaceID?: string | undefined;
|
|
945
|
+
};
|
|
946
|
+
readonly projectID?: string | undefined;
|
|
947
|
+
readonly subpath?: string | undefined;
|
|
948
|
+
readonly previous?: {
|
|
949
|
+
readonly location: {
|
|
950
|
+
readonly directory: string;
|
|
951
|
+
readonly workspaceID?: string | undefined;
|
|
952
|
+
};
|
|
953
|
+
readonly projectID?: string | undefined;
|
|
954
|
+
readonly subpath?: string | undefined;
|
|
955
|
+
} | undefined;
|
|
956
|
+
}, "id" | "type"> | Omit<{
|
|
957
|
+
readonly id: string;
|
|
958
|
+
readonly metadata?: {
|
|
959
|
+
readonly [x: string]: unknown;
|
|
960
|
+
} | undefined;
|
|
961
|
+
readonly time: {
|
|
962
|
+
readonly created: number;
|
|
963
|
+
};
|
|
964
|
+
readonly text: string;
|
|
965
|
+
readonly description?: string | undefined;
|
|
966
|
+
readonly type: "synthetic";
|
|
967
|
+
}, "id" | "type"> | Omit<{
|
|
968
|
+
readonly id: string;
|
|
969
|
+
readonly metadata?: {
|
|
970
|
+
readonly [x: string]: unknown;
|
|
971
|
+
} | undefined;
|
|
972
|
+
readonly time: {
|
|
973
|
+
readonly created: number;
|
|
974
|
+
};
|
|
975
|
+
readonly type: "system";
|
|
976
|
+
readonly text: string;
|
|
977
|
+
readonly description?: string | undefined;
|
|
978
|
+
}, "id" | "type"> | Omit<{
|
|
979
|
+
readonly id: string;
|
|
980
|
+
readonly metadata?: {
|
|
981
|
+
readonly [x: string]: unknown;
|
|
982
|
+
} | undefined;
|
|
983
|
+
readonly time: {
|
|
984
|
+
readonly created: number;
|
|
985
|
+
};
|
|
986
|
+
readonly type: "skill";
|
|
987
|
+
readonly skill: string;
|
|
988
|
+
readonly name: string;
|
|
989
|
+
readonly text: string;
|
|
990
|
+
}, "id" | "type"> | Omit<{
|
|
991
|
+
readonly id: string;
|
|
992
|
+
readonly metadata?: {
|
|
993
|
+
readonly [x: string]: unknown;
|
|
994
|
+
} | undefined;
|
|
995
|
+
readonly type: "shell";
|
|
996
|
+
readonly shellID: string;
|
|
997
|
+
readonly command: string;
|
|
998
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
999
|
+
readonly exit?: number | undefined;
|
|
1000
|
+
readonly output?: {
|
|
1001
|
+
readonly output: string;
|
|
1002
|
+
readonly cursor: number;
|
|
1003
|
+
readonly size: number;
|
|
1004
|
+
readonly truncated: boolean;
|
|
1005
|
+
} | undefined;
|
|
1006
|
+
readonly time: {
|
|
1007
|
+
readonly created: number;
|
|
1008
|
+
readonly completed?: number | undefined;
|
|
1009
|
+
};
|
|
1010
|
+
}, "id" | "type"> | Omit<{
|
|
1011
|
+
readonly id: string;
|
|
1012
|
+
readonly metadata?: {
|
|
1013
|
+
readonly [x: string]: unknown;
|
|
1014
|
+
} | undefined;
|
|
1015
|
+
readonly type: "assistant";
|
|
1016
|
+
readonly agent: string;
|
|
1017
|
+
readonly model: {
|
|
1018
|
+
readonly id: string;
|
|
1019
|
+
readonly providerID: string;
|
|
1020
|
+
readonly variant?: string | undefined;
|
|
1021
|
+
};
|
|
1022
|
+
readonly content: readonly ({
|
|
1023
|
+
readonly type: "tool";
|
|
1024
|
+
readonly id: string;
|
|
1025
|
+
readonly name: string;
|
|
1026
|
+
readonly executed?: boolean | undefined;
|
|
1027
|
+
readonly native?: {
|
|
1028
|
+
readonly [x: string]: unknown;
|
|
1029
|
+
} | undefined;
|
|
1030
|
+
readonly state: {
|
|
1031
|
+
readonly status: "streaming";
|
|
1032
|
+
readonly input: string;
|
|
1033
|
+
} | {
|
|
1034
|
+
readonly status: "running";
|
|
1035
|
+
readonly input: {
|
|
1036
|
+
readonly [x: string]: unknown;
|
|
1037
|
+
};
|
|
1038
|
+
readonly metadata: {
|
|
1039
|
+
readonly [x: string]: Schema.Json;
|
|
1040
|
+
};
|
|
1041
|
+
} | {
|
|
1042
|
+
readonly status: "completed";
|
|
1043
|
+
readonly input: {
|
|
1044
|
+
readonly [x: string]: unknown;
|
|
1045
|
+
};
|
|
1046
|
+
readonly content: readonly [{
|
|
1047
|
+
readonly type: "text";
|
|
1048
|
+
readonly text: string;
|
|
1049
|
+
} | {
|
|
1050
|
+
readonly type: "file";
|
|
1051
|
+
readonly uri: string;
|
|
1052
|
+
readonly mime: string;
|
|
1053
|
+
readonly name?: string | undefined;
|
|
1054
|
+
}, ...({
|
|
1055
|
+
readonly type: "text";
|
|
1056
|
+
readonly text: string;
|
|
1057
|
+
} | {
|
|
1058
|
+
readonly type: "file";
|
|
1059
|
+
readonly uri: string;
|
|
1060
|
+
readonly mime: string;
|
|
1061
|
+
readonly name?: string | undefined;
|
|
1062
|
+
})[]];
|
|
1063
|
+
readonly metadata?: {
|
|
1064
|
+
readonly [x: string]: Schema.Json;
|
|
1065
|
+
} | undefined;
|
|
1066
|
+
} | {
|
|
1067
|
+
readonly status: "error";
|
|
1068
|
+
readonly input: {
|
|
1069
|
+
readonly [x: string]: unknown;
|
|
1070
|
+
};
|
|
1071
|
+
readonly error: {
|
|
1072
|
+
readonly type: string;
|
|
1073
|
+
readonly message: string;
|
|
1074
|
+
readonly status?: number | undefined;
|
|
1075
|
+
readonly response?: {
|
|
1076
|
+
readonly body: string;
|
|
1077
|
+
} | undefined;
|
|
1078
|
+
readonly retryAfterMs?: number | undefined;
|
|
1079
|
+
};
|
|
1080
|
+
readonly content?: readonly [{
|
|
1081
|
+
readonly type: "text";
|
|
1082
|
+
readonly text: string;
|
|
1083
|
+
} | {
|
|
1084
|
+
readonly type: "file";
|
|
1085
|
+
readonly uri: string;
|
|
1086
|
+
readonly mime: string;
|
|
1087
|
+
readonly name?: string | undefined;
|
|
1088
|
+
}, ...({
|
|
1089
|
+
readonly type: "text";
|
|
1090
|
+
readonly text: string;
|
|
1091
|
+
} | {
|
|
1092
|
+
readonly type: "file";
|
|
1093
|
+
readonly uri: string;
|
|
1094
|
+
readonly mime: string;
|
|
1095
|
+
readonly name?: string | undefined;
|
|
1096
|
+
})[]] | undefined;
|
|
1097
|
+
readonly metadata?: {
|
|
1098
|
+
readonly [x: string]: Schema.Json;
|
|
1099
|
+
} | undefined;
|
|
1100
|
+
};
|
|
1101
|
+
readonly time: {
|
|
1102
|
+
readonly created: number;
|
|
1103
|
+
readonly ran?: number | undefined;
|
|
1104
|
+
readonly completed?: number | undefined;
|
|
1105
|
+
};
|
|
1106
|
+
} | {
|
|
1107
|
+
readonly type: "text";
|
|
1108
|
+
readonly text: string;
|
|
1109
|
+
readonly native?: {
|
|
1110
|
+
readonly [x: string]: unknown;
|
|
1111
|
+
} | undefined;
|
|
1112
|
+
} | {
|
|
1113
|
+
readonly type: "reasoning";
|
|
1114
|
+
readonly text: string;
|
|
1115
|
+
readonly native?: {
|
|
1116
|
+
readonly [x: string]: unknown;
|
|
1117
|
+
} | undefined;
|
|
1118
|
+
readonly time?: {
|
|
1119
|
+
readonly created: number;
|
|
1120
|
+
readonly completed?: number | undefined;
|
|
1121
|
+
} | undefined;
|
|
1122
|
+
})[];
|
|
1123
|
+
readonly snapshot?: {
|
|
1124
|
+
readonly start?: string | undefined;
|
|
1125
|
+
readonly end?: string | undefined;
|
|
1126
|
+
readonly files?: readonly string[] | undefined;
|
|
1127
|
+
} | undefined;
|
|
1128
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
1129
|
+
readonly rawFinish?: string | undefined;
|
|
1130
|
+
readonly native?: {
|
|
1131
|
+
readonly [x: string]: unknown;
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
readonly cost?: number | undefined;
|
|
1134
|
+
readonly tokens?: {
|
|
1135
|
+
readonly input: number;
|
|
1136
|
+
readonly output: number;
|
|
1137
|
+
readonly reasoning: number;
|
|
1138
|
+
readonly cache: {
|
|
1139
|
+
readonly read: number;
|
|
1140
|
+
readonly write: number;
|
|
1141
|
+
};
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
readonly error?: {
|
|
1144
|
+
readonly type: string;
|
|
1145
|
+
readonly message: string;
|
|
1146
|
+
readonly status?: number | undefined;
|
|
1147
|
+
readonly response?: {
|
|
1148
|
+
readonly body: string;
|
|
1149
|
+
} | undefined;
|
|
1150
|
+
readonly retryAfterMs?: number | undefined;
|
|
1151
|
+
} | undefined;
|
|
1152
|
+
readonly retry?: {
|
|
1153
|
+
readonly attempt: number;
|
|
1154
|
+
readonly at: number;
|
|
1155
|
+
readonly error: {
|
|
1156
|
+
readonly type: string;
|
|
1157
|
+
readonly message: string;
|
|
1158
|
+
readonly status?: number | undefined;
|
|
1159
|
+
readonly response?: {
|
|
1160
|
+
readonly body: string;
|
|
1161
|
+
} | undefined;
|
|
1162
|
+
readonly retryAfterMs?: number | undefined;
|
|
1163
|
+
};
|
|
1164
|
+
} | undefined;
|
|
1165
|
+
readonly time: {
|
|
1166
|
+
readonly created: number;
|
|
1167
|
+
readonly streamed?: number | undefined;
|
|
1168
|
+
readonly completed?: number | undefined;
|
|
1169
|
+
};
|
|
1170
|
+
}, "id" | "type"> | Omit<{
|
|
1171
|
+
readonly id: string;
|
|
1172
|
+
readonly metadata?: {
|
|
1173
|
+
readonly [x: string]: unknown;
|
|
1174
|
+
} | undefined;
|
|
1175
|
+
readonly time: {
|
|
1176
|
+
readonly created: number;
|
|
1177
|
+
};
|
|
1178
|
+
readonly type: "compaction";
|
|
1179
|
+
readonly status: "running";
|
|
1180
|
+
readonly reason: "auto" | "manual";
|
|
1181
|
+
readonly summary: string;
|
|
1182
|
+
}, "id" | "type"> | Omit<{
|
|
1183
|
+
readonly id: string;
|
|
1184
|
+
readonly metadata?: {
|
|
1185
|
+
readonly [x: string]: unknown;
|
|
1186
|
+
} | undefined;
|
|
1187
|
+
readonly time: {
|
|
1188
|
+
readonly created: number;
|
|
1189
|
+
};
|
|
1190
|
+
readonly type: "compaction";
|
|
1191
|
+
readonly cost?: number | undefined;
|
|
1192
|
+
readonly tokens?: {
|
|
1193
|
+
readonly input: number;
|
|
1194
|
+
readonly output: number;
|
|
1195
|
+
readonly reasoning: number;
|
|
1196
|
+
readonly cache: {
|
|
1197
|
+
readonly read: number;
|
|
1198
|
+
readonly write: number;
|
|
1199
|
+
};
|
|
1200
|
+
} | undefined;
|
|
1201
|
+
readonly status: "completed";
|
|
1202
|
+
readonly reason: "auto" | "manual";
|
|
1203
|
+
readonly model?: {
|
|
1204
|
+
readonly id: string;
|
|
1205
|
+
readonly providerID: string;
|
|
1206
|
+
readonly variant?: string | undefined;
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
readonly native?: {
|
|
1209
|
+
readonly [x: string]: unknown;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
readonly summary: string;
|
|
1212
|
+
}, "id" | "type"> | Omit<{
|
|
1213
|
+
readonly id: string;
|
|
1214
|
+
readonly metadata?: {
|
|
1215
|
+
readonly [x: string]: unknown;
|
|
1216
|
+
} | undefined;
|
|
1217
|
+
readonly time: {
|
|
1218
|
+
readonly created: number;
|
|
1219
|
+
};
|
|
1220
|
+
readonly type: "compaction";
|
|
1221
|
+
readonly cost?: number | undefined;
|
|
1222
|
+
readonly tokens?: {
|
|
1223
|
+
readonly input: number;
|
|
1224
|
+
readonly output: number;
|
|
1225
|
+
readonly reasoning: number;
|
|
1226
|
+
readonly cache: {
|
|
1227
|
+
readonly read: number;
|
|
1228
|
+
readonly write: number;
|
|
1229
|
+
};
|
|
1230
|
+
} | undefined;
|
|
1231
|
+
readonly status: "failed";
|
|
1232
|
+
readonly reason: "auto" | "manual";
|
|
1233
|
+
readonly error: {
|
|
1234
|
+
readonly type: string;
|
|
1235
|
+
readonly message: string;
|
|
1236
|
+
readonly status?: number | undefined;
|
|
1237
|
+
readonly response?: {
|
|
1238
|
+
readonly body: string;
|
|
1239
|
+
} | undefined;
|
|
1240
|
+
readonly retryAfterMs?: number | undefined;
|
|
1241
|
+
};
|
|
1242
|
+
}, "id" | "type"> | Omit<{
|
|
1243
|
+
readonly id: string;
|
|
1244
|
+
readonly metadata?: {
|
|
1245
|
+
readonly [x: string]: unknown;
|
|
1246
|
+
} | undefined;
|
|
1247
|
+
readonly time: {
|
|
1248
|
+
readonly created: number;
|
|
1249
|
+
};
|
|
1250
|
+
readonly type: "idle";
|
|
1251
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
1252
|
+
readonly error?: {
|
|
1253
|
+
readonly type: string;
|
|
1254
|
+
readonly message: string;
|
|
1255
|
+
readonly status?: number | undefined;
|
|
1256
|
+
readonly response?: {
|
|
1257
|
+
readonly body: string;
|
|
1258
|
+
} | undefined;
|
|
1259
|
+
readonly retryAfterMs?: number | undefined;
|
|
1260
|
+
} | undefined;
|
|
1261
|
+
}, "id" | "type"> | Omit<{
|
|
1262
|
+
readonly id: string;
|
|
1263
|
+
readonly metadata?: {
|
|
1264
|
+
readonly [x: string]: unknown;
|
|
1265
|
+
} | undefined;
|
|
1266
|
+
readonly time: {
|
|
1267
|
+
readonly created: number;
|
|
1268
|
+
};
|
|
1269
|
+
readonly text: string;
|
|
1270
|
+
readonly agents?: readonly {
|
|
1271
|
+
readonly name: string;
|
|
1272
|
+
readonly mention?: {
|
|
1273
|
+
readonly start: number;
|
|
1274
|
+
readonly end: number;
|
|
1275
|
+
readonly text: string;
|
|
1276
|
+
} | undefined;
|
|
1277
|
+
}[] | undefined;
|
|
1278
|
+
readonly skills?: readonly {
|
|
1279
|
+
readonly id: string;
|
|
1280
|
+
readonly name: string;
|
|
1281
|
+
readonly text?: string | undefined;
|
|
1282
|
+
readonly mention?: {
|
|
1283
|
+
readonly start: number;
|
|
1284
|
+
readonly end: number;
|
|
1285
|
+
readonly text: string;
|
|
1286
|
+
} | undefined;
|
|
1287
|
+
}[] | undefined;
|
|
1288
|
+
readonly type: "user";
|
|
1289
|
+
readonly files?: readonly ({
|
|
1290
|
+
readonly data: string;
|
|
1291
|
+
readonly mime: string;
|
|
1292
|
+
readonly source: {
|
|
1293
|
+
readonly type: "inline";
|
|
1294
|
+
} | {
|
|
1295
|
+
readonly type: "uri";
|
|
1296
|
+
readonly uri: string;
|
|
1297
|
+
};
|
|
1298
|
+
readonly name?: string | undefined;
|
|
1299
|
+
readonly description?: string | undefined;
|
|
1300
|
+
readonly mention?: {
|
|
1301
|
+
readonly start: number;
|
|
1302
|
+
readonly end: number;
|
|
1303
|
+
readonly text: string;
|
|
1304
|
+
} | undefined;
|
|
1305
|
+
} | {
|
|
1306
|
+
readonly mime: string;
|
|
1307
|
+
readonly source: {
|
|
1308
|
+
readonly type: "inline";
|
|
1309
|
+
} | {
|
|
1310
|
+
readonly type: "uri";
|
|
1311
|
+
readonly uri: string;
|
|
1312
|
+
};
|
|
1313
|
+
readonly name?: string | undefined;
|
|
1314
|
+
readonly description?: string | undefined;
|
|
1315
|
+
readonly mention?: {
|
|
1316
|
+
readonly start: number;
|
|
1317
|
+
readonly end: number;
|
|
1318
|
+
readonly text: string;
|
|
1319
|
+
} | undefined;
|
|
1320
|
+
readonly uri: string;
|
|
1321
|
+
})[] | undefined;
|
|
1322
|
+
}, "id" | "type">;
|
|
1323
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1324
|
+
seq: number;
|
|
1325
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1326
|
+
time_created: number;
|
|
1327
|
+
time_updated: number;
|
|
1328
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
1329
|
+
}[]) => Effect.Effect<{
|
|
1330
|
+
rows: {
|
|
1331
|
+
data: Omit<{
|
|
1332
|
+
readonly id: string;
|
|
1333
|
+
readonly metadata?: {
|
|
1334
|
+
readonly [x: string]: unknown;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
readonly time: {
|
|
1337
|
+
readonly created: number;
|
|
1338
|
+
};
|
|
1339
|
+
readonly type: "agent-switched";
|
|
1340
|
+
readonly agent: string;
|
|
1341
|
+
readonly previous?: string | undefined;
|
|
1342
|
+
}, "id" | "type"> | Omit<{
|
|
1343
|
+
readonly id: string;
|
|
1344
|
+
readonly metadata?: {
|
|
1345
|
+
readonly [x: string]: unknown;
|
|
1346
|
+
} | undefined;
|
|
1347
|
+
readonly time: {
|
|
1348
|
+
readonly created: number;
|
|
1349
|
+
};
|
|
1350
|
+
readonly type: "model-switched";
|
|
1351
|
+
readonly model: {
|
|
1352
|
+
readonly id: string;
|
|
1353
|
+
readonly providerID: string;
|
|
1354
|
+
readonly variant?: string | undefined;
|
|
1355
|
+
};
|
|
1356
|
+
readonly previous?: {
|
|
1357
|
+
readonly id: string;
|
|
1358
|
+
readonly providerID: string;
|
|
1359
|
+
readonly variant?: string | undefined;
|
|
1360
|
+
} | undefined;
|
|
1361
|
+
}, "id" | "type"> | Omit<{
|
|
1362
|
+
readonly id: string;
|
|
1363
|
+
readonly metadata?: {
|
|
1364
|
+
readonly [x: string]: unknown;
|
|
1365
|
+
} | undefined;
|
|
1366
|
+
readonly time: {
|
|
1367
|
+
readonly created: number;
|
|
1368
|
+
};
|
|
1369
|
+
readonly type: "location-switched";
|
|
1370
|
+
readonly location: {
|
|
1371
|
+
readonly directory: string;
|
|
1372
|
+
readonly workspaceID?: string | undefined;
|
|
1373
|
+
};
|
|
1374
|
+
readonly projectID?: string | undefined;
|
|
1375
|
+
readonly subpath?: string | undefined;
|
|
1376
|
+
readonly previous?: {
|
|
1377
|
+
readonly location: {
|
|
1378
|
+
readonly directory: string;
|
|
1379
|
+
readonly workspaceID?: string | undefined;
|
|
1380
|
+
};
|
|
1381
|
+
readonly projectID?: string | undefined;
|
|
1382
|
+
readonly subpath?: string | undefined;
|
|
1383
|
+
} | undefined;
|
|
1384
|
+
}, "id" | "type"> | Omit<{
|
|
1385
|
+
readonly id: string;
|
|
1386
|
+
readonly metadata?: {
|
|
1387
|
+
readonly [x: string]: unknown;
|
|
1388
|
+
} | undefined;
|
|
1389
|
+
readonly time: {
|
|
1390
|
+
readonly created: number;
|
|
1391
|
+
};
|
|
1392
|
+
readonly text: string;
|
|
1393
|
+
readonly description?: string | undefined;
|
|
1394
|
+
readonly type: "synthetic";
|
|
1395
|
+
}, "id" | "type"> | Omit<{
|
|
1396
|
+
readonly id: string;
|
|
1397
|
+
readonly metadata?: {
|
|
1398
|
+
readonly [x: string]: unknown;
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
readonly time: {
|
|
1401
|
+
readonly created: number;
|
|
1402
|
+
};
|
|
1403
|
+
readonly type: "system";
|
|
1404
|
+
readonly text: string;
|
|
1405
|
+
readonly description?: string | undefined;
|
|
1406
|
+
}, "id" | "type"> | Omit<{
|
|
1407
|
+
readonly id: string;
|
|
1408
|
+
readonly metadata?: {
|
|
1409
|
+
readonly [x: string]: unknown;
|
|
1410
|
+
} | undefined;
|
|
1411
|
+
readonly time: {
|
|
1412
|
+
readonly created: number;
|
|
1413
|
+
};
|
|
1414
|
+
readonly type: "skill";
|
|
1415
|
+
readonly skill: string;
|
|
1416
|
+
readonly name: string;
|
|
1417
|
+
readonly text: string;
|
|
1418
|
+
}, "id" | "type"> | Omit<{
|
|
1419
|
+
readonly id: string;
|
|
1420
|
+
readonly metadata?: {
|
|
1421
|
+
readonly [x: string]: unknown;
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
readonly type: "shell";
|
|
1424
|
+
readonly shellID: string;
|
|
1425
|
+
readonly command: string;
|
|
1426
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
1427
|
+
readonly exit?: number | undefined;
|
|
1428
|
+
readonly output?: {
|
|
1429
|
+
readonly output: string;
|
|
1430
|
+
readonly cursor: number;
|
|
1431
|
+
readonly size: number;
|
|
1432
|
+
readonly truncated: boolean;
|
|
1433
|
+
} | undefined;
|
|
1434
|
+
readonly time: {
|
|
1435
|
+
readonly created: number;
|
|
1436
|
+
readonly completed?: number | undefined;
|
|
1437
|
+
};
|
|
1438
|
+
}, "id" | "type"> | Omit<{
|
|
1439
|
+
readonly id: string;
|
|
1440
|
+
readonly metadata?: {
|
|
1441
|
+
readonly [x: string]: unknown;
|
|
1442
|
+
} | undefined;
|
|
1443
|
+
readonly type: "assistant";
|
|
1444
|
+
readonly agent: string;
|
|
1445
|
+
readonly model: {
|
|
1446
|
+
readonly id: string;
|
|
1447
|
+
readonly providerID: string;
|
|
1448
|
+
readonly variant?: string | undefined;
|
|
1449
|
+
};
|
|
1450
|
+
readonly content: readonly ({
|
|
1451
|
+
readonly type: "tool";
|
|
1452
|
+
readonly id: string;
|
|
1453
|
+
readonly name: string;
|
|
1454
|
+
readonly executed?: boolean | undefined;
|
|
1455
|
+
readonly native?: {
|
|
1456
|
+
readonly [x: string]: unknown;
|
|
1457
|
+
} | undefined;
|
|
1458
|
+
readonly state: {
|
|
1459
|
+
readonly status: "streaming";
|
|
1460
|
+
readonly input: string;
|
|
1461
|
+
} | {
|
|
1462
|
+
readonly status: "running";
|
|
1463
|
+
readonly input: {
|
|
1464
|
+
readonly [x: string]: unknown;
|
|
1465
|
+
};
|
|
1466
|
+
readonly metadata: {
|
|
1467
|
+
readonly [x: string]: Schema.Json;
|
|
1468
|
+
};
|
|
1469
|
+
} | {
|
|
1470
|
+
readonly status: "completed";
|
|
1471
|
+
readonly input: {
|
|
1472
|
+
readonly [x: string]: unknown;
|
|
1473
|
+
};
|
|
1474
|
+
readonly content: readonly [{
|
|
1475
|
+
readonly type: "text";
|
|
1476
|
+
readonly text: string;
|
|
1477
|
+
} | {
|
|
1478
|
+
readonly type: "file";
|
|
1479
|
+
readonly uri: string;
|
|
1480
|
+
readonly mime: string;
|
|
1481
|
+
readonly name?: string | undefined;
|
|
1482
|
+
}, ...({
|
|
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 metadata?: {
|
|
1492
|
+
readonly [x: string]: Schema.Json;
|
|
1493
|
+
} | undefined;
|
|
1494
|
+
} | {
|
|
1495
|
+
readonly status: "error";
|
|
1496
|
+
readonly input: {
|
|
1497
|
+
readonly [x: string]: unknown;
|
|
1498
|
+
};
|
|
1499
|
+
readonly error: {
|
|
1500
|
+
readonly type: string;
|
|
1501
|
+
readonly message: string;
|
|
1502
|
+
readonly status?: number | undefined;
|
|
1503
|
+
readonly response?: {
|
|
1504
|
+
readonly body: string;
|
|
1505
|
+
} | undefined;
|
|
1506
|
+
readonly retryAfterMs?: number | undefined;
|
|
1507
|
+
};
|
|
1508
|
+
readonly content?: readonly [{
|
|
1509
|
+
readonly type: "text";
|
|
1510
|
+
readonly text: string;
|
|
1511
|
+
} | {
|
|
1512
|
+
readonly type: "file";
|
|
1513
|
+
readonly uri: string;
|
|
1514
|
+
readonly mime: string;
|
|
1515
|
+
readonly name?: string | undefined;
|
|
1516
|
+
}, ...({
|
|
1517
|
+
readonly type: "text";
|
|
1518
|
+
readonly text: string;
|
|
1519
|
+
} | {
|
|
1520
|
+
readonly type: "file";
|
|
1521
|
+
readonly uri: string;
|
|
1522
|
+
readonly mime: string;
|
|
1523
|
+
readonly name?: string | undefined;
|
|
1524
|
+
})[]] | undefined;
|
|
1525
|
+
readonly metadata?: {
|
|
1526
|
+
readonly [x: string]: Schema.Json;
|
|
1527
|
+
} | undefined;
|
|
1528
|
+
};
|
|
1529
|
+
readonly time: {
|
|
1530
|
+
readonly created: number;
|
|
1531
|
+
readonly ran?: number | undefined;
|
|
1532
|
+
readonly completed?: number | undefined;
|
|
1533
|
+
};
|
|
1534
|
+
} | {
|
|
1535
|
+
readonly type: "text";
|
|
1536
|
+
readonly text: string;
|
|
1537
|
+
readonly native?: {
|
|
1538
|
+
readonly [x: string]: unknown;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
} | {
|
|
1541
|
+
readonly type: "reasoning";
|
|
1542
|
+
readonly text: string;
|
|
1543
|
+
readonly native?: {
|
|
1544
|
+
readonly [x: string]: unknown;
|
|
1545
|
+
} | undefined;
|
|
1546
|
+
readonly time?: {
|
|
1547
|
+
readonly created: number;
|
|
1548
|
+
readonly completed?: number | undefined;
|
|
1549
|
+
} | undefined;
|
|
1550
|
+
})[];
|
|
1551
|
+
readonly snapshot?: {
|
|
1552
|
+
readonly start?: string | undefined;
|
|
1553
|
+
readonly end?: string | undefined;
|
|
1554
|
+
readonly files?: readonly string[] | undefined;
|
|
1555
|
+
} | undefined;
|
|
1556
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
1557
|
+
readonly rawFinish?: string | undefined;
|
|
1558
|
+
readonly native?: {
|
|
1559
|
+
readonly [x: string]: unknown;
|
|
1560
|
+
} | undefined;
|
|
1561
|
+
readonly cost?: number | undefined;
|
|
1562
|
+
readonly tokens?: {
|
|
1563
|
+
readonly input: number;
|
|
1564
|
+
readonly output: number;
|
|
1565
|
+
readonly reasoning: number;
|
|
1566
|
+
readonly cache: {
|
|
1567
|
+
readonly read: number;
|
|
1568
|
+
readonly write: number;
|
|
1569
|
+
};
|
|
1570
|
+
} | undefined;
|
|
1571
|
+
readonly error?: {
|
|
1572
|
+
readonly type: string;
|
|
1573
|
+
readonly message: string;
|
|
1574
|
+
readonly status?: number | undefined;
|
|
1575
|
+
readonly response?: {
|
|
1576
|
+
readonly body: string;
|
|
1577
|
+
} | undefined;
|
|
1578
|
+
readonly retryAfterMs?: number | undefined;
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
readonly retry?: {
|
|
1581
|
+
readonly attempt: number;
|
|
1582
|
+
readonly at: number;
|
|
1583
|
+
readonly error: {
|
|
1584
|
+
readonly type: string;
|
|
1585
|
+
readonly message: string;
|
|
1586
|
+
readonly status?: number | undefined;
|
|
1587
|
+
readonly response?: {
|
|
1588
|
+
readonly body: string;
|
|
1589
|
+
} | undefined;
|
|
1590
|
+
readonly retryAfterMs?: number | undefined;
|
|
1591
|
+
};
|
|
1592
|
+
} | undefined;
|
|
1593
|
+
readonly time: {
|
|
1594
|
+
readonly created: number;
|
|
1595
|
+
readonly streamed?: number | undefined;
|
|
1596
|
+
readonly completed?: number | undefined;
|
|
1597
|
+
};
|
|
1598
|
+
}, "id" | "type"> | Omit<{
|
|
1599
|
+
readonly id: string;
|
|
1600
|
+
readonly metadata?: {
|
|
1601
|
+
readonly [x: string]: unknown;
|
|
1602
|
+
} | undefined;
|
|
1603
|
+
readonly time: {
|
|
1604
|
+
readonly created: number;
|
|
1605
|
+
};
|
|
1606
|
+
readonly type: "compaction";
|
|
1607
|
+
readonly status: "running";
|
|
1608
|
+
readonly reason: "auto" | "manual";
|
|
1609
|
+
readonly summary: string;
|
|
1610
|
+
}, "id" | "type"> | Omit<{
|
|
1611
|
+
readonly id: string;
|
|
1612
|
+
readonly metadata?: {
|
|
1613
|
+
readonly [x: string]: unknown;
|
|
1614
|
+
} | undefined;
|
|
1615
|
+
readonly time: {
|
|
1616
|
+
readonly created: number;
|
|
1617
|
+
};
|
|
1618
|
+
readonly type: "compaction";
|
|
1619
|
+
readonly cost?: number | undefined;
|
|
1620
|
+
readonly tokens?: {
|
|
1621
|
+
readonly input: number;
|
|
1622
|
+
readonly output: number;
|
|
1623
|
+
readonly reasoning: number;
|
|
1624
|
+
readonly cache: {
|
|
1625
|
+
readonly read: number;
|
|
1626
|
+
readonly write: number;
|
|
1627
|
+
};
|
|
1628
|
+
} | undefined;
|
|
1629
|
+
readonly status: "completed";
|
|
1630
|
+
readonly reason: "auto" | "manual";
|
|
1631
|
+
readonly model?: {
|
|
1632
|
+
readonly id: string;
|
|
1633
|
+
readonly providerID: string;
|
|
1634
|
+
readonly variant?: string | undefined;
|
|
1635
|
+
} | undefined;
|
|
1636
|
+
readonly native?: {
|
|
1637
|
+
readonly [x: string]: unknown;
|
|
1638
|
+
} | undefined;
|
|
1639
|
+
readonly summary: string;
|
|
1640
|
+
}, "id" | "type"> | Omit<{
|
|
1641
|
+
readonly id: string;
|
|
1642
|
+
readonly metadata?: {
|
|
1643
|
+
readonly [x: string]: unknown;
|
|
1644
|
+
} | undefined;
|
|
1645
|
+
readonly time: {
|
|
1646
|
+
readonly created: number;
|
|
1647
|
+
};
|
|
1648
|
+
readonly type: "compaction";
|
|
1649
|
+
readonly cost?: number | undefined;
|
|
1650
|
+
readonly tokens?: {
|
|
1651
|
+
readonly input: number;
|
|
1652
|
+
readonly output: number;
|
|
1653
|
+
readonly reasoning: number;
|
|
1654
|
+
readonly cache: {
|
|
1655
|
+
readonly read: number;
|
|
1656
|
+
readonly write: number;
|
|
1657
|
+
};
|
|
1658
|
+
} | undefined;
|
|
1659
|
+
readonly status: "failed";
|
|
1660
|
+
readonly reason: "auto" | "manual";
|
|
1661
|
+
readonly error: {
|
|
1662
|
+
readonly type: string;
|
|
1663
|
+
readonly message: string;
|
|
1664
|
+
readonly status?: number | undefined;
|
|
1665
|
+
readonly response?: {
|
|
1666
|
+
readonly body: string;
|
|
1667
|
+
} | undefined;
|
|
1668
|
+
readonly retryAfterMs?: number | undefined;
|
|
1669
|
+
};
|
|
1670
|
+
}, "id" | "type"> | Omit<{
|
|
1671
|
+
readonly id: string;
|
|
1672
|
+
readonly metadata?: {
|
|
1673
|
+
readonly [x: string]: unknown;
|
|
1674
|
+
} | undefined;
|
|
1675
|
+
readonly time: {
|
|
1676
|
+
readonly created: number;
|
|
1677
|
+
};
|
|
1678
|
+
readonly type: "idle";
|
|
1679
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
1680
|
+
readonly error?: {
|
|
1681
|
+
readonly type: string;
|
|
1682
|
+
readonly message: string;
|
|
1683
|
+
readonly status?: number | undefined;
|
|
1684
|
+
readonly response?: {
|
|
1685
|
+
readonly body: string;
|
|
1686
|
+
} | undefined;
|
|
1687
|
+
readonly retryAfterMs?: number | undefined;
|
|
1688
|
+
} | undefined;
|
|
1689
|
+
}, "id" | "type"> | Omit<{
|
|
1690
|
+
readonly id: string;
|
|
1691
|
+
readonly metadata?: {
|
|
1692
|
+
readonly [x: string]: unknown;
|
|
1693
|
+
} | undefined;
|
|
1694
|
+
readonly time: {
|
|
1695
|
+
readonly created: number;
|
|
1696
|
+
};
|
|
1697
|
+
readonly text: string;
|
|
1698
|
+
readonly agents?: readonly {
|
|
1699
|
+
readonly name: string;
|
|
1700
|
+
readonly mention?: {
|
|
1701
|
+
readonly start: number;
|
|
1702
|
+
readonly end: number;
|
|
1703
|
+
readonly text: string;
|
|
1704
|
+
} | undefined;
|
|
1705
|
+
}[] | undefined;
|
|
1706
|
+
readonly skills?: readonly {
|
|
1707
|
+
readonly id: string;
|
|
1708
|
+
readonly name: string;
|
|
1709
|
+
readonly text?: string | undefined;
|
|
1710
|
+
readonly mention?: {
|
|
1711
|
+
readonly start: number;
|
|
1712
|
+
readonly end: number;
|
|
1713
|
+
readonly text: string;
|
|
1714
|
+
} | undefined;
|
|
1715
|
+
}[] | undefined;
|
|
1716
|
+
readonly type: "user";
|
|
1717
|
+
readonly files?: readonly ({
|
|
1718
|
+
readonly data: string;
|
|
1719
|
+
readonly mime: string;
|
|
1720
|
+
readonly source: {
|
|
1721
|
+
readonly type: "inline";
|
|
1722
|
+
} | {
|
|
1723
|
+
readonly type: "uri";
|
|
1724
|
+
readonly uri: string;
|
|
1725
|
+
};
|
|
1726
|
+
readonly name?: string | undefined;
|
|
1727
|
+
readonly description?: string | undefined;
|
|
1728
|
+
readonly mention?: {
|
|
1729
|
+
readonly start: number;
|
|
1730
|
+
readonly end: number;
|
|
1731
|
+
readonly text: string;
|
|
1732
|
+
} | undefined;
|
|
1733
|
+
} | {
|
|
1734
|
+
readonly mime: string;
|
|
1735
|
+
readonly source: {
|
|
1736
|
+
readonly type: "inline";
|
|
1737
|
+
} | {
|
|
1738
|
+
readonly type: "uri";
|
|
1739
|
+
readonly uri: string;
|
|
1740
|
+
};
|
|
1741
|
+
readonly name?: string | undefined;
|
|
1742
|
+
readonly description?: string | undefined;
|
|
1743
|
+
readonly mention?: {
|
|
1744
|
+
readonly start: number;
|
|
1745
|
+
readonly end: number;
|
|
1746
|
+
readonly text: string;
|
|
1747
|
+
} | undefined;
|
|
1748
|
+
readonly uri: string;
|
|
1749
|
+
})[] | undefined;
|
|
1750
|
+
}, "id" | "type">;
|
|
1751
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1752
|
+
seq: number;
|
|
1753
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1754
|
+
time_created: number;
|
|
1755
|
+
time_updated: number;
|
|
1756
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
1757
|
+
}[];
|
|
1758
|
+
meta: Map<string, Meta>;
|
|
1759
|
+
}, never, never>;
|
|
1760
|
+
/** {@link keepRefs} for inbox rows. */
|
|
1761
|
+
export declare const keepInboxRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1762
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1763
|
+
}, rows: readonly {
|
|
1764
|
+
delivery: "queue" | "steer";
|
|
1765
|
+
enqueued_seq: number;
|
|
1766
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1767
|
+
payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
|
|
1768
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1769
|
+
time_created: number;
|
|
1770
|
+
type: "compaction" | "move" | "synthetic" | "user";
|
|
1771
|
+
}[]) => Effect.Effect<{
|
|
1772
|
+
rows: {
|
|
1773
|
+
delivery: "queue" | "steer";
|
|
1774
|
+
enqueued_seq: number;
|
|
1775
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1776
|
+
payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
|
|
1777
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1778
|
+
time_created: number;
|
|
1779
|
+
type: "compaction" | "move" | "synthetic" | "user";
|
|
1780
|
+
}[];
|
|
1781
|
+
meta: Map<string, Meta>;
|
|
1782
|
+
}, never, never>;
|
|
1783
|
+
/** Adds each kept ref's blob size and dimensions to files decoded from {@link keepRefs} or {@link keepInboxRefs}. */
|
|
1784
|
+
export declare function describe(files: ReadonlyArray<Attachment>, meta: ReadonlyMap<string, Meta>): Attachment[];
|
|
1785
|
+
/**
|
|
1786
|
+
* One blob's type and bytes, for the experimental media route and `media:` prompt attachments. Only a blob some
|
|
1787
|
+
* message or inbox item still references is readable; an unreferenced one awaiting its sweep reads as missing.
|
|
1788
|
+
*/
|
|
1789
|
+
export declare const read: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1790
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1791
|
+
}, hash: string) => Effect.Effect<{
|
|
1792
|
+
mime: string;
|
|
1793
|
+
data: Buffer<ArrayBufferLike>;
|
|
1794
|
+
} | undefined, never, never>;
|
|
1795
|
+
/** A blob's hash is the lowercase hex SHA-256 of its raw bytes. */
|
|
1796
|
+
export declare const hashBytes: (raw: Uint8Array) => string;
|
|
1797
|
+
/** The row a ref keeps its blob alive for: a message at its `seq`, or a pending inbox row at its `enqueued_seq`. */
|
|
1798
|
+
export interface Owner {
|
|
1799
|
+
readonly sessionID: SessionSchema.ID;
|
|
1800
|
+
readonly messageID: SessionMessage.ID;
|
|
1801
|
+
readonly seq: number;
|
|
1802
|
+
}
|
|
1803
|
+
/** Reads `experimental.media_blob` from the Config in scope on every call; without one, it is off. */
|
|
1804
|
+
export declare const enabled: Effect.Effect<boolean, never, never>;
|
|
1805
|
+
/** {@link externalize} for a user message or pending inbox user payload. */
|
|
1806
|
+
export declare const externalizePayload: <T extends {
|
|
1807
|
+
readonly files?: ReadonlyArray<SessionStored.File>;
|
|
1808
|
+
}>(db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1809
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1810
|
+
}, input: T) => Effect.Effect<T, never, never>;
|
|
1811
|
+
/**
|
|
1812
|
+
* With `experimental.media_blob` on, moves inline user files and tool `data:` files into `blob` and returns the
|
|
1813
|
+
* message to store with refs in their place. Existing refs pass through.
|
|
1814
|
+
*/
|
|
1815
|
+
export declare const externalize: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1816
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1817
|
+
}, message: SessionStored.User | SessionMessage.Info) => Effect.Effect<SessionMessage.AgentSelected | SessionMessage.Assistant | SessionMessage.CompactionCompleted | SessionMessage.CompactionFailed | SessionMessage.CompactionRunning | SessionMessage.Idle | SessionMessage.LocationSwitched | SessionMessage.ModelSelected | SessionMessage.Shell | SessionMessage.Skill | SessionMessage.Synthetic | SessionMessage.System | SessionStored.User, never, never>;
|
|
1818
|
+
/**
|
|
1819
|
+
* Moves a stored row's inline media into blobs whatever the flag says, for offline backfills. Returns the row to
|
|
1820
|
+
* store (the same object when nothing moved), the blobs to insert, and every hash the row then names.
|
|
1821
|
+
*/
|
|
1822
|
+
export declare function split(data: MessageRow["data"] | InboxRow["payload"]): {
|
|
1823
|
+
data: import("@opencode/schema/session-inbox").CompactionPayload;
|
|
1824
|
+
moved: boolean;
|
|
1825
|
+
blobs: {
|
|
1826
|
+
bytes: number;
|
|
1827
|
+
data: Buffer<ArrayBufferLike>;
|
|
1828
|
+
hash: string;
|
|
1829
|
+
height?: number | null | undefined;
|
|
1830
|
+
mime: string;
|
|
1831
|
+
time_created?: number | undefined;
|
|
1832
|
+
width?: number | null | undefined;
|
|
1833
|
+
}[];
|
|
1834
|
+
hashes: Set<string>;
|
|
1835
|
+
};
|
|
1836
|
+
/** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
|
|
1837
|
+
export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1838
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1839
|
+
}, owner: Owner, data: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload | (Omit<{
|
|
1840
|
+
readonly id: string;
|
|
1841
|
+
readonly metadata?: {
|
|
1842
|
+
readonly [x: string]: unknown;
|
|
1843
|
+
} | undefined;
|
|
1844
|
+
readonly time: {
|
|
1845
|
+
readonly created: number;
|
|
1846
|
+
};
|
|
1847
|
+
readonly type: "agent-switched";
|
|
1848
|
+
readonly agent: string;
|
|
1849
|
+
readonly previous?: string | undefined;
|
|
1850
|
+
}, "id" | "type"> | Omit<{
|
|
1851
|
+
readonly id: string;
|
|
1852
|
+
readonly metadata?: {
|
|
1853
|
+
readonly [x: string]: unknown;
|
|
1854
|
+
} | undefined;
|
|
1855
|
+
readonly time: {
|
|
1856
|
+
readonly created: number;
|
|
1857
|
+
};
|
|
1858
|
+
readonly type: "model-switched";
|
|
1859
|
+
readonly model: {
|
|
1860
|
+
readonly id: string;
|
|
1861
|
+
readonly providerID: string;
|
|
1862
|
+
readonly variant?: string | undefined;
|
|
1863
|
+
};
|
|
1864
|
+
readonly previous?: {
|
|
1865
|
+
readonly id: string;
|
|
1866
|
+
readonly providerID: string;
|
|
1867
|
+
readonly variant?: string | undefined;
|
|
1868
|
+
} | undefined;
|
|
1869
|
+
}, "id" | "type"> | Omit<{
|
|
1870
|
+
readonly id: string;
|
|
1871
|
+
readonly metadata?: {
|
|
1872
|
+
readonly [x: string]: unknown;
|
|
1873
|
+
} | undefined;
|
|
1874
|
+
readonly time: {
|
|
1875
|
+
readonly created: number;
|
|
1876
|
+
};
|
|
1877
|
+
readonly type: "location-switched";
|
|
1878
|
+
readonly location: {
|
|
1879
|
+
readonly directory: string;
|
|
1880
|
+
readonly workspaceID?: string | undefined;
|
|
1881
|
+
};
|
|
1882
|
+
readonly projectID?: string | undefined;
|
|
1883
|
+
readonly subpath?: string | undefined;
|
|
1884
|
+
readonly previous?: {
|
|
1885
|
+
readonly location: {
|
|
1886
|
+
readonly directory: string;
|
|
1887
|
+
readonly workspaceID?: string | undefined;
|
|
1888
|
+
};
|
|
1889
|
+
readonly projectID?: string | undefined;
|
|
1890
|
+
readonly subpath?: string | undefined;
|
|
1891
|
+
} | undefined;
|
|
1892
|
+
}, "id" | "type"> | Omit<{
|
|
1893
|
+
readonly id: string;
|
|
1894
|
+
readonly metadata?: {
|
|
1895
|
+
readonly [x: string]: unknown;
|
|
1896
|
+
} | undefined;
|
|
1897
|
+
readonly time: {
|
|
1898
|
+
readonly created: number;
|
|
1899
|
+
};
|
|
1900
|
+
readonly text: string;
|
|
1901
|
+
readonly description?: string | undefined;
|
|
1902
|
+
readonly type: "synthetic";
|
|
1903
|
+
}, "id" | "type"> | Omit<{
|
|
1904
|
+
readonly id: string;
|
|
1905
|
+
readonly metadata?: {
|
|
1906
|
+
readonly [x: string]: unknown;
|
|
1907
|
+
} | undefined;
|
|
1908
|
+
readonly time: {
|
|
1909
|
+
readonly created: number;
|
|
1910
|
+
};
|
|
1911
|
+
readonly type: "system";
|
|
1912
|
+
readonly text: string;
|
|
1913
|
+
readonly description?: string | undefined;
|
|
1914
|
+
}, "id" | "type"> | Omit<{
|
|
1915
|
+
readonly id: string;
|
|
1916
|
+
readonly metadata?: {
|
|
1917
|
+
readonly [x: string]: unknown;
|
|
1918
|
+
} | undefined;
|
|
1919
|
+
readonly time: {
|
|
1920
|
+
readonly created: number;
|
|
1921
|
+
};
|
|
1922
|
+
readonly type: "skill";
|
|
1923
|
+
readonly skill: string;
|
|
1924
|
+
readonly name: string;
|
|
1925
|
+
readonly text: string;
|
|
1926
|
+
}, "id" | "type"> | Omit<{
|
|
1927
|
+
readonly id: string;
|
|
1928
|
+
readonly metadata?: {
|
|
1929
|
+
readonly [x: string]: unknown;
|
|
1930
|
+
} | undefined;
|
|
1931
|
+
readonly type: "shell";
|
|
1932
|
+
readonly shellID: string;
|
|
1933
|
+
readonly command: string;
|
|
1934
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
1935
|
+
readonly exit?: number | undefined;
|
|
1936
|
+
readonly output?: {
|
|
1937
|
+
readonly output: string;
|
|
1938
|
+
readonly cursor: number;
|
|
1939
|
+
readonly size: number;
|
|
1940
|
+
readonly truncated: boolean;
|
|
1941
|
+
} | undefined;
|
|
1942
|
+
readonly time: {
|
|
1943
|
+
readonly created: number;
|
|
1944
|
+
readonly completed?: number | undefined;
|
|
1945
|
+
};
|
|
1946
|
+
}, "id" | "type"> | Omit<{
|
|
1947
|
+
readonly id: string;
|
|
1948
|
+
readonly metadata?: {
|
|
1949
|
+
readonly [x: string]: unknown;
|
|
1950
|
+
} | undefined;
|
|
1951
|
+
readonly type: "assistant";
|
|
1952
|
+
readonly agent: string;
|
|
1953
|
+
readonly model: {
|
|
1954
|
+
readonly id: string;
|
|
1955
|
+
readonly providerID: string;
|
|
1956
|
+
readonly variant?: string | undefined;
|
|
1957
|
+
};
|
|
1958
|
+
readonly content: readonly ({
|
|
1959
|
+
readonly type: "tool";
|
|
1960
|
+
readonly id: string;
|
|
1961
|
+
readonly name: string;
|
|
1962
|
+
readonly executed?: boolean | undefined;
|
|
1963
|
+
readonly native?: {
|
|
1964
|
+
readonly [x: string]: unknown;
|
|
1965
|
+
} | undefined;
|
|
1966
|
+
readonly state: {
|
|
1967
|
+
readonly status: "streaming";
|
|
1968
|
+
readonly input: string;
|
|
1969
|
+
} | {
|
|
1970
|
+
readonly status: "running";
|
|
1971
|
+
readonly input: {
|
|
1972
|
+
readonly [x: string]: unknown;
|
|
1973
|
+
};
|
|
1974
|
+
readonly metadata: {
|
|
1975
|
+
readonly [x: string]: Schema.Json;
|
|
1976
|
+
};
|
|
1977
|
+
} | {
|
|
1978
|
+
readonly status: "completed";
|
|
1979
|
+
readonly input: {
|
|
1980
|
+
readonly [x: string]: unknown;
|
|
1981
|
+
};
|
|
1982
|
+
readonly content: readonly [{
|
|
1983
|
+
readonly type: "text";
|
|
1984
|
+
readonly text: string;
|
|
1985
|
+
} | {
|
|
1986
|
+
readonly type: "file";
|
|
1987
|
+
readonly uri: string;
|
|
1988
|
+
readonly mime: string;
|
|
1989
|
+
readonly name?: string | undefined;
|
|
1990
|
+
}, ...({
|
|
1991
|
+
readonly type: "text";
|
|
1992
|
+
readonly text: string;
|
|
1993
|
+
} | {
|
|
1994
|
+
readonly type: "file";
|
|
1995
|
+
readonly uri: string;
|
|
1996
|
+
readonly mime: string;
|
|
1997
|
+
readonly name?: string | undefined;
|
|
1998
|
+
})[]];
|
|
1999
|
+
readonly metadata?: {
|
|
2000
|
+
readonly [x: string]: Schema.Json;
|
|
2001
|
+
} | undefined;
|
|
2002
|
+
} | {
|
|
2003
|
+
readonly status: "error";
|
|
2004
|
+
readonly input: {
|
|
2005
|
+
readonly [x: string]: unknown;
|
|
2006
|
+
};
|
|
2007
|
+
readonly error: {
|
|
2008
|
+
readonly type: string;
|
|
2009
|
+
readonly message: string;
|
|
2010
|
+
readonly status?: number | undefined;
|
|
2011
|
+
readonly response?: {
|
|
2012
|
+
readonly body: string;
|
|
2013
|
+
} | undefined;
|
|
2014
|
+
readonly retryAfterMs?: number | undefined;
|
|
2015
|
+
};
|
|
2016
|
+
readonly content?: readonly [{
|
|
2017
|
+
readonly type: "text";
|
|
2018
|
+
readonly text: string;
|
|
2019
|
+
} | {
|
|
2020
|
+
readonly type: "file";
|
|
2021
|
+
readonly uri: string;
|
|
2022
|
+
readonly mime: string;
|
|
2023
|
+
readonly name?: string | undefined;
|
|
2024
|
+
}, ...({
|
|
2025
|
+
readonly type: "text";
|
|
2026
|
+
readonly text: string;
|
|
2027
|
+
} | {
|
|
2028
|
+
readonly type: "file";
|
|
2029
|
+
readonly uri: string;
|
|
2030
|
+
readonly mime: string;
|
|
2031
|
+
readonly name?: string | undefined;
|
|
2032
|
+
})[]] | undefined;
|
|
2033
|
+
readonly metadata?: {
|
|
2034
|
+
readonly [x: string]: Schema.Json;
|
|
2035
|
+
} | undefined;
|
|
2036
|
+
};
|
|
2037
|
+
readonly time: {
|
|
2038
|
+
readonly created: number;
|
|
2039
|
+
readonly ran?: number | undefined;
|
|
2040
|
+
readonly completed?: number | undefined;
|
|
2041
|
+
};
|
|
2042
|
+
} | {
|
|
2043
|
+
readonly type: "text";
|
|
2044
|
+
readonly text: string;
|
|
2045
|
+
readonly native?: {
|
|
2046
|
+
readonly [x: string]: unknown;
|
|
2047
|
+
} | undefined;
|
|
2048
|
+
} | {
|
|
2049
|
+
readonly type: "reasoning";
|
|
2050
|
+
readonly text: string;
|
|
2051
|
+
readonly native?: {
|
|
2052
|
+
readonly [x: string]: unknown;
|
|
2053
|
+
} | undefined;
|
|
2054
|
+
readonly time?: {
|
|
2055
|
+
readonly created: number;
|
|
2056
|
+
readonly completed?: number | undefined;
|
|
2057
|
+
} | undefined;
|
|
2058
|
+
})[];
|
|
2059
|
+
readonly snapshot?: {
|
|
2060
|
+
readonly start?: string | undefined;
|
|
2061
|
+
readonly end?: string | undefined;
|
|
2062
|
+
readonly files?: readonly string[] | undefined;
|
|
2063
|
+
} | undefined;
|
|
2064
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
2065
|
+
readonly rawFinish?: string | undefined;
|
|
2066
|
+
readonly native?: {
|
|
2067
|
+
readonly [x: string]: unknown;
|
|
2068
|
+
} | undefined;
|
|
2069
|
+
readonly cost?: number | undefined;
|
|
2070
|
+
readonly tokens?: {
|
|
2071
|
+
readonly input: number;
|
|
2072
|
+
readonly output: number;
|
|
2073
|
+
readonly reasoning: number;
|
|
2074
|
+
readonly cache: {
|
|
2075
|
+
readonly read: number;
|
|
2076
|
+
readonly write: number;
|
|
2077
|
+
};
|
|
2078
|
+
} | undefined;
|
|
2079
|
+
readonly error?: {
|
|
2080
|
+
readonly type: string;
|
|
2081
|
+
readonly message: string;
|
|
2082
|
+
readonly status?: number | undefined;
|
|
2083
|
+
readonly response?: {
|
|
2084
|
+
readonly body: string;
|
|
2085
|
+
} | undefined;
|
|
2086
|
+
readonly retryAfterMs?: number | undefined;
|
|
2087
|
+
} | undefined;
|
|
2088
|
+
readonly retry?: {
|
|
2089
|
+
readonly attempt: number;
|
|
2090
|
+
readonly at: number;
|
|
2091
|
+
readonly error: {
|
|
2092
|
+
readonly type: string;
|
|
2093
|
+
readonly message: string;
|
|
2094
|
+
readonly status?: number | undefined;
|
|
2095
|
+
readonly response?: {
|
|
2096
|
+
readonly body: string;
|
|
2097
|
+
} | undefined;
|
|
2098
|
+
readonly retryAfterMs?: number | undefined;
|
|
2099
|
+
};
|
|
2100
|
+
} | undefined;
|
|
2101
|
+
readonly time: {
|
|
2102
|
+
readonly created: number;
|
|
2103
|
+
readonly streamed?: number | undefined;
|
|
2104
|
+
readonly completed?: number | undefined;
|
|
2105
|
+
};
|
|
2106
|
+
}, "id" | "type"> | Omit<{
|
|
2107
|
+
readonly id: string;
|
|
2108
|
+
readonly metadata?: {
|
|
2109
|
+
readonly [x: string]: unknown;
|
|
2110
|
+
} | undefined;
|
|
2111
|
+
readonly time: {
|
|
2112
|
+
readonly created: number;
|
|
2113
|
+
};
|
|
2114
|
+
readonly type: "compaction";
|
|
2115
|
+
readonly status: "running";
|
|
2116
|
+
readonly reason: "auto" | "manual";
|
|
2117
|
+
readonly summary: string;
|
|
2118
|
+
}, "id" | "type"> | Omit<{
|
|
2119
|
+
readonly id: string;
|
|
2120
|
+
readonly metadata?: {
|
|
2121
|
+
readonly [x: string]: unknown;
|
|
2122
|
+
} | undefined;
|
|
2123
|
+
readonly time: {
|
|
2124
|
+
readonly created: number;
|
|
2125
|
+
};
|
|
2126
|
+
readonly type: "compaction";
|
|
2127
|
+
readonly cost?: number | undefined;
|
|
2128
|
+
readonly tokens?: {
|
|
2129
|
+
readonly input: number;
|
|
2130
|
+
readonly output: number;
|
|
2131
|
+
readonly reasoning: number;
|
|
2132
|
+
readonly cache: {
|
|
2133
|
+
readonly read: number;
|
|
2134
|
+
readonly write: number;
|
|
2135
|
+
};
|
|
2136
|
+
} | undefined;
|
|
2137
|
+
readonly status: "completed";
|
|
2138
|
+
readonly reason: "auto" | "manual";
|
|
2139
|
+
readonly model?: {
|
|
2140
|
+
readonly id: string;
|
|
2141
|
+
readonly providerID: string;
|
|
2142
|
+
readonly variant?: string | undefined;
|
|
2143
|
+
} | undefined;
|
|
2144
|
+
readonly native?: {
|
|
2145
|
+
readonly [x: string]: unknown;
|
|
2146
|
+
} | undefined;
|
|
2147
|
+
readonly summary: string;
|
|
2148
|
+
}, "id" | "type"> | Omit<{
|
|
2149
|
+
readonly id: string;
|
|
2150
|
+
readonly metadata?: {
|
|
2151
|
+
readonly [x: string]: unknown;
|
|
2152
|
+
} | undefined;
|
|
2153
|
+
readonly time: {
|
|
2154
|
+
readonly created: number;
|
|
2155
|
+
};
|
|
2156
|
+
readonly type: "compaction";
|
|
2157
|
+
readonly cost?: number | undefined;
|
|
2158
|
+
readonly tokens?: {
|
|
2159
|
+
readonly input: number;
|
|
2160
|
+
readonly output: number;
|
|
2161
|
+
readonly reasoning: number;
|
|
2162
|
+
readonly cache: {
|
|
2163
|
+
readonly read: number;
|
|
2164
|
+
readonly write: number;
|
|
2165
|
+
};
|
|
2166
|
+
} | undefined;
|
|
2167
|
+
readonly status: "failed";
|
|
2168
|
+
readonly reason: "auto" | "manual";
|
|
2169
|
+
readonly error: {
|
|
2170
|
+
readonly type: string;
|
|
2171
|
+
readonly message: string;
|
|
2172
|
+
readonly status?: number | undefined;
|
|
2173
|
+
readonly response?: {
|
|
2174
|
+
readonly body: string;
|
|
2175
|
+
} | undefined;
|
|
2176
|
+
readonly retryAfterMs?: number | undefined;
|
|
2177
|
+
};
|
|
2178
|
+
}, "id" | "type"> | Omit<{
|
|
2179
|
+
readonly id: string;
|
|
2180
|
+
readonly metadata?: {
|
|
2181
|
+
readonly [x: string]: unknown;
|
|
2182
|
+
} | undefined;
|
|
2183
|
+
readonly time: {
|
|
2184
|
+
readonly created: number;
|
|
2185
|
+
};
|
|
2186
|
+
readonly type: "idle";
|
|
2187
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
2188
|
+
readonly error?: {
|
|
2189
|
+
readonly type: string;
|
|
2190
|
+
readonly message: string;
|
|
2191
|
+
readonly status?: number | undefined;
|
|
2192
|
+
readonly response?: {
|
|
2193
|
+
readonly body: string;
|
|
2194
|
+
} | undefined;
|
|
2195
|
+
readonly retryAfterMs?: number | undefined;
|
|
2196
|
+
} | undefined;
|
|
2197
|
+
}, "id" | "type"> | Omit<{
|
|
2198
|
+
readonly id: string;
|
|
2199
|
+
readonly metadata?: {
|
|
2200
|
+
readonly [x: string]: unknown;
|
|
2201
|
+
} | undefined;
|
|
2202
|
+
readonly time: {
|
|
2203
|
+
readonly created: number;
|
|
2204
|
+
};
|
|
2205
|
+
readonly text: string;
|
|
2206
|
+
readonly agents?: readonly {
|
|
2207
|
+
readonly name: string;
|
|
2208
|
+
readonly mention?: {
|
|
2209
|
+
readonly start: number;
|
|
2210
|
+
readonly end: number;
|
|
2211
|
+
readonly text: string;
|
|
2212
|
+
} | undefined;
|
|
2213
|
+
}[] | undefined;
|
|
2214
|
+
readonly skills?: readonly {
|
|
2215
|
+
readonly id: string;
|
|
2216
|
+
readonly name: string;
|
|
2217
|
+
readonly text?: string | undefined;
|
|
2218
|
+
readonly mention?: {
|
|
2219
|
+
readonly start: number;
|
|
2220
|
+
readonly end: number;
|
|
2221
|
+
readonly text: string;
|
|
2222
|
+
} | undefined;
|
|
2223
|
+
}[] | undefined;
|
|
2224
|
+
readonly type: "user";
|
|
2225
|
+
readonly files?: readonly ({
|
|
2226
|
+
readonly data: string;
|
|
2227
|
+
readonly mime: string;
|
|
2228
|
+
readonly source: {
|
|
2229
|
+
readonly type: "inline";
|
|
2230
|
+
} | {
|
|
2231
|
+
readonly type: "uri";
|
|
2232
|
+
readonly uri: string;
|
|
2233
|
+
};
|
|
2234
|
+
readonly name?: string | undefined;
|
|
2235
|
+
readonly description?: string | undefined;
|
|
2236
|
+
readonly mention?: {
|
|
2237
|
+
readonly start: number;
|
|
2238
|
+
readonly end: number;
|
|
2239
|
+
readonly text: string;
|
|
2240
|
+
} | undefined;
|
|
2241
|
+
} | {
|
|
2242
|
+
readonly mime: string;
|
|
2243
|
+
readonly source: {
|
|
2244
|
+
readonly type: "inline";
|
|
2245
|
+
} | {
|
|
2246
|
+
readonly type: "uri";
|
|
2247
|
+
readonly uri: string;
|
|
2248
|
+
};
|
|
2249
|
+
readonly name?: string | undefined;
|
|
2250
|
+
readonly description?: string | undefined;
|
|
2251
|
+
readonly mention?: {
|
|
2252
|
+
readonly start: number;
|
|
2253
|
+
readonly end: number;
|
|
2254
|
+
readonly text: string;
|
|
2255
|
+
} | undefined;
|
|
2256
|
+
readonly uri: string;
|
|
2257
|
+
})[] | undefined;
|
|
2258
|
+
}, "id" | "type">)) => Effect.Effect<void, never, never>;
|
|
2259
|
+
/** Records the refs a rewritten message names and releases the ones it no longer does. */
|
|
2260
|
+
export declare const syncRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
2261
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
2262
|
+
}, owner: Owner, data: Omit<{
|
|
2263
|
+
readonly id: string;
|
|
2264
|
+
readonly metadata?: {
|
|
2265
|
+
readonly [x: string]: unknown;
|
|
2266
|
+
} | undefined;
|
|
2267
|
+
readonly time: {
|
|
2268
|
+
readonly created: number;
|
|
2269
|
+
};
|
|
2270
|
+
readonly type: "agent-switched";
|
|
2271
|
+
readonly agent: string;
|
|
2272
|
+
readonly previous?: string | undefined;
|
|
2273
|
+
}, "id" | "type"> | Omit<{
|
|
2274
|
+
readonly id: string;
|
|
2275
|
+
readonly metadata?: {
|
|
2276
|
+
readonly [x: string]: unknown;
|
|
2277
|
+
} | undefined;
|
|
2278
|
+
readonly time: {
|
|
2279
|
+
readonly created: number;
|
|
2280
|
+
};
|
|
2281
|
+
readonly type: "model-switched";
|
|
2282
|
+
readonly model: {
|
|
2283
|
+
readonly id: string;
|
|
2284
|
+
readonly providerID: string;
|
|
2285
|
+
readonly variant?: string | undefined;
|
|
2286
|
+
};
|
|
2287
|
+
readonly previous?: {
|
|
2288
|
+
readonly id: string;
|
|
2289
|
+
readonly providerID: string;
|
|
2290
|
+
readonly variant?: string | undefined;
|
|
2291
|
+
} | undefined;
|
|
2292
|
+
}, "id" | "type"> | Omit<{
|
|
2293
|
+
readonly id: string;
|
|
2294
|
+
readonly metadata?: {
|
|
2295
|
+
readonly [x: string]: unknown;
|
|
2296
|
+
} | undefined;
|
|
2297
|
+
readonly time: {
|
|
2298
|
+
readonly created: number;
|
|
2299
|
+
};
|
|
2300
|
+
readonly type: "location-switched";
|
|
2301
|
+
readonly location: {
|
|
2302
|
+
readonly directory: string;
|
|
2303
|
+
readonly workspaceID?: string | undefined;
|
|
2304
|
+
};
|
|
2305
|
+
readonly projectID?: string | undefined;
|
|
2306
|
+
readonly subpath?: string | undefined;
|
|
2307
|
+
readonly previous?: {
|
|
2308
|
+
readonly location: {
|
|
2309
|
+
readonly directory: string;
|
|
2310
|
+
readonly workspaceID?: string | undefined;
|
|
2311
|
+
};
|
|
2312
|
+
readonly projectID?: string | undefined;
|
|
2313
|
+
readonly subpath?: string | undefined;
|
|
2314
|
+
} | undefined;
|
|
2315
|
+
}, "id" | "type"> | Omit<{
|
|
2316
|
+
readonly id: string;
|
|
2317
|
+
readonly metadata?: {
|
|
2318
|
+
readonly [x: string]: unknown;
|
|
2319
|
+
} | undefined;
|
|
2320
|
+
readonly time: {
|
|
2321
|
+
readonly created: number;
|
|
2322
|
+
};
|
|
2323
|
+
readonly text: string;
|
|
2324
|
+
readonly description?: string | undefined;
|
|
2325
|
+
readonly type: "synthetic";
|
|
2326
|
+
}, "id" | "type"> | Omit<{
|
|
2327
|
+
readonly id: string;
|
|
2328
|
+
readonly metadata?: {
|
|
2329
|
+
readonly [x: string]: unknown;
|
|
2330
|
+
} | undefined;
|
|
2331
|
+
readonly time: {
|
|
2332
|
+
readonly created: number;
|
|
2333
|
+
};
|
|
2334
|
+
readonly type: "system";
|
|
2335
|
+
readonly text: string;
|
|
2336
|
+
readonly description?: string | undefined;
|
|
2337
|
+
}, "id" | "type"> | Omit<{
|
|
2338
|
+
readonly id: string;
|
|
2339
|
+
readonly metadata?: {
|
|
2340
|
+
readonly [x: string]: unknown;
|
|
2341
|
+
} | undefined;
|
|
2342
|
+
readonly time: {
|
|
2343
|
+
readonly created: number;
|
|
2344
|
+
};
|
|
2345
|
+
readonly type: "skill";
|
|
2346
|
+
readonly skill: string;
|
|
2347
|
+
readonly name: string;
|
|
2348
|
+
readonly text: string;
|
|
2349
|
+
}, "id" | "type"> | Omit<{
|
|
2350
|
+
readonly id: string;
|
|
2351
|
+
readonly metadata?: {
|
|
2352
|
+
readonly [x: string]: unknown;
|
|
2353
|
+
} | undefined;
|
|
2354
|
+
readonly type: "shell";
|
|
2355
|
+
readonly shellID: string;
|
|
2356
|
+
readonly command: string;
|
|
2357
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
2358
|
+
readonly exit?: number | undefined;
|
|
2359
|
+
readonly output?: {
|
|
2360
|
+
readonly output: string;
|
|
2361
|
+
readonly cursor: number;
|
|
2362
|
+
readonly size: number;
|
|
2363
|
+
readonly truncated: boolean;
|
|
2364
|
+
} | undefined;
|
|
2365
|
+
readonly time: {
|
|
2366
|
+
readonly created: number;
|
|
2367
|
+
readonly completed?: number | undefined;
|
|
2368
|
+
};
|
|
2369
|
+
}, "id" | "type"> | Omit<{
|
|
2370
|
+
readonly id: string;
|
|
2371
|
+
readonly metadata?: {
|
|
2372
|
+
readonly [x: string]: unknown;
|
|
2373
|
+
} | undefined;
|
|
2374
|
+
readonly type: "assistant";
|
|
2375
|
+
readonly agent: string;
|
|
2376
|
+
readonly model: {
|
|
2377
|
+
readonly id: string;
|
|
2378
|
+
readonly providerID: string;
|
|
2379
|
+
readonly variant?: string | undefined;
|
|
2380
|
+
};
|
|
2381
|
+
readonly content: readonly ({
|
|
2382
|
+
readonly type: "tool";
|
|
2383
|
+
readonly id: string;
|
|
2384
|
+
readonly name: string;
|
|
2385
|
+
readonly executed?: boolean | undefined;
|
|
2386
|
+
readonly native?: {
|
|
2387
|
+
readonly [x: string]: unknown;
|
|
2388
|
+
} | undefined;
|
|
2389
|
+
readonly state: {
|
|
2390
|
+
readonly status: "streaming";
|
|
2391
|
+
readonly input: string;
|
|
2392
|
+
} | {
|
|
2393
|
+
readonly status: "running";
|
|
2394
|
+
readonly input: {
|
|
2395
|
+
readonly [x: string]: unknown;
|
|
2396
|
+
};
|
|
2397
|
+
readonly metadata: {
|
|
2398
|
+
readonly [x: string]: Schema.Json;
|
|
2399
|
+
};
|
|
2400
|
+
} | {
|
|
2401
|
+
readonly status: "completed";
|
|
2402
|
+
readonly input: {
|
|
2403
|
+
readonly [x: string]: unknown;
|
|
2404
|
+
};
|
|
2405
|
+
readonly content: readonly [{
|
|
2406
|
+
readonly type: "text";
|
|
2407
|
+
readonly text: string;
|
|
2408
|
+
} | {
|
|
2409
|
+
readonly type: "file";
|
|
2410
|
+
readonly uri: string;
|
|
2411
|
+
readonly mime: string;
|
|
2412
|
+
readonly name?: string | undefined;
|
|
2413
|
+
}, ...({
|
|
2414
|
+
readonly type: "text";
|
|
2415
|
+
readonly text: string;
|
|
2416
|
+
} | {
|
|
2417
|
+
readonly type: "file";
|
|
2418
|
+
readonly uri: string;
|
|
2419
|
+
readonly mime: string;
|
|
2420
|
+
readonly name?: string | undefined;
|
|
2421
|
+
})[]];
|
|
2422
|
+
readonly metadata?: {
|
|
2423
|
+
readonly [x: string]: Schema.Json;
|
|
2424
|
+
} | undefined;
|
|
2425
|
+
} | {
|
|
2426
|
+
readonly status: "error";
|
|
2427
|
+
readonly input: {
|
|
2428
|
+
readonly [x: string]: unknown;
|
|
2429
|
+
};
|
|
2430
|
+
readonly error: {
|
|
2431
|
+
readonly type: string;
|
|
2432
|
+
readonly message: string;
|
|
2433
|
+
readonly status?: number | undefined;
|
|
2434
|
+
readonly response?: {
|
|
2435
|
+
readonly body: string;
|
|
2436
|
+
} | undefined;
|
|
2437
|
+
readonly retryAfterMs?: number | undefined;
|
|
2438
|
+
};
|
|
2439
|
+
readonly content?: readonly [{
|
|
2440
|
+
readonly type: "text";
|
|
2441
|
+
readonly text: string;
|
|
2442
|
+
} | {
|
|
2443
|
+
readonly type: "file";
|
|
2444
|
+
readonly uri: string;
|
|
2445
|
+
readonly mime: string;
|
|
2446
|
+
readonly name?: string | undefined;
|
|
2447
|
+
}, ...({
|
|
2448
|
+
readonly type: "text";
|
|
2449
|
+
readonly text: string;
|
|
2450
|
+
} | {
|
|
2451
|
+
readonly type: "file";
|
|
2452
|
+
readonly uri: string;
|
|
2453
|
+
readonly mime: string;
|
|
2454
|
+
readonly name?: string | undefined;
|
|
2455
|
+
})[]] | undefined;
|
|
2456
|
+
readonly metadata?: {
|
|
2457
|
+
readonly [x: string]: Schema.Json;
|
|
2458
|
+
} | undefined;
|
|
2459
|
+
};
|
|
2460
|
+
readonly time: {
|
|
2461
|
+
readonly created: number;
|
|
2462
|
+
readonly ran?: number | undefined;
|
|
2463
|
+
readonly completed?: number | undefined;
|
|
2464
|
+
};
|
|
2465
|
+
} | {
|
|
2466
|
+
readonly type: "text";
|
|
2467
|
+
readonly text: string;
|
|
2468
|
+
readonly native?: {
|
|
2469
|
+
readonly [x: string]: unknown;
|
|
2470
|
+
} | undefined;
|
|
2471
|
+
} | {
|
|
2472
|
+
readonly type: "reasoning";
|
|
2473
|
+
readonly text: string;
|
|
2474
|
+
readonly native?: {
|
|
2475
|
+
readonly [x: string]: unknown;
|
|
2476
|
+
} | undefined;
|
|
2477
|
+
readonly time?: {
|
|
2478
|
+
readonly created: number;
|
|
2479
|
+
readonly completed?: number | undefined;
|
|
2480
|
+
} | undefined;
|
|
2481
|
+
})[];
|
|
2482
|
+
readonly snapshot?: {
|
|
2483
|
+
readonly start?: string | undefined;
|
|
2484
|
+
readonly end?: string | undefined;
|
|
2485
|
+
readonly files?: readonly string[] | undefined;
|
|
2486
|
+
} | undefined;
|
|
2487
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
2488
|
+
readonly rawFinish?: string | undefined;
|
|
2489
|
+
readonly native?: {
|
|
2490
|
+
readonly [x: string]: unknown;
|
|
2491
|
+
} | undefined;
|
|
2492
|
+
readonly cost?: number | undefined;
|
|
2493
|
+
readonly tokens?: {
|
|
2494
|
+
readonly input: number;
|
|
2495
|
+
readonly output: number;
|
|
2496
|
+
readonly reasoning: number;
|
|
2497
|
+
readonly cache: {
|
|
2498
|
+
readonly read: number;
|
|
2499
|
+
readonly write: number;
|
|
2500
|
+
};
|
|
2501
|
+
} | undefined;
|
|
2502
|
+
readonly error?: {
|
|
2503
|
+
readonly type: string;
|
|
2504
|
+
readonly message: string;
|
|
2505
|
+
readonly status?: number | undefined;
|
|
2506
|
+
readonly response?: {
|
|
2507
|
+
readonly body: string;
|
|
2508
|
+
} | undefined;
|
|
2509
|
+
readonly retryAfterMs?: number | undefined;
|
|
2510
|
+
} | undefined;
|
|
2511
|
+
readonly retry?: {
|
|
2512
|
+
readonly attempt: number;
|
|
2513
|
+
readonly at: number;
|
|
2514
|
+
readonly error: {
|
|
2515
|
+
readonly type: string;
|
|
2516
|
+
readonly message: string;
|
|
2517
|
+
readonly status?: number | undefined;
|
|
2518
|
+
readonly response?: {
|
|
2519
|
+
readonly body: string;
|
|
2520
|
+
} | undefined;
|
|
2521
|
+
readonly retryAfterMs?: number | undefined;
|
|
2522
|
+
};
|
|
2523
|
+
} | undefined;
|
|
2524
|
+
readonly time: {
|
|
2525
|
+
readonly created: number;
|
|
2526
|
+
readonly streamed?: number | undefined;
|
|
2527
|
+
readonly completed?: number | undefined;
|
|
2528
|
+
};
|
|
2529
|
+
}, "id" | "type"> | Omit<{
|
|
2530
|
+
readonly id: string;
|
|
2531
|
+
readonly metadata?: {
|
|
2532
|
+
readonly [x: string]: unknown;
|
|
2533
|
+
} | undefined;
|
|
2534
|
+
readonly time: {
|
|
2535
|
+
readonly created: number;
|
|
2536
|
+
};
|
|
2537
|
+
readonly type: "compaction";
|
|
2538
|
+
readonly status: "running";
|
|
2539
|
+
readonly reason: "auto" | "manual";
|
|
2540
|
+
readonly summary: string;
|
|
2541
|
+
}, "id" | "type"> | Omit<{
|
|
2542
|
+
readonly id: string;
|
|
2543
|
+
readonly metadata?: {
|
|
2544
|
+
readonly [x: string]: unknown;
|
|
2545
|
+
} | undefined;
|
|
2546
|
+
readonly time: {
|
|
2547
|
+
readonly created: number;
|
|
2548
|
+
};
|
|
2549
|
+
readonly type: "compaction";
|
|
2550
|
+
readonly cost?: number | undefined;
|
|
2551
|
+
readonly tokens?: {
|
|
2552
|
+
readonly input: number;
|
|
2553
|
+
readonly output: number;
|
|
2554
|
+
readonly reasoning: number;
|
|
2555
|
+
readonly cache: {
|
|
2556
|
+
readonly read: number;
|
|
2557
|
+
readonly write: number;
|
|
2558
|
+
};
|
|
2559
|
+
} | undefined;
|
|
2560
|
+
readonly status: "completed";
|
|
2561
|
+
readonly reason: "auto" | "manual";
|
|
2562
|
+
readonly model?: {
|
|
2563
|
+
readonly id: string;
|
|
2564
|
+
readonly providerID: string;
|
|
2565
|
+
readonly variant?: string | undefined;
|
|
2566
|
+
} | undefined;
|
|
2567
|
+
readonly native?: {
|
|
2568
|
+
readonly [x: string]: unknown;
|
|
2569
|
+
} | undefined;
|
|
2570
|
+
readonly summary: string;
|
|
2571
|
+
}, "id" | "type"> | Omit<{
|
|
2572
|
+
readonly id: string;
|
|
2573
|
+
readonly metadata?: {
|
|
2574
|
+
readonly [x: string]: unknown;
|
|
2575
|
+
} | undefined;
|
|
2576
|
+
readonly time: {
|
|
2577
|
+
readonly created: number;
|
|
2578
|
+
};
|
|
2579
|
+
readonly type: "compaction";
|
|
2580
|
+
readonly cost?: number | undefined;
|
|
2581
|
+
readonly tokens?: {
|
|
2582
|
+
readonly input: number;
|
|
2583
|
+
readonly output: number;
|
|
2584
|
+
readonly reasoning: number;
|
|
2585
|
+
readonly cache: {
|
|
2586
|
+
readonly read: number;
|
|
2587
|
+
readonly write: number;
|
|
2588
|
+
};
|
|
2589
|
+
} | undefined;
|
|
2590
|
+
readonly status: "failed";
|
|
2591
|
+
readonly reason: "auto" | "manual";
|
|
2592
|
+
readonly error: {
|
|
2593
|
+
readonly type: string;
|
|
2594
|
+
readonly message: string;
|
|
2595
|
+
readonly status?: number | undefined;
|
|
2596
|
+
readonly response?: {
|
|
2597
|
+
readonly body: string;
|
|
2598
|
+
} | undefined;
|
|
2599
|
+
readonly retryAfterMs?: number | undefined;
|
|
2600
|
+
};
|
|
2601
|
+
}, "id" | "type"> | Omit<{
|
|
2602
|
+
readonly id: string;
|
|
2603
|
+
readonly metadata?: {
|
|
2604
|
+
readonly [x: string]: unknown;
|
|
2605
|
+
} | undefined;
|
|
2606
|
+
readonly time: {
|
|
2607
|
+
readonly created: number;
|
|
2608
|
+
};
|
|
2609
|
+
readonly type: "idle";
|
|
2610
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
2611
|
+
readonly error?: {
|
|
2612
|
+
readonly type: string;
|
|
2613
|
+
readonly message: string;
|
|
2614
|
+
readonly status?: number | undefined;
|
|
2615
|
+
readonly response?: {
|
|
2616
|
+
readonly body: string;
|
|
2617
|
+
} | undefined;
|
|
2618
|
+
readonly retryAfterMs?: number | undefined;
|
|
2619
|
+
} | undefined;
|
|
2620
|
+
}, "id" | "type"> | Omit<{
|
|
2621
|
+
readonly id: string;
|
|
2622
|
+
readonly metadata?: {
|
|
2623
|
+
readonly [x: string]: unknown;
|
|
2624
|
+
} | undefined;
|
|
2625
|
+
readonly time: {
|
|
2626
|
+
readonly created: number;
|
|
2627
|
+
};
|
|
2628
|
+
readonly text: string;
|
|
2629
|
+
readonly agents?: readonly {
|
|
2630
|
+
readonly name: string;
|
|
2631
|
+
readonly mention?: {
|
|
2632
|
+
readonly start: number;
|
|
2633
|
+
readonly end: number;
|
|
2634
|
+
readonly text: string;
|
|
2635
|
+
} | undefined;
|
|
2636
|
+
}[] | undefined;
|
|
2637
|
+
readonly skills?: readonly {
|
|
2638
|
+
readonly id: string;
|
|
2639
|
+
readonly name: string;
|
|
2640
|
+
readonly text?: string | undefined;
|
|
2641
|
+
readonly mention?: {
|
|
2642
|
+
readonly start: number;
|
|
2643
|
+
readonly end: number;
|
|
2644
|
+
readonly text: string;
|
|
2645
|
+
} | undefined;
|
|
2646
|
+
}[] | undefined;
|
|
2647
|
+
readonly type: "user";
|
|
2648
|
+
readonly files?: readonly ({
|
|
2649
|
+
readonly data: string;
|
|
2650
|
+
readonly mime: string;
|
|
2651
|
+
readonly source: {
|
|
2652
|
+
readonly type: "inline";
|
|
2653
|
+
} | {
|
|
2654
|
+
readonly type: "uri";
|
|
2655
|
+
readonly uri: string;
|
|
2656
|
+
};
|
|
2657
|
+
readonly name?: string | undefined;
|
|
2658
|
+
readonly description?: string | undefined;
|
|
2659
|
+
readonly mention?: {
|
|
2660
|
+
readonly start: number;
|
|
2661
|
+
readonly end: number;
|
|
2662
|
+
readonly text: string;
|
|
2663
|
+
} | undefined;
|
|
2664
|
+
} | {
|
|
2665
|
+
readonly mime: string;
|
|
2666
|
+
readonly source: {
|
|
2667
|
+
readonly type: "inline";
|
|
2668
|
+
} | {
|
|
2669
|
+
readonly type: "uri";
|
|
2670
|
+
readonly uri: string;
|
|
2671
|
+
};
|
|
2672
|
+
readonly name?: string | undefined;
|
|
2673
|
+
readonly description?: string | undefined;
|
|
2674
|
+
readonly mention?: {
|
|
2675
|
+
readonly start: number;
|
|
2676
|
+
readonly end: number;
|
|
2677
|
+
readonly text: string;
|
|
2678
|
+
} | undefined;
|
|
2679
|
+
readonly uri: string;
|
|
2680
|
+
})[] | undefined;
|
|
2681
|
+
}, "id" | "type">) => Effect.Effect<void, never, never>;
|
|
2682
|
+
/** Releases the blobs a removed message or cancelled inbox row referenced. */
|
|
2683
|
+
export declare const releaseMessage: (db: DatabaseService, sessionID: SessionSchema.ID, messageID: SessionMessage.ID) => Effect.Effect<void, never, never>;
|
|
2684
|
+
/** Releases the blobs referenced at or after `seq`, for a revert. */
|
|
2685
|
+
export declare const releaseFrom: (db: DatabaseService, sessionID: SessionSchema.ID, seq: number) => Effect.Effect<void, never, never>;
|
|
2686
|
+
/** Releases every blob a deleted session referenced. */
|
|
2687
|
+
export declare const releaseSession: (db: DatabaseService, sessionID: SessionSchema.ID) => Effect.Effect<void, never, never>;
|