@opencode/core 0.0.0-dev-20289 → 0.0.0-dev-20291
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/account/sql.js +1 -1
- package/dist/agent.js +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +9 -9
- package/dist/bus.js +69 -69
- package/dist/chunks/{project-a1a50ys5.js → kv-0f9afca0.js} +5 -5
- package/dist/chunks/{project-607tc6va.js → kv-0jwsre1p.js} +5 -5
- package/dist/chunks/{project-0paq2nw3.js → kv-0paq2nw3.js} +1 -1
- package/dist/chunks/{project-qn4ba14w.js → kv-0r7yqxbf.js} +5 -5
- package/dist/chunks/{project-yne44ej7.js → kv-15qhxfad.js} +83 -83
- package/dist/chunks/{project-1dazxqgg.js → kv-1dazxqgg.js} +2 -2
- package/dist/chunks/{project-7jfn2nfr.js → kv-1rhc35p6.js} +5 -5
- package/dist/chunks/{project-ba6x0ep7.js → kv-1se20z1h.js} +16 -16
- package/dist/chunks/{project-czdj9312.js → kv-1ycydbdy.js} +13 -13
- package/dist/chunks/{project-tbeap78k.js → kv-20b2s3kw.js} +6 -6
- package/dist/chunks/{project-21r38tys.js → kv-21r38tys.js} +1 -1
- package/dist/chunks/{project-shs60xat.js → kv-27az1g0v.js} +10 -10
- package/dist/chunks/{project-2a5m3afh.js → kv-2a5m3afh.js} +1 -1
- package/dist/chunks/{project-c78bbtc9.js → kv-2f0bjgcj.js} +5 -5
- package/dist/chunks/{project-053jwjs2.js → kv-2gj8p1x9.js} +4 -4
- package/dist/chunks/{project-q04r6a4p.js → kv-2mqhy2bb.js} +23 -23
- package/dist/chunks/{project-2mq1h16s.js → kv-2sejkfem.js} +9 -9
- package/dist/chunks/{project-3x2vzye0.js → kv-32rynewz.js} +10 -10
- package/dist/chunks/{project-4d1sz7eg.js → kv-3e0ngjm8.js} +26 -26
- package/dist/chunks/{project-3fc6dm20.js → kv-3fc6dm20.js} +1 -1
- package/dist/chunks/{project-r4czcqfh.js → kv-3h5mpbf9.js} +8 -8
- package/dist/chunks/{project-3hepkmqq.js → kv-3hepkmqq.js} +1 -1
- package/dist/chunks/{project-bf4f4tc6.js → kv-3jjgv10f.js} +7 -7
- package/dist/chunks/{project-3smtnn6g.js → kv-3smtnn6g.js} +1 -1
- package/dist/chunks/{project-3tvqynh2.js → kv-3tvqynh2.js} +1 -1
- package/dist/chunks/{project-3zsf4n22.js → kv-3zsf4n22.js} +1 -1
- package/dist/chunks/{project-ncnm8wen.js → kv-427t97hr.js} +1 -1
- package/dist/chunks/{project-vttfgm5c.js → kv-44zqv7fv.js} +44 -44
- package/dist/chunks/{project-twncgfvc.js → kv-46y19e9k.js} +11 -11
- package/dist/chunks/{project-ff0zxw5w.js → kv-47s7f0s9.js} +18 -18
- package/dist/chunks/{project-4jatx6ft.js → kv-51jjrgxc.js} +5 -5
- package/dist/chunks/{project-54ma36ye.js → kv-54ma36ye.js} +1 -1
- package/dist/chunks/{project-56gdpj1q.js → kv-56gdpj1q.js} +2 -2
- package/dist/chunks/{project-57ez7d0k.js → kv-57ez7d0k.js} +2 -2
- package/dist/chunks/{project-5daktx2q.js → kv-5daktx2q.js} +1 -1
- package/dist/chunks/{project-meyf4ekz.js → kv-5j3xer0m.js} +4 -4
- package/dist/chunks/{project-k7thdygn.js → kv-5m6r4682.js} +3 -3
- package/dist/chunks/{project-csmvz898.js → kv-5rnnm2b5.js} +9 -9
- package/dist/chunks/{project-evttz6pw.js → kv-5s1wygw8.js} +21 -21
- package/dist/chunks/{project-5t3nmthw.js → kv-5t3nmthw.js} +2 -2
- package/dist/chunks/{project-jadga48t.js → kv-5xbtv0jk.js} +27 -27
- package/dist/chunks/{project-nnaqtnp0.js → kv-667b8y1w.js} +45 -45
- package/dist/chunks/{project-669tq793.js → kv-669tq793.js} +1 -1
- package/dist/chunks/{project-s04kah20.js → kv-66cb755k.js} +23 -23
- package/dist/chunks/{project-ecsp9bpp.js → kv-6h06mqyq.js} +31 -31
- package/dist/chunks/{project-cd5e0ncw.js → kv-6hpfnskn.js} +1 -1
- package/dist/chunks/{project-6msgmcgs.js → kv-6msgmcgs.js} +1 -1
- package/dist/chunks/{project-w2ac37ab.js → kv-6qmr4en7.js} +17 -17
- package/dist/chunks/{project-6prsfskb.js → kv-6x6hhxb0.js} +36 -36
- package/dist/chunks/{project-vkfb4jx0.js → kv-6yh65qsf.js} +4 -4
- package/dist/chunks/{project-7xph3mbh.js → kv-73fjq2q4.js} +14 -14
- package/dist/chunks/{project-52d0evsq.js → kv-74zey65s.js} +3 -3
- package/dist/chunks/{project-3bxd3j1q.js → kv-768gsh1v.js} +6 -6
- package/dist/chunks/{project-7bmhse3q.js → kv-7bmhse3q.js} +1 -1
- package/dist/chunks/{project-rn8q0cx6.js → kv-7bp89t8t.js} +16 -16
- package/dist/chunks/{project-64mbz47k.js → kv-7bpzgkas.js} +6 -6
- package/dist/chunks/{project-11pagn9f.js → kv-7ch7q35z.js} +13 -13
- package/dist/chunks/{project-b3dr5ww8.js → kv-7ewqxty1.js} +11 -11
- package/dist/chunks/{project-5ddde2n9.js → kv-7fn8xnah.js} +24 -24
- package/dist/chunks/{project-h6b02349.js → kv-7pr2hkwv.js} +5 -5
- package/dist/chunks/{project-x2d8hca6.js → kv-7tcqdmgr.js} +10 -10
- package/dist/chunks/{project-r5x6zcsm.js → kv-7yh4e7ss.js} +3 -3
- package/dist/chunks/{project-12t2360m.js → kv-7znwpdrd.js} +31 -31
- package/dist/chunks/{project-9tef4xa6.js → kv-819acz3y.js} +24 -24
- package/dist/chunks/{project-w1eejvng.js → kv-84txncab.js} +5 -5
- package/dist/chunks/{project-njwxmpwa.js → kv-84w5jdws.js} +24 -24
- package/dist/chunks/{project-aj8j3wxk.js → kv-8525wnq7.js} +20 -20
- package/dist/chunks/{project-89znhe33.js → kv-89znhe33.js} +1 -1
- package/dist/chunks/{project-8d7r5vzw.js → kv-8d7r5vzw.js} +1 -1
- package/dist/chunks/{project-pk4a84s8.js → kv-8fcqv9xp.js} +10 -10
- package/dist/chunks/{project-ezes30fq.js → kv-8fwpt1dn.js} +14 -14
- package/dist/chunks/{project-gs3s1a1g.js → kv-8mbscqky.js} +8 -8
- package/dist/chunks/{project-fy53vy2g.js → kv-90p3m6n8.js} +20 -20
- package/dist/chunks/{project-94ek1h2f.js → kv-94ek1h2f.js} +2 -2
- package/dist/chunks/{project-tx8aftqs.js → kv-97t8ptmj.js} +23 -23
- package/dist/chunks/{project-dkdgcpb9.js → kv-9c9wet3j.js} +8 -8
- package/dist/chunks/{project-zke1m8at.js → kv-9fjq25es.js} +22 -22
- package/dist/chunks/{project-axs6pdy0.js → kv-9g7kxhdk.js} +5 -5
- package/dist/chunks/{project-py18572k.js → kv-9jzqgwmn.js} +12 -12
- package/dist/chunks/{project-mv9h8c6d.js → kv-9keenhnr.js} +27 -27
- package/dist/chunks/{project-kbwf032e.js → kv-9kmbd9mt.js} +2 -2
- package/dist/chunks/{project-282se8s8.js → kv-9q6r8qkc.js} +15 -15
- package/dist/chunks/{project-s7g4z28s.js → kv-9wac42x8.js} +17 -17
- package/dist/chunks/{project-aaet6srn.js → kv-aaet6srn.js} +2 -2
- package/dist/chunks/{project-q5ny0xm2.js → kv-adxd5rm3.js} +8 -8
- package/dist/chunks/{project-ezkvecwj.js → kv-aka7gdyy.js} +9 -9
- package/dist/chunks/{project-gz46k2a1.js → kv-amfe68bf.js} +20 -20
- package/dist/chunks/{project-4dv29wnx.js → kv-an2nx9pr.js} +318 -318
- package/dist/chunks/{project-6n85nym7.js → kv-atg5myyh.js} +28 -28
- package/dist/chunks/{project-yamj9jch.js → kv-avm7cb3c.js} +44 -44
- package/dist/chunks/{project-6d6xcght.js → kv-awbtvej0.js} +6 -6
- package/dist/chunks/{project-t1abnjvg.js → kv-ax1yp8tw.js} +16 -16
- package/dist/chunks/kv-ax4jcnm2.js +252 -0
- package/dist/chunks/{project-b6gygkdw.js → kv-b6gygkdw.js} +2 -2
- package/dist/chunks/{project-stw4c2x8.js → kv-b8ax9c4x.js} +21 -21
- package/dist/chunks/{project-nmhvxzxh.js → kv-b95fw7pb.js} +15 -15
- package/dist/chunks/{project-4z47mc45.js → kv-bas5f7ct.js} +12 -12
- package/dist/chunks/{project-sx1n432n.js → kv-bct739vz.js} +4 -4
- package/dist/chunks/{project-8apd0fk3.js → kv-bezsd2p4.js} +2 -2
- package/dist/chunks/{project-x3gqap9d.js → kv-bgc5ggmx.js} +4 -4
- package/dist/chunks/{project-va0y9eaw.js → kv-brgpgtrm.js} +9 -9
- package/dist/chunks/kv-by5v678g.js +18 -0
- package/dist/chunks/{project-5cks982w.js → kv-c1kgd9ht.js} +9 -9
- package/dist/chunks/{project-5t8yajra.js → kv-c4nf75an.js} +8 -8
- package/dist/chunks/{project-5kvqrqtt.js → kv-c651xxjb.js} +4 -4
- package/dist/chunks/{project-mw8gr7fr.js → kv-c7mt6tt7.js} +17 -17
- package/dist/chunks/{project-exkqnn2s.js → kv-ck1y1mrw.js} +11 -11
- package/dist/chunks/{project-ckecvw8r.js → kv-ckecvw8r.js} +2 -2
- package/dist/chunks/{project-eckmdhj3.js → kv-cm066f29.js} +15 -15
- package/dist/chunks/{project-mw9zgz6k.js → kv-cpc3xkm6.js} +3 -3
- package/dist/chunks/{project-m6a39cfz.js → kv-cwrzxbzk.js} +17 -17
- package/dist/chunks/{project-x2th391j.js → kv-cx1q331g.js} +10 -10
- package/dist/chunks/{project-1njvbn15.js → kv-d0ct7zk6.js} +37 -37
- package/dist/chunks/{project-fw203re9.js → kv-ddrj7ffv.js} +13 -13
- package/dist/chunks/{project-xkntkrq7.js → kv-dmqcgk4z.js} +5 -5
- package/dist/chunks/{project-y6bex35g.js → kv-dnxkq42g.js} +4 -4
- package/dist/chunks/{project-4zxebnwz.js → kv-dp28bv0d.js} +22 -22
- package/dist/chunks/{project-s55akzd0.js → kv-e1y3ehrf.js} +37 -37
- package/dist/chunks/{project-e6hd9jay.js → kv-e6hd9jay.js} +1 -1
- package/dist/chunks/{project-ywxt88nj.js → kv-eapdm18n.js} +9 -9
- package/dist/chunks/{project-ecfe7b91.js → kv-ecfe7b91.js} +2 -2
- package/dist/chunks/{project-ef5x83kb.js → kv-ef5x83kb.js} +1 -1
- package/dist/chunks/{project-kpt1qdq7.js → kv-ejwk4ccc.js} +11 -11
- package/dist/chunks/{project-6aqenpe6.js → kv-erb0t64m.js} +31 -31
- package/dist/chunks/{project-etq0c3wd.js → kv-etq0c3wd.js} +1 -1
- package/dist/chunks/{project-qk6h43bm.js → kv-exec2md4.js} +31 -31
- package/dist/chunks/{project-ka32nkxa.js → kv-ezq5yqf8.js} +17 -17
- package/dist/chunks/{project-hzv9afqd.js → kv-f3v3kjt8.js} +40 -40
- package/dist/chunks/{project-f7rj482f.js → kv-f5gy8qwh.js} +8 -8
- package/dist/chunks/{project-v8dfz6e8.js → kv-f7j5nqer.js} +12 -12
- package/dist/chunks/{project-z6k6vx84.js → kv-fddwrfxn.js} +11 -11
- package/dist/chunks/{project-d1mtykxg.js → kv-ff0htmxq.js} +6 -6
- package/dist/chunks/{project-fcbbx3j9.js → kv-g7swxvb3.js} +14 -14
- package/dist/chunks/{project-gd4qta3r.js → kv-gd4qta3r.js} +1 -1
- package/dist/chunks/{project-6yq02ve2.js → kv-ggsnnm16.js} +11 -11
- package/dist/chunks/{project-97q8ans0.js → kv-gktk48s3.js} +30 -30
- package/dist/chunks/{project-afed7ext.js → kv-gmjq4p6e.js} +5 -5
- package/dist/chunks/{project-gv6a8nnw.js → kv-gv6a8nnw.js} +2 -2
- package/dist/chunks/{project-h6vf3j39.js → kv-h6vf3j39.js} +1 -1
- package/dist/chunks/{project-qx4t3fpp.js → kv-ha3v7j9n.js} +25 -25
- package/dist/chunks/{project-fraxrbyh.js → kv-hcw36pe0.js} +2 -2
- package/dist/chunks/{project-89pqg31m.js → kv-hp4n7r8y.js} +11 -11
- package/dist/chunks/{project-rm2jqjsd.js → kv-hr01rhr5.js} +24 -24
- package/dist/chunks/{project-622ek8sf.js → kv-hrscc878.js} +6 -6
- package/dist/chunks/{project-2wsxz18f.js → kv-hyrm0rmn.js} +20 -20
- package/dist/chunks/{project-2yf83c6y.js → kv-j24nbwsh.js} +11 -11
- package/dist/chunks/{project-28jfcc4w.js → kv-j3k3m7ve.js} +28 -28
- package/dist/chunks/{project-j56e64zr.js → kv-j56e64zr.js} +1 -1
- package/dist/chunks/{project-vrjh2f6v.js → kv-j72w05ga.js} +4 -4
- package/dist/chunks/{project-2149nv1z.js → kv-jtgs360h.js} +4 -4
- package/dist/chunks/{project-ddt2bs9e.js → kv-jvf3yq6v.js} +4 -4
- package/dist/chunks/{project-g190xswt.js → kv-jw80jp6b.js} +4 -4
- package/dist/chunks/{project-k3c624dm.js → kv-k3c624dm.js} +3 -3
- package/dist/chunks/{project-4n60pb9e.js → kv-k4cyhbf6.js} +3 -3
- package/dist/chunks/{project-dtm8hsv1.js → kv-k66h0t0z.js} +15 -15
- package/dist/chunks/{project-agjs0zsw.js → kv-k76dc58r.js} +10 -10
- package/dist/chunks/{project-xfacq6rb.js → kv-k8z1j8bc.js} +37 -37
- package/dist/chunks/{project-83tfvzb6.js → kv-k9htr8gw.js} +23 -23
- package/dist/chunks/{project-cmhg39yj.js → kv-kan8w75z.js} +47 -47
- package/dist/chunks/{project-ezzzks3g.js → kv-kef0s52w.js} +15 -15
- package/dist/chunks/{project-b4m32151.js → kv-kv59heee.js} +7 -7
- package/dist/chunks/{project-gqfpkqz0.js → kv-m2s1daxd.js} +8 -8
- package/dist/chunks/{project-m3fdjcah.js → kv-m3fdjcah.js} +1 -1
- package/dist/chunks/{project-xjcg4rpa.js → kv-m4a35hkc.js} +12 -12
- package/dist/chunks/{project-h91h2q9q.js → kv-m7hjtbwd.js} +11 -11
- package/dist/chunks/{project-818pfwc9.js → kv-m9d03vsf.js} +5 -5
- package/dist/chunks/{project-m9w0rfyh.js → kv-m9w0rfyh.js} +1 -1
- package/dist/chunks/{project-gynv5cx7.js → kv-mf9m2v67.js} +2 -2
- package/dist/chunks/{project-731p8km1.js → kv-mr6a1zft.js} +18 -18
- package/dist/chunks/{project-tazp3vs0.js → kv-mvksx64m.js} +4 -4
- package/dist/chunks/{project-yj5dcj2b.js → kv-my01dwmv.js} +48 -48
- package/dist/chunks/{project-r1bvamk5.js → kv-mycyv5bt.js} +17 -17
- package/dist/chunks/{project-rqkmnqjz.js → kv-n0ezjpg5.js} +82 -82
- package/dist/chunks/{project-8tbe00j0.js → kv-n3efnppn.js} +42 -42
- package/dist/chunks/{project-sjbpejxc.js → kv-n4k2ksae.js} +10 -10
- package/dist/chunks/{project-ce0gdwa2.js → kv-n90bgf63.js} +16 -16
- package/dist/chunks/{project-qyeqsdzg.js → kv-n9svnw10.js} +11 -11
- package/dist/chunks/{project-ws541e64.js → kv-nr2895gc.js} +28 -28
- package/dist/chunks/{project-nb6xv2ms.js → kv-nrqx4r7t.js} +13 -13
- package/dist/chunks/{project-njdvb0jf.js → kv-nws5ej3a.js} +7 -7
- package/dist/chunks/{project-x4sg8qy2.js → kv-p22sctqx.js} +25 -25
- package/dist/chunks/{project-ha1653ey.js → kv-p2a54bnb.js} +24 -24
- package/dist/chunks/{project-7zdfjpaf.js → kv-p5010f6a.js} +8 -8
- package/dist/chunks/{project-phstrbs2.js → kv-pa8pe2x7.js} +8 -8
- package/dist/chunks/{project-zbt67hek.js → kv-paj8w7mt.js} +25 -25
- package/dist/chunks/{project-pjvnvgmy.js → kv-pjvnvgmy.js} +1 -1
- package/dist/chunks/{project-pknna89w.js → kv-pknna89w.js} +1 -1
- package/dist/chunks/{project-690tj456.js → kv-pv2mm3wb.js} +9 -9
- package/dist/chunks/{project-rkprpv83.js → kv-py3kkmfq.js} +2 -2
- package/dist/chunks/{project-yycjvcgh.js → kv-pz1g91fe.js} +6 -6
- package/dist/chunks/{project-06y3hwfp.js → kv-q2b1qbpc.js} +20 -20
- package/dist/chunks/{project-pnv527nz.js → kv-qg0jgkcp.js} +9 -9
- package/dist/chunks/{project-7wha6mnd.js → kv-qjbjw52h.js} +14 -14
- package/dist/chunks/{project-b77cpj6m.js → kv-qjzz4gcc.js} +3 -3
- package/dist/chunks/{project-aym04382.js → kv-qp96avfw.js} +4 -4
- package/dist/chunks/{project-qsdy395h.js → kv-qsdy395h.js} +1 -1
- package/dist/chunks/{project-4rc67e32.js → kv-qwzpj14n.js} +31 -31
- package/dist/chunks/{project-f2n192rq.js → kv-r8xr0va3.js} +4 -4
- package/dist/chunks/{project-36t51zhw.js → kv-rcxra8rk.js} +33 -33
- package/dist/chunks/{project-rdw6cm16.js → kv-rdw6cm16.js} +1 -1
- package/dist/chunks/{project-49nm2bgr.js → kv-rgxeprjc.js} +5 -5
- package/dist/chunks/{project-0gdmqesm.js → kv-rhjbct0v.js} +4 -4
- package/dist/chunks/{project-2a4f6v5q.js → kv-rtathh62.js} +8 -8
- package/dist/chunks/{project-yhabtz5d.js → kv-rtyt3vxy.js} +5 -5
- package/dist/chunks/{project-xearycz2.js → kv-rvfpvrjw.js} +22 -22
- package/dist/chunks/{project-ps3kyhtj.js → kv-s0mc9769.js} +27 -27
- package/dist/chunks/{project-a3ftg8j6.js → kv-s1kvmffy.js} +9 -9
- package/dist/chunks/{project-x9y4zj8b.js → kv-s506am1b.js} +28 -28
- package/dist/chunks/{project-8n69n882.js → kv-sm965ndy.js} +8 -8
- package/dist/chunks/{project-cwsayzrf.js → kv-sw58q4t9.js} +11 -11
- package/dist/chunks/{project-zsr4wwhv.js → kv-syf57q56.js} +4 -4
- package/dist/chunks/{project-p4vtg1gg.js → kv-t174n7tr.js} +8 -8
- package/dist/chunks/{project-qafwspfk.js → kv-t4w84n8b.js} +18 -18
- package/dist/chunks/{project-mymfc32k.js → kv-t5x1svsd.js} +25 -25
- package/dist/chunks/{project-t8x4yvbd.js → kv-t7rncwqp.js} +15 -15
- package/dist/chunks/{project-7me2h9s5.js → kv-t96tb74j.js} +8 -8
- package/dist/chunks/{project-pyvffvbh.js → kv-t9xcy66w.js} +20 -20
- package/dist/chunks/{project-tazgh4e4.js → kv-tazgh4e4.js} +1 -1
- package/dist/chunks/{project-bacyadyn.js → kv-tbmac1c7.js} +4 -4
- package/dist/chunks/{project-395kcsa0.js → kv-tbx15xaw.js} +9 -9
- package/dist/chunks/{project-tdstcens.js → kv-tdstcens.js} +1 -1
- package/dist/chunks/{project-vcrqcsww.js → kv-thhwr6t4.js} +3 -3
- package/dist/chunks/{project-eptgt4qp.js → kv-tq46j658.js} +16 -16
- package/dist/chunks/{project-5aevq8xe.js → kv-tra6tf1f.js} +69 -69
- package/dist/chunks/{project-tvtrv512.js → kv-tvtrv512.js} +1 -1
- package/dist/chunks/{project-z0sn24qa.js → kv-v21f9waq.js} +44 -44
- package/dist/chunks/{project-sxz6gkc3.js → kv-v5dkyp31.js} +7 -7
- package/dist/chunks/{project-5wm15th1.js → kv-v76ha64y.js} +21 -21
- package/dist/chunks/{project-ckz58j26.js → kv-v9gmpqr7.js} +14 -14
- package/dist/chunks/{project-8hgqfxgb.js → kv-vcqkga2e.js} +11 -11
- package/dist/chunks/{project-erf911ze.js → kv-ve7kbmta.js} +23 -23
- package/dist/chunks/{project-veqvce7d.js → kv-veqvce7d.js} +1 -1
- package/dist/chunks/{project-4h4fe64w.js → kv-vhvgsany.js} +176 -176
- package/dist/chunks/{project-4t67bpxd.js → kv-vmfpnctd.js} +5 -5
- package/dist/chunks/{project-b3tbq4w8.js → kv-vmtaatps.js} +5 -5
- package/dist/chunks/{project-ar3z6bxk.js → kv-vw4z4sc9.js} +11 -11
- package/dist/chunks/{project-vzcthcp8.js → kv-vzcthcp8.js} +1 -1
- package/dist/chunks/{project-vzs5sf6e.js → kv-vzs5sf6e.js} +1 -1
- package/dist/chunks/{project-kxf98cfh.js → kv-w137fpva.js} +3 -3
- package/dist/chunks/{project-w3wsvvr9.js → kv-w3wsvvr9.js} +1 -1
- package/dist/chunks/{project-jdts96jg.js → kv-w4z26r1d.js} +13 -13
- package/dist/chunks/{project-as4r4vj3.js → kv-w73th6vr.js} +19 -19
- package/dist/chunks/{project-my56d36v.js → kv-w7fkdfn4.js} +3 -3
- package/dist/chunks/{project-qsxf26yz.js → kv-waa9wdep.js} +4 -4
- package/dist/chunks/{project-vdgcxr2s.js → kv-wbx93pnf.js} +26 -26
- package/dist/chunks/{project-wd3x2cqz.js → kv-wd3x2cqz.js} +2 -2
- package/dist/chunks/{project-wd87259q.js → kv-wd87259q.js} +1 -1
- package/dist/chunks/{project-8rz9f2b3.js → kv-wh1jk1cy.js} +26 -26
- package/dist/chunks/{project-7fswxymx.js → kv-whs00jjs.js} +27 -27
- package/dist/chunks/{project-xtsr5b6r.js → kv-wqdtphwj.js} +6 -6
- package/dist/chunks/{project-1mkytn8n.js → kv-wxddrk0a.js} +23 -23
- package/dist/chunks/{project-x1ezjp6w.js → kv-x1ezjp6w.js} +1 -1
- package/dist/chunks/{project-7a79fyt5.js → kv-x5y6s6jw.js} +3 -3
- package/dist/chunks/{project-qrj3wnkg.js → kv-xa69991s.js} +12 -12
- package/dist/chunks/{project-9bf000qt.js → kv-xbp71ze3.js} +11 -11
- package/dist/chunks/{project-drwq78ky.js → kv-xfkkasph.js} +4 -4
- package/dist/chunks/{project-a4790m31.js → kv-xn3zr9d1.js} +23 -23
- package/dist/chunks/{project-ddjweyn8.js → kv-xqmw2bb2.js} +7 -7
- package/dist/chunks/{project-3z8zkz19.js → kv-xqn789rv.js} +6 -6
- package/dist/chunks/{project-r41x2cw7.js → kv-xr0mnman.js} +10 -10
- package/dist/chunks/{project-y1fvbwt7.js → kv-y1fvbwt7.js} +1 -1
- package/dist/chunks/{project-y5941b4h.js → kv-y1pttp5r.js} +16 -16
- package/dist/chunks/{project-y71avatq.js → kv-y71avatq.js} +1 -1
- package/dist/chunks/{project-w45fphrw.js → kv-y78vvsaa.js} +24 -24
- package/dist/chunks/{project-bv2xgvbd.js → kv-yaah2hay.js} +48 -48
- package/dist/chunks/{project-d7fjbfjm.js → kv-yb8n5v0q.js} +4 -4
- package/dist/chunks/{project-redx8gv2.js → kv-yckxn69w.js} +28 -28
- package/dist/chunks/{project-j88kjays.js → kv-yemge86g.js} +17 -17
- package/dist/chunks/{project-ab0bg4br.js → kv-yg0bv6zp.js} +11 -11
- package/dist/chunks/{project-a694798e.js → kv-ykczf8eq.js} +5 -5
- package/dist/chunks/{project-sfq9drnd.js → kv-yq5vd6y3.js} +24 -24
- package/dist/chunks/{project-yrhqyw5v.js → kv-yrhqyw5v.js} +1 -1
- package/dist/chunks/{project-t8y50d2h.js → kv-yrkyn6fx.js} +1 -1
- package/dist/chunks/{project-yrznvahk.js → kv-yrznvahk.js} +2 -2
- package/dist/chunks/{project-b3e7wqv3.js → kv-yyg0qxr9.js} +5 -5
- package/dist/chunks/{project-z07pqspn.js → kv-z07pqspn.js} +3 -3
- package/dist/chunks/{project-z0bkrqjs.js → kv-z0bkrqjs.js} +1 -1
- package/dist/chunks/{project-xnaw95gh.js → kv-z50nkf99.js} +13 -13
- package/dist/chunks/{project-sy9r8w3b.js → kv-z5p56kqb.js} +32 -32
- package/dist/chunks/{project-z63w68vq.js → kv-z63w68vq.js} +2 -2
- package/dist/chunks/{project-pe58eyng.js → kv-z8vras6m.js} +9 -9
- package/dist/chunks/{project-zeh9ct20.js → kv-zeh9ct20.js} +2 -2
- package/dist/chunks/{project-3tzgvxzm.js → kv-zehz82ct.js} +29 -29
- package/dist/chunks/{project-zr2ceqn5.js → kv-zr2ceqn5.js} +1 -1
- package/dist/chunks/{project-zxq2ej10.js → kv-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +120 -120
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +371 -371
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +70 -70
- package/dist/file-access.js +100 -100
- package/dist/file-mutation.js +90 -90
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +226 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -102
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +362 -362
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +359 -359
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +334 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +120 -120
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +162 -162
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +84 -84
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +228 -228
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +222 -222
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -232
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +211 -211
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +114 -114
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +116 -116
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +218 -218
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +1 -1
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/project-7y0h37ky.js +0 -252
- package/dist/chunks/project-9zdhvgqs.js +0 -18
- /package/dist/chunks/{project-0qkdqm5v.js → kv-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{project-0zkw76rk.js → kv-0zkw76rk.js} +0 -0
- /package/dist/chunks/{project-17cy0kzp.js → kv-17cy0kzp.js} +0 -0
- /package/dist/chunks/{project-1cnp2v09.js → kv-1cnp2v09.js} +0 -0
- /package/dist/chunks/{project-1kg9ymc8.js → kv-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{project-24dcb14g.js → kv-24dcb14g.js} +0 -0
- /package/dist/chunks/{project-2710q6r3.js → kv-2710q6r3.js} +0 -0
- /package/dist/chunks/{project-2axfhc9x.js → kv-2axfhc9x.js} +0 -0
- /package/dist/chunks/{project-2c3vjs8z.js → kv-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{project-34c7v6d4.js → kv-34c7v6d4.js} +0 -0
- /package/dist/chunks/{project-359p4xyc.js → kv-359p4xyc.js} +0 -0
- /package/dist/chunks/{project-3asan66x.js → kv-3asan66x.js} +0 -0
- /package/dist/chunks/{project-3v8g72cx.js → kv-3v8g72cx.js} +0 -0
- /package/dist/chunks/{project-3w5fmr99.js → kv-3w5fmr99.js} +0 -0
- /package/dist/chunks/{project-3wcehsnq.js → kv-3wcehsnq.js} +0 -0
- /package/dist/chunks/{project-43n2bw4t.js → kv-43n2bw4t.js} +0 -0
- /package/dist/chunks/{project-4knz6hnm.js → kv-4knz6hnm.js} +0 -0
- /package/dist/chunks/{project-4vcrnpx2.js → kv-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{project-4y7fprxs.js → kv-4y7fprxs.js} +0 -0
- /package/dist/chunks/{project-53557ph1.js → kv-53557ph1.js} +0 -0
- /package/dist/chunks/{project-550bvhaj.js → kv-550bvhaj.js} +0 -0
- /package/dist/chunks/{project-5qd3pb7m.js → kv-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{project-6prwharc.js → kv-6prwharc.js} +0 -0
- /package/dist/chunks/{project-7akdwqpd.js → kv-7akdwqpd.js} +0 -0
- /package/dist/chunks/{project-7m9af43g.js → kv-7m9af43g.js} +0 -0
- /package/dist/chunks/{project-822emrt2.js → kv-822emrt2.js} +0 -0
- /package/dist/chunks/{project-88xbtdfr.js → kv-88xbtdfr.js} +0 -0
- /package/dist/chunks/{project-8n3pysct.js → kv-8n3pysct.js} +0 -0
- /package/dist/chunks/{project-8wj87zfr.js → kv-8wj87zfr.js} +0 -0
- /package/dist/chunks/{project-922hggd3.js → kv-922hggd3.js} +0 -0
- /package/dist/chunks/{project-9a4afbnw.js → kv-9a4afbnw.js} +0 -0
- /package/dist/chunks/{project-9rqn6x4v.js → kv-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{project-a6k6eb26.js → kv-a6k6eb26.js} +0 -0
- /package/dist/chunks/{project-af5trqkr.js → kv-af5trqkr.js} +0 -0
- /package/dist/chunks/{project-afrmfg78.js → kv-afrmfg78.js} +0 -0
- /package/dist/chunks/{project-aqzs7mqg.js → kv-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{project-atq7p7m5.js → kv-atq7p7m5.js} +0 -0
- /package/dist/chunks/{project-bkyjaxrp.js → kv-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{project-bmr6ed5q.js → kv-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{project-cf4snx6d.js → kv-cf4snx6d.js} +0 -0
- /package/dist/chunks/{project-cvy3z8tj.js → kv-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{project-d9fn303g.js → kv-d9fn303g.js} +0 -0
- /package/dist/chunks/{project-d9jj8t3e.js → kv-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{project-dajrwvna.js → kv-dajrwvna.js} +0 -0
- /package/dist/chunks/{project-dap0rakb.js → kv-dap0rakb.js} +0 -0
- /package/dist/chunks/{project-df08tz66.js → kv-df08tz66.js} +0 -0
- /package/dist/chunks/{project-dy18nga0.js → kv-dy18nga0.js} +0 -0
- /package/dist/chunks/{project-e5kj55wp.js → kv-e5kj55wp.js} +0 -0
- /package/dist/chunks/{project-e73j6tqm.js → kv-e73j6tqm.js} +0 -0
- /package/dist/chunks/{project-ec1grn59.js → kv-ec1grn59.js} +0 -0
- /package/dist/chunks/{project-eh3zwz77.js → kv-eh3zwz77.js} +0 -0
- /package/dist/chunks/{project-emrn6kk6.js → kv-emrn6kk6.js} +0 -0
- /package/dist/chunks/{project-f0mxakyp.js → kv-f0mxakyp.js} +0 -0
- /package/dist/chunks/{project-f6n9ztr4.js → kv-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{project-faypxj3z.js → kv-faypxj3z.js} +0 -0
- /package/dist/chunks/{project-fd410y7t.js → kv-fd410y7t.js} +0 -0
- /package/dist/chunks/{project-fxgpk5d8.js → kv-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{project-g4wezp1m.js → kv-g4wezp1m.js} +0 -0
- /package/dist/chunks/{project-g86h250q.js → kv-g86h250q.js} +0 -0
- /package/dist/chunks/{project-gebd4c9n.js → kv-gebd4c9n.js} +0 -0
- /package/dist/chunks/{project-gftt206x.js → kv-gftt206x.js} +0 -0
- /package/dist/chunks/{project-hjbc5kem.js → kv-hjbc5kem.js} +0 -0
- /package/dist/chunks/{project-hk9envan.js → kv-hk9envan.js} +0 -0
- /package/dist/chunks/{project-j2ntwpah.js → kv-j2ntwpah.js} +0 -0
- /package/dist/chunks/{project-j5zkgpj8.js → kv-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{project-jjkms2e6.js → kv-jjkms2e6.js} +0 -0
- /package/dist/chunks/{project-jr7sbwjy.js → kv-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{project-jwfs4k6c.js → kv-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{project-jzg6c2d5.js → kv-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{project-mp448xyj.js → kv-mp448xyj.js} +0 -0
- /package/dist/chunks/{project-msx8hqn2.js → kv-msx8hqn2.js} +0 -0
- /package/dist/chunks/{project-n05xt0ee.js → kv-n05xt0ee.js} +0 -0
- /package/dist/chunks/{project-n3j8tn72.js → kv-n3j8tn72.js} +0 -0
- /package/dist/chunks/{project-njntx4h6.js → kv-njntx4h6.js} +0 -0
- /package/dist/chunks/{project-q3sfg36h.js → kv-q3sfg36h.js} +0 -0
- /package/dist/chunks/{project-q74kybfr.js → kv-q74kybfr.js} +0 -0
- /package/dist/chunks/{project-qaymkmh1.js → kv-qaymkmh1.js} +0 -0
- /package/dist/chunks/{project-qb87gjwd.js → kv-qb87gjwd.js} +0 -0
- /package/dist/chunks/{project-qfa1cgps.js → kv-qfa1cgps.js} +0 -0
- /package/dist/chunks/{project-qg3g05ea.js → kv-qg3g05ea.js} +0 -0
- /package/dist/chunks/{project-qrg20bc0.js → kv-qrg20bc0.js} +0 -0
- /package/dist/chunks/{project-rcb2kzg1.js → kv-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{project-sdp7kfr6.js → kv-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{project-sk3qaz4a.js → kv-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{project-ssg3fenm.js → kv-ssg3fenm.js} +0 -0
- /package/dist/chunks/{project-w803qqfp.js → kv-w803qqfp.js} +0 -0
- /package/dist/chunks/{project-wc3fc9cn.js → kv-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{project-wer8tq1h.js → kv-wer8tq1h.js} +0 -0
- /package/dist/chunks/{project-wtztk69x.js → kv-wtztk69x.js} +0 -0
- /package/dist/chunks/{project-x0ckcb58.js → kv-x0ckcb58.js} +0 -0
- /package/dist/chunks/{project-x61499pn.js → kv-x61499pn.js} +0 -0
- /package/dist/chunks/{project-y44na4kk.js → kv-y44na4kk.js} +0 -0
- /package/dist/chunks/{project-y8cydn3q.js → kv-y8cydn3q.js} +0 -0
- /package/dist/chunks/{project-y8f7s663.js → kv-y8f7s663.js} +0 -0
- /package/dist/chunks/{project-ygaqb7jw.js → kv-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{project-ym463w8f.js → kv-ym463w8f.js} +0 -0
- /package/dist/chunks/{project-z9919s4g.js → kv-z9919s4g.js} +0 -0
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83,
|
|
3
3
|
node87
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./kv-2gj8p1x9.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service35,
|
|
7
|
+
node38
|
|
8
|
+
} from "./kv-kan8w75z.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service56,
|
|
11
|
+
node59
|
|
12
|
+
} from "./kv-44zqv7fv.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service40,
|
|
15
|
+
node44
|
|
16
|
+
} from "./kv-819acz3y.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./kv-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/tool/mcp.ts
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service28,
|
|
26
26
|
layer: () => layer11,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name13,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node32
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
33
33
|
import { Context, Effect, Fiber, Layer, PubSub, Semaphore, Stream } from "effect";
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
|
-
var
|
|
36
|
+
var name13 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service28 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var layer11 = Layer.effect(
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer11 = Layer.effect(Service28, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service35;
|
|
42
|
+
const tools = yield* Service40;
|
|
43
43
|
const bus = yield* Service83;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service56;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -56,7 +56,7 @@ var layer11 = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
56
56
|
output: tool.outputSchema ?? {},
|
|
57
57
|
execute: (input, context) => Effect.gen(function* () {
|
|
58
58
|
yield* permission.assert({
|
|
59
|
-
action:
|
|
59
|
+
action: name13(tool.server, tool.name),
|
|
60
60
|
resources: ["*"],
|
|
61
61
|
save: ["*"],
|
|
62
62
|
metadata: {},
|
|
@@ -105,7 +105,7 @@ var layer11 = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
105
105
|
output: output(),
|
|
106
106
|
...content.length === 0 ? {} : { content }
|
|
107
107
|
};
|
|
108
|
-
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${
|
|
108
|
+
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${name13(tool.server, tool.name)}` })))
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
111
|
});
|
|
@@ -118,12 +118,12 @@ var layer11 = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
118
118
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
119
119
|
const updates = yield* PubSub.subscribe(changes);
|
|
120
120
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
121
|
-
return
|
|
121
|
+
return Service28.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
123
|
+
var node32 = makeLocationNode({
|
|
124
|
+
service: Service28,
|
|
125
125
|
layer: layer11,
|
|
126
|
-
deps: [
|
|
126
|
+
deps: [node44, node38, node87, node59]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2,
|
|
129
|
+
export { namespace2, name13, Service28, layer11, node32, exports_mcp3 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aisdk2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-9keenhnr.js";
|
|
4
4
|
import {
|
|
5
5
|
VariantID2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-zehz82ct.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./kv-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/variant.ts
|
|
12
12
|
var exports_variant = {};
|
|
13
13
|
__export(exports_variant, {
|
|
14
14
|
Variant: () => exports_variant,
|
|
15
|
-
resolve: () =>
|
|
15
|
+
resolve: () => resolve2
|
|
16
16
|
});
|
|
17
|
-
function
|
|
17
|
+
function resolve2(model, supports = [{ type: "effort" }]) {
|
|
18
18
|
const protocol = model.package === undefined ? undefined : PROTOCOLS[model.package];
|
|
19
19
|
if (!protocol)
|
|
20
20
|
return [];
|
|
@@ -509,4 +509,4 @@ var PROTOCOLS = {
|
|
|
509
509
|
[aisdk2("@ai-sdk/cohere")]: cohere
|
|
510
510
|
};
|
|
511
511
|
|
|
512
|
-
export {
|
|
512
|
+
export { resolve2, exports_variant };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-ejwk4ccc.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-2gj8p1x9.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./kv-j3k3m7ve.js";
|
|
11
11
|
import {
|
|
12
12
|
key2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./kv-dnxkq42g.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID14,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./kv-wh1jk1cy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service14
|
|
21
|
+
} from "./kv-f5gy8qwh.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
23
|
+
ID13,
|
|
24
24
|
mergeOverlay2,
|
|
25
25
|
mergeHeaders2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./kv-9keenhnr.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
ID3,
|
|
29
|
+
Input13,
|
|
30
30
|
Response2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./kv-t5x1svsd.js";
|
|
32
32
|
|
|
33
33
|
// src/plugin/provider/opencode.ts
|
|
34
34
|
import { Duration, Effect, Equal, Option, Schema, Scope, Semaphore, Stream } from "effect";
|
|
@@ -44,7 +44,7 @@ var methodID = MethodID2.make("device");
|
|
|
44
44
|
var RemoteResponse = Schema.Struct({
|
|
45
45
|
providers: Schema.Record(Schema.String, ConfigProvider.Info),
|
|
46
46
|
websearch: Schema.Struct({
|
|
47
|
-
providerID:
|
|
47
|
+
providerID: ID3
|
|
48
48
|
}).pipe(Schema.optional),
|
|
49
49
|
mcp: Schema.Struct({
|
|
50
50
|
servers: Schema.Record(Schema.String, Schema.Struct({ ...Mcp.RemoteConfig.fields, auth: Schema.Literal("console").pipe(Schema.optional) }))
|
|
@@ -96,7 +96,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
96
96
|
}
|
|
97
97
|
function oauth(http) {
|
|
98
98
|
return {
|
|
99
|
-
integrationID:
|
|
99
|
+
integrationID: ID14.make("opencode"),
|
|
100
100
|
method: {
|
|
101
101
|
id: methodID,
|
|
102
102
|
type: "oauth",
|
|
@@ -163,7 +163,7 @@ var OpencodePlugin2 = define({
|
|
|
163
163
|
const bus = yield* Service83;
|
|
164
164
|
const client = yield* HttpClient.HttpClient;
|
|
165
165
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
166
|
-
const managed = yield*
|
|
166
|
+
const managed = yield* Service14;
|
|
167
167
|
const scope = yield* Scope.Scope;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
let snapshot = { config: undefined, connection: undefined, organization: undefined, mcp: undefined };
|
|
@@ -212,7 +212,7 @@ var OpencodePlugin2 = define({
|
|
|
212
212
|
providers.update(providerID, (provider) => {
|
|
213
213
|
if (source && source.provider !== provider)
|
|
214
214
|
Object.assign(provider, structuredClone(source.provider), { id: provider.id });
|
|
215
|
-
provider.integrationID =
|
|
215
|
+
provider.integrationID = ID14.make("opencode");
|
|
216
216
|
if (item.canonical !== undefined)
|
|
217
217
|
provider.canonical = item.canonical;
|
|
218
218
|
if (item.name !== undefined)
|
|
@@ -282,7 +282,7 @@ var OpencodePlugin2 = define({
|
|
|
282
282
|
sourceConnection: snapshot.connection
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
const item = providers.get(
|
|
285
|
+
const item = providers.get(ID13.opencode);
|
|
286
286
|
if (!item)
|
|
287
287
|
return;
|
|
288
288
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -294,7 +294,7 @@ var OpencodePlugin2 = define({
|
|
|
294
294
|
});
|
|
295
295
|
});
|
|
296
296
|
yield* ctx.model.transform((models) => {
|
|
297
|
-
const item = models.provider.get(
|
|
297
|
+
const item = models.provider.get(ID13.opencode);
|
|
298
298
|
if (!item)
|
|
299
299
|
return;
|
|
300
300
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -328,7 +328,7 @@ var OpencodePlugin2 = define({
|
|
|
328
328
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
329
329
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
330
330
|
const server = yield* normalizeServer(serverUrl(credential));
|
|
331
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
331
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input13)({
|
|
332
332
|
query: input.query,
|
|
333
333
|
providerID: descriptor.providerID
|
|
334
334
|
}));
|
|
@@ -383,10 +383,10 @@ var OpencodePlugin2 = define({
|
|
|
383
383
|
});
|
|
384
384
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
385
385
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
386
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
386
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID13.opencode, ...Object.keys(next.config?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
387
387
|
});
|
|
388
388
|
yield* guard(snapshot);
|
|
389
|
-
yield* bus.subscribe(
|
|
389
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("opencode")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
390
390
|
yield* Effect.sleep(Duration.minutes(1)).pipe(Effect.andThen(check()), Effect.forever, Effect.forkScoped);
|
|
391
391
|
})
|
|
392
392
|
});
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-kv59heee.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./kv-6hpfnskn.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
cleanup3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-gd4qta3r.js";
|
|
4
4
|
import {
|
|
5
5
|
ascending2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-tvtrv512.js";
|
|
7
7
|
import {
|
|
8
8
|
create3
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./kv-rdw6cm16.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./kv-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/tool-output.ts
|
|
15
15
|
var exports_tool_output2 = {};
|
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service61,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node64
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service61 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -116,7 +116,7 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
116
116
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
117
117
|
};
|
|
118
118
|
});
|
|
119
|
-
return
|
|
119
|
+
return Service61.of({
|
|
120
120
|
transform: state.transform,
|
|
121
121
|
reload: state.reload,
|
|
122
122
|
truncate,
|
|
@@ -133,10 +133,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
133
133
|
layer: cleanupLayer,
|
|
134
134
|
deps: [FSUtil.node, Global.node]
|
|
135
135
|
});
|
|
136
|
-
var
|
|
137
|
-
service:
|
|
136
|
+
var node64 = makeLocationNode({
|
|
137
|
+
service: Service61,
|
|
138
138
|
layer,
|
|
139
139
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
140
140
|
});
|
|
141
141
|
|
|
142
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
142
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service61, node64, exports_tool_output2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-5t3nmthw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service32,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer13,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node36
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -33,7 +33,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
33
33
|
});
|
|
34
34
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
35
35
|
|
|
36
|
-
class
|
|
36
|
+
class Service32 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
37
37
|
}
|
|
38
38
|
var transportError = (message, input) => new AIError({
|
|
39
39
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -57,7 +57,7 @@ var observationFrame = (observation) => {
|
|
|
57
57
|
return Effect.fail(observation.error);
|
|
58
58
|
};
|
|
59
59
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
60
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
60
|
+
var makeLayer2 = (connector) => Layer.effect(Service32, Effect.gen(function* () {
|
|
61
61
|
const scope = yield* Scope.Scope;
|
|
62
62
|
const states = new Map;
|
|
63
63
|
const state = (sessionID) => {
|
|
@@ -367,11 +367,11 @@ var makeLayer2 = (connector) => Layer.effect(Service23, Effect.gen(function* ()
|
|
|
367
367
|
}, { discard: true });
|
|
368
368
|
});
|
|
369
369
|
yield* Effect.addFinalizer(() => closeAll);
|
|
370
|
-
return
|
|
370
|
+
return Service32.of({ bind, close, closeAll });
|
|
371
371
|
}));
|
|
372
|
-
var
|
|
372
|
+
var layer13 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
373
373
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
374
374
|
})));
|
|
375
|
-
var
|
|
375
|
+
var node36 = makeGlobalNode({ service: Service32, layer: layer13, deps: [webSocketConstructor2] });
|
|
376
376
|
|
|
377
|
-
export {
|
|
377
|
+
export { Service32, makeLayer2, layer13, node36, exports_model_transport };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make15,
|
|
10
10
|
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -29,7 +29,7 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
// src/session/system-prompt.ts
|
|
32
|
-
function
|
|
32
|
+
function make15(tools) {
|
|
33
33
|
return render3(system_default, tools);
|
|
34
34
|
}
|
|
35
35
|
function render3(prompt, tools) {
|
|
@@ -47,4 +47,4 @@ function render3(prompt, tools) {
|
|
|
47
47
|
`));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { make15, render3, exports_system_prompt };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-ejwk4ccc.js";
|
|
4
4
|
import {
|
|
5
5
|
Service83
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./kv-2gj8p1x9.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./kv-j3k3m7ve.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./kv-wh1jk1cy.js";
|
|
15
15
|
import {
|
|
16
16
|
which2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./kv-qaymkmh1.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
ID13
|
|
20
|
+
} from "./kv-9keenhnr.js";
|
|
21
21
|
import {
|
|
22
22
|
iife2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./kv-1kg9ymc8.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./kv-pz1g91fe.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/azure.ts
|
|
29
29
|
import { Clock, Effect, Schema, Semaphore, Stream } from "effect";
|
|
@@ -43,7 +43,7 @@ var decodeToken = Schema.decodeUnknownEffect(Schema.Struct({
|
|
|
43
43
|
var AzurePlugin2 = define({
|
|
44
44
|
id: "opencode.provider.azure",
|
|
45
45
|
effect: Effect.fn(function* (ctx) {
|
|
46
|
-
const configured = yield* configuredSettings2(
|
|
46
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
47
47
|
const processes = yield* AppProcess.Service;
|
|
48
48
|
const bus = yield* Service83;
|
|
49
49
|
const tokens = new Map;
|
|
@@ -79,13 +79,13 @@ var AzurePlugin2 = define({
|
|
|
79
79
|
});
|
|
80
80
|
yield* ctx.integration.transform((editor) => {
|
|
81
81
|
editor.method.update({
|
|
82
|
-
integrationID:
|
|
82
|
+
integrationID: ID13.azure,
|
|
83
83
|
method: { type: "key", label: "API key", form: form() }
|
|
84
84
|
});
|
|
85
85
|
if (!available)
|
|
86
86
|
return;
|
|
87
87
|
editor.method.update({
|
|
88
|
-
integrationID:
|
|
88
|
+
integrationID: ID13.azure,
|
|
89
89
|
method: {
|
|
90
90
|
id: methodID,
|
|
91
91
|
type: "oauth",
|
|
@@ -117,7 +117,7 @@ var AzurePlugin2 = define({
|
|
|
117
117
|
});
|
|
118
118
|
});
|
|
119
119
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
120
|
-
const connection = yield* ctx.integration.connection.active(
|
|
120
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
121
121
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
122
122
|
return;
|
|
123
123
|
})) : undefined;
|
|
@@ -131,7 +131,7 @@ var AzurePlugin2 = define({
|
|
|
131
131
|
yield* load();
|
|
132
132
|
yield* ctx.provider.transform((evt) => {
|
|
133
133
|
for (const item of evt.list()) {
|
|
134
|
-
if (item.provider.id !==
|
|
134
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
135
135
|
continue;
|
|
136
136
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
137
137
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -149,7 +149,7 @@ var AzurePlugin2 = define({
|
|
|
149
149
|
});
|
|
150
150
|
yield* ctx.model.transform((models) => {
|
|
151
151
|
for (const item of models.provider.list()) {
|
|
152
|
-
if (item.provider.id !==
|
|
152
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
153
153
|
continue;
|
|
154
154
|
const resourceName = resolveResourceName(item.provider.settings, loaded.resource);
|
|
155
155
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -161,9 +161,9 @@ var AzurePlugin2 = define({
|
|
|
161
161
|
}
|
|
162
162
|
});
|
|
163
163
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
164
|
-
yield* bus.subscribe(
|
|
164
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("azure")), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
165
165
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
166
|
-
const connection = yield* ctx.integration.connection.active(
|
|
166
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
167
167
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
168
168
|
return;
|
|
169
169
|
})) : undefined;
|
|
@@ -175,7 +175,7 @@ var AzurePlugin2 = define({
|
|
|
175
175
|
return `Bearer ${current.access}`;
|
|
176
176
|
});
|
|
177
177
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
178
|
-
if (evt.model.providerID !==
|
|
178
|
+
if (evt.model.providerID !== ID13.azure)
|
|
179
179
|
return;
|
|
180
180
|
const authorization = yield* bearer(evt.request.url);
|
|
181
181
|
if (!authorization)
|
|
@@ -184,9 +184,9 @@ var AzurePlugin2 = define({
|
|
|
184
184
|
evt.request.headers.delete("x-api-key");
|
|
185
185
|
evt.request.headers.set("authorization", authorization);
|
|
186
186
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
187
|
-
}), { providerID:
|
|
187
|
+
}), { providerID: ID13.azure });
|
|
188
188
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
189
|
-
if (evt.model.providerID !==
|
|
189
|
+
if (evt.model.providerID !== ID13.azure)
|
|
190
190
|
return;
|
|
191
191
|
const authorization = yield* bearer(evt.url);
|
|
192
192
|
if (!authorization)
|
|
@@ -195,7 +195,7 @@ var AzurePlugin2 = define({
|
|
|
195
195
|
delete evt.headers["x-api-key"];
|
|
196
196
|
evt.headers.authorization = authorization;
|
|
197
197
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
198
|
-
}), { providerID:
|
|
198
|
+
}), { providerID: ID13.azure });
|
|
199
199
|
})
|
|
200
200
|
});
|
|
201
201
|
function resolveResourceName(settings, fallback) {
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service53
|
|
4
|
+
} from "./kv-f3v3kjt8.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./kv-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/warming.ts
|
|
10
10
|
var exports_warming = {};
|
|
11
11
|
__export(exports_warming, {
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin46,
|
|
13
13
|
WarmingPlugin: () => exports_warming
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -19,10 +19,10 @@ var defaults = {
|
|
|
19
19
|
interval: Duration.minutes(4),
|
|
20
20
|
duration: Duration.minutes(30)
|
|
21
21
|
};
|
|
22
|
-
var
|
|
22
|
+
var Plugin46 = define({
|
|
23
23
|
id: "opencode.warming",
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
|
-
const config = yield*
|
|
25
|
+
const config = yield* Service53;
|
|
26
26
|
const loadSettings = Effect.fn("WarmingPlugin.loadSettings")(function* () {
|
|
27
27
|
const warming = latest2(yield* config.entries(), "warming");
|
|
28
28
|
if (!warming)
|
|
@@ -96,4 +96,4 @@ var Plugin44 = define({
|
|
|
96
96
|
})
|
|
97
97
|
});
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin46, exports_warming };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./kv-2gj8p1x9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service13,
|
|
6
|
+
Event2
|
|
7
|
+
} from "./kv-e1y3ehrf.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/models-dev.ts
|
|
10
10
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ var BEDROCK_PROFILE_ONLY_IDS = [
|
|
|
29
29
|
var ModelsDevPlugin2 = define({
|
|
30
30
|
id: "opencode.models.dev",
|
|
31
31
|
effect: Effect.fn(function* (ctx) {
|
|
32
|
-
const modelsDev = yield*
|
|
32
|
+
const modelsDev = yield* Service13;
|
|
33
33
|
const bus = yield* Service83;
|
|
34
34
|
const loaded = { data: snapshots(yield* modelsDev.get()) };
|
|
35
35
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -63,7 +63,7 @@ var ModelsDevPlugin2 = define({
|
|
|
63
63
|
loaded.data = snapshots(data);
|
|
64
64
|
return ctx.integration.reload().pipe(Effect.andThen(ctx.provider.reload()));
|
|
65
65
|
};
|
|
66
|
-
yield* bus.subscribe(
|
|
66
|
+
yield* bus.subscribe(Event2.Refreshed).pipe(Stream.runForEach(() => modelsDev.get().pipe(Effect.flatMap(apply))), Effect.forkScoped({ startImmediately: true }));
|
|
67
67
|
const latest = yield* modelsDev.get();
|
|
68
68
|
if (snapshots(latest) !== loaded.data)
|
|
69
69
|
yield* apply(latest);
|