@opencode/core 0.0.0-dev-21458 → 0.0.0-dev-21463
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/agent.js +66 -66
- package/dist/aisdk-native.js +70 -70
- package/dist/aisdk.js +75 -75
- package/dist/app.js +9 -9
- package/dist/bus.js +54 -54
- package/dist/chunks/{ripgrep-vy2epn4a.js → ripgrep-06h1tyz4.js} +4 -4
- package/dist/chunks/{ripgrep-ag4rn41e.js → ripgrep-06x8he3q.js} +3 -3
- package/dist/chunks/{ripgrep-ww55sn04.js → ripgrep-09c1zjrt.js} +15 -15
- package/dist/chunks/{ripgrep-v210v162.js → ripgrep-0javqkgf.js} +7 -7
- package/dist/chunks/{ripgrep-1rs87y8d.js → ripgrep-0nmqjfd0.js} +23 -23
- package/dist/chunks/{ripgrep-xdh6s9ed.js → ripgrep-124s2bhj.js} +10 -10
- package/dist/chunks/{ripgrep-emzsebxx.js → ripgrep-1fmrbde1.js} +5 -5
- package/dist/chunks/{ripgrep-w7vtcvrx.js → ripgrep-1gvanxjs.js} +32 -32
- package/dist/chunks/{ripgrep-4kvg6bn8.js → ripgrep-1jshh0hj.js} +20 -20
- package/dist/chunks/{ripgrep-sdzwknx0.js → ripgrep-1rwjpbn5.js} +24 -24
- package/dist/chunks/{ripgrep-hdgw5fjw.js → ripgrep-1w5qwmmm.js} +7 -7
- package/dist/chunks/{ripgrep-zzdkzef9.js → ripgrep-1zd1rgqx.js} +17 -17
- package/dist/chunks/{ripgrep-amt7ef5n.js → ripgrep-22v61q2t.js} +9 -9
- package/dist/chunks/{ripgrep-y8ycp07x.js → ripgrep-230myn37.js} +14 -14
- package/dist/chunks/{ripgrep-6ac9zck1.js → ripgrep-251hxpd6.js} +1 -1
- package/dist/chunks/{ripgrep-1ep2p91f.js → ripgrep-27w5k9zf.js} +1 -1
- package/dist/chunks/{ripgrep-ar5c37sv.js → ripgrep-298dhb3n.js} +17 -17
- package/dist/chunks/{ripgrep-tzvv02w3.js → ripgrep-29mhb2se.js} +48 -48
- package/dist/chunks/{ripgrep-edj082x0.js → ripgrep-2r363r85.js} +3 -3
- package/dist/chunks/{ripgrep-d4he2qe1.js → ripgrep-2sejkfem.js} +7 -7
- package/dist/chunks/{ripgrep-2h0q315h.js → ripgrep-2sstcm55.js} +10 -10
- package/dist/chunks/{ripgrep-mzrmbcee.js → ripgrep-2wqnbphr.js} +12 -12
- package/dist/chunks/{ripgrep-yggz4gjb.js → ripgrep-2wvr9kck.js} +45 -45
- package/dist/chunks/{ripgrep-cz0dahpr.js → ripgrep-312nns96.js} +6 -6
- package/dist/chunks/{ripgrep-am1tmpj5.js → ripgrep-3220qrgn.js} +8 -8
- package/dist/chunks/{ripgrep-7hppxa70.js → ripgrep-3k2tm6e9.js} +1 -1
- package/dist/chunks/{ripgrep-68w3xa91.js → ripgrep-3mqyb98t.js} +3 -3
- package/dist/chunks/ripgrep-3qcx2nn5.js +257 -0
- package/dist/chunks/{ripgrep-hc033k72.js → ripgrep-3vt2dxg2.js} +2 -2
- package/dist/chunks/{ripgrep-pgp1nwjn.js → ripgrep-44ak30pa.js} +3 -3
- package/dist/chunks/{ripgrep-1rw66me6.js → ripgrep-49j0r9af.js} +17 -17
- package/dist/chunks/{ripgrep-dt0gb5zd.js → ripgrep-4kjvvtcf.js} +13 -13
- package/dist/chunks/{ripgrep-w39jehkq.js → ripgrep-4xpgt2w9.js} +3 -3
- package/dist/chunks/{ripgrep-f9ewqnvf.js → ripgrep-4yszj04w.js} +31 -31
- package/dist/chunks/{ripgrep-rxkx3yrv.js → ripgrep-4zd5n188.js} +22 -22
- package/dist/chunks/{ripgrep-b0k3m5sv.js → ripgrep-50ttpepc.js} +46 -46
- package/dist/chunks/{ripgrep-dzrdd8y4.js → ripgrep-560zx63f.js} +1 -1
- package/dist/chunks/{ripgrep-9jdajzrt.js → ripgrep-57pprckc.js} +19 -19
- package/dist/chunks/{ripgrep-2n3wn4cc.js → ripgrep-5cfq97pr.js} +25 -25
- package/dist/chunks/{ripgrep-m1jhgcxs.js → ripgrep-5cwz5tfs.js} +2 -2
- package/dist/chunks/{ripgrep-q3myhh1r.js → ripgrep-5d51bkr7.js} +44 -44
- package/dist/chunks/{ripgrep-vep9yay1.js → ripgrep-5g57z1ma.js} +3 -3
- package/dist/chunks/{ripgrep-hxcjpjn2.js → ripgrep-5h8zx44a.js} +17 -17
- package/dist/chunks/{ripgrep-5wbw6pv9.js → ripgrep-5kk0g6xv.js} +9 -9
- package/dist/chunks/{ripgrep-n7qpxvtd.js → ripgrep-5wdmk2gh.js} +28 -28
- package/dist/chunks/{ripgrep-e696dwzt.js → ripgrep-68zvyq3x.js} +8 -8
- package/dist/chunks/{ripgrep-apt503cy.js → ripgrep-6dx9d91q.js} +8 -8
- package/dist/chunks/{ripgrep-3fnjy7d5.js → ripgrep-6gya5b2a.js} +35 -35
- package/dist/chunks/{ripgrep-9wn2agq9.js → ripgrep-6mjf37c3.js} +30 -30
- package/dist/chunks/{ripgrep-y4fgtena.js → ripgrep-6s32m78n.js} +83 -83
- package/dist/chunks/{ripgrep-06m8zqpz.js → ripgrep-6ypqa0d2.js} +26 -26
- package/dist/chunks/{ripgrep-6sdx5bv6.js → ripgrep-713a57ta.js} +1 -1
- package/dist/chunks/{ripgrep-nj7hqrdc.js → ripgrep-72x17vkx.js} +7 -7
- package/dist/chunks/{ripgrep-t6z5h8be.js → ripgrep-75d596k4.js} +19 -19
- package/dist/chunks/{ripgrep-8w348b9w.js → ripgrep-77jva0j9.js} +6 -6
- package/dist/chunks/{ripgrep-607tc6va.js → ripgrep-7dqw4kz8.js} +4 -4
- package/dist/chunks/{ripgrep-ce3ajj6n.js → ripgrep-7e8r663x.js} +32 -32
- package/dist/chunks/{ripgrep-725dzmat.js → ripgrep-7jxgd9ay.js} +19 -19
- package/dist/chunks/{ripgrep-6m78wcz4.js → ripgrep-86gy2e90.js} +27 -27
- package/dist/chunks/{ripgrep-wbcvfxpg.js → ripgrep-8eadsrjy.js} +25 -25
- package/dist/chunks/{ripgrep-ryb7mfzk.js → ripgrep-8fmaj9a8.js} +18 -18
- package/dist/chunks/{ripgrep-hes8zqkx.js → ripgrep-8hs2d1kn.js} +10 -10
- package/dist/chunks/{ripgrep-ekrj3q3n.js → ripgrep-8sjwbqp5.js} +16 -16
- package/dist/chunks/{ripgrep-xw9fg8fb.js → ripgrep-8vcf4cwr.js} +1 -1
- package/dist/chunks/{ripgrep-eydep5ty.js → ripgrep-8wx9bhg6.js} +1 -1
- package/dist/chunks/{ripgrep-qcqpgb6f.js → ripgrep-91af422c.js} +15 -15
- package/dist/chunks/{ripgrep-v9ep9kw5.js → ripgrep-989d504g.js} +36 -36
- package/dist/chunks/{ripgrep-r4fw60a8.js → ripgrep-9ms3qzpy.js} +4 -4
- package/dist/chunks/{ripgrep-kmgpx441.js → ripgrep-9nhbmbq3.js} +9 -9
- package/dist/chunks/{ripgrep-fh3hfgk9.js → ripgrep-9xj3p3b6.js} +17 -17
- package/dist/chunks/{ripgrep-1vp80wqe.js → ripgrep-a0b0pnyt.js} +1 -1
- package/dist/chunks/{ripgrep-ye89p72n.js → ripgrep-a3w6cej7.js} +15 -15
- package/dist/chunks/{ripgrep-e2qvw7zx.js → ripgrep-abwmzdm0.js} +10 -10
- package/dist/chunks/{ripgrep-9vr292v9.js → ripgrep-agt495f3.js} +10 -10
- package/dist/chunks/{ripgrep-p2kzfj7d.js → ripgrep-avj6wgd7.js} +25 -25
- package/dist/chunks/{ripgrep-csqw7sk8.js → ripgrep-axkwkzd9.js} +11 -11
- package/dist/chunks/{ripgrep-8w0fc9v5.js → ripgrep-ayvmmyqf.js} +19 -19
- package/dist/chunks/{ripgrep-h0pyfwgt.js → ripgrep-b1hts85v.js} +22 -22
- package/dist/chunks/{ripgrep-gdbaa3vm.js → ripgrep-b7pfhk9a.js} +16 -16
- package/dist/chunks/{ripgrep-9f2mr1jq.js → ripgrep-bd8280h5.js} +17 -17
- package/dist/chunks/{ripgrep-4w1f8scj.js → ripgrep-bh4seszr.js} +30 -30
- package/dist/chunks/{ripgrep-hsmryvj1.js → ripgrep-bj5f8pf2.js} +4 -4
- package/dist/chunks/{ripgrep-wjr9rjd7.js → ripgrep-bjx1sjef.js} +4 -4
- package/dist/chunks/{ripgrep-gbqxypma.js → ripgrep-bmff2rpw.js} +24 -24
- package/dist/chunks/{ripgrep-e0b2kra3.js → ripgrep-bqwheb6v.js} +9 -9
- package/dist/chunks/{ripgrep-y24qngx4.js → ripgrep-c1kvbfjw.js} +12 -12
- package/dist/chunks/ripgrep-cb080mpn.js +26 -0
- package/dist/chunks/{ripgrep-xkajykm3.js → ripgrep-cph4sz5z.js} +11 -11
- package/dist/chunks/{ripgrep-5246atra.js → ripgrep-cvb5s8dx.js} +11 -11
- package/dist/chunks/{ripgrep-9cn598b5.js → ripgrep-cys88cvv.js} +5 -5
- package/dist/chunks/{ripgrep-ssc22y53.js → ripgrep-d3fk46xw.js} +28 -28
- package/dist/chunks/{ripgrep-abzgq1nw.js → ripgrep-d9ddtp67.js} +13 -13
- package/dist/chunks/{ripgrep-5rkje03p.js → ripgrep-dcf9rm2z.js} +5 -5
- package/dist/chunks/{ripgrep-b19v66bv.js → ripgrep-dfe61pt0.js} +41 -41
- package/dist/chunks/{ripgrep-dd2wt6q1.js → ripgrep-dgwfvztm.js} +17 -17
- package/dist/chunks/{ripgrep-xj1aydcy.js → ripgrep-dhb2hta4.js} +3 -3
- package/dist/chunks/{ripgrep-tfx4s5nm.js → ripgrep-dtt6326j.js} +7 -7
- package/dist/chunks/{ripgrep-hg8tkm75.js → ripgrep-e0d821cc.js} +6 -6
- package/dist/chunks/{ripgrep-7bjfyzh8.js → ripgrep-e1kmgh1g.js} +46 -46
- package/dist/chunks/{ripgrep-rncype5f.js → ripgrep-e225h40x.js} +17 -17
- package/dist/chunks/{ripgrep-7t3xedjm.js → ripgrep-e33zja9b.js} +33 -33
- package/dist/chunks/{ripgrep-enrp405z.js → ripgrep-edswj8x3.js} +17 -17
- package/dist/chunks/{ripgrep-bstm3mwn.js → ripgrep-eev4j3tf.js} +12 -12
- package/dist/chunks/{ripgrep-8vya4b9k.js → ripgrep-efw5yz4r.js} +43 -43
- package/dist/chunks/{ripgrep-c99e4gbg.js → ripgrep-eh2h7xf4.js} +15 -15
- package/dist/chunks/{ripgrep-zqecfbxk.js → ripgrep-eyakfeqd.js} +13 -13
- package/dist/chunks/{ripgrep-jszh17ab.js → ripgrep-f6egx6pd.js} +22 -22
- package/dist/chunks/{ripgrep-p8mhfpfb.js → ripgrep-fmcqyzhx.js} +7 -7
- package/dist/chunks/{ripgrep-t2fc4mz5.js → ripgrep-fqb2p7cx.js} +3 -3
- package/dist/chunks/{ripgrep-ff0c8932.js → ripgrep-fs83kz7m.js} +9 -9
- package/dist/chunks/{ripgrep-jp9kzq14.js → ripgrep-fxq1hvsx.js} +3 -3
- package/dist/chunks/{ripgrep-p42hj8p8.js → ripgrep-g0445xdp.js} +7 -7
- package/dist/chunks/{ripgrep-n8gj4qy5.js → ripgrep-g1962y70.js} +19 -19
- package/dist/chunks/{ripgrep-mg37qacw.js → ripgrep-g2kqvpw2.js} +19 -14
- package/dist/chunks/{ripgrep-y7nndgyc.js → ripgrep-g686f6pq.js} +7 -7
- package/dist/chunks/{ripgrep-w19xc5wf.js → ripgrep-g721rhm1.js} +18 -18
- package/dist/chunks/{ripgrep-b6rsy5zn.js → ripgrep-gd45gbwy.js} +15 -15
- package/dist/chunks/{ripgrep-9hwaqfsw.js → ripgrep-gj71zhbs.js} +3 -3
- package/dist/chunks/{ripgrep-yb81whfj.js → ripgrep-gjbmpe49.js} +30 -30
- package/dist/chunks/{ripgrep-vdxz864t.js → ripgrep-gk6en6xk.js} +35 -35
- package/dist/chunks/{ripgrep-868jxd9s.js → ripgrep-gw2dacjw.js} +27 -27
- package/dist/chunks/{ripgrep-y11negt3.js → ripgrep-h0qy9bnt.js} +5 -5
- package/dist/chunks/{ripgrep-qw7cqan8.js → ripgrep-h47csjds.js} +64 -64
- package/dist/chunks/{ripgrep-vdmef0hv.js → ripgrep-h6vdgmbd.js} +32 -32
- package/dist/chunks/{ripgrep-rjsqaxa7.js → ripgrep-hcv80w8f.js} +3 -3
- package/dist/chunks/{ripgrep-cne4vwe6.js → ripgrep-hd44qvhb.js} +14 -14
- package/dist/chunks/{ripgrep-bvkvrv05.js → ripgrep-hfj6ba10.js} +17 -17
- package/dist/chunks/{ripgrep-w1yzj816.js → ripgrep-hhvzr4qm.js} +21 -21
- package/dist/chunks/{ripgrep-df173w7t.js → ripgrep-hm49vy5t.js} +9 -9
- package/dist/chunks/{ripgrep-ms93yq6r.js → ripgrep-hpfvhvya.js} +7 -7
- package/dist/chunks/{ripgrep-khmqacep.js → ripgrep-hq3c8me3.js} +3 -3
- package/dist/chunks/{ripgrep-53tbswfk.js → ripgrep-hs6ysvtc.js} +32 -32
- package/dist/chunks/{ripgrep-897yn8js.js → ripgrep-htbjkf0w.js} +1 -1
- package/dist/chunks/{ripgrep-pev3esbk.js → ripgrep-hxsbxgw0.js} +34 -34
- package/dist/chunks/{ripgrep-4rb4nh12.js → ripgrep-j0pnngg3.js} +21 -21
- package/dist/chunks/{ripgrep-8xxtntea.js → ripgrep-j4axjra1.js} +9 -9
- package/dist/chunks/{ripgrep-dpf25vxh.js → ripgrep-jga877gc.js} +16 -16
- package/dist/chunks/{ripgrep-7v685v47.js → ripgrep-jqvncec7.js} +41 -41
- package/dist/chunks/{ripgrep-mr9jz2wx.js → ripgrep-jv8w58zf.js} +27 -27
- package/dist/chunks/{ripgrep-y0g19xg0.js → ripgrep-jx1ed50p.js} +45 -20
- package/dist/chunks/{ripgrep-wh5v440s.js → ripgrep-jyarf421.js} +4 -4
- package/dist/chunks/{ripgrep-7x97mf13.js → ripgrep-k7ct3b4w.js} +17 -17
- package/dist/chunks/{ripgrep-kpd84ec7.js → ripgrep-k8yk4ekq.js} +13 -13
- package/dist/chunks/{ripgrep-d9xyp96y.js → ripgrep-k9s1epkc.js} +7 -7
- package/dist/chunks/{ripgrep-zdxaswdy.js → ripgrep-k9tfrms9.js} +8 -8
- package/dist/chunks/{ripgrep-swz7b57b.js → ripgrep-kxpg0xct.js} +1 -1
- package/dist/chunks/{ripgrep-230q3gjt.js → ripgrep-kzrm98pv.js} +19 -19
- package/dist/chunks/{ripgrep-cw4w83nc.js → ripgrep-m1q28qka.js} +8 -8
- package/dist/chunks/{ripgrep-9ha6dkfn.js → ripgrep-mda08b8j.js} +9 -9
- package/dist/chunks/{ripgrep-k63sy5rb.js → ripgrep-mez1mdm0.js} +18 -18
- package/dist/chunks/{ripgrep-1gbrraea.js → ripgrep-mk60gw4q.js} +13 -13
- package/dist/chunks/{ripgrep-kax56nr6.js → ripgrep-mmjfp5s5.js} +10 -10
- package/dist/chunks/{ripgrep-m5jcjszt.js → ripgrep-my4zabxr.js} +3 -3
- package/dist/chunks/{ripgrep-gs3jaab1.js → ripgrep-n4h5z8fw.js} +21 -21
- package/dist/chunks/{ripgrep-vbc0n61v.js → ripgrep-nfj18b9m.js} +26 -26
- package/dist/chunks/{ripgrep-1sqf9bkf.js → ripgrep-ng3918dk.js} +4 -4
- package/dist/chunks/{ripgrep-2r6y34sj.js → ripgrep-nyg27w76.js} +2 -2
- package/dist/chunks/{ripgrep-dgzq35zb.js → ripgrep-p50c7myx.js} +1 -1
- package/dist/chunks/{ripgrep-1a2y92ex.js → ripgrep-pa098ddb.js} +42 -42
- package/dist/chunks/{ripgrep-pwt87mrq.js → ripgrep-pd1jyj3n.js} +14 -14
- package/dist/chunks/{ripgrep-v0ymv6m8.js → ripgrep-pkwzmj2h.js} +14 -14
- package/dist/chunks/{ripgrep-etg1n2kx.js → ripgrep-pnjc2gnv.js} +340 -334
- package/dist/chunks/{ripgrep-dadd6d4y.js → ripgrep-pq2gcbye.js} +18 -18
- package/dist/chunks/{ripgrep-bzywf3e9.js → ripgrep-prc3rt3m.js} +5 -5
- package/dist/chunks/{ripgrep-bydnjh3t.js → ripgrep-prq7hedt.js} +7 -7
- package/dist/chunks/{ripgrep-vrwbrhmt.js → ripgrep-prsxfqy1.js} +19 -19
- package/dist/chunks/{ripgrep-anw46eb6.js → ripgrep-pxnwhmcf.js} +6 -6
- package/dist/chunks/{ripgrep-7fkffz83.js → ripgrep-py3kkmfq.js} +3 -3
- package/dist/chunks/{ripgrep-kkve0fs6.js → ripgrep-pz39tkx9.js} +33 -33
- package/dist/chunks/{ripgrep-gyce5qg1.js → ripgrep-q509s3k3.js} +4 -4
- package/dist/chunks/{ripgrep-z96h84jq.js → ripgrep-q59jvvg4.js} +22 -22
- package/dist/chunks/{ripgrep-fnfphwr6.js → ripgrep-q9z8ctd8.js} +7 -7
- package/dist/chunks/{ripgrep-bq4j2sbx.js → ripgrep-qhdh8prp.js} +42 -42
- package/dist/chunks/{ripgrep-7em0bpab.js → ripgrep-qmm8f62j.js} +16 -16
- package/dist/chunks/{ripgrep-gs3s1a1g.js → ripgrep-qwjmgwmn.js} +7 -7
- package/dist/chunks/{ripgrep-e80seqcp.js → ripgrep-r2z489rp.js} +2 -2
- package/dist/chunks/{ripgrep-vhm2adcw.js → ripgrep-r565a100.js} +24 -24
- package/dist/chunks/{ripgrep-21sepexc.js → ripgrep-r8ay4eh8.js} +13 -13
- package/dist/chunks/{ripgrep-yn7c86qb.js → ripgrep-rbnhhjf8.js} +43 -43
- package/dist/chunks/{ripgrep-6t9ywwra.js → ripgrep-rbzr3q5g.js} +5 -5
- package/dist/chunks/{ripgrep-sqq24m9r.js → ripgrep-rf4xhyrq.js} +30 -30
- package/dist/chunks/{ripgrep-9wetr4xy.js → ripgrep-rfmtd9hm.js} +7 -7
- package/dist/chunks/{ripgrep-vbgdajqt.js → ripgrep-rpbyp8pn.js} +8 -8
- package/dist/chunks/{ripgrep-68w7pmtx.js → ripgrep-rqbrrxj6.js} +12 -12
- package/dist/chunks/{ripgrep-1xpgrxnn.js → ripgrep-rvn8t98y.js} +13 -13
- package/dist/chunks/{ripgrep-cv5sbdhn.js → ripgrep-rvnqf66d.js} +11 -11
- package/dist/chunks/{ripgrep-pazj47g9.js → ripgrep-s7158cf1.js} +4 -4
- package/dist/chunks/{ripgrep-hcwzd9ve.js → ripgrep-s7pm50yw.js} +4 -4
- package/dist/chunks/{ripgrep-rhjbct0v.js → ripgrep-s8d7rejh.js} +3 -3
- package/dist/chunks/{ripgrep-tkmw8vhp.js → ripgrep-s96dfbc8.js} +16 -16
- package/dist/chunks/{ripgrep-ycn2m60h.js → ripgrep-s9x4dfc6.js} +12 -12
- package/dist/chunks/{ripgrep-ppdavc1e.js → ripgrep-sjxt2y8n.js} +183 -183
- package/dist/chunks/{ripgrep-vnwvh6x6.js → ripgrep-skxfb30d.js} +25 -25
- package/dist/chunks/{ripgrep-6ehbgqat.js → ripgrep-sxzvkvgj.js} +5 -5
- package/dist/chunks/{ripgrep-33m7zff6.js → ripgrep-szj64q0v.js} +4 -4
- package/dist/chunks/{ripgrep-89znhe33.js → ripgrep-tcezcvh9.js} +3 -3
- package/dist/chunks/{ripgrep-dq407baf.js → ripgrep-tt8gc4fv.js} +3 -3
- package/dist/chunks/{ripgrep-pmpk6q9r.js → ripgrep-tz783a2y.js} +10 -10
- package/dist/chunks/{ripgrep-dx1ezjzk.js → ripgrep-v8351vk8.js} +5 -5
- package/dist/chunks/{ripgrep-y6mhz57t.js → ripgrep-vbfgae2j.js} +3 -3
- package/dist/chunks/{ripgrep-xb6ffzw0.js → ripgrep-vbnktpmr.js} +8 -8
- package/dist/chunks/{ripgrep-tdqqk9tn.js → ripgrep-vc4gp4va.js} +18 -18
- package/dist/chunks/{ripgrep-bfrs3k34.js → ripgrep-w7jyze1k.js} +1 -1
- package/dist/chunks/{ripgrep-f34pdxph.js → ripgrep-w8tjtray.js} +91 -37
- package/dist/chunks/{ripgrep-4bh89e3b.js → ripgrep-waskajng.js} +4 -4
- package/dist/chunks/{ripgrep-hfrgt7j1.js → ripgrep-wqgd9sqk.js} +11 -11
- package/dist/chunks/{ripgrep-4d2gzzb2.js → ripgrep-wthbqfdd.js} +2 -2
- package/dist/chunks/{ripgrep-addxnjmp.js → ripgrep-x661k3y3.js} +3 -3
- package/dist/chunks/{ripgrep-y6jtz2hz.js → ripgrep-x831e2b7.js} +14 -14
- package/dist/chunks/{ripgrep-stw0ktd7.js → ripgrep-x83knd5j.js} +2 -2
- package/dist/chunks/{ripgrep-07n27ccy.js → ripgrep-xc4hpcyp.js} +20 -20
- package/dist/chunks/{ripgrep-qqeeq2t9.js → ripgrep-xfkkasph.js} +6 -6
- package/dist/chunks/{ripgrep-jwpb8arh.js → ripgrep-xg2cxak3.js} +13 -13
- package/dist/chunks/{ripgrep-5tw2jtmr.js → ripgrep-xh90p7br.js} +13 -13
- package/dist/chunks/{ripgrep-7vyf5e2n.js → ripgrep-xk3573b9.js} +30 -30
- package/dist/chunks/{ripgrep-zh2s0dj1.js → ripgrep-y2w3p8tb.js} +12 -12
- package/dist/chunks/{ripgrep-hdavf2z4.js → ripgrep-ye7bjynm.js} +7 -7
- package/dist/chunks/{ripgrep-mktar7aj.js → ripgrep-yj7k2rcj.js} +1 -1
- package/dist/chunks/{ripgrep-245v63zg.js → ripgrep-ykpagz71.js} +9 -9
- package/dist/chunks/{ripgrep-dd35sy3n.js → ripgrep-yn91e0pt.js} +1 -1
- package/dist/chunks/{ripgrep-vr617c86.js → ripgrep-yrwfzynx.js} +80 -80
- package/dist/chunks/{ripgrep-hmgps8tw.js → ripgrep-ywrpet35.js} +28 -28
- package/dist/chunks/{ripgrep-yav0wb01.js → ripgrep-z1ggpzpx.js} +5 -5
- package/dist/chunks/{ripgrep-rn08qtw3.js → ripgrep-z55zg8mm.js} +14 -14
- package/dist/chunks/{ripgrep-spcybxfk.js → ripgrep-z7669q6a.js} +4 -4
- package/dist/chunks/{ripgrep-28k0q56j.js → ripgrep-zky955f5.js} +14 -14
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +64 -64
- package/dist/config/discovery.js +66 -66
- package/dist/config/normalize.js +78 -78
- package/dist/config/plugin/agent.js +92 -92
- package/dist/config/plugin/command.js +175 -175
- package/dist/config/plugin/compaction.js +121 -121
- package/dist/config/plugin/compatibility.js +108 -108
- package/dist/config/plugin/formatter.js +91 -91
- package/dist/config/plugin/image.js +90 -90
- package/dist/config/plugin/instruction.js +91 -91
- package/dist/config/plugin/location-watcher.js +90 -90
- package/dist/config/plugin/mcp.js +97 -97
- package/dist/config/plugin/policy.js +91 -91
- package/dist/config/plugin/provider.js +90 -90
- package/dist/config/plugin/reference.js +92 -92
- package/dist/config/plugin/shell.js +92 -92
- package/dist/config/plugin/skill-file.js +81 -81
- package/dist/config/plugin/skill.js +111 -111
- package/dist/config/plugin/snapshot.js +90 -90
- package/dist/config/plugin/source.js +93 -93
- package/dist/config/plugin/tool-output.js +91 -91
- package/dist/config/plugin/websearch.js +91 -91
- package/dist/config/plugin/worktree.js +92 -92
- package/dist/config.js +96 -96
- package/dist/credential.js +66 -66
- package/dist/database/database.js +53 -53
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +42 -42
- package/dist/database/migration.js +44 -44
- package/dist/database/v1-migration.bun.js +11 -11
- package/dist/effect/app-node-builder.js +238 -238
- package/dist/environment/environment.js +70 -70
- package/dist/environment/index.js +70 -70
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +84 -84
- package/dist/file-mutation.js +71 -71
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +187 -187
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +79 -79
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +80 -80
- package/dist/form.js +65 -65
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +69 -69
- package/dist/generate.js +82 -82
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +80 -80
- package/dist/github-copilot/responses/openai-responses-language-model.js +5 -5
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +2 -2
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +314 -314
- package/dist/instruction-discovery.js +69 -69
- package/dist/instructions/builtins.js +69 -69
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +70 -70
- package/dist/job.js +63 -63
- package/dist/kv.js +58 -58
- package/dist/location-activity.js +72 -72
- package/dist/location-lifecycle.js +87 -87
- package/dist/location-service-map.js +68 -68
- package/dist/location-services.js +312 -312
- package/dist/location.js +69 -69
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +83 -83
- package/dist/mcp/instructions.js +106 -106
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +67 -67
- package/dist/modal/models.js +80 -80
- package/dist/model-resolver.js +79 -79
- package/dist/model.js +79 -79
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +71 -71
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +89 -89
- package/dist/persistent-pty/index.js +73 -73
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +61 -61
- package/dist/plugin/command.js +78 -78
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +180 -180
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +286 -285
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +91 -91
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +82 -82
- package/dist/plugin/provider/amazon-bedrock.js +71 -71
- package/dist/plugin/provider/azure.js +91 -91
- package/dist/plugin/provider/chatgpt.js +89 -89
- package/dist/plugin/provider/cloudflare-ai-gateway.js +88 -88
- package/dist/plugin/provider/cloudflare-workers-ai.js +88 -88
- package/dist/plugin/provider/configured.js +87 -87
- package/dist/plugin/provider/digitalocean.js +73 -73
- package/dist/plugin/provider/github-copilot.js +75 -75
- package/dist/plugin/provider/gitlab.js +73 -73
- package/dist/plugin/provider/google-vertex.js +88 -88
- package/dist/plugin/provider/llmgateway.js +61 -61
- package/dist/plugin/provider/lmstudio.js +97 -97
- package/dist/plugin/provider/local.js +94 -94
- package/dist/plugin/provider/modal.js +73 -73
- package/dist/plugin/provider/ollama.js +97 -97
- package/dist/plugin/provider/openai.js +89 -89
- package/dist/plugin/provider/opencode.js +81 -78
- package/dist/plugin/provider/openrouter.js +72 -72
- package/dist/plugin/provider/poe.js +61 -61
- package/dist/plugin/provider/sap-ai-core.js +71 -71
- package/dist/plugin/provider/snowflake-cortex.js +89 -89
- package/dist/plugin/provider/vercel.js +71 -71
- package/dist/plugin/provider/vllm.js +97 -97
- package/dist/plugin/provider/xai.js +72 -72
- package/dist/plugin/provider.js +133 -130
- package/dist/plugin/sdk.js +61 -61
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +109 -109
- package/dist/plugin/supervisor.js +305 -304
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +68 -68
- package/dist/plugin/vcs/hg.js +68 -68
- package/dist/plugin/verbosity.js +74 -74
- package/dist/plugin/warming.js +89 -89
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +7 -7
- package/dist/plugin.js +186 -186
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +70 -70
- package/dist/provider.js +78 -78
- package/dist/pty.js +80 -80
- package/dist/reference/instructions.js +70 -70
- package/dist/reference.js +72 -72
- package/dist/repository-cache.js +63 -63
- package/dist/ripgrep.js +71 -71
- package/dist/rpc.js +68 -68
- package/dist/session/command.js +59 -59
- package/dist/session/compaction.js +106 -106
- package/dist/session/context.js +129 -129
- package/dist/session/diff.js +69 -69
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +2 -2
- package/dist/session/execution/restart.js +117 -117
- package/dist/session/execution.js +106 -106
- package/dist/session/generate.js +128 -128
- package/dist/session/history.js +9 -9
- package/dist/session/inbox.js +72 -72
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +64 -64
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +77 -77
- package/dist/session/model-request.js +94 -94
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +106 -106
- package/dist/session/projector.js +68 -68
- package/dist/session/prompt.js +85 -85
- package/dist/session/revert.js +74 -74
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +190 -190
- package/dist/session/runner/model.js +79 -79
- package/dist/session/runner/publish-llm-event.js +91 -91
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +100 -100
- package/dist/session/runner/to-llm-message.js +10 -10
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +133 -133
- package/dist/session/shell.js +101 -101
- package/dist/session/skill.js +83 -83
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +70 -70
- package/dist/session/subagent-job.js +173 -173
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +132 -132
- package/dist/session/to-session-error.js +90 -90
- package/dist/session/transfer.js +114 -114
- package/dist/session.js +177 -177
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +104 -104
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +85 -85
- package/dist/skill.js +94 -94
- package/dist/snapshot.js +73 -73
- package/dist/tool/mcp.js +107 -107
- package/dist/tool/plugin/edit.js +94 -94
- package/dist/tool/plugin/glob.js +98 -98
- package/dist/tool/plugin/grep.js +98 -98
- package/dist/tool/plugin/mcp-resource.js +97 -97
- package/dist/tool/plugin/opencode.js +87 -87
- package/dist/tool/plugin/patch.js +96 -96
- package/dist/tool/plugin/question.js +85 -85
- package/dist/tool/plugin/read.js +99 -99
- package/dist/tool/plugin/shell.js +179 -179
- package/dist/tool/plugin/skill.js +87 -87
- package/dist/tool/plugin/subagent.js +180 -180
- package/dist/tool/plugin/todo.js +112 -112
- package/dist/tool/plugin/webfetch.js +90 -90
- package/dist/tool/plugin/websearch.js +94 -94
- package/dist/tool/plugin/write.js +96 -96
- package/dist/tool/read-filesystem.js +78 -78
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/types/plugin/internal.d.ts +3 -2
- package/dist/types/plugin/provider/opencode.d.ts +2 -1
- package/dist/types/voice.d.ts +30 -1
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +72 -72
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +74 -74
- package/dist/vcs.js +71 -71
- package/dist/voice.js +67 -67
- package/dist/websearch.js +67 -67
- package/dist/wellknown/plugin.js +57 -57
- package/dist/wellknown.js +62 -62
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +63 -63
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +70 -70
- package/dist/worktree.js +78 -78
- package/package.json +8 -8
- package/dist/chunks/ripgrep-g32r42h9.js +0 -257
- package/dist/chunks/ripgrep-t23bw0vy.js +0 -26
- /package/dist/chunks/{ripgrep-t1qm87d4.js → ripgrep-14w7p54a.js} +0 -0
- /package/dist/chunks/{ripgrep-jwv7ab79.js → ripgrep-3mkjzvwp.js} +0 -0
- /package/dist/chunks/{ripgrep-034tev2y.js → ripgrep-aj7mw0zk.js} +0 -0
- /package/dist/chunks/{ripgrep-1nwxscpy.js → ripgrep-x6pyv2yz.js} +0 -0
- /package/dist/chunks/{ripgrep-906y5cdw.js → ripgrep-yrbjxrxk.js} +0 -0
|
@@ -3,24 +3,24 @@ import {
|
|
|
3
3
|
} from "./ripgrep-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./ripgrep-
|
|
6
|
+
Service55
|
|
7
|
+
} from "./ripgrep-rbnhhjf8.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
10
|
} from "./ripgrep-hgz4x7wa.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./ripgrep-
|
|
12
|
+
Service65
|
|
13
|
+
} from "./ripgrep-57pprckc.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./ripgrep-
|
|
15
|
+
Service46
|
|
16
|
+
} from "./ripgrep-z55zg8mm.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./ripgrep-
|
|
18
|
+
Service68
|
|
19
|
+
} from "./ripgrep-50ttpepc.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service14,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./ripgrep-
|
|
23
|
+
} from "./ripgrep-b7pfhk9a.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
@@ -28,36 +28,36 @@ import {
|
|
|
28
28
|
notification2
|
|
29
29
|
} from "./ripgrep-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service60,
|
|
32
32
|
name16
|
|
33
|
-
} from "./ripgrep-
|
|
33
|
+
} from "./ripgrep-qmm8f62j.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./ripgrep-
|
|
35
|
+
NotFoundError6,
|
|
36
|
+
Service53
|
|
37
|
+
} from "./ripgrep-2wvr9kck.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./ripgrep-
|
|
39
|
+
Service20
|
|
40
|
+
} from "./ripgrep-6s32m78n.js";
|
|
41
41
|
import {
|
|
42
42
|
scan3
|
|
43
|
-
} from "./ripgrep-
|
|
43
|
+
} from "./ripgrep-a0b0pnyt.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
46
|
} from "./ripgrep-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell = {};
|
|
50
|
+
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input11,
|
|
53
|
+
Plugin: () => Plugin28,
|
|
54
|
+
ShellTool: () => exports_shell,
|
|
55
|
+
name: () => name11
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
59
|
import { shellParserWasm } from "#shell-parser-wasm";
|
|
60
|
-
var
|
|
60
|
+
var name11 = "shell";
|
|
61
61
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
62
62
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
63
63
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -71,7 +71,7 @@ var description = (shell) => [
|
|
|
71
71
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
72
72
|
"Background commands return immediately, and you will be notified when they complete."
|
|
73
73
|
].join(" ");
|
|
74
|
-
var
|
|
74
|
+
var Input11 = Schema.Struct({
|
|
75
75
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
76
76
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
77
77
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -117,19 +117,19 @@ Output is streaming to: ${file}`,
|
|
|
117
117
|
truncated: false,
|
|
118
118
|
status: "running"
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Plugin28 = {
|
|
121
121
|
id: "opencode.tool.shell",
|
|
122
122
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
123
|
-
const sessions = yield*
|
|
124
|
-
const jobs = yield*
|
|
123
|
+
const sessions = yield* Service20;
|
|
124
|
+
const jobs = yield* Service46;
|
|
125
125
|
const scope = yield* Scope.Scope;
|
|
126
|
-
const environment = yield*
|
|
127
|
-
const access = yield*
|
|
128
|
-
const shell = yield*
|
|
129
|
-
const shellSelect = yield*
|
|
126
|
+
const environment = yield* Service65;
|
|
127
|
+
const access = yield* Service14;
|
|
128
|
+
const shell = yield* Service53;
|
|
129
|
+
const shellSelect = yield* Service60;
|
|
130
130
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
131
|
-
const permission = yield*
|
|
132
|
-
const config = yield*
|
|
131
|
+
const permission = yield* Service68;
|
|
132
|
+
const config = yield* Service55;
|
|
133
133
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
134
134
|
const source = {
|
|
135
135
|
type: "tool",
|
|
@@ -148,7 +148,7 @@ var Plugin38 = {
|
|
|
148
148
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
149
149
|
if (parsed.commands.length > 0)
|
|
150
150
|
yield* permission.assert({
|
|
151
|
-
action:
|
|
151
|
+
action: name11,
|
|
152
152
|
resources: parsed.commands.map((command) => command.resource),
|
|
153
153
|
save: parsed.commands.map((command) => command.save),
|
|
154
154
|
sessionID: context.sessionID,
|
|
@@ -185,10 +185,10 @@ var Plugin38 = {
|
|
|
185
185
|
yield* jobs.completeBackground(info.notificationID);
|
|
186
186
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
187
187
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
188
|
-
name:
|
|
188
|
+
name: name11,
|
|
189
189
|
options: { codemode: false },
|
|
190
190
|
description: description(),
|
|
191
|
-
input:
|
|
191
|
+
input: Input11,
|
|
192
192
|
output: Output,
|
|
193
193
|
execute: (input, context) => Effect.gen(function* () {
|
|
194
194
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -211,7 +211,7 @@ var Plugin38 = {
|
|
|
211
211
|
const run = Effect.gen(function* () {
|
|
212
212
|
const result = yield* shell.result(info);
|
|
213
213
|
if (!result.capture)
|
|
214
|
-
return yield* new
|
|
214
|
+
return yield* new NotFoundError6({ id: info.id });
|
|
215
215
|
const output = output2(result);
|
|
216
216
|
return {
|
|
217
217
|
...output,
|
|
@@ -225,7 +225,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
225
225
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
226
226
|
const job = yield* jobs.start({
|
|
227
227
|
id: info.id,
|
|
228
|
-
type:
|
|
228
|
+
type: name11,
|
|
229
229
|
title: info.command,
|
|
230
230
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
231
231
|
recovery: {
|
|
@@ -255,7 +255,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
255
255
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
256
256
|
})).pipe(Effect.orDie);
|
|
257
257
|
const hook = (event) => Effect.gen(function* () {
|
|
258
|
-
const tool = event.tools[
|
|
258
|
+
const tool = event.tools[name11];
|
|
259
259
|
if (!tool)
|
|
260
260
|
return;
|
|
261
261
|
tool.description = description(name16(yield* compatibleShell));
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export {
|
|
269
|
+
export { name11, DEFAULT_TIMEOUT_MS2, Input11, Plugin28, exports_shell };
|
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
|
-
Options: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Options: () => Options10,
|
|
15
|
+
Service: () => Service60,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured10,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
21
|
list: () => list4,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name16,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node63,
|
|
25
25
|
ps: () => ps2,
|
|
26
|
-
resolve: () =>
|
|
26
|
+
resolve: () => resolve4
|
|
27
27
|
});
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { readFile } from "fs/promises";
|
|
@@ -43,11 +43,11 @@ var META = {
|
|
|
43
43
|
sh: { login: true },
|
|
44
44
|
zsh: { login: true }
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var Options10 = Schema.Struct({
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service60 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
|
|
|
164
164
|
}
|
|
165
165
|
var defaultConfigured;
|
|
166
166
|
var defaultCompatible;
|
|
167
|
-
function
|
|
167
|
+
function resolve4(input, configShell, options, bin) {
|
|
168
168
|
const filter = input.priority === "compat" ? { compatible: true } : undefined;
|
|
169
169
|
if (configShell)
|
|
170
170
|
return select(configShell, options, filter, bin);
|
|
@@ -180,7 +180,7 @@ function resolve3(input, configShell, options, bin) {
|
|
|
180
180
|
defaultConfigured = { bin, value };
|
|
181
181
|
return value;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
resolve4.reset = () => {
|
|
184
184
|
defaultConfigured = undefined;
|
|
185
185
|
defaultCompatible = undefined;
|
|
186
186
|
};
|
|
@@ -188,7 +188,7 @@ async function list4(options, bin) {
|
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service60, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service73, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service60.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
|
-
resolve: (input) => Effect.sync(() =>
|
|
205
|
+
resolve: (input) => Effect.sync(() => resolve4(input, state.get().shell, options, global.bin)),
|
|
206
206
|
list: () => Effect.promise(() => list4(options, global.bin))
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
return makeLocationNode({ service:
|
|
209
|
+
function configured10(options) {
|
|
210
|
+
return makeLocationNode({ service: Service60, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node63 = configured10();
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Options10, Service60, gitbash2, name16, login2, ps2, args2, environment2, resolve4, list4, configured10, node63, exports_select };
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
var exports_hooks = {};
|
|
7
7
|
__export(exports_hooks, {
|
|
8
8
|
PluginHooks: () => exports_hooks,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service71,
|
|
10
|
+
node: () => node75
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service71 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service69, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service71.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var
|
|
59
|
+
var node75 = makeLocationNode({ service: Service71, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service71, node75, exports_hooks };
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/formatter/builtins.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
7
7
|
import { ChildProcess } from "effect/process";
|
|
8
|
-
function
|
|
8
|
+
function make9(input) {
|
|
9
9
|
const disabled = false;
|
|
10
10
|
const findExecutable = (name) => which2(name, undefined, input.bin);
|
|
11
11
|
const findUp = (target) => input.fs.findUp(target, input.directory, input.worktree);
|
|
@@ -261,4 +261,4 @@ function isRecord(input) {
|
|
|
261
261
|
return Boolean(input && typeof input === "object" && !Array.isArray(input));
|
|
262
262
|
}
|
|
263
263
|
|
|
264
|
-
export {
|
|
264
|
+
export { make9 };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./ripgrep-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./ripgrep-
|
|
5
|
+
Service80
|
|
6
|
+
} from "./ripgrep-a3w6cej7.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./ripgrep-
|
|
8
|
+
Service14
|
|
9
|
+
} from "./ripgrep-b7pfhk9a.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./ripgrep-
|
|
11
|
+
Service6
|
|
12
|
+
} from "./ripgrep-1zd1rgqx.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound3
|
|
15
15
|
} from "./ripgrep-hgz4x7wa.js";
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./ripgrep-
|
|
26
|
+
Service28
|
|
27
|
+
} from "./ripgrep-g721rhm1.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./ripgrep-9rqn6x4v.js";
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input4,
|
|
36
|
+
Plugin: () => Plugin20,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name4,
|
|
39
|
+
toModelContent: () => toModelContent3
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name4 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to and capped at 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input4 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin20 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service28;
|
|
62
|
+
const access = yield* Service14;
|
|
63
|
+
const sessionInstructions = yield* Service6;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service80;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name4,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input4,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -113,7 +113,7 @@ var Plugin42 = {
|
|
|
113
113
|
return { output: result.content, path: result.path };
|
|
114
114
|
}).pipe(Effect.map((result) => ({
|
|
115
115
|
output: result.output,
|
|
116
|
-
content:
|
|
116
|
+
content: toModelContent3(result.path, input.offset, result.output),
|
|
117
117
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
118
118
|
})), Effect.mapError((error) => {
|
|
119
119
|
if (error instanceof ToolFailure)
|
|
@@ -146,7 +146,7 @@ ${suggestions.join(`
|
|
|
146
146
|
});
|
|
147
147
|
})
|
|
148
148
|
};
|
|
149
|
-
var
|
|
149
|
+
var toModelContent3 = (path, offset, output) => {
|
|
150
150
|
if (output.type === "file" && output.encoding === "base64")
|
|
151
151
|
return [
|
|
152
152
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -182,4 +182,4 @@ var toModelContent5 = (path, offset, output) => {
|
|
|
182
182
|
`);
|
|
183
183
|
};
|
|
184
184
|
|
|
185
|
-
export {
|
|
185
|
+
export { name4, Input4, Plugin20, toModelContent3, exports_read };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./ripgrep-
|
|
3
|
+
} from "./ripgrep-8wx9bhg6.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./ripgrep-
|
|
5
|
+
Service80
|
|
6
|
+
} from "./ripgrep-a3w6cej7.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./ripgrep-
|
|
9
|
+
Service31
|
|
10
|
+
} from "./ripgrep-e1kmgh1g.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./ripgrep-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
CommandPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_command = {};
|
|
17
|
+
__export(exports_command, {
|
|
18
|
+
CommandPlugin: () => exports_command,
|
|
19
|
+
Plugin: () => Plugin9
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,11 +193,11 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin9 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
200
|
-
const mcp = yield*
|
|
199
|
+
const location = yield* Service80;
|
|
200
|
+
const mcp = yield* Service31;
|
|
201
201
|
const bus = yield* Service85;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin9, exports_command };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./ripgrep-
|
|
4
|
+
} from "./ripgrep-8wx9bhg6.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./ripgrep-
|
|
6
|
+
Event19,
|
|
7
|
+
Service79,
|
|
8
|
+
node83
|
|
9
|
+
} from "./ripgrep-8eadsrjy.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./ripgrep-
|
|
11
|
+
Service56,
|
|
12
|
+
node59
|
|
13
|
+
} from "./ripgrep-7jxgd9ay.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
16
|
} from "./ripgrep-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./ripgrep-
|
|
18
|
+
Service80,
|
|
19
|
+
node84
|
|
20
|
+
} from "./ripgrep-a3w6cej7.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
23
|
} from "./ripgrep-kwb1v3vj.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./ripgrep-
|
|
26
|
+
} from "./ripgrep-gd45gbwy.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
28
|
+
names4,
|
|
29
29
|
stripPreferenceMetadata2,
|
|
30
30
|
discover3
|
|
31
|
-
} from "./ripgrep-
|
|
31
|
+
} from "./ripgrep-rpbyp8pn.js";
|
|
32
32
|
import {
|
|
33
33
|
plan2
|
|
34
34
|
} from "./ripgrep-6827pfxn.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
36
|
+
Service57,
|
|
37
37
|
Event10,
|
|
38
|
-
|
|
39
|
-
} from "./ripgrep-
|
|
38
|
+
node60
|
|
39
|
+
} from "./ripgrep-hd44qvhb.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
42
|
} from "./ripgrep-9rqn6x4v.js";
|
|
@@ -45,13 +45,13 @@ import {
|
|
|
45
45
|
var exports_config = {};
|
|
46
46
|
__export(exports_config, {
|
|
47
47
|
Config: () => exports_config,
|
|
48
|
-
Options: () =>
|
|
49
|
-
Service: () =>
|
|
48
|
+
Options: () => Options7,
|
|
49
|
+
Service: () => Service55,
|
|
50
50
|
Test: () => Test2,
|
|
51
|
-
configured: () =>
|
|
51
|
+
configured: () => configured8,
|
|
52
52
|
latest: () => latest2,
|
|
53
|
-
layer: () =>
|
|
54
|
-
node: () =>
|
|
53
|
+
layer: () => layer24,
|
|
54
|
+
node: () => node58,
|
|
55
55
|
testLayer: () => testLayer2
|
|
56
56
|
});
|
|
57
57
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -67,7 +67,7 @@ import { ChildProcess } from "effect/process";
|
|
|
67
67
|
function latest2(entries, key) {
|
|
68
68
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var Options7 = Schema.Struct({
|
|
71
71
|
project: Schema.optional(Schema.Boolean),
|
|
72
72
|
global: Schema.optional(Schema.Boolean),
|
|
73
73
|
system: Schema.optional(Schema.Union([Schema.Boolean, Schema.String])),
|
|
@@ -76,7 +76,7 @@ var Options4 = Schema.Struct({
|
|
|
76
76
|
content: Schema.optional(Schema.String)
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service55 extends Context.Service()("@opencode/Config") {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -94,16 +94,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
94
94
|
setEntries: (next) => Ref.set(entries, next),
|
|
95
95
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
96
96
|
});
|
|
97
|
-
return Context.empty().pipe(Context.add(
|
|
97
|
+
return Context.empty().pipe(Context.add(Service55, service), Context.add(Test2, service));
|
|
98
98
|
}));
|
|
99
|
-
var
|
|
99
|
+
var layer24 = (options) => Layer.effect(Service55, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
|
-
const location = yield*
|
|
102
|
-
const watcher = yield*
|
|
101
|
+
const location = yield* Service80;
|
|
102
|
+
const watcher = yield* Service56;
|
|
103
103
|
const bus = yield* Service85;
|
|
104
|
-
const credentials = yield*
|
|
104
|
+
const credentials = yield* Service79;
|
|
105
105
|
const globalService = yield* Global.Service;
|
|
106
|
-
const wellknown = yield*
|
|
106
|
+
const wellknown = yield* Service57;
|
|
107
107
|
const processes = yield* AppProcess.Service;
|
|
108
108
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
109
109
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
@@ -186,7 +186,7 @@ var layer21 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
const loadDirectory = Effect.fnUntraced(function* (directory) {
|
|
188
188
|
return [
|
|
189
|
-
...yield* Effect.forEach(
|
|
189
|
+
...yield* Effect.forEach(names4, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
|
|
190
190
|
new Directory({ type: "directory", path: directory })
|
|
191
191
|
];
|
|
192
192
|
});
|
|
@@ -254,7 +254,7 @@ var layer21 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
|
254
254
|
}, (effect) => reloadLock.withPermit(effect));
|
|
255
255
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
256
256
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
257
|
-
yield* bus.subscribe(
|
|
257
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
258
258
|
yield* bus.subscribe(Event10.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
259
259
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
260
260
|
if (!wellknown.snapshot().length)
|
|
@@ -268,7 +268,7 @@ var layer21 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
|
268
268
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
269
269
|
const update = Effect.fn("Config.update")(function* (patch) {
|
|
270
270
|
const directory = initial.global ?? AbsolutePath2.make(globalService.config);
|
|
271
|
-
const candidates =
|
|
271
|
+
const candidates = names4.map((name) => path.join(directory, name));
|
|
272
272
|
const filepath = (yield* Effect.filter(candidates, fs.isFile)).at(-1) ?? path.join(directory, "opencode.jsonc");
|
|
273
273
|
const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
|
|
274
274
|
`;
|
|
@@ -283,7 +283,7 @@ var layer21 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
|
283
283
|
`);
|
|
284
284
|
yield* requestReload;
|
|
285
285
|
}, (effect) => updateLock.withPermit(effect));
|
|
286
|
-
return
|
|
286
|
+
return Service55.of({
|
|
287
287
|
entries: Effect.fnUntraced(function* () {
|
|
288
288
|
return configs;
|
|
289
289
|
}),
|
|
@@ -295,22 +295,22 @@ var layer21 = (options) => Layer.effect(Service46, Effect.gen(function* () {
|
|
|
295
295
|
update
|
|
296
296
|
});
|
|
297
297
|
}));
|
|
298
|
-
function
|
|
298
|
+
function configured8(options) {
|
|
299
299
|
return makeLocationNode({
|
|
300
|
-
service:
|
|
301
|
-
layer:
|
|
300
|
+
service: Service55,
|
|
301
|
+
layer: layer24(options),
|
|
302
302
|
deps: [
|
|
303
|
-
|
|
303
|
+
node59,
|
|
304
304
|
node89,
|
|
305
305
|
FSUtil.node,
|
|
306
306
|
Global.node,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
307
|
+
node84,
|
|
308
|
+
node83,
|
|
309
|
+
node60,
|
|
310
310
|
AppProcess.node
|
|
311
311
|
]
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var node58 = configured8();
|
|
315
315
|
|
|
316
|
-
export { latest2,
|
|
316
|
+
export { latest2, Options7, Service55, Test2, testLayer2, layer24, configured8, node58, exports_config };
|