@opencode/core 0.0.0-dev-1169 → 0.0.0-dev-1179
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 +82 -82
- package/dist/aisdk-native.js +1 -1
- package/dist/aisdk.js +109 -109
- package/dist/app.js +5 -5
- package/dist/artifact.js +257 -257
- package/dist/bus.js +80 -80
- package/dist/chunks/{schema-aj7mw0zk.js → location-034tev2y.js} +2 -2
- package/dist/chunks/{schema-pmpqfy7z.js → location-07qnb2a9.js} +32 -32
- package/dist/chunks/{schema-mmk0jhxb.js → location-0aekehyv.js} +15 -15
- package/dist/chunks/{schema-65g7jm80.js → location-0ekwy2tv.js} +18 -18
- package/dist/chunks/{schema-0j7gp832.js → location-0j7gp832.js} +1 -1
- package/dist/chunks/{schema-7k5jmvhj.js → location-0m3187re.js} +21 -21
- package/dist/chunks/{schema-0ma9gw4f.js → location-0ma9gw4f.js} +2 -2
- package/dist/chunks/{schema-9rtfsky6.js → location-0nqcan8y.js} +29 -29
- package/dist/chunks/{schema-vgp39c3q.js → location-10f7w4cc.js} +19 -19
- package/dist/chunks/{schema-pjf82mvf.js → location-10t768hb.js} +33 -33
- package/dist/chunks/{schema-s02m1st8.js → location-18znffw0.js} +29 -29
- package/dist/chunks/{schema-1aqsckx4.js → location-1aqsckx4.js} +1 -1
- package/dist/chunks/{schema-2hpjgcj7.js → location-1bx6cned.js} +15 -15
- package/dist/chunks/{schema-27w5k9zf.js → location-1ep2p91f.js} +2 -2
- package/dist/chunks/{schema-9nh708zh.js → location-1m2wk9v5.js} +6 -6
- package/dist/chunks/{schema-6a3nme33.js → location-1vj6xvjw.js} +18 -18
- package/dist/chunks/{schema-1x2knyw4.js → location-1x2knyw4.js} +1 -1
- package/dist/chunks/{schema-1yq9hg58.js → location-1yq9hg58.js} +1 -1
- package/dist/chunks/{schema-t9vhjqng.js → location-20h34wnp.js} +16 -16
- package/dist/chunks/{schema-etrnj9s7.js → location-233argac.js} +6 -6
- package/dist/chunks/{schema-xv3aaf54.js → location-2abzm25x.js} +13 -13
- package/dist/chunks/{schema-2fc7eemy.js → location-2fc7eemy.js} +1 -1
- package/dist/chunks/{schema-6y4qc4mp.js → location-2h9m3223.js} +14 -14
- package/dist/chunks/{schema-f6aj1kd5.js → location-2njzdmfy.js} +15 -15
- package/dist/chunks/{schema-2p60zmnr.js → location-2p60zmnr.js} +2 -2
- package/dist/chunks/{schema-s1xc4ekk.js → location-2rxv96ss.js} +8 -8
- package/dist/chunks/{schema-4zcepfyr.js → location-2y8q1569.js} +4 -4
- package/dist/chunks/{schema-a6kay9xz.js → location-2zey878g.js} +8 -8
- package/dist/chunks/{schema-1p6p0791.js → location-30m4s9qv.js} +7 -7
- package/dist/chunks/{schema-xznbj9qp.js → location-37xrhg99.js} +22 -22
- package/dist/chunks/{schema-fq23ffp0.js → location-3drk4kfk.js} +7 -7
- package/dist/chunks/{schema-3hepkmqq.js → location-3hepkmqq.js} +1 -1
- package/dist/chunks/location-3khabdj8.js +26 -0
- package/dist/chunks/{schema-3nnrz6f6.js → location-3nnrz6f6.js} +1 -1
- package/dist/chunks/{schema-vz5bqa0f.js → location-3pfs30kn.js} +12 -12
- package/dist/chunks/{schema-r17fbvme.js → location-3qgwywyc.js} +4 -4
- package/dist/chunks/{schema-2m6srr37.js → location-3sp0ngqj.js} +13 -13
- package/dist/chunks/{schema-xneeh6s4.js → location-3vy7qf6d.js} +13 -13
- package/dist/chunks/{schema-nstbetgn.js → location-3w8a4vh4.js} +8 -8
- package/dist/chunks/{schema-40y6dtc2.js → location-40y6dtc2.js} +1 -1
- package/dist/chunks/{schema-44pmzq9c.js → location-44pmzq9c.js} +2 -2
- package/dist/chunks/{schema-vtkvgxem.js → location-453w9m5z.js} +14 -14
- package/dist/chunks/{schema-6c25bs39.js → location-487t1s35.js} +17 -17
- package/dist/chunks/{schema-dsgstd3d.js → location-4b0zbebg.js} +15 -15
- package/dist/chunks/{schema-4dx1dgte.js → location-4dx1dgte.js} +1 -1
- package/dist/chunks/{schema-4f25tdd0.js → location-4f25tdd0.js} +1 -1
- package/dist/chunks/{schema-7a9m1j2x.js → location-4p430f57.js} +8 -8
- package/dist/chunks/{schema-4pyp9zr9.js → location-4pyp9zr9.js} +1 -1
- package/dist/chunks/{schema-4v008n1t.js → location-4v008n1t.js} +1 -1
- package/dist/chunks/{schema-nbbfmg35.js → location-4ydnaq49.js} +9 -9
- package/dist/chunks/{schema-pe69sqjx.js → location-51qrcxr9.js} +10 -9
- package/dist/chunks/{schema-f0wpasqh.js → location-520q9z14.js} +3 -3
- package/dist/chunks/{schema-9wxzp1qr.js → location-54jv2wzs.js} +26 -26
- package/dist/chunks/{schema-01h9qvbn.js → location-54mwx2mf.js} +30 -30
- package/dist/chunks/{schema-ksd47y91.js → location-5cfgnwdt.js} +30 -30
- package/dist/chunks/{schema-0jfy4hkm.js → location-5j27558h.js} +11 -11
- package/dist/chunks/{schema-g2183vvk.js → location-5jgktrgx.js} +3 -3
- package/dist/chunks/{schema-5m9w47nd.js → location-5m9w47nd.js} +1 -1
- package/dist/chunks/{schema-95zwqs5c.js → location-5rd0v6y0.js} +140 -140
- package/dist/chunks/{schema-7tfjg757.js → location-5sfzg2cr.js} +12 -12
- package/dist/chunks/{schema-qmqqtqcn.js → location-5shjjg2v.js} +3 -3
- package/dist/chunks/{schema-626jn072.js → location-5wddjt8m.js} +21 -21
- package/dist/chunks/{schema-5whx36p1.js → location-5whx36p1.js} +1 -1
- package/dist/chunks/{schema-n5k4x34p.js → location-5yz9twxg.js} +51 -51
- package/dist/chunks/{schema-5zpqhmp2.js → location-5zpqhmp2.js} +3 -3
- package/dist/chunks/{schema-e2sh8fdv.js → location-627853rm.js} +9 -9
- package/dist/chunks/{schema-yts2a8qm.js → location-67wwskyb.js} +4 -4
- package/dist/chunks/{schema-963hk181.js → location-68cs06h1.js} +5 -5
- package/dist/chunks/{schema-9hjrmeye.js → location-6syc23cm.js} +8 -8
- package/dist/chunks/{schema-e5q9zwm8.js → location-6wbggnwm.js} +12 -12
- package/dist/chunks/{schema-6y2b864j.js → location-6y2b864j.js} +1 -1
- package/dist/chunks/{schema-yyb7x4q2.js → location-6zdnk2ay.js} +34 -34
- package/dist/chunks/{schema-054zc0xd.js → location-74pdjgc4.js} +3 -3
- package/dist/chunks/{schema-775hqbnd.js → location-775hqbnd.js} +3 -3
- package/dist/chunks/{schema-7bmhse3q.js → location-7bmhse3q.js} +1 -1
- package/dist/chunks/{schema-cn0khwc2.js → location-7dffjqxb.js} +17 -17
- package/dist/chunks/{schema-ync0ket7.js → location-7fx8nsmy.js} +5 -5
- package/dist/chunks/{schema-1fqa7gdp.js → location-7n6fyy26.js} +3 -3
- package/dist/chunks/{schema-s5jhzpr9.js → location-7nfcbe58.js} +27 -27
- package/dist/chunks/{schema-nfdz4xt8.js → location-7nhv6fwk.js} +36 -36
- package/dist/chunks/{schema-v8vtkzra.js → location-7t1scbq3.js} +79 -79
- package/dist/chunks/{schema-7w2ypzdf.js → location-7w2ypzdf.js} +1 -1
- package/dist/chunks/{schema-7weczvnd.js → location-7weczvnd.js} +1 -1
- package/dist/chunks/{schema-1awa9fg3.js → location-7xf9shm2.js} +9 -9
- package/dist/chunks/{schema-9zf7nxcy.js → location-7z3v8rbt.js} +10 -10
- package/dist/chunks/{schema-yj5p50qd.js → location-7zne7j5x.js} +5 -5
- package/dist/chunks/{schema-80pdk984.js → location-80pdk984.js} +1 -1
- package/dist/chunks/{schema-yhy601mr.js → location-832r0z2t.js} +9 -9
- package/dist/chunks/{schema-swtby07c.js → location-834sk437.js} +4 -4
- package/dist/chunks/{schema-85jq8dht.js → location-85jq8dht.js} +1 -1
- package/dist/chunks/{schema-zk8ezkjv.js → location-8a9mkwdh.js} +8 -8
- package/dist/chunks/{schema-8b3vzgkx.js → location-8b3vzgkx.js} +1 -1
- package/dist/chunks/{schema-essv7e64.js → location-8djrpyw1.js} +8 -8
- package/dist/chunks/{schema-m98552er.js → location-8dvxgptq.js} +2 -2
- package/dist/chunks/{schema-32zvh7m8.js → location-8fyfc21t.js} +29 -29
- package/dist/chunks/{schema-ca2kttj4.js → location-8hbdfrk8.js} +4 -4
- package/dist/chunks/{schema-8kjyvwy5.js → location-8kjyvwy5.js} +1 -1
- package/dist/chunks/{schema-37rq3n90.js → location-8nqeb6jh.js} +24 -24
- package/dist/chunks/{schema-2gpvmrfd.js → location-8r6kez7m.js} +40 -38
- package/dist/chunks/{schema-35jtqnzh.js → location-8s5nypsy.js} +15 -15
- package/dist/chunks/{schema-bb3mmwvh.js → location-8sxe6kv8.js} +2 -2
- package/dist/chunks/{schema-8wtp7s3z.js → location-8wtp7s3z.js} +1 -1
- package/dist/chunks/{schema-s62h8xwa.js → location-8xxagg6y.js} +16 -16
- package/dist/chunks/{schema-8zv0xmg5.js → location-8zv0xmg5.js} +1 -1
- package/dist/chunks/{schema-sf9y72b7.js → location-90ct6wq4.js} +4 -4
- package/dist/chunks/{schema-txgthtwa.js → location-9dxxrkg1.js} +8 -8
- package/dist/chunks/{schema-x2199xg7.js → location-9f03aksa.js} +26 -26
- package/dist/chunks/{schema-nvrhh2jh.js → location-9fx97vxq.js} +28 -28
- package/dist/chunks/{schema-93f9eha0.js → location-9ge0any9.js} +20 -20
- package/dist/chunks/{schema-t5zz07dm.js → location-9ghhvxgs.js} +22 -22
- package/dist/chunks/{schema-p1tqk3wj.js → location-9n0cta27.js} +3 -3
- package/dist/chunks/{schema-3xnqrhgf.js → location-9vzqnq6b.js} +32 -32
- package/dist/chunks/{schema-hatv92we.js → location-a5e1wvpv.js} +9 -9
- package/dist/chunks/{schema-pet7zff3.js → location-a7gm47h5.js} +16 -16
- package/dist/chunks/{schema-894qcq1y.js → location-ang7raqx.js} +59 -59
- package/dist/chunks/{schema-00pd6sp3.js → location-avv30etj.js} +8 -8
- package/dist/chunks/{schema-3cbjf1nt.js → location-ayjs7tqn.js} +2 -2
- package/dist/chunks/{schema-b26ddj6h.js → location-b26ddj6h.js} +4 -4
- package/dist/chunks/{schema-b7nkz392.js → location-b7nkz392.js} +1 -1
- package/dist/chunks/{schema-bb65ze16.js → location-bb65ze16.js} +3 -3
- package/dist/chunks/{schema-3p57dcxh.js → location-bex4xsk5.js} +4 -4
- package/dist/chunks/{schema-5n0rnk8e.js → location-bhfd478d.js} +4 -4
- package/dist/chunks/{schema-wvp6s5r8.js → location-bq0q5ae9.js} +36 -36
- package/dist/chunks/{schema-ar7qhdy9.js → location-brdz3nbr.js} +14 -14
- package/dist/chunks/{schema-bstexjd6.js → location-bstexjd6.js} +1 -1
- package/dist/chunks/{schema-sswnp1hr.js → location-btyxa42k.js} +15 -15
- package/dist/chunks/{schema-by8ty0bx.js → location-by8ty0bx.js} +1 -1
- package/dist/chunks/location-c128d798.js +457 -0
- package/dist/chunks/{schema-82t6hvvc.js → location-c1k776k8.js} +4 -4
- package/dist/chunks/{schema-fc93665r.js → location-c1sfsxsr.js} +8 -8
- package/dist/chunks/{schema-0dpgc71n.js → location-ca4281kv.js} +19 -19
- package/dist/chunks/{schema-cd40mm2x.js → location-cedjfvec.js} +25 -25
- package/dist/chunks/{schema-dszy2cs3.js → location-cr6p4hnc.js} +4 -4
- package/dist/chunks/{schema-s5pjjcby.js → location-crf83wvf.js} +9 -9
- package/dist/chunks/{schema-6h8vcvjm.js → location-ctmpqb7w.js} +9 -9
- package/dist/chunks/{schema-cwrgdav8.js → location-cwrgdav8.js} +2 -2
- package/dist/chunks/{schema-djejg4dy.js → location-d0pmvwgf.js} +9 -9
- package/dist/chunks/{schema-pmpycxtw.js → location-d4dk6fd1.js} +14 -14
- package/dist/chunks/{schema-d4v9tmah.js → location-d4v9tmah.js} +2 -2
- package/dist/chunks/{schema-8akjpyn6.js → location-dbatw319.js} +3 -3
- package/dist/chunks/{schema-160yv0cs.js → location-ddvn7d3w.js} +8 -8
- package/dist/chunks/{schema-7zqxd1dh.js → location-dn2hn5p2.js} +8 -8
- package/dist/chunks/{schema-cqmt8zzz.js → location-dsbqjjxc.js} +7 -7
- package/dist/chunks/{schema-dt77769w.js → location-dt77769w.js} +1 -1
- package/dist/chunks/{schema-hcnkffw2.js → location-e5pdsp4h.js} +11 -11
- package/dist/chunks/{schema-28yt5ya3.js → location-e7gstf88.js} +8 -8
- package/dist/chunks/{schema-pj4g6jw6.js → location-ekhvmsd2.js} +9 -9
- package/dist/chunks/{schema-m8071f4b.js → location-en70vxsw.js} +1 -1
- package/dist/chunks/{schema-eqw4pqj1.js → location-eqw4pqj1.js} +2 -2
- package/dist/chunks/{schema-12t8q5ww.js → location-eys28pne.js} +23 -23
- package/dist/chunks/{schema-p021jaq0.js → location-f4xv0kx9.js} +10 -10
- package/dist/chunks/{schema-jpg972ga.js → location-f649f4qw.js} +5 -5
- package/dist/chunks/{schema-5cxze2ek.js → location-fcv347h7.js} +20 -20
- package/dist/chunks/{schema-h5gm5jf1.js → location-ffvvmdd5.js} +7 -7
- package/dist/chunks/{schema-fg9p65nk.js → location-fg9p65nk.js} +2 -2
- package/dist/chunks/{schema-ymfq94hg.js → location-fje0em3a.js} +17 -17
- package/dist/chunks/{schema-e36kjsvh.js → location-fqf9k8bj.js} +6 -6
- package/dist/chunks/{schema-4vhxd4fz.js → location-fyvewnmw.js} +2 -2
- package/dist/chunks/{schema-hw67g06k.js → location-g0fycf8m.js} +34 -21
- package/dist/chunks/{schema-eestr1ap.js → location-g2mcafwx.js} +11 -11
- package/dist/chunks/{schema-k3ggfjkb.js → location-g3nkktaq.js} +2 -2
- package/dist/chunks/{schema-0vb5mjcv.js → location-g5s9nrqb.js} +19 -19
- package/dist/chunks/{schema-90kfgkgm.js → location-g6eh4kmy.js} +12 -12
- package/dist/chunks/{schema-fqpvdrje.js → location-g8317pvp.js} +6 -6
- package/dist/chunks/{schema-7357t78n.js → location-g96z14v2.js} +7 -7
- package/dist/chunks/{schema-gbjdnr5j.js → location-gbjdnr5j.js} +2 -2
- package/dist/chunks/{schema-yrzcpjjp.js → location-ggj4zh1g.js} +34 -34
- package/dist/chunks/{schema-ghrv1g9c.js → location-ghrv1g9c.js} +1 -1
- package/dist/chunks/{schema-ktck1cjp.js → location-gwyytpcj.js} +6 -6
- package/dist/chunks/{schema-87kxp3gn.js → location-gx76kxxn.js} +11 -11
- package/dist/chunks/{schema-jg2ygqjd.js → location-h0j0r0ej.js} +8 -8
- package/dist/chunks/{schema-7xwq3sd0.js → location-h7bze1ap.js} +6 -6
- package/dist/chunks/{schema-bq0ysetc.js → location-hazcdx0a.js} +14 -14
- package/dist/chunks/{schema-mkqrt9r1.js → location-hb8jp00h.js} +14 -14
- package/dist/chunks/{schema-5c0ay57s.js → location-hced1q2j.js} +4 -4
- package/dist/chunks/{schema-7afn9zz1.js → location-hcrwe74w.js} +21 -21
- package/dist/chunks/location-hdcjwryz.js +34 -0
- package/dist/chunks/{schema-7y3w56wa.js → location-hesc68bg.js} +3 -3
- package/dist/chunks/{schema-dnern54h.js → location-hqtkd67t.js} +11 -11
- package/dist/chunks/location-hw97mp2c.js +145 -0
- package/dist/chunks/{schema-g44npge0.js → location-hwvn16gh.js} +19 -19
- package/dist/chunks/{schema-8jv95stc.js → location-j217sy44.js} +6 -6
- package/dist/chunks/{schema-pve6n1f6.js → location-j2gp4875.js} +20 -20
- package/dist/chunks/{schema-k278m6zw.js → location-j9avjeqn.js} +37 -37
- package/dist/chunks/{schema-j9nxzz3g.js → location-j9nxzz3g.js} +3 -3
- package/dist/chunks/{schema-ayevjdp6.js → location-jdnvwwde.js} +4 -4
- package/dist/chunks/{schema-r6ar04y2.js → location-jh2tgb1s.js} +18 -18
- package/dist/chunks/{schema-ae2hmq0b.js → location-jj4ss8qz.js} +24 -24
- package/dist/chunks/{schema-jm70asfg.js → location-jm70asfg.js} +1 -1
- package/dist/chunks/{schema-4w9c1rv8.js → location-jqzg9pfr.js} +77 -77
- package/dist/chunks/{schema-gvah0j30.js → location-jrbvgdj6.js} +9 -9
- package/dist/chunks/{schema-1yzf0qyg.js → location-kcw9t9ea.js} +31 -31
- package/dist/chunks/{schema-dwwyec8z.js → location-kgmdm1mc.js} +6 -6
- package/dist/chunks/{schema-vmqe41cb.js → location-kj9n5bvh.js} +4 -4
- package/dist/chunks/{schema-kt3bjfbg.js → location-kt3bjfbg.js} +1 -1
- package/dist/chunks/{schema-1zt50wep.js → location-kw6qjj90.js} +12 -12
- package/dist/chunks/{schema-kzczzf4v.js → location-kzczzf4v.js} +1 -1
- package/dist/chunks/{schema-m1714858.js → location-m1714858.js} +1 -1
- package/dist/chunks/{schema-xh9sbx5d.js → location-m8d5br9n.js} +29 -29
- package/dist/chunks/{schema-m90tx7mw.js → location-m90tx7mw.js} +1 -1
- package/dist/chunks/{schema-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
- package/dist/chunks/{schema-8z6m94af.js → location-mb7mbhnz.js} +3 -3
- package/dist/chunks/{schema-bszd1e77.js → location-mbhm97dq.js} +5 -5
- package/dist/chunks/{schema-me0dhgxs.js → location-me0dhgxs.js} +1 -1
- package/dist/chunks/{schema-qjjf83ye.js → location-mpce7fj6.js} +6 -6
- package/dist/chunks/{schema-zxxfjzbm.js → location-ms8w9w9p.js} +7 -7
- package/dist/chunks/{schema-msd2a3qm.js → location-msd2a3qm.js} +4 -4
- package/dist/chunks/{schema-egv7nm33.js → location-mvzyv7p1.js} +20 -20
- package/dist/chunks/{schema-qqan37dg.js → location-mw69dbej.js} +66 -56
- package/dist/chunks/{schema-n320gsn2.js → location-n320gsn2.js} +1 -1
- package/dist/chunks/{schema-7w972mxx.js → location-nbpfc68v.js} +28 -28
- package/dist/chunks/{schema-q4bddqzm.js → location-ndrffskx.js} +12 -12
- package/dist/chunks/{schema-83r2q2tc.js → location-nkbgqbmq.js} +28 -28
- package/dist/chunks/{schema-ym2hf25x.js → location-nkyv4gy5.js} +9 -9
- package/dist/chunks/{schema-wjt8g24f.js → location-nrh4pmd8.js} +42 -42
- package/dist/chunks/{schema-kny7n17h.js → location-nszxejq2.js} +46 -46
- package/dist/chunks/{schema-34nzn3j8.js → location-nts6hgg5.js} +21 -21
- package/dist/chunks/{schema-3gt03n7r.js → location-nw6v9rk5.js} +20 -20
- package/dist/chunks/{schema-cb9p0hr3.js → location-nww9qz4b.js} +5 -5
- package/dist/chunks/{schema-tamm6359.js → location-nyajycgy.js} +34 -34
- package/dist/chunks/{schema-akbak9kn.js → location-p575bqkg.js} +10 -10
- package/dist/chunks/{schema-qfbkhxhn.js → location-p6sfwv0d.js} +4 -4
- package/dist/chunks/{schema-v1nrzbej.js → location-p9ym6sf6.js} +4 -4
- package/dist/chunks/{schema-7tf6362t.js → location-pazav6xj.js} +29 -29
- package/dist/chunks/{schema-b6cq1fvz.js → location-pb8daj1x.js} +4 -4
- package/dist/chunks/{schema-ns5s5x7n.js → location-pdp6kg1x.js} +10 -10
- package/dist/chunks/{schema-zz0y7mj6.js → location-pf5q8n97.js} +20 -20
- package/dist/chunks/{schema-z583g8kc.js → location-pjmvzs6b.js} +4 -4
- package/dist/chunks/{schema-pknna89w.js → location-pknna89w.js} +1 -1
- package/dist/chunks/{schema-y5ken5vs.js → location-ppztpcxx.js} +5 -5
- package/dist/chunks/{schema-5xymd101.js → location-pwpfzbzq.js} +12 -12
- package/dist/chunks/{schema-229tvxdn.js → location-px7qpgcn.js} +4 -4
- package/dist/chunks/{schema-ph6zr0my.js → location-q2nqhswr.js} +22 -22
- package/dist/chunks/{schema-pp2hmg1m.js → location-q3kx4bqk.js} +7 -7
- package/dist/chunks/{schema-wrfejyj7.js → location-qbkag7ec.js} +11 -11
- package/dist/chunks/{schema-ntn2vp5r.js → location-qcdb8wvz.js} +20 -20
- package/dist/chunks/{schema-3n8639p5.js → location-qd1ydz3q.js} +23 -23
- package/dist/chunks/{schema-j8exsrxy.js → location-qdahr5f4.js} +26 -26
- package/dist/chunks/{schema-cce0647p.js → location-qg5v6165.js} +39 -39
- package/dist/chunks/{schema-n9g0jqka.js → location-qh9pvwbk.js} +30 -30
- package/dist/chunks/{schema-1wdt4fx4.js → location-qjx3z6qm.js} +8 -8
- package/dist/chunks/{schema-ep6pe98a.js → location-qk5sk9d1.js} +5 -5
- package/dist/chunks/{schema-s85z3cra.js → location-qkc3z5ds.js} +4 -4
- package/dist/chunks/{schema-qp7r0hxv.js → location-qp7r0hxv.js} +1 -1
- package/dist/chunks/{schema-3ew67rpx.js → location-qtpykmg2.js} +19 -19
- package/dist/chunks/location-qwz12hkq.js +16 -0
- package/dist/chunks/{schema-djbn8b3v.js → location-r35hstgm.js} +23 -23
- package/dist/chunks/{schema-w2eysc6j.js → location-r41sfy63.js} +6 -6
- package/dist/chunks/{schema-9rwnj3cf.js → location-r4970t12.js} +21 -21
- package/dist/chunks/{schema-87g0g3vw.js → location-r6f883a9.js} +43 -43
- package/dist/chunks/{schema-2tkbb2hd.js → location-r972m2ky.js} +20 -20
- package/dist/chunks/{schema-7a2p64p0.js → location-r9denkp6.js} +20 -20
- package/dist/chunks/{schema-rb9dy4dg.js → location-rb9dy4dg.js} +1 -1
- package/dist/chunks/{schema-2p7ww4m4.js → location-rc43dema.js} +35 -35
- package/dist/chunks/{schema-yve512cx.js → location-rck93akh.js} +9 -9
- package/dist/chunks/{schema-j9x1g365.js → location-re0c2r0c.js} +25 -25
- package/dist/chunks/{schema-rgc9cx3e.js → location-rgc9cx3e.js} +2 -2
- package/dist/chunks/{schema-94e33dpz.js → location-rj7jtxy8.js} +3 -3
- package/dist/chunks/{schema-7c8hwk2v.js → location-rraahxd6.js} +16 -16
- package/dist/chunks/{schema-jxw3nqfr.js → location-rva2sgyw.js} +8 -8
- package/dist/chunks/{schema-ngrhmx0y.js → location-ryjene5e.js} +34 -34
- package/dist/chunks/{schema-ns3f0y8s.js → location-s103wdxn.js} +12 -12
- package/dist/chunks/{schema-q0cx4jd1.js → location-s295w65z.js} +9 -9
- package/dist/chunks/{schema-jpaeaxj3.js → location-s3cahzjb.js} +10 -10
- package/dist/chunks/{schema-fb3jq07n.js → location-s8zafhs6.js} +4 -4
- package/dist/chunks/{schema-ynq5d5wj.js → location-sbssw13n.js} +13 -13
- package/dist/chunks/{schema-sbya78hr.js → location-sbya78hr.js} +1 -1
- package/dist/chunks/{schema-53m7ep8y.js → location-sf64733g.js} +44 -44
- package/dist/chunks/{schema-gsm10rjf.js → location-sgt8g3bn.js} +4 -4
- package/dist/chunks/{schema-hgzwgvze.js → location-sjjhs5t5.js} +2 -2
- package/dist/chunks/{schema-xfk334w4.js → location-sqp3n15g.js} +5 -5
- package/dist/chunks/{schema-svcy3p9a.js → location-svcy3p9a.js} +1 -1
- package/dist/chunks/{schema-p94p4v4n.js → location-t62dywgn.js} +4 -4
- package/dist/chunks/{schema-ba5f9dy2.js → location-tb2mrvc9.js} +4 -4
- package/dist/chunks/{schema-tbpn7jtk.js → location-tbpn7jtk.js} +1 -1
- package/dist/chunks/{schema-knq5zpdc.js → location-tc7r93jj.js} +8 -8
- package/dist/chunks/{schema-tczq8hjw.js → location-tczq8hjw.js} +1 -1
- package/dist/chunks/{schema-wgtjsce3.js → location-tfrxry9m.js} +2 -2
- package/dist/chunks/{schema-tg7s7b5t.js → location-tg7s7b5t.js} +1 -1
- package/dist/chunks/{schema-tr8x705m.js → location-tr8x705m.js} +1 -1
- package/dist/chunks/{schema-tvtps2q9.js → location-tvtps2q9.js} +1 -1
- package/dist/chunks/{schema-twssxy5n.js → location-twssxy5n.js} +2 -2
- package/dist/chunks/{schema-qr8vfs2f.js → location-v0etzcgg.js} +53 -53
- package/dist/chunks/{schema-v2r1d0zg.js → location-v2r1d0zg.js} +1 -1
- package/dist/chunks/{schema-sgmpg1at.js → location-v5xc4kg7.js} +15 -15
- package/dist/chunks/{schema-pkdvs1r0.js → location-v6h1p5ye.js} +5 -5
- package/dist/chunks/{schema-55a1w20j.js → location-v7mv4svd.js} +17 -17
- package/dist/chunks/{schema-73tv2q91.js → location-v9z6vtxw.js} +8 -8
- package/dist/chunks/{schema-y682mywm.js → location-vegs8bg1.js} +10 -10
- package/dist/chunks/{schema-zf02ae39.js → location-vgrxzska.js} +29 -29
- package/dist/chunks/{schema-vjf35v1f.js → location-vjf35v1f.js} +1 -1
- package/dist/chunks/{schema-41ta799d.js → location-vvvpnzd1.js} +4 -4
- package/dist/chunks/{schema-7mpsrzpa.js → location-vxjwgjgd.js} +5 -5
- package/dist/chunks/{schema-6a3yqv2r.js → location-w0194dze.js} +3 -3
- package/dist/chunks/{schema-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
- package/dist/chunks/{schema-wr3re1en.js → location-w687dnns.js} +4 -4
- package/dist/chunks/{schema-tmgn3zs9.js → location-w6h8d6n2.js} +21 -21
- package/dist/chunks/{schema-w79nt68w.js → location-w79nt68w.js} +1 -1
- package/dist/chunks/{schema-wakvkjy4.js → location-wakvkjy4.js} +1 -1
- package/dist/chunks/{schema-t2trxbvf.js → location-wasyvcmp.js} +26 -26
- package/dist/chunks/{schema-wd87259q.js → location-wd87259q.js} +1 -1
- package/dist/chunks/{schema-apvw9r81.js → location-weab279a.js} +11 -11
- package/dist/chunks/{schema-nx4vzyjd.js → location-wegkxhrn.js} +2 -2
- package/dist/chunks/{schema-2s709x84.js → location-wgvnftve.js} +8 -8
- package/dist/chunks/{schema-c7cw818c.js → location-wt99tj4q.js} +5 -5
- package/dist/chunks/{schema-nd6a1rw0.js → location-wtv6jfvz.js} +3 -3
- package/dist/chunks/{schema-980raww3.js → location-wvpj03x8.js} +12 -12
- package/dist/chunks/{schema-x150ncgg.js → location-x150ncgg.js} +2 -2
- package/dist/chunks/{schema-jvnqdmg7.js → location-x7ey9rzq.js} +370 -362
- package/dist/chunks/{schema-92mnqtsa.js → location-x809x4sb.js} +12 -12
- package/dist/chunks/{schema-h1wwt2d4.js → location-x9mgr81e.js} +29 -29
- package/dist/chunks/{schema-pfgfzn9w.js → location-xbyghwr8.js} +16 -16
- package/dist/chunks/{schema-jh3vmqnb.js → location-xd5x38mr.js} +91 -79
- package/dist/chunks/{schema-bfmj02kq.js → location-xd8a83k1.js} +16 -16
- package/dist/chunks/{schema-4m48desf.js → location-xdemnhpf.js} +11 -11
- package/dist/chunks/{schema-3adw4bt5.js → location-xjbsd7zy.js} +9 -9
- package/dist/chunks/{schema-xxschbft.js → location-xjr6c8m4.js} +4 -4
- package/dist/chunks/{schema-0ahs07zn.js → location-xmx7xj34.js} +4 -4
- package/dist/chunks/{schema-e4shjbcy.js → location-xrte0c5k.js} +19 -19
- package/dist/chunks/{schema-qrnbag0z.js → location-xt1t7w4z.js} +31 -31
- package/dist/chunks/{schema-hagqs1d2.js → location-xvgdw3tt.js} +21 -21
- package/dist/chunks/{schema-9sk33afj.js → location-xz07m27x.js} +6 -6
- package/dist/chunks/{schema-y3p3hzkr.js → location-y3p3hzkr.js} +2 -2
- package/dist/chunks/{schema-jyqxtn40.js → location-y3w468jq.js} +13 -13
- package/dist/chunks/{schema-fcha702q.js → location-y4vwvzm9.js} +15 -15
- package/dist/chunks/{schema-pstexa60.js → location-y9742c9s.js} +8 -8
- package/dist/chunks/{schema-tqwq9s5x.js → location-ya097w5s.js} +30 -30
- package/dist/chunks/{schema-yb20nhc3.js → location-yb20nhc3.js} +1 -1
- package/dist/chunks/{schema-yepd7x5v.js → location-yepd7x5v.js} +2 -2
- package/dist/chunks/{schema-ed7x67as.js → location-ygjzxj3k.js} +3 -3
- package/dist/chunks/{schema-040bqqk0.js → location-yh8nrrbm.js} +1 -1
- package/dist/chunks/{schema-0khwxjqg.js → location-yh91mnek.js} +4 -4
- package/dist/chunks/{schema-gy85zcy8.js → location-ymsxw2w0.js} +28 -21
- package/dist/chunks/{schema-yr705xyq.js → location-yr705xyq.js} +1 -1
- package/dist/chunks/{schema-yvtc2x31.js → location-yvtc2x31.js} +1 -1
- package/dist/chunks/{schema-bjnxymnv.js → location-yzakgra2.js} +18 -18
- package/dist/chunks/{schema-pwm9xzc0.js → location-z46n6vb7.js} +15 -15
- package/dist/chunks/location-z8jdt7n2.js +273 -0
- package/dist/chunks/{schema-zded71tf.js → location-zded71tf.js} +3 -3
- package/dist/chunks/{schema-kad56yks.js → location-zex02exw.js} +17 -17
- package/dist/chunks/{schema-q7n78wgf.js → location-zj395kaq.js} +10 -10
- package/dist/chunks/{schema-5sq7dtyr.js → location-zv3jqzhg.js} +3 -3
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +5 -5
- package/dist/codemode/fetch.js +149 -149
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +156 -156
- package/dist/command.js +94 -94
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +3 -3
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +113 -113
- package/dist/config/plugin/agent.js +134 -134
- package/dist/config/plugin/command.js +245 -245
- package/dist/config/plugin/compaction.js +174 -174
- package/dist/config/plugin/compatibility.js +154 -154
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +132 -132
- package/dist/config/plugin/image.js +131 -131
- package/dist/config/plugin/instruction.js +131 -131
- package/dist/config/plugin/location-watcher.js +131 -131
- package/dist/config/plugin/mcp.js +148 -146
- package/dist/config/plugin/policy.js +131 -131
- package/dist/config/plugin/provider.js +131 -131
- package/dist/config/plugin/reference.js +133 -133
- package/dist/config/plugin/shell.js +133 -133
- package/dist/config/plugin/skill-file.js +150 -150
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +157 -157
- package/dist/config/plugin/snapshot.js +131 -131
- package/dist/config/plugin/source.js +135 -135
- package/dist/config/plugin/tool-output.js +132 -132
- package/dist/config/plugin/websearch.js +132 -132
- package/dist/config/plugin/worktree.js +133 -133
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +90 -90
- package/dist/database/batch.js +1 -1
- package/dist/database/database.js +77 -77
- 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/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +76 -76
- 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/v1-migration.bun.js +100 -100
- package/dist/effect/app-node-builder.js +443 -439
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +108 -108
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +81 -81
- package/dist/file-access.js +161 -161
- package/dist/file-mutation.js +108 -108
- package/dist/file-retention.js +1 -1
- package/dist/file-write.js +165 -165
- 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/file-watch.js +84 -84
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +253 -253
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +113 -113
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +3 -3
- package/dist/filesystem.js +118 -118
- package/dist/flag.js +132 -132
- package/dist/form.js +87 -87
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +121 -121
- package/dist/git.js +11 -11
- package/dist/github-copilot/models.js +105 -105
- package/dist/image/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +437 -433
- package/dist/instruction-discovery.js +93 -93
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +94 -94
- package/dist/job/list.js +5 -5
- package/dist/job/recovery.js +2 -2
- package/dist/job/sql.js +2 -2
- package/dist/job.js +90 -90
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +177 -177
- package/dist/location-lifecycle.js +154 -154
- package/dist/location-service-map.js +97 -97
- package/dist/location-services.js +434 -430
- package/dist/location.js +98 -98
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +170 -502
- package/dist/mcp/connection.js +106 -106
- package/dist/mcp/index.js +149 -122
- package/dist/mcp/instructions.js +190 -190
- package/dist/mcp/oauth.js +89 -89
- package/dist/mcp/pool.js +112 -112
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +160 -160
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +105 -105
- package/dist/model-resolver.js +111 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +118 -118
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +83 -83
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +147 -147
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +101 -101
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +87 -87
- package/dist/plugin/command.js +146 -119
- package/dist/plugin/fork-notice.js +8 -0
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +246 -246
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +413 -409
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +111 -111
- package/dist/plugin/module.js +130 -130
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +150 -150
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +107 -107
- package/dist/plugin/provider/azure.js +134 -134
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +134 -134
- package/dist/plugin/provider/claude-agent/aisdk.js +116 -116
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +1 -1
- package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +149 -149
- package/dist/plugin/provider/claude-agent/instructions.js +111 -111
- package/dist/plugin/provider/claude-agent/integration.js +116 -116
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +111 -111
- package/dist/plugin/provider/claude-agent/session.js +113 -113
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +131 -131
- package/dist/plugin/provider/cloudflare-workers-ai.js +131 -131
- package/dist/plugin/provider/configured.js +127 -127
- package/dist/plugin/provider/credential-settings.js +88 -88
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +110 -110
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +112 -112
- package/dist/plugin/provider/gitlab.js +110 -110
- package/dist/plugin/provider/google-vertex.js +128 -128
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +144 -141
- package/dist/plugin/provider/local.js +141 -138
- package/dist/plugin/provider/modal.js +109 -109
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +144 -141
- package/dist/plugin/provider/openai-context-caps.js +107 -107
- package/dist/plugin/provider/openai.js +136 -136
- package/dist/plugin/provider/opencode-watches.js +4 -4
- package/dist/plugin/provider/opencode.js +162 -162
- package/dist/plugin/provider/openrouter.js +105 -105
- package/dist/plugin/provider/poe.js +90 -90
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +87 -87
- package/dist/plugin/provider/sap-ai-core.js +105 -105
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +132 -132
- package/dist/plugin/provider/vllm.js +144 -141
- package/dist/plugin/provider/xai.js +105 -105
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +240 -240
- package/dist/plugin/sdk.js +87 -87
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +153 -153
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +421 -417
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +107 -107
- package/dist/plugin/warming.js +131 -131
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +9 -9
- package/dist/plugin/websearch/index.js +10 -10
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +9 -9
- package/dist/plugin/websearch/provider.js +3 -3
- package/dist/plugin/websearch/tavily.js +5 -5
- package/dist/plugin/websearch/tinyfish.js +9 -9
- package/dist/plugin.js +255 -255
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +97 -97
- package/dist/provider.js +109 -109
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +113 -113
- package/dist/reference/instructions.js +99 -99
- package/dist/reference.js +97 -97
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +111 -111
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +251 -251
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +265 -265
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +133 -133
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +174 -174
- package/dist/session/context.js +206 -206
- package/dist/session/diff.js +101 -101
- 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 +263 -263
- package/dist/session/execution.js +172 -172
- package/dist/session/generate.js +208 -208
- package/dist/session/history.js +140 -140
- package/dist/session/inbox.js +153 -153
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +90 -90
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +145 -145
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +172 -172
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +172 -172
- package/dist/session/projector.js +147 -147
- package/dist/session/prompt.js +152 -152
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +143 -143
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +259 -259
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +113 -113
- package/dist/session/runner/publish-llm-event.js +154 -154
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +167 -167
- package/dist/session/runner/to-llm-message.js +141 -141
- package/dist/session/schema.js +1 -1
- package/dist/session/session.js +192 -192
- package/dist/session/shell.js +149 -149
- package/dist/session/skill.js +151 -151
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +85 -85
- package/dist/session/store.js +142 -142
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +242 -242
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +208 -208
- package/dist/session/to-session-error.js +153 -153
- package/dist/session/transfer.js +250 -250
- package/dist/session/usage.js +1 -1
- package/dist/session.js +242 -242
- package/dist/shared-cache.js +5 -5
- 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 +15 -15
- package/dist/shell.js +151 -151
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +155 -155
- package/dist/skill.js +156 -156
- package/dist/snapshot.js +104 -104
- 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 +187 -187
- package/dist/tool/plugin/artifact.js +241 -241
- package/dist/tool/plugin/edit.js +171 -171
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +175 -175
- package/dist/tool/plugin/grep.js +172 -172
- package/dist/tool/plugin/image-generate.js +250 -250
- package/dist/tool/plugin/mcp-events.js +171 -0
- package/dist/tool/plugin/mcp-resource.js +170 -170
- package/dist/tool/plugin/opencode.js +167 -167
- package/dist/tool/plugin/patch.js +172 -172
- package/dist/tool/plugin/question.js +152 -152
- package/dist/tool/plugin/read.js +176 -176
- package/dist/tool/plugin/schedule.js +257 -257
- package/dist/tool/plugin/shell.js +248 -248
- package/dist/tool/plugin/skill.js +161 -161
- package/dist/tool/plugin/subagent.js +247 -247
- package/dist/tool/plugin/todo.js +157 -157
- package/dist/tool/plugin/webfetch.js +159 -159
- package/dist/tool/plugin/websearch.js +159 -159
- package/dist/tool/plugin/write.js +172 -172
- package/dist/tool/read-filesystem.js +116 -116
- package/dist/tool/runtime.js +1 -1
- package/dist/tool/search.js +109 -109
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +166 -166
- package/dist/types/flag.d.ts +2 -2
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/mcp/client.d.ts +78 -1
- package/dist/types/mcp/connection.d.ts +2 -0
- package/dist/types/mcp/index.d.ts +4 -1
- package/dist/types/mcp/pool.d.ts +1 -0
- package/dist/types/plugin/fork-notice.d.ts +2 -0
- package/dist/types/plugin/host.d.ts +2 -2
- package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
- package/dist/types/plugin/provider/local.d.ts +1 -1
- package/dist/types/plugin/provider/ollama.d.ts +2 -2
- package/dist/types/plugin/provider/vllm.d.ts +2 -2
- package/dist/types/schedule/check.d.ts +2 -2
- package/dist/types/session/prompt.d.ts +1 -1
- package/dist/types/tool/plugin/mcp-events.d.ts +10 -0
- package/dist/usage-limits.js +100 -100
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +106 -106
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +107 -107
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +97 -97
- package/dist/websearch.js +103 -103
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +90 -90
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +113 -113
- package/package.json +8 -8
- package/dist/chunks/schema-n0yx1q4a.js +0 -26
- package/dist/chunks/schema-qp3r9mzz.js +0 -273
- package/dist/chunks/schema-y32xxt00.js +0 -16
- /package/dist/chunks/{schema-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{schema-0zkw76rk.js → location-0zkw76rk.js} +0 -0
- /package/dist/chunks/{schema-17cy0kzp.js → location-17cy0kzp.js} +0 -0
- /package/dist/chunks/{schema-1cnp2v09.js → location-1cnp2v09.js} +0 -0
- /package/dist/chunks/{schema-1kah00gy.js → location-1kah00gy.js} +0 -0
- /package/dist/chunks/{schema-24dcb14g.js → location-24dcb14g.js} +0 -0
- /package/dist/chunks/{schema-2710q6r3.js → location-2710q6r3.js} +0 -0
- /package/dist/chunks/{schema-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{schema-359p4xyc.js → location-359p4xyc.js} +0 -0
- /package/dist/chunks/{schema-3v8g72cx.js → location-3v8g72cx.js} +0 -0
- /package/dist/chunks/{schema-43n2bw4t.js → location-43n2bw4t.js} +0 -0
- /package/dist/chunks/{schema-4knz6hnm.js → location-4knz6hnm.js} +0 -0
- /package/dist/chunks/{schema-4qk9sjk2.js → location-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{schema-53557ph1.js → location-53557ph1.js} +0 -0
- /package/dist/chunks/{schema-5w3e23ze.js → location-5w3e23ze.js} +0 -0
- /package/dist/chunks/{schema-6agm2x70.js → location-6agm2x70.js} +0 -0
- /package/dist/chunks/{schema-6prwharc.js → location-6prwharc.js} +0 -0
- /package/dist/chunks/{schema-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{schema-7akdwqpd.js → location-7akdwqpd.js} +0 -0
- /package/dist/chunks/{schema-7m9af43g.js → location-7m9af43g.js} +0 -0
- /package/dist/chunks/{schema-7rvsyqjv.js → location-7rvsyqjv.js} +0 -0
- /package/dist/chunks/{schema-822emrt2.js → location-822emrt2.js} +0 -0
- /package/dist/chunks/{schema-84wd9syh.js → location-84wd9syh.js} +0 -0
- /package/dist/chunks/{schema-88xbtdfr.js → location-88xbtdfr.js} +0 -0
- /package/dist/chunks/{schema-8n3pysct.js → location-8n3pysct.js} +0 -0
- /package/dist/chunks/{schema-8wj87zfr.js → location-8wj87zfr.js} +0 -0
- /package/dist/chunks/{schema-9a4afbnw.js → location-9a4afbnw.js} +0 -0
- /package/dist/chunks/{schema-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{schema-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{schema-atq7p7m5.js → location-atq7p7m5.js} +0 -0
- /package/dist/chunks/{schema-beh6qq61.js → location-beh6qq61.js} +0 -0
- /package/dist/chunks/{schema-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{schema-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{schema-cf4snx6d.js → location-cf4snx6d.js} +0 -0
- /package/dist/chunks/{schema-cqv5kn06.js → location-cqv5kn06.js} +0 -0
- /package/dist/chunks/{schema-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{schema-d9fn303g.js → location-d9fn303g.js} +0 -0
- /package/dist/chunks/{schema-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{schema-df08tz66.js → location-df08tz66.js} +0 -0
- /package/dist/chunks/{schema-dy18nga0.js → location-dy18nga0.js} +0 -0
- /package/dist/chunks/{schema-e5kj55wp.js → location-e5kj55wp.js} +0 -0
- /package/dist/chunks/{schema-ean2d8b5.js → location-ean2d8b5.js} +0 -0
- /package/dist/chunks/{schema-ec1grn59.js → location-ec1grn59.js} +0 -0
- /package/dist/chunks/{schema-emrn6kk6.js → location-emrn6kk6.js} +0 -0
- /package/dist/chunks/{schema-f0mxakyp.js → location-f0mxakyp.js} +0 -0
- /package/dist/chunks/{schema-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{schema-faypxj3z.js → location-faypxj3z.js} +0 -0
- /package/dist/chunks/{schema-fd410y7t.js → location-fd410y7t.js} +0 -0
- /package/dist/chunks/{schema-fkpq3x5p.js → location-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{schema-g86h250q.js → location-g86h250q.js} +0 -0
- /package/dist/chunks/{schema-gebd4c9n.js → location-gebd4c9n.js} +0 -0
- /package/dist/chunks/{schema-gftt206x.js → location-gftt206x.js} +0 -0
- /package/dist/chunks/{schema-hcxmzztb.js → location-hcxmzztb.js} +0 -0
- /package/dist/chunks/{schema-hk9envan.js → location-hk9envan.js} +0 -0
- /package/dist/chunks/{schema-j2ntwpah.js → location-j2ntwpah.js} +0 -0
- /package/dist/chunks/{schema-jjkms2e6.js → location-jjkms2e6.js} +0 -0
- /package/dist/chunks/{schema-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{schema-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{schema-jwr30sdr.js → location-jwr30sdr.js} +0 -0
- /package/dist/chunks/{schema-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{schema-m18g726c.js → location-m18g726c.js} +0 -0
- /package/dist/chunks/{schema-mp448xyj.js → location-mp448xyj.js} +0 -0
- /package/dist/chunks/{schema-msx8hqn2.js → location-msx8hqn2.js} +0 -0
- /package/dist/chunks/{schema-n05xt0ee.js → location-n05xt0ee.js} +0 -0
- /package/dist/chunks/{schema-n3j8tn72.js → location-n3j8tn72.js} +0 -0
- /package/dist/chunks/{schema-nh4v3znn.js → location-nh4v3znn.js} +0 -0
- /package/dist/chunks/{schema-njntx4h6.js → location-njntx4h6.js} +0 -0
- /package/dist/chunks/{schema-p71gwv9c.js → location-p71gwv9c.js} +0 -0
- /package/dist/chunks/{schema-q3sfg36h.js → location-q3sfg36h.js} +0 -0
- /package/dist/chunks/{schema-q74kybfr.js → location-q74kybfr.js} +0 -0
- /package/dist/chunks/{schema-qb87gjwd.js → location-qb87gjwd.js} +0 -0
- /package/dist/chunks/{schema-qfa1cgps.js → location-qfa1cgps.js} +0 -0
- /package/dist/chunks/{schema-qg3g05ea.js → location-qg3g05ea.js} +0 -0
- /package/dist/chunks/{schema-qrg20bc0.js → location-qrg20bc0.js} +0 -0
- /package/dist/chunks/{schema-qtf35215.js → location-qtf35215.js} +0 -0
- /package/dist/chunks/{schema-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{schema-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{schema-ssg3fenm.js → location-ssg3fenm.js} +0 -0
- /package/dist/chunks/{schema-syrav9an.js → location-syrav9an.js} +0 -0
- /package/dist/chunks/{schema-t03h4f5z.js → location-t03h4f5z.js} +0 -0
- /package/dist/chunks/{schema-ty7weeps.js → location-ty7weeps.js} +0 -0
- /package/dist/chunks/{schema-v2dnd5dt.js → location-v2dnd5dt.js} +0 -0
- /package/dist/chunks/{schema-ve7vex1e.js → location-ve7vex1e.js} +0 -0
- /package/dist/chunks/{schema-vtarvj67.js → location-vtarvj67.js} +0 -0
- /package/dist/chunks/{schema-w803qqfp.js → location-w803qqfp.js} +0 -0
- /package/dist/chunks/{schema-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{schema-wer8tq1h.js → location-wer8tq1h.js} +0 -0
- /package/dist/chunks/{schema-wtztk69x.js → location-wtztk69x.js} +0 -0
- /package/dist/chunks/{schema-x4th4bpe.js → location-x4th4bpe.js} +0 -0
- /package/dist/chunks/{schema-y44na4kk.js → location-y44na4kk.js} +0 -0
- /package/dist/chunks/{schema-y8f7s663.js → location-y8f7s663.js} +0 -0
- /package/dist/chunks/{schema-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{schema-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{schema-z9919s4g.js → location-z9919s4g.js} +0 -0
- /package/dist/chunks/{schema-zxpyjp51.js → location-zxpyjp51.js} +0 -0
- /package/dist/chunks/{schema-zz5vv3aq.js → location-zz5vv3aq.js} +0 -0
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
toolFailure2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-7rvsyqjv.js";
|
|
4
4
|
import {
|
|
5
5
|
WorktreeError2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-3pfs30kn.js";
|
|
7
7
|
import {
|
|
8
8
|
invocation2,
|
|
9
9
|
Service74
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-8xxagg6y.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service71,
|
|
13
13
|
resolvePath2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-37xrhg99.js";
|
|
15
15
|
import {
|
|
16
16
|
DirectoryUnavailableError2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./location-d4v9tmah.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
19
|
+
Info7,
|
|
20
20
|
List2,
|
|
21
21
|
InvalidDirectoryError2,
|
|
22
22
|
StrategyUnavailableError2,
|
|
23
23
|
OperationError2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-6zdnk2ay.js";
|
|
25
25
|
import {
|
|
26
26
|
__export
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-9rqn6x4v.js";
|
|
28
28
|
|
|
29
29
|
// src/tool/plugin/opencode.ts
|
|
30
30
|
var exports_opencode = {};
|
|
@@ -32,7 +32,7 @@ __export(exports_opencode, {
|
|
|
32
32
|
ModelsInput: () => ModelsInput2,
|
|
33
33
|
MoveInput: () => MoveInput2,
|
|
34
34
|
OpenCodeTools: () => exports_opencode,
|
|
35
|
-
Plugin: () =>
|
|
35
|
+
Plugin: () => Plugin13,
|
|
36
36
|
RenameInput: () => RenameInput2,
|
|
37
37
|
WorktreeCreateInput: () => WorktreeCreateInput2,
|
|
38
38
|
WorktreeRemoveInput: () => WorktreeRemoveInput2
|
|
@@ -111,10 +111,10 @@ var ModelsOutput = Schema.Struct({
|
|
|
111
111
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
112
112
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
113
113
|
});
|
|
114
|
-
var
|
|
114
|
+
var Plugin13 = {
|
|
115
115
|
id: "opencode.tools",
|
|
116
116
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
117
|
-
const access = yield*
|
|
117
|
+
const access = yield* Service71;
|
|
118
118
|
const permission = yield* Service74;
|
|
119
119
|
const hook = (event) => Effect.sync(() => {
|
|
120
120
|
event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
|
|
@@ -173,7 +173,7 @@ var Plugin30 = {
|
|
|
173
173
|
name: "worktree_create",
|
|
174
174
|
description: "Create a named worktree. Returns its directory.",
|
|
175
175
|
input: WorktreeCreateInput2,
|
|
176
|
-
output:
|
|
176
|
+
output: Info7,
|
|
177
177
|
options: { namespace: "opencode", codemode: true, pinned: true },
|
|
178
178
|
execute: (input) => ctx.worktree.create({ projectID: ctx.location.project.id, name: input.name }).pipe(Effect.map((output) => ({ output, content: `Created worktree in ${output.directory}.` })), Effect.mapError((error) => new ToolFailure({ message: `Unable to create worktree ${input.name}`, error })))
|
|
179
179
|
});
|
|
@@ -268,4 +268,4 @@ function removeFailure(directory, error) {
|
|
|
268
268
|
return `Unable to remove worktree ${directory}.`;
|
|
269
269
|
}
|
|
270
270
|
|
|
271
|
-
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2,
|
|
271
|
+
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin13, exports_opencode };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service49,
|
|
3
|
+
node51
|
|
4
|
+
} from "./location-jh2tgb1s.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make32,
|
|
9
9
|
listUpdate2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-t62dywgn.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
16
|
var exports_instructions4 = {};
|
|
17
17
|
__export(exports_instructions4, {
|
|
18
18
|
ReferenceInstructions: () => exports_instructions4,
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
19
|
+
Service: () => Service29,
|
|
20
|
+
node: () => node33
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -53,18 +53,18 @@ var update = listUpdate2({
|
|
|
53
53
|
}
|
|
54
54
|
});
|
|
55
55
|
|
|
56
|
-
class
|
|
56
|
+
class Service29 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
57
57
|
}
|
|
58
|
-
var layer = Layer.effect(
|
|
59
|
-
const references = yield*
|
|
60
|
-
return
|
|
58
|
+
var layer = Layer.effect(Service29, Effect.gen(function* () {
|
|
59
|
+
const references = yield* Service49;
|
|
60
|
+
return Service29.of({
|
|
61
61
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
62
62
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
63
63
|
name: reference.name,
|
|
64
64
|
path: reference.path,
|
|
65
65
|
description: reference.description
|
|
66
66
|
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
67
|
-
return
|
|
67
|
+
return make32({
|
|
68
68
|
key: Key3.make("core/reference-guidance"),
|
|
69
69
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
70
70
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
@@ -77,6 +77,6 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
}));
|
|
80
|
-
var
|
|
80
|
+
var node33 = makeLocationNode({ service: Service29, layer, deps: [node51] });
|
|
81
81
|
|
|
82
|
-
export {
|
|
82
|
+
export { Service29, node33, exports_instructions4 };
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import {
|
|
2
|
+
resolveCwd2,
|
|
3
|
+
make21
|
|
4
|
+
} from "./location-rva2sgyw.js";
|
|
5
|
+
import {
|
|
6
|
+
__export
|
|
7
|
+
} from "./location-9rqn6x4v.js";
|
|
8
|
+
|
|
9
|
+
// src/mcp/client.ts
|
|
10
|
+
var exports_client = {};
|
|
11
|
+
__export(exports_client, {
|
|
12
|
+
ConnectError: () => ConnectError2,
|
|
13
|
+
EventStreamTerminatedError: () => EventStreamTerminatedError2,
|
|
14
|
+
McpClient: () => exports_client,
|
|
15
|
+
NeedsAuthError: () => NeedsAuthError2,
|
|
16
|
+
SessionExpiredError: () => SessionExpiredError2,
|
|
17
|
+
connect: () => connect2
|
|
18
|
+
});
|
|
19
|
+
import { pathToFileURL } from "node:url";
|
|
20
|
+
import {
|
|
21
|
+
Client,
|
|
22
|
+
InsufficientScopeError,
|
|
23
|
+
OAuthError,
|
|
24
|
+
OAuthErrorCode,
|
|
25
|
+
ProtocolError,
|
|
26
|
+
SdkError,
|
|
27
|
+
SdkErrorCode,
|
|
28
|
+
SdkHttpError,
|
|
29
|
+
StreamableHTTPClientTransport,
|
|
30
|
+
UnauthorizedError,
|
|
31
|
+
UnsupportedProtocolVersionError
|
|
32
|
+
} from "@modelcontextprotocol/client";
|
|
33
|
+
import { Cause, Clock, Duration, Effect, Exit, PlatformError, Queue, Schedule, Schema, Stream } from "effect";
|
|
34
|
+
import { isRecord } from "@opencode/util/record";
|
|
35
|
+
var DEFAULT_STARTUP_TIMEOUT = 30000;
|
|
36
|
+
var DEFAULT_CATALOG_TIMEOUT = 30000;
|
|
37
|
+
var DEFAULT_EXECUTION_TIMEOUT = 12 * 60 * 60 * 1000;
|
|
38
|
+
var ATTACHED_EXECUTION_TIMEOUT = 10 * 60 * 1000;
|
|
39
|
+
var TERMINATE_TIMEOUT = 1000;
|
|
40
|
+
var HEADER_MISMATCH = -32020;
|
|
41
|
+
var toError = (error) => error instanceof Error ? error : new Error(String(error));
|
|
42
|
+
var describe = (error) => {
|
|
43
|
+
if (!(error instanceof Error))
|
|
44
|
+
return String(error);
|
|
45
|
+
const detail = error instanceof SdkHttpError ? `HTTP ${error.status}` : !(error instanceof SdkError) && ("code" in error) && typeof error.code === "string" ? error.code : undefined;
|
|
46
|
+
return detail && !error.message.includes(detail) ? `${error.message} (${detail})` : error.message;
|
|
47
|
+
};
|
|
48
|
+
var isTransient = (error) => error instanceof SdkHttpError ? error.status === 408 || error.status === 429 || error.status >= 500 && error.status !== 501 : error instanceof TypeError && ("code" in error);
|
|
49
|
+
var EVENTS = "io.modelcontextprotocol/events";
|
|
50
|
+
var SUBSCRIPTION_ID = "io.modelcontextprotocol/subscriptionId";
|
|
51
|
+
var EVENT_STREAM_IDLE = Duration.seconds(60);
|
|
52
|
+
var EVENT_LIST_PAGES = 100;
|
|
53
|
+
var EventType = Schema.Struct({
|
|
54
|
+
name: Schema.String,
|
|
55
|
+
description: Schema.optional(Schema.String),
|
|
56
|
+
delivery: Schema.optional(Schema.Array(Schema.String)),
|
|
57
|
+
inputSchema: Schema.optional(Schema.Record(Schema.String, Schema.Unknown)),
|
|
58
|
+
payloadSchema: Schema.optional(Schema.Record(Schema.String, Schema.Unknown))
|
|
59
|
+
});
|
|
60
|
+
var EventError = Schema.Struct({ code: Schema.Number, message: Schema.String, data: Schema.optional(Schema.Unknown) });
|
|
61
|
+
var Cursor = Schema.optional(Schema.NullOr(Schema.String));
|
|
62
|
+
var Subscribed = { _meta: Schema.Struct({ [SUBSCRIPTION_ID]: Schema.Union([Schema.String, Schema.Number]) }) };
|
|
63
|
+
var EventList = Schema.toStandardSchemaV1(Schema.Struct({ events: Schema.Array(EventType), nextCursor: Schema.optional(Schema.String) }));
|
|
64
|
+
var StreamResult = Schema.toStandardSchemaV1(Schema.Unknown);
|
|
65
|
+
var ActiveNotification = Schema.toStandardSchemaV1(Schema.Struct({ cursor: Cursor, truncated: Schema.optional(Schema.Boolean), ...Subscribed }));
|
|
66
|
+
var EventNotification = Schema.toStandardSchemaV1(Schema.Struct({
|
|
67
|
+
eventId: Schema.String,
|
|
68
|
+
name: Schema.String,
|
|
69
|
+
timestamp: Schema.String,
|
|
70
|
+
data: Schema.Unknown,
|
|
71
|
+
cursor: Cursor,
|
|
72
|
+
...Subscribed
|
|
73
|
+
}));
|
|
74
|
+
var HeartbeatNotification = Schema.toStandardSchemaV1(Schema.Struct({ cursor: Cursor, ...Subscribed }));
|
|
75
|
+
var ErrorNotification = Schema.toStandardSchemaV1(Schema.Struct({ error: EventError, ...Subscribed }));
|
|
76
|
+
|
|
77
|
+
class EventStreamTerminatedError2 extends Schema.TaggedError()("MCP.EventStreamTerminatedError", {
|
|
78
|
+
server: Schema.String,
|
|
79
|
+
code: Schema.Number,
|
|
80
|
+
message: Schema.String,
|
|
81
|
+
data: Schema.optional(Schema.Unknown)
|
|
82
|
+
}) {
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
class NeedsAuthError2 extends Schema.TaggedError()("MCP.NeedsAuthError", {
|
|
86
|
+
server: Schema.String,
|
|
87
|
+
message: Schema.String
|
|
88
|
+
}) {
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
class ConnectError2 extends Schema.TaggedError()("MCP.ConnectError", {
|
|
92
|
+
server: Schema.String,
|
|
93
|
+
message: Schema.String,
|
|
94
|
+
answered: Schema.optional(Schema.Boolean)
|
|
95
|
+
}) {
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
class SessionExpiredError2 extends Schema.TaggedError()("MCP.SessionExpiredError", {
|
|
99
|
+
server: Schema.String
|
|
100
|
+
}) {
|
|
101
|
+
get message() {
|
|
102
|
+
return `MCP server session expired: ${this.server}`;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
var connect2 = Effect.fnUntraced(function* (options) {
|
|
106
|
+
const server = options.server;
|
|
107
|
+
const config = options.config;
|
|
108
|
+
const elicitation = options.elicitation;
|
|
109
|
+
const timeout = config.type === "attached" ? { execution: ATTACHED_EXECUTION_TIMEOUT } : config.timeout;
|
|
110
|
+
const protocol = config.type === "attached" ? "legacy" : config.protocol;
|
|
111
|
+
const changed = { tools: () => {}, prompts: () => {}, resources: () => {} };
|
|
112
|
+
const listChanged = (key) => ({
|
|
113
|
+
autoRefresh: false,
|
|
114
|
+
debounceMs: 0,
|
|
115
|
+
onChanged: () => changed[key]()
|
|
116
|
+
});
|
|
117
|
+
const callers = new WeakMap;
|
|
118
|
+
const claim = (signal, input) => {
|
|
119
|
+
if (input.elicitation)
|
|
120
|
+
callers.set(signal, input.elicitation);
|
|
121
|
+
return signal;
|
|
122
|
+
};
|
|
123
|
+
const streams = new Map;
|
|
124
|
+
let lastError;
|
|
125
|
+
const explain = (error) => error instanceof SdkError && error.code === SdkErrorCode.ConnectionClosed && lastError ? `${describe(error)}: ${lastError}` : describe(error);
|
|
126
|
+
const retrying = (what, effect, deadline = Infinity) => Effect.retry(effect, Schedule.max([Schedule.exponential("250 millis", 4), Schedule.recurs(2)]).pipe(Schedule.setInputType(), Schedule.while(({ input, now, duration }) => !isTransient(input) || now + Duration.toMillis(duration) >= deadline ? Effect.succeed(false) : Effect.logWarning(`retrying ${what}`, { server, error: describe(input) }).pipe(Effect.as(true)))));
|
|
127
|
+
const initialize = Effect.fnUntraced(function* (transport) {
|
|
128
|
+
const context = yield* Effect.context();
|
|
129
|
+
const runFork = Effect.runForkWith(context);
|
|
130
|
+
const runPromise = Effect.runPromiseWith(context);
|
|
131
|
+
const client = new Client(options.clientInfo ?? { name: "opencode", version: "unknown" }, {
|
|
132
|
+
capabilities: {
|
|
133
|
+
...elicitation ? { elicitation: { form: {}, url: {} } } : {},
|
|
134
|
+
...options.roots === false ? {} : { roots: {} },
|
|
135
|
+
...options.events ? { extensions: { [EVENTS]: {} } } : {}
|
|
136
|
+
},
|
|
137
|
+
versionNegotiation: negotiation(protocol),
|
|
138
|
+
listChanged: {
|
|
139
|
+
tools: listChanged("tools"),
|
|
140
|
+
prompts: listChanged("prompts"),
|
|
141
|
+
resources: listChanged("resources")
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
client.onerror = (error) => {
|
|
145
|
+
if (error.name === "AbortError")
|
|
146
|
+
return;
|
|
147
|
+
lastError = describe(error);
|
|
148
|
+
runFork(Effect.logWarning("mcp transport error", { server, error: lastError }));
|
|
149
|
+
};
|
|
150
|
+
if (options.roots !== false)
|
|
151
|
+
client.setRequestHandler("roots/list", () => ({ roots: [{ uri: pathToFileURL(options.directory).href }] }));
|
|
152
|
+
if (options.events) {
|
|
153
|
+
const subscribed = (params) => streams.get(String(params._meta[SUBSCRIPTION_ID]));
|
|
154
|
+
client.setNotificationHandler("notifications/events/active", { params: ActiveNotification }, (params) => {
|
|
155
|
+
const queue = subscribed(params);
|
|
156
|
+
if (queue)
|
|
157
|
+
Queue.offerUnsafe(queue, {
|
|
158
|
+
type: "active",
|
|
159
|
+
cursor: params.cursor ?? null,
|
|
160
|
+
truncated: params.truncated === true
|
|
161
|
+
});
|
|
162
|
+
});
|
|
163
|
+
client.setNotificationHandler("notifications/events/event", { params: EventNotification }, (params) => {
|
|
164
|
+
const queue = subscribed(params);
|
|
165
|
+
if (queue)
|
|
166
|
+
Queue.offerUnsafe(queue, {
|
|
167
|
+
type: "event",
|
|
168
|
+
eventId: params.eventId,
|
|
169
|
+
name: params.name,
|
|
170
|
+
timestamp: params.timestamp,
|
|
171
|
+
data: params.data,
|
|
172
|
+
cursor: params.cursor ?? null
|
|
173
|
+
});
|
|
174
|
+
});
|
|
175
|
+
client.setNotificationHandler("notifications/events/heartbeat", { params: HeartbeatNotification }, (params) => {
|
|
176
|
+
const queue = subscribed(params);
|
|
177
|
+
if (queue)
|
|
178
|
+
Queue.offerUnsafe(queue, { type: "heartbeat", cursor: params.cursor ?? null });
|
|
179
|
+
});
|
|
180
|
+
client.setNotificationHandler("notifications/events/error", { params: ErrorNotification }, (params) => {
|
|
181
|
+
const queue = subscribed(params);
|
|
182
|
+
if (queue)
|
|
183
|
+
Queue.offerUnsafe(queue, { type: "error", error: params.error });
|
|
184
|
+
});
|
|
185
|
+
client.setNotificationHandler("notifications/events/terminated", { params: ErrorNotification }, (params) => {
|
|
186
|
+
const queue = subscribed(params);
|
|
187
|
+
if (queue)
|
|
188
|
+
Queue.failCauseUnsafe(queue, Cause.fail(new EventStreamTerminatedError2({ server, ...params.error })));
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
if (elicitation) {
|
|
192
|
+
client.setRequestHandler("elicitation/create", (request, ctx) => {
|
|
193
|
+
const origin = ctx.mcpReq.origin?.options?.signal;
|
|
194
|
+
const create = (origin && callers.get(origin)) ?? elicitation.create;
|
|
195
|
+
return runPromise(create({ server, params: request.params, signal: ctx.mcpReq.signal }));
|
|
196
|
+
});
|
|
197
|
+
client.setNotificationHandler("notifications/elicitation/complete", (notification) => runPromise(elicitation.complete({ server, elicitationID: notification.params.elicitationId })));
|
|
198
|
+
}
|
|
199
|
+
yield* Effect.tryPromise({
|
|
200
|
+
try: (signal) => client.connect(transport, { timeout: timeout?.startup ?? DEFAULT_STARTUP_TIMEOUT, signal }),
|
|
201
|
+
catch: (error) => error
|
|
202
|
+
}).pipe(Effect.onError(() => Effect.promise(() => transport.close()).pipe(Effect.ignore)));
|
|
203
|
+
return client;
|
|
204
|
+
});
|
|
205
|
+
const session = {
|
|
206
|
+
reported: false
|
|
207
|
+
};
|
|
208
|
+
const failure = (error) => {
|
|
209
|
+
if (error instanceof SessionExpiredError2)
|
|
210
|
+
return error;
|
|
211
|
+
if (!(error instanceof SdkHttpError) || session.transport?.sessionId === undefined)
|
|
212
|
+
return new Error(explain(error));
|
|
213
|
+
const expired = error.status === 404 || error.status === 400 && typeof error.data.text === "string" && error.data.text.includes("Bad Request: Server not initialized");
|
|
214
|
+
if (!expired)
|
|
215
|
+
return new Error(explain(error));
|
|
216
|
+
if (!session.reported) {
|
|
217
|
+
session.reported = true;
|
|
218
|
+
session.expired?.();
|
|
219
|
+
}
|
|
220
|
+
return new SessionExpiredError2({ server });
|
|
221
|
+
};
|
|
222
|
+
const exit = yield* Effect.gen(function* () {
|
|
223
|
+
if (config.type === "attached")
|
|
224
|
+
return yield* initialize(config.transport);
|
|
225
|
+
if (config.type === "local") {
|
|
226
|
+
const [command, ...args] = config.command;
|
|
227
|
+
const transport = yield* make21({
|
|
228
|
+
server,
|
|
229
|
+
command,
|
|
230
|
+
args,
|
|
231
|
+
cwd: resolveCwd2(options.directory, config.cwd),
|
|
232
|
+
environment: {
|
|
233
|
+
...command === "opencode" ? { BUN_BE_BUN: "1" } : {},
|
|
234
|
+
...config.environment
|
|
235
|
+
}
|
|
236
|
+
});
|
|
237
|
+
return yield* initialize(transport);
|
|
238
|
+
}
|
|
239
|
+
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
240
|
+
const fetch = yield* McpOAuth.loggedFetch({ server, directory: options.directory });
|
|
241
|
+
const url = new URL(config.url);
|
|
242
|
+
const addedCodemode = config.codemode !== false && !url.searchParams.has("codemode") && !rejectsUnknownQuery(url);
|
|
243
|
+
if (addedCodemode)
|
|
244
|
+
url.searchParams.set("codemode", "false");
|
|
245
|
+
const open = Effect.fnUntraced(function* (url) {
|
|
246
|
+
session.transport = new StreamableHTTPClientTransport(url, {
|
|
247
|
+
requestInit: config.headers ? { headers: config.headers } : undefined,
|
|
248
|
+
authProvider: options.authProvider,
|
|
249
|
+
fetch
|
|
250
|
+
});
|
|
251
|
+
return yield* initialize(session.transport);
|
|
252
|
+
});
|
|
253
|
+
const deadline = (yield* Clock.currentTimeMillis) + (timeout?.startup ?? DEFAULT_STARTUP_TIMEOUT);
|
|
254
|
+
return yield* retrying("MCP connect", open(url).pipe(Effect.catch((error) => {
|
|
255
|
+
if (!addedCodemode || !(error instanceof SdkHttpError) || error.status !== 400 && error.status !== 404)
|
|
256
|
+
return Effect.fail(error);
|
|
257
|
+
return open(new URL(config.url));
|
|
258
|
+
})), deadline);
|
|
259
|
+
}).pipe(Effect.exit);
|
|
260
|
+
if (Exit.isSuccess(exit)) {
|
|
261
|
+
const client = exit.value;
|
|
262
|
+
yield* Effect.addFinalizer(() => Effect.gen(function* () {
|
|
263
|
+
const transport = session.transport;
|
|
264
|
+
client.onerror = undefined;
|
|
265
|
+
if (transport?.sessionId !== undefined && !session.reported)
|
|
266
|
+
yield* Effect.tryPromise({ try: () => transport.terminateSession(), catch: toError }).pipe(Effect.timeoutOrElse({
|
|
267
|
+
duration: TERMINATE_TIMEOUT,
|
|
268
|
+
orElse: () => Effect.fail(new Error(`Timed out after ${TERMINATE_TIMEOUT}ms`))
|
|
269
|
+
}), Effect.tapError((error) => Effect.logWarning("failed to terminate MCP session", { server, error: error.message })), Effect.ignore);
|
|
270
|
+
yield* Effect.tryPromise(() => client.close()).pipe(Effect.ignore);
|
|
271
|
+
}));
|
|
272
|
+
const catalog = { timeout: timeout?.catalog ?? DEFAULT_CATALOG_TIMEOUT };
|
|
273
|
+
const listed = new Map;
|
|
274
|
+
const execution = timeout?.execution ?? DEFAULT_EXECUTION_TIMEOUT;
|
|
275
|
+
const request = (what, run) => Effect.tryPromise({ try: run, catch: failure }).pipe(Effect.tapError((error) => Effect.logWarning(`failed to ${what}`, { server, error: error.message })));
|
|
276
|
+
const list = (what, run) => retrying(what, Effect.tryPromise({ try: run, catch: (error) => error })).pipe(Effect.mapError(failure), Effect.tapError((error) => Effect.logWarning(`failed to ${what}`, { server, error: error.message })));
|
|
277
|
+
const advertised = (capability) => Boolean(client.getServerCapabilities()?.[capability]);
|
|
278
|
+
const connection = {
|
|
279
|
+
modern: client.getProtocolEra() === "modern",
|
|
280
|
+
protocolVersion: client.getNegotiatedProtocolVersion(),
|
|
281
|
+
title: client.getServerVersion()?.title?.trim() || undefined,
|
|
282
|
+
instructions: client.getInstructions()?.trim() || undefined,
|
|
283
|
+
events: options.events && client.getServerCapabilities()?.extensions?.[EVENTS] ? {
|
|
284
|
+
list: Effect.fnUntraced(function* () {
|
|
285
|
+
const events = [];
|
|
286
|
+
let cursor;
|
|
287
|
+
for (let page = 0;page < EVENT_LIST_PAGES; page++) {
|
|
288
|
+
const result = yield* list("list MCP events", (signal) => client.request({ method: "events/list", params: cursor === undefined ? {} : { cursor } }, EventList, {
|
|
289
|
+
...catalog,
|
|
290
|
+
signal
|
|
291
|
+
}));
|
|
292
|
+
events.push(...result.events);
|
|
293
|
+
cursor = result.nextCursor;
|
|
294
|
+
if (cursor === undefined)
|
|
295
|
+
return events;
|
|
296
|
+
}
|
|
297
|
+
yield* Effect.logWarning("MCP event list has more pages than read", { server, pages: EVENT_LIST_PAGES });
|
|
298
|
+
return events;
|
|
299
|
+
}),
|
|
300
|
+
stream: (input) => Stream.callback((queue) => Effect.gen(function* () {
|
|
301
|
+
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
302
|
+
for (const [id, open] of streams)
|
|
303
|
+
if (open === queue)
|
|
304
|
+
streams.delete(id);
|
|
305
|
+
}));
|
|
306
|
+
yield* request("stream MCP events", (signal) => client.request({ method: "events/stream", params: input }, StreamResult, {
|
|
307
|
+
signal,
|
|
308
|
+
timeout: Infinity,
|
|
309
|
+
onRequestId: (id) => streams.set(String(id), queue)
|
|
310
|
+
})).pipe(Effect.matchEffect({
|
|
311
|
+
onFailure: (error) => Queue.fail(queue, error),
|
|
312
|
+
onSuccess: () => Queue.end(queue)
|
|
313
|
+
}), Effect.forkScoped);
|
|
314
|
+
})).pipe(Stream.timeoutOrElse({
|
|
315
|
+
duration: EVENT_STREAM_IDLE,
|
|
316
|
+
orElse: () => Stream.fail(new Error(`MCP server ${server} sent nothing on the event stream for 60 seconds`))
|
|
317
|
+
}))
|
|
318
|
+
} : undefined,
|
|
319
|
+
tools: () => advertised("tools") ? list("list MCP tools", (signal) => client.listTools(undefined, { ...catalog, cacheMode: "bypass", signal })).pipe(Effect.flatMap((result) => {
|
|
320
|
+
const skipped = [];
|
|
321
|
+
const tools = result.tools.flatMap((tool) => {
|
|
322
|
+
const skip = (reason) => {
|
|
323
|
+
skipped.push({ tool: isRecord(tool) ? tool.name : undefined, reason });
|
|
324
|
+
return [];
|
|
325
|
+
};
|
|
326
|
+
if (!isRecord(tool))
|
|
327
|
+
return skip("not an object");
|
|
328
|
+
if (typeof tool.name !== "string" || tool.name === "")
|
|
329
|
+
return skip("name is not a non-empty string");
|
|
330
|
+
if (!isRecord(tool.inputSchema))
|
|
331
|
+
return skip("inputSchema is not an object");
|
|
332
|
+
if (tool.inputSchema.type !== undefined && tool.inputSchema.type !== "object")
|
|
333
|
+
return skip('inputSchema type is not "object"');
|
|
334
|
+
const { properties, required, ...inputSchema } = tool.inputSchema;
|
|
335
|
+
return [
|
|
336
|
+
{
|
|
337
|
+
name: tool.name,
|
|
338
|
+
title: typeof tool.title === "string" ? tool.title : undefined,
|
|
339
|
+
description: typeof tool.description === "string" ? tool.description : undefined,
|
|
340
|
+
inputSchema: {
|
|
341
|
+
...inputSchema,
|
|
342
|
+
type: "object",
|
|
343
|
+
...isRecord(properties) ? { properties } : {},
|
|
344
|
+
...Array.isArray(required) && required.every((key) => typeof key === "string") ? { required } : {}
|
|
345
|
+
},
|
|
346
|
+
outputSchema: isRecord(tool.outputSchema) ? tool.outputSchema : undefined,
|
|
347
|
+
annotations: isRecord(tool.annotations) ? tool.annotations : undefined,
|
|
348
|
+
execution: isRecord(tool.execution) ? tool.execution : undefined,
|
|
349
|
+
_meta: isRecord(tool._meta) ? tool._meta : undefined
|
|
350
|
+
}
|
|
351
|
+
];
|
|
352
|
+
});
|
|
353
|
+
listed.clear();
|
|
354
|
+
for (const tool of tools)
|
|
355
|
+
listed.set(tool.name, tool);
|
|
356
|
+
return Effect.forEach(skipped, (entry) => Effect.logWarning("skipping invalid MCP tool", { server, ...entry }), { discard: true }).pipe(Effect.as(tools));
|
|
357
|
+
})) : Effect.succeed([]),
|
|
358
|
+
prompts: () => advertised("prompts") ? list("list MCP prompts", (signal) => client.listPrompts(undefined, { ...catalog, signal })).pipe(Effect.map((r) => r.prompts)) : Effect.succeed([]),
|
|
359
|
+
resources: () => advertised("resources") ? list("list MCP resources", (signal) => client.listResources(undefined, { ...catalog, signal })).pipe(Effect.map((r) => r.resources)) : Effect.succeed([]),
|
|
360
|
+
resourceTemplates: () => advertised("resources") ? list("list MCP resource templates", (signal) => client.listResourceTemplates(undefined, { ...catalog, signal })).pipe(Effect.map((r) => r.resourceTemplates)) : Effect.succeed([]),
|
|
361
|
+
readResource: (input) => {
|
|
362
|
+
if (!advertised("resources"))
|
|
363
|
+
return Effect.succeed(undefined);
|
|
364
|
+
return request("read MCP resource", (signal) => client.readResource({ uri: input.uri }, { signal: claim(signal, input), timeout: execution }));
|
|
365
|
+
},
|
|
366
|
+
prompt: (input) => request("get MCP prompt", (signal) => client.getPrompt({ name: input.name, arguments: input.args ?? {} }, { signal: claim(signal, input), timeout: execution })),
|
|
367
|
+
callTool: (input) => {
|
|
368
|
+
const call = Effect.tryPromise({
|
|
369
|
+
try: (signal) => client.callTool({
|
|
370
|
+
name: input.name,
|
|
371
|
+
arguments: input.args ?? {},
|
|
372
|
+
...input.sessionID === undefined ? {} : { _meta: { "ai.opencode/sessionID": input.sessionID } }
|
|
373
|
+
}, {
|
|
374
|
+
signal: claim(signal, input),
|
|
375
|
+
timeout: execution,
|
|
376
|
+
onprogress: () => {},
|
|
377
|
+
toolDefinition: {
|
|
378
|
+
...listed.get(input.name) ?? { name: input.name, inputSchema: { type: "object" } },
|
|
379
|
+
outputSchema: undefined
|
|
380
|
+
}
|
|
381
|
+
}),
|
|
382
|
+
catch: (error) => error
|
|
383
|
+
});
|
|
384
|
+
return call.pipe(Effect.catchIf((error) => connection.modern && error instanceof ProtocolError && error.code === HEADER_MISMATCH, () => connection.tools().pipe(Effect.andThen(call))), Effect.mapError(failure), Effect.tapError((error) => Effect.logWarning("failed to call MCP tool", { server, error: error.message })), Effect.map(toCallToolResult));
|
|
385
|
+
},
|
|
386
|
+
onClose: (callback) => {
|
|
387
|
+
client.onclose = () => callback(lastError ? `Connection closed: ${lastError}` : "Connection closed");
|
|
388
|
+
},
|
|
389
|
+
onSessionExpired: (callback) => {
|
|
390
|
+
session.expired = callback;
|
|
391
|
+
},
|
|
392
|
+
onToolsChanged: (callback) => {
|
|
393
|
+
changed.tools = callback;
|
|
394
|
+
},
|
|
395
|
+
onPromptsChanged: (callback) => {
|
|
396
|
+
changed.prompts = callback;
|
|
397
|
+
},
|
|
398
|
+
onResourcesChanged: (callback) => {
|
|
399
|
+
changed.resources = callback;
|
|
400
|
+
}
|
|
401
|
+
};
|
|
402
|
+
return connection;
|
|
403
|
+
}
|
|
404
|
+
const error = Cause.squash(exit.cause);
|
|
405
|
+
if (error instanceof UnauthorizedError || error instanceof InsufficientScopeError)
|
|
406
|
+
return yield* new NeedsAuthError2({ server, message: error.message });
|
|
407
|
+
if (error instanceof UnsupportedProtocolVersionError)
|
|
408
|
+
return yield* new ConnectError2({
|
|
409
|
+
server,
|
|
410
|
+
message: `${error.message}; the server supports ${error.supported.join(", ")}. Set "protocol" for this server to one of those or to "legacy".`
|
|
411
|
+
});
|
|
412
|
+
return yield* new ConnectError2({ server, message: explain(error), answered: !repeats(error) });
|
|
413
|
+
});
|
|
414
|
+
function repeats(error) {
|
|
415
|
+
if (error instanceof SdkError && error.code === SdkErrorCode.EraNegotiationFailed && error.cause !== undefined)
|
|
416
|
+
return repeats(error.cause);
|
|
417
|
+
return error instanceof SdkError && error.code === SdkErrorCode.RequestTimeout || error instanceof SdkHttpError && (error.status === 401 || error.status === 403) || error instanceof OAuthError && error.code === OAuthErrorCode.TemporarilyUnavailable || isTransient(error) || PlatformError.isPlatformError(error);
|
|
418
|
+
}
|
|
419
|
+
function rejectsUnknownQuery(url) {
|
|
420
|
+
if (url.hostname.endsWith(".googleapis.com"))
|
|
421
|
+
return true;
|
|
422
|
+
if (/(^|\.)zohomcp\.[a-z.]+$/.test(url.hostname))
|
|
423
|
+
return true;
|
|
424
|
+
return url.hostname === "localhost" || url.hostname === "[::1]" || /^127(\.\d+){3}$/.test(url.hostname);
|
|
425
|
+
}
|
|
426
|
+
function negotiation(protocol) {
|
|
427
|
+
if (protocol === undefined || protocol === "legacy")
|
|
428
|
+
return;
|
|
429
|
+
if (protocol === "auto")
|
|
430
|
+
return { mode: "auto" };
|
|
431
|
+
return { mode: { pin: protocol } };
|
|
432
|
+
}
|
|
433
|
+
function toCallToolResult(result) {
|
|
434
|
+
return {
|
|
435
|
+
isError: result.isError === true,
|
|
436
|
+
structured: result.structuredContent,
|
|
437
|
+
content: result.content.flatMap((part) => {
|
|
438
|
+
if (part.type === "text")
|
|
439
|
+
return [{ type: "text", text: part.text }];
|
|
440
|
+
if (part.type === "image" || part.type === "audio")
|
|
441
|
+
return [{ type: "media", data: part.data, mimeType: part.mimeType }];
|
|
442
|
+
if (part.type === "resource_link")
|
|
443
|
+
return [{ type: "text", text: part.uri }];
|
|
444
|
+
if (part.type === "resource") {
|
|
445
|
+
const resource = part.resource;
|
|
446
|
+
if ("text" in resource)
|
|
447
|
+
return [{ type: "text", text: resource.text }];
|
|
448
|
+
if ("blob" in resource && resource.mimeType !== undefined)
|
|
449
|
+
return [{ type: "media", data: resource.blob, mimeType: resource.mimeType, uri: resource.uri }];
|
|
450
|
+
return [{ type: "text", text: resource.uri }];
|
|
451
|
+
}
|
|
452
|
+
return [];
|
|
453
|
+
})
|
|
454
|
+
};
|
|
455
|
+
}
|
|
456
|
+
|
|
457
|
+
export { EventStreamTerminatedError2, NeedsAuthError2, ConnectError2, SessionExpiredError2, connect2, exports_client };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-g0fycf8m.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/vllm.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -11,7 +11,7 @@ var RemoteModel = Schema.Struct({
|
|
|
11
11
|
max_model_len: Schema.NullOr(Schema.Int)
|
|
12
12
|
});
|
|
13
13
|
var Response = Schema.Struct({ data: Schema.Array(RemoteModel) });
|
|
14
|
-
var
|
|
14
|
+
var make17 = createLocalProviderPlugin2({
|
|
15
15
|
id: "opencode.provider.vllm",
|
|
16
16
|
providerID,
|
|
17
17
|
name: "vLLM",
|
|
@@ -26,6 +26,6 @@ var make18 = createLocalProviderPlugin2({
|
|
|
26
26
|
context: item.max_model_len
|
|
27
27
|
})
|
|
28
28
|
});
|
|
29
|
-
var VLLMPlugin2 =
|
|
29
|
+
var VLLMPlugin2 = make17();
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { make17, VLLMPlugin2 };
|