@opencode/core 0.0.0-dev-21709 → 0.0.0-dev-21733
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 +67 -67
- package/dist/aisdk-native.js +69 -69
- package/dist/aisdk.js +74 -74
- package/dist/app.js +9 -9
- package/dist/bus.js +53 -53
- package/dist/chunks/{file-mutation-0j1f7v6y.js → file-mutation-00rzab14.js} +7 -7
- package/dist/chunks/{file-mutation-s7112yyh.js → file-mutation-01k3925y.js} +16 -16
- package/dist/chunks/{file-mutation-m14375f6.js → file-mutation-036w2vvs.js} +25 -25
- package/dist/chunks/{file-mutation-k4x8dxyy.js → file-mutation-0ns4m9xc.js} +6 -6
- package/dist/chunks/{file-mutation-jcapkbe6.js → file-mutation-10rcdg98.js} +2 -2
- package/dist/chunks/{file-mutation-vbmz9jev.js → file-mutation-12p8ee72.js} +23 -23
- package/dist/chunks/{file-mutation-713f9fkw.js → file-mutation-1k1fqc4x.js} +169 -169
- package/dist/chunks/{file-mutation-ay6kp039.js → file-mutation-1r91ydea.js} +3 -3
- package/dist/chunks/{file-mutation-v6x8rhc3.js → file-mutation-21et416z.js} +5 -5
- package/dist/chunks/{file-mutation-rmv7btfw.js → file-mutation-26dky2bj.js} +10 -10
- package/dist/chunks/{file-mutation-g113tq3g.js → file-mutation-27tam8fm.js} +1 -1
- package/dist/chunks/{file-mutation-1ep2p91f.js → file-mutation-27w5k9zf.js} +1 -1
- package/dist/chunks/{file-mutation-kd4chd64.js → file-mutation-2azy8kv6.js} +4 -4
- package/dist/chunks/{file-mutation-3jt9gp25.js → file-mutation-2hbghhry.js} +20 -20
- package/dist/chunks/{file-mutation-r0zz2cdc.js → file-mutation-2kxb353b.js} +1 -1
- package/dist/chunks/{file-mutation-m6yg81he.js → file-mutation-2rjbzknj.js} +14 -14
- package/dist/chunks/{file-mutation-e5yz98j3.js → file-mutation-30e15dtz.js} +3 -3
- package/dist/chunks/{file-mutation-t9e9esc1.js → file-mutation-32d3hzha.js} +8 -8
- package/dist/chunks/{file-mutation-ctagr9g7.js → file-mutation-368ze413.js} +9 -9
- package/dist/chunks/{file-mutation-5ahehfm9.js → file-mutation-3c164b2z.js} +11 -11
- package/dist/chunks/{file-mutation-ayjs7tqn.js → file-mutation-3cbjf1nt.js} +1 -1
- package/dist/chunks/{file-mutation-3a12p9c1.js → file-mutation-3de1akn6.js} +10 -10
- package/dist/chunks/{file-mutation-tn2pqadg.js → file-mutation-3ek3wb4s.js} +12 -12
- package/dist/chunks/{file-mutation-nad4mkqt.js → file-mutation-45t4pvv9.js} +7 -7
- package/dist/chunks/{file-mutation-rz0hcvs1.js → file-mutation-471rdaac.js} +328 -328
- package/dist/chunks/{file-mutation-gkq9xxxw.js → file-mutation-48ns11pq.js} +31 -31
- package/dist/chunks/{file-mutation-cw4h5047.js → file-mutation-4dnfsash.js} +29 -29
- package/dist/chunks/{file-mutation-m6r2ag02.js → file-mutation-4gceq66t.js} +4 -4
- package/dist/chunks/{file-mutation-zgmrepvs.js → file-mutation-4pw98qd4.js} +3 -3
- package/dist/chunks/{file-mutation-mz1zez7g.js → file-mutation-4rnk6nkc.js} +43 -43
- package/dist/chunks/{file-mutation-ad8q6rp3.js → file-mutation-4yx08eh2.js} +9 -9
- package/dist/chunks/{file-mutation-jfqpy2va.js → file-mutation-535rzh00.js} +19 -19
- package/dist/chunks/{file-mutation-3g9qcz5y.js → file-mutation-550hghqf.js} +10 -10
- package/dist/chunks/{file-mutation-7w4z2a19.js → file-mutation-55gnfc1d.js} +52 -52
- package/dist/chunks/{file-mutation-k9kmnnb3.js → file-mutation-59syh3a3.js} +8 -8
- package/dist/chunks/{file-mutation-rt3jy22f.js → file-mutation-5fvmg1r1.js} +20 -20
- package/dist/chunks/{file-mutation-b6vsg801.js → file-mutation-5nnwax6m.js} +3 -3
- package/dist/chunks/{file-mutation-pafr3hmb.js → file-mutation-5pex491w.js} +21 -21
- package/dist/chunks/{file-mutation-gx0r2313.js → file-mutation-5rxgzxpx.js} +4 -4
- package/dist/chunks/{file-mutation-3y39jmrc.js → file-mutation-5x4h0w91.js} +14 -14
- package/dist/chunks/{file-mutation-f10m4awg.js → file-mutation-5xn9952g.js} +2 -2
- package/dist/chunks/{file-mutation-abr51mnh.js → file-mutation-67avc1k8.js} +6 -6
- package/dist/chunks/{file-mutation-rgv2frq9.js → file-mutation-6bexxghh.js} +9 -9
- package/dist/chunks/{file-mutation-4bm89b1z.js → file-mutation-6j3c7a8w.js} +9 -9
- package/dist/chunks/{file-mutation-sbegqkxp.js → file-mutation-6nc585nh.js} +5 -5
- package/dist/chunks/{file-mutation-r2m1wrpm.js → file-mutation-743x2srx.js} +12 -12
- package/dist/chunks/{file-mutation-cfbwa52m.js → file-mutation-747awqjk.js} +7 -7
- package/dist/chunks/{file-mutation-hwg1rf37.js → file-mutation-74vrwnwk.js} +14 -14
- package/dist/chunks/{file-mutation-537zfnwd.js → file-mutation-782p0d6m.js} +14 -14
- package/dist/chunks/{file-mutation-eqzqqxkz.js → file-mutation-79gmc5z2.js} +10 -10
- package/dist/chunks/{file-mutation-6pe7vn7p.js → file-mutation-7qacj1zk.js} +16 -16
- package/dist/chunks/{file-mutation-f535s2sq.js → file-mutation-7v4gnnpt.js} +19 -19
- package/dist/chunks/{file-mutation-0t3ga4zv.js → file-mutation-7v95c66a.js} +10 -10
- package/dist/chunks/{file-mutation-nz1awqkw.js → file-mutation-81axfqtx.js} +32 -32
- package/dist/chunks/{file-mutation-dg69zav8.js → file-mutation-82ae05qv.js} +12 -12
- package/dist/chunks/{file-mutation-n5h7v18c.js → file-mutation-85p7gfn7.js} +5 -5
- package/dist/chunks/{file-mutation-kz13mb51.js → file-mutation-86ak512e.js} +32 -32
- package/dist/chunks/{file-mutation-0z1e74sk.js → file-mutation-8c7d9mqr.js} +10 -10
- package/dist/chunks/{file-mutation-n0n6a7ps.js → file-mutation-94f0gtd2.js} +6 -6
- package/dist/chunks/{file-mutation-dkkf5xq4.js → file-mutation-9b9c9169.js} +22 -22
- package/dist/chunks/{file-mutation-h931zhe2.js → file-mutation-9b9nrhta.js} +44 -44
- package/dist/chunks/{file-mutation-2jmbxqq8.js → file-mutation-9fs0fy5y.js} +16 -16
- package/dist/chunks/{file-mutation-s4rs4ktr.js → file-mutation-9q4552st.js} +25 -25
- package/dist/chunks/{file-mutation-d8qd4w10.js → file-mutation-9t2khtsw.js} +9 -9
- package/dist/chunks/{file-mutation-ts7thg7k.js → file-mutation-9tjddhah.js} +36 -36
- package/dist/chunks/{file-mutation-j110d6ac.js → file-mutation-a3ve0kqa.js} +9 -9
- package/dist/chunks/{file-mutation-ejx5chcx.js → file-mutation-a4hxdnm9.js} +25 -25
- package/dist/chunks/{file-mutation-3w6s660c.js → file-mutation-a7dmfdvk.js} +13 -13
- package/dist/chunks/{file-mutation-jd41cg63.js → file-mutation-abn7vnge.js} +44 -44
- package/dist/chunks/{file-mutation-dz55c0zm.js → file-mutation-abrtv49q.js} +5 -5
- package/dist/chunks/{file-mutation-416sv9a0.js → file-mutation-asrwnq9b.js} +13 -13
- package/dist/chunks/{file-mutation-40jy4byv.js → file-mutation-av5z0m6e.js} +21 -21
- package/dist/chunks/{file-mutation-dm5qwjy7.js → file-mutation-aw7qnxd4.js} +9 -9
- package/dist/chunks/{file-mutation-1eaqqsxz.js → file-mutation-b0zdea0q.js} +29 -29
- package/dist/chunks/{file-mutation-3f3erb08.js → file-mutation-b7zzhf47.js} +7 -7
- package/dist/chunks/{file-mutation-zhv6stc2.js → file-mutation-b9d9dj3z.js} +1 -1
- package/dist/chunks/{file-mutation-kp4a0nkj.js → file-mutation-bgmahzg8.js} +48 -48
- package/dist/chunks/{file-mutation-hsb38h3t.js → file-mutation-bjeh6j1p.js} +23 -23
- package/dist/chunks/{file-mutation-xmjq5dsw.js → file-mutation-bjh3krjv.js} +19 -19
- package/dist/chunks/{file-mutation-rrad2nt9.js → file-mutation-bjhzkqyk.js} +3 -3
- package/dist/chunks/{file-mutation-psvnc0zj.js → file-mutation-bwe8ad2d.js} +20 -20
- package/dist/chunks/{file-mutation-mmkbt6v3.js → file-mutation-c3cfh5w6.js} +7 -7
- package/dist/chunks/{file-mutation-jwswcnbf.js → file-mutation-c7c27t1m.js} +14 -14
- package/dist/chunks/{file-mutation-j144xwzw.js → file-mutation-cc7rcpec.js} +5 -5
- package/dist/chunks/{file-mutation-zkgq49d1.js → file-mutation-cfkc8wvf.js} +2 -2
- package/dist/chunks/{file-mutation-kvd7rme4.js → file-mutation-cjbqfpza.js} +1 -1
- package/dist/chunks/{file-mutation-bjhhq9t1.js → file-mutation-cn264291.js} +10 -10
- package/dist/chunks/{file-mutation-kd8e7gdr.js → file-mutation-cp34p7ag.js} +1 -1
- package/dist/chunks/{file-mutation-b2fa49hh.js → file-mutation-cvmvznrx.js} +1 -1
- package/dist/chunks/{file-mutation-ys14c7h6.js → file-mutation-cwq0sf4z.js} +13 -13
- package/dist/chunks/{file-mutation-2y6rfkwc.js → file-mutation-cxa2kxks.js} +5 -5
- package/dist/chunks/{file-mutation-293dk3rs.js → file-mutation-d979ez4r.js} +13 -13
- package/dist/chunks/{file-mutation-0jy8s6kx.js → file-mutation-da9t4t99.js} +16 -16
- package/dist/chunks/{file-mutation-rvw14dk0.js → file-mutation-deg8k6mg.js} +19 -19
- package/dist/chunks/{file-mutation-6tkfv6vy.js → file-mutation-dqfc4a56.js} +17 -17
- package/dist/chunks/{file-mutation-998yhzzq.js → file-mutation-dvj9ct8m.js} +1 -1
- package/dist/chunks/{file-mutation-gzr767ae.js → file-mutation-dwarwzmx.js} +20 -20
- package/dist/chunks/{file-mutation-vxnb1daw.js → file-mutation-dzgdh8q8.js} +26 -26
- package/dist/chunks/{file-mutation-5qd3pb7m.js → file-mutation-e3qxr5gk.js} +2 -2
- package/dist/chunks/{file-mutation-hr21agsb.js → file-mutation-e4n8ygfy.js} +78 -78
- package/dist/chunks/{file-mutation-jneg3k74.js → file-mutation-e5dqjz6v.js} +3 -3
- package/dist/chunks/{file-mutation-4qeetvzp.js → file-mutation-e86res7a.js} +15 -15
- package/dist/chunks/{file-mutation-8zf098kr.js → file-mutation-eahrer4y.js} +16 -16
- package/dist/chunks/{file-mutation-z11v4z0j.js → file-mutation-edcmpgtq.js} +15 -15
- package/dist/chunks/{file-mutation-1qgwrgfd.js → file-mutation-egsctaqy.js} +21 -21
- package/dist/chunks/{file-mutation-4kxjpvmm.js → file-mutation-ems2smmp.js} +24 -24
- package/dist/chunks/{file-mutation-bfp67d1e.js → file-mutation-enfrdb2x.js} +8 -8
- package/dist/chunks/{file-mutation-b8wpdthk.js → file-mutation-epgj3jkd.js} +22 -22
- package/dist/chunks/{file-mutation-0421tmwc.js → file-mutation-eqh43b5v.js} +7 -7
- package/dist/chunks/{file-mutation-q8ks7c1m.js → file-mutation-esd6nksf.js} +21 -21
- package/dist/chunks/{file-mutation-vm0wcjea.js → file-mutation-eskv2f81.js} +8 -8
- package/dist/chunks/{file-mutation-a610t88q.js → file-mutation-ezna1kdx.js} +4 -4
- package/dist/chunks/{file-mutation-rz9csvhz.js → file-mutation-f3mkqzy7.js} +12 -12
- package/dist/chunks/{file-mutation-mfd21a06.js → file-mutation-f4275qbf.js} +3 -3
- package/dist/chunks/{file-mutation-fvc4bqe2.js → file-mutation-faewc6h3.js} +3 -3
- package/dist/chunks/{file-mutation-xs3xca8c.js → file-mutation-fbnpe429.js} +18 -18
- package/dist/chunks/{file-mutation-p7bm53gt.js → file-mutation-fm0kc2vz.js} +8 -8
- package/dist/chunks/{file-mutation-vaqsjg05.js → file-mutation-fnbj75xz.js} +5 -5
- package/dist/chunks/{file-mutation-0zc3gznn.js → file-mutation-fqje64y2.js} +21 -21
- package/dist/chunks/{file-mutation-wqvpyqgm.js → file-mutation-fqktgm0k.js} +12 -12
- package/dist/chunks/{file-mutation-3p1jq0np.js → file-mutation-frvfbmdp.js} +8 -8
- package/dist/chunks/{file-mutation-atxt4sm9.js → file-mutation-ft13nsd4.js} +6 -6
- package/dist/chunks/{file-mutation-fr0fh1nj.js → file-mutation-fymw8q55.js} +18 -18
- package/dist/chunks/{file-mutation-mr7gd4pm.js → file-mutation-g5j9106q.js} +9 -9
- package/dist/chunks/{file-mutation-w7ceskr2.js → file-mutation-gctveymt.js} +12 -12
- package/dist/chunks/{file-mutation-f2rre9xz.js → file-mutation-gqmebmt6.js} +7 -7
- package/dist/chunks/{file-mutation-5q3wnkda.js → file-mutation-h245t4yc.js} +7 -7
- package/dist/chunks/{file-mutation-3dcnb5me.js → file-mutation-h2vj4qcs.js} +12 -12
- package/dist/chunks/{file-mutation-qpxdw9gm.js → file-mutation-h8gqg4ne.js} +7 -7
- package/dist/chunks/{file-mutation-5rv30s6t.js → file-mutation-h99q40g3.js} +82 -82
- package/dist/chunks/{file-mutation-acjz1v7j.js → file-mutation-hbcfg93c.js} +6 -6
- package/dist/chunks/{file-mutation-r5zmcn5f.js → file-mutation-hgcdtq4e.js} +12 -12
- package/dist/chunks/{file-mutation-p47da6wh.js → file-mutation-hhe7s84q.js} +2 -2
- package/dist/chunks/{file-mutation-e28v8y2t.js → file-mutation-hkzhzv1f.js} +29 -29
- package/dist/chunks/{file-mutation-bpzpc9vw.js → file-mutation-htq3pgp8.js} +1 -1
- package/dist/chunks/{file-mutation-kf6qbgb5.js → file-mutation-j12nxzwd.js} +1 -1
- package/dist/chunks/{file-mutation-we6venq8.js → file-mutation-j3zafv13.js} +9 -9
- package/dist/chunks/{file-mutation-kkh6p5hg.js → file-mutation-jbscr9h1.js} +4 -4
- package/dist/chunks/{file-mutation-bd3818sh.js → file-mutation-jp8p8349.js} +4 -4
- package/dist/chunks/{file-mutation-z2a3rv7v.js → file-mutation-jw9wy7z2.js} +9 -9
- package/dist/chunks/{file-mutation-7rp33d8t.js → file-mutation-jyragf21.js} +14 -14
- package/dist/chunks/{file-mutation-906g5kdk.js → file-mutation-kmnk1vdb.js} +7 -7
- package/dist/chunks/{file-mutation-9y9qs21w.js → file-mutation-krdcrhxc.js} +10 -10
- package/dist/chunks/{file-mutation-ganf5qds.js → file-mutation-m4qx0dyh.js} +22 -22
- package/dist/chunks/{file-mutation-zhbs0pmw.js → file-mutation-m4t4ftb9.js} +32 -32
- package/dist/chunks/{file-mutation-57k3rf66.js → file-mutation-m6btfgkq.js} +16 -16
- package/dist/chunks/{file-mutation-6b8h7563.js → file-mutation-mcc21mqv.js} +5 -5
- package/dist/chunks/{file-mutation-vx3jgdek.js → file-mutation-my4zabxr.js} +3 -3
- package/dist/chunks/{file-mutation-pr21x5ks.js → file-mutation-nffa1r89.js} +28 -28
- package/dist/chunks/{file-mutation-kaen2cat.js → file-mutation-ng91319j.js} +18 -18
- package/dist/chunks/{file-mutation-nmmvaykg.js → file-mutation-nwhk50md.js} +14 -14
- package/dist/chunks/{file-mutation-1yq9hg58.js → file-mutation-p7vhpwh8.js} +4 -4
- package/dist/chunks/{file-mutation-7cbjmmn9.js → file-mutation-pef0bd6s.js} +10 -10
- package/dist/chunks/{file-mutation-e1nbxf8q.js → file-mutation-q2dhmgm2.js} +12 -12
- package/dist/chunks/{file-mutation-q1xw7kgx.js → file-mutation-q7717vr4.js} +2 -2
- package/dist/chunks/{file-mutation-h65mpfhc.js → file-mutation-qgrk9qt1.js} +44 -44
- package/dist/chunks/{file-mutation-8jztxfpf.js → file-mutation-qjgzc4b4.js} +3 -3
- package/dist/chunks/{file-mutation-3n1ze0gv.js → file-mutation-qx7wy1t5.js} +22 -22
- package/dist/chunks/{file-mutation-ajmrn4wa.js → file-mutation-r64mr812.js} +26 -26
- package/dist/chunks/{file-mutation-yt06m8xx.js → file-mutation-r6b9cme8.js} +5 -5
- package/dist/chunks/{file-mutation-997dsrmm.js → file-mutation-r6wgv8c9.js} +7 -7
- package/dist/chunks/{file-mutation-d5w8jy03.js → file-mutation-r9t475hy.js} +12 -12
- package/dist/chunks/{file-mutation-y9xrhqjb.js → file-mutation-raw26vjr.js} +5 -5
- package/dist/chunks/{file-mutation-ew73g2zp.js → file-mutation-rbcej9n7.js} +4 -4
- package/dist/chunks/{file-mutation-e8zbksk4.js → file-mutation-rds2jhhw.js} +2 -2
- package/dist/chunks/{file-mutation-rehp1ca5.js → file-mutation-rjew0wjs.js} +18 -18
- package/dist/chunks/{file-mutation-rt0txz63.js → file-mutation-rjnacbrz.js} +7 -7
- package/dist/chunks/{file-mutation-zh89wwz7.js → file-mutation-rmvh37n9.js} +7 -7
- package/dist/chunks/{file-mutation-2v6yzfrh.js → file-mutation-rskep9rf.js} +26 -26
- package/dist/chunks/{file-mutation-2cvbz1q2.js → file-mutation-ry869zts.js} +14 -14
- package/dist/chunks/{file-mutation-7r2864x8.js → file-mutation-s0cvatyn.js} +9 -9
- package/dist/chunks/{file-mutation-gh9nzn29.js → file-mutation-s4yz0bzs.js} +2 -2
- package/dist/chunks/{file-mutation-hrwtt92m.js → file-mutation-s5ypg3ex.js} +10 -10
- package/dist/chunks/{file-mutation-00zh2tpm.js → file-mutation-s6p20e1k.js} +7 -7
- package/dist/chunks/{file-mutation-h406p1d4.js → file-mutation-s6xj0n9e.js} +11 -11
- package/dist/chunks/{file-mutation-9vyfkg2v.js → file-mutation-s9ty2h8k.js} +8 -8
- package/dist/chunks/{file-mutation-mgvc1gk7.js → file-mutation-sm6n1kzz.js} +12 -12
- package/dist/chunks/{file-mutation-1k8pspw3.js → file-mutation-sn3yw1vh.js} +23 -23
- package/dist/chunks/{file-mutation-4xg6svek.js → file-mutation-svewv0nk.js} +32 -32
- package/dist/chunks/{file-mutation-gy8yxpp1.js → file-mutation-t72fmagr.js} +8 -8
- package/dist/chunks/{file-mutation-c3kxzd3k.js → file-mutation-td9q6ghh.js} +14 -14
- package/dist/chunks/{file-mutation-hbkf0bb7.js → file-mutation-tfvs93xs.js} +4 -4
- package/dist/chunks/{file-mutation-myc1cmw5.js → file-mutation-tq3mzssj.js} +11 -11
- package/dist/chunks/{file-mutation-5vmh6pxt.js → file-mutation-v35yay96.js} +14 -14
- package/dist/chunks/{file-mutation-d8c7zwkj.js → file-mutation-v8kyx9fe.js} +19 -19
- package/dist/chunks/{file-mutation-03cjnd07.js → file-mutation-v9pksffj.js} +28 -28
- package/dist/chunks/{file-mutation-2qv8esx8.js → file-mutation-vamt18wv.js} +22 -22
- package/dist/chunks/{file-mutation-04ppth10.js → file-mutation-vd9bj70h.js} +25 -25
- package/dist/chunks/file-mutation-venck2hm.js +26 -0
- package/dist/chunks/{file-mutation-3405mbpt.js → file-mutation-vf8a67bd.js} +19 -19
- package/dist/chunks/{file-mutation-g7esga4v.js → file-mutation-vmfhgzt5.js} +4 -4
- package/dist/chunks/{file-mutation-qgk279fs.js → file-mutation-vtjgj3jr.js} +38 -38
- package/dist/chunks/{file-mutation-yy2s616e.js → file-mutation-vyaq3xbs.js} +8 -8
- package/dist/chunks/{file-mutation-egmw08v6.js → file-mutation-w059c7vr.js} +3 -3
- package/dist/chunks/{file-mutation-d2dx6a7h.js → file-mutation-w35wzz9x.js} +8 -8
- package/dist/chunks/{file-mutation-ph89xtmw.js → file-mutation-w3w76j4m.js} +32 -32
- package/dist/chunks/{file-mutation-76cb1hcw.js → file-mutation-w8qtt4th.js} +3 -3
- package/dist/chunks/{file-mutation-3vf4gpqx.js → file-mutation-w9vn8wsz.js} +9 -9
- package/dist/chunks/{file-mutation-zmk1cqnw.js → file-mutation-wb23mhq7.js} +37 -37
- package/dist/chunks/{file-mutation-fv8tw6aa.js → file-mutation-wbbnhv6v.js} +2 -2
- package/dist/chunks/{file-mutation-2c4qk5dm.js → file-mutation-wbz42q9f.js} +18 -18
- package/dist/chunks/{file-mutation-cg703a76.js → file-mutation-wdh6vgg0.js} +13 -13
- package/dist/chunks/{file-mutation-0h8y3ex8.js → file-mutation-wr3re1en.js} +3 -3
- package/dist/chunks/{file-mutation-1bb7jn70.js → file-mutation-wwzjdjk2.js} +1 -1
- package/dist/chunks/{file-mutation-kb3vw7p8.js → file-mutation-x240r3kw.js} +25 -25
- package/dist/chunks/{file-mutation-3bnc55rz.js → file-mutation-xb154nqk.js} +1 -1
- package/dist/chunks/{file-mutation-0fn7fmmf.js → file-mutation-xcfcjf9d.js} +10 -10
- package/dist/chunks/{file-mutation-c2b1zq20.js → file-mutation-xh4stpws.js} +32 -32
- package/dist/chunks/{file-mutation-hvh7vr4z.js → file-mutation-xk2ssr6t.js} +8 -8
- package/dist/chunks/{file-mutation-c5kjsz6q.js → file-mutation-xpve62cf.js} +3 -3
- package/dist/chunks/{file-mutation-yz63e4xv.js → file-mutation-xq4hz08w.js} +1 -1
- package/dist/chunks/{file-mutation-m6yx9010.js → file-mutation-y0dnfxbe.js} +9 -9
- package/dist/chunks/{file-mutation-y456hjcf.js → file-mutation-y78pw8hh.js} +17 -17
- package/dist/chunks/{file-mutation-5jn2rvwm.js → file-mutation-y9nmyqm6.js} +16 -16
- package/dist/chunks/{file-mutation-czxr0pk5.js → file-mutation-yf8h703t.js} +25 -25
- package/dist/chunks/{file-mutation-ejryywa8.js → file-mutation-yhtr6e88.js} +42 -42
- package/dist/chunks/{file-mutation-n0cek02z.js → file-mutation-yprj29vk.js} +4 -4
- package/dist/chunks/{file-mutation-1daas5y7.js → file-mutation-ys5ve7gf.js} +59 -59
- package/dist/chunks/{file-mutation-bn1zwxk7.js → file-mutation-yvyt4vgc.js} +10 -10
- package/dist/chunks/file-mutation-z053f2bw.js +257 -0
- package/dist/chunks/{file-mutation-yk7z3cd9.js → file-mutation-z3789qry.js} +17 -17
- package/dist/chunks/{file-mutation-9z3zqrcq.js → file-mutation-zg057h9g.js} +16 -16
- package/dist/chunks/{file-mutation-dr3mewcq.js → file-mutation-zk52q0tv.js} +13 -13
- package/dist/chunks/{file-mutation-27bs79w9.js → file-mutation-zmwx25fz.js} +1 -1
- package/dist/chunks/{file-mutation-06ddj0xt.js → file-mutation-zz54hcfv.js} +13 -13
- package/dist/codemode/instructions.js +10 -10
- package/dist/command.js +69 -69
- package/dist/config/discovery.js +64 -64
- package/dist/config/normalize.js +77 -77
- package/dist/config/plugin/agent.js +89 -89
- package/dist/config/plugin/command.js +176 -176
- package/dist/config/plugin/compaction.js +124 -124
- package/dist/config/plugin/compatibility.js +107 -107
- package/dist/config/plugin/formatter.js +90 -90
- package/dist/config/plugin/image.js +89 -89
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +91 -91
- package/dist/config/plugin/mcp.js +93 -93
- package/dist/config/plugin/policy.js +90 -90
- package/dist/config/plugin/provider.js +89 -89
- package/dist/config/plugin/reference.js +91 -91
- package/dist/config/plugin/shell.js +91 -91
- package/dist/config/plugin/skill-file.js +79 -79
- package/dist/config/plugin/skill.js +110 -110
- package/dist/config/plugin/snapshot.js +89 -89
- package/dist/config/plugin/source.js +90 -90
- package/dist/config/plugin/tool-output.js +90 -90
- package/dist/config/plugin/websearch.js +90 -90
- package/dist/config/plugin/worktree.js +90 -90
- package/dist/config.js +95 -95
- package/dist/credential.js +64 -64
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- 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 +11 -11
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +41 -41
- package/dist/database/v1-migration.bun.js +24 -24
- package/dist/effect/app-node-builder.js +238 -238
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +69 -69
- package/dist/environment/index.js +69 -69
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +10 -10
- package/dist/file-access.js +82 -82
- package/dist/file-mutation.js +70 -70
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +191 -191
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +74 -74
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +10 -10
- package/dist/filesystem.js +77 -77
- package/dist/form.js +66 -66
- package/dist/formatter.js +63 -63
- package/dist/generate.js +83 -83
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +71 -71
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +315 -315
- package/dist/instruction-discovery.js +64 -64
- package/dist/instructions/builtins.js +67 -67
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +70 -70
- package/dist/job.js +59 -59
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +73 -73
- package/dist/location-lifecycle.js +85 -85
- package/dist/location-service-map.js +66 -66
- package/dist/location-services.js +313 -313
- package/dist/location.js +69 -69
- package/dist/managed-policy.js +7 -7
- package/dist/mcp/client.js +20 -20
- package/dist/mcp/index.js +79 -79
- package/dist/mcp/instructions.js +111 -111
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +66 -66
- package/dist/modal/models.js +71 -71
- package/dist/model-resolver.js +78 -78
- package/dist/model.js +70 -70
- package/dist/models-dev.js +80 -80
- package/dist/permission/saved.js +65 -65
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +91 -91
- package/dist/persistent-pty/index.js +66 -66
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +58 -58
- package/dist/plugin/command.js +76 -76
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +182 -182
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/internal.js +289 -289
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +90 -90
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +80 -80
- package/dist/plugin/provider/amazon-bedrock.js +70 -70
- package/dist/plugin/provider/azure.js +90 -90
- package/dist/plugin/provider/chatgpt.js +88 -88
- package/dist/plugin/provider/cloudflare-ai-gateway.js +87 -87
- package/dist/plugin/provider/cloudflare-workers-ai.js +87 -87
- package/dist/plugin/provider/configured.js +86 -86
- package/dist/plugin/provider/digitalocean.js +72 -72
- package/dist/plugin/provider/github-copilot.js +74 -74
- package/dist/plugin/provider/gitlab.js +72 -72
- package/dist/plugin/provider/google-vertex.js +87 -87
- package/dist/plugin/provider/llmgateway.js +59 -59
- package/dist/plugin/provider/lmstudio.js +95 -95
- package/dist/plugin/provider/local.js +92 -92
- package/dist/plugin/provider/modal.js +72 -72
- package/dist/plugin/provider/ollama.js +95 -95
- package/dist/plugin/provider/openai-context-caps.js +70 -70
- package/dist/plugin/provider/openai.js +90 -90
- package/dist/plugin/provider/opencode.js +80 -80
- package/dist/plugin/provider/openrouter.js +71 -71
- package/dist/plugin/provider/poe.js +59 -59
- package/dist/plugin/provider/sap-ai-core.js +70 -70
- package/dist/plugin/provider/snowflake-cortex.js +88 -88
- package/dist/plugin/provider/vercel.js +70 -70
- package/dist/plugin/provider/vllm.js +95 -95
- package/dist/plugin/provider/xai.js +71 -71
- package/dist/plugin/provider.js +135 -135
- package/dist/plugin/sdk.js +60 -60
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +106 -106
- package/dist/plugin/supervisor.js +304 -304
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +66 -66
- package/dist/plugin/vcs/hg.js +66 -66
- package/dist/plugin/verbosity.js +73 -73
- package/dist/plugin/warming.js +88 -88
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +4 -4
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +4 -4
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +194 -194
- package/dist/project/schema.js +7 -7
- package/dist/project/sql.js +2 -2
- package/dist/project.js +70 -70
- package/dist/provider.js +73 -73
- package/dist/pty.js +78 -78
- package/dist/reference/instructions.js +66 -66
- package/dist/reference.js +64 -64
- package/dist/repository-cache.js +59 -59
- package/dist/ripgrep.js +70 -70
- package/dist/rpc.js +66 -66
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +106 -106
- package/dist/session/context.js +133 -133
- package/dist/session/diff.js +67 -67
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +119 -119
- package/dist/session/execution.js +102 -102
- package/dist/session/generate.js +135 -135
- package/dist/session/history.js +11 -11
- package/dist/session/inbox.js +69 -69
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +62 -62
- package/dist/session/instruction-state.js +5 -5
- package/dist/session/instructions.js +75 -75
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +92 -92
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +105 -105
- package/dist/session/projector.js +68 -68
- package/dist/session/prompt.js +82 -82
- package/dist/session/revert.js +72 -72
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +192 -192
- package/dist/session/runner/model.js +77 -77
- package/dist/session/runner/publish-llm-event.js +90 -90
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +98 -98
- package/dist/session/runner/to-llm-message.js +10 -10
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +133 -133
- package/dist/session/shell.js +99 -99
- package/dist/session/skill.js +81 -81
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +10 -10
- package/dist/session/store.js +66 -66
- package/dist/session/subagent-job.js +177 -177
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +134 -134
- package/dist/session/to-session-error.js +89 -89
- package/dist/session/transfer.js +116 -116
- package/dist/session.js +188 -188
- package/dist/shell/parse.js +4 -4
- package/dist/shell/select.js +12 -12
- package/dist/shell.js +102 -102
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +85 -85
- package/dist/skill.js +90 -90
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +110 -110
- package/dist/tool/plugin/edit.js +95 -95
- package/dist/tool/plugin/glob.js +99 -99
- package/dist/tool/plugin/grep.js +99 -99
- package/dist/tool/plugin/mcp-resource.js +98 -98
- package/dist/tool/plugin/opencode.js +85 -85
- package/dist/tool/plugin/patch.js +91 -91
- package/dist/tool/plugin/question.js +81 -81
- package/dist/tool/plugin/read.js +99 -99
- package/dist/tool/plugin/shell.js +183 -183
- package/dist/tool/plugin/skill.js +83 -83
- package/dist/tool/plugin/subagent.js +182 -182
- package/dist/tool/plugin/todo.js +111 -111
- package/dist/tool/plugin/webfetch.js +84 -84
- package/dist/tool/plugin/websearch.js +90 -90
- package/dist/tool/plugin/write.js +91 -91
- package/dist/tool/read-filesystem.js +76 -76
- 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/mcp.js +3 -3
- package/dist/v1/config/migrate.js +71 -71
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/variant.js +73 -73
- package/dist/vcs.js +69 -69
- package/dist/voice.js +67 -67
- package/dist/websearch.js +64 -64
- package/dist/wellknown/plugin.js +58 -58
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +63 -63
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +68 -68
- package/dist/worktree.js +78 -78
- package/package.json +8 -8
- package/dist/chunks/file-mutation-k1mgqf2s.js +0 -26
- package/dist/chunks/file-mutation-vz42csha.js +0 -257
- /package/dist/chunks/{file-mutation-8sxdqgb0.js → file-mutation-0ks2n9jf.js} +0 -0
- /package/dist/chunks/{file-mutation-9s6n3p5d.js → file-mutation-245k30ek.js} +0 -0
- /package/dist/chunks/{file-mutation-rf80fxgj.js → file-mutation-2cmv458r.js} +0 -0
- /package/dist/chunks/{file-mutation-034tev2y.js → file-mutation-aj7mw0zk.js} +0 -0
- /package/dist/chunks/{file-mutation-29kdrth0.js → file-mutation-rmyqj6m3.js} +0 -0
- /package/dist/chunks/{file-mutation-51wwr1cb.js → file-mutation-yj6jvem3.js} +0 -0
|
@@ -5,26 +5,26 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./file-mutation-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./file-mutation-
|
|
8
|
+
Service82
|
|
9
|
+
} from "./file-mutation-m6btfgkq.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./file-mutation-
|
|
11
|
+
Service73
|
|
12
|
+
} from "./file-mutation-535rzh00.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./file-mutation-
|
|
14
|
+
Service71
|
|
15
|
+
} from "./file-mutation-tq3mzssj.js";
|
|
16
16
|
import {
|
|
17
17
|
DEFAULT_SEARCH_LIMIT2,
|
|
18
18
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
19
19
|
GlobInput2,
|
|
20
20
|
Entry2
|
|
21
|
-
} from "./file-mutation-
|
|
21
|
+
} from "./file-mutation-nffa1r89.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./file-mutation-
|
|
23
|
+
Service54
|
|
24
|
+
} from "./file-mutation-bgmahzg8.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./file-mutation-
|
|
26
|
+
Service53
|
|
27
|
+
} from "./file-mutation-da9t4t99.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./file-mutation-9rqn6x4v.js";
|
|
@@ -33,17 +33,17 @@ import {
|
|
|
33
33
|
var exports_glob = {};
|
|
34
34
|
__export(exports_glob, {
|
|
35
35
|
GlobTool: () => exports_glob,
|
|
36
|
-
Input: () =>
|
|
37
|
-
Output: () =>
|
|
38
|
-
Plugin: () =>
|
|
39
|
-
name: () =>
|
|
40
|
-
toModelContent: () =>
|
|
36
|
+
Input: () => Input4,
|
|
37
|
+
Output: () => Output4,
|
|
38
|
+
Plugin: () => Plugin4,
|
|
39
|
+
name: () => name4,
|
|
40
|
+
toModelContent: () => toModelContent2
|
|
41
41
|
});
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import path from "path";
|
|
45
|
-
var
|
|
46
|
-
var
|
|
45
|
+
var name4 = "glob";
|
|
46
|
+
var Input4 = Schema.Struct({
|
|
47
47
|
pattern: GlobInput2.fields.pattern.annotate({ description: "Glob pattern to match files against" }),
|
|
48
48
|
path: Schema.optionalKey(RelativePath2).annotate({
|
|
49
49
|
description: "Directory to search. Defaults to the current working directory."
|
|
@@ -55,35 +55,35 @@ var Input11 = Schema.Struct({
|
|
|
55
55
|
description: `Maximum number of matching files to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
56
56
|
})
|
|
57
57
|
});
|
|
58
|
-
var
|
|
59
|
-
var
|
|
58
|
+
var Output4 = Schema.Array(Entry2);
|
|
59
|
+
var toModelContent2 = (entries, truncated = false) => {
|
|
60
60
|
const lines = entries.length === 0 ? ["No files found"] : entries.map((item) => item.path);
|
|
61
61
|
if (truncated)
|
|
62
62
|
lines.push("", `(Results are truncated: showing first ${entries.length} results. Consider using a more specific path or pattern.)`);
|
|
63
63
|
return lines.join(`
|
|
64
64
|
`);
|
|
65
65
|
};
|
|
66
|
-
var
|
|
66
|
+
var Plugin4 = {
|
|
67
67
|
id: "opencode.tool.glob",
|
|
68
68
|
effect: Effect.fn("GlobTool.Plugin")(function* (ctx) {
|
|
69
|
-
const environment = yield*
|
|
70
|
-
const ripgrep = yield*
|
|
71
|
-
const location = yield*
|
|
72
|
-
const access = yield*
|
|
73
|
-
const permission = yield*
|
|
69
|
+
const environment = yield* Service73;
|
|
70
|
+
const ripgrep = yield* Service71;
|
|
71
|
+
const location = yield* Service82;
|
|
72
|
+
const access = yield* Service53;
|
|
73
|
+
const permission = yield* Service54;
|
|
74
74
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
75
|
-
name:
|
|
75
|
+
name: name4,
|
|
76
76
|
options: { codemode: false },
|
|
77
77
|
description: 'Search file paths using a glob pattern (examples: "**/*.ts", "src/**/*.tsx").',
|
|
78
|
-
input:
|
|
79
|
-
output:
|
|
78
|
+
input: Input4,
|
|
79
|
+
output: Output4,
|
|
80
80
|
execute: (input, context) => Effect.gen(function* () {
|
|
81
81
|
const searchPath = input.path === "undefined" || input.path === "null" ? undefined : input.path;
|
|
82
82
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
83
83
|
const target = yield* access.resolve({ path: searchPath ?? ".", kind: "directory" });
|
|
84
84
|
yield* access.authorizeExternal([target], context);
|
|
85
85
|
yield* permission.assert({
|
|
86
|
-
action:
|
|
86
|
+
action: name4,
|
|
87
87
|
resources: [input.pattern],
|
|
88
88
|
save: ["*"],
|
|
89
89
|
metadata: {
|
|
@@ -118,11 +118,11 @@ var Plugin31 = {
|
|
|
118
118
|
return { entries: entries.slice(0, limit), truncated: entries.length > limit };
|
|
119
119
|
}).pipe(Effect.map((result) => ({
|
|
120
120
|
output: result.entries,
|
|
121
|
-
content:
|
|
121
|
+
content: toModelContent2(result.entries.map((entry) => ({ ...entry, path: path.resolve(location.directory, entry.path) })), result.truncated),
|
|
122
122
|
metadata: { count: result.entries.length, truncated: result.truncated }
|
|
123
123
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to find files matching ${input.pattern}`, error })))
|
|
124
124
|
})).pipe(Effect.orDie);
|
|
125
125
|
})
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { name4, Input4, Output4, toModelContent2, Plugin4, exports_glob };
|
|
@@ -8,9 +8,9 @@ import {
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service29,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer16,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
15
|
node: () => node32
|
|
16
16
|
});
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service29 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service29, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service28, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service29.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer16 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var node32 = makeGlobalNode({ service:
|
|
375
|
+
var node32 = makeGlobalNode({ service: Service29, layer: layer16, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service29, makeLayer2, layer16, node32, exports_model_transport };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./file-mutation-
|
|
3
|
+
} from "./file-mutation-xcfcjf9d.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./file-mutation-
|
|
6
|
+
} from "./file-mutation-q7717vr4.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./file-mutation-
|
|
9
|
+
Event18,
|
|
10
|
+
Service78
|
|
11
|
+
} from "./file-mutation-9q4552st.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID14,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./file-mutation-
|
|
15
|
+
} from "./file-mutation-dzgdh8q8.js";
|
|
16
16
|
import {
|
|
17
17
|
ID13,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./file-mutation-
|
|
19
|
+
} from "./file-mutation-5pex491w.js";
|
|
20
20
|
import {
|
|
21
21
|
ID12,
|
|
22
22
|
VariantID2,
|
|
23
23
|
Info21
|
|
24
|
-
} from "./file-mutation-
|
|
24
|
+
} from "./file-mutation-s5ypg3ex.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
} from "./file-mutation-3nnrz6f6.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./file-mutation-
|
|
34
|
+
} from "./file-mutation-94f0gtd2.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -44,7 +44,7 @@ var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
46
|
var providerID = ID13.openai;
|
|
47
|
-
var integrationID =
|
|
47
|
+
var integrationID = ID14.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -180,7 +180,7 @@ var ChatGPTPlugin2 = define({
|
|
|
180
180
|
id: "opencode.provider.chatgpt",
|
|
181
181
|
effect: Effect.fn(function* (ctx) {
|
|
182
182
|
const bus = yield* Service85;
|
|
183
|
-
const credentials = yield*
|
|
183
|
+
const credentials = yield* Service78;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let chatgpt;
|
|
186
186
|
let source;
|
|
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
|
|
|
195
195
|
yield* ctx.integration.transform((editor) => {
|
|
196
196
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
197
197
|
});
|
|
198
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
198
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
|
|
199
199
|
const value = entry.value;
|
|
200
200
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
201
201
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var ChatGPTPlugin2 = define({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
271
|
-
yield* bus.subscribe(
|
|
271
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
274
|
function headers(app) {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./file-mutation-
|
|
5
|
+
} from "./file-mutation-cp34p7ag.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
|
-
|
|
9
|
+
make23,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./file-mutation-
|
|
11
|
+
} from "./file-mutation-fnbj75xz.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./file-mutation-9rqn6x4v.js";
|
|
@@ -22,7 +22,7 @@ __export(exports_drizzle, {
|
|
|
22
22
|
EffectSQLiteDatabase: () => EffectSQLiteDatabase2,
|
|
23
23
|
EffectSQLiteSession: () => EffectSQLiteSession2,
|
|
24
24
|
EffectSQLiteTransaction: () => EffectSQLiteTransaction2,
|
|
25
|
-
make: () =>
|
|
25
|
+
make: () => make23,
|
|
26
26
|
makeWithDefaults: () => makeWithDefaults2,
|
|
27
27
|
managesTransactionsNatively: () => managesTransactionsNatively2
|
|
28
28
|
});
|
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
RelativePath2
|
|
5
5
|
} from "./file-mutation-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./file-mutation-
|
|
7
|
+
Service73,
|
|
8
|
+
node76
|
|
9
|
+
} from "./file-mutation-535rzh00.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
12
|
} from "./file-mutation-maspj1v3.js";
|
|
@@ -20,8 +20,8 @@ __export(exports_ripgrep, {
|
|
|
20
20
|
Error: () => Error4,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service71,
|
|
24
|
+
node: () => node74
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/process";
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service71 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
63
|
var failure = (message, cause) => new Error4({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service73;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -92,7 +92,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
93
|
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error4 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service71.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -175,6 +175,6 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
175
175
|
}))))
|
|
176
176
|
});
|
|
177
177
|
}));
|
|
178
|
-
var
|
|
178
|
+
var node74 = makeLocationNode({ service: Service71, layer, deps: [node76, RipgrepBinary2.node] });
|
|
179
179
|
|
|
180
|
-
export { Error4, InvalidPatternError2,
|
|
180
|
+
export { Error4, InvalidPatternError2, Service71, node74, exports_ripgrep };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-mutation-
|
|
2
|
+
Service54
|
|
3
|
+
} from "./file-mutation-bgmahzg8.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID4,
|
|
6
6
|
Name2,
|
|
7
7
|
toModelOutput3,
|
|
8
8
|
prepare3,
|
|
9
|
-
|
|
10
|
-
} from "./file-mutation-
|
|
9
|
+
Service35
|
|
10
|
+
} from "./file-mutation-esd6nksf.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./file-mutation-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/tool/plugin/skill.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
16
|
+
var exports_skill = {};
|
|
17
|
+
__export(exports_skill, {
|
|
18
18
|
Input: () => Input2,
|
|
19
19
|
Output: () => Output2,
|
|
20
|
-
Plugin: () =>
|
|
21
|
-
SkillTool: () =>
|
|
20
|
+
Plugin: () => Plugin2,
|
|
21
|
+
SkillTool: () => exports_skill,
|
|
22
22
|
description: () => description2,
|
|
23
23
|
name: () => name2,
|
|
24
24
|
toModelOutput: () => toModelOutput2
|
|
@@ -28,7 +28,7 @@ import { Effect, Schema } from "effect";
|
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
29
|
var name2 = "skill";
|
|
30
30
|
var Input2 = Schema.Struct({
|
|
31
|
-
id:
|
|
31
|
+
id: ID4.annotate({ description: "The ID of an available skill or a skill explicitly referenced by the user" })
|
|
32
32
|
});
|
|
33
33
|
var Output2 = Schema.Struct({
|
|
34
34
|
name: Name2,
|
|
@@ -43,12 +43,12 @@ var description2 = [
|
|
|
43
43
|
`);
|
|
44
44
|
var toModelOutput2 = toModelOutput3;
|
|
45
45
|
var unableToLoad = (name, error) => new ToolFailure({ message: `Unable to load skill ${name}`, error });
|
|
46
|
-
var
|
|
46
|
+
var Plugin2 = {
|
|
47
47
|
id: "opencode.tool.skill",
|
|
48
48
|
effect: Effect.fn("SkillTool.Plugin")(function* (ctx) {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const skills = yield*
|
|
51
|
-
const permission = yield*
|
|
50
|
+
const skills = yield* Service35;
|
|
51
|
+
const permission = yield* Service54;
|
|
52
52
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
53
53
|
name: name2,
|
|
54
54
|
options: { codemode: false },
|
|
@@ -79,4 +79,4 @@ var Plugin21 = {
|
|
|
79
79
|
})
|
|
80
80
|
};
|
|
81
81
|
|
|
82
|
-
export { name2, Input2, Output2, description2, toModelOutput2,
|
|
82
|
+
export { name2, Input2, Output2, description2, toModelOutput2, Plugin2, exports_skill };
|
|
@@ -13,13 +13,13 @@ import {
|
|
|
13
13
|
create3
|
|
14
14
|
} from "./file-mutation-vd3b3yk9.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./file-mutation-
|
|
16
|
+
Service80,
|
|
17
|
+
node84
|
|
18
|
+
} from "./file-mutation-h245t4yc.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./file-mutation-
|
|
20
|
+
Service68,
|
|
21
|
+
node71
|
|
22
|
+
} from "./file-mutation-45t4pvv9.js";
|
|
23
23
|
import {
|
|
24
24
|
match2
|
|
25
25
|
} from "./file-mutation-z38nccrw.js";
|
|
@@ -32,15 +32,15 @@ var exports_tool = {};
|
|
|
32
32
|
__export(exports_tool, {
|
|
33
33
|
CallID: () => CallID2,
|
|
34
34
|
Content: () => Content2,
|
|
35
|
-
Error: () =>
|
|
35
|
+
Error: () => Error2,
|
|
36
36
|
FileContent: () => FileContent3,
|
|
37
37
|
RegistrationError: () => RegistrationError2,
|
|
38
|
-
Service: () =>
|
|
38
|
+
Service: () => Service36,
|
|
39
39
|
TextContent: () => TextContent2,
|
|
40
40
|
Tool: () => exports_tool,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node39
|
|
42
42
|
});
|
|
43
|
-
import { CallID as CallID2, Content as Content2, Error as
|
|
43
|
+
import { CallID as CallID2, Content as Content2, Error as Error2, FileContent as FileContent3, TextContent as TextContent2 } from "@opencode/schema/tool";
|
|
44
44
|
import { ToolDefinition } from "@opencode/ai";
|
|
45
45
|
import { Tool } from "@opencode/schema/tool";
|
|
46
46
|
import { Context, Effect, Layer, Result, Schema, SchemaIssue } from "effect";
|
|
@@ -51,11 +51,11 @@ class RegistrationError2 extends Schema.TaggedError()("Tool.RegistrationError",
|
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service36 extends Context.Service()("@opencode/Tool") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
57
|
-
const hooks = yield*
|
|
58
|
-
const image = yield*
|
|
56
|
+
var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
57
|
+
const hooks = yield* Service68;
|
|
58
|
+
const image = yield* Service80;
|
|
59
59
|
const normalizeImages = Effect.fnUntraced(function* (content) {
|
|
60
60
|
const normalized = yield* Effect.forEach(content, (item) => {
|
|
61
61
|
if (item.type !== "file" || !item.mime.startsWith("image/"))
|
|
@@ -184,7 +184,7 @@ var layer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
184
184
|
}), { discard: true });
|
|
185
185
|
}
|
|
186
186
|
});
|
|
187
|
-
return
|
|
187
|
+
return Service36.of({
|
|
188
188
|
transform: state.transform,
|
|
189
189
|
reload: state.reload,
|
|
190
190
|
list: () => Effect.sync(() => Array.from(state.get().tools.values())),
|
|
@@ -273,10 +273,10 @@ function namespaceError(name) {
|
|
|
273
273
|
return;
|
|
274
274
|
return new RegistrationError2({ name, message: `Invalid tool namespace: ${JSON.stringify(name)}` });
|
|
275
275
|
}
|
|
276
|
-
var
|
|
277
|
-
service:
|
|
276
|
+
var node39 = makeLocationNode({
|
|
277
|
+
service: Service36,
|
|
278
278
|
layer,
|
|
279
|
-
deps: [
|
|
279
|
+
deps: [node71, node84]
|
|
280
280
|
});
|
|
281
281
|
|
|
282
|
-
export { RegistrationError2,
|
|
282
|
+
export { RegistrationError2, Service36, node39, exports_tool, CallID2, Content2, Error2, FileContent3, TextContent2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-mutation-
|
|
2
|
+
Service82
|
|
3
|
+
} from "./file-mutation-m6btfgkq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-mutation-
|
|
5
|
+
Service73
|
|
6
|
+
} from "./file-mutation-535rzh00.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
Service72,
|
|
9
9
|
readText2,
|
|
10
10
|
syncTextBom2
|
|
11
|
-
} from "./file-mutation-
|
|
11
|
+
} from "./file-mutation-gctveymt.js";
|
|
12
12
|
import {
|
|
13
13
|
Service14
|
|
14
|
-
} from "./file-mutation-
|
|
14
|
+
} from "./file-mutation-r6b9cme8.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./file-mutation-
|
|
16
|
+
Service54
|
|
17
|
+
} from "./file-mutation-bgmahzg8.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Service53,
|
|
20
20
|
resolvePath2
|
|
21
|
-
} from "./file-mutation-
|
|
21
|
+
} from "./file-mutation-da9t4t99.js";
|
|
22
22
|
import {
|
|
23
23
|
fileDiff2
|
|
24
24
|
} from "./file-mutation-6prwharc.js";
|
|
@@ -30,17 +30,17 @@ import {
|
|
|
30
30
|
var exports_edit = {};
|
|
31
31
|
__export(exports_edit, {
|
|
32
32
|
EditTool: () => exports_edit,
|
|
33
|
-
Input: () =>
|
|
34
|
-
Output: () =>
|
|
35
|
-
Plugin: () =>
|
|
36
|
-
name: () =>
|
|
33
|
+
Input: () => Input3,
|
|
34
|
+
Output: () => Output3,
|
|
35
|
+
Plugin: () => Plugin3,
|
|
36
|
+
name: () => name3
|
|
37
37
|
});
|
|
38
38
|
import { ToolFailure } from "@opencode/ai";
|
|
39
39
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
40
40
|
import { Bom } from "@opencode/util/bom";
|
|
41
41
|
import { Effect, Schema } from "effect";
|
|
42
|
-
var
|
|
43
|
-
var
|
|
42
|
+
var name3 = "edit";
|
|
43
|
+
var Input3 = Schema.Struct({
|
|
44
44
|
path: Schema.String.annotate({
|
|
45
45
|
description: "File to edit"
|
|
46
46
|
}),
|
|
@@ -50,7 +50,7 @@ var Input13 = Schema.Struct({
|
|
|
50
50
|
description: "Whether to replace every occurrence of oldString. When false, oldString must match exactly once. Defaults to false."
|
|
51
51
|
})
|
|
52
52
|
});
|
|
53
|
-
var
|
|
53
|
+
var Output3 = Schema.Struct({
|
|
54
54
|
files: Schema.Array(FileDiff.Info),
|
|
55
55
|
replacements: Schema.Number
|
|
56
56
|
});
|
|
@@ -190,21 +190,21 @@ var countBefore = (positions, offset) => {
|
|
|
190
190
|
}
|
|
191
191
|
return low;
|
|
192
192
|
};
|
|
193
|
-
var
|
|
193
|
+
var Plugin3 = {
|
|
194
194
|
id: "opencode.tool.edit",
|
|
195
195
|
effect: Effect.fn("EditTool.Plugin")(function* (ctx) {
|
|
196
|
-
const access = yield*
|
|
197
|
-
const fileMutation = yield*
|
|
198
|
-
const environment = yield*
|
|
196
|
+
const access = yield* Service53;
|
|
197
|
+
const fileMutation = yield* Service72;
|
|
198
|
+
const environment = yield* Service73;
|
|
199
199
|
const formatter = yield* Service14;
|
|
200
|
-
const location = yield*
|
|
201
|
-
const permission = yield*
|
|
200
|
+
const location = yield* Service82;
|
|
201
|
+
const permission = yield* Service54;
|
|
202
202
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
203
|
-
name:
|
|
203
|
+
name: name3,
|
|
204
204
|
options: { codemode: false, permission: "edit" },
|
|
205
205
|
description: "Edit the contents of a file by finding and replacing exact text. When editing text from Read output, preserve the exact indentation (tabs or spaces) and omit the line-number prefix, such as `1: `. Never include the prefix in oldString or newString. Write line breaks as \\n; the file's existing CRLF or LF line endings are matched and preserved. To change line endings themselves, make oldString and newString differ only in \\r; that edit applies to the exact bytes. If there is no exact match, the edit retries while ignoring typographic quote, dash, and space variants, then trailing whitespace on each line. The edit fails if oldString is not found. By default, oldString must identify a UNIQUE location. Multiple matches FAIL unless replaceAll is true. Add more surrounding context to disambiguate, or set replaceAll to true to replace every occurrence. Use replaceAll when the change should apply to every occurrence, such as renaming a variable.",
|
|
206
|
-
input:
|
|
207
|
-
output:
|
|
206
|
+
input: Input3,
|
|
207
|
+
output: Output3,
|
|
208
208
|
execute: (input, context) => {
|
|
209
209
|
return Effect.gen(function* () {
|
|
210
210
|
const permissionSource = {
|
|
@@ -276,4 +276,4 @@ var Plugin34 = {
|
|
|
276
276
|
})
|
|
277
277
|
};
|
|
278
278
|
|
|
279
|
-
export {
|
|
279
|
+
export { name3, Input3, Output3, Plugin3, exports_edit };
|