@opencode/core 2.0.32 → 2.1.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 +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +5 -5
- package/dist/bus.js +71 -71
- package/dist/chunks/{instance-enbw0gbw.js → shell-027ww35v.js} +48 -48
- package/dist/chunks/{instance-52w29975.js → shell-02vamycj.js} +5 -5
- package/dist/chunks/{instance-hy029169.js → shell-03p3wnad.js} +46 -46
- package/dist/chunks/{instance-m8qsgghe.js → shell-04s17g1v.js} +50 -50
- package/dist/chunks/{instance-vz3ca5nz.js → shell-08sd8799.js} +1 -1
- package/dist/chunks/{instance-b4gsa26k.js → shell-0dwthkwv.js} +17 -14
- package/dist/chunks/{instance-wmhjcbrh.js → shell-0jkbja5p.js} +21 -21
- package/dist/chunks/{instance-6njkejes.js → shell-0kt21gsk.js} +24 -24
- package/dist/chunks/{instance-q3krtzxs.js → shell-0rsgqgrk.js} +27 -27
- package/dist/chunks/{instance-0vbcp93d.js → shell-0vbcp93d.js} +2 -2
- package/dist/chunks/{instance-yx0rmv9r.js → shell-0w62qmxp.js} +6 -6
- package/dist/chunks/{instance-wjsh9s1s.js → shell-0x5xc4da.js} +32 -32
- package/dist/chunks/{instance-tx5jepxr.js → shell-0x7kry74.js} +83 -70
- package/dist/chunks/{instance-n86j2s3s.js → shell-0ytk1mmd.js} +11 -11
- package/dist/chunks/{instance-3cy08nae.js → shell-0ztvstyz.js} +7 -7
- package/dist/chunks/{instance-zy2kjt51.js → shell-16fye9k3.js} +43 -43
- package/dist/chunks/{instance-karq4mt3.js → shell-17drjap0.js} +32 -32
- package/dist/chunks/{instance-yp2x3t23.js → shell-1acjjqhc.js} +4 -4
- package/dist/chunks/{instance-wfmvav8k.js → shell-1cbagaqy.js} +8 -8
- package/dist/chunks/shell-1ep4rre3.js +42 -0
- package/dist/chunks/{instance-wjr9rjd7.js → shell-1ffvrpkg.js} +9 -9
- package/dist/chunks/{instance-kjzbdttd.js → shell-1j769d1c.js} +6 -6
- package/dist/chunks/{instance-0f5g2b67.js → shell-1ncsq4gc.js} +22 -22
- package/dist/chunks/{instance-m8p0bf8a.js → shell-1pd15nec.js} +4 -4
- package/dist/chunks/{instance-t5d9whg0.js → shell-2exgm5zs.js} +44 -44
- package/dist/chunks/{instance-eb2yw134.js → shell-2fxx0rz9.js} +17 -17
- package/dist/chunks/{instance-e5wkangg.js → shell-2g93jbb8.js} +32 -34
- package/dist/chunks/{instance-2k8khapm.js → shell-2k8khapm.js} +1 -1
- package/dist/chunks/{instance-ydjrys25.js → shell-2ndqr24s.js} +6 -6
- package/dist/chunks/{instance-j3ftvw7y.js → shell-2qhkdr5r.js} +6 -6
- package/dist/chunks/{instance-99kqc9z2.js → shell-2sq5abjd.js} +28 -29
- package/dist/chunks/{instance-4hxt5e23.js → shell-37kervd6.js} +21 -24
- package/dist/chunks/{instance-k74v33jx.js → shell-387dpq4s.js} +20 -20
- package/dist/chunks/{instance-p6p9qpe8.js → shell-3atk1qyf.js} +25 -25
- package/dist/chunks/{instance-3hepkmqq.js → shell-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-3hwn7j4h.js → shell-3hwn7j4h.js} +2 -2
- package/dist/chunks/{instance-3smtnn6g.js → shell-3smtnn6g.js} +1 -1
- package/dist/chunks/{instance-3tvqynh2.js → shell-3tvqynh2.js} +1 -1
- package/dist/chunks/{instance-gqtdsdt7.js → shell-3y377wv9.js} +4 -4
- package/dist/chunks/{instance-r730fk4b.js → shell-3ys3ran9.js} +19 -19
- package/dist/chunks/{instance-wndqf9wb.js → shell-3zqqw7j0.js} +8 -8
- package/dist/chunks/{instance-3zsf4n22.js → shell-3zsf4n22.js} +1 -1
- package/dist/chunks/{instance-q97qe3v1.js → shell-41gge36f.js} +24 -25
- package/dist/chunks/{instance-9mg0ha5m.js → shell-41wjcvt0.js} +3 -3
- package/dist/chunks/{instance-x20m8gm2.js → shell-432psgyy.js} +25 -25
- package/dist/chunks/{instance-v742aeg8.js → shell-4b0g6gv7.js} +30 -25
- package/dist/chunks/{instance-tdjzh3mn.js → shell-4d10bng8.js} +15 -15
- package/dist/chunks/{instance-dy6575tn.js → shell-4nejsby7.js} +16 -16
- package/dist/chunks/{instance-6vzwhms5.js → shell-50d2yybn.js} +33 -33
- package/dist/chunks/{instance-ba4zj86y.js → shell-51ajtkpf.js} +27 -27
- package/dist/chunks/{instance-54ma36ye.js → shell-54ma36ye.js} +1 -1
- package/dist/chunks/{instance-gvm6138t.js → shell-5b64kxs9.js} +1 -1
- package/dist/chunks/{instance-6btvgc07.js → shell-5jjsdkbk.js} +51 -34
- package/dist/chunks/{instance-5m9w47nd.js → shell-5m9w47nd.js} +1 -1
- package/dist/chunks/{instance-8dc76097.js → shell-5tt655ph.js} +26 -26
- package/dist/chunks/{instance-8j7djd22.js → shell-5v1f1gfq.js} +22 -22
- package/dist/chunks/{instance-2ysm8pgm.js → shell-5xghjtfa.js} +28 -28
- package/dist/chunks/{instance-94t3kz80.js → shell-603vct5e.js} +25 -25
- package/dist/chunks/{instance-9k44apjz.js → shell-6559rxr6.js} +11 -4
- package/dist/chunks/{instance-ypc4xgvm.js → shell-6775gw9z.js} +26 -26
- package/dist/chunks/{instance-dqxsqydv.js → shell-6827pfxn.js} +2 -2
- package/dist/chunks/{instance-dw46b8bx.js → shell-6c27xjax.js} +20 -20
- package/dist/chunks/{instance-fxp0jy99.js → shell-6eey2wfv.js} +33 -33
- package/dist/chunks/{instance-egzk2yjk.js → shell-6f33sypz.js} +85 -88
- package/dist/chunks/{instance-ryr25ayn.js → shell-6hh8tjw2.js} +4 -4
- package/dist/chunks/{instance-snpj5a6q.js → shell-6hj3adh9.js} +15 -15
- package/dist/chunks/{instance-jez41mts.js → shell-6p4g3g3k.js} +18 -18
- package/dist/chunks/{instance-m82ef0kx.js → shell-6rx6hnnq.js} +5 -5
- package/dist/chunks/{instance-k3e33c9f.js → shell-6srycd3a.js} +13 -13
- package/dist/chunks/{instance-6xb47vfp.js → shell-6xb47vfp.js} +1 -1
- package/dist/chunks/{instance-wh6zw745.js → shell-6yz0wx8n.js} +5 -5
- package/dist/chunks/{instance-5nrew705.js → shell-70y17xeh.js} +5 -5
- package/dist/chunks/{instance-nnq6jpzr.js → shell-75w6s6ma.js} +6 -6
- package/dist/chunks/{instance-775gj3j1.js → shell-775gj3j1.js} +2 -2
- package/dist/chunks/{instance-71svxegq.js → shell-79zqvytx.js} +63 -66
- package/dist/chunks/{instance-7bmhse3q.js → shell-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-91qna3x0.js → shell-7v6vae4w.js} +39 -21
- package/dist/chunks/{instance-g95hkc6v.js → shell-7vj6fy4k.js} +24 -24
- package/dist/chunks/{instance-9y6nqyzn.js → shell-7wdpyrwx.js} +1 -1
- package/dist/chunks/{instance-9nypp77e.js → shell-8471hwdy.js} +9 -9
- package/dist/chunks/{instance-84txncab.js → shell-84txncab.js} +1 -1
- package/dist/chunks/{instance-h82zpv65.js → shell-89e5dy4j.js} +9 -9
- package/dist/chunks/{instance-89znhe33.js → shell-89znhe33.js} +1 -1
- package/dist/chunks/{instance-agt7xfc2.js → shell-8bee7htz.js} +24 -24
- package/dist/chunks/shell-8dfnjpdr.js +112 -0
- package/dist/chunks/{instance-8m6m0r52.js → shell-8m6m0r52.js} +1 -1
- package/dist/chunks/shell-8mywswrd.js +86 -0
- package/dist/chunks/{instance-qzfs27nc.js → shell-8rnv749x.js} +32 -25
- package/dist/chunks/{instance-w92k2e0p.js → shell-8sze2n9a.js} +4 -4
- package/dist/chunks/{instance-76an7qnj.js → shell-8z3cvr3k.js} +18 -18
- package/dist/chunks/{instance-127b9nq3.js → shell-9bh5q6pj.js} +3 -3
- package/dist/chunks/{instance-gxvgt8t9.js → shell-9d6xe95g.js} +3 -3
- package/dist/chunks/{instance-5408hnnb.js → shell-9hm03b9h.js} +25 -25
- package/dist/chunks/{instance-4q4vnebt.js → shell-9jf0f2cs.js} +7 -7
- package/dist/chunks/shell-9jvjhjkm.js +130 -0
- package/dist/chunks/shell-9t7nqqf0.js +26 -0
- package/dist/chunks/{instance-9jgxs1bn.js → shell-9vbreq9z.js} +9 -9
- package/dist/chunks/{instance-nbm6td7p.js → shell-9vyc8vj1.js} +4 -4
- package/dist/chunks/{instance-5saajy9t.js → shell-9w64rzck.js} +13 -13
- package/dist/chunks/{instance-14q6b86s.js → shell-9zv65pgs.js} +11 -11
- package/dist/chunks/{instance-xnn7a7ef.js → shell-a36y64am.js} +14 -14
- package/dist/chunks/{instance-sz70a389.js → shell-a98yv52t.js} +20 -13
- package/dist/chunks/{instance-ckerv63d.js → shell-adehtbxa.js} +4 -4
- package/dist/chunks/{instance-8dp3pqp7.js → shell-ae0va0j1.js} +5 -5
- package/dist/chunks/{instance-jxa15a22.js → shell-af8g5zb6.js} +21 -21
- package/dist/chunks/{instance-9s4s5645.js → shell-ahe504bx.js} +20 -20
- package/dist/chunks/{instance-kjpxk16h.js → shell-ajpgmfw4.js} +16 -16
- package/dist/chunks/{instance-c4f3nvjn.js → shell-asecphd2.js} +13 -13
- package/dist/chunks/{instance-zr0n9bt7.js → shell-awefsnnk.js} +4 -4
- package/dist/chunks/{instance-mtpeagzc.js → shell-axe3mf62.js} +3 -3
- package/dist/chunks/{instance-47jkzegy.js → shell-b674v2dg.js} +5 -5
- package/dist/chunks/{instance-c9wbyant.js → shell-baqyxak2.js} +9 -9
- package/dist/chunks/{instance-jhx7q1qc.js → shell-bj7p7j85.js} +17 -17
- package/dist/chunks/{instance-9rd468vk.js → shell-c1bdvjkd.js} +30 -30
- package/dist/chunks/{instance-c1fqxshp.js → shell-c1fqxshp.js} +3 -3
- package/dist/chunks/{instance-xn7k1yjr.js → shell-c7fvvtsq.js} +26 -26
- package/dist/chunks/{instance-bcrfy1e8.js → shell-ccbzs5ke.js} +6 -6
- package/dist/chunks/{instance-s9w6dcwz.js → shell-cf6pg1xw.js} +5 -5
- package/dist/chunks/{instance-g6q9qykm.js → shell-cwa6csj7.js} +9 -9
- package/dist/chunks/{instance-xjvxx86v.js → shell-dajdhw2j.js} +6 -6
- package/dist/chunks/{instance-ye119z04.js → shell-dcspakzd.js} +51 -51
- package/dist/chunks/{instance-y56ehv6b.js → shell-depwzj9d.js} +9 -9
- package/dist/chunks/{instance-nfnvba5x.js → shell-dpkssma6.js} +12 -12
- package/dist/chunks/shell-dxj72tfx.js +18 -0
- package/dist/chunks/{instance-m7f5ga5x.js → shell-e3s3zy1r.js} +5 -5
- package/dist/chunks/{instance-j99dhamb.js → shell-e738kmdw.js} +6 -6
- package/dist/chunks/{instance-nsdb0f42.js → shell-eeggec7k.js} +11 -11
- package/dist/chunks/{instance-eej6y6fw.js → shell-eej6y6fw.js} +2 -2
- package/dist/chunks/{instance-ef5x83kb.js → shell-ef5x83kb.js} +1 -1
- package/dist/chunks/{instance-a2gdg3s5.js → shell-ehbg6y37.js} +18 -18
- package/dist/chunks/{instance-f4mxpp6t.js → shell-envzrdm3.js} +49 -49
- package/dist/chunks/{instance-pbh24ypk.js → shell-ey7dv0w4.js} +19 -19
- package/dist/chunks/shell-eyv86r6e.js +257 -0
- package/dist/chunks/{instance-h8wg6m6b.js → shell-f2mw6jyj.js} +11 -11
- package/dist/chunks/{instance-84caq58q.js → shell-f5852yed.js} +11 -11
- package/dist/chunks/{instance-6tnrngrh.js → shell-f6aytc7n.js} +10 -10
- package/dist/chunks/{instance-4p9mf0mj.js → shell-fbxzvvsv.js} +11 -11
- package/dist/chunks/shell-fcy631f0.js +62 -0
- package/dist/chunks/{instance-7q6nqg1g.js → shell-ffxxyzcb.js} +9 -9
- package/dist/chunks/{instance-0aedf7nq.js → shell-fmax1t4t.js} +21 -21
- package/dist/chunks/{instance-yw8t9dwe.js → shell-fqtvmpfq.js} +8 -8
- package/dist/chunks/{instance-h14remhy.js → shell-fvgqktbw.js} +23 -23
- package/dist/chunks/{instance-fww2ha2b.js → shell-fww2ha2b.js} +2 -2
- package/dist/chunks/{instance-1w2wqhfv.js → shell-fxaymqdw.js} +4 -4
- package/dist/chunks/{instance-d4n7pc7j.js → shell-fypxcyz2.js} +10 -10
- package/dist/chunks/{instance-v5qm4ejs.js → shell-g4qztyvf.js} +35 -35
- package/dist/chunks/{instance-74syfsk2.js → shell-g6bqk7eb.js} +11 -11
- package/dist/chunks/{instance-gd4qta3r.js → shell-gd4qta3r.js} +1 -1
- package/dist/chunks/{instance-r1d9yajz.js → shell-gmbs0yfc.js} +37 -37
- package/dist/chunks/{instance-8x4cb7ds.js → shell-gt7zzye3.js} +19 -19
- package/dist/chunks/{instance-2wamsapc.js → shell-h055mtc6.js} +27 -19
- package/dist/chunks/{instance-xt4njr3s.js → shell-h0bzvw2w.js} +17 -13
- package/dist/chunks/{instance-h6vf3j39.js → shell-h6vf3j39.js} +1 -1
- package/dist/chunks/{instance-sxzvkvgj.js → shell-h896pcm5.js} +6 -6
- package/dist/chunks/{instance-6h1sgzxr.js → shell-hdgwvq1e.js} +26 -26
- package/dist/chunks/{instance-7kf7gnm7.js → shell-hdn28k8z.js} +13 -13
- package/dist/chunks/{instance-hgz4x7wa.js → shell-hgz4x7wa.js} +1 -1
- package/dist/chunks/{instance-cqpz2z25.js → shell-hj7zb2g9.js} +10 -10
- package/dist/chunks/{instance-ec8g0tcf.js → shell-htx26fav.js} +29 -29
- package/dist/chunks/{instance-pwjs67dv.js → shell-hvp5ag27.js} +6 -6
- package/dist/chunks/{instance-hz56gd46.js → shell-hzdxw2qq.js} +15 -15
- package/dist/chunks/{instance-edhgwctf.js → shell-j148atrz.js} +5 -5
- package/dist/chunks/{instance-n240m50y.js → shell-j9abz2tj.js} +19 -19
- package/dist/chunks/{instance-2j1fd8ns.js → shell-jaqs594m.js} +16 -16
- package/dist/chunks/{instance-gea60fq5.js → shell-jfh8dh4w.js} +26 -26
- package/dist/chunks/{instance-n886b0hh.js → shell-jgp4qpwz.js} +15 -15
- package/dist/chunks/{instance-7c25kt5f.js → shell-jmb2cr8q.js} +14 -14
- package/dist/chunks/{instance-bwe2bky2.js → shell-jmxxwznn.js} +4 -4
- package/dist/chunks/{instance-be7qvw84.js → shell-jn0tk1mz.js} +8 -8
- package/dist/chunks/{instance-spnt6386.js → shell-jp35yjqz.js} +32 -32
- package/dist/chunks/{instance-9ar4pza7.js → shell-jtjk5p9j.js} +11 -11
- package/dist/chunks/{instance-z8epvsg6.js → shell-k0ev5b6x.js} +2 -2
- package/dist/chunks/{instance-s1kmd63q.js → shell-k51kf5tx.js} +19 -19
- package/dist/chunks/{instance-4y7j986s.js → shell-k7myrtme.js} +9 -9
- package/dist/chunks/{instance-ft79q47f.js → shell-kbxy4n3g.js} +2 -2
- package/dist/chunks/{instance-zdhmwdxf.js → shell-kcrn19zp.js} +13 -13
- package/dist/chunks/{instance-qxbyfn4m.js → shell-kcz1zv3y.js} +20 -20
- package/dist/chunks/{instance-c01nkdt4.js → shell-kfmczrqx.js} +16 -16
- package/dist/chunks/{instance-vqtt4fqa.js → shell-kg4680zm.js} +13 -13
- package/dist/chunks/{instance-g2wa2e5b.js → shell-kgcb372b.js} +11 -11
- package/dist/chunks/{instance-kwb1v3vj.js → shell-kwb1v3vj.js} +1 -1
- package/dist/chunks/{instance-azaahc9x.js → shell-kxnmaf3s.js} +18 -18
- package/dist/chunks/{instance-00hj6bjn.js → shell-kzy2940e.js} +33 -33
- package/dist/chunks/{instance-tfzngn12.js → shell-m0r31qfn.js} +4 -4
- package/dist/chunks/{instance-m9w0rfyh.js → shell-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-9b8s04gb.js → shell-maneqgxr.js} +34 -31
- package/dist/chunks/{instance-maspj1v3.js → shell-maspj1v3.js} +1 -1
- package/dist/chunks/{instance-s1xtywav.js → shell-mhpexy54.js} +17 -17
- package/dist/chunks/{instance-sz15zhhw.js → shell-mqqhst8y.js} +4 -4
- package/dist/chunks/{instance-s3v8c45g.js → shell-mwpm31k7.js} +49 -48
- package/dist/chunks/{instance-vcnzat6y.js → shell-n2qdned2.js} +16 -16
- package/dist/chunks/{instance-j4d2njm3.js → shell-nb27xjmq.js} +14 -14
- package/dist/chunks/{instance-h7s7r6s9.js → shell-nz56sr1f.js} +18 -19
- package/dist/chunks/{instance-1e477vzc.js → shell-p20se939.js} +8 -8
- package/dist/chunks/{instance-jxa04fe5.js → shell-pdf17x7p.js} +14 -14
- package/dist/chunks/{instance-wdgmgtm0.js → shell-pg6gmj9m.js} +17 -14
- package/dist/chunks/{instance-y7nndgyc.js → shell-phz50fbd.js} +9 -9
- package/dist/chunks/{instance-pjvnvgmy.js → shell-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instance-pknna89w.js → shell-pknna89w.js} +1 -1
- package/dist/chunks/{instance-fjz5gha3.js → shell-pnzpyq4k.js} +124 -102
- package/dist/chunks/{instance-y0r048qb.js → shell-pw4zabmd.js} +170 -169
- package/dist/chunks/{instance-3mksxvab.js → shell-q41jq0qr.js} +11 -11
- package/dist/chunks/{instance-g6vxq4t7.js → shell-qajney5x.js} +12 -12
- package/dist/chunks/{instance-kp7zea7r.js → shell-qhat5nnc.js} +32 -32
- package/dist/chunks/{instance-qnc92qwc.js → shell-qnc92qwc.js} +1 -1
- package/dist/chunks/{instance-qsdy395h.js → shell-qsdy395h.js} +1 -1
- package/dist/chunks/{instance-a2pz59r9.js → shell-qv079c4h.js} +37 -37
- package/dist/chunks/{instance-sxcaecc0.js → shell-r2z489rp.js} +3 -3
- package/dist/chunks/{instance-50a72dh7.js → shell-r5ndtmnm.js} +1 -1
- package/dist/chunks/{instance-rdw6cm16.js → shell-rdw6cm16.js} +1 -1
- package/dist/chunks/{instance-rert0e01.js → shell-rert0e01.js} +2 -2
- package/dist/chunks/{instance-rj3eygr5.js → shell-rj3eygr5.js} +2 -2
- package/dist/chunks/{instance-vd5a229f.js → shell-rnfredjj.js} +24 -22
- package/dist/chunks/{instance-8mprknbj.js → shell-rw4jj2rk.js} +32 -31
- package/dist/chunks/{instance-ksbyxnj1.js → shell-rxxx7r4k.js} +28 -25
- package/dist/chunks/{instance-1kn978n9.js → shell-s389npg2.js} +96 -162
- package/dist/chunks/{instance-02nrjc1r.js → shell-s8d7rejh.js} +8 -8
- package/dist/chunks/{instance-sa8ekw3f.js → shell-sa8ekw3f.js} +2 -2
- package/dist/chunks/{instance-a7p9m6vg.js → shell-sh0qrkbh.js} +19 -19
- package/dist/chunks/{instance-asvc535p.js → shell-sjtzq83v.js} +11 -11
- package/dist/chunks/{instance-bcmzxatv.js → shell-srmwk7dt.js} +5 -5
- package/dist/chunks/{instance-syv4x271.js → shell-syv4x271.js} +1 -1
- package/dist/chunks/{instance-tazgh4e4.js → shell-tazgh4e4.js} +1 -1
- package/dist/chunks/{instance-vfjhn2wd.js → shell-tb1cafh6.js} +4 -4
- package/dist/chunks/{instance-tdstcens.js → shell-tdstcens.js} +1 -1
- package/dist/chunks/{instance-tm0kqsz3.js → shell-tm0kqsz3.js} +1 -1
- package/dist/chunks/{instance-1ajx6rf5.js → shell-tpw6cwsb.js} +8 -8
- package/dist/chunks/{instance-s4bj6v34.js → shell-tqr4vm00.js} +11 -11
- package/dist/chunks/{instance-c0jw7tng.js → shell-trg827xp.js} +9 -7
- package/dist/chunks/shell-tt8gc4fv.js +59 -0
- package/dist/chunks/{instance-v0es1rhs.js → shell-tx0gtb9m.js} +11 -11
- package/dist/chunks/{instance-tyytaxap.js → shell-tyytaxap.js} +1 -1
- package/dist/chunks/{instance-n7jnsjte.js → shell-v1bmpj3w.js} +27 -27
- package/dist/chunks/{instance-prvmgnqy.js → shell-v6abvp0h.js} +5 -5
- package/dist/chunks/{instance-ngdgjn5a.js → shell-v715hp7c.js} +15 -15
- package/dist/chunks/{instance-v7p4zvkq.js → shell-v7p4zvkq.js} +2 -2
- package/dist/chunks/{instance-0x6zefqk.js → shell-vdaaq34n.js} +4 -4
- package/dist/chunks/{instance-echrm7fx.js → shell-vdwzhxqd.js} +7 -7
- package/dist/chunks/{instance-veqvce7d.js → shell-veqvce7d.js} +1 -1
- package/dist/chunks/{instance-8q7cp091.js → shell-vk2t4k53.js} +12 -12
- package/dist/chunks/{instance-npg16c9q.js → shell-vm9wfeep.js} +46 -28
- package/dist/chunks/{instance-79aanr6n.js → shell-vywzj4qb.js} +12 -12
- package/dist/chunks/{instance-vzs5sf6e.js → shell-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instance-v4640cdb.js → shell-w2swb6sv.js} +326 -322
- package/dist/chunks/{instance-w3wsvvr9.js → shell-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-5zbw8dq9.js → shell-w921m42b.js} +24 -24
- package/dist/chunks/{instance-wd87259q.js → shell-wd87259q.js} +1 -1
- package/dist/chunks/{instance-rq74kqrf.js → shell-wfztk8xg.js} +8 -8
- package/dist/chunks/{instance-a450qmf9.js → shell-wjjv5c56.js} +9 -9
- package/dist/chunks/{instance-mn1n5f3s.js → shell-wmxpb99x.js} +3 -3
- package/dist/chunks/{instance-hzzj1pg2.js → shell-wqfheh0m.js} +20 -20
- package/dist/chunks/{instance-bg9pb3hs.js → shell-wrmbd4ct.js} +8 -8
- package/dist/chunks/{instance-f60ec8ph.js → shell-wx13yw6b.js} +9 -9
- package/dist/chunks/{instance-ypne3kk7.js → shell-wyepen03.js} +16 -16
- package/dist/chunks/{instance-hrtybn11.js → shell-x3p3s57s.js} +1 -1
- package/dist/chunks/{instance-xzyvagpz.js → shell-x95qaydz.js} +26 -26
- package/dist/chunks/{instance-pbjcynf2.js → shell-xayeaa42.js} +11 -11
- package/dist/chunks/{instance-57b9ws8p.js → shell-xfkkasph.js} +7 -7
- package/dist/chunks/{instance-saq4k3ef.js → shell-xg9m98z8.js} +34 -34
- package/dist/chunks/{instance-rr384mgp.js → shell-xkmpyy1n.js} +9 -9
- package/dist/chunks/{instance-6pn2td3v.js → shell-xr38e3s7.js} +17 -17
- package/dist/chunks/{instance-xvr6z0ms.js → shell-xv32mmfd.js} +19 -19
- package/dist/chunks/{instance-nj7hqrdc.js → shell-xwkencv2.js} +12 -12
- package/dist/chunks/{instance-mee8ct06.js → shell-y0st3mmr.js} +2 -2
- package/dist/chunks/{instance-y1fvbwt7.js → shell-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instance-dpkg50ah.js → shell-y71avatq.js} +4 -4
- package/dist/chunks/{instance-j5s48rss.js → shell-y8cyz0t7.js} +11 -11
- package/dist/chunks/{instance-pwws2hp2.js → shell-yn5t1h2v.js} +10 -10
- package/dist/chunks/{instance-s7ecmt2f.js → shell-ypg4226y.js} +23 -18
- package/dist/chunks/shell-ypxp1xp8.js +97 -0
- package/dist/chunks/{instance-a0r8rfmp.js → shell-yzkfk5qj.js} +9 -9
- package/dist/chunks/{instance-z0bkrqjs.js → shell-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instance-3fc6dm20.js → shell-z18fegx4.js} +4 -4
- package/dist/chunks/{instance-2vs2nh1n.js → shell-zav06jzw.js} +4 -4
- package/dist/chunks/{instance-hdb1y56n.js → shell-zc34mber.js} +38 -38
- package/dist/chunks/{instance-0fhevdjt.js → shell-zjtrsxny.js} +5 -5
- package/dist/chunks/{instance-s5jrf6ry.js → shell-zk3946p4.js} +11 -11
- package/dist/chunks/{instance-zr2ceqn5.js → shell-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instance-b7n2911q.js → shell-ztk94t9n.js} +22 -22
- package/dist/chunks/{instance-zxq2ej10.js → shell-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- 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 +81 -81
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -207
- package/dist/config/plugin/compaction.js +155 -154
- package/dist/config/plugin/compatibility.js +135 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +10 -0
- package/dist/config/plugin/skill.js +138 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- 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.gen.js +51 -51
- package/dist/database/migration.js +53 -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 +86 -83
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -366
- 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 +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- 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 +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +219 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +106 -106
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +108 -107
- package/dist/git.js +10 -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 +93 -93
- 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.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -358
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -355
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +101 -101
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +10 -0
- package/dist/model.js +100 -100
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +90 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +3 -3
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +123 -123
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- 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 +6 -6
- package/dist/plugin.js +221 -220
- package/dist/project/schema.js +10 -10
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -214
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +157 -156
- package/dist/session/history.js +19 -13
- package/dist/session/inbox.js +95 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +89 -86
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +14 -0
- package/dist/session/revert.js +96 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -222
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -4
- package/dist/session/runner/step.js +126 -125
- package/dist/session/runner/to-llm-message.js +14 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +202 -201
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +215 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -207
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +111 -111
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -212
- package/dist/tool/plugin/todo.js +147 -0
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/account/sql.d.ts +3 -3
- package/dist/types/codemode/tool.d.ts +12 -12
- package/dist/types/config/discovery.d.ts +2 -2
- package/dist/types/config/plugin/entry-observer.d.ts +1 -1
- package/dist/types/config/plugin/instruction.d.ts +1 -1
- package/dist/types/config/plugin/skill-scan.d.ts +5 -0
- package/dist/types/config.d.ts +1 -1
- package/dist/types/credential/sql.d.ts +1 -4
- package/dist/types/credential.d.ts +0 -3
- package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +1 -1
- package/dist/types/database/migration/20260805200742_import_legacy_credentials.d.ts +1 -1
- package/dist/types/database/path.d.ts +16 -16
- package/dist/types/database/sqlite.bun.d.ts +1 -1
- package/dist/types/database/sqlite.node.d.ts +1 -1
- package/dist/types/database/sqlite.workerd.d.ts +1 -1
- package/dist/types/effect/websocket-constructor.d.ts +2 -1
- package/dist/types/environment/files.d.ts +1 -1
- package/dist/types/event/sql.d.ts +2 -2
- package/dist/types/file-mutation.d.ts +4 -3
- package/dist/types/filesystem.d.ts +1 -1
- package/dist/types/form.d.ts +55 -55
- package/dist/types/github-copilot/chat/openai-compatible-chat-language-model.d.ts +27 -27
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +80 -80
- package/dist/types/github-copilot/responses/tool/file-search.d.ts +1 -1
- package/dist/types/github-copilot/responses/tool/image-generation.d.ts +5 -5
- package/dist/types/github-copilot/responses/tool/web-search-preview.d.ts +1 -1
- package/dist/types/github-copilot/responses/tool/web-search.d.ts +1 -1
- package/dist/types/image/photon-wasm.workerd.d.ts +1 -1
- package/dist/types/image/photon.d.ts +5 -5
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/integration.d.ts +257 -257
- package/dist/types/kv/sql.d.ts +1 -1
- package/dist/types/managed-policy.d.ts +2 -2
- package/dist/types/mcp/client.d.ts +74 -74
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +1 -1
- package/dist/types/model-retry.d.ts +14 -0
- package/dist/types/model.d.ts +76 -73
- package/dist/types/permission/saved.d.ts +26 -1
- package/dist/types/permission/sql.d.ts +1 -1
- package/dist/types/permission.d.ts +1 -1
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -1
- package/dist/types/persistent-pty/binary.node.d.ts +1 -1
- package/dist/types/plugin/command.d.ts +1 -1
- package/dist/types/plugin/host.d.ts +2 -2
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/module.d.ts +7 -7
- 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/digitalocean.d.ts +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +2 -2
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
- package/dist/types/plugin/provider/local.d.ts +2 -2
- package/dist/types/plugin/provider/ollama.d.ts +2 -2
- package/dist/types/plugin/provider/opencode.d.ts +1 -1
- package/dist/types/plugin/provider/poe.d.ts +1 -1
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/provider/vllm.d.ts +2 -2
- package/dist/types/plugin/supervisor.d.ts +2 -2
- package/dist/types/plugin/websearch/exa.d.ts +1 -1
- package/dist/types/plugin/websearch/firecrawl.d.ts +1 -1
- package/dist/types/plugin/websearch/index.d.ts +1 -1
- package/dist/types/plugin/websearch/parallel.d.ts +1 -1
- package/dist/types/plugin/websearch/tavily.d.ts +1 -1
- package/dist/types/plugin/websearch/tinyfish.d.ts +1 -1
- package/dist/types/project/sql.d.ts +75 -75
- package/dist/types/provider.d.ts +3 -1
- package/dist/types/session/command.d.ts +1 -1
- package/dist/types/session/compaction.d.ts +2 -2
- package/dist/types/session/diff.d.ts +1 -1
- package/dist/types/session/error.d.ts +4 -0
- package/dist/types/session/execution/restart.d.ts +1 -1
- package/dist/types/session/execution.d.ts +2 -2
- package/dist/types/session/generate.d.ts +1 -1
- package/dist/types/session/history.d.ts +389 -1242
- package/dist/types/session/inbox.d.ts +110 -110
- package/dist/types/session/instruction-entry.d.ts +2 -2
- package/dist/types/session/instruction-state.d.ts +7 -3
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/prompt.d.ts +7 -7
- package/dist/types/session/recent-text.d.ts +11 -0
- package/dist/types/session/revert.d.ts +1 -1
- package/dist/types/session/runner/index.d.ts +42 -46
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +86 -96
- package/dist/types/session/session.d.ts +29 -27
- package/dist/types/session/skill.d.ts +1 -1
- package/dist/types/session/sql.d.ts +139 -139
- package/dist/types/session/stats.d.ts +1 -1
- package/dist/types/session/store.d.ts +8 -5
- package/dist/types/session/subagent-completion.d.ts +1 -1
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +31 -81
- package/dist/types/session.d.ts +24 -11
- package/dist/types/shell/result.d.ts +14 -14
- package/dist/types/skill.d.ts +1 -1
- package/dist/types/state.d.ts +1 -1
- package/dist/types/tool/plugin/read.d.ts +2 -2
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/skill.d.ts +1 -1
- package/dist/types/tool/plugin/todo.d.ts +29 -0
- package/dist/types/tool/plugin/webfetch.d.ts +1 -1
- package/dist/types/tool/read-filesystem.d.ts +4 -4
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/util/error.d.ts +36 -32
- package/dist/types/v1/config/agent.d.ts +2 -2
- package/dist/types/v1/config/error.d.ts +51 -46
- package/dist/types/v1/config/migrate.d.ts +14 -14
- package/dist/types/v1/config/permission.d.ts +3 -3
- package/dist/types/wellknown.d.ts +4 -6
- package/dist/types/workspace/sql.d.ts +1 -1
- package/dist/types/worktree/git.d.ts +3 -3
- package/dist/types/worktree/sql.d.ts +1 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +10 -10
- package/dist/chunks/instance-0e3j8fc0.js +0 -257
- package/dist/chunks/instance-3x6psag0.js +0 -73
- package/dist/chunks/instance-4j4tgtq5.js +0 -69
- package/dist/chunks/instance-6hkj46ta.js +0 -26
- package/dist/chunks/instance-em3k6scw.js +0 -95
- package/dist/chunks/instance-rap9a73h.js +0 -18
- package/dist/chunks/instance-zyk1yjk8.js +0 -80
- package/dist/session/provider-context.js +0 -20
- package/dist/types/session/provider-context.d.ts +0 -46
- /package/dist/chunks/{instance-0qkdqm5v.js → shell-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → shell-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → shell-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → shell-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-1kg9ymc8.js → shell-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instance-24dcb14g.js → shell-24dcb14g.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → shell-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2axfhc9x.js → shell-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instance-2bv980vf.js → shell-2bv980vf.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → shell-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → shell-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3asan66x.js → shell-3asan66x.js} +0 -0
- /package/dist/chunks/{instance-3t0ybcrp.js → shell-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → shell-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-3wcehsnq.js → shell-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → shell-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → shell-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4vcrnpx2.js → shell-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instance-4y7fprxs.js → shell-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → shell-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-550bvhaj.js → shell-550bvhaj.js} +0 -0
- /package/dist/chunks/{instance-5qd3pb7m.js → shell-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → shell-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-6q2bdcd1.js → shell-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → shell-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → shell-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → shell-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-84wd9syh.js → shell-84wd9syh.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → shell-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → shell-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-8wj87zfr.js → shell-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → shell-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → shell-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-a6k6eb26.js → shell-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instance-af5trqkr.js → shell-af5trqkr.js} +0 -0
- /package/dist/chunks/{instance-afrmfg78.js → shell-afrmfg78.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → shell-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → shell-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → shell-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → shell-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → shell-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → shell-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → shell-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → shell-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-dajrwvna.js → shell-dajrwvna.js} +0 -0
- /package/dist/chunks/{instance-dap0rakb.js → shell-dap0rakb.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → shell-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → shell-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → shell-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-e73j6tqm.js → shell-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → shell-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-eh3zwz77.js → shell-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → shell-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → shell-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → shell-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → shell-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → shell-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-g4wezp1m.js → shell-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → shell-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → shell-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → shell-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hcxmzztb.js → shell-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → shell-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → shell-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-j5zkgpj8.js → shell-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instance-jjkms2e6.js → shell-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → shell-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → shell-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jze0r7bz.js → shell-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → shell-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-m18g726c.js → shell-m18g726c.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → shell-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → shell-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → shell-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → shell-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → shell-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-pkyv6v7h.js → shell-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{instance-pyv0edze.js → shell-pyv0edze.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → shell-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → shell-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qaymkmh1.js → shell-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → shell-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → shell-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qg3g05ea.js → shell-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → shell-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → shell-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → shell-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → shell-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-ve7vex1e.js → shell-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → shell-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wc3fc9cn.js → shell-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → shell-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wjj7prxr.js → shell-wjj7prxr.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → shell-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x0ckcb58.js → shell-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instance-x61499pn.js → shell-x61499pn.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → shell-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → shell-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → shell-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-ym463w8f.js → shell-ym463w8f.js} +0 -0
- /package/dist/chunks/{instance-z5v4ffb3.js → shell-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → shell-z9919s4g.js} +0 -0
|
@@ -1,188 +1,131 @@
|
|
|
1
|
+
import { Message } from "@opencode/ai";
|
|
1
2
|
import { Effect, Schema } from "effect";
|
|
3
|
+
import type { Model } from "@opencode/schema/model";
|
|
2
4
|
import { MessageDecodeError } from "./error.js";
|
|
5
|
+
import { SessionMessage } from "./message.js";
|
|
3
6
|
import { Instructions } from "../instructions/index.js";
|
|
4
|
-
import { SessionProviderContext } from "./provider-context.js";
|
|
5
7
|
import { SessionMessageTable } from "./sql.js";
|
|
6
8
|
/**
|
|
7
9
|
* Which completed compactions bound a history read. Local summaries always do. Native
|
|
8
10
|
* windows do for model-neutral readers (`latest`), never for the original transcript
|
|
9
|
-
* (`local`), and only when the target model can replay them
|
|
11
|
+
* (`local`), and only when the target model can replay them.
|
|
10
12
|
*/
|
|
11
|
-
export type Boundary = "latest" | "local" |
|
|
13
|
+
export type Boundary = "latest" | "local" | Model.Ref;
|
|
14
|
+
/** A completed provider compaction, which replays `native.messages` instead of a summary. */
|
|
15
|
+
export declare const isNativeCompaction: (message: SessionMessage.Info) => message is SessionMessage.CompactionCompleted & {
|
|
16
|
+
readonly native: {
|
|
17
|
+
readonly messages: unknown;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
/** A native compaction's window: canonical AI messages, stored as JSON. */
|
|
21
|
+
export declare const NativeWindow: Schema.toCodecJson<Schema.$Array<typeof Message>>;
|
|
12
22
|
export declare const latestCompaction: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
13
23
|
$client: import("effect/sql/SqlClient").SqlClient;
|
|
14
|
-
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<{
|
|
24
|
+
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary, before?: number | undefined) => Effect.Effect<{
|
|
15
25
|
seq: number;
|
|
16
26
|
} | undefined, never, never>;
|
|
17
|
-
export declare const
|
|
27
|
+
export declare const decodeMessageRowSync: (row: typeof SessionMessageTable.$inferSelect) => {
|
|
18
28
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
19
|
-
readonly
|
|
29
|
+
readonly metadata?: {
|
|
30
|
+
readonly [x: string]: unknown;
|
|
31
|
+
} | undefined;
|
|
20
32
|
readonly time: {
|
|
21
33
|
readonly created: import("effect/DateTime").Utc;
|
|
22
34
|
};
|
|
23
|
-
readonly
|
|
35
|
+
readonly type: "compaction";
|
|
36
|
+
readonly status: "running";
|
|
37
|
+
readonly reason: "auto" | "manual";
|
|
38
|
+
readonly summary: string;
|
|
39
|
+
} | {
|
|
40
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
24
41
|
readonly metadata?: {
|
|
25
42
|
readonly [x: string]: unknown;
|
|
26
43
|
} | undefined;
|
|
27
|
-
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
28
|
-
} | {
|
|
29
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
30
|
-
readonly type: "model-switched";
|
|
31
44
|
readonly time: {
|
|
32
45
|
readonly created: import("effect/DateTime").Utc;
|
|
33
46
|
};
|
|
34
|
-
readonly
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
readonly
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
readonly
|
|
47
|
+
readonly type: "compaction";
|
|
48
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
49
|
+
readonly tokens?: {
|
|
50
|
+
readonly input: number;
|
|
51
|
+
readonly output: number;
|
|
52
|
+
readonly reasoning: number;
|
|
53
|
+
readonly cache: {
|
|
54
|
+
readonly read: number;
|
|
55
|
+
readonly write: number;
|
|
56
|
+
};
|
|
41
57
|
} | undefined;
|
|
42
|
-
readonly
|
|
58
|
+
readonly status: "completed";
|
|
59
|
+
readonly reason: "auto" | "manual";
|
|
60
|
+
readonly model?: {
|
|
43
61
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
44
62
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
45
63
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
46
64
|
} | undefined;
|
|
47
|
-
|
|
48
|
-
readonly location: {
|
|
49
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
50
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
51
|
-
};
|
|
52
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
53
|
-
readonly type: "location-switched";
|
|
54
|
-
readonly time: {
|
|
55
|
-
readonly created: import("effect/DateTime").Utc;
|
|
56
|
-
};
|
|
57
|
-
readonly metadata?: {
|
|
65
|
+
readonly native?: {
|
|
58
66
|
readonly [x: string]: unknown;
|
|
59
67
|
} | undefined;
|
|
60
|
-
readonly
|
|
61
|
-
readonly previous?: {
|
|
62
|
-
readonly location: {
|
|
63
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
64
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
65
|
-
};
|
|
66
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
67
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
68
|
-
} | undefined;
|
|
69
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
68
|
+
readonly summary: string;
|
|
70
69
|
} | {
|
|
71
70
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
72
|
-
readonly type: "user";
|
|
73
|
-
readonly time: {
|
|
74
|
-
readonly created: import("effect/DateTime").Utc;
|
|
75
|
-
};
|
|
76
|
-
readonly text: string;
|
|
77
71
|
readonly metadata?: {
|
|
78
72
|
readonly [x: string]: unknown;
|
|
79
73
|
} | undefined;
|
|
80
|
-
readonly files?: readonly {
|
|
81
|
-
readonly data: string;
|
|
82
|
-
readonly source: {
|
|
83
|
-
readonly type: "inline";
|
|
84
|
-
} | {
|
|
85
|
-
readonly type: "uri";
|
|
86
|
-
readonly uri: string;
|
|
87
|
-
};
|
|
88
|
-
readonly mime: string;
|
|
89
|
-
readonly name?: string | undefined;
|
|
90
|
-
readonly description?: string | undefined;
|
|
91
|
-
readonly mention?: {
|
|
92
|
-
readonly start: number;
|
|
93
|
-
readonly end: number;
|
|
94
|
-
readonly text: string;
|
|
95
|
-
} | undefined;
|
|
96
|
-
}[] | undefined;
|
|
97
|
-
readonly agents?: readonly {
|
|
98
|
-
readonly name: string;
|
|
99
|
-
readonly mention?: {
|
|
100
|
-
readonly start: number;
|
|
101
|
-
readonly end: number;
|
|
102
|
-
readonly text: string;
|
|
103
|
-
} | undefined;
|
|
104
|
-
}[] | undefined;
|
|
105
|
-
readonly skills?: readonly {
|
|
106
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
107
|
-
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
108
|
-
readonly text?: string | undefined;
|
|
109
|
-
readonly mention?: {
|
|
110
|
-
readonly start: number;
|
|
111
|
-
readonly end: number;
|
|
112
|
-
readonly text: string;
|
|
113
|
-
} | undefined;
|
|
114
|
-
}[] | undefined;
|
|
115
|
-
} | {
|
|
116
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
117
|
-
readonly type: "synthetic";
|
|
118
74
|
readonly time: {
|
|
119
75
|
readonly created: import("effect/DateTime").Utc;
|
|
120
76
|
};
|
|
121
|
-
readonly
|
|
122
|
-
readonly
|
|
123
|
-
readonly
|
|
124
|
-
readonly
|
|
77
|
+
readonly type: "compaction";
|
|
78
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
79
|
+
readonly tokens?: {
|
|
80
|
+
readonly input: number;
|
|
81
|
+
readonly output: number;
|
|
82
|
+
readonly reasoning: number;
|
|
83
|
+
readonly cache: {
|
|
84
|
+
readonly read: number;
|
|
85
|
+
readonly write: number;
|
|
86
|
+
};
|
|
125
87
|
} | undefined;
|
|
88
|
+
readonly status: "failed";
|
|
89
|
+
readonly reason: "auto" | "manual";
|
|
90
|
+
readonly error: {
|
|
91
|
+
readonly type: string;
|
|
92
|
+
readonly message: string;
|
|
93
|
+
readonly status?: number | undefined;
|
|
94
|
+
readonly response?: {
|
|
95
|
+
readonly body: string;
|
|
96
|
+
} | undefined;
|
|
97
|
+
};
|
|
126
98
|
} | {
|
|
127
99
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
128
|
-
readonly type: "system";
|
|
129
|
-
readonly time: {
|
|
130
|
-
readonly created: import("effect/DateTime").Utc;
|
|
131
|
-
};
|
|
132
|
-
readonly text: string;
|
|
133
|
-
readonly description?: string | undefined;
|
|
134
100
|
readonly metadata?: {
|
|
135
101
|
readonly [x: string]: unknown;
|
|
136
102
|
} | undefined;
|
|
137
|
-
} | {
|
|
138
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
139
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
140
|
-
readonly type: "skill";
|
|
141
103
|
readonly time: {
|
|
142
104
|
readonly created: import("effect/DateTime").Utc;
|
|
143
105
|
};
|
|
144
|
-
readonly
|
|
145
|
-
readonly
|
|
146
|
-
readonly
|
|
147
|
-
readonly [x: string]: unknown;
|
|
148
|
-
} | undefined;
|
|
106
|
+
readonly type: "agent-switched";
|
|
107
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
108
|
+
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
149
109
|
} | {
|
|
150
110
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
151
|
-
readonly type: "shell";
|
|
152
|
-
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
153
|
-
readonly command: string;
|
|
154
|
-
readonly time: {
|
|
155
|
-
readonly created: import("effect/DateTime").Utc;
|
|
156
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
157
|
-
};
|
|
158
|
-
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
159
111
|
readonly metadata?: {
|
|
160
112
|
readonly [x: string]: unknown;
|
|
161
113
|
} | undefined;
|
|
162
|
-
readonly output?: {
|
|
163
|
-
readonly output: string;
|
|
164
|
-
readonly cursor: number;
|
|
165
|
-
readonly size: number;
|
|
166
|
-
readonly truncated: boolean;
|
|
167
|
-
} | undefined;
|
|
168
|
-
readonly exit?: number | undefined;
|
|
169
|
-
} | {
|
|
170
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
171
114
|
readonly type: "assistant";
|
|
172
|
-
readonly
|
|
173
|
-
readonly created: import("effect/DateTime").Utc;
|
|
174
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
175
|
-
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
176
|
-
};
|
|
115
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
177
116
|
readonly model: {
|
|
178
117
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
179
118
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
180
119
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
181
120
|
};
|
|
182
121
|
readonly content: readonly ({
|
|
183
|
-
readonly name: string;
|
|
184
|
-
readonly id: string;
|
|
185
122
|
readonly type: "tool";
|
|
123
|
+
readonly id: string;
|
|
124
|
+
readonly name: string;
|
|
125
|
+
readonly executed?: boolean | undefined;
|
|
126
|
+
readonly native?: {
|
|
127
|
+
readonly [x: string]: unknown;
|
|
128
|
+
} | undefined;
|
|
186
129
|
readonly state: {
|
|
187
130
|
readonly status: "streaming";
|
|
188
131
|
readonly input: string;
|
|
@@ -232,9 +175,6 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
232
175
|
readonly body: string;
|
|
233
176
|
} | undefined;
|
|
234
177
|
};
|
|
235
|
-
readonly metadata?: {
|
|
236
|
-
readonly [x: string]: Schema.Json;
|
|
237
|
-
} | undefined;
|
|
238
178
|
readonly content?: readonly [{
|
|
239
179
|
readonly type: "text";
|
|
240
180
|
readonly text: string;
|
|
@@ -252,29 +192,25 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
252
192
|
readonly mime: string;
|
|
253
193
|
readonly name?: string | undefined;
|
|
254
194
|
})[]] | undefined;
|
|
195
|
+
readonly metadata?: {
|
|
196
|
+
readonly [x: string]: Schema.Json;
|
|
197
|
+
} | undefined;
|
|
255
198
|
};
|
|
256
199
|
readonly time: {
|
|
257
200
|
readonly created: import("effect/DateTime").Utc;
|
|
258
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
259
201
|
readonly ran?: import("effect/DateTime").Utc | undefined;
|
|
202
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
260
203
|
};
|
|
261
|
-
readonly executed?: boolean | undefined;
|
|
262
|
-
readonly providerState?: {
|
|
263
|
-
readonly [x: string]: unknown;
|
|
264
|
-
} | undefined;
|
|
265
|
-
readonly providerResultState?: {
|
|
266
|
-
readonly [x: string]: unknown;
|
|
267
|
-
} | undefined;
|
|
268
204
|
} | {
|
|
269
205
|
readonly type: "text";
|
|
270
206
|
readonly text: string;
|
|
271
|
-
readonly
|
|
207
|
+
readonly native?: {
|
|
272
208
|
readonly [x: string]: unknown;
|
|
273
209
|
} | undefined;
|
|
274
210
|
} | {
|
|
275
211
|
readonly type: "reasoning";
|
|
276
212
|
readonly text: string;
|
|
277
|
-
readonly
|
|
213
|
+
readonly native?: {
|
|
278
214
|
readonly [x: string]: unknown;
|
|
279
215
|
} | undefined;
|
|
280
216
|
readonly time?: {
|
|
@@ -282,29 +218,17 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
282
218
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
283
219
|
} | undefined;
|
|
284
220
|
})[];
|
|
285
|
-
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
286
|
-
readonly metadata?: {
|
|
287
|
-
readonly [x: string]: unknown;
|
|
288
|
-
} | undefined;
|
|
289
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
290
|
-
readonly error?: {
|
|
291
|
-
readonly type: string;
|
|
292
|
-
readonly message: string;
|
|
293
|
-
readonly status?: number | undefined;
|
|
294
|
-
readonly response?: {
|
|
295
|
-
readonly body: string;
|
|
296
|
-
} | undefined;
|
|
297
|
-
} | undefined;
|
|
298
|
-
readonly providerState?: {
|
|
299
|
-
readonly [x: string]: unknown;
|
|
300
|
-
} | undefined;
|
|
301
221
|
readonly snapshot?: {
|
|
302
222
|
readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
303
223
|
readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
304
224
|
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
305
225
|
} | undefined;
|
|
306
|
-
readonly finish?: "
|
|
226
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
307
227
|
readonly rawFinish?: string | undefined;
|
|
228
|
+
readonly native?: {
|
|
229
|
+
readonly [x: string]: unknown;
|
|
230
|
+
} | undefined;
|
|
231
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
308
232
|
readonly tokens?: {
|
|
309
233
|
readonly input: number;
|
|
310
234
|
readonly output: number;
|
|
@@ -314,6 +238,14 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
314
238
|
readonly write: number;
|
|
315
239
|
};
|
|
316
240
|
} | undefined;
|
|
241
|
+
readonly error?: {
|
|
242
|
+
readonly type: string;
|
|
243
|
+
readonly message: string;
|
|
244
|
+
readonly status?: number | undefined;
|
|
245
|
+
readonly response?: {
|
|
246
|
+
readonly body: string;
|
|
247
|
+
} | undefined;
|
|
248
|
+
} | undefined;
|
|
317
249
|
readonly retry?: {
|
|
318
250
|
readonly attempt: number;
|
|
319
251
|
readonly at: import("effect/DateTime").Utc;
|
|
@@ -326,184 +258,143 @@ export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSe
|
|
|
326
258
|
} | undefined;
|
|
327
259
|
};
|
|
328
260
|
} | undefined;
|
|
329
|
-
} | {
|
|
330
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
331
|
-
readonly type: "compaction";
|
|
332
|
-
readonly status: "running";
|
|
333
261
|
readonly time: {
|
|
334
262
|
readonly created: import("effect/DateTime").Utc;
|
|
263
|
+
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
264
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
335
265
|
};
|
|
336
|
-
readonly summary: string;
|
|
337
|
-
readonly reason: "auto" | "manual";
|
|
338
|
-
readonly recent: string;
|
|
339
|
-
readonly metadata?: {
|
|
340
|
-
readonly [x: string]: unknown;
|
|
341
|
-
} | undefined;
|
|
342
266
|
} | {
|
|
343
267
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
344
|
-
readonly type: "compaction";
|
|
345
|
-
readonly status: "completed";
|
|
346
|
-
readonly time: {
|
|
347
|
-
readonly created: import("effect/DateTime").Utc;
|
|
348
|
-
};
|
|
349
|
-
readonly summary: string;
|
|
350
|
-
readonly reason: "auto" | "manual";
|
|
351
|
-
readonly recent: string;
|
|
352
268
|
readonly metadata?: {
|
|
353
269
|
readonly [x: string]: unknown;
|
|
354
270
|
} | undefined;
|
|
355
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
356
|
-
readonly model?: {
|
|
357
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
358
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
359
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
360
|
-
} | undefined;
|
|
361
|
-
readonly providerState?: {
|
|
362
|
-
readonly [x: string]: unknown;
|
|
363
|
-
} | undefined;
|
|
364
|
-
readonly tokens?: {
|
|
365
|
-
readonly input: number;
|
|
366
|
-
readonly output: number;
|
|
367
|
-
readonly reasoning: number;
|
|
368
|
-
readonly cache: {
|
|
369
|
-
readonly read: number;
|
|
370
|
-
readonly write: number;
|
|
371
|
-
};
|
|
372
|
-
} | undefined;
|
|
373
|
-
readonly providerContext?: {
|
|
374
|
-
readonly version: 1;
|
|
375
|
-
readonly provenance: {
|
|
376
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
377
|
-
readonly provider: string;
|
|
378
|
-
readonly modelID: string;
|
|
379
|
-
readonly route: string;
|
|
380
|
-
readonly protocol: string;
|
|
381
|
-
readonly endpoint: string;
|
|
382
|
-
};
|
|
383
|
-
readonly messages: Schema.Json;
|
|
384
|
-
} | undefined;
|
|
385
|
-
} | {
|
|
386
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
387
|
-
readonly type: "compaction";
|
|
388
|
-
readonly status: "failed";
|
|
389
271
|
readonly time: {
|
|
390
272
|
readonly created: import("effect/DateTime").Utc;
|
|
391
273
|
};
|
|
392
|
-
readonly
|
|
274
|
+
readonly type: "idle";
|
|
275
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
276
|
+
readonly error?: {
|
|
393
277
|
readonly type: string;
|
|
394
278
|
readonly message: string;
|
|
395
279
|
readonly status?: number | undefined;
|
|
396
280
|
readonly response?: {
|
|
397
281
|
readonly body: string;
|
|
398
282
|
} | undefined;
|
|
399
|
-
};
|
|
400
|
-
readonly reason: "auto" | "manual";
|
|
401
|
-
readonly metadata?: {
|
|
402
|
-
readonly [x: string]: unknown;
|
|
403
|
-
} | undefined;
|
|
404
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
405
|
-
readonly tokens?: {
|
|
406
|
-
readonly input: number;
|
|
407
|
-
readonly output: number;
|
|
408
|
-
readonly reasoning: number;
|
|
409
|
-
readonly cache: {
|
|
410
|
-
readonly read: number;
|
|
411
|
-
readonly write: number;
|
|
412
|
-
};
|
|
413
283
|
} | undefined;
|
|
414
284
|
} | {
|
|
415
285
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
416
|
-
readonly type: "idle";
|
|
417
|
-
readonly time: {
|
|
418
|
-
readonly created: import("effect/DateTime").Utc;
|
|
419
|
-
};
|
|
420
|
-
readonly outcome: "failed" | "succeeded" | "interrupted";
|
|
421
286
|
readonly metadata?: {
|
|
422
287
|
readonly [x: string]: unknown;
|
|
423
288
|
} | undefined;
|
|
424
|
-
readonly error?: {
|
|
425
|
-
readonly type: string;
|
|
426
|
-
readonly message: string;
|
|
427
|
-
readonly status?: number | undefined;
|
|
428
|
-
readonly response?: {
|
|
429
|
-
readonly body: string;
|
|
430
|
-
} | undefined;
|
|
431
|
-
} | undefined;
|
|
432
|
-
}, MessageDecodeError, never>;
|
|
433
|
-
export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
434
|
-
$client: import("effect/sql/SqlClient").SqlClient;
|
|
435
|
-
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<({
|
|
436
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
437
|
-
readonly type: "agent-switched";
|
|
438
289
|
readonly time: {
|
|
439
290
|
readonly created: import("effect/DateTime").Utc;
|
|
440
291
|
};
|
|
441
|
-
readonly
|
|
442
|
-
readonly
|
|
443
|
-
readonly
|
|
292
|
+
readonly type: "location-switched";
|
|
293
|
+
readonly location: {
|
|
294
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
295
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
296
|
+
};
|
|
297
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
298
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
299
|
+
readonly previous?: {
|
|
300
|
+
readonly location: {
|
|
301
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
302
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
303
|
+
};
|
|
304
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
305
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
444
306
|
} | undefined;
|
|
445
|
-
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
446
307
|
} | {
|
|
447
308
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
448
|
-
readonly
|
|
309
|
+
readonly metadata?: {
|
|
310
|
+
readonly [x: string]: unknown;
|
|
311
|
+
} | undefined;
|
|
449
312
|
readonly time: {
|
|
450
313
|
readonly created: import("effect/DateTime").Utc;
|
|
451
314
|
};
|
|
315
|
+
readonly type: "model-switched";
|
|
452
316
|
readonly model: {
|
|
453
317
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
454
318
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
455
319
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
456
320
|
};
|
|
457
|
-
readonly metadata?: {
|
|
458
|
-
readonly [x: string]: unknown;
|
|
459
|
-
} | undefined;
|
|
460
321
|
readonly previous?: {
|
|
461
322
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
462
323
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
463
324
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
464
325
|
} | undefined;
|
|
465
326
|
} | {
|
|
466
|
-
readonly location: {
|
|
467
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
468
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
469
|
-
};
|
|
470
327
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
471
|
-
readonly
|
|
328
|
+
readonly metadata?: {
|
|
329
|
+
readonly [x: string]: unknown;
|
|
330
|
+
} | undefined;
|
|
331
|
+
readonly type: "shell";
|
|
332
|
+
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
333
|
+
readonly command: string;
|
|
334
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
335
|
+
readonly exit?: number | undefined;
|
|
336
|
+
readonly output?: {
|
|
337
|
+
readonly output: string;
|
|
338
|
+
readonly cursor: number;
|
|
339
|
+
readonly size: number;
|
|
340
|
+
readonly truncated: boolean;
|
|
341
|
+
} | undefined;
|
|
472
342
|
readonly time: {
|
|
473
343
|
readonly created: import("effect/DateTime").Utc;
|
|
344
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
474
345
|
};
|
|
346
|
+
} | {
|
|
347
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
475
348
|
readonly metadata?: {
|
|
476
349
|
readonly [x: string]: unknown;
|
|
477
350
|
} | undefined;
|
|
478
|
-
readonly
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
351
|
+
readonly time: {
|
|
352
|
+
readonly created: import("effect/DateTime").Utc;
|
|
353
|
+
};
|
|
354
|
+
readonly type: "skill";
|
|
355
|
+
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
356
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
357
|
+
readonly text: string;
|
|
358
|
+
} | {
|
|
359
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
360
|
+
readonly metadata?: {
|
|
361
|
+
readonly [x: string]: unknown;
|
|
486
362
|
} | undefined;
|
|
487
|
-
readonly
|
|
363
|
+
readonly time: {
|
|
364
|
+
readonly created: import("effect/DateTime").Utc;
|
|
365
|
+
};
|
|
366
|
+
readonly text: string;
|
|
367
|
+
readonly description?: string | undefined;
|
|
368
|
+
readonly type: "synthetic";
|
|
488
369
|
} | {
|
|
489
370
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
490
|
-
readonly
|
|
371
|
+
readonly metadata?: {
|
|
372
|
+
readonly [x: string]: unknown;
|
|
373
|
+
} | undefined;
|
|
491
374
|
readonly time: {
|
|
492
375
|
readonly created: import("effect/DateTime").Utc;
|
|
493
376
|
};
|
|
377
|
+
readonly type: "system";
|
|
494
378
|
readonly text: string;
|
|
379
|
+
readonly description?: string | undefined;
|
|
380
|
+
} | {
|
|
381
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
495
382
|
readonly metadata?: {
|
|
496
383
|
readonly [x: string]: unknown;
|
|
497
384
|
} | undefined;
|
|
385
|
+
readonly time: {
|
|
386
|
+
readonly created: import("effect/DateTime").Utc;
|
|
387
|
+
};
|
|
388
|
+
readonly text: string;
|
|
498
389
|
readonly files?: readonly {
|
|
499
390
|
readonly data: string;
|
|
391
|
+
readonly mime: string;
|
|
500
392
|
readonly source: {
|
|
501
393
|
readonly type: "inline";
|
|
502
394
|
} | {
|
|
503
395
|
readonly type: "uri";
|
|
504
396
|
readonly uri: string;
|
|
505
397
|
};
|
|
506
|
-
readonly mime: string;
|
|
507
398
|
readonly name?: string | undefined;
|
|
508
399
|
readonly description?: string | undefined;
|
|
509
400
|
readonly mention?: {
|
|
@@ -521,8 +412,8 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
|
|
|
521
412
|
} | undefined;
|
|
522
413
|
}[] | undefined;
|
|
523
414
|
readonly skills?: readonly {
|
|
524
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
525
415
|
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
416
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
526
417
|
readonly text?: string | undefined;
|
|
527
418
|
readonly mention?: {
|
|
528
419
|
readonly start: number;
|
|
@@ -530,77 +421,110 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
|
|
|
530
421
|
readonly text: string;
|
|
531
422
|
} | undefined;
|
|
532
423
|
}[] | undefined;
|
|
533
|
-
|
|
424
|
+
readonly type: "user";
|
|
425
|
+
};
|
|
426
|
+
export declare const decodeMessageRow: (row: typeof SessionMessageTable.$inferSelect) => Effect.Effect<{
|
|
534
427
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
535
|
-
readonly
|
|
428
|
+
readonly metadata?: {
|
|
429
|
+
readonly [x: string]: unknown;
|
|
430
|
+
} | undefined;
|
|
536
431
|
readonly time: {
|
|
537
432
|
readonly created: import("effect/DateTime").Utc;
|
|
538
433
|
};
|
|
539
|
-
readonly
|
|
540
|
-
readonly
|
|
434
|
+
readonly type: "compaction";
|
|
435
|
+
readonly status: "running";
|
|
436
|
+
readonly reason: "auto" | "manual";
|
|
437
|
+
readonly summary: string;
|
|
438
|
+
} | {
|
|
439
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
541
440
|
readonly metadata?: {
|
|
542
441
|
readonly [x: string]: unknown;
|
|
543
442
|
} | undefined;
|
|
544
|
-
} | {
|
|
545
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
546
|
-
readonly type: "system";
|
|
547
443
|
readonly time: {
|
|
548
444
|
readonly created: import("effect/DateTime").Utc;
|
|
549
445
|
};
|
|
550
|
-
readonly
|
|
551
|
-
readonly
|
|
552
|
-
readonly
|
|
446
|
+
readonly type: "compaction";
|
|
447
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
448
|
+
readonly tokens?: {
|
|
449
|
+
readonly input: number;
|
|
450
|
+
readonly output: number;
|
|
451
|
+
readonly reasoning: number;
|
|
452
|
+
readonly cache: {
|
|
453
|
+
readonly read: number;
|
|
454
|
+
readonly write: number;
|
|
455
|
+
};
|
|
456
|
+
} | undefined;
|
|
457
|
+
readonly status: "completed";
|
|
458
|
+
readonly reason: "auto" | "manual";
|
|
459
|
+
readonly model?: {
|
|
460
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
461
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
462
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
463
|
+
} | undefined;
|
|
464
|
+
readonly native?: {
|
|
553
465
|
readonly [x: string]: unknown;
|
|
554
466
|
} | undefined;
|
|
467
|
+
readonly summary: string;
|
|
555
468
|
} | {
|
|
556
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
557
469
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
558
|
-
readonly
|
|
470
|
+
readonly metadata?: {
|
|
471
|
+
readonly [x: string]: unknown;
|
|
472
|
+
} | undefined;
|
|
559
473
|
readonly time: {
|
|
560
474
|
readonly created: import("effect/DateTime").Utc;
|
|
561
475
|
};
|
|
562
|
-
readonly
|
|
563
|
-
readonly
|
|
564
|
-
readonly
|
|
565
|
-
readonly
|
|
476
|
+
readonly type: "compaction";
|
|
477
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
478
|
+
readonly tokens?: {
|
|
479
|
+
readonly input: number;
|
|
480
|
+
readonly output: number;
|
|
481
|
+
readonly reasoning: number;
|
|
482
|
+
readonly cache: {
|
|
483
|
+
readonly read: number;
|
|
484
|
+
readonly write: number;
|
|
485
|
+
};
|
|
566
486
|
} | undefined;
|
|
487
|
+
readonly status: "failed";
|
|
488
|
+
readonly reason: "auto" | "manual";
|
|
489
|
+
readonly error: {
|
|
490
|
+
readonly type: string;
|
|
491
|
+
readonly message: string;
|
|
492
|
+
readonly status?: number | undefined;
|
|
493
|
+
readonly response?: {
|
|
494
|
+
readonly body: string;
|
|
495
|
+
} | undefined;
|
|
496
|
+
};
|
|
567
497
|
} | {
|
|
568
498
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
569
|
-
readonly
|
|
570
|
-
|
|
571
|
-
|
|
499
|
+
readonly metadata?: {
|
|
500
|
+
readonly [x: string]: unknown;
|
|
501
|
+
} | undefined;
|
|
572
502
|
readonly time: {
|
|
573
503
|
readonly created: import("effect/DateTime").Utc;
|
|
574
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
575
504
|
};
|
|
576
|
-
readonly
|
|
505
|
+
readonly type: "agent-switched";
|
|
506
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
507
|
+
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
508
|
+
} | {
|
|
509
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
577
510
|
readonly metadata?: {
|
|
578
511
|
readonly [x: string]: unknown;
|
|
579
512
|
} | undefined;
|
|
580
|
-
readonly output?: {
|
|
581
|
-
readonly output: string;
|
|
582
|
-
readonly cursor: number;
|
|
583
|
-
readonly size: number;
|
|
584
|
-
readonly truncated: boolean;
|
|
585
|
-
} | undefined;
|
|
586
|
-
readonly exit?: number | undefined;
|
|
587
|
-
} | {
|
|
588
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
589
513
|
readonly type: "assistant";
|
|
590
|
-
readonly
|
|
591
|
-
readonly created: import("effect/DateTime").Utc;
|
|
592
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
593
|
-
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
594
|
-
};
|
|
514
|
+
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
595
515
|
readonly model: {
|
|
596
516
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
597
517
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
598
518
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
599
519
|
};
|
|
600
520
|
readonly content: readonly ({
|
|
601
|
-
readonly name: string;
|
|
602
|
-
readonly id: string;
|
|
603
521
|
readonly type: "tool";
|
|
522
|
+
readonly id: string;
|
|
523
|
+
readonly name: string;
|
|
524
|
+
readonly executed?: boolean | undefined;
|
|
525
|
+
readonly native?: {
|
|
526
|
+
readonly [x: string]: unknown;
|
|
527
|
+
} | undefined;
|
|
604
528
|
readonly state: {
|
|
605
529
|
readonly status: "streaming";
|
|
606
530
|
readonly input: string;
|
|
@@ -650,9 +574,6 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
|
|
|
650
574
|
readonly body: string;
|
|
651
575
|
} | undefined;
|
|
652
576
|
};
|
|
653
|
-
readonly metadata?: {
|
|
654
|
-
readonly [x: string]: Schema.Json;
|
|
655
|
-
} | undefined;
|
|
656
577
|
readonly content?: readonly [{
|
|
657
578
|
readonly type: "text";
|
|
658
579
|
readonly text: string;
|
|
@@ -670,29 +591,25 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
|
|
|
670
591
|
readonly mime: string;
|
|
671
592
|
readonly name?: string | undefined;
|
|
672
593
|
})[]] | undefined;
|
|
594
|
+
readonly metadata?: {
|
|
595
|
+
readonly [x: string]: Schema.Json;
|
|
596
|
+
} | undefined;
|
|
673
597
|
};
|
|
674
598
|
readonly time: {
|
|
675
599
|
readonly created: import("effect/DateTime").Utc;
|
|
676
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
677
600
|
readonly ran?: import("effect/DateTime").Utc | undefined;
|
|
601
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
678
602
|
};
|
|
679
|
-
readonly executed?: boolean | undefined;
|
|
680
|
-
readonly providerState?: {
|
|
681
|
-
readonly [x: string]: unknown;
|
|
682
|
-
} | undefined;
|
|
683
|
-
readonly providerResultState?: {
|
|
684
|
-
readonly [x: string]: unknown;
|
|
685
|
-
} | undefined;
|
|
686
603
|
} | {
|
|
687
604
|
readonly type: "text";
|
|
688
605
|
readonly text: string;
|
|
689
|
-
readonly
|
|
606
|
+
readonly native?: {
|
|
690
607
|
readonly [x: string]: unknown;
|
|
691
608
|
} | undefined;
|
|
692
609
|
} | {
|
|
693
610
|
readonly type: "reasoning";
|
|
694
611
|
readonly text: string;
|
|
695
|
-
readonly
|
|
612
|
+
readonly native?: {
|
|
696
613
|
readonly [x: string]: unknown;
|
|
697
614
|
} | undefined;
|
|
698
615
|
readonly time?: {
|
|
@@ -700,29 +617,17 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
|
|
|
700
617
|
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
701
618
|
} | undefined;
|
|
702
619
|
})[];
|
|
703
|
-
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
704
|
-
readonly metadata?: {
|
|
705
|
-
readonly [x: string]: unknown;
|
|
706
|
-
} | undefined;
|
|
707
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
708
|
-
readonly error?: {
|
|
709
|
-
readonly type: string;
|
|
710
|
-
readonly message: string;
|
|
711
|
-
readonly status?: number | undefined;
|
|
712
|
-
readonly response?: {
|
|
713
|
-
readonly body: string;
|
|
714
|
-
} | undefined;
|
|
715
|
-
} | undefined;
|
|
716
|
-
readonly providerState?: {
|
|
717
|
-
readonly [x: string]: unknown;
|
|
718
|
-
} | undefined;
|
|
719
620
|
readonly snapshot?: {
|
|
720
621
|
readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
721
622
|
readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
722
623
|
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
723
624
|
} | undefined;
|
|
724
|
-
readonly finish?: "
|
|
625
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
725
626
|
readonly rawFinish?: string | undefined;
|
|
627
|
+
readonly native?: {
|
|
628
|
+
readonly [x: string]: unknown;
|
|
629
|
+
} | undefined;
|
|
630
|
+
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
726
631
|
readonly tokens?: {
|
|
727
632
|
readonly input: number;
|
|
728
633
|
readonly output: number;
|
|
@@ -732,8 +637,16 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
|
|
|
732
637
|
readonly write: number;
|
|
733
638
|
};
|
|
734
639
|
} | undefined;
|
|
735
|
-
readonly
|
|
736
|
-
readonly
|
|
640
|
+
readonly error?: {
|
|
641
|
+
readonly type: string;
|
|
642
|
+
readonly message: string;
|
|
643
|
+
readonly status?: number | undefined;
|
|
644
|
+
readonly response?: {
|
|
645
|
+
readonly body: string;
|
|
646
|
+
} | undefined;
|
|
647
|
+
} | undefined;
|
|
648
|
+
readonly retry?: {
|
|
649
|
+
readonly attempt: number;
|
|
737
650
|
readonly at: import("effect/DateTime").Utc;
|
|
738
651
|
readonly error: {
|
|
739
652
|
readonly type: string;
|
|
@@ -744,954 +657,188 @@ export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDat
|
|
|
744
657
|
} | undefined;
|
|
745
658
|
};
|
|
746
659
|
} | undefined;
|
|
747
|
-
} | {
|
|
748
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
749
|
-
readonly type: "compaction";
|
|
750
|
-
readonly status: "running";
|
|
751
660
|
readonly time: {
|
|
752
661
|
readonly created: import("effect/DateTime").Utc;
|
|
662
|
+
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
663
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
753
664
|
};
|
|
754
|
-
|
|
755
|
-
readonly
|
|
756
|
-
readonly recent: string;
|
|
665
|
+
} | {
|
|
666
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
757
667
|
readonly metadata?: {
|
|
758
668
|
readonly [x: string]: unknown;
|
|
759
669
|
} | undefined;
|
|
670
|
+
readonly time: {
|
|
671
|
+
readonly created: import("effect/DateTime").Utc;
|
|
672
|
+
};
|
|
673
|
+
readonly type: "idle";
|
|
674
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
675
|
+
readonly error?: {
|
|
676
|
+
readonly type: string;
|
|
677
|
+
readonly message: string;
|
|
678
|
+
readonly status?: number | undefined;
|
|
679
|
+
readonly response?: {
|
|
680
|
+
readonly body: string;
|
|
681
|
+
} | undefined;
|
|
682
|
+
} | undefined;
|
|
760
683
|
} | {
|
|
761
684
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
762
|
-
readonly
|
|
763
|
-
|
|
685
|
+
readonly metadata?: {
|
|
686
|
+
readonly [x: string]: unknown;
|
|
687
|
+
} | undefined;
|
|
764
688
|
readonly time: {
|
|
765
689
|
readonly created: import("effect/DateTime").Utc;
|
|
766
690
|
};
|
|
767
|
-
readonly
|
|
768
|
-
readonly
|
|
769
|
-
|
|
691
|
+
readonly type: "location-switched";
|
|
692
|
+
readonly location: {
|
|
693
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
694
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
695
|
+
};
|
|
696
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
697
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
698
|
+
readonly previous?: {
|
|
699
|
+
readonly location: {
|
|
700
|
+
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
701
|
+
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
702
|
+
};
|
|
703
|
+
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
704
|
+
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
705
|
+
} | undefined;
|
|
706
|
+
} | {
|
|
707
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
770
708
|
readonly metadata?: {
|
|
771
709
|
readonly [x: string]: unknown;
|
|
772
710
|
} | undefined;
|
|
773
|
-
readonly
|
|
774
|
-
|
|
711
|
+
readonly time: {
|
|
712
|
+
readonly created: import("effect/DateTime").Utc;
|
|
713
|
+
};
|
|
714
|
+
readonly type: "model-switched";
|
|
715
|
+
readonly model: {
|
|
716
|
+
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
717
|
+
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
718
|
+
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
719
|
+
};
|
|
720
|
+
readonly previous?: {
|
|
775
721
|
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
776
722
|
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
777
723
|
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
778
724
|
} | undefined;
|
|
779
|
-
|
|
725
|
+
} | {
|
|
726
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
727
|
+
readonly metadata?: {
|
|
780
728
|
readonly [x: string]: unknown;
|
|
781
729
|
} | undefined;
|
|
782
|
-
readonly
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
readonly version: 1;
|
|
793
|
-
readonly provenance: {
|
|
794
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
795
|
-
readonly provider: string;
|
|
796
|
-
readonly modelID: string;
|
|
797
|
-
readonly route: string;
|
|
798
|
-
readonly protocol: string;
|
|
799
|
-
readonly endpoint: string;
|
|
800
|
-
};
|
|
801
|
-
readonly messages: Schema.Json;
|
|
730
|
+
readonly type: "shell";
|
|
731
|
+
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
732
|
+
readonly command: string;
|
|
733
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
734
|
+
readonly exit?: number | undefined;
|
|
735
|
+
readonly output?: {
|
|
736
|
+
readonly output: string;
|
|
737
|
+
readonly cursor: number;
|
|
738
|
+
readonly size: number;
|
|
739
|
+
readonly truncated: boolean;
|
|
802
740
|
} | undefined;
|
|
741
|
+
readonly time: {
|
|
742
|
+
readonly created: import("effect/DateTime").Utc;
|
|
743
|
+
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
744
|
+
};
|
|
803
745
|
} | {
|
|
804
746
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
805
|
-
readonly
|
|
806
|
-
|
|
747
|
+
readonly metadata?: {
|
|
748
|
+
readonly [x: string]: unknown;
|
|
749
|
+
} | undefined;
|
|
807
750
|
readonly time: {
|
|
808
751
|
readonly created: import("effect/DateTime").Utc;
|
|
809
752
|
};
|
|
810
|
-
readonly
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
} | undefined;
|
|
817
|
-
};
|
|
818
|
-
readonly reason: "auto" | "manual";
|
|
753
|
+
readonly type: "skill";
|
|
754
|
+
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
755
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
756
|
+
readonly text: string;
|
|
757
|
+
} | {
|
|
758
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
819
759
|
readonly metadata?: {
|
|
820
760
|
readonly [x: string]: unknown;
|
|
821
761
|
} | undefined;
|
|
822
|
-
readonly
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
readonly read: number;
|
|
829
|
-
readonly write: number;
|
|
830
|
-
};
|
|
831
|
-
} | undefined;
|
|
762
|
+
readonly time: {
|
|
763
|
+
readonly created: import("effect/DateTime").Utc;
|
|
764
|
+
};
|
|
765
|
+
readonly text: string;
|
|
766
|
+
readonly description?: string | undefined;
|
|
767
|
+
readonly type: "synthetic";
|
|
832
768
|
} | {
|
|
833
769
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
834
|
-
readonly
|
|
770
|
+
readonly metadata?: {
|
|
771
|
+
readonly [x: string]: unknown;
|
|
772
|
+
} | undefined;
|
|
835
773
|
readonly time: {
|
|
836
774
|
readonly created: import("effect/DateTime").Utc;
|
|
837
775
|
};
|
|
838
|
-
readonly
|
|
776
|
+
readonly type: "system";
|
|
777
|
+
readonly text: string;
|
|
778
|
+
readonly description?: string | undefined;
|
|
779
|
+
} | {
|
|
780
|
+
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
839
781
|
readonly metadata?: {
|
|
840
782
|
readonly [x: string]: unknown;
|
|
841
783
|
} | undefined;
|
|
842
|
-
readonly
|
|
843
|
-
readonly
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
784
|
+
readonly time: {
|
|
785
|
+
readonly created: import("effect/DateTime").Utc;
|
|
786
|
+
};
|
|
787
|
+
readonly text: string;
|
|
788
|
+
readonly files?: readonly {
|
|
789
|
+
readonly data: string;
|
|
790
|
+
readonly mime: string;
|
|
791
|
+
readonly source: {
|
|
792
|
+
readonly type: "inline";
|
|
793
|
+
} | {
|
|
794
|
+
readonly type: "uri";
|
|
795
|
+
readonly uri: string;
|
|
796
|
+
};
|
|
797
|
+
readonly name?: string | undefined;
|
|
798
|
+
readonly description?: string | undefined;
|
|
799
|
+
readonly mention?: {
|
|
800
|
+
readonly start: number;
|
|
801
|
+
readonly end: number;
|
|
802
|
+
readonly text: string;
|
|
848
803
|
} | undefined;
|
|
849
|
-
} | undefined;
|
|
850
|
-
|
|
804
|
+
}[] | undefined;
|
|
805
|
+
readonly agents?: readonly {
|
|
806
|
+
readonly name: string;
|
|
807
|
+
readonly mention?: {
|
|
808
|
+
readonly start: number;
|
|
809
|
+
readonly end: number;
|
|
810
|
+
readonly text: string;
|
|
811
|
+
} | undefined;
|
|
812
|
+
}[] | undefined;
|
|
813
|
+
readonly skills?: readonly {
|
|
814
|
+
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
815
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
816
|
+
readonly text?: string | undefined;
|
|
817
|
+
readonly mention?: {
|
|
818
|
+
readonly start: number;
|
|
819
|
+
readonly end: number;
|
|
820
|
+
readonly text: string;
|
|
821
|
+
} | undefined;
|
|
822
|
+
}[] | undefined;
|
|
823
|
+
readonly type: "user";
|
|
824
|
+
}, MessageDecodeError, never>;
|
|
825
|
+
export declare const load: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
826
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
827
|
+
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, boundary: Boundary) => Effect.Effect<SessionMessage.Info[], MessageDecodeError, never>;
|
|
851
828
|
export declare const entriesForRunner: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
852
829
|
$client: import("effect/sql/SqlClient").SqlClient;
|
|
853
830
|
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
|
|
854
831
|
initial: string;
|
|
855
|
-
entries: {
|
|
856
|
-
seq: number;
|
|
857
|
-
message:
|
|
858
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
859
|
-
readonly type: "agent-switched";
|
|
860
|
-
readonly time: {
|
|
861
|
-
readonly created: import("effect/DateTime").Utc;
|
|
862
|
-
};
|
|
863
|
-
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
864
|
-
readonly metadata?: {
|
|
865
|
-
readonly [x: string]: unknown;
|
|
866
|
-
} | undefined;
|
|
867
|
-
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
868
|
-
} | {
|
|
869
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
870
|
-
readonly type: "model-switched";
|
|
871
|
-
readonly time: {
|
|
872
|
-
readonly created: import("effect/DateTime").Utc;
|
|
873
|
-
};
|
|
874
|
-
readonly model: {
|
|
875
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
876
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
877
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
878
|
-
};
|
|
879
|
-
readonly metadata?: {
|
|
880
|
-
readonly [x: string]: unknown;
|
|
881
|
-
} | undefined;
|
|
882
|
-
readonly previous?: {
|
|
883
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
884
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
885
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
886
|
-
} | undefined;
|
|
887
|
-
} | {
|
|
888
|
-
readonly location: {
|
|
889
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
890
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
891
|
-
};
|
|
892
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
893
|
-
readonly type: "location-switched";
|
|
894
|
-
readonly time: {
|
|
895
|
-
readonly created: import("effect/DateTime").Utc;
|
|
896
|
-
};
|
|
897
|
-
readonly metadata?: {
|
|
898
|
-
readonly [x: string]: unknown;
|
|
899
|
-
} | undefined;
|
|
900
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
901
|
-
readonly previous?: {
|
|
902
|
-
readonly location: {
|
|
903
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
904
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
905
|
-
};
|
|
906
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
907
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
908
|
-
} | undefined;
|
|
909
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
910
|
-
} | {
|
|
911
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
912
|
-
readonly type: "user";
|
|
913
|
-
readonly time: {
|
|
914
|
-
readonly created: import("effect/DateTime").Utc;
|
|
915
|
-
};
|
|
916
|
-
readonly text: string;
|
|
917
|
-
readonly metadata?: {
|
|
918
|
-
readonly [x: string]: unknown;
|
|
919
|
-
} | undefined;
|
|
920
|
-
readonly files?: readonly {
|
|
921
|
-
readonly data: string;
|
|
922
|
-
readonly source: {
|
|
923
|
-
readonly type: "inline";
|
|
924
|
-
} | {
|
|
925
|
-
readonly type: "uri";
|
|
926
|
-
readonly uri: string;
|
|
927
|
-
};
|
|
928
|
-
readonly mime: string;
|
|
929
|
-
readonly name?: string | undefined;
|
|
930
|
-
readonly description?: string | undefined;
|
|
931
|
-
readonly mention?: {
|
|
932
|
-
readonly start: number;
|
|
933
|
-
readonly end: number;
|
|
934
|
-
readonly text: string;
|
|
935
|
-
} | undefined;
|
|
936
|
-
}[] | undefined;
|
|
937
|
-
readonly agents?: readonly {
|
|
938
|
-
readonly name: string;
|
|
939
|
-
readonly mention?: {
|
|
940
|
-
readonly start: number;
|
|
941
|
-
readonly end: number;
|
|
942
|
-
readonly text: string;
|
|
943
|
-
} | undefined;
|
|
944
|
-
}[] | undefined;
|
|
945
|
-
readonly skills?: readonly {
|
|
946
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
947
|
-
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
948
|
-
readonly text?: string | undefined;
|
|
949
|
-
readonly mention?: {
|
|
950
|
-
readonly start: number;
|
|
951
|
-
readonly end: number;
|
|
952
|
-
readonly text: string;
|
|
953
|
-
} | undefined;
|
|
954
|
-
}[] | undefined;
|
|
955
|
-
} | {
|
|
956
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
957
|
-
readonly type: "synthetic";
|
|
958
|
-
readonly time: {
|
|
959
|
-
readonly created: import("effect/DateTime").Utc;
|
|
960
|
-
};
|
|
961
|
-
readonly text: string;
|
|
962
|
-
readonly description?: string | undefined;
|
|
963
|
-
readonly metadata?: {
|
|
964
|
-
readonly [x: string]: unknown;
|
|
965
|
-
} | undefined;
|
|
966
|
-
} | {
|
|
967
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
968
|
-
readonly type: "system";
|
|
969
|
-
readonly time: {
|
|
970
|
-
readonly created: import("effect/DateTime").Utc;
|
|
971
|
-
};
|
|
972
|
-
readonly text: string;
|
|
973
|
-
readonly description?: string | undefined;
|
|
974
|
-
readonly metadata?: {
|
|
975
|
-
readonly [x: string]: unknown;
|
|
976
|
-
} | undefined;
|
|
977
|
-
} | {
|
|
978
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
979
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
980
|
-
readonly type: "skill";
|
|
981
|
-
readonly time: {
|
|
982
|
-
readonly created: import("effect/DateTime").Utc;
|
|
983
|
-
};
|
|
984
|
-
readonly text: string;
|
|
985
|
-
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
986
|
-
readonly metadata?: {
|
|
987
|
-
readonly [x: string]: unknown;
|
|
988
|
-
} | undefined;
|
|
989
|
-
} | {
|
|
990
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
991
|
-
readonly type: "shell";
|
|
992
|
-
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
993
|
-
readonly command: string;
|
|
994
|
-
readonly time: {
|
|
995
|
-
readonly created: import("effect/DateTime").Utc;
|
|
996
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
997
|
-
};
|
|
998
|
-
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
999
|
-
readonly metadata?: {
|
|
1000
|
-
readonly [x: string]: unknown;
|
|
1001
|
-
} | undefined;
|
|
1002
|
-
readonly output?: {
|
|
1003
|
-
readonly output: string;
|
|
1004
|
-
readonly cursor: number;
|
|
1005
|
-
readonly size: number;
|
|
1006
|
-
readonly truncated: boolean;
|
|
1007
|
-
} | undefined;
|
|
1008
|
-
readonly exit?: number | undefined;
|
|
1009
|
-
} | {
|
|
1010
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1011
|
-
readonly type: "assistant";
|
|
1012
|
-
readonly time: {
|
|
1013
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1014
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1015
|
-
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
1016
|
-
};
|
|
1017
|
-
readonly model: {
|
|
1018
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1019
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1020
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1021
|
-
};
|
|
1022
|
-
readonly content: readonly ({
|
|
1023
|
-
readonly name: string;
|
|
1024
|
-
readonly id: string;
|
|
1025
|
-
readonly type: "tool";
|
|
1026
|
-
readonly state: {
|
|
1027
|
-
readonly status: "streaming";
|
|
1028
|
-
readonly input: string;
|
|
1029
|
-
} | {
|
|
1030
|
-
readonly status: "running";
|
|
1031
|
-
readonly input: {
|
|
1032
|
-
readonly [x: string]: unknown;
|
|
1033
|
-
};
|
|
1034
|
-
readonly metadata: {
|
|
1035
|
-
readonly [x: string]: Schema.Json;
|
|
1036
|
-
};
|
|
1037
|
-
} | {
|
|
1038
|
-
readonly status: "completed";
|
|
1039
|
-
readonly input: {
|
|
1040
|
-
readonly [x: string]: unknown;
|
|
1041
|
-
};
|
|
1042
|
-
readonly content: readonly [{
|
|
1043
|
-
readonly type: "text";
|
|
1044
|
-
readonly text: string;
|
|
1045
|
-
} | {
|
|
1046
|
-
readonly type: "file";
|
|
1047
|
-
readonly uri: string;
|
|
1048
|
-
readonly mime: string;
|
|
1049
|
-
readonly name?: string | undefined;
|
|
1050
|
-
}, ...({
|
|
1051
|
-
readonly type: "text";
|
|
1052
|
-
readonly text: string;
|
|
1053
|
-
} | {
|
|
1054
|
-
readonly type: "file";
|
|
1055
|
-
readonly uri: string;
|
|
1056
|
-
readonly mime: string;
|
|
1057
|
-
readonly name?: string | undefined;
|
|
1058
|
-
})[]];
|
|
1059
|
-
readonly metadata?: {
|
|
1060
|
-
readonly [x: string]: Schema.Json;
|
|
1061
|
-
} | undefined;
|
|
1062
|
-
} | {
|
|
1063
|
-
readonly status: "error";
|
|
1064
|
-
readonly input: {
|
|
1065
|
-
readonly [x: string]: unknown;
|
|
1066
|
-
};
|
|
1067
|
-
readonly error: {
|
|
1068
|
-
readonly type: string;
|
|
1069
|
-
readonly message: string;
|
|
1070
|
-
readonly status?: number | undefined;
|
|
1071
|
-
readonly response?: {
|
|
1072
|
-
readonly body: string;
|
|
1073
|
-
} | undefined;
|
|
1074
|
-
};
|
|
1075
|
-
readonly metadata?: {
|
|
1076
|
-
readonly [x: string]: Schema.Json;
|
|
1077
|
-
} | undefined;
|
|
1078
|
-
readonly content?: readonly [{
|
|
1079
|
-
readonly type: "text";
|
|
1080
|
-
readonly text: string;
|
|
1081
|
-
} | {
|
|
1082
|
-
readonly type: "file";
|
|
1083
|
-
readonly uri: string;
|
|
1084
|
-
readonly mime: string;
|
|
1085
|
-
readonly name?: string | undefined;
|
|
1086
|
-
}, ...({
|
|
1087
|
-
readonly type: "text";
|
|
1088
|
-
readonly text: string;
|
|
1089
|
-
} | {
|
|
1090
|
-
readonly type: "file";
|
|
1091
|
-
readonly uri: string;
|
|
1092
|
-
readonly mime: string;
|
|
1093
|
-
readonly name?: string | undefined;
|
|
1094
|
-
})[]] | undefined;
|
|
1095
|
-
};
|
|
1096
|
-
readonly time: {
|
|
1097
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1098
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1099
|
-
readonly ran?: import("effect/DateTime").Utc | undefined;
|
|
1100
|
-
};
|
|
1101
|
-
readonly executed?: boolean | undefined;
|
|
1102
|
-
readonly providerState?: {
|
|
1103
|
-
readonly [x: string]: unknown;
|
|
1104
|
-
} | undefined;
|
|
1105
|
-
readonly providerResultState?: {
|
|
1106
|
-
readonly [x: string]: unknown;
|
|
1107
|
-
} | undefined;
|
|
1108
|
-
} | {
|
|
1109
|
-
readonly type: "text";
|
|
1110
|
-
readonly text: string;
|
|
1111
|
-
readonly state?: {
|
|
1112
|
-
readonly [x: string]: unknown;
|
|
1113
|
-
} | undefined;
|
|
1114
|
-
} | {
|
|
1115
|
-
readonly type: "reasoning";
|
|
1116
|
-
readonly text: string;
|
|
1117
|
-
readonly state?: {
|
|
1118
|
-
readonly [x: string]: unknown;
|
|
1119
|
-
} | undefined;
|
|
1120
|
-
readonly time?: {
|
|
1121
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1122
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1123
|
-
} | undefined;
|
|
1124
|
-
})[];
|
|
1125
|
-
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
1126
|
-
readonly metadata?: {
|
|
1127
|
-
readonly [x: string]: unknown;
|
|
1128
|
-
} | undefined;
|
|
1129
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1130
|
-
readonly error?: {
|
|
1131
|
-
readonly type: string;
|
|
1132
|
-
readonly message: string;
|
|
1133
|
-
readonly status?: number | undefined;
|
|
1134
|
-
readonly response?: {
|
|
1135
|
-
readonly body: string;
|
|
1136
|
-
} | undefined;
|
|
1137
|
-
} | undefined;
|
|
1138
|
-
readonly providerState?: {
|
|
1139
|
-
readonly [x: string]: unknown;
|
|
1140
|
-
} | undefined;
|
|
1141
|
-
readonly snapshot?: {
|
|
1142
|
-
readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
1143
|
-
readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
1144
|
-
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
1145
|
-
} | undefined;
|
|
1146
|
-
readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
|
|
1147
|
-
readonly rawFinish?: string | undefined;
|
|
1148
|
-
readonly tokens?: {
|
|
1149
|
-
readonly input: number;
|
|
1150
|
-
readonly output: number;
|
|
1151
|
-
readonly reasoning: number;
|
|
1152
|
-
readonly cache: {
|
|
1153
|
-
readonly read: number;
|
|
1154
|
-
readonly write: number;
|
|
1155
|
-
};
|
|
1156
|
-
} | undefined;
|
|
1157
|
-
readonly retry?: {
|
|
1158
|
-
readonly attempt: number;
|
|
1159
|
-
readonly at: import("effect/DateTime").Utc;
|
|
1160
|
-
readonly error: {
|
|
1161
|
-
readonly type: string;
|
|
1162
|
-
readonly message: string;
|
|
1163
|
-
readonly status?: number | undefined;
|
|
1164
|
-
readonly response?: {
|
|
1165
|
-
readonly body: string;
|
|
1166
|
-
} | undefined;
|
|
1167
|
-
};
|
|
1168
|
-
} | undefined;
|
|
1169
|
-
} | {
|
|
1170
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1171
|
-
readonly type: "compaction";
|
|
1172
|
-
readonly status: "running";
|
|
1173
|
-
readonly time: {
|
|
1174
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1175
|
-
};
|
|
1176
|
-
readonly summary: string;
|
|
1177
|
-
readonly reason: "auto" | "manual";
|
|
1178
|
-
readonly recent: string;
|
|
1179
|
-
readonly metadata?: {
|
|
1180
|
-
readonly [x: string]: unknown;
|
|
1181
|
-
} | undefined;
|
|
1182
|
-
} | {
|
|
1183
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1184
|
-
readonly type: "compaction";
|
|
1185
|
-
readonly status: "completed";
|
|
1186
|
-
readonly time: {
|
|
1187
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1188
|
-
};
|
|
1189
|
-
readonly summary: string;
|
|
1190
|
-
readonly reason: "auto" | "manual";
|
|
1191
|
-
readonly recent: string;
|
|
1192
|
-
readonly metadata?: {
|
|
1193
|
-
readonly [x: string]: unknown;
|
|
1194
|
-
} | undefined;
|
|
1195
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1196
|
-
readonly model?: {
|
|
1197
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1198
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1199
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1200
|
-
} | undefined;
|
|
1201
|
-
readonly providerState?: {
|
|
1202
|
-
readonly [x: string]: unknown;
|
|
1203
|
-
} | undefined;
|
|
1204
|
-
readonly tokens?: {
|
|
1205
|
-
readonly input: number;
|
|
1206
|
-
readonly output: number;
|
|
1207
|
-
readonly reasoning: number;
|
|
1208
|
-
readonly cache: {
|
|
1209
|
-
readonly read: number;
|
|
1210
|
-
readonly write: number;
|
|
1211
|
-
};
|
|
1212
|
-
} | undefined;
|
|
1213
|
-
readonly providerContext?: {
|
|
1214
|
-
readonly version: 1;
|
|
1215
|
-
readonly provenance: {
|
|
1216
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1217
|
-
readonly provider: string;
|
|
1218
|
-
readonly modelID: string;
|
|
1219
|
-
readonly route: string;
|
|
1220
|
-
readonly protocol: string;
|
|
1221
|
-
readonly endpoint: string;
|
|
1222
|
-
};
|
|
1223
|
-
readonly messages: Schema.Json;
|
|
1224
|
-
} | undefined;
|
|
1225
|
-
} | {
|
|
1226
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1227
|
-
readonly type: "compaction";
|
|
1228
|
-
readonly status: "failed";
|
|
1229
|
-
readonly time: {
|
|
1230
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1231
|
-
};
|
|
1232
|
-
readonly error: {
|
|
1233
|
-
readonly type: string;
|
|
1234
|
-
readonly message: string;
|
|
1235
|
-
readonly status?: number | undefined;
|
|
1236
|
-
readonly response?: {
|
|
1237
|
-
readonly body: string;
|
|
1238
|
-
} | undefined;
|
|
1239
|
-
};
|
|
1240
|
-
readonly reason: "auto" | "manual";
|
|
1241
|
-
readonly metadata?: {
|
|
1242
|
-
readonly [x: string]: unknown;
|
|
1243
|
-
} | undefined;
|
|
1244
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1245
|
-
readonly tokens?: {
|
|
1246
|
-
readonly input: number;
|
|
1247
|
-
readonly output: number;
|
|
1248
|
-
readonly reasoning: number;
|
|
1249
|
-
readonly cache: {
|
|
1250
|
-
readonly read: number;
|
|
1251
|
-
readonly write: number;
|
|
1252
|
-
};
|
|
1253
|
-
} | undefined;
|
|
1254
|
-
} | {
|
|
1255
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1256
|
-
readonly type: "idle";
|
|
1257
|
-
readonly time: {
|
|
1258
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1259
|
-
};
|
|
1260
|
-
readonly outcome: "failed" | "succeeded" | "interrupted";
|
|
1261
|
-
readonly metadata?: {
|
|
1262
|
-
readonly [x: string]: unknown;
|
|
1263
|
-
} | undefined;
|
|
1264
|
-
readonly error?: {
|
|
1265
|
-
readonly type: string;
|
|
1266
|
-
readonly message: string;
|
|
1267
|
-
readonly status?: number | undefined;
|
|
1268
|
-
readonly response?: {
|
|
1269
|
-
readonly body: string;
|
|
1270
|
-
} | undefined;
|
|
1271
|
-
} | undefined;
|
|
1272
|
-
};
|
|
832
|
+
entries: readonly {
|
|
833
|
+
readonly seq: number;
|
|
834
|
+
readonly message: SessionMessage.Info;
|
|
1273
835
|
}[];
|
|
1274
836
|
}, never, never>;
|
|
1275
837
|
export declare const preview: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1276
838
|
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1277
839
|
}, sessionID: string & import("effect/Brand").Brand<"SessionID">, instructions: Instructions.List, boundary: Boundary) => Effect.Effect<{
|
|
1278
840
|
initial: string;
|
|
1279
|
-
messages:
|
|
1280
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1281
|
-
readonly type: "agent-switched";
|
|
1282
|
-
readonly time: {
|
|
1283
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1284
|
-
};
|
|
1285
|
-
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
1286
|
-
readonly metadata?: {
|
|
1287
|
-
readonly [x: string]: unknown;
|
|
1288
|
-
} | undefined;
|
|
1289
|
-
readonly previous?: (string & import("effect/Brand").Brand<"Agent.ID">) | undefined;
|
|
1290
|
-
} | {
|
|
1291
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1292
|
-
readonly type: "model-switched";
|
|
1293
|
-
readonly time: {
|
|
1294
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1295
|
-
};
|
|
1296
|
-
readonly model: {
|
|
1297
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1298
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1299
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1300
|
-
};
|
|
1301
|
-
readonly metadata?: {
|
|
1302
|
-
readonly [x: string]: unknown;
|
|
1303
|
-
} | undefined;
|
|
1304
|
-
readonly previous?: {
|
|
1305
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1306
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1307
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1308
|
-
} | undefined;
|
|
1309
|
-
} | {
|
|
1310
|
-
readonly location: {
|
|
1311
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1312
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1313
|
-
};
|
|
1314
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1315
|
-
readonly type: "location-switched";
|
|
1316
|
-
readonly time: {
|
|
1317
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1318
|
-
};
|
|
1319
|
-
readonly metadata?: {
|
|
1320
|
-
readonly [x: string]: unknown;
|
|
1321
|
-
} | undefined;
|
|
1322
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
1323
|
-
readonly previous?: {
|
|
1324
|
-
readonly location: {
|
|
1325
|
-
readonly directory: string & import("effect/Brand").Brand<"AbsolutePath">;
|
|
1326
|
-
readonly workspaceID?: (string & import("effect/Brand").Brand<"Workspace.ID">) | undefined;
|
|
1327
|
-
};
|
|
1328
|
-
readonly projectID?: (string & import("effect/Brand").Brand<"Project.ID">) | undefined;
|
|
1329
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
1330
|
-
} | undefined;
|
|
1331
|
-
readonly subpath?: (string & import("effect/Brand").Brand<"RelativePath">) | undefined;
|
|
1332
|
-
} | {
|
|
1333
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1334
|
-
readonly type: "user";
|
|
1335
|
-
readonly time: {
|
|
1336
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1337
|
-
};
|
|
1338
|
-
readonly text: string;
|
|
1339
|
-
readonly metadata?: {
|
|
1340
|
-
readonly [x: string]: unknown;
|
|
1341
|
-
} | undefined;
|
|
1342
|
-
readonly files?: readonly {
|
|
1343
|
-
readonly data: string;
|
|
1344
|
-
readonly source: {
|
|
1345
|
-
readonly type: "inline";
|
|
1346
|
-
} | {
|
|
1347
|
-
readonly type: "uri";
|
|
1348
|
-
readonly uri: string;
|
|
1349
|
-
};
|
|
1350
|
-
readonly mime: string;
|
|
1351
|
-
readonly name?: string | undefined;
|
|
1352
|
-
readonly description?: string | undefined;
|
|
1353
|
-
readonly mention?: {
|
|
1354
|
-
readonly start: number;
|
|
1355
|
-
readonly end: number;
|
|
1356
|
-
readonly text: string;
|
|
1357
|
-
} | undefined;
|
|
1358
|
-
}[] | undefined;
|
|
1359
|
-
readonly agents?: readonly {
|
|
1360
|
-
readonly name: string;
|
|
1361
|
-
readonly mention?: {
|
|
1362
|
-
readonly start: number;
|
|
1363
|
-
readonly end: number;
|
|
1364
|
-
readonly text: string;
|
|
1365
|
-
} | undefined;
|
|
1366
|
-
}[] | undefined;
|
|
1367
|
-
readonly skills?: readonly {
|
|
1368
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
1369
|
-
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
1370
|
-
readonly text?: string | undefined;
|
|
1371
|
-
readonly mention?: {
|
|
1372
|
-
readonly start: number;
|
|
1373
|
-
readonly end: number;
|
|
1374
|
-
readonly text: string;
|
|
1375
|
-
} | undefined;
|
|
1376
|
-
}[] | undefined;
|
|
1377
|
-
} | {
|
|
1378
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1379
|
-
readonly type: "synthetic";
|
|
1380
|
-
readonly time: {
|
|
1381
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1382
|
-
};
|
|
1383
|
-
readonly text: string;
|
|
1384
|
-
readonly description?: string | undefined;
|
|
1385
|
-
readonly metadata?: {
|
|
1386
|
-
readonly [x: string]: unknown;
|
|
1387
|
-
} | undefined;
|
|
1388
|
-
} | {
|
|
1389
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1390
|
-
readonly type: "system";
|
|
1391
|
-
readonly time: {
|
|
1392
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1393
|
-
};
|
|
1394
|
-
readonly text: string;
|
|
1395
|
-
readonly description?: string | undefined;
|
|
1396
|
-
readonly metadata?: {
|
|
1397
|
-
readonly [x: string]: unknown;
|
|
1398
|
-
} | undefined;
|
|
1399
|
-
} | {
|
|
1400
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
1401
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1402
|
-
readonly type: "skill";
|
|
1403
|
-
readonly time: {
|
|
1404
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1405
|
-
};
|
|
1406
|
-
readonly text: string;
|
|
1407
|
-
readonly skill: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
1408
|
-
readonly metadata?: {
|
|
1409
|
-
readonly [x: string]: unknown;
|
|
1410
|
-
} | undefined;
|
|
1411
|
-
} | {
|
|
1412
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1413
|
-
readonly type: "shell";
|
|
1414
|
-
readonly status: "timeout" | "running" | "exited" | "killed";
|
|
1415
|
-
readonly command: string;
|
|
1416
|
-
readonly time: {
|
|
1417
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1418
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1419
|
-
};
|
|
1420
|
-
readonly shellID: string & import("effect/Brand").Brand<"Shell.ID">;
|
|
1421
|
-
readonly metadata?: {
|
|
1422
|
-
readonly [x: string]: unknown;
|
|
1423
|
-
} | undefined;
|
|
1424
|
-
readonly output?: {
|
|
1425
|
-
readonly output: string;
|
|
1426
|
-
readonly cursor: number;
|
|
1427
|
-
readonly size: number;
|
|
1428
|
-
readonly truncated: boolean;
|
|
1429
|
-
} | undefined;
|
|
1430
|
-
readonly exit?: number | undefined;
|
|
1431
|
-
} | {
|
|
1432
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1433
|
-
readonly type: "assistant";
|
|
1434
|
-
readonly time: {
|
|
1435
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1436
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1437
|
-
readonly streamed?: import("effect/DateTime").Utc | undefined;
|
|
1438
|
-
};
|
|
1439
|
-
readonly model: {
|
|
1440
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1441
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1442
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1443
|
-
};
|
|
1444
|
-
readonly content: readonly ({
|
|
1445
|
-
readonly name: string;
|
|
1446
|
-
readonly id: string;
|
|
1447
|
-
readonly type: "tool";
|
|
1448
|
-
readonly state: {
|
|
1449
|
-
readonly status: "streaming";
|
|
1450
|
-
readonly input: string;
|
|
1451
|
-
} | {
|
|
1452
|
-
readonly status: "running";
|
|
1453
|
-
readonly input: {
|
|
1454
|
-
readonly [x: string]: unknown;
|
|
1455
|
-
};
|
|
1456
|
-
readonly metadata: {
|
|
1457
|
-
readonly [x: string]: Schema.Json;
|
|
1458
|
-
};
|
|
1459
|
-
} | {
|
|
1460
|
-
readonly status: "completed";
|
|
1461
|
-
readonly input: {
|
|
1462
|
-
readonly [x: string]: unknown;
|
|
1463
|
-
};
|
|
1464
|
-
readonly content: readonly [{
|
|
1465
|
-
readonly type: "text";
|
|
1466
|
-
readonly text: string;
|
|
1467
|
-
} | {
|
|
1468
|
-
readonly type: "file";
|
|
1469
|
-
readonly uri: string;
|
|
1470
|
-
readonly mime: string;
|
|
1471
|
-
readonly name?: string | undefined;
|
|
1472
|
-
}, ...({
|
|
1473
|
-
readonly type: "text";
|
|
1474
|
-
readonly text: string;
|
|
1475
|
-
} | {
|
|
1476
|
-
readonly type: "file";
|
|
1477
|
-
readonly uri: string;
|
|
1478
|
-
readonly mime: string;
|
|
1479
|
-
readonly name?: string | undefined;
|
|
1480
|
-
})[]];
|
|
1481
|
-
readonly metadata?: {
|
|
1482
|
-
readonly [x: string]: Schema.Json;
|
|
1483
|
-
} | undefined;
|
|
1484
|
-
} | {
|
|
1485
|
-
readonly status: "error";
|
|
1486
|
-
readonly input: {
|
|
1487
|
-
readonly [x: string]: unknown;
|
|
1488
|
-
};
|
|
1489
|
-
readonly error: {
|
|
1490
|
-
readonly type: string;
|
|
1491
|
-
readonly message: string;
|
|
1492
|
-
readonly status?: number | undefined;
|
|
1493
|
-
readonly response?: {
|
|
1494
|
-
readonly body: string;
|
|
1495
|
-
} | undefined;
|
|
1496
|
-
};
|
|
1497
|
-
readonly metadata?: {
|
|
1498
|
-
readonly [x: string]: Schema.Json;
|
|
1499
|
-
} | undefined;
|
|
1500
|
-
readonly content?: readonly [{
|
|
1501
|
-
readonly type: "text";
|
|
1502
|
-
readonly text: string;
|
|
1503
|
-
} | {
|
|
1504
|
-
readonly type: "file";
|
|
1505
|
-
readonly uri: string;
|
|
1506
|
-
readonly mime: string;
|
|
1507
|
-
readonly name?: string | undefined;
|
|
1508
|
-
}, ...({
|
|
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
|
-
})[]] | undefined;
|
|
1517
|
-
};
|
|
1518
|
-
readonly time: {
|
|
1519
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1520
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1521
|
-
readonly ran?: import("effect/DateTime").Utc | undefined;
|
|
1522
|
-
};
|
|
1523
|
-
readonly executed?: boolean | undefined;
|
|
1524
|
-
readonly providerState?: {
|
|
1525
|
-
readonly [x: string]: unknown;
|
|
1526
|
-
} | undefined;
|
|
1527
|
-
readonly providerResultState?: {
|
|
1528
|
-
readonly [x: string]: unknown;
|
|
1529
|
-
} | undefined;
|
|
1530
|
-
} | {
|
|
1531
|
-
readonly type: "text";
|
|
1532
|
-
readonly text: string;
|
|
1533
|
-
readonly state?: {
|
|
1534
|
-
readonly [x: string]: unknown;
|
|
1535
|
-
} | undefined;
|
|
1536
|
-
} | {
|
|
1537
|
-
readonly type: "reasoning";
|
|
1538
|
-
readonly text: string;
|
|
1539
|
-
readonly state?: {
|
|
1540
|
-
readonly [x: string]: unknown;
|
|
1541
|
-
} | undefined;
|
|
1542
|
-
readonly time?: {
|
|
1543
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1544
|
-
readonly completed?: import("effect/DateTime").Utc | undefined;
|
|
1545
|
-
} | undefined;
|
|
1546
|
-
})[];
|
|
1547
|
-
readonly agent: string & import("effect/Brand").Brand<"Agent.ID">;
|
|
1548
|
-
readonly metadata?: {
|
|
1549
|
-
readonly [x: string]: unknown;
|
|
1550
|
-
} | undefined;
|
|
1551
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1552
|
-
readonly error?: {
|
|
1553
|
-
readonly type: string;
|
|
1554
|
-
readonly message: string;
|
|
1555
|
-
readonly status?: number | undefined;
|
|
1556
|
-
readonly response?: {
|
|
1557
|
-
readonly body: string;
|
|
1558
|
-
} | undefined;
|
|
1559
|
-
} | undefined;
|
|
1560
|
-
readonly providerState?: {
|
|
1561
|
-
readonly [x: string]: unknown;
|
|
1562
|
-
} | undefined;
|
|
1563
|
-
readonly snapshot?: {
|
|
1564
|
-
readonly start?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
1565
|
-
readonly end?: (string & import("effect/Brand").Brand<"Snapshot.ID">) | undefined;
|
|
1566
|
-
readonly files?: readonly (string & import("effect/Brand").Brand<"RelativePath">)[] | undefined;
|
|
1567
|
-
} | undefined;
|
|
1568
|
-
readonly finish?: "length" | "error" | "stop" | "tool-calls" | "content-filter" | "unknown" | undefined;
|
|
1569
|
-
readonly rawFinish?: string | undefined;
|
|
1570
|
-
readonly tokens?: {
|
|
1571
|
-
readonly input: number;
|
|
1572
|
-
readonly output: number;
|
|
1573
|
-
readonly reasoning: number;
|
|
1574
|
-
readonly cache: {
|
|
1575
|
-
readonly read: number;
|
|
1576
|
-
readonly write: number;
|
|
1577
|
-
};
|
|
1578
|
-
} | undefined;
|
|
1579
|
-
readonly retry?: {
|
|
1580
|
-
readonly attempt: number;
|
|
1581
|
-
readonly at: import("effect/DateTime").Utc;
|
|
1582
|
-
readonly error: {
|
|
1583
|
-
readonly type: string;
|
|
1584
|
-
readonly message: string;
|
|
1585
|
-
readonly status?: number | undefined;
|
|
1586
|
-
readonly response?: {
|
|
1587
|
-
readonly body: string;
|
|
1588
|
-
} | undefined;
|
|
1589
|
-
};
|
|
1590
|
-
} | undefined;
|
|
1591
|
-
} | {
|
|
1592
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1593
|
-
readonly type: "compaction";
|
|
1594
|
-
readonly status: "running";
|
|
1595
|
-
readonly time: {
|
|
1596
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1597
|
-
};
|
|
1598
|
-
readonly summary: string;
|
|
1599
|
-
readonly reason: "auto" | "manual";
|
|
1600
|
-
readonly recent: string;
|
|
1601
|
-
readonly metadata?: {
|
|
1602
|
-
readonly [x: string]: unknown;
|
|
1603
|
-
} | undefined;
|
|
1604
|
-
} | {
|
|
1605
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1606
|
-
readonly type: "compaction";
|
|
1607
|
-
readonly status: "completed";
|
|
1608
|
-
readonly time: {
|
|
1609
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1610
|
-
};
|
|
1611
|
-
readonly summary: string;
|
|
1612
|
-
readonly reason: "auto" | "manual";
|
|
1613
|
-
readonly recent: string;
|
|
1614
|
-
readonly metadata?: {
|
|
1615
|
-
readonly [x: string]: unknown;
|
|
1616
|
-
} | undefined;
|
|
1617
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1618
|
-
readonly model?: {
|
|
1619
|
-
readonly id: string & import("effect/Brand").Brand<"Model.ID">;
|
|
1620
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1621
|
-
readonly variant?: (string & import("effect/Brand").Brand<"Model.VariantID">) | undefined;
|
|
1622
|
-
} | undefined;
|
|
1623
|
-
readonly providerState?: {
|
|
1624
|
-
readonly [x: string]: unknown;
|
|
1625
|
-
} | undefined;
|
|
1626
|
-
readonly tokens?: {
|
|
1627
|
-
readonly input: number;
|
|
1628
|
-
readonly output: number;
|
|
1629
|
-
readonly reasoning: number;
|
|
1630
|
-
readonly cache: {
|
|
1631
|
-
readonly read: number;
|
|
1632
|
-
readonly write: number;
|
|
1633
|
-
};
|
|
1634
|
-
} | undefined;
|
|
1635
|
-
readonly providerContext?: {
|
|
1636
|
-
readonly version: 1;
|
|
1637
|
-
readonly provenance: {
|
|
1638
|
-
readonly providerID: string & import("effect/Brand").Brand<"Provider.ID">;
|
|
1639
|
-
readonly provider: string;
|
|
1640
|
-
readonly modelID: string;
|
|
1641
|
-
readonly route: string;
|
|
1642
|
-
readonly protocol: string;
|
|
1643
|
-
readonly endpoint: string;
|
|
1644
|
-
};
|
|
1645
|
-
readonly messages: Schema.Json;
|
|
1646
|
-
} | undefined;
|
|
1647
|
-
} | {
|
|
1648
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1649
|
-
readonly type: "compaction";
|
|
1650
|
-
readonly status: "failed";
|
|
1651
|
-
readonly time: {
|
|
1652
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1653
|
-
};
|
|
1654
|
-
readonly error: {
|
|
1655
|
-
readonly type: string;
|
|
1656
|
-
readonly message: string;
|
|
1657
|
-
readonly status?: number | undefined;
|
|
1658
|
-
readonly response?: {
|
|
1659
|
-
readonly body: string;
|
|
1660
|
-
} | undefined;
|
|
1661
|
-
};
|
|
1662
|
-
readonly reason: "auto" | "manual";
|
|
1663
|
-
readonly metadata?: {
|
|
1664
|
-
readonly [x: string]: unknown;
|
|
1665
|
-
} | undefined;
|
|
1666
|
-
readonly cost?: (number & import("effect/Brand").Brand<"Money.USD">) | undefined;
|
|
1667
|
-
readonly tokens?: {
|
|
1668
|
-
readonly input: number;
|
|
1669
|
-
readonly output: number;
|
|
1670
|
-
readonly reasoning: number;
|
|
1671
|
-
readonly cache: {
|
|
1672
|
-
readonly read: number;
|
|
1673
|
-
readonly write: number;
|
|
1674
|
-
};
|
|
1675
|
-
} | undefined;
|
|
1676
|
-
} | {
|
|
1677
|
-
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1678
|
-
readonly type: "idle";
|
|
1679
|
-
readonly time: {
|
|
1680
|
-
readonly created: import("effect/DateTime").Utc;
|
|
1681
|
-
};
|
|
1682
|
-
readonly outcome: "failed" | "succeeded" | "interrupted";
|
|
1683
|
-
readonly metadata?: {
|
|
1684
|
-
readonly [x: string]: unknown;
|
|
1685
|
-
} | undefined;
|
|
1686
|
-
readonly error?: {
|
|
1687
|
-
readonly type: string;
|
|
1688
|
-
readonly message: string;
|
|
1689
|
-
readonly status?: number | undefined;
|
|
1690
|
-
readonly response?: {
|
|
1691
|
-
readonly body: string;
|
|
1692
|
-
} | undefined;
|
|
1693
|
-
} | undefined;
|
|
1694
|
-
})[];
|
|
841
|
+
messages: SessionMessage.Info[];
|
|
1695
842
|
instructionUpdate: string;
|
|
1696
843
|
}, Instructions.InitializationBlocked, never>;
|
|
1697
844
|
/** Returns the session's first user message. */
|
|
@@ -1699,23 +846,22 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
|
|
|
1699
846
|
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1700
847
|
}, sessionID: string & import("effect/Brand").Brand<"SessionID">) => Effect.Effect<{
|
|
1701
848
|
readonly id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1702
|
-
readonly
|
|
849
|
+
readonly metadata?: {
|
|
850
|
+
readonly [x: string]: unknown;
|
|
851
|
+
} | undefined;
|
|
1703
852
|
readonly time: {
|
|
1704
853
|
readonly created: import("effect/DateTime").Utc;
|
|
1705
854
|
};
|
|
1706
855
|
readonly text: string;
|
|
1707
|
-
readonly metadata?: {
|
|
1708
|
-
readonly [x: string]: unknown;
|
|
1709
|
-
} | undefined;
|
|
1710
856
|
readonly files?: readonly {
|
|
1711
857
|
readonly data: string;
|
|
858
|
+
readonly mime: string;
|
|
1712
859
|
readonly source: {
|
|
1713
860
|
readonly type: "inline";
|
|
1714
861
|
} | {
|
|
1715
862
|
readonly type: "uri";
|
|
1716
863
|
readonly uri: string;
|
|
1717
864
|
};
|
|
1718
|
-
readonly mime: string;
|
|
1719
865
|
readonly name?: string | undefined;
|
|
1720
866
|
readonly description?: string | undefined;
|
|
1721
867
|
readonly mention?: {
|
|
@@ -1733,8 +879,8 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
|
|
|
1733
879
|
} | undefined;
|
|
1734
880
|
}[] | undefined;
|
|
1735
881
|
readonly skills?: readonly {
|
|
1736
|
-
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
1737
882
|
readonly id: string & import("effect/Brand").Brand<"Skill.ID">;
|
|
883
|
+
readonly name: string & import("effect/Brand").Brand<"Skill.Name">;
|
|
1738
884
|
readonly text?: string | undefined;
|
|
1739
885
|
readonly mention?: {
|
|
1740
886
|
readonly start: number;
|
|
@@ -1742,5 +888,6 @@ export declare const firstUserMessage: (db: import("../database/drizzle.js").Eff
|
|
|
1742
888
|
readonly text: string;
|
|
1743
889
|
} | undefined;
|
|
1744
890
|
}[] | undefined;
|
|
891
|
+
readonly type: "user";
|
|
1745
892
|
} | undefined, never, never>;
|
|
1746
893
|
export * as SessionHistory from "./history.js";
|