@opencode/core 0.0.0-dev-20687 → 0.0.0-dev-20690
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{persistent-pty-yy2qfy1b.js → tool-output-00qqsd88.js} +11 -11
- package/dist/chunks/{persistent-pty-0xazgah3.js → tool-output-01wczdzm.js} +20 -20
- package/dist/chunks/{persistent-pty-ctmh09fa.js → tool-output-03n1avwh.js} +11 -11
- package/dist/chunks/{persistent-pty-a6z0eyza.js → tool-output-0cjj111f.js} +3 -3
- package/dist/chunks/tool-output-0d4j78kf.js +26 -0
- package/dist/chunks/{persistent-pty-qgn6gcr1.js → tool-output-0jwsre1p.js} +5 -5
- package/dist/chunks/{persistent-pty-0paq2nw3.js → tool-output-0paq2nw3.js} +1 -1
- package/dist/chunks/{persistent-pty-h9p4xcv4.js → tool-output-0se8d28b.js} +10 -10
- package/dist/chunks/{persistent-pty-0vbcp93d.js → tool-output-0vbcp93d.js} +2 -2
- package/dist/chunks/{persistent-pty-dj40jy9p.js → tool-output-14q8tb4m.js} +11 -11
- package/dist/chunks/{persistent-pty-k2sevy6a.js → tool-output-16dzdxyy.js} +40 -40
- package/dist/chunks/{persistent-pty-g7dwpm2k.js → tool-output-17kbye3y.js} +15 -15
- package/dist/chunks/{persistent-pty-2zfembs1.js → tool-output-1c23429g.js} +5 -5
- package/dist/chunks/{persistent-pty-1dazxqgg.js → tool-output-1dazxqgg.js} +2 -2
- package/dist/chunks/{persistent-pty-1dvck2a7.js → tool-output-1dvck2a7.js} +2 -2
- package/dist/chunks/{persistent-pty-33w4ejhs.js → tool-output-1ygqh575.js} +6 -6
- package/dist/chunks/{persistent-pty-8sv9ghg1.js → tool-output-25y3a85a.js} +15 -15
- package/dist/chunks/{persistent-pty-2a5m3afh.js → tool-output-2a5m3afh.js} +1 -1
- package/dist/chunks/{persistent-pty-cjnf2hxy.js → tool-output-2dfnpwbj.js} +15 -15
- package/dist/chunks/{persistent-pty-sagw8wac.js → tool-output-2gr7ffpw.js} +27 -27
- package/dist/chunks/{persistent-pty-80scg3y3.js → tool-output-2k71kv7p.js} +4 -4
- package/dist/chunks/{persistent-pty-tqwb6d51.js → tool-output-2kbyt3gb.js} +14 -14
- package/dist/chunks/{persistent-pty-kh5saknc.js → tool-output-2nhapass.js} +29 -29
- package/dist/chunks/{persistent-pty-tej6jj18.js → tool-output-2qphfp0m.js} +1 -1
- package/dist/chunks/{persistent-pty-c6r2w95y.js → tool-output-2qqbwyhk.js} +46 -46
- package/dist/chunks/{persistent-pty-b14n2fy6.js → tool-output-2w1y8eba.js} +24 -24
- package/dist/chunks/{persistent-pty-jmvy1xeb.js → tool-output-2wsa3f5j.js} +5 -5
- package/dist/chunks/{persistent-pty-0p9y25pt.js → tool-output-2xcja63t.js} +10 -10
- package/dist/chunks/{persistent-pty-gpfqc5vz.js → tool-output-33j9wzam.js} +22 -22
- package/dist/chunks/{persistent-pty-ykdgddnc.js → tool-output-35mq92ha.js} +11 -11
- package/dist/chunks/{persistent-pty-9t4c9838.js → tool-output-3br7c0zx.js} +11 -11
- package/dist/chunks/{persistent-pty-3fc6dm20.js → tool-output-3fc6dm20.js} +1 -1
- package/dist/chunks/{persistent-pty-3hepkmqq.js → tool-output-3hepkmqq.js} +1 -1
- package/dist/chunks/{persistent-pty-3smtnn6g.js → tool-output-3smtnn6g.js} +1 -1
- package/dist/chunks/{persistent-pty-3tvqynh2.js → tool-output-3tvqynh2.js} +1 -1
- package/dist/chunks/{persistent-pty-776h2rx5.js → tool-output-3xpngeap.js} +5 -5
- package/dist/chunks/{persistent-pty-esvm55dh.js → tool-output-3yvh6ynk.js} +8 -8
- package/dist/chunks/{persistent-pty-3zsf4n22.js → tool-output-3zsf4n22.js} +1 -1
- package/dist/chunks/{persistent-pty-s5jnjhax.js → tool-output-46vfxqy2.js} +30 -30
- package/dist/chunks/{persistent-pty-rrt0a0ha.js → tool-output-48kw51zw.js} +3 -3
- package/dist/chunks/{persistent-pty-ebkq2xk5.js → tool-output-4c18rwgv.js} +8 -8
- package/dist/chunks/{persistent-pty-pj840tqw.js → tool-output-4j8rs4zn.js} +17 -17
- package/dist/chunks/{persistent-pty-qwppvs37.js → tool-output-4nhcjvb4.js} +5 -5
- package/dist/chunks/{persistent-pty-4ts7tf6z.js → tool-output-4ts7tf6z.js} +2 -2
- package/dist/chunks/{persistent-pty-8cn4rt87.js → tool-output-5313v1x9.js} +7 -7
- package/dist/chunks/{persistent-pty-54ma36ye.js → tool-output-54ma36ye.js} +1 -1
- package/dist/chunks/{persistent-pty-fpgmt626.js → tool-output-59cpc9hg.js} +15 -15
- package/dist/chunks/{persistent-pty-1nyk5n2d.js → tool-output-5axryy5w.js} +25 -25
- package/dist/chunks/{persistent-pty-5daktx2q.js → tool-output-5daktx2q.js} +1 -1
- package/dist/chunks/{persistent-pty-g17kg1qe.js → tool-output-5hbj76mq.js} +11 -11
- package/dist/chunks/{persistent-pty-5m9w47nd.js → tool-output-5m9w47nd.js} +1 -1
- package/dist/chunks/{persistent-pty-5t3nmthw.js → tool-output-5t3nmthw.js} +2 -2
- package/dist/chunks/{persistent-pty-fypvnyj1.js → tool-output-5ww5wa86.js} +4 -4
- package/dist/chunks/{persistent-pty-vawcbwh6.js → tool-output-5zkpyy5y.js} +30 -30
- package/dist/chunks/{persistent-pty-pctk8djh.js → tool-output-65k64ybp.js} +18 -18
- package/dist/chunks/{persistent-pty-821k94dh.js → tool-output-6e8srf29.js} +14 -14
- package/dist/chunks/{persistent-pty-jmkha9g0.js → tool-output-6fhzeyxk.js} +6 -6
- package/dist/chunks/{persistent-pty-a7dg2dbf.js → tool-output-6fxpe754.js} +25 -25
- package/dist/chunks/{persistent-pty-tzvfbext.js → tool-output-6gzpj820.js} +17 -17
- package/dist/chunks/{persistent-pty-vc6qc4g1.js → tool-output-6k79e2zw.js} +8 -8
- package/dist/chunks/{persistent-pty-a8759rm3.js → tool-output-6keqzetd.js} +11 -11
- package/dist/chunks/{persistent-pty-ebbatmv1.js → tool-output-6mkz5pnh.js} +3 -3
- package/dist/chunks/{persistent-pty-ymp6swde.js → tool-output-6mnjyrw6.js} +38 -38
- package/dist/chunks/{persistent-pty-zkv1zasr.js → tool-output-6pkskwe3.js} +21 -21
- package/dist/chunks/{persistent-pty-6xb47vfp.js → tool-output-6xb47vfp.js} +1 -1
- package/dist/chunks/{persistent-pty-dvc89yjx.js → tool-output-6ysrkrkr.js} +8 -8
- package/dist/chunks/{persistent-pty-71az546q.js → tool-output-71az546q.js} +2 -2
- package/dist/chunks/{persistent-pty-9p8x2w89.js → tool-output-77wyjq9b.js} +5 -5
- package/dist/chunks/{persistent-pty-7bmhse3q.js → tool-output-7bmhse3q.js} +1 -1
- package/dist/chunks/{persistent-pty-7t96ahay.js → tool-output-7jz9yabh.js} +17 -17
- package/dist/chunks/{persistent-pty-yf5bkxv9.js → tool-output-7sm2b8gw.js} +28 -28
- package/dist/chunks/{persistent-pty-84txncab.js → tool-output-84txncab.js} +1 -1
- package/dist/chunks/{persistent-pty-6f0za955.js → tool-output-87pyc8s0.js} +37 -37
- package/dist/chunks/{persistent-pty-8d7r5vzw.js → tool-output-8d7r5vzw.js} +1 -1
- package/dist/chunks/{persistent-pty-7h7rhvce.js → tool-output-8nfsty1p.js} +21 -21
- package/dist/chunks/{persistent-pty-t2fc4mz5.js → tool-output-8rqycdgd.js} +7 -7
- package/dist/chunks/{persistent-pty-f8cpp2rj.js → tool-output-8t49rs88.js} +24 -24
- package/dist/chunks/{persistent-pty-4mradf57.js → tool-output-94p2bmng.js} +32 -32
- package/dist/chunks/{persistent-pty-xq8qfpct.js → tool-output-95yzr9fr.js} +8 -8
- package/dist/chunks/{persistent-pty-9e5bzkjp.js → tool-output-9e5bzkjp.js} +3 -3
- package/dist/chunks/{persistent-pty-db4e12wq.js → tool-output-9gbst59k.js} +31 -31
- package/dist/chunks/{persistent-pty-bqk3vb01.js → tool-output-a0h4hvtc.js} +17 -17
- package/dist/chunks/{persistent-pty-0nywwgf2.js → tool-output-a0yaxx0j.js} +9 -9
- package/dist/chunks/{persistent-pty-t97gm37m.js → tool-output-a181q9t6.js} +180 -180
- package/dist/chunks/{persistent-pty-ny3bzcqp.js → tool-output-a3nb7vj0.js} +4 -4
- package/dist/chunks/{persistent-pty-2qq695gf.js → tool-output-a60qwpfx.js} +22 -22
- package/dist/chunks/{persistent-pty-aaet6srn.js → tool-output-aaet6srn.js} +2 -2
- package/dist/chunks/{persistent-pty-nyjecd6w.js → tool-output-ac18wex5.js} +26 -26
- package/dist/chunks/{persistent-pty-08nxe6az.js → tool-output-addt2tdy.js} +3 -3
- package/dist/chunks/{persistent-pty-7j2qha59.js → tool-output-ahd542yp.js} +8 -8
- package/dist/chunks/{persistent-pty-qv8c18b1.js → tool-output-atadgrhy.js} +12 -12
- package/dist/chunks/{persistent-pty-qfch3fyq.js → tool-output-awp25jd4.js} +15 -15
- package/dist/chunks/{persistent-pty-b6gygkdw.js → tool-output-b6gygkdw.js} +2 -2
- package/dist/chunks/{persistent-pty-xw932zhm.js → tool-output-bd3vtvgg.js} +20 -20
- package/dist/chunks/{persistent-pty-v13c6hwm.js → tool-output-c2qzk1d4.js} +45 -45
- package/dist/chunks/{persistent-pty-209emr7t.js → tool-output-c2y75rr4.js} +3 -3
- package/dist/chunks/{persistent-pty-s78gt5gg.js → tool-output-c483qb4a.js} +54 -54
- package/dist/chunks/{persistent-pty-gjjws0jz.js → tool-output-c6vmj6s8.js} +12 -12
- package/dist/chunks/{persistent-pty-b8f6scpx.js → tool-output-caaj709w.js} +14 -14
- package/dist/chunks/{persistent-pty-8fezg7rf.js → tool-output-cy4b4mz7.js} +52 -52
- package/dist/chunks/{persistent-pty-rcbfcev9.js → tool-output-czadqghd.js} +13 -13
- package/dist/chunks/{persistent-pty-mhgx8wws.js → tool-output-d9sgy5v4.js} +4 -4
- package/dist/chunks/{persistent-pty-addxnjmp.js → tool-output-db2wf4at.js} +4 -4
- package/dist/chunks/{persistent-pty-5ytnddsz.js → tool-output-dcz2h22h.js} +7 -7
- package/dist/chunks/{persistent-pty-nxm207yx.js → tool-output-dpkg50ah.js} +4 -4
- package/dist/chunks/{persistent-pty-hd7y0qnv.js → tool-output-dpzyz640.js} +19 -19
- package/dist/chunks/{persistent-pty-wh6zw745.js → tool-output-dssbfrwz.js} +5 -5
- package/dist/chunks/{persistent-pty-drkc8b72.js → tool-output-dzz1kj22.js} +5 -5
- package/dist/chunks/{persistent-pty-xhjbenvh.js → tool-output-e55pdewd.js} +16 -16
- package/dist/chunks/{persistent-pty-2sfsr2hd.js → tool-output-e5z2a0wj.js} +11 -11
- package/dist/chunks/{persistent-pty-h4etxkg0.js → tool-output-e6r2s1v4.js} +30 -30
- package/dist/chunks/{persistent-pty-ef5x83kb.js → tool-output-ef5x83kb.js} +1 -1
- package/dist/chunks/{persistent-pty-mhkvc446.js → tool-output-eq1pz5kg.js} +3 -3
- package/dist/chunks/{persistent-pty-kstajs3v.js → tool-output-eq454e6t.js} +26 -26
- package/dist/chunks/{persistent-pty-77f241gp.js → tool-output-et3gdkf0.js} +11 -11
- package/dist/chunks/{persistent-pty-z8ywv166.js → tool-output-et61fm3t.js} +19 -19
- package/dist/chunks/{persistent-pty-gkfsnvzg.js → tool-output-ethg0faf.js} +18 -18
- package/dist/chunks/{persistent-pty-etq0c3wd.js → tool-output-etq0c3wd.js} +1 -1
- package/dist/chunks/{persistent-pty-yhm0jx9g.js → tool-output-etv31qza.js} +16 -16
- package/dist/chunks/{persistent-pty-f6rmnwf2.js → tool-output-exgee5t8.js} +25 -25
- package/dist/chunks/{persistent-pty-tag6x3x4.js → tool-output-f00eh3k7.js} +13 -13
- package/dist/chunks/{persistent-pty-cpdwrzkg.js → tool-output-f0mv3stj.js} +16 -16
- package/dist/chunks/{persistent-pty-qs6csmpp.js → tool-output-f0phkt7r.js} +32 -32
- package/dist/chunks/{persistent-pty-t3624nnb.js → tool-output-f193y4j0.js} +24 -24
- package/dist/chunks/{persistent-pty-3sj8yt8v.js → tool-output-f29mbr7f.js} +4 -4
- package/dist/chunks/{persistent-pty-ttvdwa7z.js → tool-output-f41zmgay.js} +4 -4
- package/dist/chunks/{persistent-pty-kny40qmr.js → tool-output-fbqxm1rk.js} +24 -24
- package/dist/chunks/{persistent-pty-dbph12me.js → tool-output-fgnywkrh.js} +9 -9
- package/dist/chunks/{persistent-pty-9p1dxk2x.js → tool-output-fh8s6qap.js} +3 -3
- package/dist/chunks/{persistent-pty-xjnmh88x.js → tool-output-fjjf4n4y.js} +11 -11
- package/dist/chunks/{persistent-pty-v0es1rhs.js → tool-output-fpecnkgp.js} +9 -9
- package/dist/chunks/{persistent-pty-ht20r4hb.js → tool-output-fv8nmtg0.js} +14 -14
- package/dist/chunks/{persistent-pty-e47hsmy2.js → tool-output-fz0vtw33.js} +14 -14
- package/dist/chunks/{persistent-pty-gft05b0a.js → tool-output-g2y161wv.js} +5 -5
- package/dist/chunks/{persistent-pty-z26d29s3.js → tool-output-g7e2501v.js} +22 -22
- package/dist/chunks/{persistent-pty-gd4qta3r.js → tool-output-gd4qta3r.js} +1 -1
- package/dist/chunks/{persistent-pty-brp8zeym.js → tool-output-gf2az15k.js} +6 -6
- package/dist/chunks/{persistent-pty-159jj1aw.js → tool-output-gj61qart.js} +32 -32
- package/dist/chunks/{persistent-pty-h2b79v29.js → tool-output-h2b79v29.js} +2 -2
- package/dist/chunks/{persistent-pty-r21g991y.js → tool-output-h3k0sdzw.js} +6 -6
- package/dist/chunks/{persistent-pty-h6vf3j39.js → tool-output-h6vf3j39.js} +1 -1
- package/dist/chunks/{persistent-pty-3kfev04w.js → tool-output-hg1d6wk1.js} +44 -44
- package/dist/chunks/{persistent-pty-e5zvhjbr.js → tool-output-hk8r7czx.js} +7 -7
- package/dist/chunks/{persistent-pty-z12bx410.js → tool-output-hp36904v.js} +24 -24
- package/dist/chunks/{persistent-pty-hkm5bgx3.js → tool-output-hqcrfynj.js} +15 -15
- package/dist/chunks/{persistent-pty-hjdzg5ea.js → tool-output-hwf67kmb.js} +22 -22
- package/dist/chunks/{persistent-pty-4b443rck.js → tool-output-hy8bge2v.js} +11 -11
- package/dist/chunks/{persistent-pty-1ym64zb3.js → tool-output-hy9gebj0.js} +9 -9
- package/dist/chunks/{persistent-pty-j56e64zr.js → tool-output-j56e64zr.js} +1 -1
- package/dist/chunks/{persistent-pty-5st8hhzb.js → tool-output-jn2qmfgk.js} +11 -11
- package/dist/chunks/{persistent-pty-jdhjf7zb.js → tool-output-jywas9t1.js} +1 -1
- package/dist/chunks/{persistent-pty-e4bbxgnz.js → tool-output-k1h2dvms.js} +11 -11
- package/dist/chunks/{persistent-pty-xmqf1xay.js → tool-output-k3dze7tg.js} +36 -36
- package/dist/chunks/{persistent-pty-srq8z0b0.js → tool-output-k70p9jzb.js} +9 -9
- package/dist/chunks/{persistent-pty-zab19jja.js → tool-output-k7myrtme.js} +9 -9
- package/dist/chunks/{persistent-pty-se0pvr1e.js → tool-output-k85tdqsj.js} +18 -18
- package/dist/chunks/{persistent-pty-kwfpxcz0.js → tool-output-km5eadxj.js} +5 -5
- package/dist/chunks/{persistent-pty-3hepmaxp.js → tool-output-kpha1e6n.js} +2 -2
- package/dist/chunks/{persistent-pty-4fwbt0xm.js → tool-output-krfam912.js} +42 -42
- package/dist/chunks/{persistent-pty-rz2rym9w.js → tool-output-kzgt6f80.js} +20 -20
- package/dist/chunks/{persistent-pty-m3fdjcah.js → tool-output-m3fdjcah.js} +1 -1
- package/dist/chunks/{persistent-pty-ay2qp8kd.js → tool-output-m81jeghn.js} +21 -21
- package/dist/chunks/{persistent-pty-987yrxdf.js → tool-output-m9056vrs.js} +4 -4
- package/dist/chunks/{persistent-pty-m9w0rfyh.js → tool-output-m9w0rfyh.js} +1 -1
- package/dist/chunks/{persistent-pty-abvg2g3b.js → tool-output-mf00bat8.js} +4 -4
- package/dist/chunks/{persistent-pty-bhxrw03t.js → tool-output-mjxb3x5h.js} +27 -27
- package/dist/chunks/{persistent-pty-yh586nn1.js → tool-output-mnr2ek00.js} +8 -8
- package/dist/chunks/{persistent-pty-41ztszy1.js → tool-output-mqd74103.js} +6 -6
- package/dist/chunks/{persistent-pty-ffj38dam.js → tool-output-mv26fab9.js} +6 -6
- package/dist/chunks/{persistent-pty-k76fn4kw.js → tool-output-n4r3xatb.js} +4 -4
- package/dist/chunks/{persistent-pty-t88avx8c.js → tool-output-n6hgm2fe.js} +13 -13
- package/dist/chunks/{persistent-pty-z9q8g528.js → tool-output-nh7aefay.js} +11 -11
- package/dist/chunks/{persistent-pty-9q7r9kz4.js → tool-output-nhd4byj4.js} +30 -30
- package/dist/chunks/{persistent-pty-rhraev7y.js → tool-output-nkf980df.js} +4 -4
- package/dist/chunks/{persistent-pty-fsvaq0rq.js → tool-output-nxegv9h8.js} +26 -26
- package/dist/chunks/{persistent-pty-tpw6cwsb.js → tool-output-p37cw4rj.js} +8 -8
- package/dist/chunks/{persistent-pty-bfmp8476.js → tool-output-p4s1435r.js} +13 -13
- package/dist/chunks/{persistent-pty-gasqarw7.js → tool-output-pcx1yvm2.js} +22 -22
- package/dist/chunks/{persistent-pty-e62vkwx0.js → tool-output-pdq19wc5.js} +6 -6
- package/dist/chunks/tool-output-pf31ssb9.js +18 -0
- package/dist/chunks/{persistent-pty-pjvnvgmy.js → tool-output-pjvnvgmy.js} +1 -1
- package/dist/chunks/{persistent-pty-pknna89w.js → tool-output-pknna89w.js} +1 -1
- package/dist/chunks/{persistent-pty-zfs8ae4p.js → tool-output-pkqb68ka.js} +4 -4
- package/dist/chunks/{persistent-pty-yb8x539d.js → tool-output-pqqp59vn.js} +10 -10
- package/dist/chunks/{persistent-pty-hkbza7a0.js → tool-output-prh9w8gf.js} +43 -43
- package/dist/chunks/{persistent-pty-4jyvzrab.js → tool-output-prq7hedt.js} +9 -9
- package/dist/chunks/{persistent-pty-kvgwdag7.js → tool-output-ptaj5psm.js} +32 -32
- package/dist/chunks/{persistent-pty-2swnp9mj.js → tool-output-pwmnbw1t.js} +18 -18
- package/dist/chunks/{persistent-pty-cfsekr6v.js → tool-output-py3kkmfq.js} +2 -2
- package/dist/chunks/{persistent-pty-q0xm7vwc.js → tool-output-q0xm7vwc.js} +2 -2
- package/dist/chunks/{persistent-pty-5w9yjztw.js → tool-output-q5e7cmwt.js} +1 -1
- package/dist/chunks/{persistent-pty-hm06yfae.js → tool-output-q8fjykq6.js} +23 -23
- package/dist/chunks/{persistent-pty-zbngbqhj.js → tool-output-qbkf9amh.js} +4 -4
- package/dist/chunks/{persistent-pty-qnc92qwc.js → tool-output-qnc92qwc.js} +1 -1
- package/dist/chunks/{persistent-pty-qsdy395h.js → tool-output-qsdy395h.js} +1 -1
- package/dist/chunks/{persistent-pty-qxjc9qry.js → tool-output-qxjc9qry.js} +3 -3
- package/dist/chunks/{persistent-pty-b3f8fkhc.js → tool-output-qygbw77c.js} +5 -5
- package/dist/chunks/{persistent-pty-cwa6csj7.js → tool-output-r2m716tb.js} +9 -9
- package/dist/chunks/{persistent-pty-nx959hjs.js → tool-output-r3e4wjdy.js} +32 -32
- package/dist/chunks/{persistent-pty-dbmdxep8.js → tool-output-r7akh4p6.js} +20 -20
- package/dist/chunks/{persistent-pty-65xe46aa.js → tool-output-rdj5x1aq.js} +26 -26
- package/dist/chunks/{persistent-pty-rdw6cm16.js → tool-output-rdw6cm16.js} +1 -1
- package/dist/chunks/{persistent-pty-bqg181pq.js → tool-output-rfqabggz.js} +30 -30
- package/dist/chunks/{persistent-pty-2jdn5pnb.js → tool-output-rmaq76vj.js} +30 -30
- package/dist/chunks/{persistent-pty-6h8z8hw5.js → tool-output-rq4h19re.js} +29 -29
- package/dist/chunks/{persistent-pty-mbnxefga.js → tool-output-rqa1jxse.js} +2 -2
- package/dist/chunks/{persistent-pty-h4xvaj36.js → tool-output-rszaqsqw.js} +25 -25
- package/dist/chunks/{persistent-pty-pzd408ez.js → tool-output-rthh6mvw.js} +13 -13
- package/dist/chunks/{persistent-pty-egqzgtgt.js → tool-output-rwdx3sxf.js} +17 -17
- package/dist/chunks/{persistent-pty-ebgnp7vs.js → tool-output-s3sthbff.js} +4 -4
- package/dist/chunks/{persistent-pty-q14bk57j.js → tool-output-sa5ep0ge.js} +9 -9
- package/dist/chunks/{persistent-pty-kpqmrwd8.js → tool-output-sdtpzacm.js} +16 -16
- package/dist/chunks/{persistent-pty-mjymc32g.js → tool-output-skhcedy2.js} +4 -4
- package/dist/chunks/{persistent-pty-xwya7q8d.js → tool-output-sp6frf88.js} +10 -10
- package/dist/chunks/{persistent-pty-0vktz9je.js → tool-output-sss67ayf.js} +29 -21
- package/dist/chunks/{persistent-pty-yyaqg8dp.js → tool-output-sxxwk2h0.js} +32 -32
- package/dist/chunks/{persistent-pty-p68r1vg7.js → tool-output-t5pvq3y5.js} +46 -46
- package/dist/chunks/{persistent-pty-tazgh4e4.js → tool-output-tazgh4e4.js} +1 -1
- package/dist/chunks/{persistent-pty-tcezcvh9.js → tool-output-tcezcvh9.js} +1 -1
- package/dist/chunks/{persistent-pty-tdstcens.js → tool-output-tdstcens.js} +1 -1
- package/dist/chunks/{persistent-pty-sdyd34mw.js → tool-output-tjyakkek.js} +5 -5
- package/dist/chunks/{persistent-pty-qhvrxs31.js → tool-output-tx02815r.js} +83 -83
- package/dist/chunks/{persistent-pty-8mbscqky.js → tool-output-tx9w5tca.js} +8 -8
- package/dist/chunks/{persistent-pty-asgv5924.js → tool-output-v68dkaev.js} +11 -11
- package/dist/chunks/{persistent-pty-btbmdjwj.js → tool-output-v7z2bvyd.js} +4 -4
- package/dist/chunks/{persistent-pty-bzxqkbgp.js → tool-output-vdr6fryh.js} +41 -41
- package/dist/chunks/{persistent-pty-veqvce7d.js → tool-output-veqvce7d.js} +1 -1
- package/dist/chunks/{persistent-pty-vcbpjxhp.js → tool-output-vj0y6dfg.js} +17 -17
- package/dist/chunks/tool-output-vn1tddxd.js +507 -0
- package/dist/chunks/{persistent-pty-k5fp6tz5.js → tool-output-vt0186jp.js} +6 -6
- package/dist/chunks/{persistent-pty-eppexmwc.js → tool-output-vw5h6757.js} +5 -5
- package/dist/chunks/{persistent-pty-vzs5sf6e.js → tool-output-vzs5sf6e.js} +1 -1
- package/dist/chunks/{persistent-pty-v5zec58b.js → tool-output-w2bqs4gs.js} +13 -13
- package/dist/chunks/{persistent-pty-w3wsvvr9.js → tool-output-w3wsvvr9.js} +1 -1
- package/dist/chunks/{persistent-pty-ksxmdx21.js → tool-output-w8eh3skm.js} +48 -48
- package/dist/chunks/{persistent-pty-gebtr55s.js → tool-output-w8xr7nv8.js} +5 -5
- package/dist/chunks/{persistent-pty-wd87259q.js → tool-output-wd87259q.js} +1 -1
- package/dist/chunks/{persistent-pty-6a9c44ad.js → tool-output-wmg6afj1.js} +20 -20
- package/dist/chunks/{persistent-pty-x7qqpb35.js → tool-output-wn1dwvrm.js} +11 -11
- package/dist/chunks/{persistent-pty-57r39xyq.js → tool-output-wq3fhqxe.js} +20 -20
- package/dist/chunks/{persistent-pty-s8d7rejh.js → tool-output-wv396vej.js} +8 -8
- package/dist/chunks/{persistent-pty-k8hpw67k.js → tool-output-x2rw7g36.js} +5 -5
- package/dist/chunks/{persistent-pty-5667xmgz.js → tool-output-x3zjy24f.js} +3 -3
- package/dist/chunks/{persistent-pty-g5w8qwbj.js → tool-output-xfkkasph.js} +4 -4
- package/dist/chunks/{persistent-pty-xkntkrq7.js → tool-output-xkntkrq7.js} +2 -2
- package/dist/chunks/{persistent-pty-8xtfcejb.js → tool-output-xky21pn0.js} +47 -47
- package/dist/chunks/{persistent-pty-qja65tr3.js → tool-output-xrck4m4y.js} +6 -6
- package/dist/chunks/{persistent-pty-75rr0zdh.js → tool-output-xt90xqzw.js} +6 -6
- package/dist/chunks/{persistent-pty-ry3yyvrw.js → tool-output-xtmjw94y.js} +27 -27
- package/dist/chunks/{persistent-pty-42ztr079.js → tool-output-xv7vf67p.js} +29 -29
- package/dist/chunks/{persistent-pty-z3z723at.js → tool-output-xw92hw7n.js} +33 -33
- package/dist/chunks/{persistent-pty-y1fvbwt7.js → tool-output-y1fvbwt7.js} +1 -1
- package/dist/chunks/{persistent-pty-rhxz3xab.js → tool-output-y35w8rgz.js} +17 -17
- package/dist/chunks/{persistent-pty-4dyk4eed.js → tool-output-y7vankhn.js} +19 -19
- package/dist/chunks/{persistent-pty-1kggcmr6.js → tool-output-y975n134.js} +7 -7
- package/dist/chunks/{persistent-pty-0hf9g8pg.js → tool-output-ycjb11n5.js} +6 -6
- package/dist/chunks/{persistent-pty-qvy1p86h.js → tool-output-ydcw2wd2.js} +45 -45
- package/dist/chunks/{persistent-pty-bx0gyb4h.js → tool-output-ygdna4kr.js} +5 -5
- package/dist/chunks/{persistent-pty-drgdwh42.js → tool-output-yj3sgdan.js} +69 -69
- package/dist/chunks/{persistent-pty-qabhdn7r.js → tool-output-yk94bdza.js} +8 -8
- package/dist/chunks/{persistent-pty-1246p72b.js → tool-output-yq8freb2.js} +20 -20
- package/dist/chunks/{persistent-pty-zg4hvqzs.js → tool-output-yqcgzvte.js} +20 -20
- package/dist/chunks/{persistent-pty-fqnavh99.js → tool-output-yr89pw6g.js} +10 -10
- package/dist/chunks/{persistent-pty-rpcr0zmj.js → tool-output-ywrt7q9n.js} +12 -12
- package/dist/chunks/{persistent-pty-9cva8bgq.js → tool-output-yzwd6hg8.js} +6 -6
- package/dist/chunks/{persistent-pty-z0bkrqjs.js → tool-output-z0bkrqjs.js} +1 -1
- package/dist/chunks/{persistent-pty-mgqdd06q.js → tool-output-z1seheqb.js} +4 -4
- package/dist/chunks/{persistent-pty-wkm5cp91.js → tool-output-z27ctmjc.js} +13 -13
- package/dist/chunks/{persistent-pty-x784z1z0.js → tool-output-z64xb9qk.js} +4 -4
- package/dist/chunks/{persistent-pty-ansnbrb9.js → tool-output-z8qd6749.js} +11 -11
- package/dist/chunks/{persistent-pty-rd6ct1p5.js → tool-output-zb35rv5w.js} +5 -5
- package/dist/chunks/{persistent-pty-fabvjh13.js → tool-output-zcvapfdz.js} +18 -18
- package/dist/chunks/{persistent-pty-drfarj2n.js → tool-output-zj1y38qw.js} +91 -91
- package/dist/chunks/{persistent-pty-zr2ceqn5.js → tool-output-zr2ceqn5.js} +1 -1
- package/dist/chunks/{persistent-pty-a4zy142z.js → tool-output-zv98kd1s.js} +10 -10
- package/dist/chunks/tool-output-zwqytfkg.js +253 -0
- package/dist/chunks/{persistent-pty-zxq2ej10.js → tool-output-zxq2ej10.js} +1 -1
- 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 +81 -81
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -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 +90 -90
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- 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 +102 -102
- package/dist/config/plugin/skill.js +137 -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 +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +66 -66
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- 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 +93 -93
- 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 +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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 +218 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- 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 +91 -91
- 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 +354 -354
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +131 -131
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +351 -351
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- 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 +75 -75
- package/dist/plugin/agent.js +74 -74
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +326 -326
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- 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/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +116 -116
- package/dist/plugin/provider/local.js +113 -113
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +116 -116
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +116 -116
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +155 -155
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +345 -345
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +210 -210
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- 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 +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +91 -91
- 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 +126 -126
- package/dist/tool/plugin/edit.js +116 -116
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +116 -116
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +119 -119
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +8 -8
- 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 +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/persistent-pty-313mp3rv.js +0 -253
- package/dist/chunks/persistent-pty-b0hrm54a.js +0 -507
- package/dist/chunks/persistent-pty-jqh9b0xq.js +0 -18
- package/dist/chunks/persistent-pty-y8pbr9je.js +0 -26
- /package/dist/chunks/{persistent-pty-0qkdqm5v.js → tool-output-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{persistent-pty-0zkw76rk.js → tool-output-0zkw76rk.js} +0 -0
- /package/dist/chunks/{persistent-pty-17cy0kzp.js → tool-output-17cy0kzp.js} +0 -0
- /package/dist/chunks/{persistent-pty-1cnp2v09.js → tool-output-1cnp2v09.js} +0 -0
- /package/dist/chunks/{persistent-pty-1kg9ymc8.js → tool-output-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{persistent-pty-24dcb14g.js → tool-output-24dcb14g.js} +0 -0
- /package/dist/chunks/{persistent-pty-2710q6r3.js → tool-output-2710q6r3.js} +0 -0
- /package/dist/chunks/{persistent-pty-2axfhc9x.js → tool-output-2axfhc9x.js} +0 -0
- /package/dist/chunks/{persistent-pty-2c3vjs8z.js → tool-output-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{persistent-pty-34c7v6d4.js → tool-output-34c7v6d4.js} +0 -0
- /package/dist/chunks/{persistent-pty-359p4xyc.js → tool-output-359p4xyc.js} +0 -0
- /package/dist/chunks/{persistent-pty-3asan66x.js → tool-output-3asan66x.js} +0 -0
- /package/dist/chunks/{persistent-pty-3t0ybcrp.js → tool-output-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-3v8g72cx.js → tool-output-3v8g72cx.js} +0 -0
- /package/dist/chunks/{persistent-pty-3w5fmr99.js → tool-output-3w5fmr99.js} +0 -0
- /package/dist/chunks/{persistent-pty-3wcehsnq.js → tool-output-3wcehsnq.js} +0 -0
- /package/dist/chunks/{persistent-pty-43n2bw4t.js → tool-output-43n2bw4t.js} +0 -0
- /package/dist/chunks/{persistent-pty-4knz6hnm.js → tool-output-4knz6hnm.js} +0 -0
- /package/dist/chunks/{persistent-pty-4vcrnpx2.js → tool-output-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{persistent-pty-4y7fprxs.js → tool-output-4y7fprxs.js} +0 -0
- /package/dist/chunks/{persistent-pty-53557ph1.js → tool-output-53557ph1.js} +0 -0
- /package/dist/chunks/{persistent-pty-550bvhaj.js → tool-output-550bvhaj.js} +0 -0
- /package/dist/chunks/{persistent-pty-5qd3pb7m.js → tool-output-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{persistent-pty-6prwharc.js → tool-output-6prwharc.js} +0 -0
- /package/dist/chunks/{persistent-pty-6q2bdcd1.js → tool-output-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{persistent-pty-7akdwqpd.js → tool-output-7akdwqpd.js} +0 -0
- /package/dist/chunks/{persistent-pty-7m9af43g.js → tool-output-7m9af43g.js} +0 -0
- /package/dist/chunks/{persistent-pty-822emrt2.js → tool-output-822emrt2.js} +0 -0
- /package/dist/chunks/{persistent-pty-88xbtdfr.js → tool-output-88xbtdfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-8n3pysct.js → tool-output-8n3pysct.js} +0 -0
- /package/dist/chunks/{persistent-pty-8wj87zfr.js → tool-output-8wj87zfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-9a4afbnw.js → tool-output-9a4afbnw.js} +0 -0
- /package/dist/chunks/{persistent-pty-9rqn6x4v.js → tool-output-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{persistent-pty-a6k6eb26.js → tool-output-a6k6eb26.js} +0 -0
- /package/dist/chunks/{persistent-pty-af5trqkr.js → tool-output-af5trqkr.js} +0 -0
- /package/dist/chunks/{persistent-pty-afrmfg78.js → tool-output-afrmfg78.js} +0 -0
- /package/dist/chunks/{persistent-pty-aqzs7mqg.js → tool-output-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{persistent-pty-atq7p7m5.js → tool-output-atq7p7m5.js} +0 -0
- /package/dist/chunks/{persistent-pty-bkyjaxrp.js → tool-output-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{persistent-pty-bmr6ed5q.js → tool-output-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{persistent-pty-cf4snx6d.js → tool-output-cf4snx6d.js} +0 -0
- /package/dist/chunks/{persistent-pty-cvy3z8tj.js → tool-output-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9fn303g.js → tool-output-d9fn303g.js} +0 -0
- /package/dist/chunks/{persistent-pty-d9jj8t3e.js → tool-output-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{persistent-pty-dajrwvna.js → tool-output-dajrwvna.js} +0 -0
- /package/dist/chunks/{persistent-pty-dap0rakb.js → tool-output-dap0rakb.js} +0 -0
- /package/dist/chunks/{persistent-pty-df08tz66.js → tool-output-df08tz66.js} +0 -0
- /package/dist/chunks/{persistent-pty-dy18nga0.js → tool-output-dy18nga0.js} +0 -0
- /package/dist/chunks/{persistent-pty-e5kj55wp.js → tool-output-e5kj55wp.js} +0 -0
- /package/dist/chunks/{persistent-pty-e73j6tqm.js → tool-output-e73j6tqm.js} +0 -0
- /package/dist/chunks/{persistent-pty-ec1grn59.js → tool-output-ec1grn59.js} +0 -0
- /package/dist/chunks/{persistent-pty-eh3zwz77.js → tool-output-eh3zwz77.js} +0 -0
- /package/dist/chunks/{persistent-pty-emrn6kk6.js → tool-output-emrn6kk6.js} +0 -0
- /package/dist/chunks/{persistent-pty-f0mxakyp.js → tool-output-f0mxakyp.js} +0 -0
- /package/dist/chunks/{persistent-pty-f6n9ztr4.js → tool-output-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{persistent-pty-faypxj3z.js → tool-output-faypxj3z.js} +0 -0
- /package/dist/chunks/{persistent-pty-fd410y7t.js → tool-output-fd410y7t.js} +0 -0
- /package/dist/chunks/{persistent-pty-fxgpk5d8.js → tool-output-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{persistent-pty-g4wezp1m.js → tool-output-g4wezp1m.js} +0 -0
- /package/dist/chunks/{persistent-pty-g86h250q.js → tool-output-g86h250q.js} +0 -0
- /package/dist/chunks/{persistent-pty-gebd4c9n.js → tool-output-gebd4c9n.js} +0 -0
- /package/dist/chunks/{persistent-pty-gftt206x.js → tool-output-gftt206x.js} +0 -0
- /package/dist/chunks/{persistent-pty-hk9envan.js → tool-output-hk9envan.js} +0 -0
- /package/dist/chunks/{persistent-pty-j2ntwpah.js → tool-output-j2ntwpah.js} +0 -0
- /package/dist/chunks/{persistent-pty-j5zkgpj8.js → tool-output-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{persistent-pty-jjkms2e6.js → tool-output-jjkms2e6.js} +0 -0
- /package/dist/chunks/{persistent-pty-jr7sbwjy.js → tool-output-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{persistent-pty-jwfs4k6c.js → tool-output-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{persistent-pty-jzg6c2d5.js → tool-output-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{persistent-pty-mp448xyj.js → tool-output-mp448xyj.js} +0 -0
- /package/dist/chunks/{persistent-pty-msx8hqn2.js → tool-output-msx8hqn2.js} +0 -0
- /package/dist/chunks/{persistent-pty-n05xt0ee.js → tool-output-n05xt0ee.js} +0 -0
- /package/dist/chunks/{persistent-pty-n3j8tn72.js → tool-output-n3j8tn72.js} +0 -0
- /package/dist/chunks/{persistent-pty-njntx4h6.js → tool-output-njntx4h6.js} +0 -0
- /package/dist/chunks/{persistent-pty-q3sfg36h.js → tool-output-q3sfg36h.js} +0 -0
- /package/dist/chunks/{persistent-pty-q74kybfr.js → tool-output-q74kybfr.js} +0 -0
- /package/dist/chunks/{persistent-pty-qaymkmh1.js → tool-output-qaymkmh1.js} +0 -0
- /package/dist/chunks/{persistent-pty-qb87gjwd.js → tool-output-qb87gjwd.js} +0 -0
- /package/dist/chunks/{persistent-pty-qfa1cgps.js → tool-output-qfa1cgps.js} +0 -0
- /package/dist/chunks/{persistent-pty-qg3g05ea.js → tool-output-qg3g05ea.js} +0 -0
- /package/dist/chunks/{persistent-pty-qrg20bc0.js → tool-output-qrg20bc0.js} +0 -0
- /package/dist/chunks/{persistent-pty-rcb2kzg1.js → tool-output-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{persistent-pty-sdp7kfr6.js → tool-output-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{persistent-pty-ssg3fenm.js → tool-output-ssg3fenm.js} +0 -0
- /package/dist/chunks/{persistent-pty-w803qqfp.js → tool-output-w803qqfp.js} +0 -0
- /package/dist/chunks/{persistent-pty-wc3fc9cn.js → tool-output-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{persistent-pty-wer8tq1h.js → tool-output-wer8tq1h.js} +0 -0
- /package/dist/chunks/{persistent-pty-wtztk69x.js → tool-output-wtztk69x.js} +0 -0
- /package/dist/chunks/{persistent-pty-x0ckcb58.js → tool-output-x0ckcb58.js} +0 -0
- /package/dist/chunks/{persistent-pty-x61499pn.js → tool-output-x61499pn.js} +0 -0
- /package/dist/chunks/{persistent-pty-y44na4kk.js → tool-output-y44na4kk.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8cydn3q.js → tool-output-y8cydn3q.js} +0 -0
- /package/dist/chunks/{persistent-pty-y8f7s663.js → tool-output-y8f7s663.js} +0 -0
- /package/dist/chunks/{persistent-pty-ygaqb7jw.js → tool-output-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{persistent-pty-ym463w8f.js → tool-output-ym463w8f.js} +0 -0
- /package/dist/chunks/{persistent-pty-z5v4ffb3.js → tool-output-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{persistent-pty-z9919s4g.js → tool-output-z9919s4g.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
llmClient2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-output-5t3nmthw.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service64,
|
|
6
|
+
node68
|
|
7
|
+
} from "./tool-output-hg1d6wk1.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-output-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/generate.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Generate: () =>
|
|
13
|
+
var exports_generate2 = {};
|
|
14
|
+
__export(exports_generate2, {
|
|
15
|
+
Generate: () => exports_generate2,
|
|
16
16
|
ModelSelectionError: () => ModelSelectionError2,
|
|
17
|
-
Service: () =>
|
|
18
|
-
UnavailableError: () =>
|
|
19
|
-
layer: () =>
|
|
20
|
-
node: () =>
|
|
17
|
+
Service: () => Service50,
|
|
18
|
+
UnavailableError: () => UnavailableError3,
|
|
19
|
+
layer: () => layer19,
|
|
20
|
+
node: () => node54
|
|
21
21
|
});
|
|
22
22
|
import { LLM, LLMClient } from "@opencode/ai";
|
|
23
23
|
import { SessionID } from "@opencode/schema/session-id";
|
|
@@ -28,17 +28,17 @@ class ModelSelectionError2 extends Schema.TaggedError()("Generate.ModelSelection
|
|
|
28
28
|
}) {
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
-
class
|
|
31
|
+
class UnavailableError3 extends Schema.TaggedError()("Generate.UnavailableError", {
|
|
32
32
|
message: Schema.String,
|
|
33
33
|
service: Schema.optional(Schema.String)
|
|
34
34
|
}) {
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
class
|
|
37
|
+
class Service50 extends Context.Service()("@opencode/Generate") {
|
|
38
38
|
}
|
|
39
|
-
var
|
|
39
|
+
var layer19 = Layer.effect(Service50, Effect.gen(function* () {
|
|
40
40
|
const llm = yield* LLMClient.Service;
|
|
41
|
-
const resolver = yield*
|
|
41
|
+
const resolver = yield* Service64;
|
|
42
42
|
const runText = Effect.fn("Generate.text")(function* (input) {
|
|
43
43
|
const resolved = yield* resolver.resolve(input.model).pipe(Effect.catchTag([
|
|
44
44
|
"SessionRunnerModel.VariantUnavailableError",
|
|
@@ -48,7 +48,7 @@ var layer10 = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
48
48
|
"SessionRunnerModel.UnresolvedProviderVariablesError",
|
|
49
49
|
"SessionRunnerModel.UnsupportedCompactionError"
|
|
50
50
|
], (error) => {
|
|
51
|
-
const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new
|
|
51
|
+
const mapped = input.model ? new ModelSelectionError2({ message: error.message }) : new UnavailableError3({ message: error.message, service: error.providerID });
|
|
52
52
|
return Effect.fail(mapped);
|
|
53
53
|
}));
|
|
54
54
|
if (!resolved)
|
|
@@ -59,21 +59,21 @@ var layer10 = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
59
59
|
model: resolved.model,
|
|
60
60
|
prompt: input.prompt,
|
|
61
61
|
http: { headers: { "x-opencode-session": SessionID.create() } }
|
|
62
|
-
})).pipe(Effect.mapError((error) => new
|
|
62
|
+
})).pipe(Effect.mapError((error) => new UnavailableError3({
|
|
63
63
|
message: error.message,
|
|
64
64
|
service: resolved.ref.providerID
|
|
65
65
|
})));
|
|
66
66
|
return response.text;
|
|
67
67
|
});
|
|
68
|
-
const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new
|
|
68
|
+
const text = (input) => runText(input).pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError3({
|
|
69
69
|
message: "Generation credentials are unavailable"
|
|
70
70
|
})));
|
|
71
|
-
return
|
|
71
|
+
return Service50.of({ text });
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node54 = makeLocationNode({
|
|
74
|
+
service: Service50,
|
|
75
|
+
layer: layer19,
|
|
76
|
+
deps: [node68, llmClient2]
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
export { ModelSelectionError2,
|
|
79
|
+
export { ModelSelectionError2, UnavailableError3, Service50, layer19, node54, exports_generate2 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Key4,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make22,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-output-wv396vej.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize2,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./tool-output-3fc6dm20.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./tool-output-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
20
|
-
make: () =>
|
|
17
|
+
var exports_instructions2 = {};
|
|
18
|
+
__export(exports_instructions2, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions2,
|
|
20
|
+
make: () => make14,
|
|
21
21
|
render: () => render2,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
@@ -109,11 +109,11 @@ ${render2(current)}`;
|
|
|
109
109
|
return delta;
|
|
110
110
|
return replacement;
|
|
111
111
|
}
|
|
112
|
-
var key =
|
|
112
|
+
var key = Key4.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make14 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize2(inventory);
|
|
116
|
-
return
|
|
116
|
+
return make22({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
@@ -125,4 +125,4 @@ var make15 = (inventory) => {
|
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export { render2, update3,
|
|
128
|
+
export { render2, update3, make14, exports_instructions2 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./tool-output-krfam912.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./tool-output-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/location.ts
|
|
10
10
|
var exports_location = {};
|
|
11
11
|
__export(exports_location, {
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info26,
|
|
13
13
|
Location: () => exports_location,
|
|
14
14
|
Ref: () => Ref4,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service79,
|
|
16
16
|
boundNode: () => boundNode2,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node83,
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
|
-
import { Info as
|
|
21
|
+
import { Info as Info26, Ref as Ref4, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
|
-
class
|
|
24
|
+
class Service79 extends Context.Service()("@opencode/Location") {
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var layer = (ref) => Layer.effect(
|
|
28
|
-
const project = yield*
|
|
26
|
+
var node83 = LayerNode.unbound(Service79, tags.values.location);
|
|
27
|
+
var layer = (ref) => Layer.effect(Service79, Effect.gen(function* () {
|
|
28
|
+
const project = yield* Service80;
|
|
29
29
|
const resolved = yield* project.resolve(ref.directory);
|
|
30
|
-
return
|
|
30
|
+
return Service79.of({
|
|
31
31
|
directory: ref.directory,
|
|
32
32
|
workspaceID: ref.workspaceID,
|
|
33
33
|
project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
|
|
@@ -35,9 +35,9 @@ var layer = (ref) => Layer.effect(Service80, Effect.gen(function* () {
|
|
|
35
35
|
});
|
|
36
36
|
}));
|
|
37
37
|
var boundNode2 = (ref) => makeLocationNode({
|
|
38
|
-
service:
|
|
38
|
+
service: Service79,
|
|
39
39
|
layer: layer(ref),
|
|
40
|
-
deps: [
|
|
40
|
+
deps: [node84]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export {
|
|
43
|
+
export { Info26, Ref4, response2, Service79, node83, boundNode2, exports_location };
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-output-f41zmgay.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service79,
|
|
7
|
+
node83
|
|
8
|
+
} from "./tool-output-f0mv3stj.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
10
|
+
Service49,
|
|
11
11
|
login2,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
node53
|
|
13
|
+
} from "./tool-output-pcx1yvm2.js";
|
|
14
14
|
import {
|
|
15
15
|
lazy2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./tool-output-88xbtdfr.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./tool-output-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
24
|
CreateInput: () => CreateInput2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event2,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
|
-
ID: () =>
|
|
28
|
-
Info: () =>
|
|
29
|
-
NotFoundError: () =>
|
|
27
|
+
ID: () => ID2,
|
|
28
|
+
Info: () => Info2,
|
|
29
|
+
NotFoundError: () => NotFoundError2,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service14,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node16
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event2 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var ID2 = Pty.ID;
|
|
43
|
+
var Info2 = Pty.Info;
|
|
44
44
|
var CreateInput2 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
ptyID:
|
|
47
|
+
class NotFoundError2 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
|
+
ptyID: ID2
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
53
|
-
ptyID:
|
|
53
|
+
ptyID: ID2
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service14 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
60
60
|
const bus = yield* Service83;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const shell = yield*
|
|
61
|
+
const location = yield* Service79;
|
|
62
|
+
const shell = yield* Service49;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
96
96
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
97
97
|
const session = sessions.get(id);
|
|
98
98
|
if (!session)
|
|
99
|
-
return yield* new
|
|
99
|
+
return yield* new NotFoundError2({ ptyID: id });
|
|
100
100
|
return session;
|
|
101
101
|
});
|
|
102
102
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
122
122
|
return (yield* requireSession(id)).info;
|
|
123
123
|
});
|
|
124
124
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
125
|
-
const id =
|
|
125
|
+
const id = ID2.ascending();
|
|
126
126
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
127
127
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
128
128
|
const cwd = input.cwd || location.directory;
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service14.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node16 = makeLocationNode({
|
|
273
|
+
service: Service14,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [node87,
|
|
275
|
+
deps: [node87, node83, node53]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export {
|
|
278
|
+
export { ID2, Info2, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service14, node16, exports_pty, Event2 };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-output-35mq92ha.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-output-f41zmgay.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event17
|
|
10
|
+
} from "./tool-output-rmaq76vj.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./tool-output-db2wf4at.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID10,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-output-5zkpyy5y.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service15
|
|
21
|
+
} from "./tool-output-6ysrkrkr.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID9,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./tool-output-ptaj5psm.js";
|
|
27
27
|
import {
|
|
28
28
|
mergeCapabilities2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./tool-output-nhd4byj4.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
ID7,
|
|
32
|
+
Input14,
|
|
33
33
|
Response2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./tool-output-6fxpe754.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/opencode.ts
|
|
37
37
|
import { Duration, Effect, Equal, Option, Schema, Scope, Semaphore, Stream } from "effect";
|
|
@@ -47,7 +47,7 @@ var methodID = MethodID2.make("device");
|
|
|
47
47
|
var RemoteResponse = Schema.Struct({
|
|
48
48
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
49
49
|
websearch: Schema.Struct({
|
|
50
|
-
providerID:
|
|
50
|
+
providerID: ID7
|
|
51
51
|
}).pipe(Schema.optional),
|
|
52
52
|
mcp: Schema.Struct({
|
|
53
53
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -99,7 +99,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
99
99
|
}
|
|
100
100
|
function oauth(http) {
|
|
101
101
|
return {
|
|
102
|
-
integrationID:
|
|
102
|
+
integrationID: ID10.make("opencode"),
|
|
103
103
|
method: {
|
|
104
104
|
id: methodID,
|
|
105
105
|
type: "oauth",
|
|
@@ -166,7 +166,7 @@ var OpencodePlugin2 = define({
|
|
|
166
166
|
const bus = yield* Service83;
|
|
167
167
|
const client = yield* HttpClient.HttpClient;
|
|
168
168
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
169
|
-
const managed = yield*
|
|
169
|
+
const managed = yield* Service15;
|
|
170
170
|
const scope = yield* Scope.Scope;
|
|
171
171
|
const loading = Semaphore.makeUnsafe(1);
|
|
172
172
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -215,7 +215,7 @@ var OpencodePlugin2 = define({
|
|
|
215
215
|
providers.update(providerID, (provider) => {
|
|
216
216
|
if (source && source.provider !== provider)
|
|
217
217
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
218
|
-
provider.integrationID =
|
|
218
|
+
provider.integrationID = ID10.make("opencode");
|
|
219
219
|
if (item.canonical !== undefined)
|
|
220
220
|
provider.canonical = item.canonical;
|
|
221
221
|
if (item.name !== undefined)
|
|
@@ -281,7 +281,7 @@ var OpencodePlugin2 = define({
|
|
|
281
281
|
sourceConnection: snapshot.connection
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
|
-
const item = providers.get(
|
|
284
|
+
const item = providers.get(ID9.opencode);
|
|
285
285
|
if (!item)
|
|
286
286
|
return;
|
|
287
287
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -293,7 +293,7 @@ var OpencodePlugin2 = define({
|
|
|
293
293
|
});
|
|
294
294
|
});
|
|
295
295
|
yield* ctx.model.transform((models) => {
|
|
296
|
-
const item = models.provider.get(
|
|
296
|
+
const item = models.provider.get(ID9.opencode);
|
|
297
297
|
if (!item)
|
|
298
298
|
return;
|
|
299
299
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -327,7 +327,7 @@ var OpencodePlugin2 = define({
|
|
|
327
327
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
328
328
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
329
329
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
330
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
330
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
331
331
|
query: input.query,
|
|
332
332
|
providerID: descriptor.providerID
|
|
333
333
|
}));
|
|
@@ -382,10 +382,10 @@ var OpencodePlugin2 = define({
|
|
|
382
382
|
});
|
|
383
383
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
384
384
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
385
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
385
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID9.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
386
386
|
});
|
|
387
387
|
yield* guard(snapshot);
|
|
388
|
-
yield* bus.subscribe(
|
|
388
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
389
389
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
|
|
390
390
|
})
|
|
391
391
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-output-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info23,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Predicate, Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info23 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -66,4 +66,4 @@ function upgradeLegacyMedia(input) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { Info23, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-output-0cjj111f.js";
|
|
5
5
|
import {
|
|
6
6
|
EventSequenceTable2,
|
|
7
7
|
EventTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./tool-output-2710q6r3.js";
|
|
9
9
|
import {
|
|
10
10
|
makeUnsafe2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./tool-output-dpkg50ah.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./tool-output-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/bus.ts
|
|
17
17
|
var exports_bus = {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-output-0cjj111f.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./tool-output-dpkg50ah.js";
|
|
8
8
|
import {
|
|
9
9
|
Service83,
|
|
10
10
|
node87
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./tool-output-f41zmgay.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./tool-output-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessage2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./tool-output-gftt206x.js";
|
|
18
18
|
import {
|
|
19
19
|
SessionSchema2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./tool-output-48kw51zw.js";
|
|
21
21
|
import {
|
|
22
22
|
SessionMessageTable2,
|
|
23
23
|
SessionInboxTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./tool-output-9e5bzkjp.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./tool-output-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/session/inbox.ts
|
|
30
30
|
var exports_inbox = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_inbox, {
|
|
|
32
32
|
Compaction: () => Compaction2,
|
|
33
33
|
CompactionPayload: () => CompactionPayload2,
|
|
34
34
|
Delivery: () => Delivery2,
|
|
35
|
-
Info: () =>
|
|
35
|
+
Info: () => Info16,
|
|
36
36
|
Item: () => Item2,
|
|
37
37
|
LifecycleConflict: () => LifecycleConflict2,
|
|
38
38
|
Move: () => Move2,
|
|
39
39
|
MovePayload: () => MovePayload2,
|
|
40
|
-
Service: () =>
|
|
40
|
+
Service: () => Service60,
|
|
41
41
|
SessionInbox: () => exports_inbox,
|
|
42
42
|
Synthetic: () => Synthetic2,
|
|
43
43
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -45,12 +45,12 @@ __export(exports_inbox, {
|
|
|
45
45
|
UserPayload: () => UserPayload2,
|
|
46
46
|
find: () => find2,
|
|
47
47
|
has: () => has2,
|
|
48
|
-
layer: () =>
|
|
49
|
-
list: () =>
|
|
50
|
-
make: () =>
|
|
48
|
+
layer: () => layer23,
|
|
49
|
+
list: () => list4,
|
|
50
|
+
make: () => make19,
|
|
51
51
|
moveIDs: () => moveIDs2,
|
|
52
52
|
nextPromotable: () => nextPromotable2,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node64,
|
|
54
54
|
projectAdmitted: () => projectAdmitted2,
|
|
55
55
|
projectCancelled: () => projectCancelled2,
|
|
56
56
|
projectDelivered: () => projectDelivered2,
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
Compaction as Compaction2,
|
|
66
66
|
CompactionPayload as CompactionPayload2,
|
|
67
67
|
Delivery as Delivery2,
|
|
68
|
-
Info as
|
|
68
|
+
Info as Info16,
|
|
69
69
|
Item as Item2,
|
|
70
70
|
Move as Move2,
|
|
71
71
|
MovePayload as MovePayload2,
|
|
@@ -151,9 +151,9 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
151
151
|
return yield* new LifecycleConflict2({ id });
|
|
152
152
|
});
|
|
153
153
|
|
|
154
|
-
class
|
|
154
|
+
class Service60 extends Context.Service()("@opencode/SessionInbox") {
|
|
155
155
|
}
|
|
156
|
-
var
|
|
156
|
+
var make19 = Effect.fn("SessionInbox.make")(function* () {
|
|
157
157
|
const database = yield* Service84;
|
|
158
158
|
const db = database.db;
|
|
159
159
|
const bus = yield* Service83;
|
|
@@ -173,7 +173,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
173
173
|
inboxID: request.id,
|
|
174
174
|
sessionID: request.sessionID,
|
|
175
175
|
item: request.item
|
|
176
|
-
}).pipe(Effect.map((event) =>
|
|
176
|
+
}).pipe(Effect.map((event) => Info16.make({
|
|
177
177
|
id: request.id,
|
|
178
178
|
sessionID: request.sessionID,
|
|
179
179
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -193,7 +193,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
193
193
|
}
|
|
194
194
|
if (yield* promotedFromMessage(db, input.sessionID, input.id, input.delivery))
|
|
195
195
|
return yield* new LifecycleConflict2({ id: input.id });
|
|
196
|
-
const pending = (yield*
|
|
196
|
+
const pending = (yield* list4(db, input.sessionID)).find((item) => item.type === "compaction");
|
|
197
197
|
if (pending)
|
|
198
198
|
return pending;
|
|
199
199
|
return yield* admit({
|
|
@@ -218,7 +218,7 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
218
218
|
delivery: "queue"
|
|
219
219
|
})));
|
|
220
220
|
return {
|
|
221
|
-
list: (sessionID) =>
|
|
221
|
+
list: (sessionID) => list4(db, sessionID),
|
|
222
222
|
reconcile,
|
|
223
223
|
admit,
|
|
224
224
|
admitCompaction,
|
|
@@ -227,8 +227,8 @@ var make18 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
227
227
|
queue
|
|
228
228
|
};
|
|
229
229
|
});
|
|
230
|
-
var
|
|
231
|
-
var
|
|
230
|
+
var layer23 = Layer.effect(Service60, make19());
|
|
231
|
+
var node64 = makeGlobalNode({ service: Service60, layer: layer23, deps: [node88, node87] });
|
|
232
232
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
233
233
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
234
234
|
if (message !== undefined)
|
|
@@ -266,7 +266,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
266
266
|
from: input.delivery === "steer" ? "queue" : "steer",
|
|
267
267
|
to: input.delivery
|
|
268
268
|
}));
|
|
269
|
-
var
|
|
269
|
+
var list4 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
270
270
|
const rows = yield* db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
271
271
|
return rows.map(fromRow);
|
|
272
272
|
});
|
|
@@ -326,4 +326,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
326
326
|
return rows;
|
|
327
327
|
}));
|
|
328
328
|
|
|
329
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
329
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info16, Item2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service60, make19, layer23, node64, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list4, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|