@opencode/core 0.0.0-dev-20654 → 0.0.0-dev-20655
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 +63 -63
- package/dist/aisdk.js +68 -68
- package/dist/app.js +9 -9
- package/dist/bus.js +52 -52
- package/dist/chunks/{app-4tp5hkr9.js → app-04e56h6g.js} +19 -19
- package/dist/chunks/{app-7ht5hy0j.js → app-04jg6nm3.js} +18 -18
- package/dist/chunks/{app-5p8ngbgk.js → app-0c8a6nan.js} +86 -86
- package/dist/chunks/{app-bha5yh8f.js → app-0ejp3s31.js} +13 -13
- package/dist/chunks/{app-q0xm7vwc.js → app-0j77ygfz.js} +4 -4
- package/dist/chunks/{app-sw35smzz.js → app-0p3t72g7.js} +11 -11
- package/dist/chunks/{app-vqmv0wny.js → app-0xymhvjv.js} +15 -15
- package/dist/chunks/{app-rm6wvaj8.js → app-16bxftmt.js} +16 -16
- package/dist/chunks/{app-r8xr0va3.js → app-1acjjqhc.js} +3 -3
- package/dist/chunks/{app-d2czbp48.js → app-1b4m0bzf.js} +3 -3
- package/dist/chunks/{app-jhdanssh.js → app-1fe3twba.js} +34 -34
- package/dist/chunks/{app-e1as76v8.js → app-1gh24mt2.js} +36 -36
- package/dist/chunks/{app-x1w9s84m.js → app-1h0m70r1.js} +22 -22
- package/dist/chunks/{app-h3d1wmv7.js → app-1jksvqp2.js} +23 -23
- package/dist/chunks/{app-5nvyfvs2.js → app-1m23n1zc.js} +10 -10
- package/dist/chunks/{app-qk10qjqd.js → app-1mkt64e2.js} +3 -3
- package/dist/chunks/{app-dzw83ac5.js → app-1rh4yqvv.js} +7 -7
- package/dist/chunks/{app-kgdwkpsf.js → app-20k6bs8s.js} +9 -9
- package/dist/chunks/{app-0zyqvhq9.js → app-20y2srhq.js} +7 -7
- package/dist/chunks/{app-5fnmkqwj.js → app-242d3xz3.js} +6 -6
- package/dist/chunks/{app-r2ens31f.js → app-29fgs7mf.js} +28 -28
- package/dist/chunks/{app-nx45m9pa.js → app-2awzhxm4.js} +9 -9
- package/dist/chunks/{app-4ts7tf6z.js → app-2ccvkpx1.js} +1 -1
- package/dist/chunks/{app-3jrsp1yh.js → app-2dcxqaf0.js} +20 -20
- package/dist/chunks/{app-6r04yh88.js → app-2h8kq5g8.js} +2 -2
- package/dist/chunks/{app-cavr175a.js → app-2pnhn36q.js} +20 -20
- package/dist/chunks/{app-qmqgtz8f.js → app-2sejkfem.js} +7 -7
- package/dist/chunks/{app-yxmqamfs.js → app-301dthfh.js} +21 -21
- package/dist/chunks/{app-a4ae1mqs.js → app-325sge2s.js} +1 -1
- package/dist/chunks/{app-5ntmp6zc.js → app-3322t3cd.js} +21 -21
- package/dist/chunks/{app-j6z9wjgn.js → app-35bmy1pq.js} +18 -18
- package/dist/chunks/{app-vd3r3z5p.js → app-3p3qdx74.js} +1 -1
- package/dist/chunks/{app-6cz210g8.js → app-3pshrbxs.js} +6 -6
- package/dist/chunks/{app-3fxa2vs0.js → app-45p1457d.js} +39 -39
- package/dist/chunks/{app-m500pqbj.js → app-4ayp82yx.js} +145 -145
- package/dist/chunks/{app-01b47qtp.js → app-4b3qsvz5.js} +10 -10
- package/dist/chunks/{app-b2ckxg46.js → app-4dhf6qr5.js} +14 -14
- package/dist/chunks/{app-a19614zv.js → app-4ghyx0ra.js} +13 -13
- package/dist/chunks/{app-pec8ewpc.js → app-4k4xw99j.js} +10 -10
- package/dist/chunks/{app-ht5y0zrb.js → app-4v7qdvcn.js} +4 -4
- package/dist/chunks/{app-bsprd9wx.js → app-4x7mprc7.js} +5 -5
- package/dist/chunks/{app-33w4ejhs.js → app-56gdpj1q.js} +4 -4
- package/dist/chunks/{app-8tt02aa5.js → app-57e9z27j.js} +7 -7
- package/dist/chunks/{app-r2751jnn.js → app-5bebnv6a.js} +63 -63
- package/dist/chunks/{app-jzz42hqp.js → app-5cwdzrbq.js} +7 -7
- package/dist/chunks/{app-c4ejyagw.js → app-5p8wf6j7.js} +21 -21
- package/dist/chunks/{app-qn9g45dx.js → app-5vgy46me.js} +1 -1
- package/dist/chunks/{app-bbqm5gby.js → app-5w6eg69j.js} +19 -19
- package/dist/chunks/{app-tx3h7197.js → app-5xnx6s0g.js} +4 -4
- package/dist/chunks/{app-x8esnxbb.js → app-67p37xz4.js} +1 -1
- package/dist/chunks/{app-p944wxep.js → app-68yqgpv3.js} +40 -40
- package/dist/chunks/{app-3zbwexce.js → app-6h1ernme.js} +9 -9
- package/dist/chunks/{app-5qjwke21.js → app-6myapkvy.js} +18 -18
- package/dist/chunks/{app-f59ep6tb.js → app-6qtegkg3.js} +8 -8
- package/dist/chunks/{app-10bgj2qs.js → app-6s2ddzje.js} +44 -44
- package/dist/chunks/{app-xc71fexb.js → app-6xrnn9ah.js} +15 -15
- package/dist/chunks/{app-y9rxzeem.js → app-76tyfscq.js} +12 -12
- package/dist/chunks/{app-vs90824y.js → app-791sstd7.js} +20 -20
- package/dist/chunks/{app-26sz20hb.js → app-7b0bmdfp.js} +6 -6
- package/dist/chunks/{app-wdy45rw8.js → app-7cjh5p1y.js} +7 -7
- package/dist/chunks/{app-yja0z1nt.js → app-7cxp1twe.js} +23 -23
- package/dist/chunks/{app-ywe4gqtj.js → app-7gganw90.js} +1 -1
- package/dist/chunks/{app-nxh69913.js → app-7jqg3t26.js} +7 -7
- package/dist/chunks/{app-cgmwwjnd.js → app-7v13wked.js} +8 -8
- package/dist/chunks/{app-nda7119r.js → app-7w42a7vr.js} +25 -25
- package/dist/chunks/{app-derpzkc9.js → app-7z20pvgb.js} +7 -7
- package/dist/chunks/{app-0rw9nv2q.js → app-8phv1wh2.js} +8 -8
- package/dist/chunks/{app-h7fgzsk1.js → app-9014prnx.js} +12 -12
- package/dist/chunks/{app-m6cy21rm.js → app-9706e9af.js} +15 -15
- package/dist/chunks/{app-yz1dgv86.js → app-9g2bkc9w.js} +4 -4
- package/dist/chunks/{app-vm93y64s.js → app-9h0hm6c7.js} +19 -19
- package/dist/chunks/{app-95tmncnd.js → app-9kdznkft.js} +153 -153
- package/dist/chunks/{app-1yb457c1.js → app-9w4vxw73.js} +18 -18
- package/dist/chunks/{app-h7v41q2b.js → app-9whkbvte.js} +2 -2
- package/dist/chunks/{app-z0rw1ncf.js → app-9z3aytcr.js} +21 -21
- package/dist/chunks/{app-gy3hfqwa.js → app-a89j2j3v.js} +9 -9
- package/dist/chunks/{app-x661k3y3.js → app-addxnjmp.js} +3 -3
- package/dist/chunks/{app-fgb4ey1w.js → app-af8m3dqx.js} +4 -4
- package/dist/chunks/{app-4fvakk57.js → app-ahket4sj.js} +1 -1
- package/dist/chunks/{app-38225d31.js → app-amtff23s.js} +19 -19
- package/dist/chunks/{app-kermnw9y.js → app-an481r60.js} +21 -21
- package/dist/chunks/{app-awezfaj7.js → app-apkykmcv.js} +35 -35
- package/dist/chunks/{app-x4dkc3v3.js → app-ar6cqpvd.js} +9 -9
- package/dist/chunks/{app-s8r1bxm7.js → app-aya0m2nn.js} +14 -14
- package/dist/chunks/{app-92pqdpde.js → app-b0cc5wa1.js} +15 -15
- package/dist/chunks/{app-qa3qhgw8.js → app-b27vhd2z.js} +3 -3
- package/dist/chunks/{app-xxa9zwx6.js → app-b63vc8wa.js} +14 -14
- package/dist/chunks/{app-yb20yvhc.js → app-b8rcbyp3.js} +12 -12
- package/dist/chunks/{app-354wsgxx.js → app-bae9fd7v.js} +32 -32
- package/dist/chunks/{app-0xfrdwvr.js → app-bgb55b52.js} +22 -22
- package/dist/chunks/{app-j9kaagt3.js → app-bj79fbq7.js} +23 -23
- package/dist/chunks/{app-bx2wmar1.js → app-bkcfv8em.js} +13 -13
- package/dist/chunks/{app-nj11v1kf.js → app-bzg3gwdp.js} +44 -44
- package/dist/chunks/{app-d4q7zemf.js → app-c74t9qz0.js} +21 -21
- package/dist/chunks/{app-9pkbw0h1.js → app-cx5qjy2q.js} +17 -17
- package/dist/chunks/{app-ye6d7t69.js → app-d08g2ggt.js} +30 -30
- package/dist/chunks/{app-rvxgx5k2.js → app-d5513v78.js} +10 -10
- package/dist/chunks/{app-6q6gqmwq.js → app-d7gsy00f.js} +1 -1
- package/dist/chunks/{app-m1ay94aq.js → app-dbkg7j5s.js} +15 -15
- package/dist/chunks/{app-bpdcdgy4.js → app-dhgz4p5g.js} +20 -20
- package/dist/chunks/{app-q5hzqnd5.js → app-dk3gfcvg.js} +312 -312
- package/dist/chunks/{app-6t3bxbt1.js → app-dr9djctk.js} +17 -17
- package/dist/chunks/{app-5qd3pb7m.js → app-e3qxr5gk.js} +2 -2
- package/dist/chunks/{app-bf8fwsb9.js → app-ebpd15x1.js} +4 -4
- package/dist/chunks/{app-m1mdr3t4.js → app-eff940as.js} +33 -33
- package/dist/chunks/{app-c4e8pskq.js → app-ep2tbpq0.js} +2 -2
- package/dist/chunks/{app-p3c1m468.js → app-f2ymgd1y.js} +9 -9
- package/dist/chunks/{app-awqkms3h.js → app-f597wsw6.js} +8 -8
- package/dist/chunks/{app-pn4m98w3.js → app-fbfqd6t5.js} +24 -24
- package/dist/chunks/{app-z6pt0vvw.js → app-fe1pry9k.js} +3 -3
- package/dist/chunks/{app-t9bwbksh.js → app-fh6mwhcg.js} +15 -15
- package/dist/chunks/{app-77svsnty.js → app-fyyxce3k.js} +9 -9
- package/dist/chunks/{app-tmkqb4m5.js → app-g945yz75.js} +30 -30
- package/dist/chunks/{app-pq2931dk.js → app-gfypdtgg.js} +9 -9
- package/dist/chunks/{app-jhs71wy2.js → app-gmyrpb2t.js} +16 -16
- package/dist/chunks/{app-gey4pgq5.js → app-gvra8byy.js} +5 -5
- package/dist/chunks/{app-wcy74va6.js → app-gz06afsr.js} +12 -12
- package/dist/chunks/app-h44meb81.js +26 -0
- package/dist/chunks/{app-1pxz8ven.js → app-h83xjv7f.js} +3 -3
- package/dist/chunks/{app-scgrse2b.js → app-hdkng2sj.js} +3 -3
- package/dist/chunks/{app-21fbcwms.js → app-hhjq2279.js} +6 -6
- package/dist/chunks/{app-yrzy80wg.js → app-hwwy1ym4.js} +10 -10
- package/dist/chunks/{app-5ktf0rcf.js → app-hxnmxwjb.js} +11 -11
- package/dist/chunks/{app-smzkt4h8.js → app-j4tsbt5k.js} +23 -23
- package/dist/chunks/{app-37eb9j4g.js → app-j9vjkm8n.js} +11 -11
- package/dist/chunks/{app-myrb3mwv.js → app-jat658e1.js} +13 -13
- package/dist/chunks/{app-89znh5jn.js → app-jc3azejp.js} +22 -22
- package/dist/chunks/{app-r71fb6ch.js → app-jcx1xx7s.js} +8 -8
- package/dist/chunks/{app-ctz7jbry.js → app-jhpaar4x.js} +7 -7
- package/dist/chunks/{app-6ydeeanc.js → app-jkv8g5mz.js} +7 -7
- package/dist/chunks/{app-qncy8rqx.js → app-jnvev7pc.js} +31 -31
- package/dist/chunks/{app-k0nnq3t9.js → app-k3kxt7h3.js} +5 -5
- package/dist/chunks/{app-w8v7x0t4.js → app-k5s0pr56.js} +24 -24
- package/dist/chunks/{app-8a6ws7jr.js → app-k70p9jzb.js} +7 -7
- package/dist/chunks/{app-k0j6xj92.js → app-k7y9nwy7.js} +78 -78
- package/dist/chunks/{app-4dnhnsrw.js → app-kdhmv3km.js} +10 -10
- package/dist/chunks/{app-vfjhn2wd.js → app-knevfgda.js} +3 -3
- package/dist/chunks/{app-5jrta31j.js → app-kt8356a3.js} +30 -30
- package/dist/chunks/{app-bz46fwta.js → app-m1mccnkp.js} +22 -22
- package/dist/chunks/{app-b7zw3vx0.js → app-m8n8f8f1.js} +22 -22
- package/dist/chunks/{app-2za1r32n.js → app-mgh0wzph.js} +13 -13
- package/dist/chunks/{app-a1gpj94z.js → app-mvfsc1pv.js} +2 -2
- package/dist/chunks/{app-qhyw2gmb.js → app-mwkrjy8y.js} +9 -9
- package/dist/chunks/{app-ws6r9wxd.js → app-mzkxtmwj.js} +48 -48
- package/dist/chunks/{app-6fnv26db.js → app-nd6gy5bw.js} +12 -12
- package/dist/chunks/{app-9a3kc0hm.js → app-nd6t1tpn.js} +12 -12
- package/dist/chunks/{app-qyp7nx31.js → app-ne07e3sg.js} +26 -26
- package/dist/chunks/{app-x5paqj6j.js → app-ngv8w6cp.js} +13 -13
- package/dist/chunks/{app-bkh2zg02.js → app-nwhb2xra.js} +3 -3
- package/dist/chunks/{app-m4y7kpay.js → app-nxdkhax1.js} +8 -8
- package/dist/chunks/{app-tcay1cqt.js → app-p7a39gy5.js} +5 -5
- package/dist/chunks/{app-r8bv4q06.js → app-pwzyebmy.js} +8 -8
- package/dist/chunks/{app-g35x6qc6.js → app-py8bz5dh.js} +16 -16
- package/dist/chunks/{app-fgawfjx8.js → app-pybq8189.js} +2 -2
- package/dist/chunks/{app-553hyqc1.js → app-q41gjxsv.js} +18 -18
- package/dist/chunks/{app-nj38n445.js → app-q5bs9ych.js} +8 -8
- package/dist/chunks/{app-a6rrmb2t.js → app-q66krdtm.js} +6 -6
- package/dist/chunks/{app-at1kfnmk.js → app-qby9dwvd.js} +7 -7
- package/dist/chunks/{app-m2dbveed.js → app-qpg4an21.js} +10 -10
- package/dist/chunks/{app-vx3jgdek.js → app-qsee9sfb.js} +3 -3
- package/dist/chunks/{app-09erbt4s.js → app-r7jxkywv.js} +16 -16
- package/dist/chunks/{app-vjmj34bj.js → app-rdh9syxk.js} +9 -9
- package/dist/chunks/{app-qcj1qarq.js → app-reymgymz.js} +32 -32
- package/dist/chunks/{app-2e853yyk.js → app-rftk81m0.js} +35 -35
- package/dist/chunks/{app-ccv5fkkn.js → app-rjq8wmvv.js} +10 -10
- package/dist/chunks/{app-nzxj697k.js → app-rq424w6d.js} +7 -7
- package/dist/chunks/{app-xwwz1fcf.js → app-rrfvxgdj.js} +21 -21
- package/dist/chunks/{app-r44petzp.js → app-rrpq0de9.js} +7 -7
- package/dist/chunks/{app-b5c9dynj.js → app-rszvgpa6.js} +13 -13
- package/dist/chunks/{app-ykt494b9.js → app-rx9ava5n.js} +1 -1
- package/dist/chunks/{app-np17306k.js → app-s0y0yn56.js} +6 -6
- package/dist/chunks/{app-7mnw5w78.js → app-s6fz7zhe.js} +2 -2
- package/dist/chunks/{app-9t7a50xb.js → app-s8d7rejh.js} +3 -3
- package/dist/chunks/{app-qadcnyv9.js → app-s9bkmqx5.js} +8 -8
- package/dist/chunks/{app-9h8mrsf7.js → app-s9rfegk5.js} +17 -17
- package/dist/chunks/{app-vhg3kvj9.js → app-sdzb5d81.js} +43 -43
- package/dist/chunks/{app-6e5ndhjv.js → app-sgy8ytrb.js} +2 -2
- package/dist/chunks/{app-f26q4c2q.js → app-srj2pvnr.js} +13 -13
- package/dist/chunks/{app-0s3chswr.js → app-sssj1js0.js} +24 -24
- package/dist/chunks/{app-39rxwxkd.js → app-t157y7h9.js} +15 -15
- package/dist/chunks/{app-gcabepm0.js → app-t6jtyfth.js} +7 -7
- package/dist/chunks/{app-80scg3y3.js → app-tbmac1c7.js} +3 -3
- package/dist/chunks/{app-k6pmx2m2.js → app-td2q8pwv.js} +30 -30
- package/dist/chunks/{app-2r6s1han.js → app-tdkczycq.js} +3 -3
- package/dist/chunks/{app-977n1gvn.js → app-tjd55h1j.js} +1 -1
- package/dist/chunks/{app-qzgv83g8.js → app-trfe10aq.js} +48 -48
- package/dist/chunks/{app-ye968f26.js → app-tv9y8cre.js} +28 -28
- package/dist/chunks/{app-dhmh7aw6.js → app-tz4n1mmd.js} +3 -3
- package/dist/chunks/{app-fpecnkgp.js → app-v0es1rhs.js} +7 -7
- package/dist/chunks/{app-5pyjqqve.js → app-v3691hzd.js} +1 -1
- package/dist/chunks/{app-0mekpjct.js → app-v8djm3tk.js} +32 -32
- package/dist/chunks/{app-yn6dgm22.js → app-va1aqcgj.js} +8 -8
- package/dist/chunks/{app-hrtswde4.js → app-vcx4y3fv.js} +14 -14
- package/dist/chunks/{app-xq7hn9w5.js → app-vpw5h8ff.js} +3 -3
- package/dist/chunks/{app-84txncab.js → app-w1eejvng.js} +4 -4
- package/dist/chunks/{app-mterk9bb.js → app-w22hqb2b.js} +13 -13
- package/dist/chunks/{app-e1bn0v82.js → app-w56bmt8q.js} +1 -1
- package/dist/chunks/{app-9hwaqfsw.js → app-wbgabvvj.js} +3 -3
- package/dist/chunks/{app-xbvv70jj.js → app-wbrpy97e.js} +7 -7
- package/dist/chunks/{app-ev618wrn.js → app-wkt2r7t8.js} +2 -2
- package/dist/chunks/{app-4qt3dk25.js → app-wp4df68x.js} +9 -9
- package/dist/chunks/{app-4xfpc9x8.js → app-wrdre0d4.js} +33 -33
- package/dist/chunks/{app-jb7afjsg.js → app-ws2cps2z.js} +6 -6
- package/dist/chunks/{app-qt4hgj4v.js → app-wxzwjz1v.js} +32 -32
- package/dist/chunks/{app-m6r7asx4.js → app-wygm2re9.js} +12 -12
- package/dist/chunks/{app-77237k3k.js → app-x1e01gbv.js} +15 -15
- package/dist/chunks/{app-r1vnz2ze.js → app-x9e148je.js} +14 -14
- package/dist/chunks/{app-rehtxfbe.js → app-xa67z4h8.js} +1 -1
- package/dist/chunks/{app-b1hb30m9.js → app-xccs5pvc.js} +7 -7
- package/dist/chunks/{app-jzzy94zk.js → app-xf8yqmad.js} +7 -7
- package/dist/chunks/{app-frtrentt.js → app-xj54bchx.js} +1 -1
- package/dist/chunks/{app-dmqcgk4z.js → app-xkntkrq7.js} +3 -3
- package/dist/chunks/{app-ex71f260.js → app-xp199s9v.js} +23 -23
- package/dist/chunks/{app-tx92n959.js → app-xs53z2pm.js} +3 -3
- package/dist/chunks/{app-1kr92pjq.js → app-y77syfze.js} +24 -24
- package/dist/chunks/{app-pengrcv5.js → app-yj324k3c.js} +5 -5
- package/dist/chunks/{app-3qaj82j9.js → app-yt3hy1g9.js} +3 -3
- package/dist/chunks/{app-xb3m1p56.js → app-yw1qgh4m.js} +12 -12
- package/dist/chunks/{app-eg4w172k.js → app-z0k8ktqm.js} +1 -1
- package/dist/chunks/{app-7zet489v.js → app-z52sz3cr.js} +28 -28
- package/dist/chunks/{app-77y1s1rs.js → app-z9w0t9mp.js} +9 -9
- package/dist/chunks/{app-0xw58msr.js → app-zqapp3sx.js} +8 -8
- package/dist/chunks/{app-5ms2rpmc.js → app-zy98sty6.js} +1 -1
- package/dist/codemode/instructions.js +6 -6
- package/dist/command.js +66 -66
- package/dist/config/discovery.js +57 -57
- package/dist/config/normalize.js +72 -72
- package/dist/config/plugin/agent.js +88 -88
- package/dist/config/plugin/command.js +162 -162
- package/dist/config/plugin/compaction.js +115 -115
- package/dist/config/plugin/compatibility.js +103 -103
- package/dist/config/plugin/formatter.js +87 -87
- package/dist/config/plugin/image.js +86 -86
- package/dist/config/plugin/instruction.js +64 -64
- package/dist/config/plugin/location-watcher.js +88 -88
- package/dist/config/plugin/mcp.js +94 -94
- package/dist/config/plugin/policy.js +87 -87
- package/dist/config/plugin/provider.js +86 -86
- package/dist/config/plugin/reference.js +88 -88
- package/dist/config/plugin/shell.js +86 -86
- package/dist/config/plugin/skill-file.js +72 -72
- package/dist/config/plugin/skill.js +106 -106
- package/dist/config/plugin/snapshot.js +86 -86
- package/dist/config/plugin/source.js +89 -89
- package/dist/config/plugin/tool-output.js +87 -87
- package/dist/config/plugin/websearch.js +85 -85
- package/dist/config/plugin/worktree.js +87 -87
- package/dist/config/variable.js +2 -2
- package/dist/config.js +92 -92
- package/dist/credential.js +62 -62
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +8 -8
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +9 -9
- package/dist/database/migration.gen.js +40 -40
- package/dist/database/migration.js +41 -41
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +234 -234
- package/dist/environment/environment.js +64 -64
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +75 -75
- package/dist/file-mutation.js +65 -65
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +175 -175
- package/dist/filesystem/search.js +66 -66
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +71 -71
- package/dist/form.js +61 -61
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +62 -62
- package/dist/generate.js +77 -77
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +5 -5
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +65 -65
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +299 -299
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +62 -62
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +66 -66
- package/dist/job.js +61 -61
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +53 -53
- package/dist/location-lifecycle.js +78 -78
- package/dist/location-service-map.js +61 -61
- package/dist/location-services.js +297 -297
- package/dist/location.js +62 -62
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +79 -79
- package/dist/mcp/instructions.js +90 -90
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +61 -61
- package/dist/modal/models.js +65 -65
- package/dist/model-resolver.js +72 -72
- package/dist/model.js +76 -76
- package/dist/models-dev.js +80 -80
- package/dist/permission/saved.js +60 -60
- package/dist/permission.js +82 -82
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +55 -55
- package/dist/plugin/agent.js +75 -75
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +166 -166
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/internal.js +272 -272
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +69 -69
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/plan.js +73 -73
- package/dist/plugin/provider/amazon-bedrock.js +64 -64
- package/dist/plugin/provider/azure.js +87 -87
- package/dist/plugin/provider/chatgpt.js +66 -66
- package/dist/plugin/provider/cloudflare-ai-gateway.js +84 -84
- package/dist/plugin/provider/cloudflare-workers-ai.js +84 -84
- package/dist/plugin/provider/configured.js +83 -83
- package/dist/plugin/provider/digitalocean.js +66 -66
- package/dist/plugin/provider/github-copilot.js +68 -68
- package/dist/plugin/provider/gitlab.js +66 -66
- package/dist/plugin/provider/google-vertex.js +64 -64
- package/dist/plugin/provider/llmgateway.js +59 -59
- package/dist/plugin/provider/lmstudio.js +87 -87
- package/dist/plugin/provider/local.js +84 -84
- package/dist/plugin/provider/modal.js +66 -66
- package/dist/plugin/provider/ollama.js +87 -87
- package/dist/plugin/provider/openai.js +65 -65
- package/dist/plugin/provider/opencode.js +69 -69
- package/dist/plugin/provider/openrouter.js +65 -65
- package/dist/plugin/provider/poe.js +59 -59
- package/dist/plugin/provider/prompt-cache-key.js +64 -64
- package/dist/plugin/provider/sap-ai-core.js +64 -64
- package/dist/plugin/provider/snowflake-cortex.js +85 -85
- package/dist/plugin/provider/vercel.js +64 -64
- package/dist/plugin/provider/vllm.js +87 -87
- package/dist/plugin/provider/xai.js +65 -65
- package/dist/plugin/provider.js +120 -120
- package/dist/plugin/sdk.js +59 -59
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +104 -104
- package/dist/plugin/supervisor.js +288 -288
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +61 -61
- package/dist/plugin/vcs/hg.js +61 -61
- package/dist/plugin/verbosity.js +67 -67
- package/dist/plugin/warming.js +85 -85
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- 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 +179 -179
- package/dist/project/schema.js +7 -7
- package/dist/project.js +63 -63
- package/dist/provider.js +71 -71
- package/dist/pty.js +73 -73
- package/dist/reference/instructions.js +66 -66
- package/dist/reference.js +66 -66
- package/dist/repository-cache.js +59 -59
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +67 -67
- package/dist/rpc.js +61 -61
- package/dist/session/command.js +57 -57
- package/dist/session/compaction.js +94 -94
- package/dist/session/context.js +111 -111
- package/dist/session/diff.js +61 -61
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +113 -113
- package/dist/session/execution.js +97 -97
- package/dist/session/generate.js +112 -112
- package/dist/session/history.js +8 -8
- package/dist/session/inbox.js +64 -64
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +59 -59
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +65 -65
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +84 -84
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +98 -98
- package/dist/session/projector.js +61 -61
- package/dist/session/prompt.js +76 -76
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +62 -62
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +176 -176
- package/dist/session/runner/model.js +72 -72
- package/dist/session/runner/publish-llm-event.js +82 -82
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +89 -89
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +127 -127
- package/dist/session/shell.js +98 -98
- package/dist/session/skill.js +74 -74
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +158 -158
- package/dist/session/title.js +112 -112
- package/dist/session/to-session-error.js +81 -81
- package/dist/session/transfer.js +110 -110
- package/dist/session.js +166 -166
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +101 -101
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +78 -78
- package/dist/skill.js +83 -83
- package/dist/snapshot.js +68 -68
- package/dist/tool/mcp.js +91 -91
- package/dist/tool/plugin/edit.js +86 -86
- package/dist/tool/plugin/glob.js +89 -89
- package/dist/tool/plugin/grep.js +89 -89
- package/dist/tool/plugin/mcp-resource.js +81 -81
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +80 -80
- package/dist/tool/plugin/question.js +74 -74
- package/dist/tool/plugin/read.js +90 -90
- package/dist/tool/plugin/shell.js +164 -164
- package/dist/tool/plugin/skill.js +80 -80
- package/dist/tool/plugin/subagent.js +167 -167
- package/dist/tool/plugin/webfetch.js +79 -79
- package/dist/tool/plugin/websearch.js +83 -83
- package/dist/tool/plugin/write.js +88 -88
- package/dist/tool/read-filesystem.js +69 -69
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +6 -6
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +65 -65
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +67 -67
- package/dist/vcs.js +64 -64
- package/dist/websearch.js +61 -61
- 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 +4 -4
- package/dist/worktree/strategies.js +63 -63
- package/dist/worktree.js +71 -71
- package/package.json +8 -8
- package/dist/chunks/app-x82s002v.js +0 -26
- /package/dist/chunks/{app-zw4pk1bw.js → app-b7v4cx43.js} +0 -0
- /package/dist/chunks/{app-85gpctef.js → app-d9yqcqn2.js} +0 -0
- /package/dist/chunks/{app-ynmespmv.js → app-jtgyfgpv.js} +0 -0
- /package/dist/chunks/{app-pkxfpd18.js → app-mypwhdkk.js} +0 -0
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./app-
|
|
2
|
+
Service69
|
|
3
|
+
} from "./app-1h0m70r1.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
6
|
} from "./app-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./app-
|
|
8
|
+
Service80
|
|
9
|
+
} from "./app-fh6mwhcg.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./app-
|
|
11
|
+
Service68
|
|
12
|
+
} from "./app-68yqgpv3.js";
|
|
13
13
|
import {
|
|
14
14
|
DirectorySource2,
|
|
15
15
|
UrlSource2,
|
|
16
16
|
Source4
|
|
17
|
-
} from "./app-
|
|
17
|
+
} from "./app-m8n8f8f1.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./app-
|
|
19
|
+
Service12
|
|
20
|
+
} from "./app-k70p9jzb.js";
|
|
21
21
|
import {
|
|
22
22
|
parse2
|
|
23
|
-
} from "./app-
|
|
23
|
+
} from "./app-1mkt64e2.js";
|
|
24
24
|
import {
|
|
25
25
|
__export
|
|
26
26
|
} from "./app-9rqn6x4v.js";
|
|
27
27
|
|
|
28
28
|
// src/config/plugin/skill.ts
|
|
29
|
-
var
|
|
30
|
-
__export(
|
|
31
|
-
ConfigSkillPlugin: () =>
|
|
32
|
-
Plugin: () =>
|
|
29
|
+
var exports_skill2 = {};
|
|
30
|
+
__export(exports_skill2, {
|
|
31
|
+
ConfigSkillPlugin: () => exports_skill2,
|
|
32
|
+
Plugin: () => Plugin26
|
|
33
33
|
});
|
|
34
34
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
37
|
import path from "path";
|
|
38
38
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
39
|
-
var
|
|
39
|
+
var Plugin26 = define({
|
|
40
40
|
id: "opencode.config.skill",
|
|
41
41
|
effect: Effect.fn(function* (ctx) {
|
|
42
|
-
const config = yield*
|
|
43
|
-
const discovery = yield*
|
|
42
|
+
const config = yield* Service68;
|
|
43
|
+
const discovery = yield* Service12;
|
|
44
44
|
const fs = yield* FSUtil.Service;
|
|
45
45
|
const global = yield* Global.Service;
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
46
|
+
const location = yield* Service80;
|
|
47
|
+
const watcher = yield* Service69;
|
|
48
48
|
const loaded = {
|
|
49
49
|
entries: yield* config.entries(),
|
|
50
50
|
skills: []
|
|
@@ -176,4 +176,4 @@ var Plugin40 = define({
|
|
|
176
176
|
})
|
|
177
177
|
});
|
|
178
178
|
|
|
179
|
-
export {
|
|
179
|
+
export { Plugin26, exports_skill2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-4b3qsvz5.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./app-
|
|
6
|
+
Service75
|
|
7
|
+
} from "./app-rrfvxgdj.js";
|
|
8
8
|
import {
|
|
9
9
|
ID13,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./app-
|
|
11
|
+
} from "./app-3322t3cd.js";
|
|
12
12
|
import {
|
|
13
13
|
ID12,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./app-
|
|
15
|
+
} from "./app-y77syfze.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -69,7 +69,7 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
72
|
+
const credentials = yield* Service75;
|
|
73
73
|
yield* Effect.forEach(yield* credentials.list(ID13.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
@@ -6,23 +6,23 @@ import {
|
|
|
6
6
|
var exports_managed_policy = {};
|
|
7
7
|
__export(exports_managed_policy, {
|
|
8
8
|
ManagedPolicy: () => exports_managed_policy,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service52,
|
|
10
|
+
node: () => node54
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service52 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service52, () => {
|
|
18
18
|
const state = { current: { statements: [] } };
|
|
19
|
-
return
|
|
19
|
+
return Service52.of({
|
|
20
20
|
current: () => state.current,
|
|
21
21
|
set: (next) => Effect.sync(() => {
|
|
22
22
|
state.current = next;
|
|
23
23
|
})
|
|
24
24
|
});
|
|
25
25
|
});
|
|
26
|
-
var
|
|
26
|
+
var node54 = makeGlobalNode({ service: Service52, layer, deps: [] });
|
|
27
27
|
|
|
28
|
-
export {
|
|
28
|
+
export { Service52, node54, exports_managed_policy };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./app-
|
|
2
|
+
Service76
|
|
3
|
+
} from "./app-yw1qgh4m.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./app-
|
|
5
|
+
Service62
|
|
6
|
+
} from "./app-mzkxtmwj.js";
|
|
7
7
|
import {
|
|
8
8
|
ID4,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./app-
|
|
13
|
+
Service45
|
|
14
|
+
} from "./app-gmyrpb2t.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./app-9rqn6x4v.js";
|
|
@@ -19,48 +19,48 @@ import {
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
20
|
var exports_websearch = {};
|
|
21
21
|
__export(exports_websearch, {
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input9,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin10,
|
|
25
25
|
WebSearchTool: () => exports_websearch,
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
26
|
+
description: () => description5,
|
|
27
|
+
name: () => name9
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name9 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description5 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input9 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
46
|
provider: ID4,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin10 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service62;
|
|
53
|
+
const forms = yield* Service76;
|
|
54
|
+
const websearch = yield* Service45;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name9,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description5,
|
|
59
|
+
input: Input9,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name9,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name9];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name9, NO_RESULTS2, description5, Input9, Plugin10, exports_websearch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aisdk2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-y77syfze.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./app-
|
|
5
|
+
Service72
|
|
6
|
+
} from "./app-29fgs7mf.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./app-9rqn6x4v.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// src/plugin/verbosity.ts
|
|
12
12
|
var exports_verbosity = {};
|
|
13
13
|
__export(exports_verbosity, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin46,
|
|
15
15
|
VerbosityPlugin: () => exports_verbosity
|
|
16
16
|
});
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -27,10 +27,10 @@ var gateways = new Set([
|
|
|
27
27
|
"@opencode/ai/providers/vercel-ai-gateway",
|
|
28
28
|
aisdk2("@ai-sdk/gateway")
|
|
29
29
|
]);
|
|
30
|
-
var
|
|
30
|
+
var Plugin46 = define({
|
|
31
31
|
id: "opencode.prompt.verbosity",
|
|
32
32
|
effect: Effect.fn("VerbosityPlugin")(function* (ctx) {
|
|
33
|
-
const models = yield*
|
|
33
|
+
const models = yield* Service72;
|
|
34
34
|
const hook = (event) => Effect.gen(function* () {
|
|
35
35
|
if (event.options.textVerbosity !== undefined)
|
|
36
36
|
return;
|
|
@@ -70,4 +70,4 @@ function openAIModelID(model) {
|
|
|
70
70
|
return id.slice("openai/".length);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { Plugin46, exports_verbosity };
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
PATCH_CONTEXT_LINES2
|
|
3
3
|
} from "./app-tazgh4e4.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./app-
|
|
5
|
+
ID16,
|
|
6
|
+
Service78
|
|
7
|
+
} from "./app-d08g2ggt.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./app-
|
|
10
|
+
} from "./app-qsee9sfb.js";
|
|
11
11
|
import {
|
|
12
12
|
MessageNotFoundError2
|
|
13
|
-
} from "./app-
|
|
13
|
+
} from "./app-4x7mprc7.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./app-kb9j3d72.js";
|
|
@@ -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* Service78;
|
|
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: ID16.make(from),
|
|
91
|
+
to: ID16.make(to),
|
|
92
92
|
context: input.context ?? PATCH_CONTEXT_LINES2
|
|
93
93
|
});
|
|
94
94
|
}).pipe(Effect.provide(locations.get(location)));
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./app-
|
|
2
|
+
Service69,
|
|
3
|
+
node73
|
|
4
|
+
} from "./app-1h0m70r1.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./app-
|
|
6
|
+
Service80,
|
|
7
|
+
node84
|
|
8
|
+
} from "./app-fh6mwhcg.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./app-
|
|
10
|
+
Service68,
|
|
11
|
+
node72
|
|
12
|
+
} from "./app-68yqgpv3.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
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: () => layer5,
|
|
28
|
+
node: () => node5
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ 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 layer5 = Layer.effect(Service3, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service68;
|
|
40
|
+
const watcher = yield* Service69;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service80;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -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 node5 = makeLocationNode({
|
|
74
|
+
service: Service3,
|
|
75
|
+
layer: layer5,
|
|
76
|
+
deps: [node72, FSUtil.node, node73, 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, layer5, node5, empty2, exports_source };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-4b3qsvz5.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./app-
|
|
6
|
+
} from "./app-5vgy46me.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./app-
|
|
9
|
+
Event19
|
|
10
|
+
} from "./app-rrfvxgdj.js";
|
|
11
11
|
import {
|
|
12
12
|
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./app-
|
|
14
|
+
} from "./app-3322t3cd.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ID12,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./app-
|
|
23
|
+
} from "./app-y77syfze.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
26
|
} from "./app-54ma36ye.js";
|
|
@@ -238,7 +238,7 @@ var OpenAIPlugin3 = define({
|
|
|
238
238
|
for (const name of ["context", "compaction"])
|
|
239
239
|
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID12.openai });
|
|
240
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
function headers(contentType, app) {
|
|
@@ -3,26 +3,26 @@ import {
|
|
|
3
3
|
} from "./app-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./app-
|
|
6
|
+
} from "./app-qsee9sfb.js";
|
|
7
7
|
import {
|
|
8
8
|
MessageDecodeError2
|
|
9
|
-
} from "./app-
|
|
9
|
+
} from "./app-4x7mprc7.js";
|
|
10
10
|
import {
|
|
11
11
|
InitializationBlocked2,
|
|
12
12
|
read3
|
|
13
|
-
} from "./app-
|
|
13
|
+
} from "./app-s8d7rejh.js";
|
|
14
14
|
import {
|
|
15
15
|
SessionMessageTable2
|
|
16
16
|
} from "./app-kb9j3d72.js";
|
|
17
17
|
import {
|
|
18
18
|
initial2,
|
|
19
19
|
preview3
|
|
20
|
-
} from "./app-
|
|
20
|
+
} from "./app-rx9ava5n.js";
|
|
21
21
|
import {
|
|
22
22
|
compatible2,
|
|
23
23
|
isCheckpoint2,
|
|
24
24
|
validate2
|
|
25
|
-
} from "./app-
|
|
25
|
+
} from "./app-1b4m0bzf.js";
|
|
26
26
|
import {
|
|
27
27
|
__export
|
|
28
28
|
} from "./app-9rqn6x4v.js";
|
|
@@ -35,7 +35,7 @@ __export(exports_history, {
|
|
|
35
35
|
entriesForRunner: () => entriesForRunner2,
|
|
36
36
|
firstUserMessage: () => firstUserMessage2,
|
|
37
37
|
latestCompaction: () => latestCompaction2,
|
|
38
|
-
load: () =>
|
|
38
|
+
load: () => load4,
|
|
39
39
|
preview: () => preview2
|
|
40
40
|
});
|
|
41
41
|
import { and, asc, desc, eq, gte, or, sql } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var messageEntries = Effect.fnUntraced(function* (db, sessionID, boundary) {
|
|
|
56
56
|
const native = entries.findLast((entry) => isCheckpoint2(entry.message));
|
|
57
57
|
return entries.filter((entry) => !(entry.message.type === "system" && native && entry.seq < native.seq) && replayable(entry.message, boundary));
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var load4 = Effect.fn("SessionHistory.load")(function* (db, sessionID, boundary) {
|
|
60
60
|
return (yield* messageEntries(db, sessionID, boundary)).map((entry) => entry.message);
|
|
61
61
|
});
|
|
62
62
|
var entriesForRunner2 = Effect.fn("SessionHistory.entriesForRunner")(function* (db, sessionID, instructions, boundary) {
|
|
@@ -92,4 +92,4 @@ var firstUserMessage2 = Effect.fn("SessionHistory.firstUserMessage")(function* (
|
|
|
92
92
|
return message?.type === "user" ? message : undefined;
|
|
93
93
|
});
|
|
94
94
|
|
|
95
|
-
export { latestCompaction2, decodeMessageRow2,
|
|
95
|
+
export { latestCompaction2, decodeMessageRow2, load4, entriesForRunner2, preview2, firstUserMessage2, exports_history };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./app-
|
|
2
|
+
Service44,
|
|
3
|
+
node46
|
|
4
|
+
} from "./app-1fe3twba.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionSchema2
|
|
7
|
-
} from "./app-
|
|
7
|
+
} from "./app-qsee9sfb.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
10
|
} from "./app-9rqn6x4v.js";
|
|
@@ -14,9 +14,9 @@ var exports_model = {};
|
|
|
14
14
|
__export(exports_model, {
|
|
15
15
|
ModelNotSelectedError: () => ModelNotSelectedError2,
|
|
16
16
|
ModelUnavailableError: () => ModelUnavailableError2,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service37,
|
|
18
18
|
SessionRunnerModel: () => exports_model,
|
|
19
|
-
node: () =>
|
|
19
|
+
node: () => node39,
|
|
20
20
|
resolved: () => resolved2
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ class ModelUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.Mo
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service37 extends Context.Service()("@opencode/SessionRunnerModel") {
|
|
43
43
|
}
|
|
44
44
|
var resolved2 = (model, options) => ({
|
|
45
45
|
model,
|
|
@@ -54,9 +54,9 @@ var resolved2 = (model, options) => ({
|
|
|
54
54
|
compaction: options.compaction,
|
|
55
55
|
transport: options.transport
|
|
56
56
|
});
|
|
57
|
-
var layer = Layer.effect(
|
|
58
|
-
const resolver = yield*
|
|
59
|
-
return
|
|
57
|
+
var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
58
|
+
const resolver = yield* Service44;
|
|
59
|
+
return Service37.of({
|
|
60
60
|
resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
|
|
61
61
|
if (!session.model) {
|
|
62
62
|
const resolved = yield* resolver.resolve();
|
|
@@ -74,6 +74,6 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
}));
|
|
77
|
-
var
|
|
77
|
+
var node39 = makeLocationNode({ service: Service37, layer, deps: [node46] });
|
|
78
78
|
|
|
79
|
-
export { ModelNotSelectedError2, ModelUnavailableError2,
|
|
79
|
+
export { ModelNotSelectedError2, ModelUnavailableError2, Service37, resolved2, node39, exports_model };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./app-
|
|
2
|
+
Service80,
|
|
3
|
+
node84
|
|
4
|
+
} from "./app-fh6mwhcg.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
|
-
|
|
7
|
+
make21,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./app-
|
|
9
|
+
} from "./app-s8d7rejh.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
12
|
} from "./app-9rqn6x4v.js";
|
|
@@ -15,20 +15,20 @@ import {
|
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service30,
|
|
19
|
+
node: () => node33
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service30 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service80;
|
|
29
|
+
return Service30.of({
|
|
30
30
|
load: () => Effect.succeed(combine2([
|
|
31
|
-
|
|
31
|
+
make21({
|
|
32
32
|
key: Key3.make("core/date"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
@@ -37,7 +37,7 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
37
37
|
changed: (_previous, date) => `Today's date is now: ${date}`
|
|
38
38
|
}
|
|
39
39
|
}),
|
|
40
|
-
|
|
40
|
+
make21({
|
|
41
41
|
key: Key3.make("core/environment"),
|
|
42
42
|
codec: Schema.toCodecJson(Schema.String),
|
|
43
43
|
read: Effect.sync(() => [
|
|
@@ -60,6 +60,6 @@ var layer = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
60
60
|
]))
|
|
61
61
|
});
|
|
62
62
|
}));
|
|
63
|
-
var
|
|
63
|
+
var node33 = makeLocationNode({ service: Service30, layer, deps: [Global.node, node84] });
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { Service30, node33, exports_builtins };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./app-
|
|
3
|
+
} from "./app-jkv8g5mz.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/vllm.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -11,7 +11,7 @@ var RemoteModel = Schema.Struct({
|
|
|
11
11
|
max_model_len: Schema.NullOr(Schema.Int)
|
|
12
12
|
});
|
|
13
13
|
var Response = Schema.Struct({ data: Schema.Array(RemoteModel) });
|
|
14
|
-
var
|
|
14
|
+
var make11 = createLocalProviderPlugin2({
|
|
15
15
|
id: "opencode.provider.vllm",
|
|
16
16
|
providerID,
|
|
17
17
|
name: "vLLM",
|
|
@@ -26,6 +26,6 @@ var make6 = createLocalProviderPlugin2({
|
|
|
26
26
|
context: item.max_model_len
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
|
-
var VLLMPlugin2 =
|
|
29
|
+
var VLLMPlugin2 = make11();
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { make11, VLLMPlugin2 };
|