@opencode/core 0.0.0-dev-20545 → 0.0.0-dev-20546
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/{instance-waygyjme.js → tool-0b5fx6ax.js} +35 -35
- package/dist/chunks/{instance-jyrjds6e.js → tool-0bgxsef1.js} +4 -4
- package/dist/chunks/{instance-a5sj58r2.js → tool-0f5zvaaa.js} +27 -27
- package/dist/chunks/{instance-rzyy1kf3.js → tool-0fewaqv1.js} +11 -11
- package/dist/chunks/{instance-gs220cje.js → tool-0gc3e589.js} +23 -23
- package/dist/chunks/{instance-m4g5mvtk.js → tool-0kq1vnt2.js} +22 -22
- package/dist/chunks/{instance-0paq2nw3.js → tool-0paq2nw3.js} +1 -1
- package/dist/chunks/{instance-0vbcp93d.js → tool-0vbcp93d.js} +2 -2
- package/dist/chunks/{instance-a2w6wz9q.js → tool-0xn4eefx.js} +27 -27
- package/dist/chunks/{instance-apfex491.js → tool-0xq2rqz7.js} +12 -12
- package/dist/chunks/{instance-8hexrmzd.js → tool-105phwgw.js} +22 -22
- package/dist/chunks/{instance-5tfaxb87.js → tool-130d0t9b.js} +26 -26
- package/dist/chunks/{instance-kfyxfe2e.js → tool-17qe7d48.js} +36 -36
- package/dist/chunks/{instance-1acjjqhc.js → tool-1acjjqhc.js} +1 -1
- package/dist/chunks/{instance-7yv1mt9k.js → tool-1aq3p2fw.js} +16 -16
- package/dist/chunks/{instance-1dazxqgg.js → tool-1dazxqgg.js} +2 -2
- package/dist/chunks/{instance-84h8c373.js → tool-1dvck2a7.js} +2 -2
- package/dist/chunks/{instance-1gpb38yh.js → tool-1gpb38yh.js} +3 -3
- package/dist/chunks/{instance-1p3ee0nt.js → tool-1j8zt5zt.js} +5 -5
- package/dist/chunks/{instance-njd69hbm.js → tool-1sxecr9b.js} +9 -9
- package/dist/chunks/{instance-0xffs0xa.js → tool-21x7xb6a.js} +43 -43
- package/dist/chunks/{instance-3t5dp3t2.js → tool-29vra2hc.js} +39 -39
- package/dist/chunks/{instance-2a5m3afh.js → tool-2a5m3afh.js} +1 -1
- package/dist/chunks/{instance-7dqw4kz8.js → tool-2k8khapm.js} +5 -5
- package/dist/chunks/{instance-22tsjb3g.js → tool-2mmss7gn.js} +18 -18
- package/dist/chunks/{instance-zsp3yjn4.js → tool-2ptc9fn1.js} +10 -10
- package/dist/chunks/{instance-vs7ph4c6.js → tool-2wh4yf7q.js} +16 -16
- package/dist/chunks/{instance-q2j5s8dw.js → tool-30ddhjt6.js} +10 -10
- package/dist/chunks/{instance-dxbqyw2k.js → tool-31aerb0s.js} +18 -18
- package/dist/chunks/{instance-jpcjtfvm.js → tool-34y0nsfd.js} +10 -10
- package/dist/chunks/{instance-s8mxmd5y.js → tool-3aqn2ebh.js} +24 -24
- package/dist/chunks/{instance-3fc6dm20.js → tool-3fc6dm20.js} +1 -1
- package/dist/chunks/{instance-zvyybepm.js → tool-3ffx6953.js} +5 -5
- package/dist/chunks/{instance-vr2gzffn.js → tool-3gv4e0z7.js} +15 -15
- package/dist/chunks/{instance-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-tkm6pdgr.js → tool-3maez1s4.js} +11 -11
- package/dist/chunks/{instance-3smtnn6g.js → tool-3smtnn6g.js} +1 -1
- package/dist/chunks/{instance-3tvqynh2.js → tool-3tvqynh2.js} +1 -1
- package/dist/chunks/{instance-5qvmmwep.js → tool-3yysf8sw.js} +24 -24
- package/dist/chunks/{instance-3zsf4n22.js → tool-3zsf4n22.js} +1 -1
- package/dist/chunks/{instance-84zcxbc9.js → tool-49exe669.js} +5 -5
- package/dist/chunks/{instance-ep44p4pe.js → tool-4p0zdh5f.js} +12 -12
- package/dist/chunks/{instance-4ts7tf6z.js → tool-4ts7tf6z.js} +2 -2
- package/dist/chunks/{instance-8y62cfgq.js → tool-4vp46et4.js} +6 -6
- package/dist/chunks/{instance-yb4dmmj4.js → tool-4x25yqhm.js} +50 -50
- package/dist/chunks/{instance-w5adccxe.js → tool-50hs44sv.js} +8 -8
- package/dist/chunks/{instance-sjnbwvhz.js → tool-544bd9dc.js} +12 -12
- package/dist/chunks/{instance-7194gzej.js → tool-54fnz2xn.js} +30 -30
- package/dist/chunks/{instance-54ma36ye.js → tool-54ma36ye.js} +1 -1
- package/dist/chunks/{instance-vh5x4ksc.js → tool-59nf0k73.js} +17 -17
- package/dist/chunks/{instance-2qndexs0.js → tool-5b84avn1.js} +8 -8
- package/dist/chunks/{instance-5daktx2q.js → tool-5daktx2q.js} +1 -1
- package/dist/chunks/{instance-591tt0pk.js → tool-5qgdse83.js} +28 -28
- package/dist/chunks/{instance-5t3nmthw.js → tool-5t3nmthw.js} +2 -2
- package/dist/chunks/{instance-fenvbmss.js → tool-5v4tq1pr.js} +2 -2
- package/dist/chunks/{instance-36ngp1gz.js → tool-62qykytd.js} +26 -26
- package/dist/chunks/{instance-669tq793.js → tool-669tq793.js} +1 -1
- package/dist/chunks/{instance-18jry6mv.js → tool-6ckhwffg.js} +18 -18
- package/dist/chunks/{instance-5nbwe7js.js → tool-6g22x1cx.js} +24 -24
- package/dist/chunks/{instance-ratrq7cm.js → tool-6hh8tjw2.js} +4 -4
- package/dist/chunks/{instance-1748mqhq.js → tool-6j114ajh.js} +1 -1
- package/dist/chunks/{instance-3n260tc5.js → tool-6kcqjz9a.js} +35 -35
- package/dist/chunks/{instance-dxcyf04s.js → tool-6kd4vhpq.js} +10 -10
- package/dist/chunks/{instance-zy43x3f1.js → tool-6rm5yzkt.js} +4 -4
- package/dist/chunks/{instance-f75zav2x.js → tool-71az546q.js} +2 -2
- package/dist/chunks/{instance-5mq3qsc4.js → tool-7aqqc3we.js} +3 -3
- package/dist/chunks/{instance-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-d0nwfq8x.js → tool-7frfzztj.js} +32 -32
- package/dist/chunks/{instance-mcanwa61.js → tool-7jm88nzg.js} +13 -13
- package/dist/chunks/{instance-fx8rq3f1.js → tool-7nztcbt0.js} +15 -15
- package/dist/chunks/{instance-fbnfzaxq.js → tool-7t6j2s4e.js} +70 -70
- package/dist/chunks/{instance-sb8kh4cd.js → tool-7w0c1qzs.js} +18 -18
- package/dist/chunks/{instance-3hnd041m.js → tool-7wyknn3n.js} +44 -44
- package/dist/chunks/{instance-h1vyy2kx.js → tool-7xersvtf.js} +11 -11
- package/dist/chunks/{instance-wzjdd5km.js → tool-81j4nbmx.js} +20 -20
- package/dist/chunks/{instance-cma1h0mz.js → tool-83xtr5qh.js} +33 -33
- package/dist/chunks/{instance-84txncab.js → tool-84txncab.js} +1 -1
- package/dist/chunks/{instance-376p29j7.js → tool-8563jwpe.js} +11 -11
- package/dist/chunks/{instance-8d7r5vzw.js → tool-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instance-wktd314p.js → tool-8fejdm01.js} +4 -4
- package/dist/chunks/{instance-ppx6c0h6.js → tool-8n3m7eek.js} +10 -10
- package/dist/chunks/tool-8ty7ydja.js +253 -0
- package/dist/chunks/{instance-q07jznpd.js → tool-8w6rjg68.js} +9 -9
- package/dist/chunks/{instance-cavt8qp8.js → tool-8y7m5rtw.js} +27 -27
- package/dist/chunks/{instance-p1x2sqkx.js → tool-95jzr6md.js} +8 -8
- package/dist/chunks/tool-9ahwsrv3.js +26 -0
- package/dist/chunks/{instance-kb9j3d72.js → tool-9e5bzkjp.js} +3 -3
- package/dist/chunks/{instance-gezasxm9.js → tool-9g3b7e36.js} +47 -47
- package/dist/chunks/{instance-w519ks94.js → tool-9qqkxast.js} +35 -35
- package/dist/chunks/{instance-z5x67zf6.js → tool-9zkmnpa0.js} +11 -11
- package/dist/chunks/{instance-6g76jwa2.js → tool-a1yrwfg3.js} +10 -10
- package/dist/chunks/{instance-h9ctnspm.js → tool-a2z3evab.js} +5 -5
- package/dist/chunks/{instance-77tw7b4r.js → tool-a7r9jb6t.js} +21 -21
- package/dist/chunks/{instance-atxamnpd.js → tool-a9tf878g.js} +317 -317
- package/dist/chunks/{instance-aaet6srn.js → tool-aaet6srn.js} +2 -2
- package/dist/chunks/{instance-p15jv212.js → tool-abe982cs.js} +8 -8
- package/dist/chunks/{instance-xmnpk4n6.js → tool-adzfz996.js} +3 -3
- package/dist/chunks/{instance-zkrnfdjp.js → tool-ahe9zwyk.js} +8 -8
- package/dist/chunks/{instance-rx9ava5n.js → tool-as7cf5zz.js} +4 -4
- package/dist/chunks/{instance-nrd0fp3r.js → tool-axvnfcqc.js} +11 -11
- package/dist/chunks/{instance-e93vysgz.js → tool-aydwcdnc.js} +4 -4
- package/dist/chunks/{instance-n8vdnqrc.js → tool-b674v2dg.js} +5 -5
- package/dist/chunks/{instance-b6gygkdw.js → tool-b6gygkdw.js} +2 -2
- package/dist/chunks/{instance-88qxqwj8.js → tool-bmhb8y01.js} +22 -22
- package/dist/chunks/{instance-6qcv7p5m.js → tool-bsdt1m9e.js} +7 -7
- package/dist/chunks/{instance-m111989x.js → tool-bsjtdjkq.js} +6 -6
- package/dist/chunks/{instance-v0es1rhs.js → tool-btvs9fn2.js} +9 -9
- package/dist/chunks/{instance-gqahqwzc.js → tool-bvx99qdh.js} +7 -7
- package/dist/chunks/{instance-6254f48f.js → tool-bw6g5bvn.js} +26 -26
- package/dist/chunks/{instance-svb96c7g.js → tool-bydnjh3t.js} +9 -9
- package/dist/chunks/{instance-tda36bk6.js → tool-bzjcg73h.js} +20 -20
- package/dist/chunks/{instance-6ydemffk.js → tool-c93yrxa6.js} +17 -17
- package/dist/chunks/{instance-9nd2ayfm.js → tool-cbpj3q1n.js} +16 -16
- package/dist/chunks/{instance-1p07q0wb.js → tool-cfsekr6v.js} +4 -4
- package/dist/chunks/{instance-1w3n87k5.js → tool-cjhbag6k.js} +8 -8
- package/dist/chunks/{instance-tm4zhpge.js → tool-cjp93f4e.js} +6 -6
- package/dist/chunks/{instance-3hfr6h8q.js → tool-cmwkp3r5.js} +8 -8
- package/dist/chunks/{instance-vw19ed5c.js → tool-cvskdek3.js} +10 -10
- package/dist/chunks/{instance-wzjk7dkn.js → tool-d6efkfyd.js} +9 -9
- package/dist/chunks/{instance-79qaa2kf.js → tool-djszqvmq.js} +9 -9
- package/dist/chunks/{instance-xkntkrq7.js → tool-dmqcgk4z.js} +5 -5
- package/dist/chunks/{instance-nxm207yx.js → tool-dpkg50ah.js} +4 -4
- package/dist/chunks/{instance-drnf6xwf.js → tool-drnf6xwf.js} +2 -2
- package/dist/chunks/{instance-40x0wqt0.js → tool-drtsxde7.js} +5 -5
- package/dist/chunks/{instance-fwnbz20r.js → tool-dygb53dv.js} +8 -8
- package/dist/chunks/{instance-3bg7wg5s.js → tool-e91ztryz.js} +11 -11
- package/dist/chunks/{instance-ef5x83kb.js → tool-ef5x83kb.js} +1 -1
- package/dist/chunks/{instance-mg69fxyn.js → tool-erezfsje.js} +15 -15
- package/dist/chunks/{instance-gpm34enz.js → tool-esqy5ctd.js} +11 -11
- package/dist/chunks/{instance-etq0c3wd.js → tool-etq0c3wd.js} +1 -1
- package/dist/chunks/{instance-s6dt0a0k.js → tool-ew325twr.js} +89 -89
- package/dist/chunks/{instance-fkw30dks.js → tool-eymvbjgc.js} +30 -30
- package/dist/chunks/{instance-ce4wqcbk.js → tool-f49rpt0h.js} +20 -20
- package/dist/chunks/tool-f81tjggh.js +18 -0
- package/dist/chunks/{instance-zks2k4jk.js → tool-f8yfhtys.js} +20 -20
- package/dist/chunks/{instance-40vjce7j.js → tool-fb0xn3fq.js} +17 -17
- package/dist/chunks/{instance-y598fkj7.js → tool-fvz0khbb.js} +3 -3
- package/dist/chunks/{instance-k94btaq8.js → tool-g461mq4r.js} +15 -15
- package/dist/chunks/{instance-jdppcg57.js → tool-g5gfjdv3.js} +13 -13
- package/dist/chunks/{instance-57b9ws8p.js → tool-g5w8qwbj.js} +7 -7
- package/dist/chunks/{instance-wh6zw745.js → tool-g6yfr6ja.js} +5 -5
- package/dist/chunks/{instance-kpcjy8pj.js → tool-g78cewbc.js} +43 -43
- package/dist/chunks/{instance-afmzh6t2.js → tool-gc9bwprx.js} +15 -15
- package/dist/chunks/{instance-gd4qta3r.js → tool-gd4qta3r.js} +1 -1
- package/dist/chunks/{instance-2af4175m.js → tool-gfdr60m0.js} +8 -8
- package/dist/chunks/{instance-6kgskxtw.js → tool-gmmdfr2g.js} +8 -8
- package/dist/chunks/{instance-aj957cmm.js → tool-gnmk0d0j.js} +21 -21
- package/dist/chunks/{instance-39aq8fvy.js → tool-gwys9v9v.js} +4 -4
- package/dist/chunks/{instance-grxq8nnz.js → tool-h19eb42x.js} +37 -37
- package/dist/chunks/{instance-3cegwx68.js → tool-h2b79v29.js} +2 -2
- package/dist/chunks/{instance-4e5rkyrj.js → tool-h67113sj.js} +26 -26
- package/dist/chunks/{instance-h6vf3j39.js → tool-h6vf3j39.js} +1 -1
- package/dist/chunks/{instance-j5p6vpcr.js → tool-hbftnxjp.js} +5 -5
- package/dist/chunks/{instance-909p1r3q.js → tool-hdab2k61.js} +6 -6
- package/dist/chunks/{instance-scgrse2b.js → tool-hdkng2sj.js} +5 -5
- package/dist/chunks/{instance-bxcd9hy9.js → tool-hfm4ryn4.js} +34 -34
- package/dist/chunks/{instance-nv6mny3b.js → tool-hnh533wc.js} +11 -11
- package/dist/chunks/{instance-pgz6eq3m.js → tool-hqn60twj.js} +5 -5
- package/dist/chunks/{instance-mx4aqdn3.js → tool-hr7m8caa.js} +8 -8
- package/dist/chunks/{instance-8t24cbvq.js → tool-j32e3heq.js} +183 -183
- package/dist/chunks/{instance-9ybafv1t.js → tool-j3s83qj1.js} +4 -4
- package/dist/chunks/{instance-j56e64zr.js → tool-j56e64zr.js} +1 -1
- package/dist/chunks/{instance-btz1b4vn.js → tool-jm32gaew.js} +16 -16
- package/dist/chunks/{instance-thtzhryg.js → tool-jmh888fr.js} +18 -18
- package/dist/chunks/{instance-7s451enq.js → tool-k1gkpfdk.js} +8 -8
- package/dist/chunks/{instance-agxb4xzv.js → tool-k2nxqkde.js} +20 -20
- package/dist/chunks/{instance-emwch9kr.js → tool-k82aj4rb.js} +3 -3
- package/dist/chunks/{instance-statcsd3.js → tool-kearqegd.js} +13 -13
- package/dist/chunks/{instance-jkgbdkza.js → tool-kjw8fq0d.js} +45 -45
- package/dist/chunks/{instance-3tezhhgs.js → tool-kmgma77j.js} +5 -5
- package/dist/chunks/{instance-n2p07nz6.js → tool-kn319mpc.js} +21 -21
- package/dist/chunks/{instance-jjyt5x3f.js → tool-kq17zeba.js} +13 -13
- package/dist/chunks/{instance-gkyka3r7.js → tool-kq9ercpw.js} +11 -11
- package/dist/chunks/{instance-yn5y62bg.js → tool-m08rtf02.js} +13 -13
- package/dist/chunks/{instance-qr44pk7p.js → tool-m0nk61gg.js} +13 -13
- package/dist/chunks/{instance-m3fdjcah.js → tool-m3fdjcah.js} +1 -1
- package/dist/chunks/{instance-ff7cpawn.js → tool-m406kgbt.js} +11 -11
- package/dist/chunks/{instance-h9a9eftf.js → tool-m72e62eq.js} +26 -26
- package/dist/chunks/{instance-5w6ne2rj.js → tool-m7zns4k5.js} +11 -11
- package/dist/chunks/{instance-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-50mzsvk4.js → tool-magykp64.js} +4 -4
- package/dist/chunks/{instance-mfqp6xfm.js → tool-mfqp6xfm.js} +2 -2
- package/dist/chunks/{instance-qvk6w7vp.js → tool-mhtvex29.js} +19 -19
- package/dist/chunks/{instance-a9edd83z.js → tool-mmds1kx3.js} +6 -6
- package/dist/chunks/{instance-0vdkqjnj.js → tool-mnhe0asj.js} +20 -20
- package/dist/chunks/{instance-bpsn70hf.js → tool-msz05mbq.js} +52 -52
- package/dist/chunks/{instance-btec747f.js → tool-mtrbqqrq.js} +5 -5
- package/dist/chunks/{instance-zhtwm2k1.js → tool-mxp2wkr3.js} +25 -25
- package/dist/chunks/{instance-ft7xzmdp.js → tool-n0pp1gq0.js} +24 -24
- package/dist/chunks/{instance-2798fspx.js → tool-nbfyeqag.js} +12 -12
- package/dist/chunks/{instance-ncnm8wen.js → tool-ncnm8wen.js} +1 -1
- package/dist/chunks/{instance-9h0szc81.js → tool-p7sh5qae.js} +35 -35
- package/dist/chunks/{instance-fgxy9ph1.js → tool-p8fxgfb9.js} +3 -3
- package/dist/chunks/{instance-pjvnvgmy.js → tool-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instance-pknna89w.js → tool-pknna89w.js} +1 -1
- package/dist/chunks/{instance-t21br926.js → tool-ppkw63qq.js} +33 -33
- package/dist/chunks/{instance-wdwph0vc.js → tool-pt3xaqgj.js} +6 -6
- package/dist/chunks/{instance-bgxqaxtg.js → tool-pyfenggm.js} +11 -11
- package/dist/chunks/{instance-4c9hqpr8.js → tool-q0bsvjra.js} +48 -48
- package/dist/chunks/{instance-xk7h0drz.js → tool-q0pz77ry.js} +31 -31
- package/dist/chunks/{instance-q0xm7vwc.js → tool-q0xm7vwc.js} +2 -2
- package/dist/chunks/{instance-vjxt1qdz.js → tool-q33hc3az.js} +6 -6
- package/dist/chunks/{instance-s5ycvqz4.js → tool-qgj7yrzy.js} +21 -21
- package/dist/chunks/{instance-32vzae2w.js → tool-qkdffjrw.js} +17 -17
- package/dist/chunks/{instance-d1p5cr8z.js → tool-qkdpfp31.js} +16 -16
- package/dist/chunks/{instance-qnc92qwc.js → tool-qnc92qwc.js} +1 -1
- package/dist/chunks/{instance-qsdy395h.js → tool-qsdy395h.js} +1 -1
- package/dist/chunks/{instance-xyafkbt0.js → tool-qxjc9qry.js} +3 -3
- package/dist/chunks/{instance-0tzy42a9.js → tool-qxmaq0sm.js} +8 -8
- package/dist/chunks/{instance-jya93v00.js → tool-qxz2f3rt.js} +7 -7
- package/dist/chunks/{instance-z197wesg.js → tool-r1n3g566.js} +39 -39
- package/dist/chunks/{instance-73tb2d7t.js → tool-r5x6zcsm.js} +3 -3
- package/dist/chunks/{instance-rdw6cm16.js → tool-rdw6cm16.js} +1 -1
- package/dist/chunks/{instance-s8d7rejh.js → tool-rhjbct0v.js} +4 -4
- package/dist/chunks/{instance-xcgk3b6z.js → tool-rj37jpce.js} +24 -24
- package/dist/chunks/{instance-g56bw2ym.js → tool-rszfxwsg.js} +8 -8
- package/dist/chunks/{instance-n70hftd1.js → tool-rztnjz0s.js} +9 -9
- package/dist/chunks/{instance-g55b1dv8.js → tool-s027k0rf.js} +29 -29
- package/dist/chunks/{instance-pwke7f9f.js → tool-s0596caj.js} +9 -9
- package/dist/chunks/{instance-vcx8s22q.js → tool-s4ebpbt7.js} +23 -23
- package/dist/chunks/{instance-wamk1gyk.js → tool-s9d5z7w1.js} +16 -16
- package/dist/chunks/{instance-0tkn5kgd.js → tool-sbtfeqxe.js} +32 -32
- package/dist/chunks/{instance-dhtadd1m.js → tool-sgwh5nyn.js} +8 -8
- package/dist/chunks/{instance-k70p9jzb.js → tool-srq8z0b0.js} +9 -9
- package/dist/chunks/{instance-wn9251kv.js → tool-stdkdhj9.js} +10 -10
- package/dist/chunks/{instance-m1bke8kv.js → tool-sxysp3dr.js} +17 -17
- package/dist/chunks/{instance-37mtfre8.js → tool-t6yz5g0a.js} +18 -18
- package/dist/chunks/{instance-47z15z81.js → tool-t9t0jv1h.js} +31 -31
- package/dist/chunks/{instance-tazgh4e4.js → tool-tazgh4e4.js} +1 -1
- package/dist/chunks/{instance-tcezcvh9.js → tool-tcezcvh9.js} +1 -1
- package/dist/chunks/{instance-tdstcens.js → tool-tdstcens.js} +1 -1
- package/dist/chunks/{instance-3z27spj9.js → tool-thye16kd.js} +1 -1
- package/dist/chunks/{instance-vxrjwa88.js → tool-tv3z232p.js} +25 -25
- package/dist/chunks/{instance-t37xztgz.js → tool-ty1e6sjz.js} +15 -15
- package/dist/chunks/{instance-9wtassw2.js → tool-v32h9fqj.js} +13 -13
- package/dist/chunks/{instance-xdvs7zv6.js → tool-v50kha1c.js} +32 -32
- package/dist/chunks/{instance-veqvce7d.js → tool-veqvce7d.js} +1 -1
- package/dist/chunks/{instance-69026246.js → tool-vf6n3kbk.js} +30 -30
- package/dist/chunks/{instance-7fev5bf3.js → tool-vjbhnzss.js} +4 -4
- package/dist/chunks/{instance-zvrmf40e.js → tool-vk2pwt7v.js} +84 -84
- package/dist/chunks/{instance-yn2hzpzx.js → tool-vrwhxzcp.js} +11 -11
- package/dist/chunks/{instance-pjrgfx8h.js → tool-vsja1s7z.js} +30 -30
- package/dist/chunks/{instance-vzcthcp8.js → tool-vzcthcp8.js} +1 -1
- package/dist/chunks/{instance-vzs5sf6e.js → tool-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instance-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-bvka4cxd.js → tool-w5h262jq.js} +12 -12
- package/dist/chunks/{instance-wd87259q.js → tool-wd87259q.js} +1 -1
- package/dist/chunks/{instance-a99bt8ex.js → tool-wy4z08by.js} +18 -18
- package/dist/chunks/{instance-jk7pcahv.js → tool-x05pqzzn.js} +15 -15
- package/dist/chunks/{instance-x1ezjp6w.js → tool-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instance-53hf21x2.js → tool-x5cr8ne6.js} +9 -9
- package/dist/chunks/{instance-addxnjmp.js → tool-x661k3y3.js} +4 -4
- package/dist/chunks/{instance-7cfthydm.js → tool-x6xy5z7t.js} +3 -3
- package/dist/chunks/{instance-4vntt73x.js → tool-x9rf5mb3.js} +25 -25
- package/dist/chunks/{instance-y1cjydhn.js → tool-xdyxb27p.js} +25 -25
- package/dist/chunks/{instance-vgn2ka6b.js → tool-xph0hbvx.js} +5 -5
- package/dist/chunks/{instance-4nzwy074.js → tool-xxndcd6m.js} +4 -4
- package/dist/chunks/{instance-kjy61nvr.js → tool-xxrhtzpv.js} +21 -21
- package/dist/chunks/{instance-y1fvbwt7.js → tool-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instance-z0aj456m.js → tool-y6mhz57t.js} +4 -4
- package/dist/chunks/{instance-62cbrj9g.js → tool-ycmwc3zb.js} +24 -24
- package/dist/chunks/{instance-hy9tkmxr.js → tool-ycvgqbex.js} +5 -5
- package/dist/chunks/{instance-yrhqyw5v.js → tool-yrhqyw5v.js} +1 -1
- package/dist/chunks/{instance-tqd4cp80.js → tool-ytj3j3zq.js} +32 -32
- package/dist/chunks/{instance-ymz1ffyv.js → tool-ywr1xztk.js} +34 -34
- package/dist/chunks/{instance-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instance-3mssrt53.js → tool-z7yfvg9g.js} +9 -9
- package/dist/chunks/{instance-a881zpfh.js → tool-zab19jja.js} +9 -9
- package/dist/chunks/{instance-ccjyjqev.js → tool-zah869sz.js} +32 -32
- package/dist/chunks/{instance-kne8f3cn.js → tool-zav06jzw.js} +4 -4
- package/dist/chunks/{instance-2ww3hxwn.js → tool-zgc7nk2q.js} +17 -17
- package/dist/chunks/{instance-yzjdj4tg.js → tool-zm4ejasx.js} +10 -10
- package/dist/chunks/{instance-zr2ceqn5.js → tool-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instance-zsr4wwhv.js → tool-zsr4wwhv.js} +1 -1
- package/dist/chunks/{instance-nhd0s0zv.js → tool-zwekp0gr.js} +11 -11
- package/dist/chunks/{instance-20v691ed.js → tool-zxfp7yka.js} +6 -6
- package/dist/chunks/{instance-zxq2ej10.js → tool-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- 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 +116 -116
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +135 -135
- 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 +115 -115
- 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 +115 -115
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- 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 +364 -364
- 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 +9 -9
- package/dist/filesystem.js +106 -106
- package/dist/form.js +80 -80
- 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 +355 -355
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- 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 +352 -352
- 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 +109 -109
- package/dist/mcp/instructions.js +129 -129
- 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 +76 -76
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +103 -103
- 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 +102 -102
- 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 +327 -327
- 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/gateway.js +2 -2
- 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 +115 -115
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- 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/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- 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 +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +218 -218
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +88 -88
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +125 -125
- 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 +4 -4
- 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 +1 -1
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- 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 +1 -1
- 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 +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +201 -201
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +208 -208
- package/dist/session/usage.js +1 -1
- package/dist/session.js +205 -205
- 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 +112 -112
- 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 +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +120 -120
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- 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 +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +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 +82 -82
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +77 -77
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- 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 +98 -98
- package/package.json +8 -8
- package/dist/chunks/instance-dd52y90n.js +0 -26
- package/dist/chunks/instance-gb2vwqp7.js +0 -253
- package/dist/chunks/instance-v1faaxn9.js +0 -18
- /package/dist/chunks/{instance-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-1kg9ymc8.js → tool-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instance-24dcb14g.js → tool-24dcb14g.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → tool-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2axfhc9x.js → tool-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-34c7v6d4.js → tool-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → tool-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3asan66x.js → tool-3asan66x.js} +0 -0
- /package/dist/chunks/{instance-3t0ybcrp.js → tool-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-3w5fmr99.js → tool-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instance-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instance-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → tool-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-550bvhaj.js → tool-550bvhaj.js} +0 -0
- /package/dist/chunks/{instance-5qd3pb7m.js → tool-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → tool-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → tool-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → tool-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → tool-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instance-af5trqkr.js → tool-af5trqkr.js} +0 -0
- /package/dist/chunks/{instance-afrmfg78.js → tool-afrmfg78.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → tool-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-dajrwvna.js → tool-dajrwvna.js} +0 -0
- /package/dist/chunks/{instance-dap0rakb.js → tool-dap0rakb.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → tool-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → tool-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → tool-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → tool-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → tool-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-fxgpk5d8.js → tool-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instance-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → tool-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → tool-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hjbc5kem.js → tool-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → tool-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instance-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → tool-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-my4zabxr.js → tool-my4zabxr.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → tool-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → tool-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → tool-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → tool-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instance-x61499pn.js → tool-x61499pn.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → tool-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8cydn3q.js → tool-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → tool-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-ym463w8f.js → tool-ym463w8f.js} +0 -0
- /package/dist/chunks/{instance-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → tool-z9919s4g.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-vjbhnzss.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./tool-0kq1vnt2.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./tool-3t0ybcrp.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./tool-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError4,
|
|
20
|
+
Options: () => Options4,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
22
|
+
Service: () => Service28,
|
|
23
|
+
UnavailableError: () => UnavailableError3,
|
|
24
24
|
available: () => available2,
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
25
|
+
configured: () => configured4,
|
|
26
|
+
layer: () => layer11,
|
|
27
|
+
node: () => node31
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -36,24 +36,24 @@ import { Global } from "@opencode/util/global";
|
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
38
|
import { available as available2 } from "#persistent-pty-binary";
|
|
39
|
-
var
|
|
39
|
+
var Options4 = Schema.Struct({
|
|
40
40
|
handoff: Schema.optional(Handoff),
|
|
41
41
|
root: Schema.optional(Schema.String)
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
class
|
|
44
|
+
class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
45
45
|
message: Schema.String
|
|
46
46
|
}) {
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class NotFoundError4 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
50
50
|
ptyID: Pty.ID
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service28 extends Context.Service()("@opencode/PersistentPty") {
|
|
55
55
|
}
|
|
56
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
56
|
+
var makeLayer = (options = {}) => Layer.effect(Service28, Effect.gen(function* () {
|
|
57
57
|
const bus = yield* Service83;
|
|
58
58
|
const global = yield* Global.Service;
|
|
59
59
|
const context = yield* Effect.context();
|
|
@@ -76,7 +76,7 @@ var makeLayer = (options = {}) => Layer.effect(Service17, Effect.gen(function* (
|
|
|
76
76
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
77
77
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
78
78
|
if (!found)
|
|
79
|
-
return yield* new
|
|
79
|
+
return yield* new NotFoundError4({ ptyID: id });
|
|
80
80
|
return found;
|
|
81
81
|
});
|
|
82
82
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -166,7 +166,7 @@ var makeLayer = (options = {}) => Layer.effect(Service17, Effect.gen(function* (
|
|
|
166
166
|
});
|
|
167
167
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
168
168
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
169
|
-
return yield* new
|
|
169
|
+
return yield* new UnavailableError3({ message: "lines must be an integer between 1 and 65535" });
|
|
170
170
|
const id = current.get(sessionID);
|
|
171
171
|
if (!id)
|
|
172
172
|
return null;
|
|
@@ -243,7 +243,7 @@ var makeLayer = (options = {}) => Layer.effect(Service17, Effect.gen(function* (
|
|
|
243
243
|
detach: attachment.detach
|
|
244
244
|
};
|
|
245
245
|
});
|
|
246
|
-
return
|
|
246
|
+
return Service28.of({
|
|
247
247
|
list,
|
|
248
248
|
get,
|
|
249
249
|
create,
|
|
@@ -259,17 +259,17 @@ var makeLayer = (options = {}) => Layer.effect(Service17, Effect.gen(function* (
|
|
|
259
259
|
attach
|
|
260
260
|
});
|
|
261
261
|
}));
|
|
262
|
-
var
|
|
263
|
-
var
|
|
264
|
-
service:
|
|
265
|
-
layer: options === undefined ?
|
|
262
|
+
var layer11 = makeLayer();
|
|
263
|
+
var configured4 = (options) => makeGlobalNode({
|
|
264
|
+
service: Service28,
|
|
265
|
+
layer: options === undefined ? layer11 : makeLayer(options),
|
|
266
266
|
deps: [node87, Global.node]
|
|
267
267
|
});
|
|
268
|
-
var
|
|
268
|
+
var node31 = configured4();
|
|
269
269
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
270
270
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
271
|
-
var unexpected = (response) => Effect.fail(new
|
|
272
|
-
var unavailable = (error) => new
|
|
271
|
+
var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
272
|
+
var unavailable = (error) => new UnavailableError3({ message: error instanceof Error ? error.message : String(error) });
|
|
273
273
|
function toInfo(value) {
|
|
274
274
|
const status = value.lifecycle.status;
|
|
275
275
|
return {
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options4, UnavailableError3, NotFoundError4, Service28, layer11, configured4, node31, exports_persistent_pty, Handoff2, available2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID18,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./tool-qgj7yrzy.js";
|
|
6
6
|
import {
|
|
7
7
|
merge2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./tool-0b5fx6ax.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./tool-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: () => Plugin34
|
|
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 Plugin34 = 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 Plugin35 = define({
|
|
|
100
100
|
item.mode = "primary";
|
|
101
101
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
102
102
|
});
|
|
103
|
-
editor.update(
|
|
103
|
+
editor.update(ID18.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(ID18.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 Plugin35 = 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(ID18.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(ID18.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(ID18.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 Plugin35 = define({
|
|
|
148
148
|
})
|
|
149
149
|
});
|
|
150
150
|
|
|
151
|
-
export {
|
|
151
|
+
export { Plugin34, exports_agent2 };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-m7zns4k5.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-vjbhnzss.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID17,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Event20,
|
|
11
|
+
Service81
|
|
12
|
+
} from "./tool-5qgdse83.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-x661k3y3.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID13,
|
|
18
18
|
MethodID2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./tool-130d0t9b.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID12,
|
|
22
22
|
mergeOverlay2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./tool-54fnz2xn.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID11,
|
|
26
26
|
VariantID2,
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
Info20
|
|
28
|
+
} from "./tool-vsja1s7z.js";
|
|
29
29
|
import {
|
|
30
30
|
success2,
|
|
31
31
|
error2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./tool-pjvnvgmy.js";
|
|
33
33
|
|
|
34
34
|
// src/plugin/provider/chatgpt.ts
|
|
35
35
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -41,8 +41,8 @@ var issuer = "https://auth.openai.com";
|
|
|
41
41
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
42
42
|
var resource = "https://api.openai.com/v1";
|
|
43
43
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
44
|
-
var providerID =
|
|
45
|
-
var integrationID =
|
|
44
|
+
var providerID = ID12.openai;
|
|
45
|
+
var integrationID = ID13.make("openai");
|
|
46
46
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
47
47
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
48
48
|
var fallbackModels = new Set([
|
|
@@ -172,7 +172,7 @@ var ChatGPTPlugin2 = define({
|
|
|
172
172
|
id: "opencode.provider.chatgpt",
|
|
173
173
|
effect: Effect.fn(function* (ctx) {
|
|
174
174
|
const bus = yield* Service83;
|
|
175
|
-
const credentials = yield*
|
|
175
|
+
const credentials = yield* Service81;
|
|
176
176
|
const loading = Semaphore.makeUnsafe(1);
|
|
177
177
|
let chatgpt;
|
|
178
178
|
let available;
|
|
@@ -194,7 +194,7 @@ var ChatGPTPlugin2 = define({
|
|
|
194
194
|
yield* ctx.integration.transform((editor) => {
|
|
195
195
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
196
196
|
});
|
|
197
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
197
|
+
yield* Effect.forEach(yield* credentials.list(ID13.make("openai")), (entry) => {
|
|
198
198
|
const value = entry.value;
|
|
199
199
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
200
200
|
return Effect.void;
|
|
@@ -259,7 +259,7 @@ var ChatGPTPlugin2 = define({
|
|
|
259
259
|
});
|
|
260
260
|
const refreshModels = Effect.fn("ChatGPTPlugin.refreshModels")(function* () {
|
|
261
261
|
const connection = source;
|
|
262
|
-
const credential = connection?.type === "credential" ? (yield* credentials.get(
|
|
262
|
+
const credential = connection?.type === "credential" ? (yield* credentials.get(ID17.make(connection.id)))?.value : undefined;
|
|
263
263
|
if (credential?.type !== "oauth" || credential.methodID !== methodID || credential.expires <= Date.now() + 60000)
|
|
264
264
|
return;
|
|
265
265
|
const metadata = Option.getOrUndefined(decodeMetadata(credential.metadata));
|
|
@@ -279,7 +279,7 @@ var ChatGPTPlugin2 = define({
|
|
|
279
279
|
}));
|
|
280
280
|
});
|
|
281
281
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload()))).pipe(Effect.andThen(refreshModels().pipe(Effect.forkScoped, Effect.asVoid)));
|
|
282
|
-
yield* bus.subscribe(
|
|
282
|
+
yield* bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
283
283
|
yield* refreshModels().pipe(Effect.forkScoped);
|
|
284
284
|
yield* Effect.sleep(Duration.minutes(15)).pipe(Effect.andThen(refreshModels), Effect.forever, Effect.forkScoped);
|
|
285
285
|
})
|
|
@@ -338,7 +338,7 @@ function deriveModels2(remote, existing) {
|
|
|
338
338
|
const found = byID.get(model.modelID);
|
|
339
339
|
return found ? [deriveModel(found, model)] : [];
|
|
340
340
|
}),
|
|
341
|
-
...remote.filter((model) => !known.has(
|
|
341
|
+
...remote.filter((model) => !known.has(ID11.make(model.slug))).map((model) => deriveModel(model, Info20.default(ID12.openai, ID11.make(model.slug))))
|
|
342
342
|
];
|
|
343
343
|
}
|
|
344
344
|
function deriveModel(remote, previous) {
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-vjbhnzss.js";
|
|
5
5
|
import {
|
|
6
6
|
Key4,
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service81,
|
|
8
|
+
node85
|
|
9
|
+
} from "./tool-5qgdse83.js";
|
|
10
10
|
import {
|
|
11
11
|
create3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./tool-rdw6cm16.js";
|
|
13
13
|
import {
|
|
14
14
|
key2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-x661k3y3.js";
|
|
16
16
|
import {
|
|
17
17
|
validateAnswer2,
|
|
18
18
|
validateFields2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./tool-k2nxqkde.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./tool-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/integration.ts
|
|
25
25
|
var exports_integration = {};
|
|
@@ -34,17 +34,17 @@ __export(exports_integration, {
|
|
|
34
34
|
CommandAttemptStatus: () => CommandAttemptStatus2,
|
|
35
35
|
CommandMethod: () => CommandMethod2,
|
|
36
36
|
EnvMethod: () => EnvMethod2,
|
|
37
|
-
Event: () =>
|
|
38
|
-
ID: () =>
|
|
39
|
-
Info: () =>
|
|
37
|
+
Event: () => Event17,
|
|
38
|
+
ID: () => ID13,
|
|
39
|
+
Info: () => Info22,
|
|
40
40
|
Integration: () => exports_integration,
|
|
41
41
|
KeyMethod: () => KeyMethod2,
|
|
42
42
|
Method: () => Method2,
|
|
43
43
|
MethodID: () => MethodID2,
|
|
44
44
|
OAuthMethod: () => OAuthMethod2,
|
|
45
45
|
Ref: () => Ref3,
|
|
46
|
-
Service: () =>
|
|
47
|
-
node: () =>
|
|
46
|
+
Service: () => Service76,
|
|
47
|
+
node: () => node80
|
|
48
48
|
});
|
|
49
49
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
50
50
|
import {
|
|
@@ -66,8 +66,8 @@ import {
|
|
|
66
66
|
import { Integration } from "@opencode/schema/integration";
|
|
67
67
|
import { AppProcess } from "@opencode/util/process";
|
|
68
68
|
import { ChildProcess } from "effect/unstable/process";
|
|
69
|
-
import { Event as
|
|
70
|
-
var
|
|
69
|
+
import { Event as Event17 } from "@opencode/schema/integration";
|
|
70
|
+
var ID13 = Integration.ID;
|
|
71
71
|
var MethodID2 = Integration.MethodID;
|
|
72
72
|
var AttemptID2 = Integration.AttemptID;
|
|
73
73
|
var OAuthMethod2 = Integration.OAuthMethod;
|
|
@@ -75,7 +75,7 @@ var CommandMethod2 = Integration.CommandMethod;
|
|
|
75
75
|
var KeyMethod2 = Integration.KeyMethod;
|
|
76
76
|
var EnvMethod2 = Integration.EnvMethod;
|
|
77
77
|
var Method2 = Integration.Method;
|
|
78
|
-
var
|
|
78
|
+
var Info22 = Integration.Info;
|
|
79
79
|
var Attempt2 = Integration.Attempt;
|
|
80
80
|
var AttemptStatus2 = Integration.AttemptStatus;
|
|
81
81
|
var CommandAttempt2 = Integration.CommandAttempt;
|
|
@@ -98,19 +98,19 @@ class AuthorizationError2 extends Schema.TaggedError()("Integration.Authorizatio
|
|
|
98
98
|
}
|
|
99
99
|
|
|
100
100
|
class AttemptNotFoundError2 extends Schema.TaggedError()("Integration.AttemptNotFound", {
|
|
101
|
-
integrationID:
|
|
101
|
+
integrationID: ID13,
|
|
102
102
|
attemptID: AttemptID2
|
|
103
103
|
}) {
|
|
104
104
|
}
|
|
105
105
|
var Ref3 = Integration.Ref;
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service76 extends Context.Service()("@opencode/Integration") {
|
|
108
108
|
}
|
|
109
109
|
var attemptLifetime = Duration.toMillis(Duration.minutes(10));
|
|
110
110
|
var terminalRetention = Duration.toMillis(Duration.minutes(1));
|
|
111
111
|
var scrubInterval = Duration.seconds(30);
|
|
112
|
-
var layer = Layer.effect(
|
|
113
|
-
const credentials = yield*
|
|
112
|
+
var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
113
|
+
const credentials = yield* Service81;
|
|
114
114
|
const bus = yield* Service83;
|
|
115
115
|
const processes = yield* AppProcess.Service;
|
|
116
116
|
const scope = yield* Scope.Scope;
|
|
@@ -207,7 +207,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
207
207
|
const env = (entry?.methods ?? []).filter((method) => method.type === "env").flatMap((method) => method.names.filter((name) => process.env[name])).map((name) => ({ type: "env", name }));
|
|
208
208
|
return [...credentials, ...env];
|
|
209
209
|
};
|
|
210
|
-
const project = (entry, connections) =>
|
|
210
|
+
const project = (entry, connections) => Info22.make({
|
|
211
211
|
id: entry.ref.id,
|
|
212
212
|
name: entry.ref.name,
|
|
213
213
|
...entry.ref.metadata === undefined ? {} : { metadata: entry.ref.metadata },
|
|
@@ -440,7 +440,7 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
440
440
|
}).pipe(Scope.provide(attemptScope), Effect.exit, Effect.flatMap((exit) => settleCommand(attemptID, exit)), Effect.forkIn(attemptScope, { startImmediately: true }));
|
|
441
441
|
return CommandAttempt2.make({ attemptID, time });
|
|
442
442
|
});
|
|
443
|
-
return
|
|
443
|
+
return Service76.of({
|
|
444
444
|
transform: state.transform,
|
|
445
445
|
reload: state.reload,
|
|
446
446
|
revision: state.revision,
|
|
@@ -599,10 +599,10 @@ var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
599
599
|
}
|
|
600
600
|
});
|
|
601
601
|
}));
|
|
602
|
-
var
|
|
603
|
-
service:
|
|
602
|
+
var node80 = makeLocationNode({
|
|
603
|
+
service: Service76,
|
|
604
604
|
layer,
|
|
605
|
-
deps: [
|
|
605
|
+
deps: [node85, node87, AppProcess.node]
|
|
606
606
|
});
|
|
607
607
|
|
|
608
|
-
export {
|
|
608
|
+
export { ID13, MethodID2, AttemptID2, OAuthMethod2, CommandMethod2, KeyMethod2, EnvMethod2, Method2, Info22, Attempt2, AttemptStatus2, CommandAttempt2, CommandAttemptStatus2, CodeRequiredError2, AuthorizationError2, AttemptNotFoundError2, Ref3, Service76, node80, exports_integration, Event17 };
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-4p0zdh5f.js";
|
|
7
7
|
import {
|
|
8
8
|
Slug2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./tool-gebd4c9n.js";
|
|
10
10
|
import {
|
|
11
11
|
Service84,
|
|
12
12
|
node88
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./tool-k82aj4rb.js";
|
|
14
14
|
import {
|
|
15
15
|
Service83,
|
|
16
16
|
node87
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./tool-vjbhnzss.js";
|
|
18
18
|
import {
|
|
19
19
|
ProjectTable2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./tool-h2b79v29.js";
|
|
21
21
|
import {
|
|
22
22
|
WorktreeTable2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./tool-1dvck2a7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID15,
|
|
26
26
|
NotFoundError11
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./tool-29vra2hc.js";
|
|
28
28
|
import {
|
|
29
29
|
Ref4
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./tool-1aq3p2fw.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
} from "./
|
|
32
|
+
Service61,
|
|
33
|
+
node64
|
|
34
|
+
} from "./tool-x5cr8ne6.js";
|
|
35
35
|
import {
|
|
36
36
|
DirectoryUnavailableError2,
|
|
37
37
|
canonical2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./tool-0vbcp93d.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
} from "./
|
|
40
|
+
Service24
|
|
41
|
+
} from "./tool-kn319mpc.js";
|
|
42
42
|
import {
|
|
43
43
|
__export
|
|
44
|
-
} from "./
|
|
44
|
+
} from "./tool-9rqn6x4v.js";
|
|
45
45
|
|
|
46
46
|
// src/worktree.ts
|
|
47
47
|
var exports_worktree2 = {};
|
|
48
48
|
__export(exports_worktree2, {
|
|
49
|
-
CreateInput: () =>
|
|
49
|
+
CreateInput: () => CreateInput2,
|
|
50
50
|
DestinationExistsError: () => DestinationExistsError2,
|
|
51
51
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
52
|
-
Event: () =>
|
|
53
|
-
Info: () =>
|
|
52
|
+
Event: () => Event5,
|
|
53
|
+
Info: () => Info3,
|
|
54
54
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
55
55
|
List: () => List2,
|
|
56
56
|
ListEntry: () => ListEntry3,
|
|
57
57
|
OperationError: () => OperationError2,
|
|
58
58
|
RemoveInput: () => RemoveInput2,
|
|
59
|
-
Service: () =>
|
|
59
|
+
Service: () => Service23,
|
|
60
60
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
61
61
|
StrategyID: () => StrategyID2,
|
|
62
62
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
63
63
|
Worktree: () => exports_worktree2,
|
|
64
|
-
node: () =>
|
|
64
|
+
node: () => node26
|
|
65
65
|
});
|
|
66
66
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
67
67
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -73,13 +73,13 @@ import { AppProcess } from "@opencode/util/process";
|
|
|
73
73
|
import { ChildProcess } from "effect/unstable/process";
|
|
74
74
|
import { OperationError as OperationError2 } from "@opencode/schema/worktree";
|
|
75
75
|
var StrategyID2 = Worktree.StrategyID;
|
|
76
|
-
var
|
|
76
|
+
var CreateInput2 = Worktree.CreateInput;
|
|
77
77
|
var RemoveInput2 = Worktree.RemoveInput;
|
|
78
|
-
var
|
|
78
|
+
var Info3 = Worktree.Info;
|
|
79
79
|
var List2 = Worktree.List;
|
|
80
80
|
var ListEntry3 = Worktree.ListEntry;
|
|
81
81
|
|
|
82
|
-
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID:
|
|
82
|
+
class SourceDirectoryNotFoundError2 extends Schema.TaggedError()("Worktree.SourceDirectoryNotFoundError", { projectID: ID15, directory: Schema.optional(AbsolutePath2) }) {
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
class DestinationExistsError2 extends Schema.TaggedError()("Worktree.DestinationExistsError", { directory: AbsolutePath2 }) {
|
|
@@ -90,17 +90,17 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
|
|
|
90
90
|
|
|
91
91
|
class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
|
|
92
92
|
}
|
|
93
|
-
var
|
|
93
|
+
var Event5 = Worktree.Event;
|
|
94
94
|
|
|
95
|
-
class
|
|
95
|
+
class Service23 extends Context.Service()("@opencode/Worktree") {
|
|
96
96
|
}
|
|
97
|
-
var layer = Layer.effect(
|
|
97
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
98
98
|
const fs = yield* FSUtil.Service;
|
|
99
99
|
const database = yield* Service84;
|
|
100
100
|
const db = database.db;
|
|
101
101
|
const bus = yield* Service83;
|
|
102
102
|
const processService = yield* AppProcess.Service;
|
|
103
|
-
const locations = yield*
|
|
103
|
+
const locations = yield* Service61;
|
|
104
104
|
const project = Effect.fnUntraced(function* (projectID) {
|
|
105
105
|
const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
|
|
106
106
|
if (!row)
|
|
@@ -115,11 +115,11 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
115
115
|
const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
|
|
116
116
|
const context = yield* locations.contextEffect(Ref4.make({ directory }));
|
|
117
117
|
yield* Context.get(context, Plugin.Service).awaitActivation;
|
|
118
|
-
return Context.get(context,
|
|
118
|
+
return Context.get(context, Service24).get();
|
|
119
119
|
});
|
|
120
120
|
const changed = Effect.fnUntraced(function* (projectID, update) {
|
|
121
121
|
if (update)
|
|
122
|
-
yield* bus.publish(
|
|
122
|
+
yield* bus.publish(Event5.Updated, { projectID });
|
|
123
123
|
});
|
|
124
124
|
const ops = {
|
|
125
125
|
list: Effect.fnUntraced(function* (projectID) {
|
|
@@ -246,7 +246,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
246
246
|
})).pipe(Effect.orDie);
|
|
247
247
|
yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
|
|
248
248
|
}, Effect.scoped);
|
|
249
|
-
return
|
|
249
|
+
return Service23.of({
|
|
250
250
|
list: Effect.fn("Worktree.list")(function* (input) {
|
|
251
251
|
yield* project(input.projectID);
|
|
252
252
|
return yield* ops.list(input.projectID);
|
|
@@ -256,10 +256,10 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
256
256
|
refresh
|
|
257
257
|
});
|
|
258
258
|
}));
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
259
|
+
var node26 = Node.makeGlobalNode({
|
|
260
|
+
service: Service23,
|
|
261
261
|
layer,
|
|
262
|
-
deps: [FSUtil.node, node87, node88, AppProcess.node,
|
|
262
|
+
deps: [FSUtil.node, node87, node88, AppProcess.node, node64]
|
|
263
263
|
});
|
|
264
264
|
function operationError(strategy, operation, error) {
|
|
265
265
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -269,4 +269,4 @@ function operationError(strategy, operation, error) {
|
|
|
269
269
|
});
|
|
270
270
|
}
|
|
271
271
|
|
|
272
|
-
export { StrategyID2,
|
|
272
|
+
export { StrategyID2, CreateInput2, RemoveInput2, Info3, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event5, Service23, node26, exports_worktree2, OperationError2 };
|