@opencode/core 0.0.0-dev-21907 → 0.0.0-dev-21915
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +89 -89
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/{bus-8bc2ahr8.js → event-logger-033a0jkt.js} +3 -3
- package/dist/chunks/{bus-034tev2y.js → event-logger-034tev2y.js} +2 -2
- package/dist/chunks/{bus-bk82rjt0.js → event-logger-061dfjk9.js} +8 -8
- package/dist/chunks/{bus-sw24syn0.js → event-logger-0eyqpy28.js} +32 -32
- package/dist/chunks/{bus-bk5yxjph.js → event-logger-0mg8kcn3.js} +43 -14
- package/dist/chunks/{bus-03by3cwk.js → event-logger-0svvf4a3.js} +38 -38
- package/dist/chunks/{bus-eee67rgn.js → event-logger-0xy3w4m6.js} +8 -8
- package/dist/chunks/{bus-f5tgpm46.js → event-logger-179sgv51.js} +27 -27
- package/dist/chunks/{bus-99jatacy.js → event-logger-1db62psx.js} +37 -37
- package/dist/chunks/{bus-1ep2p91f.js → event-logger-1ep2p91f.js} +2 -2
- package/dist/chunks/{bus-mycebjfh.js → event-logger-1fnhqpt4.js} +16 -16
- package/dist/chunks/{bus-r971zhf3.js → event-logger-1nsj622r.js} +16 -16
- package/dist/chunks/{bus-7rnxwetx.js → event-logger-1qjnrqep.js} +11 -11
- package/dist/chunks/{bus-ajd5hdww.js → event-logger-1rjegszx.js} +4 -4
- package/dist/chunks/{bus-1x2knyw4.js → event-logger-1x2knyw4.js} +1 -1
- package/dist/chunks/{bus-hykv42xb.js → event-logger-1z6t7raf.js} +6 -6
- package/dist/chunks/{bus-204s3925.js → event-logger-204s3925.js} +1 -1
- package/dist/chunks/{bus-q3v19tnv.js → event-logger-213mv4pq.js} +16 -16
- package/dist/chunks/{bus-aznc0wg6.js → event-logger-2dbq5t1r.js} +15 -15
- package/dist/chunks/{bus-hycgcsfg.js → event-logger-2kc953ej.js} +21 -21
- package/dist/chunks/{bus-q7k7k9zt.js → event-logger-2nf2vr7j.js} +14 -14
- package/dist/chunks/{bus-5kgs3fk1.js → event-logger-2yvtks3w.js} +3 -3
- package/dist/chunks/{bus-2z1j29yd.js → event-logger-2z1j29yd.js} +1 -1
- package/dist/chunks/{bus-dhmvnrgm.js → event-logger-30147ds3.js} +6 -6
- package/dist/chunks/{bus-vdevhkrp.js → event-logger-331zmft7.js} +15 -15
- package/dist/chunks/{bus-5gj3tx04.js → event-logger-33j2zr63.js} +90 -90
- package/dist/chunks/{bus-ysmsbjaj.js → event-logger-3h86dkjt.js} +13 -13
- package/dist/chunks/{bus-3hepkmqq.js → event-logger-3hepkmqq.js} +1 -1
- package/dist/chunks/{bus-e62eb929.js → event-logger-3jazymwx.js} +17 -17
- package/dist/chunks/{bus-3nnrz6f6.js → event-logger-3nnrz6f6.js} +1 -1
- package/dist/chunks/{bus-sfdjt92e.js → event-logger-408nx0y9.js} +42 -42
- package/dist/chunks/{bus-w2eysc6j.js → event-logger-40za9wsf.js} +9 -9
- package/dist/chunks/{bus-8e1cbgyq.js → event-logger-410zp742.js} +27 -27
- package/dist/chunks/{bus-qjvfpt08.js → event-logger-43c01wrt.js} +19 -19
- package/dist/chunks/{bus-1698wpxp.js → event-logger-44552vd9.js} +13 -13
- package/dist/chunks/{bus-a9pjz7vk.js → event-logger-4538h11c.js} +7 -7
- package/dist/chunks/{bus-rvy9q8yv.js → event-logger-4dtq8qg7.js} +60 -60
- package/dist/chunks/{bus-c6esxhxn.js → event-logger-4m87gk4h.js} +2 -2
- package/dist/chunks/event-logger-4my81qaj.js +18 -0
- package/dist/chunks/{bus-exmjyqxw.js → event-logger-4pkf34m0.js} +77 -77
- package/dist/chunks/{bus-4v008n1t.js → event-logger-4v008n1t.js} +1 -1
- package/dist/chunks/{bus-80h5wm4e.js → event-logger-4xa9359s.js} +9 -9
- package/dist/chunks/{bus-4xvmh7wp.js → event-logger-4xvmh7wp.js} +3 -3
- package/dist/chunks/{bus-jrbr2x0q.js → event-logger-4zf9yj1j.js} +115 -35
- package/dist/chunks/{bus-mvcrexfa.js → event-logger-530cxj2z.js} +35 -35
- package/dist/chunks/{bus-bc9saq22.js → event-logger-57p1m9rz.js} +32 -32
- package/dist/chunks/{bus-7y435gmv.js → event-logger-58fpqt79.js} +9 -9
- package/dist/chunks/{bus-3e8ceph6.js → event-logger-5cppamkc.js} +23 -23
- package/dist/chunks/{bus-5m9w47nd.js → event-logger-5m9w47nd.js} +1 -1
- package/dist/chunks/{bus-vtpazhgh.js → event-logger-5r72z9dp.js} +8 -8
- package/dist/chunks/{bus-k5d4j8z4.js → event-logger-5rn25pwd.js} +21 -21
- package/dist/chunks/{bus-gk1qs540.js → event-logger-5rt97jkw.js} +12 -12
- package/dist/chunks/{bus-p7vhpwh8.js → event-logger-5zrxpy3q.js} +5 -5
- package/dist/chunks/{bus-p5vmjcfz.js → event-logger-618s5217.js} +14 -14
- package/dist/chunks/{bus-14g7fecp.js → event-logger-68ms0fh2.js} +23 -23
- package/dist/chunks/{bus-6esdw8yj.js → event-logger-6esdw8yj.js} +1 -1
- package/dist/chunks/{bus-1vzhn0q5.js → event-logger-6nye8dts.js} +9 -9
- package/dist/chunks/{bus-6pjqjmy2.js → event-logger-6pjqjmy2.js} +1 -1
- package/dist/chunks/{bus-2hpnm9qe.js → event-logger-6szn2v48.js} +37 -37
- package/dist/chunks/{bus-6xqtcmxs.js → event-logger-6y263vp8.js} +5 -5
- package/dist/chunks/{bus-k1pmdhpd.js → event-logger-6yv8zpps.js} +21 -13
- package/dist/chunks/{bus-76cb1hcw.js → event-logger-76cb1hcw.js} +1 -1
- package/dist/chunks/{bus-qbstm7ap.js → event-logger-76szp9yy.js} +46 -46
- package/dist/chunks/{bus-tcgwp76v.js → event-logger-77s6zpp3.js} +27 -27
- package/dist/chunks/{bus-zqmcp0g3.js → event-logger-78n4qc0z.js} +4 -4
- package/dist/chunks/{bus-7bmhse3q.js → event-logger-7bmhse3q.js} +1 -1
- package/dist/chunks/{bus-myhb5naa.js → event-logger-7che9vcx.js} +22 -22
- package/dist/chunks/event-logger-7q08zbzq.js +26 -0
- package/dist/chunks/{bus-afrxa0gm.js → event-logger-7vz8pb8x.js} +45 -45
- package/dist/chunks/{bus-7w2ypzdf.js → event-logger-7w2ypzdf.js} +1 -1
- package/dist/chunks/{bus-pfaba2d9.js → event-logger-7ytgdqqc.js} +25 -25
- package/dist/chunks/{bus-3td5s6k1.js → event-logger-83fr3fym.js} +16 -16
- package/dist/chunks/{bus-cytdwc0b.js → event-logger-86g6sxng.js} +12 -12
- package/dist/chunks/{bus-9jm2pk93.js → event-logger-886bz3e9.js} +58 -32
- package/dist/chunks/{bus-jas55q5n.js → event-logger-88a5ws0g.js} +22 -22
- package/dist/chunks/{bus-tpmb1y7t.js → event-logger-8aemar9r.js} +47 -47
- package/dist/chunks/{bus-1bt9vvmj.js → event-logger-8h2npe5w.js} +4 -4
- package/dist/chunks/{bus-11hfp36g.js → event-logger-8jztxfpf.js} +4 -4
- package/dist/chunks/{bus-9g4cv0f3.js → event-logger-8k8s1td8.js} +5 -5
- package/dist/chunks/{bus-8wtp7s3z.js → event-logger-8wtp7s3z.js} +1 -1
- package/dist/chunks/{bus-91rj84md.js → event-logger-91rj84md.js} +1 -1
- package/dist/chunks/event-logger-99bhpp1n.js +517 -0
- package/dist/chunks/{bus-qfw3wr58.js → event-logger-9crppwnt.js} +13 -13
- package/dist/chunks/{bus-9cx9sm2q.js → event-logger-9cx9sm2q.js} +1 -1
- package/dist/chunks/{bus-fj3j5kfg.js → event-logger-9f7hjvpa.js} +17 -17
- package/dist/chunks/{bus-r9zrswe1.js → event-logger-9r0x1bva.js} +9 -9
- package/dist/chunks/{bus-515bhrak.js → event-logger-9rr00cqq.js} +34 -34
- package/dist/chunks/{bus-5h0dvzfk.js → event-logger-9s0e97ng.js} +35 -35
- package/dist/chunks/{bus-zh7bbm8x.js → event-logger-9z9tayqc.js} +9 -9
- package/dist/chunks/{bus-226302vw.js → event-logger-a32zpqad.js} +11 -11
- package/dist/chunks/{bus-hqvan761.js → event-logger-a52e4zaq.js} +5 -5
- package/dist/chunks/{bus-q5cprkbt.js → event-logger-a8sm5zt7.js} +14 -14
- package/dist/chunks/{bus-3cdqwz07.js → event-logger-akgtqb0c.js} +11 -11
- package/dist/chunks/{bus-ayjs7tqn.js → event-logger-ayjs7tqn.js} +2 -2
- package/dist/chunks/{bus-b0mv4wxm.js → event-logger-b0mv4wxm.js} +2 -2
- package/dist/chunks/{bus-spg2ankq.js → event-logger-b42k84jp.js} +21 -21
- package/dist/chunks/{bus-b6vsg801.js → event-logger-b6vsg801.js} +2 -2
- package/dist/chunks/{bus-hp3ha1q3.js → event-logger-b8teqy6w.js} +5 -5
- package/dist/chunks/{bus-xkrnyxxn.js → event-logger-basczpv8.js} +16 -16
- package/dist/chunks/{bus-68wbjj2w.js → event-logger-bf5n42xj.js} +9 -9
- package/dist/chunks/{bus-ydntad1m.js → event-logger-bfbc4kpy.js} +11 -11
- package/dist/chunks/{bus-cetxr85h.js → event-logger-bn6jkna4.js} +18 -18
- package/dist/chunks/{bus-6gfebbwh.js → event-logger-bqe25t1z.js} +5 -5
- package/dist/chunks/{bus-jneg3k74.js → event-logger-brd5eeq0.js} +8 -8
- package/dist/chunks/{bus-wgvnftve.js → event-logger-bvn4drfw.js} +8 -8
- package/dist/chunks/{bus-10p7wcyn.js → event-logger-bw78fe9b.js} +54 -18
- package/dist/chunks/{bus-5z4n6s5s.js → event-logger-bwsx8aca.js} +13 -13
- package/dist/chunks/{bus-wp3y1jpf.js → event-logger-c1df77m2.js} +18 -18
- package/dist/chunks/{bus-fm2qhnd3.js → event-logger-c1gsg3g8.js} +14 -14
- package/dist/chunks/{bus-c3qykf74.js → event-logger-c36nnf6h.js} +6 -6
- package/dist/chunks/{bus-s7871ny9.js → event-logger-c9pz1jz6.js} +5 -5
- package/dist/chunks/{bus-fhgyx4at.js → event-logger-cdgpjepk.js} +34 -34
- package/dist/chunks/event-logger-cfbx046s.js +257 -0
- package/dist/chunks/{bus-04gncrqj.js → event-logger-ch94d7vp.js} +5 -5
- package/dist/chunks/{bus-6r5g3pq8.js → event-logger-ck0tns3b.js} +46 -46
- package/dist/chunks/{bus-2azy8kv6.js → event-logger-cpvd08na.js} +4 -4
- package/dist/chunks/{bus-t3033492.js → event-logger-cqgy4j9b.js} +35 -35
- package/dist/chunks/{bus-d4v9tmah.js → event-logger-d4v9tmah.js} +2 -2
- package/dist/chunks/{bus-gs1z16pn.js → event-logger-dj4zrkts.js} +4 -4
- package/dist/chunks/{bus-6affpbgf.js → event-logger-dwcq4ckc.js} +12 -12
- package/dist/chunks/{bus-1f4j80qx.js → event-logger-dynzjwsk.js} +4 -4
- package/dist/chunks/{bus-y5vreq9e.js → event-logger-dzd14etx.js} +23 -23
- package/dist/chunks/{bus-bc5vr1tk.js → event-logger-e066yxsa.js} +32 -32
- package/dist/chunks/{bus-d1vjhdaq.js → event-logger-e19z48h8.js} +11 -11
- package/dist/chunks/{bus-6cahmqzr.js → event-logger-e6bk7rc7.js} +8 -8
- package/dist/chunks/{bus-e834z07m.js → event-logger-e834z07m.js} +1 -1
- package/dist/chunks/{bus-zapg5c8t.js → event-logger-ejnhfpwt.js} +35 -35
- package/dist/chunks/{bus-e07q2w5p.js → event-logger-eky6j0x6.js} +9 -9
- package/dist/chunks/{bus-rjfy8y8x.js → event-logger-ez16syfw.js} +9 -9
- package/dist/chunks/{bus-xffzqra6.js → event-logger-f1bpp1ef.js} +23 -23
- package/dist/chunks/{bus-7kh9v0xt.js → event-logger-f1gxq19d.js} +1 -1
- package/dist/chunks/{bus-aqvzed2h.js → event-logger-f7aqmhgm.js} +11 -11
- package/dist/chunks/{bus-v4p0p4kr.js → event-logger-f9c14s45.js} +6 -6
- package/dist/chunks/{bus-b5c00j6w.js → event-logger-fa5mv2e8.js} +23 -23
- package/dist/chunks/{bus-fffv3p7h.js → event-logger-fffv3p7h.js} +1 -1
- package/dist/chunks/{bus-4y19xy8j.js → event-logger-fh08m5h2.js} +4 -4
- package/dist/chunks/{bus-jtx89zvm.js → event-logger-fjg1f0qa.js} +26 -26
- package/dist/chunks/{bus-bwc7gg3f.js → event-logger-frm2a0t2.js} +9 -9
- package/dist/chunks/{bus-0h8y3ex8.js → event-logger-fznmdakp.js} +4 -4
- package/dist/chunks/{bus-x34gj20p.js → event-logger-g179cxj4.js} +53 -53
- package/dist/chunks/{bus-szt7mzga.js → event-logger-g1ac2pg3.js} +7 -7
- package/dist/chunks/{bus-g5h9c0rr.js → event-logger-g5h9c0rr.js} +2 -2
- package/dist/chunks/{bus-mj0wev1x.js → event-logger-g6dfma3d.js} +8 -8
- package/dist/chunks/{bus-9xpkbkd8.js → event-logger-ga597wxg.js} +22 -22
- package/dist/chunks/{bus-gg8p9cgs.js → event-logger-gg8p9cgs.js} +3 -3
- package/dist/chunks/{bus-9dm89msm.js → event-logger-gy4a15hj.js} +47 -47
- package/dist/chunks/{bus-e8pm465n.js → event-logger-h3b857xk.js} +4 -4
- package/dist/chunks/{bus-wy5w0ez1.js → event-logger-h9sxfnc4.js} +31 -31
- package/dist/chunks/{bus-af0k6e03.js → event-logger-hdfrs5mg.js} +9 -9
- package/dist/chunks/{bus-hwjd680m.js → event-logger-herh7hrd.js} +8 -8
- package/dist/chunks/{bus-bm3zd2ag.js → event-logger-hgbyz31g.js} +24 -24
- package/dist/chunks/{bus-v4q5wt5v.js → event-logger-hh6grysg.js} +4 -4
- package/dist/chunks/{bus-xtk0javm.js → event-logger-ht33fk1k.js} +12 -12
- package/dist/chunks/{bus-q5qtpxs8.js → event-logger-hwadrnp3.js} +12 -12
- package/dist/chunks/{bus-qryxyvz8.js → event-logger-hzqt23km.js} +41 -26
- package/dist/chunks/{bus-j113cymg.js → event-logger-j113cymg.js} +1 -1
- package/dist/chunks/{bus-0h2835nb.js → event-logger-j4danyaa.js} +4 -4
- package/dist/chunks/{bus-6627vg6e.js → event-logger-j7e2k5v8.js} +48 -48
- package/dist/chunks/{bus-861vpyk2.js → event-logger-jtk69epa.js} +31 -31
- package/dist/chunks/{bus-naqeecrg.js → event-logger-jv1fc1mx.js} +14 -14
- package/dist/chunks/{bus-arp7s6mb.js → event-logger-jxr5ks98.js} +6 -6
- package/dist/chunks/{bus-60b2sysp.js → event-logger-jz593hnq.js} +17 -17
- package/dist/chunks/{bus-k814nvkf.js → event-logger-k814nvkf.js} +1 -1
- package/dist/chunks/{bus-8td7g64v.js → event-logger-k8ya5e1r.js} +25 -25
- package/dist/chunks/{bus-a9zg9389.js → event-logger-kfvrqrnd.js} +21 -21
- package/dist/chunks/{bus-1rhv3m8s.js → event-logger-khycn197.js} +9 -9
- package/dist/chunks/{bus-b7j9y52a.js → event-logger-kqdytwcc.js} +25 -25
- package/dist/chunks/{bus-kt3bjfbg.js → event-logger-kt3bjfbg.js} +1 -1
- package/dist/chunks/{bus-dmmsnc6x.js → event-logger-kv7q9t9v.js} +55 -55
- package/dist/chunks/{bus-hcy860gy.js → event-logger-m0b3df16.js} +15 -15
- package/dist/chunks/{bus-m1714858.js → event-logger-m1714858.js} +1 -1
- package/dist/chunks/{bus-325yf8q3.js → event-logger-m239h48j.js} +16 -16
- package/dist/chunks/{bus-06w9ffrv.js → event-logger-m37sd98t.js} +7 -7
- package/dist/chunks/{bus-m9w0rfyh.js → event-logger-m9w0rfyh.js} +1 -1
- package/dist/chunks/{bus-maspj1v3.js → event-logger-maspj1v3.js} +1 -1
- package/dist/chunks/{bus-fnb09ptv.js → event-logger-mby4m2vn.js} +11 -11
- package/dist/chunks/{bus-evvtn3fj.js → event-logger-md82vg28.js} +20 -20
- package/dist/chunks/{bus-arzaa4xc.js → event-logger-mfp9msn1.js} +47 -47
- package/dist/chunks/{bus-7s5fxt8e.js → event-logger-mptppmq7.js} +5 -5
- package/dist/chunks/{bus-2sa2kvy2.js → event-logger-mq16y592.js} +3 -3
- package/dist/chunks/{bus-38ys11y3.js → event-logger-mtrbqqrq.js} +5 -5
- package/dist/chunks/{bus-ma08g9ez.js → event-logger-mzrr2ceq.js} +21 -21
- package/dist/chunks/{bus-gcjdgkn2.js → event-logger-n7bnkb3p.js} +9 -9
- package/dist/chunks/{bus-nah043kf.js → event-logger-nah043kf.js} +1 -1
- package/dist/chunks/{bus-91yegc2e.js → event-logger-nfht88f8.js} +40 -40
- package/dist/chunks/{bus-anc00zx6.js → event-logger-nn2wptpk.js} +5 -5
- package/dist/chunks/{bus-ts7mkfs9.js → event-logger-nvxqht09.js} +3 -3
- package/dist/chunks/{bus-8vn9yywk.js → event-logger-nz5t40nw.js} +16 -16
- package/dist/chunks/{bus-p015t6z3.js → event-logger-p015t6z3.js} +2 -2
- package/dist/chunks/{bus-6pjkp994.js → event-logger-p2nmcv9d.js} +13 -13
- package/dist/chunks/{bus-vkbfpqv2.js → event-logger-p3kn9h9d.js} +24 -24
- package/dist/chunks/{bus-g42b6ca9.js → event-logger-p76me67c.js} +4 -4
- package/dist/chunks/{bus-qvphs0ax.js → event-logger-pacbbjc0.js} +7 -7
- package/dist/chunks/{bus-gp09h32c.js → event-logger-pap6y6k1.js} +224 -199
- package/dist/chunks/{bus-xembn6mc.js → event-logger-peyy5ms6.js} +26 -24
- package/dist/chunks/{bus-qbvxytes.js → event-logger-phatgdjg.js} +20 -20
- package/dist/chunks/{bus-pknna89w.js → event-logger-pknna89w.js} +1 -1
- package/dist/chunks/{bus-cbh9yhw2.js → event-logger-pmbbezah.js} +18 -18
- package/dist/chunks/{bus-7q6zejkd.js → event-logger-pqzzv18e.js} +17 -17
- package/dist/chunks/{bus-mm7a63e9.js → event-logger-prq7xxp2.js} +8 -8
- package/dist/chunks/{bus-gjm7strt.js → event-logger-psvq06ac.js} +4 -4
- package/dist/chunks/{bus-p1vte9h6.js → event-logger-pymyzg4j.js} +11 -11
- package/dist/chunks/{bus-nvd7c3zs.js → event-logger-q05tgvb2.js} +4 -4
- package/dist/chunks/{bus-t6a716ee.js → event-logger-q2vz9kat.js} +20 -20
- package/dist/chunks/{bus-t3ktgnsz.js → event-logger-q61wn67c.js} +15 -15
- package/dist/chunks/{bus-1m8y6k7r.js → event-logger-qa95shqj.js} +20 -20
- package/dist/chunks/{bus-ny3z2qsn.js → event-logger-qa9tft3h.js} +120 -94
- package/dist/chunks/{bus-yk7190x1.js → event-logger-qd1s09xq.js} +24 -24
- package/dist/chunks/{bus-fmg43r8j.js → event-logger-qfjvy58c.js} +6 -6
- package/dist/chunks/{bus-de9p47jd.js → event-logger-qg7vbzw0.js} +27 -27
- package/dist/chunks/{bus-tk15c3h1.js → event-logger-qgehj1ry.js} +23 -23
- package/dist/chunks/{bus-hryaegyv.js → event-logger-qnxr7c2a.js} +6 -6
- package/dist/chunks/{bus-sr4pc43g.js → event-logger-qwcg15xq.js} +2 -2
- package/dist/chunks/{bus-r0yr0wbs.js → event-logger-r0yr0wbs.js} +1 -1
- package/dist/chunks/{bus-r542h3bh.js → event-logger-r542h3bh.js} +1 -1
- package/dist/chunks/{bus-rb9dy4dg.js → event-logger-rb9dy4dg.js} +1 -1
- package/dist/chunks/{bus-6t25ffne.js → event-logger-re1qaq4d.js} +15 -15
- package/dist/chunks/{bus-bhntk9z8.js → event-logger-rrd1tyyg.js} +5 -5
- package/dist/chunks/{bus-rt5dr6hb.js → event-logger-rt5dr6hb.js} +1 -1
- package/dist/chunks/{bus-ayp6ft07.js → event-logger-ryaxndx4.js} +37 -37
- package/dist/chunks/{bus-zzdv5d93.js → event-logger-s626qfae.js} +4 -4
- package/dist/chunks/{bus-6q9ah33w.js → event-logger-sa2m7fmb.js} +21 -21
- package/dist/chunks/{bus-sa3fpqfw.js → event-logger-sa3fpqfw.js} +2 -2
- package/dist/chunks/{bus-f8n4mxy8.js → event-logger-sc7s3392.js} +15 -15
- package/dist/chunks/{bus-7v4nb4v9.js → event-logger-sfe1x69m.js} +41 -41
- package/dist/chunks/{bus-hrt6tjqe.js → event-logger-shd4apfp.js} +5 -5
- package/dist/chunks/{bus-e154t17g.js → event-logger-shdc20fs.js} +14 -14
- package/dist/chunks/{bus-88s42yqx.js → event-logger-sjt0aqsb.js} +25 -25
- package/dist/chunks/{bus-ysc6sw8a.js → event-logger-sk0dcrgn.js} +1 -1
- package/dist/chunks/{bus-m3gs1vdh.js → event-logger-skpj3wch.js} +13 -13
- package/dist/chunks/{bus-sqjzf8x2.js → event-logger-sqjzf8x2.js} +1 -1
- package/dist/chunks/{bus-kkqethq7.js → event-logger-ssfehs1z.js} +4 -4
- package/dist/chunks/{bus-ze66xykb.js → event-logger-ssv8d6ry.js} +3 -3
- package/dist/chunks/{bus-bbd87rcg.js → event-logger-st4dmjma.js} +51 -51
- package/dist/chunks/{bus-3t73xeyv.js → event-logger-st7p3hwb.js} +2 -2
- package/dist/chunks/{bus-tjfw40a7.js → event-logger-sy707q11.js} +11 -11
- package/dist/chunks/{bus-ck985c68.js → event-logger-syrbqdmj.js} +21 -21
- package/dist/chunks/{bus-vgfth9qf.js → event-logger-t5zwprfx.js} +30 -30
- package/dist/chunks/{bus-jcvnbv1k.js → event-logger-t7z44kv1.js} +33 -33
- package/dist/chunks/{bus-y3tjenf1.js → event-logger-tbx1dsy3.js} +23 -23
- package/dist/chunks/{bus-78mmhka5.js → event-logger-tcjkzhbf.js} +19 -19
- package/dist/chunks/{bus-tczq8hjw.js → event-logger-tczq8hjw.js} +1 -1
- package/dist/chunks/{bus-9xjbx8n2.js → event-logger-td0tf8cx.js} +11 -11
- package/dist/chunks/{bus-w87dvzaw.js → event-logger-tdjd85a2.js} +40 -40
- package/dist/chunks/{bus-160yv0cs.js → event-logger-tg1vr1qt.js} +8 -8
- package/dist/chunks/{bus-bmrkdhmd.js → event-logger-ts1a0z93.js} +21 -21
- package/dist/chunks/{bus-twv2r8f4.js → event-logger-twv2r8f4.js} +2 -2
- package/dist/chunks/{bus-st29pnas.js → event-logger-tyred3qc.js} +18 -18
- package/dist/chunks/{bus-v2r1d0zg.js → event-logger-v2r1d0zg.js} +1 -1
- package/dist/chunks/{bus-veqvce7d.js → event-logger-veqvce7d.js} +1 -1
- package/dist/chunks/{bus-90qm72cp.js → event-logger-vhwcqbf2.js} +17 -17
- package/dist/chunks/{bus-gjemyhff.js → event-logger-vkhmt3za.js} +32 -32
- package/dist/chunks/{bus-c8v47ftr.js → event-logger-vpbqyf0k.js} +22 -22
- package/dist/chunks/{bus-w990mwhs.js → event-logger-vqrx5bk3.js} +8 -8
- package/dist/chunks/{bus-ttg1ty4j.js → event-logger-vx7ymf2n.js} +32 -32
- package/dist/chunks/{bus-aaybcdk7.js → event-logger-vxxaf4jx.js} +11 -11
- package/dist/chunks/{bus-3x5ztk31.js → event-logger-vz52s56h.js} +54 -54
- package/dist/chunks/{bus-889cpvr6.js → event-logger-w0cs00f7.js} +18 -18
- package/dist/chunks/{bus-7h2bs24q.js → event-logger-w2b5jz6s.js} +3 -3
- package/dist/chunks/{bus-9q8g9sv8.js → event-logger-w35wzz9x.js} +4 -4
- package/dist/chunks/{bus-w3wsvvr9.js → event-logger-w3wsvvr9.js} +1 -1
- package/dist/chunks/{bus-wakvkjy4.js → event-logger-wakvkjy4.js} +1 -1
- package/dist/chunks/{bus-wd87259q.js → event-logger-wd87259q.js} +1 -1
- package/dist/chunks/{bus-224exebk.js → event-logger-wvngvz36.js} +17 -17
- package/dist/chunks/{bus-m3797hzn.js → event-logger-wyqjen5s.js} +11 -11
- package/dist/chunks/{bus-hsa266sk.js → event-logger-wzp5edw8.js} +8 -8
- package/dist/chunks/{bus-sassz3xq.js → event-logger-x0hhhwgh.js} +35 -35
- package/dist/chunks/{bus-by9953cg.js → event-logger-x0z7d0h1.js} +28 -28
- package/dist/chunks/{bus-mp9hgv35.js → event-logger-x57zhnt4.js} +49 -49
- package/dist/chunks/{bus-y6ywa6wq.js → event-logger-x98cm754.js} +18 -18
- package/dist/chunks/{bus-fxw3dg4r.js → event-logger-xczbbc2n.js} +13 -13
- package/dist/chunks/{bus-bstexjd6.js → event-logger-xd9cc171.js} +5 -5
- package/dist/chunks/{bus-s2h41nq1.js → event-logger-xm0409en.js} +6 -6
- package/dist/chunks/{bus-dcfp8a60.js → event-logger-xxadresr.js} +23 -23
- package/dist/chunks/{bus-fpknp6dy.js → event-logger-xzk44jme.js} +25 -25
- package/dist/chunks/{bus-yara3q77.js → event-logger-yara3q77.js} +2 -2
- package/dist/chunks/{bus-yb20nhc3.js → event-logger-yb20nhc3.js} +1 -1
- package/dist/chunks/{bus-wnzgjcsx.js → event-logger-ygbhaca5.js} +14 -14
- package/dist/chunks/{bus-kfq3jpzd.js → event-logger-yyt2djfr.js} +12 -12
- package/dist/chunks/{bus-z0bkrqjs.js → event-logger-z0bkrqjs.js} +1 -1
- package/dist/chunks/{bus-z38nccrw.js → event-logger-z38nccrw.js} +1 -1
- package/dist/chunks/{bus-rk1e0zha.js → event-logger-z8rfms9g.js} +12 -12
- package/dist/chunks/{bus-zkg84ctx.js → event-logger-zkg84ctx.js} +1 -1
- package/dist/chunks/{bus-haxfm848.js → event-logger-zmwdvt2x.js} +11 -11
- package/dist/chunks/{bus-ezdtp85a.js → event-logger-zq9gq21d.js} +11 -11
- package/dist/chunks/{bus-a2jg842h.js → event-logger-zt0grhjq.js} +36 -36
- package/dist/chunks/{bus-vzq80nbx.js → event-logger-zt1y2eyh.js} +24 -24
- package/dist/chunks/{bus-kkms64sw.js → event-logger-zxhnf3hq.js} +6 -6
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -89
- package/dist/config/discovery.js +90 -90
- package/dist/config/integration.js +7 -7
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +119 -119
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +91 -91
- package/dist/database/database.js +78 -78
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +103 -103
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +381 -381
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -101
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -80
- package/dist/file-access.js +140 -140
- package/dist/file-mutation.js +102 -102
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +86 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +112 -112
- package/dist/form.js +90 -90
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +113 -113
- package/dist/git.js +11 -11
- 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 +99 -99
- 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 +372 -372
- package/dist/instruction-discovery.js +92 -92
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +97 -97
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +166 -166
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +369 -369
- package/dist/location.js +97 -97
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +168 -168
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev.js +115 -115
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +145 -145
- package/dist/persistent-pty/binary.bun.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 +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +342 -342
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +104 -104
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +123 -123
- package/dist/plugin/provider/opencode-legacy.js +108 -108
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +361 -361
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +234 -234
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +98 -98
- package/dist/provider.js +107 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +94 -94
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +132 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +164 -164
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -231
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +188 -188
- package/dist/session/history.js +129 -127
- package/dist/session/inbox.js +146 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +134 -134
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +153 -153
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +81 -81
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +230 -230
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -223
- 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 +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +144 -144
- package/dist/snapshot.js +97 -97
- 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 +165 -165
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +158 -158
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +145 -145
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +138 -138
- package/dist/tool/plugin/read.js +157 -157
- package/dist/tool/plugin/shell.js +224 -224
- package/dist/tool/plugin/skill.js +149 -149
- package/dist/tool/plugin/subagent.js +224 -224
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +145 -145
- package/dist/tool/plugin/websearch.js +145 -145
- package/dist/tool/plugin/write.js +158 -158
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/plugin/host.d.ts +3 -2
- package/dist/types/session/blob.d.ts +929 -0
- package/dist/types/session/history.d.ts +853 -0
- package/dist/types/session/inbox.d.ts +114 -2
- package/dist/types/session/prompt.d.ts +2 -1
- package/dist/types/session/schema.d.ts +4 -0
- package/dist/types/session/store.d.ts +7 -0
- package/dist/types/session/stored.d.ts +2 -2
- package/dist/types/session/transfer.d.ts +4 -0
- package/dist/types/session.d.ts +9 -0
- package/dist/types/tool/plugin/edit.d.ts +1 -0
- package/dist/types/tool/plugin/patch.d.ts +1 -0
- package/dist/types/vcs.d.ts +3 -2
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +6 -6
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +101 -101
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +99 -97
- package/dist/voice.js +90 -90
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +108 -108
- package/package.json +9 -9
- package/dist/chunks/bus-2bd7j0hh.js +0 -517
- package/dist/chunks/bus-7hr3m62y.js +0 -257
- package/dist/chunks/bus-7yv5xa0k.js +0 -18
- package/dist/chunks/bus-g0kddrv9.js +0 -26
- /package/dist/chunks/{bus-0qkdqm5v.js → event-logger-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{bus-0zkw76rk.js → event-logger-0zkw76rk.js} +0 -0
- /package/dist/chunks/{bus-17cy0kzp.js → event-logger-17cy0kzp.js} +0 -0
- /package/dist/chunks/{bus-1cnp2v09.js → event-logger-1cnp2v09.js} +0 -0
- /package/dist/chunks/{bus-24dcb14g.js → event-logger-24dcb14g.js} +0 -0
- /package/dist/chunks/{bus-2710q6r3.js → event-logger-2710q6r3.js} +0 -0
- /package/dist/chunks/{bus-2bv980vf.js → event-logger-2bv980vf.js} +0 -0
- /package/dist/chunks/{bus-2c3vjs8z.js → event-logger-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{bus-359p4xyc.js → event-logger-359p4xyc.js} +0 -0
- /package/dist/chunks/{bus-3asan66x.js → event-logger-3asan66x.js} +0 -0
- /package/dist/chunks/{bus-3v8g72cx.js → event-logger-3v8g72cx.js} +0 -0
- /package/dist/chunks/{bus-3wcehsnq.js → event-logger-3wcehsnq.js} +0 -0
- /package/dist/chunks/{bus-43n2bw4t.js → event-logger-43n2bw4t.js} +0 -0
- /package/dist/chunks/{bus-4knz6hnm.js → event-logger-4knz6hnm.js} +0 -0
- /package/dist/chunks/{bus-4m86bj6y.js → event-logger-4m86bj6y.js} +0 -0
- /package/dist/chunks/{bus-4vcrnpx2.js → event-logger-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{bus-4y7fprxs.js → event-logger-4y7fprxs.js} +0 -0
- /package/dist/chunks/{bus-53557ph1.js → event-logger-53557ph1.js} +0 -0
- /package/dist/chunks/{bus-550bvhaj.js → event-logger-550bvhaj.js} +0 -0
- /package/dist/chunks/{bus-5fjb7ams.js → event-logger-5fjb7ams.js} +0 -0
- /package/dist/chunks/{bus-5w3e23ze.js → event-logger-5w3e23ze.js} +0 -0
- /package/dist/chunks/{bus-6prwharc.js → event-logger-6prwharc.js} +0 -0
- /package/dist/chunks/{bus-6q2bdcd1.js → event-logger-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{bus-7akdwqpd.js → event-logger-7akdwqpd.js} +0 -0
- /package/dist/chunks/{bus-7m9af43g.js → event-logger-7m9af43g.js} +0 -0
- /package/dist/chunks/{bus-822emrt2.js → event-logger-822emrt2.js} +0 -0
- /package/dist/chunks/{bus-84wd9syh.js → event-logger-84wd9syh.js} +0 -0
- /package/dist/chunks/{bus-88xbtdfr.js → event-logger-88xbtdfr.js} +0 -0
- /package/dist/chunks/{bus-8n3pysct.js → event-logger-8n3pysct.js} +0 -0
- /package/dist/chunks/{bus-8wj87zfr.js → event-logger-8wj87zfr.js} +0 -0
- /package/dist/chunks/{bus-9a4afbnw.js → event-logger-9a4afbnw.js} +0 -0
- /package/dist/chunks/{bus-9rqn6x4v.js → event-logger-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{bus-a058387c.js → event-logger-a058387c.js} +0 -0
- /package/dist/chunks/{bus-a6k6eb26.js → event-logger-a6k6eb26.js} +0 -0
- /package/dist/chunks/{bus-af5trqkr.js → event-logger-af5trqkr.js} +0 -0
- /package/dist/chunks/{bus-afrmfg78.js → event-logger-afrmfg78.js} +0 -0
- /package/dist/chunks/{bus-aqzs7mqg.js → event-logger-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{bus-atq7p7m5.js → event-logger-atq7p7m5.js} +0 -0
- /package/dist/chunks/{bus-bkyjaxrp.js → event-logger-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{bus-bmr6ed5q.js → event-logger-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{bus-cf4snx6d.js → event-logger-cf4snx6d.js} +0 -0
- /package/dist/chunks/{bus-cqv5kn06.js → event-logger-cqv5kn06.js} +0 -0
- /package/dist/chunks/{bus-cvy3z8tj.js → event-logger-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{bus-d9fn303g.js → event-logger-d9fn303g.js} +0 -0
- /package/dist/chunks/{bus-d9jj8t3e.js → event-logger-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{bus-dajrwvna.js → event-logger-dajrwvna.js} +0 -0
- /package/dist/chunks/{bus-dap0rakb.js → event-logger-dap0rakb.js} +0 -0
- /package/dist/chunks/{bus-df08tz66.js → event-logger-df08tz66.js} +0 -0
- /package/dist/chunks/{bus-dy18nga0.js → event-logger-dy18nga0.js} +0 -0
- /package/dist/chunks/{bus-e3qxr5gk.js → event-logger-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{bus-e5kj55wp.js → event-logger-e5kj55wp.js} +0 -0
- /package/dist/chunks/{bus-e73j6tqm.js → event-logger-e73j6tqm.js} +0 -0
- /package/dist/chunks/{bus-ec1grn59.js → event-logger-ec1grn59.js} +0 -0
- /package/dist/chunks/{bus-eh3zwz77.js → event-logger-eh3zwz77.js} +0 -0
- /package/dist/chunks/{bus-emrn6kk6.js → event-logger-emrn6kk6.js} +0 -0
- /package/dist/chunks/{bus-f0mxakyp.js → event-logger-f0mxakyp.js} +0 -0
- /package/dist/chunks/{bus-f6n9ztr4.js → event-logger-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{bus-faypxj3z.js → event-logger-faypxj3z.js} +0 -0
- /package/dist/chunks/{bus-fd410y7t.js → event-logger-fd410y7t.js} +0 -0
- /package/dist/chunks/{bus-fkpq3x5p.js → event-logger-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{bus-g4wezp1m.js → event-logger-g4wezp1m.js} +0 -0
- /package/dist/chunks/{bus-g86h250q.js → event-logger-g86h250q.js} +0 -0
- /package/dist/chunks/{bus-gebd4c9n.js → event-logger-gebd4c9n.js} +0 -0
- /package/dist/chunks/{bus-gftt206x.js → event-logger-gftt206x.js} +0 -0
- /package/dist/chunks/{bus-hcxmzztb.js → event-logger-hcxmzztb.js} +0 -0
- /package/dist/chunks/{bus-hk9envan.js → event-logger-hk9envan.js} +0 -0
- /package/dist/chunks/{bus-j2ntwpah.js → event-logger-j2ntwpah.js} +0 -0
- /package/dist/chunks/{bus-j5zkgpj8.js → event-logger-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{bus-jjkms2e6.js → event-logger-jjkms2e6.js} +0 -0
- /package/dist/chunks/{bus-jr7sbwjy.js → event-logger-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{bus-jwfs4k6c.js → event-logger-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{bus-jwr30sdr.js → event-logger-jwr30sdr.js} +0 -0
- /package/dist/chunks/{bus-jze0r7bz.js → event-logger-jze0r7bz.js} +0 -0
- /package/dist/chunks/{bus-jzg6c2d5.js → event-logger-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{bus-m18g726c.js → event-logger-m18g726c.js} +0 -0
- /package/dist/chunks/{bus-mp448xyj.js → event-logger-mp448xyj.js} +0 -0
- /package/dist/chunks/{bus-msx8hqn2.js → event-logger-msx8hqn2.js} +0 -0
- /package/dist/chunks/{bus-n05xt0ee.js → event-logger-n05xt0ee.js} +0 -0
- /package/dist/chunks/{bus-n3j8tn72.js → event-logger-n3j8tn72.js} +0 -0
- /package/dist/chunks/{bus-njntx4h6.js → event-logger-njntx4h6.js} +0 -0
- /package/dist/chunks/{bus-q3sfg36h.js → event-logger-q3sfg36h.js} +0 -0
- /package/dist/chunks/{bus-q74kybfr.js → event-logger-q74kybfr.js} +0 -0
- /package/dist/chunks/{bus-qaymkmh1.js → event-logger-qaymkmh1.js} +0 -0
- /package/dist/chunks/{bus-qb87gjwd.js → event-logger-qb87gjwd.js} +0 -0
- /package/dist/chunks/{bus-qfa1cgps.js → event-logger-qfa1cgps.js} +0 -0
- /package/dist/chunks/{bus-qg3g05ea.js → event-logger-qg3g05ea.js} +0 -0
- /package/dist/chunks/{bus-qrg20bc0.js → event-logger-qrg20bc0.js} +0 -0
- /package/dist/chunks/{bus-rcb2kzg1.js → event-logger-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{bus-sdp7kfr6.js → event-logger-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{bus-ssg3fenm.js → event-logger-ssg3fenm.js} +0 -0
- /package/dist/chunks/{bus-ve7vex1e.js → event-logger-ve7vex1e.js} +0 -0
- /package/dist/chunks/{bus-w803qqfp.js → event-logger-w803qqfp.js} +0 -0
- /package/dist/chunks/{bus-wc3fc9cn.js → event-logger-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{bus-wer8tq1h.js → event-logger-wer8tq1h.js} +0 -0
- /package/dist/chunks/{bus-wjj7prxr.js → event-logger-wjj7prxr.js} +0 -0
- /package/dist/chunks/{bus-wtztk69x.js → event-logger-wtztk69x.js} +0 -0
- /package/dist/chunks/{bus-x0ckcb58.js → event-logger-x0ckcb58.js} +0 -0
- /package/dist/chunks/{bus-x61499pn.js → event-logger-x61499pn.js} +0 -0
- /package/dist/chunks/{bus-y44na4kk.js → event-logger-y44na4kk.js} +0 -0
- /package/dist/chunks/{bus-y8f7s663.js → event-logger-y8f7s663.js} +0 -0
- /package/dist/chunks/{bus-ygaqb7jw.js → event-logger-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{bus-ym463w8f.js → event-logger-ym463w8f.js} +0 -0
- /package/dist/chunks/{bus-z5v4ffb3.js → event-logger-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{bus-z9919s4g.js → event-logger-z9919s4g.js} +0 -0
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
export * as SessionBlob from "./blob.js";
|
|
2
2
|
import { Effect, Schema } from "effect";
|
|
3
|
+
import type { Attachment } from "@opencode/schema/prompt";
|
|
3
4
|
import type { Database } from "../database/database.js";
|
|
4
5
|
import type { SessionMessage } from "./message.js";
|
|
5
6
|
import type { SessionSchema } from "./schema.js";
|
|
7
|
+
import { SessionInboxTable, SessionMessageTable } from "./sql.js";
|
|
6
8
|
import { SessionStored } from "./stored.js";
|
|
7
9
|
type DatabaseService = Database.Interface["db"];
|
|
10
|
+
type MessageRow = typeof SessionMessageTable.$inferSelect;
|
|
11
|
+
type InboxRow = typeof SessionInboxTable.$inferSelect;
|
|
8
12
|
/** Restores inline media for the refs in `session_message` rows. Rows without refs are returned untouched. */
|
|
9
13
|
export declare const hydrate: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
10
14
|
$client: import("effect/sql/SqlClient").SqlClient;
|
|
@@ -883,6 +887,911 @@ export declare const hydrateInbox: (db: import("../database/drizzle.js").EffectS
|
|
|
883
887
|
time_created: number;
|
|
884
888
|
type: "compaction" | "move" | "synthetic" | "user";
|
|
885
889
|
}[], never, never>;
|
|
890
|
+
/** What a client that fetches bytes itself learns about a blob. */
|
|
891
|
+
export interface Meta {
|
|
892
|
+
readonly bytes: number;
|
|
893
|
+
readonly width: number | null;
|
|
894
|
+
readonly height: number | null;
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* For clients that fetch media themselves: refs stay in `rows`, except those whose blob is gone or not referenced (the media route only serves referenced blobs), which become the
|
|
898
|
+
* same unavailable placeholder {@link hydrate} gives. Returns the size and dimensions of every blob still named.
|
|
899
|
+
*/
|
|
900
|
+
export declare const keepRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
901
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
902
|
+
}, rows: readonly {
|
|
903
|
+
data: Omit<{
|
|
904
|
+
readonly id: string;
|
|
905
|
+
readonly metadata?: {
|
|
906
|
+
readonly [x: string]: unknown;
|
|
907
|
+
} | undefined;
|
|
908
|
+
readonly time: {
|
|
909
|
+
readonly created: number;
|
|
910
|
+
};
|
|
911
|
+
readonly type: "agent-switched";
|
|
912
|
+
readonly agent: string;
|
|
913
|
+
readonly previous?: string | undefined;
|
|
914
|
+
}, "id" | "type"> | Omit<{
|
|
915
|
+
readonly id: string;
|
|
916
|
+
readonly metadata?: {
|
|
917
|
+
readonly [x: string]: unknown;
|
|
918
|
+
} | undefined;
|
|
919
|
+
readonly time: {
|
|
920
|
+
readonly created: number;
|
|
921
|
+
};
|
|
922
|
+
readonly type: "model-switched";
|
|
923
|
+
readonly model: {
|
|
924
|
+
readonly id: string;
|
|
925
|
+
readonly providerID: string;
|
|
926
|
+
readonly variant?: string | undefined;
|
|
927
|
+
};
|
|
928
|
+
readonly previous?: {
|
|
929
|
+
readonly id: string;
|
|
930
|
+
readonly providerID: string;
|
|
931
|
+
readonly variant?: string | undefined;
|
|
932
|
+
} | undefined;
|
|
933
|
+
}, "id" | "type"> | Omit<{
|
|
934
|
+
readonly id: string;
|
|
935
|
+
readonly metadata?: {
|
|
936
|
+
readonly [x: string]: unknown;
|
|
937
|
+
} | undefined;
|
|
938
|
+
readonly time: {
|
|
939
|
+
readonly created: number;
|
|
940
|
+
};
|
|
941
|
+
readonly type: "location-switched";
|
|
942
|
+
readonly location: {
|
|
943
|
+
readonly directory: string;
|
|
944
|
+
readonly workspaceID?: string | undefined;
|
|
945
|
+
};
|
|
946
|
+
readonly projectID?: string | undefined;
|
|
947
|
+
readonly subpath?: string | undefined;
|
|
948
|
+
readonly previous?: {
|
|
949
|
+
readonly location: {
|
|
950
|
+
readonly directory: string;
|
|
951
|
+
readonly workspaceID?: string | undefined;
|
|
952
|
+
};
|
|
953
|
+
readonly projectID?: string | undefined;
|
|
954
|
+
readonly subpath?: string | undefined;
|
|
955
|
+
} | undefined;
|
|
956
|
+
}, "id" | "type"> | Omit<{
|
|
957
|
+
readonly id: string;
|
|
958
|
+
readonly metadata?: {
|
|
959
|
+
readonly [x: string]: unknown;
|
|
960
|
+
} | undefined;
|
|
961
|
+
readonly time: {
|
|
962
|
+
readonly created: number;
|
|
963
|
+
};
|
|
964
|
+
readonly text: string;
|
|
965
|
+
readonly description?: string | undefined;
|
|
966
|
+
readonly type: "synthetic";
|
|
967
|
+
}, "id" | "type"> | Omit<{
|
|
968
|
+
readonly id: string;
|
|
969
|
+
readonly metadata?: {
|
|
970
|
+
readonly [x: string]: unknown;
|
|
971
|
+
} | undefined;
|
|
972
|
+
readonly time: {
|
|
973
|
+
readonly created: number;
|
|
974
|
+
};
|
|
975
|
+
readonly type: "system";
|
|
976
|
+
readonly text: string;
|
|
977
|
+
readonly description?: string | undefined;
|
|
978
|
+
}, "id" | "type"> | Omit<{
|
|
979
|
+
readonly id: string;
|
|
980
|
+
readonly metadata?: {
|
|
981
|
+
readonly [x: string]: unknown;
|
|
982
|
+
} | undefined;
|
|
983
|
+
readonly time: {
|
|
984
|
+
readonly created: number;
|
|
985
|
+
};
|
|
986
|
+
readonly type: "skill";
|
|
987
|
+
readonly skill: string;
|
|
988
|
+
readonly name: string;
|
|
989
|
+
readonly text: string;
|
|
990
|
+
}, "id" | "type"> | Omit<{
|
|
991
|
+
readonly id: string;
|
|
992
|
+
readonly metadata?: {
|
|
993
|
+
readonly [x: string]: unknown;
|
|
994
|
+
} | undefined;
|
|
995
|
+
readonly type: "shell";
|
|
996
|
+
readonly shellID: string;
|
|
997
|
+
readonly command: string;
|
|
998
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
999
|
+
readonly exit?: number | undefined;
|
|
1000
|
+
readonly output?: {
|
|
1001
|
+
readonly output: string;
|
|
1002
|
+
readonly cursor: number;
|
|
1003
|
+
readonly size: number;
|
|
1004
|
+
readonly truncated: boolean;
|
|
1005
|
+
} | undefined;
|
|
1006
|
+
readonly time: {
|
|
1007
|
+
readonly created: number;
|
|
1008
|
+
readonly completed?: number | undefined;
|
|
1009
|
+
};
|
|
1010
|
+
}, "id" | "type"> | Omit<{
|
|
1011
|
+
readonly id: string;
|
|
1012
|
+
readonly metadata?: {
|
|
1013
|
+
readonly [x: string]: unknown;
|
|
1014
|
+
} | undefined;
|
|
1015
|
+
readonly type: "assistant";
|
|
1016
|
+
readonly agent: string;
|
|
1017
|
+
readonly model: {
|
|
1018
|
+
readonly id: string;
|
|
1019
|
+
readonly providerID: string;
|
|
1020
|
+
readonly variant?: string | undefined;
|
|
1021
|
+
};
|
|
1022
|
+
readonly content: readonly ({
|
|
1023
|
+
readonly type: "tool";
|
|
1024
|
+
readonly id: string;
|
|
1025
|
+
readonly name: string;
|
|
1026
|
+
readonly executed?: boolean | undefined;
|
|
1027
|
+
readonly native?: {
|
|
1028
|
+
readonly [x: string]: unknown;
|
|
1029
|
+
} | undefined;
|
|
1030
|
+
readonly state: {
|
|
1031
|
+
readonly status: "streaming";
|
|
1032
|
+
readonly input: string;
|
|
1033
|
+
} | {
|
|
1034
|
+
readonly status: "running";
|
|
1035
|
+
readonly input: {
|
|
1036
|
+
readonly [x: string]: unknown;
|
|
1037
|
+
};
|
|
1038
|
+
readonly metadata: {
|
|
1039
|
+
readonly [x: string]: Schema.Json;
|
|
1040
|
+
};
|
|
1041
|
+
} | {
|
|
1042
|
+
readonly status: "completed";
|
|
1043
|
+
readonly input: {
|
|
1044
|
+
readonly [x: string]: unknown;
|
|
1045
|
+
};
|
|
1046
|
+
readonly content: readonly [{
|
|
1047
|
+
readonly type: "text";
|
|
1048
|
+
readonly text: string;
|
|
1049
|
+
} | {
|
|
1050
|
+
readonly type: "file";
|
|
1051
|
+
readonly uri: string;
|
|
1052
|
+
readonly mime: string;
|
|
1053
|
+
readonly name?: string | undefined;
|
|
1054
|
+
}, ...({
|
|
1055
|
+
readonly type: "text";
|
|
1056
|
+
readonly text: string;
|
|
1057
|
+
} | {
|
|
1058
|
+
readonly type: "file";
|
|
1059
|
+
readonly uri: string;
|
|
1060
|
+
readonly mime: string;
|
|
1061
|
+
readonly name?: string | undefined;
|
|
1062
|
+
})[]];
|
|
1063
|
+
readonly metadata?: {
|
|
1064
|
+
readonly [x: string]: Schema.Json;
|
|
1065
|
+
} | undefined;
|
|
1066
|
+
} | {
|
|
1067
|
+
readonly status: "error";
|
|
1068
|
+
readonly input: {
|
|
1069
|
+
readonly [x: string]: unknown;
|
|
1070
|
+
};
|
|
1071
|
+
readonly error: {
|
|
1072
|
+
readonly type: string;
|
|
1073
|
+
readonly message: string;
|
|
1074
|
+
readonly status?: number | undefined;
|
|
1075
|
+
readonly response?: {
|
|
1076
|
+
readonly body: string;
|
|
1077
|
+
} | undefined;
|
|
1078
|
+
readonly retryAfterMs?: number | undefined;
|
|
1079
|
+
};
|
|
1080
|
+
readonly content?: readonly [{
|
|
1081
|
+
readonly type: "text";
|
|
1082
|
+
readonly text: string;
|
|
1083
|
+
} | {
|
|
1084
|
+
readonly type: "file";
|
|
1085
|
+
readonly uri: string;
|
|
1086
|
+
readonly mime: string;
|
|
1087
|
+
readonly name?: string | undefined;
|
|
1088
|
+
}, ...({
|
|
1089
|
+
readonly type: "text";
|
|
1090
|
+
readonly text: string;
|
|
1091
|
+
} | {
|
|
1092
|
+
readonly type: "file";
|
|
1093
|
+
readonly uri: string;
|
|
1094
|
+
readonly mime: string;
|
|
1095
|
+
readonly name?: string | undefined;
|
|
1096
|
+
})[]] | undefined;
|
|
1097
|
+
readonly metadata?: {
|
|
1098
|
+
readonly [x: string]: Schema.Json;
|
|
1099
|
+
} | undefined;
|
|
1100
|
+
};
|
|
1101
|
+
readonly time: {
|
|
1102
|
+
readonly created: number;
|
|
1103
|
+
readonly ran?: number | undefined;
|
|
1104
|
+
readonly completed?: number | undefined;
|
|
1105
|
+
};
|
|
1106
|
+
} | {
|
|
1107
|
+
readonly type: "text";
|
|
1108
|
+
readonly text: string;
|
|
1109
|
+
readonly native?: {
|
|
1110
|
+
readonly [x: string]: unknown;
|
|
1111
|
+
} | undefined;
|
|
1112
|
+
} | {
|
|
1113
|
+
readonly type: "reasoning";
|
|
1114
|
+
readonly text: string;
|
|
1115
|
+
readonly native?: {
|
|
1116
|
+
readonly [x: string]: unknown;
|
|
1117
|
+
} | undefined;
|
|
1118
|
+
readonly time?: {
|
|
1119
|
+
readonly created: number;
|
|
1120
|
+
readonly completed?: number | undefined;
|
|
1121
|
+
} | undefined;
|
|
1122
|
+
})[];
|
|
1123
|
+
readonly snapshot?: {
|
|
1124
|
+
readonly start?: string | undefined;
|
|
1125
|
+
readonly end?: string | undefined;
|
|
1126
|
+
readonly files?: readonly string[] | undefined;
|
|
1127
|
+
} | undefined;
|
|
1128
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
1129
|
+
readonly rawFinish?: string | undefined;
|
|
1130
|
+
readonly native?: {
|
|
1131
|
+
readonly [x: string]: unknown;
|
|
1132
|
+
} | undefined;
|
|
1133
|
+
readonly cost?: number | undefined;
|
|
1134
|
+
readonly tokens?: {
|
|
1135
|
+
readonly input: number;
|
|
1136
|
+
readonly output: number;
|
|
1137
|
+
readonly reasoning: number;
|
|
1138
|
+
readonly cache: {
|
|
1139
|
+
readonly read: number;
|
|
1140
|
+
readonly write: number;
|
|
1141
|
+
};
|
|
1142
|
+
} | undefined;
|
|
1143
|
+
readonly error?: {
|
|
1144
|
+
readonly type: string;
|
|
1145
|
+
readonly message: string;
|
|
1146
|
+
readonly status?: number | undefined;
|
|
1147
|
+
readonly response?: {
|
|
1148
|
+
readonly body: string;
|
|
1149
|
+
} | undefined;
|
|
1150
|
+
readonly retryAfterMs?: number | undefined;
|
|
1151
|
+
} | undefined;
|
|
1152
|
+
readonly retry?: {
|
|
1153
|
+
readonly attempt: number;
|
|
1154
|
+
readonly at: number;
|
|
1155
|
+
readonly error: {
|
|
1156
|
+
readonly type: string;
|
|
1157
|
+
readonly message: string;
|
|
1158
|
+
readonly status?: number | undefined;
|
|
1159
|
+
readonly response?: {
|
|
1160
|
+
readonly body: string;
|
|
1161
|
+
} | undefined;
|
|
1162
|
+
readonly retryAfterMs?: number | undefined;
|
|
1163
|
+
};
|
|
1164
|
+
} | undefined;
|
|
1165
|
+
readonly time: {
|
|
1166
|
+
readonly created: number;
|
|
1167
|
+
readonly streamed?: number | undefined;
|
|
1168
|
+
readonly completed?: number | undefined;
|
|
1169
|
+
};
|
|
1170
|
+
}, "id" | "type"> | Omit<{
|
|
1171
|
+
readonly id: string;
|
|
1172
|
+
readonly metadata?: {
|
|
1173
|
+
readonly [x: string]: unknown;
|
|
1174
|
+
} | undefined;
|
|
1175
|
+
readonly time: {
|
|
1176
|
+
readonly created: number;
|
|
1177
|
+
};
|
|
1178
|
+
readonly type: "compaction";
|
|
1179
|
+
readonly status: "running";
|
|
1180
|
+
readonly reason: "auto" | "manual";
|
|
1181
|
+
readonly summary: string;
|
|
1182
|
+
}, "id" | "type"> | Omit<{
|
|
1183
|
+
readonly id: string;
|
|
1184
|
+
readonly metadata?: {
|
|
1185
|
+
readonly [x: string]: unknown;
|
|
1186
|
+
} | undefined;
|
|
1187
|
+
readonly time: {
|
|
1188
|
+
readonly created: number;
|
|
1189
|
+
};
|
|
1190
|
+
readonly type: "compaction";
|
|
1191
|
+
readonly cost?: number | undefined;
|
|
1192
|
+
readonly tokens?: {
|
|
1193
|
+
readonly input: number;
|
|
1194
|
+
readonly output: number;
|
|
1195
|
+
readonly reasoning: number;
|
|
1196
|
+
readonly cache: {
|
|
1197
|
+
readonly read: number;
|
|
1198
|
+
readonly write: number;
|
|
1199
|
+
};
|
|
1200
|
+
} | undefined;
|
|
1201
|
+
readonly status: "completed";
|
|
1202
|
+
readonly reason: "auto" | "manual";
|
|
1203
|
+
readonly model?: {
|
|
1204
|
+
readonly id: string;
|
|
1205
|
+
readonly providerID: string;
|
|
1206
|
+
readonly variant?: string | undefined;
|
|
1207
|
+
} | undefined;
|
|
1208
|
+
readonly native?: {
|
|
1209
|
+
readonly [x: string]: unknown;
|
|
1210
|
+
} | undefined;
|
|
1211
|
+
readonly summary: string;
|
|
1212
|
+
}, "id" | "type"> | Omit<{
|
|
1213
|
+
readonly id: string;
|
|
1214
|
+
readonly metadata?: {
|
|
1215
|
+
readonly [x: string]: unknown;
|
|
1216
|
+
} | undefined;
|
|
1217
|
+
readonly time: {
|
|
1218
|
+
readonly created: number;
|
|
1219
|
+
};
|
|
1220
|
+
readonly type: "compaction";
|
|
1221
|
+
readonly cost?: number | undefined;
|
|
1222
|
+
readonly tokens?: {
|
|
1223
|
+
readonly input: number;
|
|
1224
|
+
readonly output: number;
|
|
1225
|
+
readonly reasoning: number;
|
|
1226
|
+
readonly cache: {
|
|
1227
|
+
readonly read: number;
|
|
1228
|
+
readonly write: number;
|
|
1229
|
+
};
|
|
1230
|
+
} | undefined;
|
|
1231
|
+
readonly status: "failed";
|
|
1232
|
+
readonly reason: "auto" | "manual";
|
|
1233
|
+
readonly error: {
|
|
1234
|
+
readonly type: string;
|
|
1235
|
+
readonly message: string;
|
|
1236
|
+
readonly status?: number | undefined;
|
|
1237
|
+
readonly response?: {
|
|
1238
|
+
readonly body: string;
|
|
1239
|
+
} | undefined;
|
|
1240
|
+
readonly retryAfterMs?: number | undefined;
|
|
1241
|
+
};
|
|
1242
|
+
}, "id" | "type"> | Omit<{
|
|
1243
|
+
readonly id: string;
|
|
1244
|
+
readonly metadata?: {
|
|
1245
|
+
readonly [x: string]: unknown;
|
|
1246
|
+
} | undefined;
|
|
1247
|
+
readonly time: {
|
|
1248
|
+
readonly created: number;
|
|
1249
|
+
};
|
|
1250
|
+
readonly type: "idle";
|
|
1251
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
1252
|
+
readonly error?: {
|
|
1253
|
+
readonly type: string;
|
|
1254
|
+
readonly message: string;
|
|
1255
|
+
readonly status?: number | undefined;
|
|
1256
|
+
readonly response?: {
|
|
1257
|
+
readonly body: string;
|
|
1258
|
+
} | undefined;
|
|
1259
|
+
readonly retryAfterMs?: number | undefined;
|
|
1260
|
+
} | undefined;
|
|
1261
|
+
}, "id" | "type"> | Omit<{
|
|
1262
|
+
readonly id: string;
|
|
1263
|
+
readonly metadata?: {
|
|
1264
|
+
readonly [x: string]: unknown;
|
|
1265
|
+
} | undefined;
|
|
1266
|
+
readonly time: {
|
|
1267
|
+
readonly created: number;
|
|
1268
|
+
};
|
|
1269
|
+
readonly text: string;
|
|
1270
|
+
readonly agents?: readonly {
|
|
1271
|
+
readonly name: string;
|
|
1272
|
+
readonly mention?: {
|
|
1273
|
+
readonly start: number;
|
|
1274
|
+
readonly end: number;
|
|
1275
|
+
readonly text: string;
|
|
1276
|
+
} | undefined;
|
|
1277
|
+
}[] | undefined;
|
|
1278
|
+
readonly skills?: readonly {
|
|
1279
|
+
readonly id: string;
|
|
1280
|
+
readonly name: string;
|
|
1281
|
+
readonly text?: string | undefined;
|
|
1282
|
+
readonly mention?: {
|
|
1283
|
+
readonly start: number;
|
|
1284
|
+
readonly end: number;
|
|
1285
|
+
readonly text: string;
|
|
1286
|
+
} | undefined;
|
|
1287
|
+
}[] | undefined;
|
|
1288
|
+
readonly type: "user";
|
|
1289
|
+
readonly files?: readonly ({
|
|
1290
|
+
readonly data: string;
|
|
1291
|
+
readonly mime: string;
|
|
1292
|
+
readonly source: {
|
|
1293
|
+
readonly type: "inline";
|
|
1294
|
+
} | {
|
|
1295
|
+
readonly type: "uri";
|
|
1296
|
+
readonly uri: string;
|
|
1297
|
+
};
|
|
1298
|
+
readonly name?: string | undefined;
|
|
1299
|
+
readonly description?: string | undefined;
|
|
1300
|
+
readonly mention?: {
|
|
1301
|
+
readonly start: number;
|
|
1302
|
+
readonly end: number;
|
|
1303
|
+
readonly text: string;
|
|
1304
|
+
} | undefined;
|
|
1305
|
+
} | {
|
|
1306
|
+
readonly mime: string;
|
|
1307
|
+
readonly source: {
|
|
1308
|
+
readonly type: "inline";
|
|
1309
|
+
} | {
|
|
1310
|
+
readonly type: "uri";
|
|
1311
|
+
readonly uri: string;
|
|
1312
|
+
};
|
|
1313
|
+
readonly name?: string | undefined;
|
|
1314
|
+
readonly description?: string | undefined;
|
|
1315
|
+
readonly mention?: {
|
|
1316
|
+
readonly start: number;
|
|
1317
|
+
readonly end: number;
|
|
1318
|
+
readonly text: string;
|
|
1319
|
+
} | undefined;
|
|
1320
|
+
readonly uri: string;
|
|
1321
|
+
})[] | undefined;
|
|
1322
|
+
}, "id" | "type">;
|
|
1323
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1324
|
+
seq: number;
|
|
1325
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1326
|
+
time_created: number;
|
|
1327
|
+
time_updated: number;
|
|
1328
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
1329
|
+
}[]) => Effect.Effect<{
|
|
1330
|
+
rows: {
|
|
1331
|
+
data: Omit<{
|
|
1332
|
+
readonly id: string;
|
|
1333
|
+
readonly metadata?: {
|
|
1334
|
+
readonly [x: string]: unknown;
|
|
1335
|
+
} | undefined;
|
|
1336
|
+
readonly time: {
|
|
1337
|
+
readonly created: number;
|
|
1338
|
+
};
|
|
1339
|
+
readonly type: "agent-switched";
|
|
1340
|
+
readonly agent: string;
|
|
1341
|
+
readonly previous?: string | undefined;
|
|
1342
|
+
}, "id" | "type"> | Omit<{
|
|
1343
|
+
readonly id: string;
|
|
1344
|
+
readonly metadata?: {
|
|
1345
|
+
readonly [x: string]: unknown;
|
|
1346
|
+
} | undefined;
|
|
1347
|
+
readonly time: {
|
|
1348
|
+
readonly created: number;
|
|
1349
|
+
};
|
|
1350
|
+
readonly type: "model-switched";
|
|
1351
|
+
readonly model: {
|
|
1352
|
+
readonly id: string;
|
|
1353
|
+
readonly providerID: string;
|
|
1354
|
+
readonly variant?: string | undefined;
|
|
1355
|
+
};
|
|
1356
|
+
readonly previous?: {
|
|
1357
|
+
readonly id: string;
|
|
1358
|
+
readonly providerID: string;
|
|
1359
|
+
readonly variant?: string | undefined;
|
|
1360
|
+
} | undefined;
|
|
1361
|
+
}, "id" | "type"> | Omit<{
|
|
1362
|
+
readonly id: string;
|
|
1363
|
+
readonly metadata?: {
|
|
1364
|
+
readonly [x: string]: unknown;
|
|
1365
|
+
} | undefined;
|
|
1366
|
+
readonly time: {
|
|
1367
|
+
readonly created: number;
|
|
1368
|
+
};
|
|
1369
|
+
readonly type: "location-switched";
|
|
1370
|
+
readonly location: {
|
|
1371
|
+
readonly directory: string;
|
|
1372
|
+
readonly workspaceID?: string | undefined;
|
|
1373
|
+
};
|
|
1374
|
+
readonly projectID?: string | undefined;
|
|
1375
|
+
readonly subpath?: string | undefined;
|
|
1376
|
+
readonly previous?: {
|
|
1377
|
+
readonly location: {
|
|
1378
|
+
readonly directory: string;
|
|
1379
|
+
readonly workspaceID?: string | undefined;
|
|
1380
|
+
};
|
|
1381
|
+
readonly projectID?: string | undefined;
|
|
1382
|
+
readonly subpath?: string | undefined;
|
|
1383
|
+
} | undefined;
|
|
1384
|
+
}, "id" | "type"> | Omit<{
|
|
1385
|
+
readonly id: string;
|
|
1386
|
+
readonly metadata?: {
|
|
1387
|
+
readonly [x: string]: unknown;
|
|
1388
|
+
} | undefined;
|
|
1389
|
+
readonly time: {
|
|
1390
|
+
readonly created: number;
|
|
1391
|
+
};
|
|
1392
|
+
readonly text: string;
|
|
1393
|
+
readonly description?: string | undefined;
|
|
1394
|
+
readonly type: "synthetic";
|
|
1395
|
+
}, "id" | "type"> | Omit<{
|
|
1396
|
+
readonly id: string;
|
|
1397
|
+
readonly metadata?: {
|
|
1398
|
+
readonly [x: string]: unknown;
|
|
1399
|
+
} | undefined;
|
|
1400
|
+
readonly time: {
|
|
1401
|
+
readonly created: number;
|
|
1402
|
+
};
|
|
1403
|
+
readonly type: "system";
|
|
1404
|
+
readonly text: string;
|
|
1405
|
+
readonly description?: string | undefined;
|
|
1406
|
+
}, "id" | "type"> | Omit<{
|
|
1407
|
+
readonly id: string;
|
|
1408
|
+
readonly metadata?: {
|
|
1409
|
+
readonly [x: string]: unknown;
|
|
1410
|
+
} | undefined;
|
|
1411
|
+
readonly time: {
|
|
1412
|
+
readonly created: number;
|
|
1413
|
+
};
|
|
1414
|
+
readonly type: "skill";
|
|
1415
|
+
readonly skill: string;
|
|
1416
|
+
readonly name: string;
|
|
1417
|
+
readonly text: string;
|
|
1418
|
+
}, "id" | "type"> | Omit<{
|
|
1419
|
+
readonly id: string;
|
|
1420
|
+
readonly metadata?: {
|
|
1421
|
+
readonly [x: string]: unknown;
|
|
1422
|
+
} | undefined;
|
|
1423
|
+
readonly type: "shell";
|
|
1424
|
+
readonly shellID: string;
|
|
1425
|
+
readonly command: string;
|
|
1426
|
+
readonly status: "exited" | "killed" | "running" | "timeout";
|
|
1427
|
+
readonly exit?: number | undefined;
|
|
1428
|
+
readonly output?: {
|
|
1429
|
+
readonly output: string;
|
|
1430
|
+
readonly cursor: number;
|
|
1431
|
+
readonly size: number;
|
|
1432
|
+
readonly truncated: boolean;
|
|
1433
|
+
} | undefined;
|
|
1434
|
+
readonly time: {
|
|
1435
|
+
readonly created: number;
|
|
1436
|
+
readonly completed?: number | undefined;
|
|
1437
|
+
};
|
|
1438
|
+
}, "id" | "type"> | Omit<{
|
|
1439
|
+
readonly id: string;
|
|
1440
|
+
readonly metadata?: {
|
|
1441
|
+
readonly [x: string]: unknown;
|
|
1442
|
+
} | undefined;
|
|
1443
|
+
readonly type: "assistant";
|
|
1444
|
+
readonly agent: string;
|
|
1445
|
+
readonly model: {
|
|
1446
|
+
readonly id: string;
|
|
1447
|
+
readonly providerID: string;
|
|
1448
|
+
readonly variant?: string | undefined;
|
|
1449
|
+
};
|
|
1450
|
+
readonly content: readonly ({
|
|
1451
|
+
readonly type: "tool";
|
|
1452
|
+
readonly id: string;
|
|
1453
|
+
readonly name: string;
|
|
1454
|
+
readonly executed?: boolean | undefined;
|
|
1455
|
+
readonly native?: {
|
|
1456
|
+
readonly [x: string]: unknown;
|
|
1457
|
+
} | undefined;
|
|
1458
|
+
readonly state: {
|
|
1459
|
+
readonly status: "streaming";
|
|
1460
|
+
readonly input: string;
|
|
1461
|
+
} | {
|
|
1462
|
+
readonly status: "running";
|
|
1463
|
+
readonly input: {
|
|
1464
|
+
readonly [x: string]: unknown;
|
|
1465
|
+
};
|
|
1466
|
+
readonly metadata: {
|
|
1467
|
+
readonly [x: string]: Schema.Json;
|
|
1468
|
+
};
|
|
1469
|
+
} | {
|
|
1470
|
+
readonly status: "completed";
|
|
1471
|
+
readonly input: {
|
|
1472
|
+
readonly [x: string]: unknown;
|
|
1473
|
+
};
|
|
1474
|
+
readonly content: readonly [{
|
|
1475
|
+
readonly type: "text";
|
|
1476
|
+
readonly text: string;
|
|
1477
|
+
} | {
|
|
1478
|
+
readonly type: "file";
|
|
1479
|
+
readonly uri: string;
|
|
1480
|
+
readonly mime: string;
|
|
1481
|
+
readonly name?: string | undefined;
|
|
1482
|
+
}, ...({
|
|
1483
|
+
readonly type: "text";
|
|
1484
|
+
readonly text: string;
|
|
1485
|
+
} | {
|
|
1486
|
+
readonly type: "file";
|
|
1487
|
+
readonly uri: string;
|
|
1488
|
+
readonly mime: string;
|
|
1489
|
+
readonly name?: string | undefined;
|
|
1490
|
+
})[]];
|
|
1491
|
+
readonly metadata?: {
|
|
1492
|
+
readonly [x: string]: Schema.Json;
|
|
1493
|
+
} | undefined;
|
|
1494
|
+
} | {
|
|
1495
|
+
readonly status: "error";
|
|
1496
|
+
readonly input: {
|
|
1497
|
+
readonly [x: string]: unknown;
|
|
1498
|
+
};
|
|
1499
|
+
readonly error: {
|
|
1500
|
+
readonly type: string;
|
|
1501
|
+
readonly message: string;
|
|
1502
|
+
readonly status?: number | undefined;
|
|
1503
|
+
readonly response?: {
|
|
1504
|
+
readonly body: string;
|
|
1505
|
+
} | undefined;
|
|
1506
|
+
readonly retryAfterMs?: number | undefined;
|
|
1507
|
+
};
|
|
1508
|
+
readonly content?: readonly [{
|
|
1509
|
+
readonly type: "text";
|
|
1510
|
+
readonly text: string;
|
|
1511
|
+
} | {
|
|
1512
|
+
readonly type: "file";
|
|
1513
|
+
readonly uri: string;
|
|
1514
|
+
readonly mime: string;
|
|
1515
|
+
readonly name?: string | undefined;
|
|
1516
|
+
}, ...({
|
|
1517
|
+
readonly type: "text";
|
|
1518
|
+
readonly text: string;
|
|
1519
|
+
} | {
|
|
1520
|
+
readonly type: "file";
|
|
1521
|
+
readonly uri: string;
|
|
1522
|
+
readonly mime: string;
|
|
1523
|
+
readonly name?: string | undefined;
|
|
1524
|
+
})[]] | undefined;
|
|
1525
|
+
readonly metadata?: {
|
|
1526
|
+
readonly [x: string]: Schema.Json;
|
|
1527
|
+
} | undefined;
|
|
1528
|
+
};
|
|
1529
|
+
readonly time: {
|
|
1530
|
+
readonly created: number;
|
|
1531
|
+
readonly ran?: number | undefined;
|
|
1532
|
+
readonly completed?: number | undefined;
|
|
1533
|
+
};
|
|
1534
|
+
} | {
|
|
1535
|
+
readonly type: "text";
|
|
1536
|
+
readonly text: string;
|
|
1537
|
+
readonly native?: {
|
|
1538
|
+
readonly [x: string]: unknown;
|
|
1539
|
+
} | undefined;
|
|
1540
|
+
} | {
|
|
1541
|
+
readonly type: "reasoning";
|
|
1542
|
+
readonly text: string;
|
|
1543
|
+
readonly native?: {
|
|
1544
|
+
readonly [x: string]: unknown;
|
|
1545
|
+
} | undefined;
|
|
1546
|
+
readonly time?: {
|
|
1547
|
+
readonly created: number;
|
|
1548
|
+
readonly completed?: number | undefined;
|
|
1549
|
+
} | undefined;
|
|
1550
|
+
})[];
|
|
1551
|
+
readonly snapshot?: {
|
|
1552
|
+
readonly start?: string | undefined;
|
|
1553
|
+
readonly end?: string | undefined;
|
|
1554
|
+
readonly files?: readonly string[] | undefined;
|
|
1555
|
+
} | undefined;
|
|
1556
|
+
readonly finish?: "content-filter" | "error" | "length" | "stop" | "tool-calls" | "unknown" | undefined;
|
|
1557
|
+
readonly rawFinish?: string | undefined;
|
|
1558
|
+
readonly native?: {
|
|
1559
|
+
readonly [x: string]: unknown;
|
|
1560
|
+
} | undefined;
|
|
1561
|
+
readonly cost?: number | undefined;
|
|
1562
|
+
readonly tokens?: {
|
|
1563
|
+
readonly input: number;
|
|
1564
|
+
readonly output: number;
|
|
1565
|
+
readonly reasoning: number;
|
|
1566
|
+
readonly cache: {
|
|
1567
|
+
readonly read: number;
|
|
1568
|
+
readonly write: number;
|
|
1569
|
+
};
|
|
1570
|
+
} | undefined;
|
|
1571
|
+
readonly error?: {
|
|
1572
|
+
readonly type: string;
|
|
1573
|
+
readonly message: string;
|
|
1574
|
+
readonly status?: number | undefined;
|
|
1575
|
+
readonly response?: {
|
|
1576
|
+
readonly body: string;
|
|
1577
|
+
} | undefined;
|
|
1578
|
+
readonly retryAfterMs?: number | undefined;
|
|
1579
|
+
} | undefined;
|
|
1580
|
+
readonly retry?: {
|
|
1581
|
+
readonly attempt: number;
|
|
1582
|
+
readonly at: number;
|
|
1583
|
+
readonly error: {
|
|
1584
|
+
readonly type: string;
|
|
1585
|
+
readonly message: string;
|
|
1586
|
+
readonly status?: number | undefined;
|
|
1587
|
+
readonly response?: {
|
|
1588
|
+
readonly body: string;
|
|
1589
|
+
} | undefined;
|
|
1590
|
+
readonly retryAfterMs?: number | undefined;
|
|
1591
|
+
};
|
|
1592
|
+
} | undefined;
|
|
1593
|
+
readonly time: {
|
|
1594
|
+
readonly created: number;
|
|
1595
|
+
readonly streamed?: number | undefined;
|
|
1596
|
+
readonly completed?: number | undefined;
|
|
1597
|
+
};
|
|
1598
|
+
}, "id" | "type"> | Omit<{
|
|
1599
|
+
readonly id: string;
|
|
1600
|
+
readonly metadata?: {
|
|
1601
|
+
readonly [x: string]: unknown;
|
|
1602
|
+
} | undefined;
|
|
1603
|
+
readonly time: {
|
|
1604
|
+
readonly created: number;
|
|
1605
|
+
};
|
|
1606
|
+
readonly type: "compaction";
|
|
1607
|
+
readonly status: "running";
|
|
1608
|
+
readonly reason: "auto" | "manual";
|
|
1609
|
+
readonly summary: string;
|
|
1610
|
+
}, "id" | "type"> | Omit<{
|
|
1611
|
+
readonly id: string;
|
|
1612
|
+
readonly metadata?: {
|
|
1613
|
+
readonly [x: string]: unknown;
|
|
1614
|
+
} | undefined;
|
|
1615
|
+
readonly time: {
|
|
1616
|
+
readonly created: number;
|
|
1617
|
+
};
|
|
1618
|
+
readonly type: "compaction";
|
|
1619
|
+
readonly cost?: number | undefined;
|
|
1620
|
+
readonly tokens?: {
|
|
1621
|
+
readonly input: number;
|
|
1622
|
+
readonly output: number;
|
|
1623
|
+
readonly reasoning: number;
|
|
1624
|
+
readonly cache: {
|
|
1625
|
+
readonly read: number;
|
|
1626
|
+
readonly write: number;
|
|
1627
|
+
};
|
|
1628
|
+
} | undefined;
|
|
1629
|
+
readonly status: "completed";
|
|
1630
|
+
readonly reason: "auto" | "manual";
|
|
1631
|
+
readonly model?: {
|
|
1632
|
+
readonly id: string;
|
|
1633
|
+
readonly providerID: string;
|
|
1634
|
+
readonly variant?: string | undefined;
|
|
1635
|
+
} | undefined;
|
|
1636
|
+
readonly native?: {
|
|
1637
|
+
readonly [x: string]: unknown;
|
|
1638
|
+
} | undefined;
|
|
1639
|
+
readonly summary: string;
|
|
1640
|
+
}, "id" | "type"> | Omit<{
|
|
1641
|
+
readonly id: string;
|
|
1642
|
+
readonly metadata?: {
|
|
1643
|
+
readonly [x: string]: unknown;
|
|
1644
|
+
} | undefined;
|
|
1645
|
+
readonly time: {
|
|
1646
|
+
readonly created: number;
|
|
1647
|
+
};
|
|
1648
|
+
readonly type: "compaction";
|
|
1649
|
+
readonly cost?: number | undefined;
|
|
1650
|
+
readonly tokens?: {
|
|
1651
|
+
readonly input: number;
|
|
1652
|
+
readonly output: number;
|
|
1653
|
+
readonly reasoning: number;
|
|
1654
|
+
readonly cache: {
|
|
1655
|
+
readonly read: number;
|
|
1656
|
+
readonly write: number;
|
|
1657
|
+
};
|
|
1658
|
+
} | undefined;
|
|
1659
|
+
readonly status: "failed";
|
|
1660
|
+
readonly reason: "auto" | "manual";
|
|
1661
|
+
readonly error: {
|
|
1662
|
+
readonly type: string;
|
|
1663
|
+
readonly message: string;
|
|
1664
|
+
readonly status?: number | undefined;
|
|
1665
|
+
readonly response?: {
|
|
1666
|
+
readonly body: string;
|
|
1667
|
+
} | undefined;
|
|
1668
|
+
readonly retryAfterMs?: number | undefined;
|
|
1669
|
+
};
|
|
1670
|
+
}, "id" | "type"> | Omit<{
|
|
1671
|
+
readonly id: string;
|
|
1672
|
+
readonly metadata?: {
|
|
1673
|
+
readonly [x: string]: unknown;
|
|
1674
|
+
} | undefined;
|
|
1675
|
+
readonly time: {
|
|
1676
|
+
readonly created: number;
|
|
1677
|
+
};
|
|
1678
|
+
readonly type: "idle";
|
|
1679
|
+
readonly outcome: "failed" | "interrupted" | "succeeded";
|
|
1680
|
+
readonly error?: {
|
|
1681
|
+
readonly type: string;
|
|
1682
|
+
readonly message: string;
|
|
1683
|
+
readonly status?: number | undefined;
|
|
1684
|
+
readonly response?: {
|
|
1685
|
+
readonly body: string;
|
|
1686
|
+
} | undefined;
|
|
1687
|
+
readonly retryAfterMs?: number | undefined;
|
|
1688
|
+
} | undefined;
|
|
1689
|
+
}, "id" | "type"> | Omit<{
|
|
1690
|
+
readonly id: string;
|
|
1691
|
+
readonly metadata?: {
|
|
1692
|
+
readonly [x: string]: unknown;
|
|
1693
|
+
} | undefined;
|
|
1694
|
+
readonly time: {
|
|
1695
|
+
readonly created: number;
|
|
1696
|
+
};
|
|
1697
|
+
readonly text: string;
|
|
1698
|
+
readonly agents?: readonly {
|
|
1699
|
+
readonly name: string;
|
|
1700
|
+
readonly mention?: {
|
|
1701
|
+
readonly start: number;
|
|
1702
|
+
readonly end: number;
|
|
1703
|
+
readonly text: string;
|
|
1704
|
+
} | undefined;
|
|
1705
|
+
}[] | undefined;
|
|
1706
|
+
readonly skills?: readonly {
|
|
1707
|
+
readonly id: string;
|
|
1708
|
+
readonly name: string;
|
|
1709
|
+
readonly text?: string | undefined;
|
|
1710
|
+
readonly mention?: {
|
|
1711
|
+
readonly start: number;
|
|
1712
|
+
readonly end: number;
|
|
1713
|
+
readonly text: string;
|
|
1714
|
+
} | undefined;
|
|
1715
|
+
}[] | undefined;
|
|
1716
|
+
readonly type: "user";
|
|
1717
|
+
readonly files?: readonly ({
|
|
1718
|
+
readonly data: string;
|
|
1719
|
+
readonly mime: string;
|
|
1720
|
+
readonly source: {
|
|
1721
|
+
readonly type: "inline";
|
|
1722
|
+
} | {
|
|
1723
|
+
readonly type: "uri";
|
|
1724
|
+
readonly uri: string;
|
|
1725
|
+
};
|
|
1726
|
+
readonly name?: string | undefined;
|
|
1727
|
+
readonly description?: string | undefined;
|
|
1728
|
+
readonly mention?: {
|
|
1729
|
+
readonly start: number;
|
|
1730
|
+
readonly end: number;
|
|
1731
|
+
readonly text: string;
|
|
1732
|
+
} | undefined;
|
|
1733
|
+
} | {
|
|
1734
|
+
readonly mime: string;
|
|
1735
|
+
readonly source: {
|
|
1736
|
+
readonly type: "inline";
|
|
1737
|
+
} | {
|
|
1738
|
+
readonly type: "uri";
|
|
1739
|
+
readonly uri: string;
|
|
1740
|
+
};
|
|
1741
|
+
readonly name?: string | undefined;
|
|
1742
|
+
readonly description?: string | undefined;
|
|
1743
|
+
readonly mention?: {
|
|
1744
|
+
readonly start: number;
|
|
1745
|
+
readonly end: number;
|
|
1746
|
+
readonly text: string;
|
|
1747
|
+
} | undefined;
|
|
1748
|
+
readonly uri: string;
|
|
1749
|
+
})[] | undefined;
|
|
1750
|
+
}, "id" | "type">;
|
|
1751
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1752
|
+
seq: number;
|
|
1753
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1754
|
+
time_created: number;
|
|
1755
|
+
time_updated: number;
|
|
1756
|
+
type: "agent-switched" | "assistant" | "compaction" | "idle" | "location-switched" | "model-switched" | "shell" | "skill" | "synthetic" | "system" | "user";
|
|
1757
|
+
}[];
|
|
1758
|
+
meta: Map<string, Meta>;
|
|
1759
|
+
}, never, never>;
|
|
1760
|
+
/** {@link keepRefs} for inbox rows. */
|
|
1761
|
+
export declare const keepInboxRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1762
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1763
|
+
}, rows: readonly {
|
|
1764
|
+
delivery: "queue" | "steer";
|
|
1765
|
+
enqueued_seq: number;
|
|
1766
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1767
|
+
payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
|
|
1768
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1769
|
+
time_created: number;
|
|
1770
|
+
type: "compaction" | "move" | "synthetic" | "user";
|
|
1771
|
+
}[]) => Effect.Effect<{
|
|
1772
|
+
rows: {
|
|
1773
|
+
delivery: "queue" | "steer";
|
|
1774
|
+
enqueued_seq: number;
|
|
1775
|
+
id: string & import("effect/Brand").Brand<"Session.Message.ID">;
|
|
1776
|
+
payload: import("@opencode/schema/session-inbox").CompactionPayload | import("@opencode/schema/session-inbox").MovePayload | import("@opencode/schema/session-inbox").SyntheticPayload | SessionStored.UserPayload;
|
|
1777
|
+
session_id: string & import("effect/Brand").Brand<"SessionID">;
|
|
1778
|
+
time_created: number;
|
|
1779
|
+
type: "compaction" | "move" | "synthetic" | "user";
|
|
1780
|
+
}[];
|
|
1781
|
+
meta: Map<string, Meta>;
|
|
1782
|
+
}, never, never>;
|
|
1783
|
+
/** Adds each kept ref's blob size and dimensions to files decoded from {@link keepRefs} or {@link keepInboxRefs}. */
|
|
1784
|
+
export declare function describe(files: ReadonlyArray<Attachment>, meta: ReadonlyMap<string, Meta>): Attachment[];
|
|
1785
|
+
/**
|
|
1786
|
+
* One blob's type and bytes, for the experimental media route and `media:` prompt attachments. Only a blob some
|
|
1787
|
+
* message or inbox item still references is readable; an unreferenced one awaiting its sweep reads as missing.
|
|
1788
|
+
*/
|
|
1789
|
+
export declare const read: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
1790
|
+
$client: import("effect/sql/SqlClient").SqlClient;
|
|
1791
|
+
}, hash: string) => Effect.Effect<{
|
|
1792
|
+
mime: string;
|
|
1793
|
+
data: Buffer<ArrayBufferLike>;
|
|
1794
|
+
} | undefined, never, never>;
|
|
886
1795
|
/** A blob's hash is the lowercase hex SHA-256 of its raw bytes. */
|
|
887
1796
|
export declare const hashBytes: (raw: Uint8Array) => string;
|
|
888
1797
|
/** The row a ref keeps its blob alive for: a message at its `seq`, or a pending inbox row at its `enqueued_seq`. */
|
|
@@ -891,6 +1800,8 @@ export interface Owner {
|
|
|
891
1800
|
readonly messageID: SessionMessage.ID;
|
|
892
1801
|
readonly seq: number;
|
|
893
1802
|
}
|
|
1803
|
+
/** Reads `experimental.media_blob` from the Config in scope on every call; without one, it is off. */
|
|
1804
|
+
export declare const enabled: Effect.Effect<boolean, never, never>;
|
|
894
1805
|
/** {@link externalize} for a user message or pending inbox user payload. */
|
|
895
1806
|
export declare const externalizePayload: <T extends {
|
|
896
1807
|
readonly files?: ReadonlyArray<SessionStored.File>;
|
|
@@ -904,6 +1815,24 @@ export declare const externalizePayload: <T extends {
|
|
|
904
1815
|
export declare const externalize: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
905
1816
|
$client: import("effect/sql/SqlClient").SqlClient;
|
|
906
1817
|
}, message: SessionStored.User | SessionMessage.Info) => Effect.Effect<SessionMessage.AgentSelected | SessionMessage.Assistant | SessionMessage.CompactionCompleted | SessionMessage.CompactionFailed | SessionMessage.CompactionRunning | SessionMessage.Idle | SessionMessage.LocationSwitched | SessionMessage.ModelSelected | SessionMessage.Shell | SessionMessage.Skill | SessionMessage.Synthetic | SessionMessage.System | SessionStored.User, never, never>;
|
|
1818
|
+
/**
|
|
1819
|
+
* Moves a stored row's inline media into blobs whatever the flag says, for offline backfills. Returns the row to
|
|
1820
|
+
* store (the same object when nothing moved), the blobs to insert, and every hash the row then names.
|
|
1821
|
+
*/
|
|
1822
|
+
export declare function split(data: MessageRow["data"] | InboxRow["payload"]): {
|
|
1823
|
+
data: import("@opencode/schema/session-inbox").CompactionPayload;
|
|
1824
|
+
moved: boolean;
|
|
1825
|
+
blobs: {
|
|
1826
|
+
bytes: number;
|
|
1827
|
+
data: Buffer<ArrayBufferLike>;
|
|
1828
|
+
hash: string;
|
|
1829
|
+
height?: number | null | undefined;
|
|
1830
|
+
mime: string;
|
|
1831
|
+
time_created?: number | undefined;
|
|
1832
|
+
width?: number | null | undefined;
|
|
1833
|
+
}[];
|
|
1834
|
+
hashes: Set<string>;
|
|
1835
|
+
};
|
|
907
1836
|
/** Records that `owner` references each blob its stored row names, so release keeps them until it lets go. */
|
|
908
1837
|
export declare const recordRefs: (db: import("../database/drizzle.js").EffectSQLiteDatabase<import("drizzle-orm").EmptyRelations> & {
|
|
909
1838
|
$client: import("effect/sql/SqlClient").SqlClient;
|