@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,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84
|
|
3
|
-
} from "./instance-
|
|
3
|
+
} from "./instance-f18r49ca.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instance-
|
|
5
|
+
Service55
|
|
6
|
+
} from "./instance-sd5f6jdk.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./instance-
|
|
9
|
+
} from "./instance-v1faaxn9.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
12
|
} from "./instance-f29mbr7f.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./instance-
|
|
15
|
+
} from "./instance-07jdfws3.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./instance-
|
|
18
|
+
} from "./instance-grrc4g7y.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./instance-
|
|
20
|
+
Service25
|
|
21
|
+
} from "./instance-2h6m51wg.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./instance-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
|
-
var
|
|
28
|
-
__export(
|
|
29
|
-
SessionGenerate: () =>
|
|
27
|
+
var exports_generate = {};
|
|
28
|
+
__export(exports_generate, {
|
|
29
|
+
SessionGenerate: () => exports_generate,
|
|
30
30
|
generate: () => generate2
|
|
31
31
|
});
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
35
|
+
const instances = yield* Service55;
|
|
36
36
|
const database = yield* Service84;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service25;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
|
|
@@ -71,4 +71,4 @@ var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
|
71
71
|
}).pipe(instances.provide(input.session));
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
export { generate2,
|
|
74
|
+
export { generate2, exports_generate };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_identity = {};
|
|
7
7
|
__export(exports_identity, {
|
|
8
8
|
IdentityPlugin: () => exports_identity,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin22,
|
|
10
10
|
identity: () => identity2
|
|
11
11
|
});
|
|
12
12
|
import { SystemPart } from "@opencode/ai";
|
|
@@ -22,7 +22,7 @@ function identity2(model) {
|
|
|
22
22
|
].join(`
|
|
23
23
|
`);
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var Plugin22 = define({
|
|
26
26
|
id: "opencode.prompt.identity",
|
|
27
27
|
effect: Effect.fn("IdentityPlugin")(function* (ctx) {
|
|
28
28
|
const hook = (event) => Effect.gen(function* () {
|
|
@@ -35,4 +35,4 @@ var Plugin7 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export { identity2,
|
|
38
|
+
export { identity2, Plugin22, exports_identity };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./instance-
|
|
3
|
+
} from "./instance-y51vjfep.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instance-
|
|
5
|
+
Service83
|
|
6
|
+
} from "./instance-e6va3c82.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event19
|
|
10
|
-
} from "./instance-
|
|
10
|
+
} from "./instance-c10vj68m.js";
|
|
11
11
|
import {
|
|
12
12
|
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./instance-
|
|
14
|
+
} from "./instance-4ttxv9py.js";
|
|
15
15
|
import {
|
|
16
16
|
ID13
|
|
17
|
-
} from "./instance-
|
|
17
|
+
} from "./instance-0e6kpe0n.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
ID6,
|
|
20
20
|
Family2
|
|
21
|
-
} from "./instance-
|
|
21
|
+
} from "./instance-y6krcrd5.js";
|
|
22
22
|
import {
|
|
23
23
|
bootstrap2
|
|
24
24
|
} from "./instance-pjvnvgmy.js";
|
|
@@ -116,7 +116,7 @@ var oauth = {
|
|
|
116
116
|
var DigitalOceanPlugin2 = define({
|
|
117
117
|
id: "opencode.provider.digitalocean",
|
|
118
118
|
effect: Effect.fn(function* (ctx) {
|
|
119
|
-
const bus = yield*
|
|
119
|
+
const bus = yield* Service83;
|
|
120
120
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
121
121
|
const loading = Semaphore.makeUnsafe(1);
|
|
122
122
|
const loaded = { routers: [] };
|
|
@@ -148,7 +148,7 @@ var DigitalOceanPlugin2 = define({
|
|
|
148
148
|
return;
|
|
149
149
|
for (const router of loaded.routers) {
|
|
150
150
|
const id = `router:${router.name}`;
|
|
151
|
-
if (evt.get(providerID)?.models.has(
|
|
151
|
+
if (evt.get(providerID)?.models.has(ID6.make(id)))
|
|
152
152
|
continue;
|
|
153
153
|
evt.models.update(providerID, id, (draft) => {
|
|
154
154
|
draft.name = router.name;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./instance-
|
|
3
|
+
} from "./instance-y51vjfep.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instance-
|
|
5
|
+
Service83
|
|
6
|
+
} from "./instance-e6va3c82.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event19
|
|
10
|
-
} from "./instance-
|
|
10
|
+
} from "./instance-c10vj68m.js";
|
|
11
11
|
import {
|
|
12
12
|
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./instance-
|
|
14
|
+
} from "./instance-4ttxv9py.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
ID13,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./instance-
|
|
23
|
+
} from "./instance-0e6kpe0n.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
26
|
} from "./instance-54ma36ye.js";
|
|
@@ -162,10 +162,10 @@ var headless = (app) => ({
|
|
|
162
162
|
}),
|
|
163
163
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
164
164
|
});
|
|
165
|
-
var
|
|
165
|
+
var OpenAIPlugin2 = define({
|
|
166
166
|
id: "opencode.provider.openai",
|
|
167
167
|
effect: Effect.fn(function* (ctx) {
|
|
168
|
-
const bus = yield*
|
|
168
|
+
const bus = yield* Service83;
|
|
169
169
|
const loading = Semaphore.makeUnsafe(1);
|
|
170
170
|
let chatgpt;
|
|
171
171
|
const load = Effect.fn("OpenAIPlugin.load")(function* () {
|
|
@@ -329,4 +329,4 @@ function claim(token) {
|
|
|
329
329
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
330
330
|
}
|
|
331
331
|
|
|
332
|
-
export {
|
|
332
|
+
export { OpenAIPlugin2 };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./instance-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./instance-
|
|
6
|
+
} from "./instance-8jmaqybk.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -19,7 +19,7 @@ __export(exports_error2, {
|
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
20
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
21
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
|
-
NotFoundError: () =>
|
|
22
|
+
NotFoundError: () => NotFoundError8,
|
|
23
23
|
PromptConflictError: () => PromptConflictError2,
|
|
24
24
|
SessionErrors: () => exports_error2,
|
|
25
25
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -31,7 +31,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
31
31
|
import { Skill } from "@opencode/schema/skill";
|
|
32
32
|
import { SessionError } from "@opencode/schema/session-error";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class NotFoundError8 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
35
35
|
sessionID: SessionSchema2.ID
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
@@ -116,4 +116,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
116
116
|
}) {
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export {
|
|
119
|
+
export { NotFoundError8, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error2 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service82,
|
|
3
|
-
node86
|
|
4
|
-
} from "./instance-pkv65tq2.js";
|
|
5
1
|
import {
|
|
6
2
|
Service83,
|
|
7
3
|
node87
|
|
8
|
-
} from "./instance-
|
|
4
|
+
} from "./instance-e6va3c82.js";
|
|
5
|
+
import {
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./instance-hs1x7rht.js";
|
|
9
9
|
import {
|
|
10
10
|
Service80,
|
|
11
11
|
node84
|
|
12
|
-
} from "./instance-
|
|
12
|
+
} from "./instance-mp2r4t7p.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./instance-
|
|
15
|
+
} from "./instance-v1faaxn9.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./instance-
|
|
17
|
+
Service48,
|
|
18
|
+
node51
|
|
19
|
+
} from "./instance-keezpjbp.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./instance-
|
|
21
|
+
node23
|
|
22
|
+
} from "./instance-tr6fvba4.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./instance-
|
|
24
|
+
Service12,
|
|
25
|
+
node14
|
|
26
|
+
} from "./instance-cwa6csj7.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
29
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -32,23 +32,23 @@ import {
|
|
|
32
32
|
var exports_location_watcher2 = {};
|
|
33
33
|
__export(exports_location_watcher2, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher2,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service11,
|
|
36
|
+
node: () => node13
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service11 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
46
46
|
const location = yield* Service80;
|
|
47
|
-
const watcher = yield*
|
|
48
|
-
const bus = yield*
|
|
47
|
+
const watcher = yield* Service48;
|
|
48
|
+
const bus = yield* Service83;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service82;
|
|
51
|
+
const policy = yield* Service12;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service9, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service11.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node13 = makeLocationNode({
|
|
106
|
+
service: Service11,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node51, FSUtil.node, node84, node86, node87, node23, node14]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service11, node13, exports_location_watcher2 };
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
} from "./instance-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./instance-
|
|
6
|
+
} from "./instance-a8bn8zg0.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./instance-
|
|
8
|
+
Info11
|
|
9
|
+
} from "./instance-h4ckqw4f.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./instance-
|
|
11
|
+
Info15
|
|
12
|
+
} from "./instance-k8f3jam7.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./instance-
|
|
14
|
+
Info16
|
|
15
|
+
} from "./instance-1g7epwpd.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./instance-
|
|
17
|
+
Info8
|
|
18
|
+
} from "./instance-dssbfrwz.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec2
|
|
21
|
-
} from "./instance-
|
|
21
|
+
} from "./instance-0jwsre1p.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./instance-
|
|
23
|
+
Info13
|
|
24
|
+
} from "./instance-0r3c1bmw.js";
|
|
25
25
|
import {
|
|
26
26
|
Info7
|
|
27
|
-
} from "./instance-
|
|
27
|
+
} from "./instance-bx3zmwnw.js";
|
|
28
28
|
import {
|
|
29
29
|
migrate2,
|
|
30
30
|
normalizeAction2,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
migrateMcp2,
|
|
34
34
|
migrateProvider2,
|
|
35
35
|
providerID2
|
|
36
|
-
} from "./instance-
|
|
36
|
+
} from "./instance-gytnw8gq.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./instance-9rqn6x4v.js";
|
|
@@ -87,7 +87,7 @@ function normalize2(input) {
|
|
|
87
87
|
const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info7.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
88
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
89
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ? decodeValue(
|
|
90
|
+
const legacyMedia = own(input, "attachment") ? decodeValue(Info15, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
91
91
|
if (legacyMedia !== undefined) {
|
|
92
92
|
const migrated = migrate2({ attachment: legacyMedia }).media;
|
|
93
93
|
if (migrated !== undefined)
|
|
@@ -104,7 +104,7 @@ function normalize2(input) {
|
|
|
104
104
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
105
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
106
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
107
|
+
const legacyCommands = decodeMap(input.command, Info16, ["command"], diagnostics, decodeValue);
|
|
108
108
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
109
|
const migratedCommands = mapValues(legacyCommands, (value) => {
|
|
110
110
|
const migrated = commands2({ value })?.value;
|
|
@@ -112,7 +112,7 @@ function normalize2(input) {
|
|
|
112
112
|
});
|
|
113
113
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
114
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
115
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info11, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
116
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
117
|
const migratedSmallModel = legacySmallModel ? migrate2({ small_model: legacySmallModel }).agents?.title?.model : undefined;
|
|
118
118
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -126,7 +126,7 @@ function normalize2(input) {
|
|
|
126
126
|
model: migratedSmallModel,
|
|
127
127
|
...legacyAgents.title
|
|
128
128
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
129
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info11, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
130
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
131
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
132
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
225
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const server = decodeValue(
|
|
228
|
+
const server = decodeValue(Info8, value, path, diagnostics);
|
|
229
229
|
if (server !== undefined)
|
|
230
230
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
231
|
});
|
|
@@ -421,7 +421,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
421
421
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
422
422
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
423
423
|
return [];
|
|
424
|
-
const provider = decodeValue(
|
|
424
|
+
const provider = decodeValue(Info13, raw, path, diagnostics);
|
|
425
425
|
if (provider === undefined)
|
|
426
426
|
return [];
|
|
427
427
|
const destination = providerID2(name);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./instance-
|
|
4
|
+
} from "./instance-f18r49ca.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./instance-
|
|
7
|
+
} from "./instance-dpkg50ah.js";
|
|
8
8
|
import {
|
|
9
9
|
Binding2,
|
|
10
10
|
RegistryService2,
|
|
11
|
-
|
|
12
|
-
} from "./instance-
|
|
11
|
+
node55
|
|
12
|
+
} from "./instance-mg83pbjr.js";
|
|
13
13
|
import {
|
|
14
14
|
WorkspaceTable2
|
|
15
15
|
} from "./instance-faypxj3z.js";
|
|
@@ -22,12 +22,12 @@ var exports_workspace = {};
|
|
|
22
22
|
__export(exports_workspace, {
|
|
23
23
|
CreateConflict: () => CreateConflict2,
|
|
24
24
|
ID: () => ID5,
|
|
25
|
-
Info: () =>
|
|
25
|
+
Info: () => Info17,
|
|
26
26
|
NotFound: () => NotFound3,
|
|
27
|
-
Service: () =>
|
|
27
|
+
Service: () => Service51,
|
|
28
28
|
Workspace: () => exports_workspace,
|
|
29
|
-
configured: () =>
|
|
30
|
-
node: () =>
|
|
29
|
+
configured: () => configured7,
|
|
30
|
+
node: () => node54
|
|
31
31
|
});
|
|
32
32
|
import { Workspace } from "@opencode/schema/workspace";
|
|
33
33
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -37,7 +37,7 @@ import { systemError } from "effect/PlatformError";
|
|
|
37
37
|
import { make } from "effect/unstable/process/ChildProcessSpawner";
|
|
38
38
|
var ID5 = Workspace.ID;
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class Info17 extends Schema.Class("Workspace.Info")({
|
|
41
41
|
id: ID5,
|
|
42
42
|
provider: Schema.String,
|
|
43
43
|
binding: Binding2,
|
|
@@ -56,14 +56,14 @@ class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
|
56
56
|
}) {
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service51 extends Context.Service()("@opencode/Workspace") {
|
|
60
60
|
}
|
|
61
|
-
var
|
|
62
|
-
service:
|
|
61
|
+
var configured7 = (options = {}) => makeGlobalNode({
|
|
62
|
+
service: Service51,
|
|
63
63
|
layer: layer(options),
|
|
64
|
-
deps: [node88,
|
|
64
|
+
deps: [node88, node55]
|
|
65
65
|
});
|
|
66
|
-
var layer = (options) => Layer.effect(
|
|
66
|
+
var layer = (options) => Layer.effect(Service51, Effect.gen(function* () {
|
|
67
67
|
const db = (yield* Service84).db;
|
|
68
68
|
const registry = yield* RegistryService2;
|
|
69
69
|
const lifetime = yield* Scope.Scope;
|
|
@@ -80,7 +80,7 @@ var layer = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
80
80
|
return row;
|
|
81
81
|
});
|
|
82
82
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
83
|
-
const info = (row, binding) => new
|
|
83
|
+
const info = (row, binding) => new Info17({
|
|
84
84
|
id: row.id,
|
|
85
85
|
provider: row.provider,
|
|
86
86
|
binding,
|
|
@@ -154,7 +154,7 @@ var layer = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
154
154
|
yield* Scope.close(connection.scope, Exit.void);
|
|
155
155
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
156
156
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
157
|
-
return
|
|
157
|
+
return Service51.of({
|
|
158
158
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
159
159
|
const workspaceID = input.id ?? ID5.create();
|
|
160
160
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
@@ -221,6 +221,6 @@ var layer = (options) => Layer.effect(Service54, Effect.gen(function* () {
|
|
|
221
221
|
})
|
|
222
222
|
});
|
|
223
223
|
}));
|
|
224
|
-
var
|
|
224
|
+
var node54 = configured7();
|
|
225
225
|
|
|
226
|
-
export { ID5,
|
|
226
|
+
export { ID5, Info17, NotFound3, CreateConflict2, Service51, configured7, node54, exports_workspace };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./instance-
|
|
3
|
+
} from "./instance-y51vjfep.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./instance-
|
|
6
|
+
Service78
|
|
7
|
+
} from "./instance-c10vj68m.js";
|
|
8
8
|
import {
|
|
9
9
|
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./instance-
|
|
11
|
+
} from "./instance-4ttxv9py.js";
|
|
12
12
|
import {
|
|
13
13
|
ID13,
|
|
14
14
|
mergeOverlay2
|
|
15
|
-
} from "./instance-
|
|
15
|
+
} from "./instance-0e6kpe0n.js";
|
|
16
16
|
|
|
17
17
|
// src/plugin/provider/xai.ts
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -69,7 +69,7 @@ var device = (app) => ({
|
|
|
69
69
|
var XAIPlugin2 = define({
|
|
70
70
|
id: "opencode.provider.xai",
|
|
71
71
|
effect: Effect.fn(function* (ctx) {
|
|
72
|
-
const credentials = yield*
|
|
72
|
+
const credentials = yield* Service78;
|
|
73
73
|
yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
|
|
74
74
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
75
75
|
return Effect.void;
|
|
@@ -2,35 +2,35 @@ import {
|
|
|
2
2
|
key2
|
|
3
3
|
} from "./instance-dnxkq42g.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./instance-
|
|
5
|
+
Service83
|
|
6
|
+
} from "./instance-e6va3c82.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
9
|
Event19
|
|
10
|
-
} from "./instance-
|
|
10
|
+
} from "./instance-c10vj68m.js";
|
|
11
11
|
import {
|
|
12
12
|
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./instance-
|
|
14
|
+
} from "./instance-4ttxv9py.js";
|
|
15
15
|
import {
|
|
16
16
|
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./instance-
|
|
19
|
+
Service76
|
|
20
|
+
} from "./instance-0e6kpe0n.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./instance-
|
|
22
|
+
ID6
|
|
23
|
+
} from "./instance-y6krcrd5.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./instance-
|
|
25
|
+
load3,
|
|
26
|
+
derive3
|
|
27
|
+
} from "./instance-w8154s1q.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./instance-
|
|
30
|
+
} from "./instance-y51vjfep.js";
|
|
31
31
|
import {
|
|
32
32
|
ID11
|
|
33
|
-
} from "./instance-
|
|
33
|
+
} from "./instance-78k9vaf3.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
36
|
} from "./instance-54ma36ye.js";
|
|
@@ -163,8 +163,8 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
167
|
-
const bus = yield*
|
|
166
|
+
const providers = yield* Service76;
|
|
167
|
+
const bus = yield* Service83;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
170
170
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -182,7 +182,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
183
|
const provider = yield* providers.get(ID13.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
|
-
try: () =>
|
|
185
|
+
try: () => load3(url, {
|
|
186
186
|
...provider?.headers,
|
|
187
187
|
Authorization: `Bearer ${credential.refresh}`,
|
|
188
188
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -208,7 +208,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
208
208
|
if (loaded.models) {
|
|
209
209
|
evt.add({
|
|
210
210
|
info: item.provider,
|
|
211
|
-
models: Array.from(
|
|
211
|
+
models: Array.from(derive3(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
212
212
|
sourceConnection: loaded.connection
|
|
213
213
|
});
|
|
214
214
|
return;
|
|
@@ -222,8 +222,8 @@ var GithubCopilotPlugin2 = define({
|
|
|
222
222
|
}
|
|
223
223
|
});
|
|
224
224
|
yield* ctx.model.transform((models) => {
|
|
225
|
-
if (models.get(ID13.githubCopilot,
|
|
226
|
-
models.update(ID13.githubCopilot,
|
|
225
|
+
if (models.get(ID13.githubCopilot, ID6.make("gpt-5-chat-latest"))) {
|
|
226
|
+
models.update(ID13.githubCopilot, ID6.make("gpt-5-chat-latest"), (model) => {
|
|
227
227
|
model.enabled = false;
|
|
228
228
|
});
|
|
229
229
|
}
|