@opencode/core 0.0.0-dev-20458 → 0.0.0-dev-20459
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 +57 -57
- package/dist/aisdk-native.js +65 -65
- package/dist/aisdk.js +70 -70
- package/dist/app.js +7 -7
- package/dist/bus.js +57 -57
- package/dist/chunks/{instance-mkccq93r.js → instance-006cpe9s.js} +10 -10
- package/dist/chunks/{instance-vdgqbsa8.js → instance-04patph1.js} +46 -46
- package/dist/chunks/{instance-czwvhvr9.js → instance-07jdfws3.js} +2 -2
- package/dist/chunks/{instance-rzye388s.js → instance-0c0z9bb0.js} +9 -9
- package/dist/chunks/{instance-cetwbnth.js → instance-0cd3vbtq.js} +13 -13
- package/dist/chunks/{instance-3mfsspf8.js → instance-0e6kpe0n.js} +16 -16
- package/dist/chunks/{instance-qgn6gcr1.js → instance-0jwsre1p.js} +4 -4
- package/dist/chunks/{instance-9qhj4rb3.js → instance-0kp341a1.js} +3 -3
- package/dist/chunks/{instance-b674v2dg.js → instance-0r3c1bmw.js} +3 -3
- package/dist/chunks/{instance-fmm0ea6b.js → instance-0s40dmg0.js} +1 -1
- package/dist/chunks/{instance-gm7qz8z1.js → instance-0z7awhz4.js} +8 -8
- package/dist/chunks/{instance-hgzqk73z.js → instance-14j7vbvd.js} +24 -24
- package/dist/chunks/{instance-m2edmvdf.js → instance-150gm8dh.js} +1 -1
- package/dist/chunks/{instance-mf44wyvt.js → instance-150yg2gd.js} +3 -3
- package/dist/chunks/{instance-qm0v3jhh.js → instance-1g7epwpd.js} +3 -3
- package/dist/chunks/{instance-b4twkq7r.js → instance-1p07q0wb.js} +7 -7
- package/dist/chunks/{instance-kyabe0v0.js → instance-2h6m51wg.js} +69 -69
- package/dist/chunks/{instance-brjvjqv5.js → instance-2nms86f2.js} +9 -9
- package/dist/chunks/{instance-0b1gbhdy.js → instance-302enh8v.js} +19 -19
- package/dist/chunks/{instance-1ygqh575.js → instance-33w4ejhs.js} +4 -4
- package/dist/chunks/{instance-dhxwrsxr.js → instance-34tfdkw1.js} +2 -2
- package/dist/chunks/{instance-dbvkr17y.js → instance-3d9trtq5.js} +7 -7
- package/dist/chunks/{instance-2pk3gm9k.js → instance-3dyj9tvq.js} +24 -24
- package/dist/chunks/{instance-5d7n5a2f.js → instance-3xrbct49.js} +17 -17
- package/dist/chunks/{instance-gjjdjfty.js → instance-40zawzex.js} +10 -10
- package/dist/chunks/{instance-w2fn3h92.js → instance-46fg3rx3.js} +9 -9
- package/dist/chunks/{instance-3q8zkhc1.js → instance-4eqz3jqh.js} +15 -15
- package/dist/chunks/{instance-q9vgr7d0.js → instance-4n152zfg.js} +28 -28
- package/dist/chunks/{instance-yv992ezf.js → instance-4ttxv9py.js} +18 -18
- package/dist/chunks/{instance-20vws8nf.js → instance-4za8nk2k.js} +9 -9
- package/dist/chunks/{instance-58z4d63q.js → instance-518jkj7v.js} +26 -26
- package/dist/chunks/{instance-g5w8qwbj.js → instance-57b9ws8p.js} +6 -6
- package/dist/chunks/{instance-80vtgbq2.js → instance-5es1pjj6.js} +3 -3
- package/dist/chunks/{instance-6z9y85k1.js → instance-5je8m3jx.js} +8 -8
- package/dist/chunks/{instance-v04wwvsp.js → instance-5nrzr7ct.js} +29 -29
- package/dist/chunks/{instance-7n7ad4fb.js → instance-5rnnm2b5.js} +7 -7
- package/dist/chunks/{instance-n8sna2wb.js → instance-5tcm9639.js} +7 -7
- package/dist/chunks/{instance-5tpz2m3t.js → instance-5wmv1tg6.js} +1 -1
- package/dist/chunks/{instance-ndqtf2h8.js → instance-5yeq06a0.js} +6 -6
- package/dist/chunks/{instance-hmx1tyyz.js → instance-606e7s57.js} +7 -7
- package/dist/chunks/{instance-ztm6ar58.js → instance-60x1k7hx.js} +1 -1
- package/dist/chunks/{instance-vjgq4j9h.js → instance-6gfw1ghr.js} +11 -11
- package/dist/chunks/{instance-e7d5nws2.js → instance-6pjtevrc.js} +28 -28
- package/dist/chunks/{instance-4q0m47hf.js → instance-6ygh8s3c.js} +4 -4
- package/dist/chunks/{instance-f6qx0jzz.js → instance-70t18mqs.js} +8 -8
- package/dist/chunks/{instance-9wnhkg6w.js → instance-739rjwq9.js} +7 -7
- package/dist/chunks/{instance-2h0scenq.js → instance-74f7excz.js} +6 -6
- package/dist/chunks/{instance-btc3158z.js → instance-75a3cna9.js} +10 -10
- package/dist/chunks/{instance-015m23px.js → instance-77qq1s9z.js} +8 -8
- package/dist/chunks/{instance-2szhtpkv.js → instance-78k9vaf3.js} +9 -9
- package/dist/chunks/{instance-8d5t2vvx.js → instance-7c07r6hx.js} +21 -21
- package/dist/chunks/{instance-5fy4e4tb.js → instance-7mffjq9g.js} +20 -20
- package/dist/chunks/{instance-pdwapt9c.js → instance-7t13cj25.js} +12 -12
- package/dist/chunks/{instance-2t21n426.js → instance-7vfa1psg.js} +10 -10
- package/dist/chunks/{instance-s9qnq6pe.js → instance-7x6gh4an.js} +14 -14
- package/dist/chunks/{instance-nganrt21.js → instance-8bsn6f2d.js} +8 -8
- package/dist/chunks/{instance-eyxc97vv.js → instance-8ce34gc3.js} +10 -10
- package/dist/chunks/{instance-00pg5zhv.js → instance-8hjv5cv7.js} +16 -16
- package/dist/chunks/{instance-7w99qc9d.js → instance-8jmaqybk.js} +3 -3
- package/dist/chunks/{instance-f4ebad7r.js → instance-8sktcs9h.js} +1 -1
- package/dist/chunks/{instance-nee1tebr.js → instance-95n0z8yt.js} +35 -35
- package/dist/chunks/{instance-rkp923y0.js → instance-95wke98n.js} +12 -12
- package/dist/chunks/{instance-3sg7cfxv.js → instance-9ch42aem.js} +12 -12
- package/dist/chunks/{instance-wv8d71kk.js → instance-9gv4gxjk.js} +10 -10
- package/dist/chunks/{instance-f0m2dg7d.js → instance-9n69v1x6.js} +10 -10
- package/dist/chunks/{instance-ngt3bghc.js → instance-9qkaq91a.js} +32 -32
- package/dist/chunks/{instance-f505wbse.js → instance-9takmydb.js} +18 -18
- package/dist/chunks/{instance-m65sn8f4.js → instance-9v1rcmf3.js} +21 -21
- package/dist/chunks/{instance-73tb2d7t.js → instance-a1gpj94z.js} +2 -2
- package/dist/chunks/{instance-d4qa0qfv.js → instance-a67p0hr6.js} +16 -16
- package/dist/chunks/{instance-magykp64.js → instance-a8bn8zg0.js} +3 -3
- package/dist/chunks/{instance-bfj9gtye.js → instance-amy5qkrp.js} +25 -25
- package/dist/chunks/{instance-scgrse2b.js → instance-b3f8fkhc.js} +3 -3
- package/dist/chunks/{instance-cs9whkk7.js → instance-b4qxwt9k.js} +14 -14
- package/dist/chunks/{instance-ypn5saxa.js → instance-brdsstcs.js} +6 -6
- package/dist/chunks/{instance-6dzjgzbs.js → instance-bwgsq9zx.js} +12 -12
- package/dist/chunks/{instance-2tyrcpf2.js → instance-bx3zmwnw.js} +36 -36
- package/dist/chunks/{instance-secp749g.js → instance-c10vj68m.js} +12 -12
- package/dist/chunks/{instance-s5ma4nnf.js → instance-c1nqqcsf.js} +10 -10
- package/dist/chunks/{instance-pcxghkgz.js → instance-c651xxjb.js} +3 -3
- package/dist/chunks/{instance-kvzqy6qp.js → instance-c6w733a6.js} +1 -1
- package/dist/chunks/{instance-5hznrh9n.js → instance-cjy5bspn.js} +11 -11
- package/dist/chunks/{instance-609j44ke.js → instance-cnm7gtc7.js} +13 -13
- package/dist/chunks/{instance-fr228w7t.js → instance-cnqvj8ka.js} +16 -16
- package/dist/chunks/{instance-djszqvmq.js → instance-cwa6csj7.js} +7 -7
- package/dist/chunks/{instance-737w3rsy.js → instance-d27qdxv0.js} +11 -11
- package/dist/chunks/{instance-d5fjybqm.js → instance-d3rv797j.js} +35 -35
- package/dist/chunks/{instance-6gwmtew3.js → instance-d42q0bmg.js} +11 -11
- package/dist/chunks/{instance-3wsmfqm0.js → instance-dabym8s8.js} +12 -12
- package/dist/chunks/{instance-k6a2pdty.js → instance-demywcdx.js} +7 -7
- package/dist/chunks/{instance-nxm207yx.js → instance-dpkg50ah.js} +3 -3
- package/dist/chunks/{instance-1pxz8ven.js → instance-dssbfrwz.js} +3 -3
- package/dist/chunks/{instance-vt1cb0am.js → instance-e43ed2jt.js} +43 -43
- package/dist/chunks/{instance-pkv65tq2.js → instance-e6va3c82.js} +10 -10
- package/dist/chunks/{instance-nsrnv5kf.js → instance-e9rhbs3a.js} +16 -16
- package/dist/chunks/{instance-rssvetrh.js → instance-epsw7pz8.js} +18 -18
- package/dist/chunks/{instance-zcx41tkt.js → instance-es7z1sjv.js} +15 -15
- package/dist/chunks/{instance-xf2yakef.js → instance-ez6tcw79.js} +309 -309
- package/dist/chunks/{instance-xzr1z753.js → instance-f18r49ca.js} +2 -2
- package/dist/chunks/{instance-n0grfzm5.js → instance-f31ghft7.js} +11 -11
- package/dist/chunks/{instance-y60kwh1p.js → instance-fa4nhyn2.js} +6 -6
- package/dist/chunks/{instance-9hn6k4tm.js → instance-g0445xdp.js} +7 -7
- package/dist/chunks/{instance-vw0q9s5h.js → instance-g13nm76b.js} +11 -11
- package/dist/chunks/{instance-regq3jrq.js → instance-g18c16cn.js} +3 -3
- package/dist/chunks/instance-g364gnk5.js +26 -0
- package/dist/chunks/{instance-14prtx3d.js → instance-g68t44he.js} +13 -13
- package/dist/chunks/{instance-tvw7danf.js → instance-g7c4yftw.js} +7 -7
- package/dist/chunks/{instance-4xxxtaen.js → instance-gft05b0a.js} +7 -7
- package/dist/chunks/{instance-pkeqyyve.js → instance-gn60kf7m.js} +19 -19
- package/dist/chunks/{instance-m1676143.js → instance-gpzcze5e.js} +14 -14
- package/dist/chunks/{instance-2h52797h.js → instance-grrc4g7y.js} +21 -21
- package/dist/chunks/{instance-k44a57f8.js → instance-gwr845s3.js} +9 -9
- package/dist/chunks/{instance-q70yec4x.js → instance-gxpprz3s.js} +7 -7
- package/dist/chunks/{instance-cxt5e3x9.js → instance-gycmxys7.js} +2 -2
- package/dist/chunks/{instance-ya18w9wm.js → instance-gytnw8gq.js} +2 -2
- package/dist/chunks/{instance-gmmdfr2g.js → instance-h4ckqw4f.js} +6 -6
- package/dist/chunks/{instance-snn5f3r6.js → instance-h800dp36.js} +1 -1
- package/dist/chunks/{instance-r2e8cc9x.js → instance-h81bv7e8.js} +23 -23
- package/dist/chunks/{instance-8apx5gfk.js → instance-hg3c5njm.js} +8 -8
- package/dist/chunks/{instance-qkfezwh6.js → instance-hgtd7sxh.js} +5 -5
- package/dist/chunks/{instance-9hs4he1x.js → instance-hqy8xs6f.js} +1 -1
- package/dist/chunks/{instance-5bsr47cr.js → instance-hs1x7rht.js} +8 -8
- package/dist/chunks/{instance-st3j4ccm.js → instance-hsem1vfx.js} +57 -57
- package/dist/chunks/{instance-xg077wsa.js → instance-hymecz7t.js} +13 -13
- package/dist/chunks/{instance-dvc89yjx.js → instance-hz0q9sdq.js} +7 -7
- package/dist/chunks/{instance-trpbd7b8.js → instance-j2cpvh4f.js} +14 -14
- package/dist/chunks/{instance-pmwpe40e.js → instance-j5rxtxht.js} +3 -3
- package/dist/chunks/{instance-jmw2ajwk.js → instance-j7w2wpf2.js} +10 -10
- package/dist/chunks/{instance-96egq0ta.js → instance-jaygjqgz.js} +9 -9
- package/dist/chunks/{instance-32ymn5e1.js → instance-jebmra90.js} +4 -4
- package/dist/chunks/{instance-xf4gk9z8.js → instance-jf31dbgv.js} +28 -28
- package/dist/chunks/{instance-dd4cqgmp.js → instance-jg7chebn.js} +20 -20
- package/dist/chunks/{instance-4k9m2p83.js → instance-jjcptf9d.js} +18 -18
- package/dist/chunks/{instance-2wq10d0p.js → instance-jt0hy6rk.js} +6 -6
- package/dist/chunks/{instance-f6v4y3x1.js → instance-jvyyz55n.js} +19 -19
- package/dist/chunks/{instance-ythmwxrm.js → instance-k4jh001b.js} +8 -8
- package/dist/chunks/{instance-761m9ptj.js → instance-k8f3jam7.js} +3 -3
- package/dist/chunks/{instance-7fdxqfh7.js → instance-kd6ndh29.js} +26 -26
- package/dist/chunks/{instance-f0cxs0mr.js → instance-keezpjbp.js} +19 -19
- package/dist/chunks/{instance-07bjzqdq.js → instance-kev04684.js} +3 -3
- package/dist/chunks/{instance-jnw65xtg.js → instance-kv8rae5j.js} +9 -9
- package/dist/chunks/{instance-cv97kere.js → instance-mcn8h4gm.js} +121 -121
- package/dist/chunks/{instance-s4anq1bw.js → instance-mg83pbjr.js} +3 -3
- package/dist/chunks/{instance-8yyb9kn2.js → instance-mgj8dczz.js} +5 -5
- package/dist/chunks/{instance-h383wahg.js → instance-mmeb11je.js} +33 -33
- package/dist/chunks/{instance-mtyftmjt.js → instance-mp2r4t7p.js} +1 -1
- package/dist/chunks/{instance-q1nt87r2.js → instance-mqpj03py.js} +4 -4
- package/dist/chunks/{instance-x4z9xncp.js → instance-mr851y8b.js} +14 -14
- package/dist/chunks/{instance-wz7cyqc3.js → instance-mx8n1n66.js} +9 -9
- package/dist/chunks/{instance-8jjqb4sd.js → instance-n79937h0.js} +5 -5
- package/dist/chunks/{instance-ve3s4mk8.js → instance-n8bc6tey.js} +22 -22
- package/dist/chunks/{instance-zxerdvrv.js → instance-ngkwmh29.js} +12 -12
- package/dist/chunks/{instance-a3rgp19t.js → instance-nrw68wjf.js} +13 -13
- package/dist/chunks/{instance-f16xfrgm.js → instance-p3fjt9h6.js} +12 -12
- package/dist/chunks/{instance-zavs5sh1.js → instance-p739mp8a.js} +22 -22
- package/dist/chunks/{instance-x9mykxm9.js → instance-p9ez2166.js} +22 -22
- package/dist/chunks/{instance-bma4f82g.js → instance-pk9rp110.js} +18 -18
- package/dist/chunks/{instance-1hs7cne0.js → instance-pqzmykjs.js} +19 -19
- package/dist/chunks/{instance-s4jagjf8.js → instance-prq7hedt.js} +8 -8
- package/dist/chunks/{instance-arye3j7k.js → instance-pv0nbs21.js} +5 -5
- package/dist/chunks/{instance-rwm5vee1.js → instance-q5asdkn4.js} +3 -3
- package/dist/chunks/{instance-6rfqzqkx.js → instance-qa7jp05q.js} +23 -23
- package/dist/chunks/{instance-6hn5f6b5.js → instance-qpms31y0.js} +26 -26
- package/dist/chunks/{instance-w7h7gzp4.js → instance-qz9sx1ew.js} +37 -37
- package/dist/chunks/{instance-4wsdk3h4.js → instance-r6t7554n.js} +1 -1
- package/dist/chunks/{instance-rhraev7y.js → instance-r8xr0va3.js} +3 -3
- package/dist/chunks/{instance-phdr4q94.js → instance-ra8ptxxq.js} +23 -23
- package/dist/chunks/{instance-whzh2rks.js → instance-rc2tkc7p.js} +16 -16
- package/dist/chunks/{instance-gvt474ke.js → instance-rd5ztze2.js} +78 -78
- package/dist/chunks/{instance-tjz234mm.js → instance-rjb3sczg.js} +9 -9
- package/dist/chunks/{instance-wz7bxgh4.js → instance-rkcbpr7b.js} +5 -5
- package/dist/chunks/{instance-pfk402ja.js → instance-ryq4z5xx.js} +32 -32
- package/dist/chunks/instance-s7nnwabc.js +252 -0
- package/dist/chunks/{instance-9hx1pkq8.js → instance-sc3z7kn8.js} +10 -10
- package/dist/chunks/{instance-v6gb7zv2.js → instance-sd5f6jdk.js} +5 -5
- package/dist/chunks/{instance-zep9ec7g.js → instance-sf5j48tm.js} +2 -2
- package/dist/chunks/{instance-qyk1favy.js → instance-ss2xgwm9.js} +12 -12
- package/dist/chunks/{instance-pmr4s4kc.js → instance-sx1n432n.js} +3 -3
- package/dist/chunks/{instance-x1nmkajp.js → instance-tfez4kz2.js} +19 -19
- package/dist/chunks/{instance-jyxd0f6g.js → instance-tnbe1hwx.js} +5 -5
- package/dist/chunks/{instance-75n724vr.js → instance-tqam00tf.js} +9 -9
- package/dist/chunks/{instance-avp7fgn7.js → instance-tr6fvba4.js} +20 -20
- package/dist/chunks/{instance-pwmnswtw.js → instance-ttmex7zx.js} +28 -28
- package/dist/chunks/{instance-9sh4wc5j.js → instance-v1faaxn9.js} +4 -4
- package/dist/chunks/{instance-qdff2m7r.js → instance-v3pyw3cg.js} +3 -3
- package/dist/chunks/{instance-0nkxq069.js → instance-v67ds0gr.js} +1 -1
- package/dist/chunks/{instance-b1amj7yk.js → instance-vbfh6vt9.js} +20 -20
- package/dist/chunks/{instance-wz4fa6kp.js → instance-vmdg2ds7.js} +8 -8
- package/dist/chunks/{instance-84k1ymm1.js → instance-vp7wkc5b.js} +8 -8
- package/dist/chunks/{instance-4t1j9mmy.js → instance-vvy8c0he.js} +25 -25
- package/dist/chunks/{instance-84txncab.js → instance-w1eejvng.js} +4 -4
- package/dist/chunks/{instance-e6hd9jay.js → instance-w4arg62q.js} +3 -3
- package/dist/chunks/{instance-gs0w5bg1.js → instance-w8154s1q.js} +19 -19
- package/dist/chunks/{instance-4vem5y40.js → instance-w8nmw4cy.js} +9 -9
- package/dist/chunks/{instance-f59y9nnf.js → instance-wa3zq9xw.js} +5 -5
- package/dist/chunks/{instance-7cp24dsy.js → instance-wcj1rfwg.js} +1 -1
- package/dist/chunks/{instance-jmgzrjgw.js → instance-wfpdf0nm.js} +26 -26
- package/dist/chunks/{instance-0p918wge.js → instance-wrxwb9s5.js} +1 -1
- package/dist/chunks/{instance-jtm7aj82.js → instance-x0vyq1q7.js} +5 -5
- package/dist/chunks/{instance-zrtxbmtt.js → instance-x2317vg0.js} +18 -18
- package/dist/chunks/{instance-nj9f7dx2.js → instance-x5ppe4c5.js} +16 -16
- package/dist/chunks/{instance-x6gx1ean.js → instance-x5x7kb8w.js} +14 -14
- package/dist/chunks/{instance-yewnzqa6.js → instance-x9yezds5.js} +10 -10
- package/dist/chunks/{instance-ymw89d6s.js → instance-xbqqvcw9.js} +7 -7
- package/dist/chunks/{instance-1cfe9jam.js → instance-xnt7e5y5.js} +23 -23
- package/dist/chunks/{instance-bvmp1n7t.js → instance-xqbbjy8w.js} +3 -3
- package/dist/chunks/{instance-pdagefdx.js → instance-xsy5mvmd.js} +8 -8
- package/dist/chunks/{instance-d8zex0s9.js → instance-y51vjfep.js} +9 -9
- package/dist/chunks/{instance-6smsejd7.js → instance-y6axtc0q.js} +36 -36
- package/dist/chunks/{instance-s2ppp6xp.js → instance-y6krcrd5.js} +26 -26
- package/dist/chunks/{instance-05df3gd0.js → instance-y9dygnn9.js} +40 -40
- package/dist/chunks/{instance-353t8r3n.js → instance-yc926say.js} +18 -18
- package/dist/chunks/{instance-6qgpws0q.js → instance-ypsvkfgg.js} +11 -11
- package/dist/chunks/{instance-xhvjccmc.js → instance-yq6kk78r.js} +1 -1
- package/dist/chunks/{instance-w3x9v1nk.js → instance-yvvvp4gn.js} +7 -7
- package/dist/chunks/{instance-0a1yp5ev.js → instance-ywxndyv1.js} +3 -3
- package/dist/chunks/{instance-kcejaam4.js → instance-yy6nvzd7.js} +8 -8
- package/dist/chunks/{instance-83ezmw0c.js → instance-zd0w0q97.js} +8 -8
- package/dist/chunks/{instance-dv182ry4.js → instance-zf3v0epf.js} +22 -22
- package/dist/chunks/{instance-n278zvkk.js → instance-zk5zd9qb.js} +36 -36
- package/dist/chunks/{instance-50ctkdtm.js → instance-zn9931nd.js} +40 -40
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +67 -67
- package/dist/config/discovery.js +60 -60
- package/dist/config/normalize.js +80 -80
- package/dist/config/plugin/agent.js +91 -91
- package/dist/config/plugin/command.js +168 -168
- package/dist/config/plugin/compaction.js +118 -118
- package/dist/config/plugin/compatibility.js +101 -101
- package/dist/config/plugin/formatter.js +92 -92
- package/dist/config/plugin/image.js +91 -91
- package/dist/config/plugin/instruction.js +65 -65
- package/dist/config/plugin/location-watcher.js +91 -91
- package/dist/config/plugin/mcp.js +99 -99
- package/dist/config/plugin/policy.js +91 -91
- package/dist/config/plugin/provider.js +91 -91
- package/dist/config/plugin/reference.js +93 -93
- package/dist/config/plugin/shell.js +93 -93
- package/dist/config/plugin/skill-file.js +71 -71
- package/dist/config/plugin/skill.js +104 -104
- package/dist/config/plugin/snapshot.js +91 -91
- package/dist/config/plugin/source.js +92 -92
- package/dist/config/plugin/tool-output.js +92 -92
- package/dist/config/plugin/websearch.js +92 -92
- package/dist/config/plugin/worktree.js +92 -92
- package/dist/config.js +97 -97
- package/dist/credential.js +60 -60
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +11 -11
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +12 -12
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +12 -12
- package/dist/database/migration.gen.js +38 -38
- package/dist/database/migration.js +40 -40
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +233 -233
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +67 -67
- package/dist/environment/index.js +69 -69
- package/dist/event-logger.js +14 -14
- package/dist/file-access.js +74 -74
- package/dist/file-mutation.js +68 -68
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +183 -183
- package/dist/filesystem/search.js +75 -75
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +74 -74
- package/dist/form.js +58 -58
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +67 -67
- package/dist/generate.js +77 -77
- package/dist/git.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +75 -75
- 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 +307 -307
- package/dist/instruction-discovery.js +68 -68
- package/dist/instructions/builtins.js +64 -64
- package/dist/integration.js +63 -63
- package/dist/job.js +61 -61
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +48 -48
- package/dist/location-lifecycle.js +77 -77
- package/dist/location-service-map.js +64 -64
- package/dist/location-services.js +305 -305
- package/dist/location.js +59 -59
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +81 -81
- package/dist/mcp/instructions.js +92 -92
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +64 -64
- package/dist/modal/models.js +75 -75
- package/dist/model-resolver.js +74 -74
- package/dist/model.js +78 -78
- package/dist/models-dev.js +83 -83
- package/dist/permission/saved.js +54 -54
- package/dist/permission.js +73 -73
- package/dist/persistent-pty/index.js +69 -69
- package/dist/persistent-pty.js +57 -57
- package/dist/plugin/agent.js +72 -72
- package/dist/plugin/command.js +72 -72
- package/dist/plugin/host.js +176 -176
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +281 -281
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +72 -72
- package/dist/plugin/module.js +2 -2
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +72 -72
- package/dist/plugin/provider/amazon-bedrock.js +66 -66
- package/dist/plugin/provider/azure.js +92 -92
- package/dist/plugin/provider/chatgpt.js +68 -68
- package/dist/plugin/provider/cloudflare-ai-gateway.js +89 -89
- package/dist/plugin/provider/cloudflare-workers-ai.js +89 -89
- package/dist/plugin/provider/configured.js +88 -88
- package/dist/plugin/provider/digitalocean.js +68 -68
- package/dist/plugin/provider/github-copilot.js +70 -70
- package/dist/plugin/provider/gitlab.js +68 -68
- package/dist/plugin/provider/google-vertex.js +66 -66
- package/dist/plugin/provider/llmgateway.js +60 -60
- package/dist/plugin/provider/lmstudio.js +91 -91
- package/dist/plugin/provider/modal.js +68 -68
- package/dist/plugin/provider/ollama.js +91 -91
- package/dist/plugin/provider/openai.js +69 -69
- package/dist/plugin/provider/opencode.js +72 -72
- package/dist/plugin/provider/openrouter.js +67 -67
- package/dist/plugin/provider/poe.js +60 -60
- package/dist/plugin/provider/prompt-cache-key.js +66 -66
- package/dist/plugin/provider/sap-ai-core.js +66 -66
- package/dist/plugin/provider/snowflake-cortex.js +90 -90
- package/dist/plugin/provider/vercel.js +66 -66
- package/dist/plugin/provider/vllm.js +91 -91
- package/dist/plugin/provider/xai.js +67 -67
- package/dist/plugin/provider.js +124 -124
- package/dist/plugin/sdk.js +58 -58
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +102 -102
- package/dist/plugin/supervisor.js +294 -294
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +64 -64
- package/dist/plugin/vcs/hg.js +64 -64
- package/dist/plugin/verbosity.js +69 -69
- package/dist/plugin/warming.js +90 -90
- 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 +187 -187
- package/dist/project.js +58 -58
- package/dist/provider.js +69 -69
- package/dist/pty.js +76 -76
- package/dist/reference/instructions.js +69 -69
- package/dist/reference.js +69 -69
- package/dist/repository-cache.js +61 -61
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +68 -68
- package/dist/rpc.js +64 -64
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +98 -98
- package/dist/session/context.js +113 -113
- package/dist/session/diff.js +64 -64
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +111 -111
- package/dist/session/execution.js +95 -95
- package/dist/session/generate.js +114 -114
- package/dist/session/history.js +3 -3
- package/dist/session/inbox.js +68 -68
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +58 -58
- package/dist/session/instructions.js +69 -69
- package/dist/session/model-request.js +84 -84
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +95 -95
- package/dist/session/projector.js +60 -60
- package/dist/session/prompt.js +74 -74
- package/dist/session/revert.js +65 -65
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +187 -187
- package/dist/session/runner/model.js +74 -74
- package/dist/session/runner/publish-llm-event.js +80 -80
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +89 -89
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +131 -131
- package/dist/session/shell.js +104 -104
- package/dist/session/skill.js +73 -73
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +56 -56
- package/dist/session/subagent-job.js +167 -167
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +112 -112
- package/dist/session/to-session-error.js +79 -79
- package/dist/session/transfer.js +108 -108
- package/dist/session.js +176 -176
- package/dist/shell/parse.js +2 -2
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +107 -107
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +77 -77
- package/dist/skill.js +78 -78
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +91 -91
- package/dist/tool/plugin/edit.js +85 -85
- package/dist/tool/plugin/glob.js +82 -82
- package/dist/tool/plugin/grep.js +88 -88
- package/dist/tool/plugin/mcp-resource.js +81 -81
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +83 -83
- package/dist/tool/plugin/question.js +75 -75
- package/dist/tool/plugin/read.js +85 -85
- package/dist/tool/plugin/shell.js +175 -175
- package/dist/tool/plugin/skill.js +81 -81
- package/dist/tool/plugin/subagent.js +176 -176
- package/dist/tool/plugin/webfetch.js +78 -78
- package/dist/tool/plugin/websearch.js +84 -84
- package/dist/tool/plugin/write.js +87 -87
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +8 -8
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +12 -12
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +67 -67
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +69 -69
- package/dist/vcs.js +67 -67
- package/dist/websearch.js +67 -67
- package/dist/wellknown/plugin.js +59 -59
- package/dist/wellknown.js +58 -58
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace.js +62 -62
- package/dist/worktree/git.js +6 -6
- package/dist/worktree/strategies.js +66 -66
- package/dist/worktree.js +74 -74
- package/package.json +8 -8
- package/dist/chunks/instance-8pvncxar.js +0 -26
- package/dist/chunks/instance-cy4tp985.js +0 -252
- /package/dist/chunks/{instance-kbj2dgab.js → instance-3tt1qkhr.js} +0 -0
- /package/dist/chunks/{instance-5cwcrz90.js → instance-ace43y2j.js} +0 -0
- /package/dist/chunks/{instance-mj905kd3.js → instance-hj214x35.js} +0 -0
- /package/dist/chunks/{instance-k3c624dm.js → instance-nzks3jc8.js} +0 -0
- /package/dist/chunks/{instance-15x51x54.js → instance-ymm454xd.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./instance-e6va3c82.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./instance-tazgh4e4.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./instance-
|
|
12
|
+
} from "./instance-tqam00tf.js";
|
|
13
13
|
import {
|
|
14
14
|
Service80,
|
|
15
15
|
node84
|
|
16
|
-
} from "./instance-
|
|
16
|
+
} from "./instance-mp2r4t7p.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info18,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service52,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node56
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info18, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,12 +54,12 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service52 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
61
|
const location = yield* Service80;
|
|
62
|
-
const bus = yield*
|
|
62
|
+
const bus = yield* Service83;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
65
65
|
const vcs = location.vcs;
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info18));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service52.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node56 = makeLocationNode({
|
|
191
|
+
service: Service52,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node, node84,
|
|
193
|
+
deps: [FSUtil.node, node84, node87]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info18, Mode2, DiffError2, InitializeError2, Service52, node56, exports_vcs };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./instance-
|
|
8
|
+
Service82,
|
|
9
|
+
node86
|
|
10
|
+
} from "./instance-hs1x7rht.js";
|
|
11
11
|
import {
|
|
12
12
|
Service80,
|
|
13
13
|
node84
|
|
14
|
-
} from "./instance-
|
|
14
|
+
} from "./instance-mp2r4t7p.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
17
|
} from "./instance-rdw6cm16.js";
|
|
@@ -23,18 +23,18 @@ import {
|
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
25
|
Error: () => Error5,
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
26
|
+
ID: () => ID7,
|
|
27
|
+
Service: () => Service67,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node71,
|
|
30
|
+
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID7 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
39
|
class Error5 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
@@ -43,11 +43,11 @@ class Error5 extends Schema.TaggedError()("Snapshot.Error", {
|
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service67 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service82;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
52
|
const location = yield* Service80;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID7.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -138,14 +138,14 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service67.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node71 = makeLocationNode({
|
|
144
|
+
service: Service67,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node86, Global.node, node84]
|
|
147
147
|
});
|
|
148
|
-
var
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service67, Service67.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -163,4 +163,4 @@ function failure(operation, cause) {
|
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID7, Error5, Service67, node71, noopLayer3, exports_snapshot2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./instance-
|
|
3
|
+
} from "./instance-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -9,22 +9,22 @@ import {
|
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service3,
|
|
13
|
+
node: () => node4
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service3 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service3, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service3.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node4 = makeGlobalNode({ service: Service3, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service3, node4, exports_update };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AgentNotFoundError2,
|
|
3
3
|
StepFailedError2
|
|
4
|
-
} from "./instance-
|
|
4
|
+
} from "./instance-jebmra90.js";
|
|
5
5
|
import {
|
|
6
6
|
CorrectedError2,
|
|
7
7
|
BlockedError2
|
|
8
|
-
} from "./instance-
|
|
8
|
+
} from "./instance-3dyj9tvq.js";
|
|
9
9
|
import {
|
|
10
10
|
AuthorizationError2
|
|
11
|
-
} from "./instance-
|
|
11
|
+
} from "./instance-4ttxv9py.js";
|
|
12
12
|
import {
|
|
13
13
|
VariantUnavailableError2,
|
|
14
14
|
UnsupportedPackageError2,
|
|
@@ -16,11 +16,11 @@ import {
|
|
|
16
16
|
ModelInitializationError2,
|
|
17
17
|
UnresolvedProviderVariablesError2,
|
|
18
18
|
UnsupportedCompactionError2
|
|
19
|
-
} from "./instance-
|
|
19
|
+
} from "./instance-mmeb11je.js";
|
|
20
20
|
import {
|
|
21
21
|
ModelNotSelectedError2,
|
|
22
22
|
ModelUnavailableError2
|
|
23
|
-
} from "./instance-
|
|
23
|
+
} from "./instance-7t13cj25.js";
|
|
24
24
|
|
|
25
25
|
// src/session/to-session-error.ts
|
|
26
26
|
import { AIError, ToolFailure } from "@opencode/ai";
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
var exports_runner = {};
|
|
7
7
|
__export(exports_runner, {
|
|
8
8
|
DrainResult: () => DrainResult2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service54,
|
|
10
10
|
SessionRunner: () => exports_runner
|
|
11
11
|
});
|
|
12
12
|
import { Context, Data } from "effect";
|
|
13
13
|
var DrainResult2 = Data.taggedEnum();
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service54 extends Context.Service()("@opencode/SessionRunner") {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export { DrainResult2,
|
|
18
|
+
export { DrainResult2, Service54, exports_runner };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./instance-e6va3c82.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./instance-rdw6cm16.js";
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
var exports_command5 = {};
|
|
14
14
|
__export(exports_command5, {
|
|
15
15
|
Command: () => exports_command5,
|
|
16
|
-
Event: () =>
|
|
16
|
+
Event: () => Event16,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info26,
|
|
19
|
+
NotFoundError: () => NotFoundError9,
|
|
20
|
+
Service: () => Service74,
|
|
21
|
+
layer: () => layer24,
|
|
22
|
+
node: () => node78
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event16 } from "@opencode/schema/command";
|
|
28
|
+
var Info26 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError9 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,10 +39,10 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service74 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
45
|
-
const bus = yield*
|
|
44
|
+
var layer24 = Layer.effect(Service74, Effect.gen(function* () {
|
|
45
|
+
const bus = yield* Service83;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
48
48
|
initial: () => new Map,
|
|
@@ -51,11 +51,11 @@ var layer19 = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info26.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service74.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,15 +66,15 @@ var layer19 = Layer.effect(Service47, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError9({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
77
|
-
deps: [
|
|
74
|
+
var node78 = makeLocationNode({
|
|
75
|
+
service: Service74,
|
|
76
|
+
layer: layer24,
|
|
77
|
+
deps: [node87]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
80
80
|
if (error instanceof Error)
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info26, NotFoundError9, ExecutionError2, Service74, layer24, node78, exports_command5, Event16 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./instance-
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./instance-e6va3c82.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
parse5,
|
|
7
7
|
parseRemote2,
|
|
8
8
|
validateBranch3,
|
|
9
9
|
isRemote2,
|
|
10
10
|
cachePath2
|
|
11
|
-
} from "./instance-
|
|
11
|
+
} from "./instance-w1eejvng.js";
|
|
12
12
|
import {
|
|
13
13
|
AbsolutePath2
|
|
14
14
|
} from "./instance-z5v4ffb3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./instance-
|
|
16
|
+
Service37,
|
|
17
|
+
node40
|
|
18
|
+
} from "./instance-9v1rcmf3.js";
|
|
19
19
|
import {
|
|
20
20
|
create3
|
|
21
21
|
} from "./instance-rdw6cm16.js";
|
|
@@ -26,31 +26,31 @@ import {
|
|
|
26
26
|
// src/reference.ts
|
|
27
27
|
var exports_reference2 = {};
|
|
28
28
|
__export(exports_reference2, {
|
|
29
|
-
Event: () =>
|
|
29
|
+
Event: () => Event5,
|
|
30
30
|
GitSource: () => GitSource2,
|
|
31
|
-
Info: () =>
|
|
31
|
+
Info: () => Info5,
|
|
32
32
|
LocalSource: () => LocalSource2,
|
|
33
33
|
Reference: () => exports_reference2,
|
|
34
|
-
Service: () =>
|
|
34
|
+
Service: () => Service35,
|
|
35
35
|
Source: () => Source3,
|
|
36
|
-
node: () =>
|
|
36
|
+
node: () => node38
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
40
40
|
import { Reference } from "@opencode/schema/reference";
|
|
41
41
|
import { Global } from "@opencode/util/global";
|
|
42
|
-
import { Event as
|
|
42
|
+
import { Event as Event5 } from "@opencode/schema/reference";
|
|
43
43
|
var LocalSource2 = Reference.LocalSource;
|
|
44
44
|
var GitSource2 = Reference.GitSource;
|
|
45
45
|
var Source3 = Reference.Source;
|
|
46
|
-
var
|
|
46
|
+
var Info5 = Reference.Info;
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service35 extends Context.Service()("@opencode/Reference") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service35, Effect.gen(function* () {
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const bus = yield*
|
|
53
|
-
const cache = yield*
|
|
52
|
+
const bus = yield* Service83;
|
|
53
|
+
const cache = yield* Service37;
|
|
54
54
|
const scope = yield* Scope.Scope;
|
|
55
55
|
const list = () => Array.from(state.get().sources).flatMap(([name, source]) => {
|
|
56
56
|
const info = {
|
|
@@ -60,8 +60,8 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
60
60
|
...source.hidden === undefined ? {} : { hidden: source.hidden }
|
|
61
61
|
};
|
|
62
62
|
if (source.type === "local")
|
|
63
|
-
return [
|
|
64
|
-
const repository =
|
|
63
|
+
return [Info5.make({ ...info, path: source.path })];
|
|
64
|
+
const repository = parse5(source.repository);
|
|
65
65
|
if (!repository || !isRemote2(repository))
|
|
66
66
|
return [];
|
|
67
67
|
if (source.branch) {
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return [
|
|
75
|
-
|
|
75
|
+
Info5.make({
|
|
76
76
|
...info,
|
|
77
77
|
path: AbsolutePath2.make(cachePath2(global.repos, repository, source.branch))
|
|
78
78
|
})
|
|
@@ -104,7 +104,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
104
104
|
})
|
|
105
105
|
});
|
|
106
106
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
107
|
-
return
|
|
107
|
+
return Service35.of({
|
|
108
108
|
transform: state.transform,
|
|
109
109
|
reload: state.reload,
|
|
110
110
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -112,10 +112,10 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var
|
|
116
|
-
service:
|
|
115
|
+
var node38 = makeLocationNode({
|
|
116
|
+
service: Service35,
|
|
117
117
|
layer,
|
|
118
|
-
deps: [Global.node,
|
|
118
|
+
deps: [Global.node, node87, node40]
|
|
119
119
|
});
|
|
120
120
|
|
|
121
|
-
export { LocalSource2, GitSource2, Source3,
|
|
121
|
+
export { LocalSource2, GitSource2, Source3, Info5, Service35, node38, exports_reference2, Event5 };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID11,
|
|
3
3
|
Service73
|
|
4
|
-
} from "./instance-
|
|
4
|
+
} from "./instance-78k9vaf3.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./instance-
|
|
7
|
+
Service66
|
|
8
|
+
} from "./instance-y6krcrd5.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./instance-
|
|
11
|
+
Service47
|
|
12
|
+
} from "./instance-9qkaq91a.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./instance-
|
|
15
|
+
} from "./instance-8jmaqybk.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./instance-
|
|
17
|
+
Service59
|
|
18
|
+
} from "./instance-mr851y8b.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
21
|
Service69
|
|
22
|
-
} from "./instance-
|
|
22
|
+
} from "./instance-3dyj9tvq.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./instance-
|
|
24
|
+
Service22
|
|
25
|
+
} from "./instance-rd5ztze2.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
28
|
} from "./instance-x1ezjp6w.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./instance-
|
|
30
|
+
make9
|
|
31
|
+
} from "./instance-0c0z9bb0.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -36,16 +36,16 @@ import {
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input12,
|
|
40
|
+
Output: () => Output8,
|
|
41
|
+
Plugin: () => Plugin14,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
|
-
description: () =>
|
|
44
|
-
name: () =>
|
|
43
|
+
description: () => description5,
|
|
44
|
+
name: () => name12
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name12 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input12 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input8 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output8 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description5 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description3 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin14 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
92
|
+
const sessions = yield* Service22;
|
|
93
|
+
const jobs = yield* Service59;
|
|
94
94
|
const agents = yield* Service73;
|
|
95
|
-
const config = yield*
|
|
95
|
+
const config = yield* Service47;
|
|
96
96
|
const permission = yield* Service69;
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
97
|
+
const models = yield* Service66;
|
|
98
|
+
const subagents = yield* make9;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin43 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name12,
|
|
119
119
|
options: { codemode: false },
|
|
120
|
-
description:
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
120
|
+
description: description5,
|
|
121
|
+
input: Input12,
|
|
122
|
+
output: Output8,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin43 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name12,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name12 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name12];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name12, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name12, Input12, Output8, description5, Plugin14, exports_subagent };
|