@opencode/core 0.0.0-dev-19904 → 0.0.0-dev-19905
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 +78 -78
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +7 -7
- package/dist/bus.js +72 -72
- package/dist/chunks/{state-akftsrpr.js → instruction-discovery-009wa53s.js} +42 -42
- package/dist/chunks/{state-pc0qmpcp.js → instruction-discovery-0a65v3hj.js} +25 -25
- package/dist/chunks/{state-hpv0vy0a.js → instruction-discovery-0efsyj3b.js} +32 -32
- package/dist/chunks/{state-ywfcz4kd.js → instruction-discovery-0mn7hz4g.js} +24 -24
- package/dist/chunks/{state-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{state-0q0f95c6.js → instruction-discovery-0q0f95c6.js} +1 -1
- package/dist/chunks/{state-mm9chaq4.js → instruction-discovery-126xg2cs.js} +9 -9
- package/dist/chunks/{state-mjyq2s3q.js → instruction-discovery-1857tncd.js} +9 -9
- package/dist/chunks/{state-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{state-xqr0k8gk.js → instruction-discovery-1dfhmevg.js} +29 -29
- package/dist/chunks/{state-bwy0wnve.js → instruction-discovery-1tpgkfbr.js} +26 -26
- package/dist/chunks/{state-2zazyk1c.js → instruction-discovery-1x0r2vn9.js} +18 -18
- package/dist/chunks/{state-21r38tys.js → instruction-discovery-21r38tys.js} +1 -1
- package/dist/chunks/{state-2402vzrj.js → instruction-discovery-2402vzrj.js} +1 -1
- package/dist/chunks/{state-w1k39n5e.js → instruction-discovery-26k5bknw.js} +4 -4
- package/dist/chunks/{state-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{state-0bd7yhfg.js → instruction-discovery-2brm5nep.js} +9 -9
- package/dist/chunks/{state-q5v3cv76.js → instruction-discovery-2cwr75rk.js} +4 -4
- package/dist/chunks/{state-xp1ezwwp.js → instruction-discovery-2q46trsf.js} +15 -15
- package/dist/chunks/{state-etp4kp2m.js → instruction-discovery-2w1kzwmg.js} +11 -11
- package/dist/chunks/{state-p84dsdfh.js → instruction-discovery-2w5dyyz8.js} +8 -8
- package/dist/chunks/{state-gmvqgtzg.js → instruction-discovery-2zdwpbg8.js} +24 -24
- package/dist/chunks/{state-ny0kgn08.js → instruction-discovery-39dbzvsn.js} +2 -2
- package/dist/chunks/{state-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{state-envn6cbq.js → instruction-discovery-3gtvhe8e.js} +19 -19
- package/dist/chunks/{state-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{state-cmwkp3r5.js → instruction-discovery-3hfr6h8q.js} +8 -8
- package/dist/chunks/{state-z42db625.js → instruction-discovery-3mj9mepg.js} +38 -38
- package/dist/chunks/{state-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{state-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{state-g10yfvmw.js → instruction-discovery-3zrnexhq.js} +12 -12
- package/dist/chunks/{state-nzyhnfxz.js → instruction-discovery-44h5tttr.js} +4 -4
- package/dist/chunks/{state-3djcpfd1.js → instruction-discovery-45pfezkh.js} +13 -13
- package/dist/chunks/{state-82rhge12.js → instruction-discovery-4nj4bn9q.js} +9 -9
- package/dist/chunks/{state-5szeem2z.js → instruction-discovery-4pc26p60.js} +47 -47
- package/dist/chunks/{state-445gfy8g.js → instruction-discovery-4q9gmnjg.js} +24 -24
- package/dist/chunks/{state-eh40ahnx.js → instruction-discovery-4vn85rp2.js} +41 -41
- package/dist/chunks/{state-kbb6kjfx.js → instruction-discovery-52xnbc4d.js} +11 -11
- package/dist/chunks/{state-57ez7d0k.js → instruction-discovery-57ez7d0k.js} +2 -2
- package/dist/chunks/{state-q3t37ft6.js → instruction-discovery-5cmxdwv8.js} +3 -3
- package/dist/chunks/{state-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{state-8fd6bm6b.js → instruction-discovery-5gxkatr4.js} +11 -11
- package/dist/chunks/{state-a694798e.js → instruction-discovery-5hx7d1d6.js} +5 -5
- package/dist/chunks/{state-5kk03qhb.js → instruction-discovery-5ngevd6a.js} +14 -14
- package/dist/chunks/{state-zn3ftspj.js → instruction-discovery-5rkk3v24.js} +8 -8
- package/dist/chunks/{state-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/instruction-discovery-619r8v3y.js +18 -0
- package/dist/chunks/{state-j4ehyg90.js → instruction-discovery-62dtn6ny.js} +11 -11
- package/dist/chunks/{state-0sxvvb3w.js → instruction-discovery-664he2af.js} +22 -22
- package/dist/chunks/{state-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{state-c9ys2xqx.js → instruction-discovery-6egvftev.js} +18 -18
- package/dist/chunks/{state-6msgmcgs.js → instruction-discovery-6msgmcgs.js} +1 -1
- package/dist/chunks/{state-y811x3x5.js → instruction-discovery-6ppq801d.js} +21 -21
- package/dist/chunks/{state-2q15ef5p.js → instruction-discovery-71mwx2fa.js} +6 -6
- package/dist/chunks/{state-ard29dtx.js → instruction-discovery-734ejbax.js} +15 -15
- package/dist/chunks/{state-0b59w6b8.js → instruction-discovery-76est2aa.js} +21 -21
- package/dist/chunks/{state-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{state-ec8389mk.js → instruction-discovery-7e2yy7bx.js} +4 -4
- package/dist/chunks/{state-0rg4ktbj.js → instruction-discovery-7h7wmw80.js} +5 -5
- package/dist/chunks/{state-3hatapfr.js → instruction-discovery-7k90ees2.js} +13 -13
- package/dist/chunks/{state-8fj2zpf8.js → instruction-discovery-7t7cp2hp.js} +3 -3
- package/dist/chunks/{state-brx6f7c0.js → instruction-discovery-7yy077h9.js} +16 -16
- package/dist/chunks/{state-waym30vw.js → instruction-discovery-82x7c95a.js} +20 -20
- package/dist/chunks/{state-4t1gg8ab.js → instruction-discovery-84rqdegx.js} +28 -28
- package/dist/chunks/{state-x2d9qy7d.js → instruction-discovery-84zcxbc9.js} +5 -5
- package/dist/chunks/{state-x0vavgn5.js → instruction-discovery-8cb19ga3.js} +17 -17
- package/dist/chunks/{state-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{state-sapn1ja6.js → instruction-discovery-8kafa827.js} +13 -13
- package/dist/chunks/{state-dj2t23y0.js → instruction-discovery-8p4f9s12.js} +2 -2
- package/dist/chunks/{state-3sm54r8q.js → instruction-discovery-8rty4nxa.js} +9 -9
- package/dist/chunks/{state-7zdrdht4.js → instruction-discovery-8y62cfgq.js} +6 -6
- package/dist/chunks/{state-dbm93dyc.js → instruction-discovery-922fpmc4.js} +4 -4
- package/dist/chunks/{state-082a02mf.js → instruction-discovery-96jy6x8c.js} +28 -28
- package/dist/chunks/{state-s3dw44fc.js → instruction-discovery-9e0ns474.js} +40 -40
- package/dist/chunks/{state-j5hbqz0e.js → instruction-discovery-9kvga9ym.js} +5 -5
- package/dist/chunks/{state-4ahg9bde.js → instruction-discovery-9m2w46hz.js} +72 -72
- package/dist/chunks/{state-h0qb8jnk.js → instruction-discovery-9mvd270m.js} +26 -26
- package/dist/chunks/{state-9v91qm1a.js → instruction-discovery-9p43137r.js} +11 -11
- package/dist/chunks/{state-erqyqkr7.js → instruction-discovery-9pnfmx8v.js} +9 -9
- package/dist/chunks/{state-jqnmewag.js → instruction-discovery-9vwtd9e0.js} +11 -11
- package/dist/chunks/instruction-discovery-9w6e4wx8.js +65 -0
- package/dist/chunks/{state-5c4hm403.js → instruction-discovery-a1bz86dw.js} +3 -3
- package/dist/chunks/{state-kkp8zx71.js → instruction-discovery-a89e0tac.js} +4 -4
- package/dist/chunks/{state-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{state-6t298p2h.js → instruction-discovery-ab8cnxkj.js} +12 -12
- package/dist/chunks/{state-w4arg62q.js → instruction-discovery-ab9238g2.js} +6 -6
- package/dist/chunks/{state-gr1f03ws.js → instruction-discovery-anf0zms1.js} +9 -9
- package/dist/chunks/{state-jx6e651b.js → instruction-discovery-atjrvkk5.js} +16 -16
- package/dist/chunks/{state-q3jrktjg.js → instruction-discovery-aw85gzxe.js} +10 -10
- package/dist/chunks/{state-qx5nxg37.js → instruction-discovery-axzne6e1.js} +11 -11
- package/dist/chunks/{state-06av6aqk.js → instruction-discovery-ay6cqt4d.js} +5 -5
- package/dist/chunks/{state-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{state-nvbct2xq.js → instruction-discovery-b70ty5j7.js} +16 -16
- package/dist/chunks/{state-brz97kxb.js → instruction-discovery-b7t8nhj9.js} +8 -8
- package/dist/chunks/{state-yr9qftvg.js → instruction-discovery-b90brz6v.js} +26 -26
- package/dist/chunks/{state-4jc5c4h4.js → instruction-discovery-b97cbvw3.js} +1 -1
- package/dist/chunks/{state-hwakma19.js → instruction-discovery-ba5efkkf.js} +32 -32
- package/dist/chunks/{state-vncycja5.js → instruction-discovery-bct739vz.js} +4 -4
- package/dist/chunks/{state-vac75nvd.js → instruction-discovery-bd675r4k.js} +3 -3
- package/dist/chunks/{state-3c4e3q8d.js → instruction-discovery-bha4atvq.js} +4 -4
- package/dist/chunks/{state-e7nzk88m.js → instruction-discovery-bvx2qcaj.js} +38 -38
- package/dist/chunks/{state-eqkxs06z.js → instruction-discovery-bw9zjykr.js} +6 -6
- package/dist/chunks/{state-twtg7g1r.js → instruction-discovery-by1jj88x.js} +9 -9
- package/dist/chunks/{state-fd4fwae4.js → instruction-discovery-c06rvf76.js} +10 -10
- package/dist/chunks/{state-ckzpwx1e.js → instruction-discovery-c0c9v9cd.js} +31 -31
- package/dist/chunks/{state-5n2n84t7.js → instruction-discovery-c4kqqqdf.js} +47 -47
- package/dist/chunks/{state-m0jqrx5p.js → instruction-discovery-cfpkc3c9.js} +2 -2
- package/dist/chunks/{state-vahzvnrh.js → instruction-discovery-cqmcwrjh.js} +15 -15
- package/dist/chunks/{state-0f9afca0.js → instruction-discovery-cr07tj7n.js} +5 -5
- package/dist/chunks/{state-b8bdg5q4.js → instruction-discovery-cxnb4521.js} +18 -18
- package/dist/chunks/{state-z6bwbw5f.js → instruction-discovery-d0t3w74q.js} +15 -15
- package/dist/chunks/{state-y1b03k3j.js → instruction-discovery-d41147y1.js} +43 -43
- package/dist/chunks/{state-vnp99bxh.js → instruction-discovery-d67vb9g8.js} +5 -5
- package/dist/chunks/{state-twk0bc43.js → instruction-discovery-df5dpccp.js} +17 -17
- package/dist/chunks/{state-24x3edfr.js → instruction-discovery-dg3zpk7r.js} +46 -46
- package/dist/chunks/{state-3w0fmcng.js → instruction-discovery-dj9sq318.js} +5 -5
- package/dist/chunks/{state-y71avatq.js → instruction-discovery-dpkg50ah.js} +4 -4
- package/dist/chunks/{state-k0345fj3.js → instruction-discovery-dpxtr7ye.js} +4 -4
- package/dist/chunks/{state-8xz1pmc4.js → instruction-discovery-dze8fdyx.js} +33 -33
- package/dist/chunks/{state-qh8vdwx1.js → instruction-discovery-e0a154fg.js} +6 -6
- package/dist/chunks/{state-02nrjc1r.js → instruction-discovery-eaj1djv9.js} +4 -4
- package/dist/chunks/{state-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{state-26gnd6ny.js → instruction-discovery-en5q4xxf.js} +12 -12
- package/dist/chunks/{state-w3d1wx13.js → instruction-discovery-enhn9t8g.js} +24 -24
- package/dist/chunks/{state-erw5rpbs.js → instruction-discovery-erw5rpbs.js} +2 -2
- package/dist/chunks/{state-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/{state-sxe8pyvn.js → instruction-discovery-f66qqwsm.js} +20 -20
- package/dist/chunks/{state-hdnk95c8.js → instruction-discovery-f828m53h.js} +2 -2
- package/dist/chunks/{state-h7466sjn.js → instruction-discovery-fg5r5qsg.js} +11 -11
- package/dist/chunks/{state-tnz9rdk5.js → instruction-discovery-fgc7mv3x.js} +15 -15
- package/dist/chunks/{state-h34b2p0g.js → instruction-discovery-fgfhqw2r.js} +7 -7
- package/dist/chunks/{state-qnazj4rm.js → instruction-discovery-fkpmag6d.js} +3 -3
- package/dist/chunks/{state-dsvv60hh.js → instruction-discovery-fmqs8cse.js} +3 -3
- package/dist/chunks/{state-58t1cv1c.js → instruction-discovery-fpwdcn1v.js} +8 -8
- package/dist/chunks/{state-xw29n0bq.js → instruction-discovery-fs5ape0y.js} +18 -18
- package/dist/chunks/{state-fxbjtjnd.js → instruction-discovery-fxbjtjnd.js} +1 -1
- package/dist/chunks/{state-gkefhj12.js → instruction-discovery-g0x80a8x.js} +5 -5
- package/dist/chunks/{state-xbq29fg5.js → instruction-discovery-g4wdn5vm.js} +12 -12
- package/dist/chunks/{state-6yzef1y4.js → instruction-discovery-g77vnf5z.js} +11 -11
- package/dist/chunks/{state-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/instruction-discovery-gdh8jz17.js +492 -0
- package/dist/chunks/{state-gv6a8nnw.js → instruction-discovery-gv6a8nnw.js} +2 -2
- package/dist/chunks/{state-3w9dm1p6.js → instruction-discovery-gxmhjr6t.js} +29 -29
- package/dist/chunks/{state-cahkz71r.js → instruction-discovery-h1sdvbrz.js} +11 -11
- package/dist/chunks/{state-0dm5naev.js → instruction-discovery-h1zdnwjy.js} +8 -8
- package/dist/chunks/{state-kcr5bzs1.js → instruction-discovery-h4jn1pzp.js} +15 -15
- package/dist/chunks/{state-fydfvvar.js → instruction-discovery-h69b615h.js} +4 -4
- package/dist/chunks/{state-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{state-96kdhf6f.js → instruction-discovery-h7e3s2ky.js} +18 -18
- package/dist/chunks/{state-r2psd9ex.js → instruction-discovery-hbt3p77m.js} +19 -19
- package/dist/chunks/{state-78g5pcpb.js → instruction-discovery-hdaszxj1.js} +32 -32
- package/dist/chunks/{state-408pxxnj.js → instruction-discovery-hq39zw4n.js} +7 -7
- package/dist/chunks/{state-r3gf3h6k.js → instruction-discovery-hq92fgq5.js} +25 -25
- package/dist/chunks/{state-eds2t28z.js → instruction-discovery-hr9wft6x.js} +15 -15
- package/dist/chunks/{state-4rkm8bzg.js → instruction-discovery-hs235dx9.js} +32 -32
- package/dist/chunks/{state-zdd71wfk.js → instruction-discovery-hvdx5mkg.js} +27 -27
- package/dist/chunks/{state-1pch5d31.js → instruction-discovery-hwzksavd.js} +15 -15
- package/dist/chunks/{state-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{state-00zhev0m.js → instruction-discovery-j9r68ey0.js} +172 -172
- package/dist/chunks/{state-wnt0n0xb.js → instruction-discovery-jjcmaryx.js} +38 -38
- package/dist/chunks/{state-mkx85r9t.js → instruction-discovery-jjs9ztk1.js} +17 -17
- package/dist/chunks/{state-jw80jp6b.js → instruction-discovery-jw80jp6b.js} +1 -1
- package/dist/chunks/{state-69hatrp6.js → instruction-discovery-jwarn9ez.js} +27 -27
- package/dist/chunks/{state-x1vjt85b.js → instruction-discovery-jxakx5aq.js} +20 -20
- package/dist/chunks/{state-jcajstdn.js → instruction-discovery-jy06d3wb.js} +21 -21
- package/dist/chunks/{state-qytv0kk9.js → instruction-discovery-k0p4bj1j.js} +9 -9
- package/dist/chunks/{state-bcdacnkc.js → instruction-discovery-k1fhn7gm.js} +7 -7
- package/dist/chunks/{state-k3c624dm.js → instruction-discovery-k3c624dm.js} +3 -3
- package/dist/chunks/{state-reg39rye.js → instruction-discovery-k6t1q85p.js} +18 -18
- package/dist/chunks/{state-44ke2mar.js → instruction-discovery-k9kj6xed.js} +6 -6
- package/dist/chunks/{state-xa5vzajb.js → instruction-discovery-kn4wwgre.js} +23 -23
- package/dist/chunks/{state-m3fdjcah.js → instruction-discovery-m3fdjcah.js} +1 -1
- package/dist/chunks/{state-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{state-56gdpj1q.js → instruction-discovery-mfqp6xfm.js} +6 -6
- package/dist/chunks/{state-fwrss4ad.js → instruction-discovery-mh1qkymb.js} +4 -4
- package/dist/chunks/{state-0j67avv1.js → instruction-discovery-mkg5r9hg.js} +9 -9
- package/dist/chunks/{state-ccdh9qtz.js → instruction-discovery-mkgp7cmg.js} +5 -5
- package/dist/chunks/{state-t86zkmz1.js → instruction-discovery-mr2z0zth.js} +47 -47
- package/dist/chunks/{state-r5x6zcsm.js → instruction-discovery-mvfsc1pv.js} +3 -3
- package/dist/chunks/{state-fsrn267a.js → instruction-discovery-n1dhpxcd.js} +10 -10
- package/dist/chunks/{state-ckf8nxjz.js → instruction-discovery-n4r3xatb.js} +4 -4
- package/dist/chunks/{state-az14jj64.js → instruction-discovery-n9wsteg6.js} +29 -29
- package/dist/chunks/{state-ae4fnj82.js → instruction-discovery-ndybm611.js} +5 -5
- package/dist/chunks/{state-jxahb5yh.js → instruction-discovery-nfnqtnrv.js} +14 -14
- package/dist/chunks/{state-rgaa4eab.js → instruction-discovery-nmgn5nda.js} +59 -59
- package/dist/chunks/{state-qwgcfn1w.js → instruction-discovery-nsd95nm9.js} +11 -11
- package/dist/chunks/{state-3sb31twn.js → instruction-discovery-nvj1397d.js} +6 -6
- package/dist/chunks/{state-tbz0fdvh.js → instruction-discovery-p28j5sbe.js} +5 -5
- package/dist/chunks/{state-xs7q27km.js → instruction-discovery-p2e09vpx.js} +18 -18
- package/dist/chunks/{state-ty5rq330.js → instruction-discovery-pgwyjssx.js} +1 -1
- package/dist/chunks/{state-jdwbeweq.js → instruction-discovery-pj3t48dr.js} +28 -28
- package/dist/chunks/{state-fbzdn206.js → instruction-discovery-pjt7fg6b.js} +11 -11
- package/dist/chunks/{state-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{state-jkzpbdjq.js → instruction-discovery-pk8gg2b2.js} +17 -17
- package/dist/chunks/{state-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{state-gcjfqdjs.js → instruction-discovery-pm46x0k1.js} +8 -8
- package/dist/chunks/{state-rnvjvqpz.js → instruction-discovery-pmy0qajc.js} +11 -11
- package/dist/chunks/{state-qq4wxkpg.js → instruction-discovery-pvtg2brc.js} +4 -4
- package/dist/chunks/instruction-discovery-q3xbn7qh.js +252 -0
- package/dist/chunks/{state-5ry2patn.js → instruction-discovery-q4dkmh7d.js} +92 -92
- package/dist/chunks/{state-da7rfe2v.js → instruction-discovery-q6j51fac.js} +41 -41
- package/dist/chunks/{state-t50p445y.js → instruction-discovery-qfx5p1zg.js} +6 -6
- package/dist/chunks/{state-gjsbc86j.js → instruction-discovery-qfzfsw7q.js} +23 -23
- package/dist/chunks/{state-0jwsre1p.js → instruction-discovery-qgn6gcr1.js} +5 -5
- package/dist/chunks/{state-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{state-jn4dfycx.js → instruction-discovery-r6ejqj2c.js} +9 -9
- package/dist/chunks/{state-b04b8x2j.js → instruction-discovery-r72bb3g5.js} +5 -5
- package/dist/chunks/{state-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{state-y08awjjx.js → instruction-discovery-rdwaw2mb.js} +10 -10
- package/dist/chunks/{state-djszqvmq.js → instruction-discovery-rey5gbxv.js} +9 -9
- package/dist/chunks/{state-r8xr0va3.js → instruction-discovery-rhraev7y.js} +4 -4
- package/dist/chunks/{state-4rxpvwq1.js → instruction-discovery-rmg1hr3d.js} +9 -9
- package/dist/chunks/{state-t3he66w2.js → instruction-discovery-rpm9przn.js} +22 -22
- package/dist/chunks/{state-mvr5bn4j.js → instruction-discovery-rtd6da40.js} +12 -12
- package/dist/chunks/{state-3bf73811.js → instruction-discovery-s92mja9x.js} +14 -14
- package/dist/chunks/{state-w3x9v1nk.js → instruction-discovery-sm965ndy.js} +8 -8
- package/dist/chunks/{state-vs49n45c.js → instruction-discovery-smrs2fj7.js} +36 -36
- package/dist/chunks/{state-r8hgcn7e.js → instruction-discovery-sqdk0acz.js} +13 -13
- package/dist/chunks/{state-2zwyj5vg.js → instruction-discovery-sqwmmyef.js} +41 -41
- package/dist/chunks/{state-gbmt15v2.js → instruction-discovery-t0qs3axy.js} +10 -10
- package/dist/chunks/{state-fp7m90ch.js → instruction-discovery-t278h87c.js} +1 -1
- package/dist/chunks/{state-tkmwgdpd.js → instruction-discovery-t2fc4mz5.js} +7 -7
- package/dist/chunks/{state-g8cz2a0a.js → instruction-discovery-t7nn22vx.js} +22 -22
- package/dist/chunks/{state-xwkvp7ty.js → instruction-discovery-t85qm94a.js} +5 -5
- package/dist/chunks/{state-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{state-enhayb15.js → instruction-discovery-tb20jf2n.js} +10 -10
- package/dist/chunks/{state-tcezcvh9.js → instruction-discovery-tcezcvh9.js} +1 -1
- package/dist/chunks/{state-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{state-8xzwannf.js → instruction-discovery-tf943qe5.js} +4 -4
- package/dist/chunks/{state-jmngmkqa.js → instruction-discovery-tfbxzrcz.js} +93 -93
- package/dist/chunks/{state-kcv68n8h.js → instruction-discovery-tg4e8xby.js} +11 -11
- package/dist/chunks/{state-thjxzeng.js → instruction-discovery-thjxzeng.js} +1 -1
- package/dist/chunks/{state-4742rsvj.js → instruction-discovery-thpx799h.js} +15 -15
- package/dist/chunks/{state-tvtrv512.js → instruction-discovery-tvtrv512.js} +1 -1
- package/dist/chunks/{state-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{state-h2r7bbkd.js → instruction-discovery-vhvgae7m.js} +6 -6
- package/dist/chunks/{state-jca4demv.js → instruction-discovery-vmgq4x8b.js} +2 -2
- package/dist/chunks/{state-3ktbe3hf.js → instruction-discovery-vmwh049b.js} +3 -3
- package/dist/chunks/{state-t5mbwcqt.js → instruction-discovery-vngdc7xr.js} +29 -29
- package/dist/chunks/{state-ypncs580.js → instruction-discovery-vpvbbfeb.js} +22 -22
- package/dist/chunks/instruction-discovery-vvjjm6mn.js +26 -0
- package/dist/chunks/{state-fve1b9pq.js → instruction-discovery-vwndkggz.js} +18 -18
- package/dist/chunks/{state-jz5sxy2v.js → instruction-discovery-vyqn3nqs.js} +6 -6
- package/dist/chunks/{state-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{state-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{state-k294xaja.js → instruction-discovery-w9s2fbd9.js} +8 -8
- package/dist/chunks/{state-yjptyezs.js → instruction-discovery-wbkyxrgf.js} +5 -5
- package/dist/chunks/{state-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{state-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{state-5qfhnn3s.js → instruction-discovery-x4z9beht.js} +28 -28
- package/dist/chunks/{state-24n67b4a.js → instruction-discovery-x6r1e9wm.js} +5 -5
- package/dist/chunks/{state-afvjkwnc.js → instruction-discovery-x8vj8gav.js} +5 -5
- package/dist/chunks/{state-ef61rkg5.js → instruction-discovery-xch88pz7.js} +14 -14
- package/dist/chunks/{state-07xyahhy.js → instruction-discovery-xcws0bs0.js} +35 -35
- package/dist/chunks/{state-xfkkasph.js → instruction-discovery-xfkkasph.js} +1 -1
- package/dist/chunks/{state-fzpgp42w.js → instruction-discovery-xhe7smt9.js} +14 -14
- package/dist/chunks/{state-pnv527nz.js → instruction-discovery-xk747vep.js} +5 -5
- package/dist/chunks/{state-b7hq0td9.js → instruction-discovery-xkqq3kev.js} +29 -29
- package/dist/chunks/{state-gr6w9vkk.js → instruction-discovery-xv3agk8f.js} +5 -5
- package/dist/chunks/{state-dswh3rat.js → instruction-discovery-xv7atwd3.js} +13 -13
- package/dist/chunks/{state-2jfqkynx.js → instruction-discovery-xz2gf34p.js} +25 -25
- package/dist/chunks/{state-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{state-crj50ndq.js → instruction-discovery-yccdk8y4.js} +29 -29
- package/dist/chunks/{state-fpjcj5z0.js → instruction-discovery-ycvdxjpv.js} +20 -20
- package/dist/chunks/{state-vcep48s5.js → instruction-discovery-yh3yggaa.js} +20 -20
- package/dist/chunks/{state-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{state-yrznvahk.js → instruction-discovery-yrznvahk.js} +2 -2
- package/dist/chunks/{state-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{state-z63w68vq.js → instruction-discovery-z63w68vq.js} +2 -2
- package/dist/chunks/{state-sywfsqmm.js → instruction-discovery-z6bn36gs.js} +25 -25
- package/dist/chunks/{state-qjn69esg.js → instruction-discovery-z7mm2z6t.js} +26 -26
- package/dist/chunks/{state-20pcmxm3.js → instruction-discovery-zc19c6gf.js} +26 -26
- package/dist/chunks/{state-5ndhfjk8.js → instruction-discovery-zcs9sxk3.js} +18 -18
- package/dist/chunks/{state-zeh9ct20.js → instruction-discovery-zeh9ct20.js} +2 -2
- package/dist/chunks/{state-syrrgdn4.js → instruction-discovery-zf8ygh6b.js} +27 -27
- package/dist/chunks/{state-8sph61ej.js → instruction-discovery-zff9f7r2.js} +17 -17
- package/dist/chunks/{state-wfea6jy1.js → instruction-discovery-zhfxryhj.js} +4 -4
- package/dist/chunks/{state-a7atkcpn.js → instruction-discovery-zk36yqg8.js} +30 -30
- package/dist/chunks/{state-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{state-xgqe14p2.js → instruction-discovery-zs23fg9m.js} +3 -3
- package/dist/chunks/{state-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
- package/dist/chunks/{state-56zn65x2.js → instruction-discovery-zyjb1dy1.js} +25 -25
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +124 -124
- 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 +80 -80
- package/dist/database/database.js +69 -69
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +73 -73
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +103 -103
- package/dist/form.js +77 -77
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +104 -104
- 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 +90 -90
- 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/id/id.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 +359 -359
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +83 -83
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -356
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +95 -95
- package/dist/model.js +97 -97
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +79 -79
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +104 -104
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/compaction.js +130 -130
- package/dist/plugin/hooks.js +1 -1
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +73 -73
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +83 -83
- package/dist/provider.js +96 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +88 -88
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +127 -127
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- 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 +223 -223
- package/dist/session/execution.js +123 -123
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +85 -85
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +76 -76
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +111 -111
- 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 +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +84 -84
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +222 -222
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +4 -4
- package/dist/skill/instructions.js +104 -104
- package/dist/skill.js +105 -105
- package/dist/snapshot.js +88 -88
- 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 +124 -124
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +121 -121
- package/dist/tool/plugin/grep.js +121 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +100 -100
- package/dist/tool/plugin/read.js +122 -122
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +216 -216
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +119 -119
- package/dist/tool/read-filesystem.js +97 -97
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +12 -12
- 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/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +1 -1
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +86 -86
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +73 -73
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +93 -93
- package/package.json +8 -8
- package/dist/chunks/state-dxj72tfx.js +0 -18
- package/dist/chunks/state-ec2warxy.js +0 -26
- package/dist/chunks/state-nzkkyty2.js +0 -252
- package/dist/chunks/state-p7yx2ddp.js +0 -492
- package/dist/chunks/state-raxe0qt4.js +0 -65
- /package/dist/chunks/{state-0mesazry.js → instruction-discovery-0mesazry.js} +0 -0
- /package/dist/chunks/{state-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{state-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{state-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{state-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{state-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{state-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{state-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{state-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{state-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{state-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{state-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{state-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{state-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{state-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{state-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{state-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{state-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{state-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{state-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{state-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{state-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{state-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{state-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{state-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{state-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{state-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{state-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{state-922hggd3.js → instruction-discovery-922hggd3.js} +0 -0
- /package/dist/chunks/{state-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{state-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{state-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{state-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{state-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{state-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{state-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{state-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{state-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{state-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{state-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{state-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{state-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{state-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{state-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{state-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{state-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{state-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{state-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{state-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{state-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{state-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{state-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{state-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{state-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{state-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{state-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{state-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{state-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{state-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{state-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{state-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{state-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{state-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{state-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{state-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{state-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{state-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{state-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{state-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{state-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{state-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{state-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{state-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{state-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{state-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{state-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{state-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{state-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{state-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{state-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{state-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{state-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{state-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{state-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{state-twg0f83k.js → instruction-discovery-twg0f83k.js} +0 -0
- /package/dist/chunks/{state-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{state-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{state-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{state-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{state-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{state-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{state-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{state-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{state-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{state-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{state-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{state-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID15,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instruction-discovery-vpvbbfeb.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-d41147y1.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/plugin/agent.ts
|
|
14
14
|
var exports_agent2 = {};
|
|
15
15
|
__export(exports_agent2, {
|
|
16
16
|
AgentPlugin: () => exports_agent2,
|
|
17
|
-
Plugin: () =>
|
|
17
|
+
Plugin: () => Plugin31
|
|
18
18
|
});
|
|
19
19
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
20
20
|
import { Effect } from "effect";
|
|
@@ -90,7 +90,7 @@ Rules:
|
|
|
90
90
|
- Never ask questions or add new questions
|
|
91
91
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
92
92
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
93
|
-
var
|
|
93
|
+
var Plugin31 = define({
|
|
94
94
|
id: "opencode.agent",
|
|
95
95
|
effect: Effect.fn(function* (ctx) {
|
|
96
96
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -100,13 +100,13 @@ var Plugin42 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID15.make("general"), (item) => {
|
|
104
104
|
item.name = Name3.make("General");
|
|
105
105
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
106
106
|
item.mode = "subagent";
|
|
107
107
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
108
108
|
});
|
|
109
|
-
editor.update(
|
|
109
|
+
editor.update(ID15.make("explore"), (item) => {
|
|
110
110
|
const externalDirectories = item.permissions.filter((rule) => rule.action === "external_directory" && rule.effect === "allow");
|
|
111
111
|
item.name = Name3.make("Explore");
|
|
112
112
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
@@ -125,19 +125,19 @@ var Plugin42 = define({
|
|
|
125
125
|
{ action: "subagent", resource: "*", effect: "deny" }
|
|
126
126
|
], [{ action: "external_directory", resource: "*", effect: "ask" }, ...externalDirectories]));
|
|
127
127
|
});
|
|
128
|
-
editor.update(
|
|
128
|
+
editor.update(ID15.make("compaction"), (item) => {
|
|
129
129
|
item.name = Name3.make("Compaction");
|
|
130
130
|
item.mode = "primary";
|
|
131
131
|
item.hidden = true;
|
|
132
132
|
});
|
|
133
|
-
editor.update(
|
|
133
|
+
editor.update(ID15.make("title"), (item) => {
|
|
134
134
|
item.name = Name3.make("Title");
|
|
135
135
|
item.mode = "primary";
|
|
136
136
|
item.hidden = true;
|
|
137
137
|
item.system = PROMPT_TITLE;
|
|
138
138
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
139
139
|
});
|
|
140
|
-
editor.update(
|
|
140
|
+
editor.update(ID15.make("summary"), (item) => {
|
|
141
141
|
item.name = Name3.make("Summary");
|
|
142
142
|
item.mode = "primary";
|
|
143
143
|
item.hidden = true;
|
|
@@ -148,4 +148,4 @@ var Plugin42 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin31, exports_agent2 };
|
|
@@ -3,34 +3,34 @@ import {
|
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2,
|
|
5
5
|
typeFollowing2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-2a5m3afh.js";
|
|
7
7
|
import {
|
|
8
8
|
execDefaults2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-1dazxqgg.js";
|
|
10
10
|
import {
|
|
11
11
|
makeLocalDriver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-b6gygkdw.js";
|
|
13
13
|
import {
|
|
14
14
|
makeMemoryDriver2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-aaet6srn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service78,
|
|
18
|
+
node82
|
|
19
|
+
} from "./instruction-discovery-5ngevd6a.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service46,
|
|
22
|
+
node49
|
|
23
|
+
} from "./instruction-discovery-yccdk8y4.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/environment/environment.ts
|
|
29
29
|
var exports_environment2 = {};
|
|
30
30
|
__export(exports_environment2, {
|
|
31
31
|
EnvironmentService: () => exports_environment2,
|
|
32
|
-
Service: () =>
|
|
33
|
-
node: () =>
|
|
32
|
+
Service: () => Service44,
|
|
33
|
+
node: () => node47
|
|
34
34
|
});
|
|
35
35
|
import { CrossSpawnSpawner } from "@opencode/util/cross-spawn-spawner";
|
|
36
36
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,13 +43,13 @@ __export(exports_environment3, {
|
|
|
43
43
|
Environment: () => exports_environment3,
|
|
44
44
|
Failed: () => Failed2,
|
|
45
45
|
NotFound: () => NotFound2,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service44,
|
|
47
47
|
WrongKind: () => WrongKind2,
|
|
48
48
|
execDefaults: () => execDefaults2,
|
|
49
49
|
makeFiles: () => makeFiles2,
|
|
50
50
|
makeLocalDriver: () => makeLocalDriver2,
|
|
51
51
|
makeMemoryDriver: () => makeMemoryDriver2,
|
|
52
|
-
node: () =>
|
|
52
|
+
node: () => node47,
|
|
53
53
|
typeFollowing: () => typeFollowing2
|
|
54
54
|
});
|
|
55
55
|
var makeFiles2 = (driver) => ({
|
|
@@ -58,19 +58,19 @@ var makeFiles2 = (driver) => ({
|
|
|
58
58
|
});
|
|
59
59
|
|
|
60
60
|
// src/environment/environment.ts
|
|
61
|
-
class
|
|
61
|
+
class Service44 extends Context.Service()("@opencode/Environment") {
|
|
62
62
|
}
|
|
63
|
-
var layer = Layer.effect(
|
|
63
|
+
var layer = Layer.effect(Service44, Effect.gen(function* () {
|
|
64
64
|
const spawner = yield* ChildProcessSpawner;
|
|
65
|
-
const location = yield*
|
|
66
|
-
const workspace = yield*
|
|
65
|
+
const location = yield* Service78;
|
|
66
|
+
const workspace = yield* Service46;
|
|
67
67
|
const driver = location.workspaceID ? yield* workspace.connect(location.workspaceID).pipe(Effect.mapError((cause) => new Error(`Failed to bind Environment to workspace ${location.workspaceID}`, { cause })), Effect.orDie) : makeLocalDriver2(spawner);
|
|
68
|
-
return
|
|
68
|
+
return Service44.of({ files: makeFiles2(driver), spawner: driver.spawner });
|
|
69
69
|
}));
|
|
70
|
-
var
|
|
71
|
-
service:
|
|
70
|
+
var node47 = makeLocationNode({
|
|
71
|
+
service: Service44,
|
|
72
72
|
layer,
|
|
73
|
-
deps: [CrossSpawnSpawner.node,
|
|
73
|
+
deps: [CrossSpawnSpawner.node, node82, node49]
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { Service44, node47, exports_environment2, makeFiles2, exports_environment3 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-tdstcens.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/publish-llm-event.ts
|
|
9
9
|
import { Effect, Fiber, Iterable } from "effect";
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service81
|
|
3
|
+
} from "./instruction-discovery-b70ty5j7.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service45
|
|
6
|
+
} from "./instruction-discovery-84rqdegx.js";
|
|
7
7
|
import {
|
|
8
8
|
Error5
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-3gtvhe8e.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service39
|
|
12
|
+
} from "./instruction-discovery-rtd6da40.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-vmwh049b.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./instruction-discovery-pvtg2brc.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./instruction-discovery-tdstcens.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./instruction-discovery-erw5rpbs.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./instruction-discovery-fmqs8cse.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/runner/step.ts
|
|
36
36
|
var exports_step = {};
|
|
37
37
|
__export(exports_step, {
|
|
38
38
|
Outcome: () => Outcome2,
|
|
39
39
|
SessionStep: () => exports_step,
|
|
40
|
-
make: () =>
|
|
40
|
+
make: () => make8
|
|
41
41
|
});
|
|
42
42
|
import {
|
|
43
43
|
AIError,
|
|
@@ -51,11 +51,11 @@ var Outcome2 = Data.taggedEnum();
|
|
|
51
51
|
var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
|
|
52
52
|
var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
|
|
53
53
|
var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
|
|
54
|
-
var
|
|
55
|
-
const bus = yield*
|
|
54
|
+
var make8 = Effect.gen(function* () {
|
|
55
|
+
const bus = yield* Service81;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service45;
|
|
58
|
+
const toolOutput = yield* Service39;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const startSnapshot = yield* snapshots.capture();
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -209,4 +209,4 @@ var classifyToolExits = (settled, runs) => {
|
|
|
209
209
|
return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
export { Outcome2,
|
|
212
|
+
export { Outcome2, make8, exports_step };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Timestamps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-qfa1cgps.js";
|
|
4
4
|
import {
|
|
5
5
|
ProjectTable2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-8p4f9s12.js";
|
|
7
7
|
|
|
8
8
|
// src/permission/sql.ts
|
|
9
9
|
import { sqliteTable, text, uniqueIndex } from "drizzle-orm/sqlite-core";
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID9,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
mergeOverlay2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-gxmhjr6t.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/aisdk.ts
|
|
12
12
|
var exports_aisdk = {};
|
|
13
13
|
__export(exports_aisdk, {
|
|
14
14
|
AISDK: () => exports_aisdk,
|
|
15
15
|
InitError: () => InitError2,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service67,
|
|
17
17
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
18
|
+
node: () => node71
|
|
19
19
|
});
|
|
20
20
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -130,7 +130,7 @@ function prepareOptions(model, pkg) {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
133
|
-
providerID:
|
|
133
|
+
providerID: ID9,
|
|
134
134
|
cause: Schema.Defect()
|
|
135
135
|
}) {
|
|
136
136
|
}
|
|
@@ -138,9 +138,9 @@ function initError(providerID) {
|
|
|
138
138
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
139
139
|
}
|
|
140
140
|
|
|
141
|
-
class
|
|
141
|
+
class Service67 extends Context.Service()("@opencode/AISDK") {
|
|
142
142
|
}
|
|
143
|
-
var locationLayer2 = Layer.effect(
|
|
143
|
+
var locationLayer2 = Layer.effect(Service67, Effect.gen(function* () {
|
|
144
144
|
let sdkHooks = [];
|
|
145
145
|
let languageHooks = [];
|
|
146
146
|
const languages = new Map;
|
|
@@ -178,7 +178,7 @@ var locationLayer2 = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
178
178
|
}
|
|
179
179
|
return event;
|
|
180
180
|
});
|
|
181
|
-
const service =
|
|
181
|
+
const service = Service67.of({
|
|
182
182
|
hook: {
|
|
183
183
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
184
184
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -819,6 +819,6 @@ function providerErrorMessage(error) {
|
|
|
819
819
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
820
820
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
821
821
|
}
|
|
822
|
-
var
|
|
822
|
+
var node71 = makeLocationNode({ service: Service67, layer: locationLayer2, deps: [] });
|
|
823
823
|
|
|
824
|
-
export { InitError2,
|
|
824
|
+
export { InitError2, Service67, locationLayer2, node71, exports_aisdk };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
which2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-qaymkmh1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
|
-
Options: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Options: () => Options9,
|
|
15
|
+
Service: () => Service47,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured9,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
21
|
list: () => list3,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name15,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node51,
|
|
25
25
|
ps: () => ps2,
|
|
26
26
|
resolve: () => resolve4
|
|
27
27
|
});
|
|
@@ -43,11 +43,11 @@ var META = {
|
|
|
43
43
|
sh: { login: true },
|
|
44
44
|
zsh: { login: true }
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var Options9 = Schema.Struct({
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service47 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -188,7 +188,7 @@ async function list3(options, bin) {
|
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service47, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service51, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service47.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
205
|
resolve: (input) => Effect.sync(() => resolve4(input, state.get().shell, options, global.bin)),
|
|
206
206
|
list: () => Effect.promise(() => list3(options, global.bin))
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
return makeLocationNode({ service:
|
|
209
|
+
function configured9(options) {
|
|
210
|
+
return makeLocationNode({ service: Service47, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node51 = configured9();
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Options9, Service47, gitbash2, name15, login2, ps2, args2, environment2, resolve4, list3, configured9, node51, exports_select };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service71
|
|
3
|
+
} from "./instruction-discovery-76est2aa.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service74
|
|
6
|
+
} from "./instruction-discovery-d41147y1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
@@ -53,8 +53,8 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin49 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service71;
|
|
57
|
+
const permission = yield* Service74;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name14,
|
|
60
60
|
options: { codemode: false },
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID9
|
|
3
|
+
} from "./instruction-discovery-gxmhjr6t.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/prompt-cache-key.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.model.transform((models) => {
|
|
26
26
|
for (const id of providerIDs) {
|
|
27
|
-
const providerID =
|
|
27
|
+
const providerID = ID9.make(id);
|
|
28
28
|
for (const model of models.list(providerID)) {
|
|
29
29
|
models.update(model.providerID, model.id, (draft) => {
|
|
30
30
|
draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
toSessionError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-pvtg2brc.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/retry.ts
|
|
12
12
|
var exports_retry = {};
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
fromPromise2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-zr2ceqn5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service41
|
|
6
|
+
} from "./instruction-discovery-cxnb4521.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/module.ts
|
|
12
12
|
var exports_module = {};
|
|
13
13
|
__export(exports_module, {
|
|
14
14
|
LoadError: () => LoadError2,
|
|
15
15
|
PluginModule: () => exports_module,
|
|
16
|
-
make: () =>
|
|
16
|
+
make: () => make3
|
|
17
17
|
});
|
|
18
18
|
import { Host } from "@opencode/plugin/host";
|
|
19
19
|
import { createPluginSources } from "@opencode/plugin/source";
|
|
@@ -22,8 +22,8 @@ import { Deferred, Effect, FiberSet, PubSub, Schema, Stream } from "effect";
|
|
|
22
22
|
import path from "path";
|
|
23
23
|
import { stat } from "node:fs/promises";
|
|
24
24
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
25
|
-
var
|
|
26
|
-
const watcher = yield*
|
|
25
|
+
var make3 = Effect.fn("PluginModule.make")(function* () {
|
|
26
|
+
const watcher = yield* Service41;
|
|
27
27
|
const scope = yield* Effect.scope;
|
|
28
28
|
const runPromise = yield* FiberSet.makeRuntimePromise();
|
|
29
29
|
const changes = yield* PubSub.unbounded();
|
|
@@ -102,4 +102,4 @@ var load = Effect.fn("PluginModule.load")(function* (operation, sources, options
|
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
104
|
|
|
105
|
-
export {
|
|
105
|
+
export { make3, LoadError2, exports_module };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-c06rvf76.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./instruction-discovery-b70ty5j7.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event17
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./instruction-discovery-z7mm2z6t.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID10,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-1tpgkfbr.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID9,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./instruction-discovery-gxmhjr6t.js";
|
|
24
24
|
|
|
25
25
|
// src/plugin/provider/openai.ts
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -44,7 +44,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
44
44
|
}));
|
|
45
45
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
46
46
|
var browser = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID10.make("openai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: browserMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -117,7 +117,7 @@ function addressInUse(error) {
|
|
|
117
117
|
return "code" in error && error.code === "EADDRINUSE";
|
|
118
118
|
}
|
|
119
119
|
var headless = (app) => ({
|
|
120
|
-
integrationID:
|
|
120
|
+
integrationID: ID10.make("openai"),
|
|
121
121
|
method: {
|
|
122
122
|
id: headlessMethodID,
|
|
123
123
|
type: "oauth",
|
|
@@ -159,10 +159,10 @@ var headless = (app) => ({
|
|
|
159
159
|
}),
|
|
160
160
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
161
161
|
});
|
|
162
|
-
var
|
|
162
|
+
var OpenAIPlugin3 = define({
|
|
163
163
|
id: "opencode.provider.openai",
|
|
164
164
|
effect: Effect.fn(function* (ctx) {
|
|
165
|
-
const bus = yield*
|
|
165
|
+
const bus = yield* Service81;
|
|
166
166
|
const loading = Semaphore.makeUnsafe(1);
|
|
167
167
|
let chatgpt;
|
|
168
168
|
const load = Effect.fn("OpenAIPlugin.load")(function* () {
|
|
@@ -178,7 +178,7 @@ var OpenAIPlugin2 = define({
|
|
|
178
178
|
});
|
|
179
179
|
yield* load();
|
|
180
180
|
yield* ctx.provider.transform((providers) => {
|
|
181
|
-
const item = providers.get(
|
|
181
|
+
const item = providers.get(ID9.openai);
|
|
182
182
|
if (!item)
|
|
183
183
|
return;
|
|
184
184
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -197,7 +197,7 @@ var OpenAIPlugin2 = define({
|
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
199
|
yield* ctx.model.transform((models) => {
|
|
200
|
-
for (const model of models.list(
|
|
200
|
+
for (const model of models.list(ID9.openai)) {
|
|
201
201
|
models.update(model.providerID, model.id, (draft) => {
|
|
202
202
|
if (!chatgpt)
|
|
203
203
|
return;
|
|
@@ -225,9 +225,9 @@ var OpenAIPlugin2 = define({
|
|
|
225
225
|
evt.baseURL = codexBaseURL;
|
|
226
226
|
evt.headers.originator = "opencode";
|
|
227
227
|
evt.headers["session-id"] = evt.sessionID;
|
|
228
|
-
}), { providerID:
|
|
228
|
+
}), { providerID: ID9.openai });
|
|
229
229
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
230
|
-
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID ===
|
|
230
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
231
231
|
})
|
|
232
232
|
});
|
|
233
233
|
function headers(contentType, app) {
|
|
@@ -318,4 +318,4 @@ function claim(token) {
|
|
|
318
318
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
export {
|
|
321
|
+
export { OpenAIPlugin3 };
|