@opencode/core 0.0.0-dev-20188 → 0.0.0-dev-20189
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 +73 -73
- package/dist/chunks/{worktree-zz9f7sca.js → managed-policy-07770t2t.js} +6 -6
- package/dist/chunks/{worktree-kdw1p45x.js → managed-policy-0a1eevr3.js} +19 -19
- package/dist/chunks/{worktree-3pe3bqaw.js → managed-policy-0bzgh1ra.js} +11 -11
- package/dist/chunks/{worktree-3521mr9s.js → managed-policy-0ckwnra1.js} +26 -26
- package/dist/chunks/{worktree-qz02d4gv.js → managed-policy-0mm9aq32.js} +13 -13
- package/dist/chunks/{worktree-0paq2nw3.js → managed-policy-0paq2nw3.js} +1 -1
- package/dist/chunks/{worktree-87cgy5hv.js → managed-policy-0tgsh6wb.js} +3 -3
- package/dist/chunks/{worktree-sg55x592.js → managed-policy-0wqwwdc3.js} +48 -48
- package/dist/chunks/{worktree-sfntmzm9.js → managed-policy-0yzk9hp5.js} +1 -1
- package/dist/chunks/{worktree-020j3mp2.js → managed-policy-1be6dza8.js} +6 -6
- package/dist/chunks/{worktree-1dazxqgg.js → managed-policy-1dazxqgg.js} +2 -2
- package/dist/chunks/{worktree-s61wkdxb.js → managed-policy-1hwmn15w.js} +7 -7
- package/dist/chunks/{worktree-29hn33b2.js → managed-policy-1jb4d023.js} +13 -13
- package/dist/chunks/{worktree-jt1zekb2.js → managed-policy-1v7cd3cq.js} +20 -20
- package/dist/chunks/{worktree-s3sfgg05.js → managed-policy-1v8reh4w.js} +3 -3
- package/dist/chunks/{worktree-2ffy1121.js → managed-policy-1ztyjhqq.js} +29 -29
- package/dist/chunks/{worktree-21r38tys.js → managed-policy-21r38tys.js} +1 -1
- package/dist/chunks/{worktree-2402vzrj.js → managed-policy-2402vzrj.js} +1 -1
- package/dist/chunks/{worktree-pcsd5hvp.js → managed-policy-2863ew87.js} +26 -26
- package/dist/chunks/{worktree-z63w68vq.js → managed-policy-29x78va6.js} +6 -6
- package/dist/chunks/{worktree-x0sgcbm0.js → managed-policy-2a1w5wq2.js} +22 -22
- package/dist/chunks/{worktree-2a5m3afh.js → managed-policy-2a5m3afh.js} +1 -1
- package/dist/chunks/{worktree-3w0fmcng.js → managed-policy-2f0bjgcj.js} +5 -5
- package/dist/chunks/{worktree-n1f7dk7k.js → managed-policy-2j13chjm.js} +11 -11
- package/dist/chunks/{worktree-qgn6gcr1.js → managed-policy-2k8khapm.js} +5 -5
- package/dist/chunks/{worktree-st0wxvz0.js → managed-policy-2wzvfsyc.js} +10 -10
- package/dist/chunks/{worktree-pjzg4rs2.js → managed-policy-33xvpn5s.js} +4 -4
- package/dist/chunks/{worktree-pe8mbhm6.js → managed-policy-358c23mq.js} +15 -15
- package/dist/chunks/{worktree-kw9xdzv2.js → managed-policy-3b9qt4hj.js} +9 -9
- package/dist/chunks/{worktree-z0aj456m.js → managed-policy-3ewed21c.js} +4 -4
- package/dist/chunks/{worktree-3fc6dm20.js → managed-policy-3fc6dm20.js} +1 -1
- package/dist/chunks/{worktree-d1v6nj19.js → managed-policy-3gapn5nw.js} +32 -32
- package/dist/chunks/{worktree-3hepkmqq.js → managed-policy-3hepkmqq.js} +1 -1
- package/dist/chunks/{worktree-nscznvay.js → managed-policy-3pe7sts8.js} +9 -9
- package/dist/chunks/{worktree-3smtnn6g.js → managed-policy-3smtnn6g.js} +1 -1
- package/dist/chunks/{worktree-3tvqynh2.js → managed-policy-3tvqynh2.js} +1 -1
- package/dist/chunks/{worktree-w1j9nm09.js → managed-policy-3xphndqd.js} +13 -13
- package/dist/chunks/{worktree-3zsf4n22.js → managed-policy-3zsf4n22.js} +1 -1
- package/dist/chunks/{worktree-70b2t1mc.js → managed-policy-41bs2fpb.js} +172 -172
- package/dist/chunks/{worktree-7k4j4fqt.js → managed-policy-43wm6kz7.js} +29 -29
- package/dist/chunks/managed-policy-45th5jwr.js +18 -0
- package/dist/chunks/{worktree-h6r3nrb9.js → managed-policy-4dgbcxzg.js} +4 -4
- package/dist/chunks/{worktree-b24016yy.js → managed-policy-4j58h7ky.js} +41 -41
- package/dist/chunks/{worktree-mxjy4sk4.js → managed-policy-4k2rghe9.js} +22 -22
- package/dist/chunks/{worktree-vdgcnvxy.js → managed-policy-4kzyxb26.js} +13 -13
- package/dist/chunks/{worktree-ttf2sjfk.js → managed-policy-4p6crha5.js} +12 -12
- package/dist/chunks/{worktree-484bq32a.js → managed-policy-4s3tx91s.js} +24 -24
- package/dist/chunks/{worktree-dwn1dze5.js → managed-policy-4sas3krp.js} +11 -11
- package/dist/chunks/{worktree-8w5jxq7f.js → managed-policy-4zak5cvq.js} +9 -9
- package/dist/chunks/{worktree-jnbt5kke.js → managed-policy-50dag6g8.js} +30 -30
- package/dist/chunks/{worktree-9kr90avb.js → managed-policy-52kry9ag.js} +26 -26
- package/dist/chunks/{worktree-33w4ejhs.js → managed-policy-56gdpj1q.js} +6 -6
- package/dist/chunks/{worktree-57ez7d0k.js → managed-policy-57ez7d0k.js} +2 -2
- package/dist/chunks/{worktree-5445nesp.js → managed-policy-58fdabks.js} +14 -14
- package/dist/chunks/{worktree-xxynqx5z.js → managed-policy-5cmxdwv8.js} +3 -3
- package/dist/chunks/{worktree-5daktx2q.js → managed-policy-5daktx2q.js} +1 -1
- package/dist/chunks/{worktree-j26sntzs.js → managed-policy-5eb3a1ca.js} +12 -12
- package/dist/chunks/{worktree-9tefhynz.js → managed-policy-5rt30t11.js} +18 -18
- package/dist/chunks/{worktree-5t3nmthw.js → managed-policy-5t3nmthw.js} +2 -2
- package/dist/chunks/{worktree-2vjymgz4.js → managed-policy-5x0vc0vb.js} +11 -11
- package/dist/chunks/{worktree-sxzvkvgj.js → managed-policy-63xctefh.js} +6 -6
- package/dist/chunks/{worktree-cahryj50.js → managed-policy-65dg9dkc.js} +25 -25
- package/dist/chunks/{worktree-669tq793.js → managed-policy-669tq793.js} +1 -1
- package/dist/chunks/{worktree-tpw6cwsb.js → managed-policy-6f890ccd.js} +8 -8
- package/dist/chunks/{worktree-pkbn8ntv.js → managed-policy-6m48a2t7.js} +5 -5
- package/dist/chunks/{worktree-6msgmcgs.js → managed-policy-6msgmcgs.js} +1 -1
- package/dist/chunks/{worktree-x5qaxq4m.js → managed-policy-6n9z0a9w.js} +14 -14
- package/dist/chunks/{worktree-cp4cyprf.js → managed-policy-6qyvmb4v.js} +5 -5
- package/dist/chunks/{worktree-73tb2d7t.js → managed-policy-73tb2d7t.js} +1 -1
- package/dist/chunks/{worktree-6q03a5wq.js → managed-policy-779bqasr.js} +18 -18
- package/dist/chunks/{worktree-0rvaxq3r.js → managed-policy-77j23m7r.js} +15 -15
- package/dist/chunks/{worktree-qmqgtz8f.js → managed-policy-79qaa2kf.js} +9 -9
- package/dist/chunks/{worktree-pewkkx94.js → managed-policy-79zjhypg.js} +10 -10
- package/dist/chunks/{worktree-32m0rg18.js → managed-policy-7aentnvm.js} +12 -12
- package/dist/chunks/{worktree-7bmhse3q.js → managed-policy-7bmhse3q.js} +1 -1
- package/dist/chunks/{worktree-rkprpv83.js → managed-policy-7fkffz83.js} +4 -4
- package/dist/chunks/{worktree-ps7587j7.js → managed-policy-7fpb7792.js} +21 -21
- package/dist/chunks/{worktree-z2q1945k.js → managed-policy-7rcm28ha.js} +44 -44
- package/dist/chunks/{worktree-7p71tqc9.js → managed-policy-7tc1349b.js} +18 -18
- package/dist/chunks/{worktree-2320a07y.js → managed-policy-7yrswys2.js} +34 -34
- package/dist/chunks/{worktree-1vezjmp5.js → managed-policy-80m7jm0y.js} +16 -16
- package/dist/chunks/{worktree-8d7r5vzw.js → managed-policy-8d7r5vzw.js} +1 -1
- package/dist/chunks/{worktree-x6pndzmr.js → managed-policy-8p29yw8h.js} +11 -11
- package/dist/chunks/{worktree-bk66cvw8.js → managed-policy-8q6wx5qs.js} +17 -17
- package/dist/chunks/{worktree-89bb6baa.js → managed-policy-91p1v22t.js} +8 -8
- package/dist/chunks/{worktree-94ek1h2f.js → managed-policy-94ek1h2f.js} +2 -2
- package/dist/chunks/{worktree-9zvrdw08.js → managed-policy-97fxhqfr.js} +16 -16
- package/dist/chunks/{worktree-6bh1zc7k.js → managed-policy-9cb7xadb.js} +1 -1
- package/dist/chunks/{worktree-fwbkdqa5.js → managed-policy-9g951eg1.js} +3 -3
- package/dist/chunks/{worktree-fgxhpymv.js → managed-policy-9qm1sam9.js} +2 -2
- package/dist/chunks/{worktree-bp18y4ry.js → managed-policy-9skf8tre.js} +6 -6
- package/dist/chunks/{worktree-jq2khwfm.js → managed-policy-9tv440c6.js} +18 -18
- package/dist/chunks/{worktree-34rkz0x9.js → managed-policy-a46v4e4v.js} +7 -7
- package/dist/chunks/{worktree-c2pw6yvc.js → managed-policy-a4rc8qx2.js} +4 -4
- package/dist/chunks/{worktree-n6yw1bmz.js → managed-policy-a7pzzedx.js} +4 -4
- package/dist/chunks/{worktree-aaet6srn.js → managed-policy-aaet6srn.js} +2 -2
- package/dist/chunks/{worktree-5qwkxp89.js → managed-policy-afjydgk3.js} +4 -4
- package/dist/chunks/{worktree-s4bg3x1g.js → managed-policy-aj3jkc19.js} +40 -40
- package/dist/chunks/{worktree-pp758716.js → managed-policy-ax4vhxp3.js} +22 -22
- package/dist/chunks/{worktree-cavr175a.js → managed-policy-axmvebxj.js} +21 -21
- package/dist/chunks/{worktree-dh8jqdrh.js → managed-policy-ayb2ep33.js} +3 -3
- package/dist/chunks/{worktree-xnrrqkxx.js → managed-policy-ayny3xs7.js} +7 -7
- package/dist/chunks/{worktree-ykpsr87k.js → managed-policy-az8hvwf1.js} +33 -33
- package/dist/chunks/{worktree-b6gygkdw.js → managed-policy-b6gygkdw.js} +2 -2
- package/dist/chunks/{worktree-k8hpw67k.js → managed-policy-b7b4ctej.js} +5 -5
- package/dist/chunks/{worktree-czczktcr.js → managed-policy-bh832hz7.js} +9 -9
- package/dist/chunks/{worktree-mwz6j41z.js → managed-policy-bvtf22kj.js} +7 -7
- package/dist/chunks/{worktree-ezkyf0b6.js → managed-policy-bxdgsfjb.js} +47 -47
- package/dist/chunks/{worktree-mkw5hrks.js → managed-policy-bzgcn0jp.js} +9 -9
- package/dist/chunks/{worktree-yhqrd6s3.js → managed-policy-c2xmwhf7.js} +12 -12
- package/dist/chunks/{worktree-k15ab44n.js → managed-policy-c4rjy2bg.js} +11 -11
- package/dist/chunks/{worktree-rfb9sreq.js → managed-policy-c937fekk.js} +44 -44
- package/dist/chunks/{worktree-newx50ce.js → managed-policy-cbqhpk3g.js} +5 -5
- package/dist/chunks/{worktree-qfhs05fv.js → managed-policy-cgz7622g.js} +15 -15
- package/dist/chunks/{worktree-ckecvw8r.js → managed-policy-ckecvw8r.js} +2 -2
- package/dist/chunks/{worktree-cd6xvapc.js → managed-policy-cvb5keb3.js} +7 -7
- package/dist/chunks/{worktree-11qj5279.js → managed-policy-d3egrn39.js} +46 -46
- package/dist/chunks/{worktree-be2558nw.js → managed-policy-de8e9bjw.js} +18 -18
- package/dist/chunks/{worktree-20zz1ang.js → managed-policy-dq0v80fr.js} +8 -8
- package/dist/chunks/{worktree-yvppbn9c.js → managed-policy-dqrrnxrw.js} +9 -9
- package/dist/chunks/{worktree-fknhp1f0.js → managed-policy-dzh8x6fa.js} +19 -19
- package/dist/chunks/{worktree-5qd3pb7m.js → managed-policy-e3qxr5gk.js} +2 -2
- package/dist/chunks/{worktree-ajt6jt3w.js → managed-policy-e6ztxka3.js} +23 -23
- package/dist/chunks/{worktree-ecfe7b91.js → managed-policy-ecfe7b91.js} +2 -2
- package/dist/chunks/{worktree-fgq08y9p.js → managed-policy-eexrnx7t.js} +5 -5
- package/dist/chunks/{worktree-ef5x83kb.js → managed-policy-ef5x83kb.js} +1 -1
- package/dist/chunks/{worktree-qzzxwa2f.js → managed-policy-emh3z3ge.js} +11 -11
- package/dist/chunks/{worktree-8k7kyfyn.js → managed-policy-etgjzd5h.js} +7 -7
- package/dist/chunks/{worktree-etq0c3wd.js → managed-policy-etq0c3wd.js} +1 -1
- package/dist/chunks/{worktree-kvdx9qh0.js → managed-policy-eyftq924.js} +22 -22
- package/dist/chunks/{worktree-za9cx4qh.js → managed-policy-f32czd11.js} +11 -11
- package/dist/chunks/{worktree-mdskkmyq.js → managed-policy-f45ayqgj.js} +13 -13
- package/dist/chunks/{worktree-txhsw5z1.js → managed-policy-fdbr74vy.js} +10 -10
- package/dist/chunks/{worktree-2jvd2xkt.js → managed-policy-fhn4dbfy.js} +37 -37
- package/dist/chunks/{worktree-czx3r0mk.js → managed-policy-fhqgg6b3.js} +17 -17
- package/dist/chunks/{worktree-0pa72kx5.js → managed-policy-fj1y74vg.js} +5 -5
- package/dist/chunks/{worktree-73rm0k6w.js → managed-policy-fx8ver8w.js} +5 -5
- package/dist/chunks/{worktree-m08wkhy0.js → managed-policy-fz9j70nw.js} +8 -8
- package/dist/chunks/{worktree-mbycs7xn.js → managed-policy-fzg6ycaf.js} +8 -8
- package/dist/chunks/{worktree-n2fgpkxf.js → managed-policy-g50vnnvq.js} +13 -13
- package/dist/chunks/{worktree-1rrnyw52.js → managed-policy-g5kh2xcz.js} +13 -13
- package/dist/chunks/{worktree-rk8vfsg9.js → managed-policy-gc2hdxyk.js} +15 -15
- package/dist/chunks/{worktree-ma48de29.js → managed-policy-gcavn3wx.js} +5 -5
- package/dist/chunks/{worktree-gd4qta3r.js → managed-policy-gd4qta3r.js} +1 -1
- package/dist/chunks/{worktree-gv6a8nnw.js → managed-policy-gv6a8nnw.js} +2 -2
- package/dist/chunks/{worktree-bbp6pymt.js → managed-policy-h2vwxax4.js} +33 -33
- package/dist/chunks/{worktree-h6vf3j39.js → managed-policy-h6vf3j39.js} +1 -1
- package/dist/chunks/{worktree-be4hb00e.js → managed-policy-h8jhh88t.js} +6 -6
- package/dist/chunks/{worktree-56dkfrzf.js → managed-policy-h9wp8z5w.js} +24 -7
- package/dist/chunks/{worktree-b6bm2ck9.js → managed-policy-heah1624.js} +12 -12
- package/dist/chunks/{worktree-hnr5yq9h.js → managed-policy-hnr5yq9h.js} +2 -2
- package/dist/chunks/managed-policy-hxyc6rm4.js +26 -0
- package/dist/chunks/managed-policy-hybrcz9k.js +252 -0
- package/dist/chunks/managed-policy-j1j7mnwh.js +511 -0
- package/dist/chunks/{worktree-j9ayj4zc.js → managed-policy-j2g94gkj.js} +28 -28
- package/dist/chunks/{worktree-j56e64zr.js → managed-policy-j56e64zr.js} +1 -1
- package/dist/chunks/{worktree-2a6vj052.js → managed-policy-j57veafx.js} +8 -8
- package/dist/chunks/{worktree-5m20xtfs.js → managed-policy-j6mhcfxe.js} +29 -29
- package/dist/chunks/{worktree-sf02ybzk.js → managed-policy-jaj4szq5.js} +38 -38
- package/dist/chunks/{worktree-vyqn3nqs.js → managed-policy-jbjr1a4g.js} +6 -6
- package/dist/chunks/{worktree-4xwskevg.js → managed-policy-jdvq2jhf.js} +41 -41
- package/dist/chunks/{worktree-vz9haa5b.js → managed-policy-jf81njd6.js} +35 -35
- package/dist/chunks/{worktree-t2h3929f.js → managed-policy-jwp2njjg.js} +18 -18
- package/dist/chunks/{worktree-6wqfvy1r.js → managed-policy-kjxkk3w4.js} +19 -19
- package/dist/chunks/{worktree-r7thwgs5.js → managed-policy-ks8ntyh3.js} +24 -24
- package/dist/chunks/{worktree-mwtjvb3s.js → managed-policy-kskqm6d2.js} +53 -53
- package/dist/chunks/{worktree-vf3zqv76.js → managed-policy-kswh8eer.js} +25 -25
- package/dist/chunks/{worktree-n79fjaqn.js → managed-policy-m1pdnfay.js} +14 -14
- package/dist/chunks/{worktree-m3fdjcah.js → managed-policy-m3fdjcah.js} +1 -1
- package/dist/chunks/{worktree-8z6bjbtb.js → managed-policy-m4me88d9.js} +22 -22
- package/dist/chunks/{worktree-06x8he3q.js → managed-policy-m70sbz6t.js} +4 -4
- package/dist/chunks/{worktree-m9w0rfyh.js → managed-policy-m9w0rfyh.js} +1 -1
- package/dist/chunks/{worktree-29w74my6.js → managed-policy-magd1yzt.js} +4 -4
- package/dist/chunks/{worktree-p9g6edyn.js → managed-policy-mbt0r9ns.js} +11 -11
- package/dist/chunks/{worktree-jxben73j.js → managed-policy-mex4hcth.js} +11 -11
- package/dist/chunks/{worktree-28dctkqw.js → managed-policy-mgphmkeb.js} +18 -18
- package/dist/chunks/{worktree-x2fe1d14.js → managed-policy-mvcs6n85.js} +3 -3
- package/dist/chunks/{worktree-mvksx64m.js → managed-policy-mvksx64m.js} +4 -4
- package/dist/chunks/{worktree-hcpeyj26.js → managed-policy-n02pcqqr.js} +28 -28
- package/dist/chunks/{worktree-8695v8ev.js → managed-policy-n6x86dnt.js} +24 -24
- package/dist/chunks/{worktree-n093hytc.js → managed-policy-n936hzck.js} +71 -71
- package/dist/chunks/{worktree-q3eynse1.js → managed-policy-n986xf23.js} +9 -9
- package/dist/chunks/{worktree-tkv06rt5.js → managed-policy-nakmx0qk.js} +10 -10
- package/dist/chunks/{worktree-kwyat364.js → managed-policy-naww4dxg.js} +30 -30
- package/dist/chunks/{worktree-vwwmtnca.js → managed-policy-nftbrb0j.js} +17 -17
- package/dist/chunks/{worktree-p4ngywjt.js → managed-policy-ng9vjhd1.js} +5 -5
- package/dist/chunks/{worktree-k3c624dm.js → managed-policy-nzks3jc8.js} +3 -3
- package/dist/chunks/{worktree-pqjrvzcw.js → managed-policy-phbyh0a5.js} +11 -11
- package/dist/chunks/{worktree-pjvnvgmy.js → managed-policy-pjvnvgmy.js} +1 -1
- package/dist/chunks/{worktree-pknna89w.js → managed-policy-pknna89w.js} +1 -1
- package/dist/chunks/{worktree-m6f3t844.js → managed-policy-pq9y5n5m.js} +8 -8
- package/dist/chunks/{worktree-mc8dzm2m.js → managed-policy-ptr74we0.js} +6 -6
- package/dist/chunks/{worktree-y3ntbath.js → managed-policy-pw638tag.js} +17 -17
- package/dist/chunks/{worktree-9me17b34.js → managed-policy-pz6e2nts.js} +43 -43
- package/dist/chunks/{worktree-2hf6az8f.js → managed-policy-q0dv4cw2.js} +88 -88
- package/dist/chunks/{worktree-2w3tjptc.js → managed-policy-q2kn9tye.js} +5 -5
- package/dist/chunks/{worktree-ra57bp20.js → managed-policy-q6e4tnqb.js} +9 -9
- package/dist/chunks/{worktree-y6yanky9.js → managed-policy-q8h29z87.js} +25 -25
- package/dist/chunks/{worktree-1h80sv90.js → managed-policy-qm7jrdpz.js} +8 -8
- package/dist/chunks/{worktree-drwq78ky.js → managed-policy-qqeeq2t9.js} +7 -7
- package/dist/chunks/{worktree-qsdy395h.js → managed-policy-qsdy395h.js} +1 -1
- package/dist/chunks/{worktree-f2t31f47.js → managed-policy-qsxdxqt3.js} +19 -19
- package/dist/chunks/{worktree-1hj8qdg9.js → managed-policy-qsy7t4zk.js} +29 -29
- package/dist/chunks/{worktree-qzdhq6gs.js → managed-policy-qwjtejvm.js} +17 -17
- package/dist/chunks/{worktree-kqa3zwqq.js → managed-policy-qxm4jarf.js} +14 -14
- package/dist/chunks/{worktree-sx1n432n.js → managed-policy-r98e92ep.js} +4 -4
- package/dist/chunks/{worktree-x7a8dc8r.js → managed-policy-r9gspksd.js} +31 -31
- package/dist/chunks/{worktree-n8epb2f3.js → managed-policy-rbnn75vf.js} +22 -22
- package/dist/chunks/{worktree-kgkh60qc.js → managed-policy-rdjy4bhh.js} +29 -29
- package/dist/chunks/{worktree-rdw6cm16.js → managed-policy-rdw6cm16.js} +1 -1
- package/dist/chunks/{worktree-v38nc8kc.js → managed-policy-rf9mgppd.js} +30 -30
- package/dist/chunks/{worktree-nx4vh8py.js → managed-policy-rgtsr3hh.js} +13 -13
- package/dist/chunks/{worktree-rhjbct0v.js → managed-policy-rhjbct0v.js} +1 -1
- package/dist/chunks/{worktree-tb1cafh6.js → managed-policy-rk7s9xkn.js} +4 -4
- package/dist/chunks/{worktree-fvanntqq.js → managed-policy-rph3zd4r.js} +6 -6
- package/dist/chunks/{worktree-d9j01kt6.js → managed-policy-rswb1apg.js} +11 -11
- package/dist/chunks/{worktree-e7pxnx0w.js → managed-policy-s1beqvy1.js} +13 -13
- package/dist/chunks/{worktree-yrznvahk.js → managed-policy-s4enseaf.js} +2 -2
- package/dist/chunks/{worktree-z4nhvzkj.js → managed-policy-sdk1fzq5.js} +13 -13
- package/dist/chunks/{worktree-gvx64vq2.js → managed-policy-sqd39fca.js} +86 -86
- package/dist/chunks/{worktree-pmpthfvp.js → managed-policy-sqy6emsh.js} +18 -18
- package/dist/chunks/{worktree-w17508vf.js → managed-policy-st5dzq7x.js} +12 -12
- package/dist/chunks/{worktree-720pgjf4.js → managed-policy-t79whn4w.js} +27 -27
- package/dist/chunks/{worktree-tazgh4e4.js → managed-policy-tazgh4e4.js} +1 -1
- package/dist/chunks/{worktree-tcezcvh9.js → managed-policy-tcezcvh9.js} +1 -1
- package/dist/chunks/{worktree-tdstcens.js → managed-policy-tdstcens.js} +1 -1
- package/dist/chunks/{worktree-mfhjs9pf.js → managed-policy-te5pspps.js} +4 -4
- package/dist/chunks/{worktree-3z2pry7k.js → managed-policy-tky0bhmc.js} +10 -10
- package/dist/chunks/{worktree-tvtrv512.js → managed-policy-tvtrv512.js} +1 -1
- package/dist/chunks/{worktree-7s451enq.js → managed-policy-tx9w5tca.js} +8 -8
- package/dist/chunks/{worktree-37z41h2b.js → managed-policy-v3r6wrax.js} +27 -27
- package/dist/chunks/{worktree-89z5ntxh.js → managed-policy-vd1xt34m.js} +3 -3
- package/dist/chunks/{worktree-veqvce7d.js → managed-policy-veqvce7d.js} +1 -1
- package/dist/chunks/{worktree-gjd67er9.js → managed-policy-vf8ekb55.js} +8 -8
- package/dist/chunks/{worktree-vfkxywyq.js → managed-policy-vhrh9n3q.js} +20 -20
- package/dist/chunks/{worktree-7v9khnky.js → managed-policy-vjnw2173.js} +8 -8
- package/dist/chunks/{worktree-ky3seynh.js → managed-policy-vmgq4x8b.js} +2 -2
- package/dist/chunks/{worktree-n99xb23m.js → managed-policy-vvnwfe3a.js} +9 -9
- package/dist/chunks/{worktree-vzcthcp8.js → managed-policy-vzcthcp8.js} +1 -1
- package/dist/chunks/{worktree-vzs5sf6e.js → managed-policy-vzs5sf6e.js} +1 -1
- package/dist/chunks/{worktree-w3wsvvr9.js → managed-policy-w3wsvvr9.js} +1 -1
- package/dist/chunks/{worktree-gy2xc5tx.js → managed-policy-w6gh42p5.js} +12 -12
- package/dist/chunks/{worktree-8cv5adkj.js → managed-policy-w9s1mhr8.js} +11 -11
- package/dist/chunks/{worktree-5gpad69q.js → managed-policy-w9vp1hvg.js} +23 -23
- package/dist/chunks/{worktree-wd3x2cqz.js → managed-policy-wd3x2cqz.js} +2 -2
- package/dist/chunks/{worktree-wd87259q.js → managed-policy-wd87259q.js} +1 -1
- package/dist/chunks/{worktree-9f3zk6vx.js → managed-policy-wec12kcc.js} +16 -16
- package/dist/chunks/{worktree-naew6wv7.js → managed-policy-wgkrnqac.js} +42 -42
- package/dist/chunks/{worktree-xhsn75b2.js → managed-policy-wpc20qgk.js} +10 -10
- package/dist/chunks/{worktree-x1ezjp6w.js → managed-policy-x1ezjp6w.js} +1 -1
- package/dist/chunks/{worktree-75w1k5vs.js → managed-policy-x4frdbx5.js} +16 -16
- package/dist/chunks/{worktree-7ebfd3s5.js → managed-policy-x4jf395z.js} +11 -11
- package/dist/chunks/{worktree-4p0mh606.js → managed-policy-x6qqf22v.js} +11 -11
- package/dist/chunks/{worktree-na68e3aj.js → managed-policy-x8spbnc9.js} +19 -19
- package/dist/chunks/{worktree-7wndjkhp.js → managed-policy-xc934jfm.js} +36 -36
- package/dist/chunks/{worktree-b2d04wat.js → managed-policy-xfz6p364.js} +11 -11
- package/dist/chunks/{worktree-xkntkrq7.js → managed-policy-xkntkrq7.js} +2 -2
- package/dist/chunks/{worktree-ke9wcgg9.js → managed-policy-xrma4n88.js} +9 -9
- package/dist/chunks/{worktree-janr2w61.js → managed-policy-xvtq9ts9.js} +23 -23
- package/dist/chunks/{worktree-gy767g1q.js → managed-policy-xwnkmnyx.js} +8 -8
- package/dist/chunks/{worktree-bh2nsqp8.js → managed-policy-xxbzqkxw.js} +25 -25
- package/dist/chunks/{worktree-bqkvb2j5.js → managed-policy-xyzj08bz.js} +4 -4
- package/dist/chunks/{worktree-y1fvbwt7.js → managed-policy-y1fvbwt7.js} +1 -1
- package/dist/chunks/{worktree-3t5az78k.js → managed-policy-y206krxg.js} +10 -10
- package/dist/chunks/{worktree-31ywg3jd.js → managed-policy-y5dxb9zm.js} +11 -11
- package/dist/chunks/{worktree-jwcy2c2z.js → managed-policy-y71avatq.js} +4 -4
- package/dist/chunks/{worktree-0kvqmx4f.js → managed-policy-ybaxr0a6.js} +3 -3
- package/dist/chunks/{worktree-hbt46k8x.js → managed-policy-ykqvw6n0.js} +11 -11
- package/dist/chunks/{worktree-f2n192rq.js → managed-policy-yp2x3t23.js} +4 -4
- package/dist/chunks/{worktree-5pc61bqy.js → managed-policy-yr68hvap.js} +24 -24
- package/dist/chunks/{worktree-yrhqyw5v.js → managed-policy-yrhqyw5v.js} +1 -1
- package/dist/chunks/{worktree-e4jktww8.js → managed-policy-ys6t246v.js} +22 -22
- package/dist/chunks/{worktree-p44d8wdy.js → managed-policy-yt0fqk68.js} +5 -5
- package/dist/chunks/{worktree-h0syphj7.js → managed-policy-yv320rcs.js} +21 -21
- package/dist/chunks/{worktree-z07pqspn.js → managed-policy-z07pqspn.js} +3 -3
- package/dist/chunks/{worktree-z0bkrqjs.js → managed-policy-z0bkrqjs.js} +1 -1
- package/dist/chunks/{worktree-wkx5ts7j.js → managed-policy-z4s7g43y.js} +1 -1
- package/dist/chunks/{worktree-y2d6hc89.js → managed-policy-z59mzw5n.js} +20 -20
- package/dist/chunks/{worktree-gesdtaaj.js → managed-policy-zbhhzgj6.js} +11 -11
- package/dist/chunks/{worktree-zeh9ct20.js → managed-policy-zeh9ct20.js} +2 -2
- package/dist/chunks/{worktree-begby2a8.js → managed-policy-zfdpneax.js} +20 -20
- package/dist/chunks/{worktree-zr2ceqn5.js → managed-policy-zr2ceqn5.js} +1 -1
- package/dist/chunks/{worktree-kmntd6fa.js → managed-policy-zrj27d4v.js} +15 -15
- package/dist/chunks/{worktree-qt2a2r7m.js → managed-policy-ztfr3gj5.js} +6 -6
- package/dist/chunks/{worktree-zxq2ej10.js → managed-policy-zxq2ej10.js} +1 -1
- package/dist/chunks/{worktree-5rbhaw37.js → managed-policy-zy79aer6.js} +17 -17
- 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 +83 -83
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +72 -72
- 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 +372 -372
- 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 +72 -72
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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 +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +96 -96
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +87 -87
- package/dist/generate.js +103 -103
- package/dist/git.js +8 -8
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/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 +363 -363
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +84 -84
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +83 -83
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +106 -106
- package/dist/mcp/instructions.js +128 -128
- 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 +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +98 -98
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- 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 +104 -104
- package/dist/plugin/command.js +101 -101
- package/dist/plugin/compaction.js +133 -133
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +334 -334
- 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 +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- 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 +94 -94
- 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 +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +92 -92
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- 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 +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +161 -161
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +353 -353
- 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 +121 -121
- 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 +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +225 -225
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +97 -97
- 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 +92 -92
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +85 -85
- 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/command.js +74 -74
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +152 -152
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +222 -222
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +151 -151
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +86 -86
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +119 -119
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- 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 +3 -3
- package/dist/session/runner/retry.js +112 -112
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -208
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +156 -156
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +104 -104
- package/dist/snapshot.js +93 -93
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +125 -125
- 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 +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +213 -213
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +114 -114
- 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 +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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- 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 +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/worktree-37xvps52.js +0 -26
- package/dist/chunks/worktree-4v7qdvcn.js +0 -18
- package/dist/chunks/worktree-hgnyvjm7.js +0 -511
- package/dist/chunks/worktree-hq0gjsme.js +0 -252
- /package/dist/chunks/{worktree-0mesazry.js → managed-policy-0mesazry.js} +0 -0
- /package/dist/chunks/{worktree-0qkdqm5v.js → managed-policy-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{worktree-0zkw76rk.js → managed-policy-0zkw76rk.js} +0 -0
- /package/dist/chunks/{worktree-17cy0kzp.js → managed-policy-17cy0kzp.js} +0 -0
- /package/dist/chunks/{worktree-1cnp2v09.js → managed-policy-1cnp2v09.js} +0 -0
- /package/dist/chunks/{worktree-1kg9ymc8.js → managed-policy-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{worktree-24dcb14g.js → managed-policy-24dcb14g.js} +0 -0
- /package/dist/chunks/{worktree-2710q6r3.js → managed-policy-2710q6r3.js} +0 -0
- /package/dist/chunks/{worktree-2axfhc9x.js → managed-policy-2axfhc9x.js} +0 -0
- /package/dist/chunks/{worktree-2c3vjs8z.js → managed-policy-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{worktree-34c7v6d4.js → managed-policy-34c7v6d4.js} +0 -0
- /package/dist/chunks/{worktree-359p4xyc.js → managed-policy-359p4xyc.js} +0 -0
- /package/dist/chunks/{worktree-3asan66x.js → managed-policy-3asan66x.js} +0 -0
- /package/dist/chunks/{worktree-3v8g72cx.js → managed-policy-3v8g72cx.js} +0 -0
- /package/dist/chunks/{worktree-3w5fmr99.js → managed-policy-3w5fmr99.js} +0 -0
- /package/dist/chunks/{worktree-3wcehsnq.js → managed-policy-3wcehsnq.js} +0 -0
- /package/dist/chunks/{worktree-43n2bw4t.js → managed-policy-43n2bw4t.js} +0 -0
- /package/dist/chunks/{worktree-4knz6hnm.js → managed-policy-4knz6hnm.js} +0 -0
- /package/dist/chunks/{worktree-4vcrnpx2.js → managed-policy-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{worktree-4y7fprxs.js → managed-policy-4y7fprxs.js} +0 -0
- /package/dist/chunks/{worktree-53557ph1.js → managed-policy-53557ph1.js} +0 -0
- /package/dist/chunks/{worktree-550bvhaj.js → managed-policy-550bvhaj.js} +0 -0
- /package/dist/chunks/{worktree-6prwharc.js → managed-policy-6prwharc.js} +0 -0
- /package/dist/chunks/{worktree-7akdwqpd.js → managed-policy-7akdwqpd.js} +0 -0
- /package/dist/chunks/{worktree-7m9af43g.js → managed-policy-7m9af43g.js} +0 -0
- /package/dist/chunks/{worktree-822emrt2.js → managed-policy-822emrt2.js} +0 -0
- /package/dist/chunks/{worktree-88xbtdfr.js → managed-policy-88xbtdfr.js} +0 -0
- /package/dist/chunks/{worktree-8n3pysct.js → managed-policy-8n3pysct.js} +0 -0
- /package/dist/chunks/{worktree-8wj87zfr.js → managed-policy-8wj87zfr.js} +0 -0
- /package/dist/chunks/{worktree-922hggd3.js → managed-policy-922hggd3.js} +0 -0
- /package/dist/chunks/{worktree-9a4afbnw.js → managed-policy-9a4afbnw.js} +0 -0
- /package/dist/chunks/{worktree-9rqn6x4v.js → managed-policy-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{worktree-a6k6eb26.js → managed-policy-a6k6eb26.js} +0 -0
- /package/dist/chunks/{worktree-af5trqkr.js → managed-policy-af5trqkr.js} +0 -0
- /package/dist/chunks/{worktree-afrmfg78.js → managed-policy-afrmfg78.js} +0 -0
- /package/dist/chunks/{worktree-aqzs7mqg.js → managed-policy-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{worktree-atq7p7m5.js → managed-policy-atq7p7m5.js} +0 -0
- /package/dist/chunks/{worktree-bkyjaxrp.js → managed-policy-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{worktree-bmr6ed5q.js → managed-policy-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{worktree-cf4snx6d.js → managed-policy-cf4snx6d.js} +0 -0
- /package/dist/chunks/{worktree-cvy3z8tj.js → managed-policy-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{worktree-d9fn303g.js → managed-policy-d9fn303g.js} +0 -0
- /package/dist/chunks/{worktree-d9jj8t3e.js → managed-policy-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{worktree-dajrwvna.js → managed-policy-dajrwvna.js} +0 -0
- /package/dist/chunks/{worktree-dap0rakb.js → managed-policy-dap0rakb.js} +0 -0
- /package/dist/chunks/{worktree-df08tz66.js → managed-policy-df08tz66.js} +0 -0
- /package/dist/chunks/{worktree-dy18nga0.js → managed-policy-dy18nga0.js} +0 -0
- /package/dist/chunks/{worktree-e5kj55wp.js → managed-policy-e5kj55wp.js} +0 -0
- /package/dist/chunks/{worktree-e73j6tqm.js → managed-policy-e73j6tqm.js} +0 -0
- /package/dist/chunks/{worktree-ec1grn59.js → managed-policy-ec1grn59.js} +0 -0
- /package/dist/chunks/{worktree-eh3zwz77.js → managed-policy-eh3zwz77.js} +0 -0
- /package/dist/chunks/{worktree-emrn6kk6.js → managed-policy-emrn6kk6.js} +0 -0
- /package/dist/chunks/{worktree-f0mxakyp.js → managed-policy-f0mxakyp.js} +0 -0
- /package/dist/chunks/{worktree-f6n9ztr4.js → managed-policy-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{worktree-faypxj3z.js → managed-policy-faypxj3z.js} +0 -0
- /package/dist/chunks/{worktree-fd410y7t.js → managed-policy-fd410y7t.js} +0 -0
- /package/dist/chunks/{worktree-fxgpk5d8.js → managed-policy-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{worktree-g4wezp1m.js → managed-policy-g4wezp1m.js} +0 -0
- /package/dist/chunks/{worktree-g86h250q.js → managed-policy-g86h250q.js} +0 -0
- /package/dist/chunks/{worktree-gebd4c9n.js → managed-policy-gebd4c9n.js} +0 -0
- /package/dist/chunks/{worktree-gftt206x.js → managed-policy-gftt206x.js} +0 -0
- /package/dist/chunks/{worktree-hjbc5kem.js → managed-policy-hjbc5kem.js} +0 -0
- /package/dist/chunks/{worktree-hk9envan.js → managed-policy-hk9envan.js} +0 -0
- /package/dist/chunks/{worktree-j2ntwpah.js → managed-policy-j2ntwpah.js} +0 -0
- /package/dist/chunks/{worktree-j5zkgpj8.js → managed-policy-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{worktree-jjkms2e6.js → managed-policy-jjkms2e6.js} +0 -0
- /package/dist/chunks/{worktree-jr7sbwjy.js → managed-policy-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{worktree-jwfs4k6c.js → managed-policy-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{worktree-jzg6c2d5.js → managed-policy-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{worktree-mp448xyj.js → managed-policy-mp448xyj.js} +0 -0
- /package/dist/chunks/{worktree-msx8hqn2.js → managed-policy-msx8hqn2.js} +0 -0
- /package/dist/chunks/{worktree-n05xt0ee.js → managed-policy-n05xt0ee.js} +0 -0
- /package/dist/chunks/{worktree-n3j8tn72.js → managed-policy-n3j8tn72.js} +0 -0
- /package/dist/chunks/{worktree-njntx4h6.js → managed-policy-njntx4h6.js} +0 -0
- /package/dist/chunks/{worktree-q3sfg36h.js → managed-policy-q3sfg36h.js} +0 -0
- /package/dist/chunks/{worktree-q74kybfr.js → managed-policy-q74kybfr.js} +0 -0
- /package/dist/chunks/{worktree-qaymkmh1.js → managed-policy-qaymkmh1.js} +0 -0
- /package/dist/chunks/{worktree-qb87gjwd.js → managed-policy-qb87gjwd.js} +0 -0
- /package/dist/chunks/{worktree-qfa1cgps.js → managed-policy-qfa1cgps.js} +0 -0
- /package/dist/chunks/{worktree-qg3g05ea.js → managed-policy-qg3g05ea.js} +0 -0
- /package/dist/chunks/{worktree-qrg20bc0.js → managed-policy-qrg20bc0.js} +0 -0
- /package/dist/chunks/{worktree-rcb2kzg1.js → managed-policy-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{worktree-sdp7kfr6.js → managed-policy-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{worktree-sk3qaz4a.js → managed-policy-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{worktree-ssg3fenm.js → managed-policy-ssg3fenm.js} +0 -0
- /package/dist/chunks/{worktree-w803qqfp.js → managed-policy-w803qqfp.js} +0 -0
- /package/dist/chunks/{worktree-wc3fc9cn.js → managed-policy-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{worktree-wer8tq1h.js → managed-policy-wer8tq1h.js} +0 -0
- /package/dist/chunks/{worktree-wtztk69x.js → managed-policy-wtztk69x.js} +0 -0
- /package/dist/chunks/{worktree-x0ckcb58.js → managed-policy-x0ckcb58.js} +0 -0
- /package/dist/chunks/{worktree-x61499pn.js → managed-policy-x61499pn.js} +0 -0
- /package/dist/chunks/{worktree-y44na4kk.js → managed-policy-y44na4kk.js} +0 -0
- /package/dist/chunks/{worktree-y8cydn3q.js → managed-policy-y8cydn3q.js} +0 -0
- /package/dist/chunks/{worktree-y8f7s663.js → managed-policy-y8f7s663.js} +0 -0
- /package/dist/chunks/{worktree-ygaqb7jw.js → managed-policy-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{worktree-ym463w8f.js → managed-policy-ym463w8f.js} +0 -0
- /package/dist/chunks/{worktree-z9919s4g.js → managed-policy-z9919s4g.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node87
|
|
4
|
+
} from "./managed-policy-2j13chjm.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
Service80,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
node84
|
|
13
|
+
} from "./managed-policy-1hwmn15w.js";
|
|
14
14
|
import {
|
|
15
15
|
reconcile2,
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./managed-policy-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/vcs.ts
|
|
23
23
|
var exports_vcs = {};
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info5,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service32,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node36
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info5, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -45,9 +45,9 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service32 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
52
|
const location = yield* Service80;
|
|
53
53
|
const bus = yield* Service83;
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info5));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -118,7 +118,7 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
118
118
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
119
119
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
120
120
|
}
|
|
121
|
-
return
|
|
121
|
+
return Service32.of({
|
|
122
122
|
transform: state.transform,
|
|
123
123
|
reload: state.reload,
|
|
124
124
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -164,10 +164,10 @@ var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
164
164
|
})
|
|
165
165
|
});
|
|
166
166
|
}));
|
|
167
|
-
var
|
|
168
|
-
service:
|
|
167
|
+
var node36 = makeLocationNode({
|
|
168
|
+
service: Service32,
|
|
169
169
|
layer,
|
|
170
|
-
deps: [FSUtil.node,
|
|
170
|
+
deps: [FSUtil.node, node84, node87]
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
export { Base2, BranchList2, FileStatus2,
|
|
173
|
+
export { Base2, BranchList2, FileStatus2, Info5, Mode2, DiffError2, Service32, node36, exports_vcs };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node86
|
|
7
|
+
} from "./managed-policy-dq0v80fr.js";
|
|
8
8
|
import {
|
|
9
9
|
Slug2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./managed-policy-gebd4c9n.js";
|
|
11
11
|
import {
|
|
12
12
|
Service84,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
node88
|
|
14
|
+
} from "./managed-policy-8p29yw8h.js";
|
|
15
15
|
import {
|
|
16
16
|
Service83,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node87
|
|
18
|
+
} from "./managed-policy-2j13chjm.js";
|
|
19
19
|
import {
|
|
20
20
|
ProjectTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./managed-policy-wd3x2cqz.js";
|
|
22
22
|
import {
|
|
23
23
|
WorktreeTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./managed-policy-94ek1h2f.js";
|
|
25
25
|
import {
|
|
26
26
|
ID17,
|
|
27
27
|
NotFoundError11
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./managed-policy-77j23m7r.js";
|
|
29
29
|
import {
|
|
30
30
|
Ref4
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./managed-policy-1hwmn15w.js";
|
|
32
32
|
import {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service50,
|
|
34
|
+
node53
|
|
35
|
+
} from "./managed-policy-bh832hz7.js";
|
|
36
36
|
import {
|
|
37
37
|
DirectoryUnavailableError2,
|
|
38
38
|
canonical2
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./managed-policy-gv6a8nnw.js";
|
|
40
40
|
import {
|
|
41
41
|
make19
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./managed-policy-ybaxr0a6.js";
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
} from "./
|
|
44
|
+
Service47
|
|
45
|
+
} from "./managed-policy-nftbrb0j.js";
|
|
46
46
|
import {
|
|
47
47
|
__export
|
|
48
|
-
} from "./
|
|
48
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
49
49
|
|
|
50
50
|
// src/worktree.ts
|
|
51
51
|
var exports_worktree2 = {};
|
|
@@ -53,19 +53,19 @@ __export(exports_worktree2, {
|
|
|
53
53
|
CreateInput: () => CreateInput3,
|
|
54
54
|
DestinationExistsError: () => DestinationExistsError2,
|
|
55
55
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
56
|
-
Event: () =>
|
|
57
|
-
Info: () =>
|
|
56
|
+
Event: () => Event9,
|
|
57
|
+
Info: () => Info9,
|
|
58
58
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
59
59
|
List: () => List2,
|
|
60
60
|
ListEntry: () => ListEntry3,
|
|
61
61
|
OperationError: () => OperationError2,
|
|
62
62
|
RemoveInput: () => RemoveInput2,
|
|
63
|
-
Service: () =>
|
|
63
|
+
Service: () => Service46,
|
|
64
64
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
65
65
|
StrategyID: () => StrategyID2,
|
|
66
66
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
67
67
|
Worktree: () => exports_worktree2,
|
|
68
|
-
node: () =>
|
|
68
|
+
node: () => node49
|
|
69
69
|
});
|
|
70
70
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
71
71
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -79,7 +79,7 @@ import { OperationError as OperationError2 } from "@opencode/schema/worktree";
|
|
|
79
79
|
var StrategyID2 = Worktree.StrategyID;
|
|
80
80
|
var CreateInput3 = Worktree.CreateInput;
|
|
81
81
|
var RemoveInput2 = Worktree.RemoveInput;
|
|
82
|
-
var
|
|
82
|
+
var Info9 = Worktree.Info;
|
|
83
83
|
var List2 = Worktree.List;
|
|
84
84
|
var ListEntry3 = Worktree.ListEntry;
|
|
85
85
|
|
|
@@ -94,17 +94,17 @@ class InvalidDirectoryError2 extends Schema.TaggedError()("Worktree.InvalidDirec
|
|
|
94
94
|
|
|
95
95
|
class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyUnavailableError", { strategy: StrategyID2 }) {
|
|
96
96
|
}
|
|
97
|
-
var
|
|
97
|
+
var Event9 = Worktree.Event;
|
|
98
98
|
|
|
99
|
-
class
|
|
99
|
+
class Service46 extends Context.Service()("@opencode/Worktree") {
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
103
|
const database = yield* Service84;
|
|
104
104
|
const db = database.db;
|
|
105
105
|
const bus = yield* Service83;
|
|
106
106
|
const processService = yield* AppProcess.Service;
|
|
107
|
-
const locations = yield*
|
|
107
|
+
const locations = yield* Service50;
|
|
108
108
|
const gitStrategy = yield* make19;
|
|
109
109
|
const project = Effect.fnUntraced(function* (projectID) {
|
|
110
110
|
const row = yield* db.select().from(ProjectTable2).where(eq(ProjectTable2.id, projectID)).get().pipe(Effect.orDie);
|
|
@@ -120,11 +120,11 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
120
120
|
const { Plugin } = yield* Effect.promise(() => import("../plugin.js"));
|
|
121
121
|
const context = yield* locations.contextEffect(Ref4.make({ directory }));
|
|
122
122
|
yield* Context.get(context, Plugin.Service).awaitActivation;
|
|
123
|
-
return Context.get(context,
|
|
123
|
+
return Context.get(context, Service47).get();
|
|
124
124
|
});
|
|
125
125
|
const changed = Effect.fnUntraced(function* (projectID, update) {
|
|
126
126
|
if (update)
|
|
127
|
-
yield* bus.publish(
|
|
127
|
+
yield* bus.publish(Event9.Updated, { projectID });
|
|
128
128
|
});
|
|
129
129
|
const ops = {
|
|
130
130
|
list: Effect.fnUntraced(function* (projectID) {
|
|
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
251
251
|
})).pipe(Effect.orDie);
|
|
252
252
|
yield* changed(input.projectID, changes.updated.length > 0 || changes.removed.length > 0);
|
|
253
253
|
}, Effect.scoped);
|
|
254
|
-
return
|
|
254
|
+
return Service46.of({
|
|
255
255
|
list: Effect.fn("Worktree.list")(function* (input) {
|
|
256
256
|
yield* project(input.projectID);
|
|
257
257
|
return yield* ops.list(input.projectID);
|
|
@@ -261,10 +261,10 @@ var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
|
261
261
|
refresh
|
|
262
262
|
});
|
|
263
263
|
}));
|
|
264
|
-
var
|
|
265
|
-
service:
|
|
264
|
+
var node49 = Node.makeGlobalNode({
|
|
265
|
+
service: Service46,
|
|
266
266
|
layer,
|
|
267
|
-
deps: [FSUtil.node,
|
|
267
|
+
deps: [FSUtil.node, node86, node87, node88, AppProcess.node, node53]
|
|
268
268
|
});
|
|
269
269
|
function operationError(strategy, operation, error) {
|
|
270
270
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -274,4 +274,4 @@ function operationError(strategy, operation, error) {
|
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
276
|
|
|
277
|
-
export { StrategyID2, CreateInput3, RemoveInput2,
|
|
277
|
+
export { StrategyID2, CreateInput3, RemoveInput2, Info9, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, Event9, Service46, node49, exports_worktree2, OperationError2 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
ID4,
|
|
6
|
+
Service31
|
|
7
|
+
} from "./managed-policy-j6mhcfxe.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./managed-policy-5cmxdwv8.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./managed-policy-bvtf22kj.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./managed-policy-z07pqspn.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/session/diff.ts
|
|
22
22
|
var exports_diff = {};
|
|
@@ -81,14 +81,14 @@ var turn2 = Effect.fn("SessionDiff.turn")(function* (db, locations, input) {
|
|
|
81
81
|
const location = before ? decodeLocation(before) : after ? decodeLocation(after) : input.session.location;
|
|
82
82
|
const recorded = steps.findLast((step) => step.end)?.end;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
|
-
const snapshot = yield*
|
|
84
|
+
const snapshot = yield* Service31;
|
|
85
85
|
const running = input.active && final.completed === null;
|
|
86
86
|
const to = running ? (yield* snapshot.capture()) ?? recorded : recorded;
|
|
87
87
|
if (!to)
|
|
88
88
|
return [];
|
|
89
89
|
return yield* snapshot.diff({
|
|
90
|
-
from:
|
|
91
|
-
to:
|
|
90
|
+
from: ID4.make(from),
|
|
91
|
+
to: ID4.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-5x0vc0vb.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-56gdpj1q.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/tinyfish.ts
|
|
12
12
|
var exports_tinyfish = {};
|
|
13
13
|
__export(exports_tinyfish, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin37,
|
|
15
15
|
WebSearchTinyFish: () => exports_tinyfish,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint5
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/unstable/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint5 = "https://agent.tinyfish.ai/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String
|
|
24
24
|
});
|
|
@@ -33,7 +33,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
33
33
|
}))
|
|
34
34
|
}));
|
|
35
35
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
36
|
-
var
|
|
36
|
+
var Plugin37 = define({
|
|
37
37
|
id: "opencode.websearch.tinyfish",
|
|
38
38
|
effect: Effect.fn("WebSearchTinyFish.Plugin")(function* (ctx) {
|
|
39
39
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -55,7 +55,7 @@ var Plugin17 = define({
|
|
|
55
55
|
execute: (input) => Effect.gen(function* () {
|
|
56
56
|
const connection = yield* ctx.integration.connection.active("tinyfish");
|
|
57
57
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
58
|
-
const result = yield* call2(http,
|
|
58
|
+
const result = yield* call2(http, endpoint5, "search", { input: McpInput, output: McpOutput }, { query: input.query }, {
|
|
59
59
|
"User-Agent": useragent2(ctx.app),
|
|
60
60
|
...credential?.type === "key" ? { "X-API-Key": credential.key } : { "X-TinyFish-Access-Mode": "keyless" }
|
|
61
61
|
});
|
|
@@ -73,4 +73,4 @@ var Plugin17 = define({
|
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
75
|
|
|
76
|
-
export {
|
|
76
|
+
export { endpoint5, Plugin37, exports_tinyfish };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-5x0vc0vb.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-2j13chjm.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./managed-policy-naww4dxg.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./managed-policy-ks8ntyh3.js";
|
|
15
15
|
import {
|
|
16
16
|
which2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./managed-policy-qaymkmh1.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
ID12
|
|
20
|
+
} from "./managed-policy-65dg9dkc.js";
|
|
21
21
|
import {
|
|
22
22
|
iife2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./managed-policy-1kg9ymc8.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./managed-policy-ztfr3gj5.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/azure.ts
|
|
29
29
|
import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -43,7 +43,7 @@ var decodeToken = Schema.decodeUnknownEffect(Schema.Struct({
|
|
|
43
43
|
var AzurePlugin2 = define({
|
|
44
44
|
id: "opencode.provider.azure",
|
|
45
45
|
effect: Effect.fn(function* (ctx) {
|
|
46
|
-
const configured = yield* configuredSettings2(
|
|
46
|
+
const configured = yield* configuredSettings2(ID12.azure);
|
|
47
47
|
const processes = yield* AppProcess.Service;
|
|
48
48
|
const bus = yield* Service83;
|
|
49
49
|
const tokens = new Map;
|
|
@@ -79,13 +79,13 @@ var AzurePlugin2 = define({
|
|
|
79
79
|
});
|
|
80
80
|
yield* ctx.integration.transform((editor) => {
|
|
81
81
|
editor.method.update({
|
|
82
|
-
integrationID:
|
|
82
|
+
integrationID: ID12.azure,
|
|
83
83
|
method: { type: "key", label: "API key", form: form() }
|
|
84
84
|
});
|
|
85
85
|
if (!available)
|
|
86
86
|
return;
|
|
87
87
|
editor.method.update({
|
|
88
|
-
integrationID:
|
|
88
|
+
integrationID: ID12.azure,
|
|
89
89
|
method: {
|
|
90
90
|
id: methodID,
|
|
91
91
|
type: "oauth",
|
|
@@ -117,7 +117,7 @@ var AzurePlugin2 = define({
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
120
|
-
const connection = yield* ctx.integration.connection.active(
|
|
120
|
+
const connection = yield* ctx.integration.connection.active(ID12.azure);
|
|
121
121
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
122
122
|
return;
|
|
123
123
|
})) : undefined;
|
|
@@ -131,7 +131,7 @@ var AzurePlugin2 = define({
|
|
|
131
131
|
yield* load();
|
|
132
132
|
yield* ctx.provider.transform((evt) => {
|
|
133
133
|
for (const item of evt.list()) {
|
|
134
|
-
if (item.provider.id !==
|
|
134
|
+
if (item.provider.id !== ID12.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
135
135
|
continue;
|
|
136
136
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
137
137
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -149,7 +149,7 @@ var AzurePlugin2 = define({
|
|
|
149
149
|
});
|
|
150
150
|
yield* ctx.model.transform((models) => {
|
|
151
151
|
for (const item of models.provider.list()) {
|
|
152
|
-
if (item.provider.id !==
|
|
152
|
+
if (item.provider.id !== ID12.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
153
153
|
continue;
|
|
154
154
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
155
155
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -161,9 +161,9 @@ var AzurePlugin2 = define({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
164
|
-
yield* bus.subscribe(
|
|
164
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
165
165
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
166
|
-
const connection = yield* ctx.integration.connection.active(
|
|
166
|
+
const connection = yield* ctx.integration.connection.active(ID12.azure);
|
|
167
167
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
168
168
|
return;
|
|
169
169
|
})) : undefined;
|
|
@@ -175,7 +175,7 @@ var AzurePlugin2 = define({
|
|
|
175
175
|
return `Bearer ${current.access}`;
|
|
176
176
|
});
|
|
177
177
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
178
|
-
if (evt.model.providerID !==
|
|
178
|
+
if (evt.model.providerID !== ID12.azure)
|
|
179
179
|
return;
|
|
180
180
|
const authorization = yield* bearer(evt.request.url);
|
|
181
181
|
if (!authorization)
|
|
@@ -184,9 +184,9 @@ var AzurePlugin2 = define({
|
|
|
184
184
|
evt.request.headers.delete("x-api-key");
|
|
185
185
|
evt.request.headers.set("authorization", authorization);
|
|
186
186
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
187
|
-
}), { providerID:
|
|
187
|
+
}), { providerID: ID12.azure });
|
|
188
188
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
189
|
-
if (evt.model.providerID !==
|
|
189
|
+
if (evt.model.providerID !== ID12.azure)
|
|
190
190
|
return;
|
|
191
191
|
const authorization = yield* bearer(evt.url);
|
|
192
192
|
if (!authorization)
|
|
@@ -195,7 +195,7 @@ var AzurePlugin2 = define({
|
|
|
195
195
|
delete evt.headers["x-api-key"];
|
|
196
196
|
evt.headers.authorization = authorization;
|
|
197
197
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
198
|
-
}), { providerID:
|
|
198
|
+
}), { providerID: ID12.azure });
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
201
|
function resolveResourceName(settings, fallback) {
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-5x0vc0vb.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin36,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint4
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint4 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin36 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin19 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint4).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin19 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint4, Plugin36, exports_tavily };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service66,
|
|
3
|
+
node69
|
|
4
|
+
} from "./managed-policy-4s3tx91s.js";
|
|
5
5
|
import {
|
|
6
6
|
Service80,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
node84
|
|
8
|
+
} from "./managed-policy-1hwmn15w.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service65,
|
|
11
|
+
node68
|
|
12
|
+
} from "./managed-policy-wgkrnqac.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./managed-policy-zxq2ej10.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/source.ts
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service3,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer4,
|
|
28
|
+
node: () => node4
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,11 +33,11 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service3 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer4 = Layer.effect(Service3, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service65;
|
|
40
|
+
const watcher = yield* Service66;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
42
|
const location = yield* Service80;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
@@ -58,7 +58,7 @@ var layer7 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service3.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer7 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node4 = makeLocationNode({
|
|
74
|
+
service: Service3,
|
|
75
|
+
layer: layer4,
|
|
76
|
+
deps: [node68, FSUtil.node, node69, node84]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service3,
|
|
80
|
+
layer: Layer.succeed(Service3, Service3.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service3, layer4, node4, empty2, exports_source };
|