@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
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./app-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./app-
|
|
6
|
+
} from "./app-apkykmcv.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./app-
|
|
8
|
+
Service80,
|
|
9
|
+
node84
|
|
10
|
+
} from "./app-fh6mwhcg.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./app-
|
|
12
|
+
Service62,
|
|
13
|
+
node65
|
|
14
|
+
} from "./app-mzkxtmwj.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./app-9rqn6x4v.js";
|
|
@@ -22,8 +22,8 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
26
|
-
node: () =>
|
|
25
|
+
Service: () => Service14,
|
|
26
|
+
node: () => node16,
|
|
27
27
|
resolvePath: () => resolvePath2
|
|
28
28
|
});
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -37,7 +37,7 @@ var ResolveInput2 = Schema.Struct({
|
|
|
37
37
|
kind: Kind2.pipe(Schema.optional)
|
|
38
38
|
});
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Service14 extends Context.Service()("@opencode/FileAccess") {
|
|
41
41
|
}
|
|
42
42
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
43
43
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -49,10 +49,10 @@ var invocation = (context) => ({
|
|
|
49
49
|
agent: context.agent,
|
|
50
50
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
51
51
|
});
|
|
52
|
-
var layer = Layer.effect(
|
|
52
|
+
var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
53
53
|
const fs = yield* FSUtil.Service;
|
|
54
|
-
const location = yield*
|
|
55
|
-
const permission = yield*
|
|
54
|
+
const location = yield* Service80;
|
|
55
|
+
const permission = yield* Service62;
|
|
56
56
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
57
57
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
58
58
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -101,8 +101,8 @@ var layer = Layer.effect(Service42, Effect.gen(function* () {
|
|
|
101
101
|
});
|
|
102
102
|
return target;
|
|
103
103
|
});
|
|
104
|
-
return
|
|
104
|
+
return Service14.of({ resolve, authorizeExternal, authorizeRead });
|
|
105
105
|
}));
|
|
106
|
-
var
|
|
106
|
+
var node16 = makeLocationNode({ service: Service14, layer, deps: [FSUtil.node, node84, node65] });
|
|
107
107
|
|
|
108
|
-
export { Kind2, ResolveInput2,
|
|
108
|
+
export { Kind2, ResolveInput2, Service14, resolvePath2, node16, exports_file_access };
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
var exports_run_coordinator = {};
|
|
7
7
|
__export(exports_run_coordinator, {
|
|
8
8
|
SessionRunCoordinator: () => exports_run_coordinator,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make17
|
|
10
10
|
});
|
|
11
11
|
import { Deferred, Effect, Fiber, FiberSet } from "effect";
|
|
12
|
-
var
|
|
12
|
+
var make17 = (options) => Effect.gen(function* () {
|
|
13
13
|
const executions = new Map;
|
|
14
14
|
const fork = yield* FiberSet.makeRuntime();
|
|
15
15
|
const loop = (key, execution, force) => Effect.suspend(() => options.drain(key, force, execution.scope)).pipe(Effect.andThen(Effect.suspend(() => {
|
|
@@ -89,4 +89,4 @@ var make18 = (options) => Effect.gen(function* () {
|
|
|
89
89
|
};
|
|
90
90
|
});
|
|
91
91
|
|
|
92
|
-
export {
|
|
92
|
+
export { make17, exports_run_coordinator };
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info13,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Predicate, Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info13 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -66,4 +66,4 @@ function upgradeLegacyMedia(input) {
|
|
|
66
66
|
});
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
export {
|
|
69
|
+
export { Info13, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID13,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./app-
|
|
3
|
+
Service74,
|
|
4
|
+
node78
|
|
5
|
+
} from "./app-3322t3cd.js";
|
|
6
6
|
import {
|
|
7
7
|
ID12,
|
|
8
8
|
isAISDK2,
|
|
@@ -14,21 +14,21 @@ import {
|
|
|
14
14
|
timeouts2,
|
|
15
15
|
mergeOverlay2,
|
|
16
16
|
mergeHeaders2,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./app-
|
|
17
|
+
Service73,
|
|
18
|
+
node77
|
|
19
|
+
} from "./app-y77syfze.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./app-
|
|
21
|
+
Service53,
|
|
22
|
+
node55
|
|
23
|
+
} from "./app-va1aqcgj.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
25
|
+
ID11,
|
|
26
26
|
VariantID2,
|
|
27
27
|
Ref2,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
Service72,
|
|
29
|
+
node76,
|
|
30
30
|
supportsText2
|
|
31
|
-
} from "./app-
|
|
31
|
+
} from "./app-29fgs7mf.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./app-9rqn6x4v.js";
|
|
@@ -40,15 +40,15 @@ __export(exports_model_resolver, {
|
|
|
40
40
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
41
41
|
ModelInitializationError: () => ModelInitializationError2,
|
|
42
42
|
ModelResolver: () => exports_model_resolver,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service44,
|
|
44
44
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
45
45
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
46
46
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
47
47
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
48
48
|
fromCatalogModel: () => fromCatalogModel2,
|
|
49
49
|
hasPackage: () => hasPackage2,
|
|
50
|
-
layer: () =>
|
|
51
|
-
node: () =>
|
|
50
|
+
layer: () => layer19,
|
|
51
|
+
node: () => node46,
|
|
52
52
|
resolveModel: () => resolveModel2,
|
|
53
53
|
withVariant: () => withVariant2
|
|
54
54
|
});
|
|
@@ -59,7 +59,7 @@ import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
|
59
59
|
import { Npm } from "@opencode/util/npm";
|
|
60
60
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
61
61
|
providerID: ID12,
|
|
62
|
-
modelID:
|
|
62
|
+
modelID: ID11,
|
|
63
63
|
variant: VariantID2
|
|
64
64
|
}) {
|
|
65
65
|
get message() {
|
|
@@ -69,7 +69,7 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
69
69
|
|
|
70
70
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
71
71
|
providerID: ID12,
|
|
72
|
-
modelID:
|
|
72
|
+
modelID: ID11,
|
|
73
73
|
package: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
get message() {
|
|
@@ -80,7 +80,7 @@ var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
|
80
80
|
|
|
81
81
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
82
82
|
providerID: ID12,
|
|
83
|
-
modelID:
|
|
83
|
+
modelID: ID11,
|
|
84
84
|
package: Schema.String,
|
|
85
85
|
detail: Schema.String
|
|
86
86
|
}) {
|
|
@@ -91,7 +91,7 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
91
91
|
|
|
92
92
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
93
93
|
providerID: ID12,
|
|
94
|
-
modelID:
|
|
94
|
+
modelID: ID11,
|
|
95
95
|
package: Schema.String,
|
|
96
96
|
phase: InitializationPhase2,
|
|
97
97
|
detail: Schema.String
|
|
@@ -103,7 +103,7 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
103
103
|
|
|
104
104
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
105
105
|
providerID: ID12,
|
|
106
|
-
modelID:
|
|
106
|
+
modelID: ID11,
|
|
107
107
|
variables: Schema.Array(Schema.String)
|
|
108
108
|
}) {
|
|
109
109
|
get message() {
|
|
@@ -113,7 +113,7 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
113
113
|
|
|
114
114
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
115
115
|
providerID: ID12,
|
|
116
|
-
modelID:
|
|
116
|
+
modelID: ID11,
|
|
117
117
|
route: Schema.String
|
|
118
118
|
}) {
|
|
119
119
|
get message() {
|
|
@@ -121,7 +121,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
class
|
|
124
|
+
class Service44 extends Context.Service()("@opencode/ModelResolver") {
|
|
125
125
|
}
|
|
126
126
|
var withVariant2 = (model, variantID) => {
|
|
127
127
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -265,12 +265,12 @@ var causeMessage = (cause) => {
|
|
|
265
265
|
};
|
|
266
266
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
267
267
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
268
|
-
var
|
|
269
|
-
const providers = yield*
|
|
270
|
-
const models = yield*
|
|
271
|
-
const integrations = yield*
|
|
268
|
+
var layer19 = Layer.effect(Service44, Effect.gen(function* () {
|
|
269
|
+
const providers = yield* Service73;
|
|
270
|
+
const models = yield* Service72;
|
|
271
|
+
const integrations = yield* Service74;
|
|
272
272
|
const npm = yield* Npm.Service;
|
|
273
|
-
const aisdk = yield*
|
|
273
|
+
const aisdk = yield* Service53;
|
|
274
274
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
275
275
|
const provider = yield* providers.get(selected.providerID);
|
|
276
276
|
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID13.make(selected.providerID));
|
|
@@ -300,7 +300,7 @@ var layer21 = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
300
300
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
301
301
|
};
|
|
302
302
|
});
|
|
303
|
-
return
|
|
303
|
+
return Service44.of({
|
|
304
304
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
305
305
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
306
306
|
if (!selected)
|
|
@@ -317,10 +317,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
317
317
|
const name = packageName2(packageName);
|
|
318
318
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
319
319
|
}
|
|
320
|
-
var
|
|
321
|
-
service:
|
|
322
|
-
layer:
|
|
323
|
-
deps: [
|
|
320
|
+
var node46 = makeLocationNode({
|
|
321
|
+
service: Service44,
|
|
322
|
+
layer: layer19,
|
|
323
|
+
deps: [node77, node76, node78, Npm.node, node55]
|
|
324
324
|
});
|
|
325
325
|
|
|
326
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
326
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service44, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer19, node46, exports_model_resolver };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./app-
|
|
4
|
+
} from "./app-ep2tbpq0.js";
|
|
5
5
|
import {
|
|
6
6
|
Service83,
|
|
7
7
|
node87
|
|
8
|
-
} from "./app-
|
|
8
|
+
} from "./app-5vgy46me.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
11
|
} from "./app-rdw6cm16.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./app-
|
|
13
|
+
ID9,
|
|
14
|
+
Service65,
|
|
15
|
+
node68
|
|
16
|
+
} from "./app-m1mccnkp.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
19
|
} from "./app-5t3nmthw.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./app-
|
|
21
|
+
Service72,
|
|
22
|
+
node76
|
|
23
|
+
} from "./app-29fgs7mf.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
26
|
} from "./app-h6vf3j39.js";
|
|
@@ -32,32 +32,32 @@ import {
|
|
|
32
32
|
compatible2,
|
|
33
33
|
isCheckpoint2,
|
|
34
34
|
encode2
|
|
35
|
-
} from "./app-
|
|
35
|
+
} from "./app-1b4m0bzf.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./app-
|
|
37
|
+
load4
|
|
38
|
+
} from "./app-8phv1wh2.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./app-
|
|
41
|
+
} from "./app-325sge2s.js";
|
|
42
42
|
import {
|
|
43
43
|
baseTranscript2,
|
|
44
44
|
unsupportedParts2,
|
|
45
45
|
boundImages2,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
} from "./app-
|
|
46
|
+
Service25,
|
|
47
|
+
node29
|
|
48
|
+
} from "./app-tv9y8cre.js";
|
|
49
49
|
import {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
} from "./app-
|
|
50
|
+
Service37,
|
|
51
|
+
node39
|
|
52
|
+
} from "./app-9014prnx.js";
|
|
53
53
|
import {
|
|
54
54
|
isRetryable2,
|
|
55
55
|
policy2
|
|
56
|
-
} from "./app-
|
|
56
|
+
} from "./app-hdkng2sj.js";
|
|
57
57
|
import {
|
|
58
58
|
toSessionError2,
|
|
59
59
|
contentFilterError2
|
|
60
|
-
} from "./app-
|
|
60
|
+
} from "./app-yj324k3c.js";
|
|
61
61
|
import {
|
|
62
62
|
calculateCost2,
|
|
63
63
|
record2,
|
|
@@ -70,13 +70,13 @@ import {
|
|
|
70
70
|
// src/session/compaction.ts
|
|
71
71
|
var exports_compaction2 = {};
|
|
72
72
|
__export(exports_compaction2, {
|
|
73
|
-
Service: () =>
|
|
73
|
+
Service: () => Service5,
|
|
74
74
|
SessionCompaction: () => exports_compaction2,
|
|
75
75
|
buildPrompt: () => buildPrompt2,
|
|
76
76
|
estimateContext: () => estimateContext2,
|
|
77
77
|
estimatePrompt: () => estimatePrompt2,
|
|
78
78
|
layer: () => layer6,
|
|
79
|
-
node: () =>
|
|
79
|
+
node: () => node7,
|
|
80
80
|
recentUserMessages: () => recentUserMessages2
|
|
81
81
|
});
|
|
82
82
|
import {
|
|
@@ -92,7 +92,7 @@ import {
|
|
|
92
92
|
} from "@opencode/ai";
|
|
93
93
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
94
94
|
import { Context, Effect, Layer, Result, Stream } from "effect";
|
|
95
|
-
class
|
|
95
|
+
class Service5 extends Context.Service()("@opencode/SessionCompaction") {
|
|
96
96
|
}
|
|
97
97
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
98
98
|
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
@@ -171,14 +171,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
171
171
|
};
|
|
172
172
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
173
173
|
var LEGACY_HEADING = "## Additional Context";
|
|
174
|
-
var layer6 = Layer.effect(
|
|
175
|
-
const agents = yield*
|
|
174
|
+
var layer6 = Layer.effect(Service5, Effect.gen(function* () {
|
|
175
|
+
const agents = yield* Service65;
|
|
176
176
|
const bus = yield* Service83;
|
|
177
177
|
const llm = yield* LLMClient.Service;
|
|
178
|
-
const catalog = yield*
|
|
179
|
-
const models = yield*
|
|
178
|
+
const catalog = yield* Service72;
|
|
179
|
+
const models = yield* Service37;
|
|
180
180
|
const db = (yield* Service84).db;
|
|
181
|
-
const requests = yield*
|
|
181
|
+
const requests = yield* Service25;
|
|
182
182
|
const state = create3({
|
|
183
183
|
name: "session-compaction",
|
|
184
184
|
initial: () => ({ auto: true, keep: 15000 }),
|
|
@@ -196,7 +196,7 @@ var layer6 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
196
196
|
if (trigger.reason === "auto" && !due(context, calculateCeiling(context.model.limit, settings.buffer)))
|
|
197
197
|
return { status: "skipped" };
|
|
198
198
|
const native = context.model.compaction?.type === "native";
|
|
199
|
-
const agent = native ? undefined : yield* agents.get(
|
|
199
|
+
const agent = native ? undefined : yield* agents.get(ID9.make("compaction"));
|
|
200
200
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
201
201
|
return;
|
|
202
202
|
})))) ?? context.model;
|
|
@@ -272,7 +272,7 @@ var layer6 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
272
272
|
const send = (request) => {
|
|
273
273
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
274
274
|
return Effect.gen(function* () {
|
|
275
|
-
const history = yield*
|
|
275
|
+
const history = yield* load4(db, context.session.id, "local").pipe(Effect.orDie);
|
|
276
276
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
277
277
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
278
278
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -472,16 +472,16 @@ ${text}`;
|
|
|
472
472
|
}, { metadata: outcome.metadata });
|
|
473
473
|
return { status: "completed" };
|
|
474
474
|
});
|
|
475
|
-
return
|
|
475
|
+
return Service5.of({
|
|
476
476
|
transform: state.transform,
|
|
477
477
|
reload: state.reload,
|
|
478
478
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id))))
|
|
479
479
|
});
|
|
480
480
|
}));
|
|
481
|
-
var
|
|
482
|
-
service:
|
|
481
|
+
var node7 = makeLocationNode({
|
|
482
|
+
service: Service5,
|
|
483
483
|
layer: layer6,
|
|
484
|
-
deps: [
|
|
484
|
+
deps: [node68, node87, node88, llmClient2, node76, node29, node39]
|
|
485
485
|
});
|
|
486
486
|
var previousCompaction = (messages) => {
|
|
487
487
|
const [first] = messages;
|
|
@@ -686,4 +686,4 @@ var estimateMedia = (mime) => {
|
|
|
686
686
|
return 0;
|
|
687
687
|
};
|
|
688
688
|
|
|
689
|
-
export {
|
|
689
|
+
export { Service5, buildPrompt2, layer6, node7, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
lazy2
|
|
3
3
|
} from "./app-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./app-
|
|
5
|
+
load5
|
|
6
|
+
} from "./app-e3qxr5gk.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./app-9rqn6x4v.js";
|
|
@@ -11,18 +11,18 @@ import {
|
|
|
11
11
|
// src/filesystem/watcher.ts
|
|
12
12
|
var exports_watcher = {};
|
|
13
13
|
__export(exports_watcher, {
|
|
14
|
-
Event: () =>
|
|
14
|
+
Event: () => Event14,
|
|
15
15
|
Native: () => Native3,
|
|
16
|
-
Options: () =>
|
|
17
|
-
Service: () =>
|
|
16
|
+
Options: () => Options10,
|
|
17
|
+
Service: () => Service69,
|
|
18
18
|
Test: () => Test3,
|
|
19
19
|
Watcher: () => exports_watcher,
|
|
20
|
-
configured: () =>
|
|
20
|
+
configured: () => configured11,
|
|
21
21
|
hasNativeBinding: () => hasNativeBinding2,
|
|
22
|
-
layer: () =>
|
|
22
|
+
layer: () => layer24,
|
|
23
23
|
nativeLayer: () => nativeLayer2,
|
|
24
24
|
nativeNode: () => nativeNode2,
|
|
25
|
-
node: () =>
|
|
25
|
+
node: () => node73,
|
|
26
26
|
testLayer: () => testLayer3
|
|
27
27
|
});
|
|
28
28
|
import { createWrapper } from "@parcel/watcher/wrapper.js";
|
|
@@ -33,10 +33,10 @@ import { Cause, Context, Effect, Layer, PubSub, RcMap, Schema, Stream } from "ef
|
|
|
33
33
|
import { watch } from "node:fs";
|
|
34
34
|
import path from "path";
|
|
35
35
|
var SUBSCRIBE_TIMEOUT_MS = 1e4;
|
|
36
|
-
var
|
|
36
|
+
var Event14 = { Updated: FileSystem.Event.Changed };
|
|
37
37
|
var watcher = lazy2(() => {
|
|
38
38
|
try {
|
|
39
|
-
return createWrapper(
|
|
39
|
+
return createWrapper(load5());
|
|
40
40
|
} catch {
|
|
41
41
|
return;
|
|
42
42
|
}
|
|
@@ -53,18 +53,18 @@ var hasNativeBinding2 = () => !!watcher();
|
|
|
53
53
|
|
|
54
54
|
class Native3 extends Context.Service()("@opencode/Watcher/Native") {
|
|
55
55
|
}
|
|
56
|
-
var
|
|
56
|
+
var Options10 = Schema.Struct({
|
|
57
57
|
enabled: Schema.optional(Schema.Boolean)
|
|
58
58
|
});
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service69 extends Context.Service()("@opencode/Watcher") {
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class Test3 extends Context.Service()("@opencode/Watcher/Test") {
|
|
64
64
|
}
|
|
65
|
-
var
|
|
65
|
+
var layer24 = (options) => Layer.effect(Service69, Effect.gen(function* () {
|
|
66
66
|
if (options?.enabled === false) {
|
|
67
|
-
return
|
|
67
|
+
return Service69.of({ subscribe: () => Effect.succeed(Stream.empty) });
|
|
68
68
|
}
|
|
69
69
|
const native = yield* Native3;
|
|
70
70
|
const watchers = yield* RcMap.make({
|
|
@@ -105,7 +105,7 @@ var layer23 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
105
105
|
return Stream.fromSubscription(subscription);
|
|
106
106
|
}));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service69.of({ subscribe });
|
|
109
109
|
}));
|
|
110
110
|
var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
111
111
|
const subscriptions = [];
|
|
@@ -129,9 +129,9 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
129
129
|
};
|
|
130
130
|
})
|
|
131
131
|
});
|
|
132
|
-
const context = yield* Layer.build(
|
|
132
|
+
const context = yield* Layer.build(layer24().pipe(Layer.provide(Layer.succeed(Native3, native))));
|
|
133
133
|
const test = Test3.of({
|
|
134
|
-
subscribe: Context.get(context,
|
|
134
|
+
subscribe: Context.get(context, Service69).subscribe,
|
|
135
135
|
emit: (update) => Effect.sync(() => {
|
|
136
136
|
const target = path.resolve(update.path);
|
|
137
137
|
active.forEach((matches, publish) => {
|
|
@@ -141,7 +141,7 @@ var testLayer3 = Layer.effectContext(Effect.gen(function* () {
|
|
|
141
141
|
}),
|
|
142
142
|
subscriptions: () => Effect.sync(() => [...subscriptions])
|
|
143
143
|
});
|
|
144
|
-
return Context.empty().pipe(Context.add(
|
|
144
|
+
return Context.empty().pipe(Context.add(Service69, test), Context.add(Test3, test));
|
|
145
145
|
}));
|
|
146
146
|
var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
147
147
|
subscribe: (input) => {
|
|
@@ -164,10 +164,10 @@ var nativeLayer2 = Layer.succeed(Native3, Native3.of({
|
|
|
164
164
|
}
|
|
165
165
|
}));
|
|
166
166
|
var nativeNode2 = makeGlobalNode({ service: Native3, layer: nativeLayer2, deps: [] });
|
|
167
|
-
function
|
|
168
|
-
return makeGlobalNode({ service:
|
|
167
|
+
function configured11(options) {
|
|
168
|
+
return makeGlobalNode({ service: Service69, layer: layer24(options), deps: [nativeNode2] });
|
|
169
169
|
}
|
|
170
|
-
var
|
|
170
|
+
var node73 = configured11();
|
|
171
171
|
function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
172
172
|
if (!native || !backend) {
|
|
173
173
|
return Effect.logError("watcher backend not supported", { directory, platform: process.platform }).pipe(Effect.as(undefined));
|
|
@@ -187,4 +187,4 @@ function subscribeDirectory(native, backend, directory, ignore, publish) {
|
|
|
187
187
|
}).pipe(Effect.as(undefined))));
|
|
188
188
|
}
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Event14, hasNativeBinding2, Native3, Options10, Service69, Test3, layer24, testLayer3, nativeLayer2, nativeNode2, configured11, node73, exports_watcher };
|