@opencode/core 0.0.0-dev-21059 → 0.0.0-dev-21067
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 +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +77 -77
- package/dist/chunks/{agent-n52ad204.js → repository-cache-04fq9w7k.js} +17 -17
- package/dist/chunks/{agent-9j3abkkx.js → repository-cache-04hm8sbf.js} +3 -3
- package/dist/chunks/{agent-vqd49qwt.js → repository-cache-0fkzsajt.js} +48 -48
- package/dist/chunks/{agent-fkhcryxm.js → repository-cache-0gwaxdb5.js} +9 -9
- package/dist/chunks/{agent-9656bada.js → repository-cache-0h584zcj.js} +31 -31
- package/dist/chunks/{agent-13egsp17.js → repository-cache-0ks8fkk7.js} +18 -18
- package/dist/chunks/{agent-a49by44p.js → repository-cache-0mp77758.js} +19 -19
- package/dist/chunks/{agent-rc0eda3w.js → repository-cache-0q1bg550.js} +7 -7
- package/dist/chunks/{agent-0vbcp93d.js → repository-cache-0vbcp93d.js} +2 -2
- package/dist/chunks/{agent-6g1cr3nb.js → repository-cache-0vxmkk46.js} +13 -13
- package/dist/chunks/{agent-fn4x26t7.js → repository-cache-1002ah85.js} +4 -4
- package/dist/chunks/{agent-9ejc3kek.js → repository-cache-14ghcskf.js} +11 -11
- package/dist/chunks/{agent-1acjjqhc.js → repository-cache-1acjjqhc.js} +1 -1
- package/dist/chunks/{agent-qnmgnxnk.js → repository-cache-1c0nrm75.js} +36 -36
- package/dist/chunks/{agent-j0mtf0c9.js → repository-cache-1mhdjbgf.js} +54 -54
- package/dist/chunks/{agent-y7p2skpd.js → repository-cache-1zkr7at4.js} +17 -17
- package/dist/chunks/{agent-xryj725v.js → repository-cache-20ddjeqk.js} +5 -5
- package/dist/chunks/{agent-2tba787a.js → repository-cache-2c7hjkzv.js} +16 -16
- package/dist/chunks/{agent-emtj3tbf.js → repository-cache-2hs2b7gr.js} +16 -16
- package/dist/chunks/{agent-3dacjcw5.js → repository-cache-2r93mh4x.js} +12 -12
- package/dist/chunks/{agent-qpqsqxka.js → repository-cache-2reh3z7q.js} +22 -22
- package/dist/chunks/{agent-t5yst9z9.js → repository-cache-34wbqfzd.js} +13 -13
- package/dist/chunks/{agent-yesqerhw.js → repository-cache-3dp26de5.js} +3 -3
- package/dist/chunks/{agent-7j2vym7r.js → repository-cache-3f3jw9g7.js} +34 -24
- package/dist/chunks/{agent-3fc6dm20.js → repository-cache-3fc6dm20.js} +1 -1
- package/dist/chunks/{agent-3hepkmqq.js → repository-cache-3hepkmqq.js} +1 -1
- package/dist/chunks/{agent-3hwn7j4h.js → repository-cache-3hwn7j4h.js} +2 -2
- package/dist/chunks/{agent-cp2e2e5x.js → repository-cache-3j6skxgn.js} +15 -15
- package/dist/chunks/{agent-r5wgqceq.js → repository-cache-3ppptnan.js} +6 -6
- package/dist/chunks/{agent-1zgm74j7.js → repository-cache-3s0pff9n.js} +4 -4
- package/dist/chunks/{agent-3smtnn6g.js → repository-cache-3smtnn6g.js} +1 -1
- package/dist/chunks/{agent-3tvqynh2.js → repository-cache-3tvqynh2.js} +1 -1
- package/dist/chunks/{agent-0v56fe9p.js → repository-cache-3yfx7ssa.js} +8 -8
- package/dist/chunks/{agent-v0v9zhgd.js → repository-cache-3yx1m4p2.js} +34 -34
- package/dist/chunks/{agent-3zsf4n22.js → repository-cache-3zsf4n22.js} +1 -1
- package/dist/chunks/{agent-qe7caw4f.js → repository-cache-47p11zqp.js} +32 -32
- package/dist/chunks/{agent-8ytc3qm4.js → repository-cache-491xdksk.js} +27 -27
- package/dist/chunks/{agent-j6gr24hv.js → repository-cache-4cacgcg4.js} +13 -13
- package/dist/chunks/{agent-c9e0ykqz.js → repository-cache-4s488yf0.js} +28 -28
- package/dist/chunks/{agent-73kdj4zj.js → repository-cache-4w5f3qm5.js} +8 -8
- package/dist/chunks/{agent-b99nrxjj.js → repository-cache-4weqkh0r.js} +23 -23
- package/dist/chunks/{agent-475aaysq.js → repository-cache-529j2gk6.js} +8 -8
- package/dist/chunks/{agent-54ma36ye.js → repository-cache-54ma36ye.js} +1 -1
- package/dist/chunks/{agent-xfkkasph.js → repository-cache-57b9ws8p.js} +7 -7
- package/dist/chunks/{agent-gwkjka7r.js → repository-cache-5b8jzjbb.js} +10 -10
- package/dist/chunks/{agent-26c5b08v.js → repository-cache-5cgvgbkt.js} +22 -22
- package/dist/chunks/{agent-f5gzyxsv.js → repository-cache-5fggwg49.js} +9 -9
- package/dist/chunks/{agent-p59b6n5j.js → repository-cache-5kcxs3hq.js} +11 -11
- package/dist/chunks/{agent-5m9w47nd.js → repository-cache-5m9w47nd.js} +1 -1
- package/dist/chunks/{agent-h71w788e.js → repository-cache-6fatt4mk.js} +9 -9
- package/dist/chunks/{agent-r365gfv3.js → repository-cache-6mvxpr6a.js} +24 -24
- package/dist/chunks/{agent-zy43x3f1.js → repository-cache-6rm5yzkt.js} +4 -4
- package/dist/chunks/{agent-6k0cajn2.js → repository-cache-6shgtgh7.js} +18 -18
- package/dist/chunks/{agent-6xb47vfp.js → repository-cache-6xb47vfp.js} +1 -1
- package/dist/chunks/{agent-gza6rqz1.js → repository-cache-6y3da09e.js} +9 -9
- package/dist/chunks/{agent-pz17d9xg.js → repository-cache-71ydk2nh.js} +5 -5
- package/dist/chunks/{agent-775gj3j1.js → repository-cache-775gj3j1.js} +2 -2
- package/dist/chunks/{agent-0vk3wfpr.js → repository-cache-7862sz3y.js} +5 -5
- package/dist/chunks/{agent-7bmhse3q.js → repository-cache-7bmhse3q.js} +1 -1
- package/dist/chunks/{agent-t7rvx3z8.js → repository-cache-7hpzbegt.js} +5 -5
- package/dist/chunks/{agent-c96shp8w.js → repository-cache-7s2t8884.js} +7 -7
- package/dist/chunks/{agent-bbgs6xmq.js → repository-cache-87xdddg2.js} +16 -16
- package/dist/chunks/{agent-tcezcvh9.js → repository-cache-89znhe33.js} +4 -4
- package/dist/chunks/{agent-t9157dv5.js → repository-cache-8ke26ekv.js} +23 -23
- package/dist/chunks/{agent-8m6m0r52.js → repository-cache-8m6m0r52.js} +1 -1
- package/dist/chunks/{agent-p68t7hkv.js → repository-cache-8nmsyqvc.js} +185 -185
- package/dist/chunks/{agent-npza5r50.js → repository-cache-8qpd1wq0.js} +28 -28
- package/dist/chunks/{agent-q159fzra.js → repository-cache-8tsx4356.js} +20 -20
- package/dist/chunks/{agent-6fcpqzzd.js → repository-cache-8xbb1bj4.js} +4 -4
- package/dist/chunks/{agent-0dq5ytza.js → repository-cache-8xfr6ygr.js} +4 -4
- package/dist/chunks/{agent-91qna3x0.js → repository-cache-91qna3x0.js} +3 -3
- package/dist/chunks/{agent-tdqj5rj9.js → repository-cache-94ca0bep.js} +5 -5
- package/dist/chunks/{agent-axn1dk7m.js → repository-cache-9a1tk2ax.js} +18 -18
- package/dist/chunks/{agent-08fthye5.js → repository-cache-9bepqb19.js} +45 -45
- package/dist/chunks/{agent-kzcb1jca.js → repository-cache-9e6h2n11.js} +5 -5
- package/dist/chunks/{agent-3aqvrwqh.js → repository-cache-9hd7xbnq.js} +3 -3
- package/dist/chunks/{agent-jfrhrggt.js → repository-cache-9m58ky0y.js} +32 -32
- package/dist/chunks/{agent-2dw3jvkf.js → repository-cache-9rehpywf.js} +32 -32
- package/dist/chunks/{agent-vjjaysxc.js → repository-cache-9y9sk2j9.js} +2 -2
- package/dist/chunks/{agent-3ke0h2vq.js → repository-cache-9ydfqn9m.js} +24 -24
- package/dist/chunks/{agent-7q9429tc.js → repository-cache-a5efwarc.js} +13 -13
- package/dist/chunks/{agent-q519ga1a.js → repository-cache-a7q6bcxf.js} +50 -50
- package/dist/chunks/{agent-wjtwcy2c.js → repository-cache-ab7kh9ah.js} +13 -13
- package/dist/chunks/{agent-k6q0jycv.js → repository-cache-abs0cgcn.js} +38 -37
- package/dist/chunks/{agent-mxvxcxwy.js → repository-cache-addxnjmp.js} +4 -4
- package/dist/chunks/{agent-6tw9cd06.js → repository-cache-apjrvc88.js} +15 -15
- package/dist/chunks/{agent-g8pbgkrs.js → repository-cache-at71mg2v.js} +17 -17
- package/dist/chunks/{agent-v73vpk9k.js → repository-cache-ave3dvq0.js} +10 -10
- package/dist/chunks/{agent-hzrfc1p4.js → repository-cache-axe3mf62.js} +3 -3
- package/dist/chunks/{agent-pdz643x3.js → repository-cache-aypb1cd9.js} +12 -12
- package/dist/chunks/{agent-qbas706v.js → repository-cache-b15enhky.js} +25 -25
- package/dist/chunks/{agent-76gx3gef.js → repository-cache-b4qvnwj4.js} +45 -45
- package/dist/chunks/{agent-bh0zzf2s.js → repository-cache-be7qvw84.js} +8 -8
- package/dist/chunks/{agent-fx9jxwhh.js → repository-cache-bfv9bv9k.js} +6 -6
- package/dist/chunks/{agent-1k68ks32.js → repository-cache-bqcq01f8.js} +1 -1
- package/dist/chunks/{agent-70y17xeh.js → repository-cache-btec747f.js} +5 -5
- package/dist/chunks/{agent-bxdp1qj4.js → repository-cache-bxv8f0vx.js} +37 -37
- package/dist/chunks/{agent-an57bb0v.js → repository-cache-by2m0qzd.js} +23 -16
- package/dist/chunks/{agent-es1vcfrp.js → repository-cache-c1fqxshp.js} +3 -3
- package/dist/chunks/{agent-4cx4cnzf.js → repository-cache-c342w7bd.js} +19 -19
- package/dist/chunks/{agent-9yxrcrk2.js → repository-cache-c63260k1.js} +22 -22
- package/dist/chunks/{agent-2cz1eswr.js → repository-cache-cchmky4n.js} +4 -4
- package/dist/chunks/{agent-0mp3yd4y.js → repository-cache-cdv61tg0.js} +11 -11
- package/dist/chunks/{agent-k8z8vrp8.js → repository-cache-ch54pc8v.js} +5 -5
- package/dist/chunks/{agent-58dzcpvt.js → repository-cache-cjb9bptw.js} +10 -10
- package/dist/chunks/{agent-tpw6cwsb.js → repository-cache-cmwkp3r5.js} +8 -8
- package/dist/chunks/{agent-v7m0z00c.js → repository-cache-crq3qyq7.js} +16 -16
- package/dist/chunks/{agent-desw8mjx.js → repository-cache-ctj9g63t.js} +27 -27
- package/dist/chunks/{agent-9wpgc5d2.js → repository-cache-cwe0vf0q.js} +17 -17
- package/dist/chunks/{agent-1mh1r30f.js → repository-cache-cx8gshh0.js} +18 -18
- package/dist/chunks/{agent-acgt48p6.js → repository-cache-d1qr7c61.js} +27 -27
- package/dist/chunks/{agent-yrcj3v3g.js → repository-cache-d2czbp48.js} +4 -4
- package/dist/chunks/{agent-j4mjvx72.js → repository-cache-d4k0r7c4.js} +31 -31
- package/dist/chunks/{agent-598gff9k.js → repository-cache-d591ppm4.js} +29 -29
- package/dist/chunks/{agent-mjc8m2em.js → repository-cache-d8v8pkk5.js} +36 -36
- package/dist/chunks/{agent-r8eecgca.js → repository-cache-d9vjfnsx.js} +24 -24
- package/dist/chunks/{agent-d3x6x8ct.js → repository-cache-dk6v5ecn.js} +23 -23
- package/dist/chunks/{agent-dqxsqydv.js → repository-cache-dqxsqydv.js} +1 -1
- package/dist/chunks/repository-cache-dxj72tfx.js +18 -0
- package/dist/chunks/{agent-npw39rc8.js → repository-cache-dys7k0s0.js} +8 -8
- package/dist/chunks/{agent-a3vhmvx0.js → repository-cache-e2pebnkw.js} +53 -53
- package/dist/chunks/{agent-fbeb1wa5.js → repository-cache-e40rpznh.js} +11 -11
- package/dist/chunks/{agent-azndqj98.js → repository-cache-e49nbjze.js} +16 -16
- package/dist/chunks/{agent-5sq35qhm.js → repository-cache-e5m8tg9t.js} +23 -23
- package/dist/chunks/{agent-120mm9fe.js → repository-cache-e5tpmdkr.js} +23 -23
- package/dist/chunks/{agent-x05pdjgt.js → repository-cache-e7r48vpy.js} +11 -11
- package/dist/chunks/{agent-r2z489rp.js → repository-cache-e80seqcp.js} +3 -3
- package/dist/chunks/{agent-eej6y6fw.js → repository-cache-eej6y6fw.js} +2 -2
- package/dist/chunks/{agent-ef5x83kb.js → repository-cache-ef5x83kb.js} +1 -1
- package/dist/chunks/{agent-y06egy23.js → repository-cache-eg4pqzs7.js} +15 -15
- package/dist/chunks/{agent-m48ydh7z.js → repository-cache-ejb551xx.js} +50 -50
- package/dist/chunks/{agent-w1eqcter.js → repository-cache-ejvep6r2.js} +33 -33
- package/dist/chunks/{agent-x39k8923.js → repository-cache-ewxjqerj.js} +41 -41
- package/dist/chunks/{agent-qwean1e1.js → repository-cache-f0q5jczr.js} +14 -14
- package/dist/chunks/{agent-p68x8en9.js → repository-cache-f25zr6qz.js} +27 -27
- package/dist/chunks/{agent-09dwq0k8.js → repository-cache-fdg7jwgm.js} +19 -19
- package/dist/chunks/{agent-b8s5yqvg.js → repository-cache-fe4hjjyy.js} +11 -11
- package/dist/chunks/{agent-3770a3t0.js → repository-cache-fjtmed58.js} +13 -13
- package/dist/chunks/{agent-7j38m80p.js → repository-cache-fpyqxqmr.js} +22 -22
- package/dist/chunks/{agent-st9476f7.js → repository-cache-fqp693fh.js} +25 -25
- package/dist/chunks/{agent-g6ncrc2a.js → repository-cache-fvcpcef7.js} +14 -14
- package/dist/chunks/{agent-dvep9rg9.js → repository-cache-fw181sc9.js} +9 -9
- package/dist/chunks/{agent-7mq7nmkg.js → repository-cache-g3y8m8pp.js} +14 -14
- package/dist/chunks/{agent-ft3hqk2c.js → repository-cache-g6q9qykm.js} +9 -9
- package/dist/chunks/{agent-57myy5jh.js → repository-cache-g6yfr6ja.js} +5 -5
- package/dist/chunks/{agent-df900zta.js → repository-cache-gd39dmhb.js} +11 -11
- package/dist/chunks/{agent-gd4qta3r.js → repository-cache-gd4qta3r.js} +1 -1
- package/dist/chunks/{agent-1hj14pj4.js → repository-cache-geyja93h.js} +28 -28
- package/dist/chunks/{agent-gj71zhbs.js → repository-cache-gj71zhbs.js} +2 -2
- package/dist/chunks/{agent-hy5rne45.js → repository-cache-gq7y3cd8.js} +27 -27
- package/dist/chunks/{agent-rwm5vee1.js → repository-cache-gst7axd9.js} +4 -4
- package/dist/chunks/{agent-ykn3eabp.js → repository-cache-gv37jgcn.js} +38 -38
- package/dist/chunks/{agent-0datvkzx.js → repository-cache-h0y6q46p.js} +27 -27
- package/dist/chunks/{agent-fbq8j98h.js → repository-cache-h4a8c9dz.js} +14 -14
- package/dist/chunks/{agent-h6vf3j39.js → repository-cache-h6vf3j39.js} +1 -1
- package/dist/chunks/{agent-31xfzrxg.js → repository-cache-h7s7r6s9.js} +5 -5
- package/dist/chunks/{agent-hgz4x7wa.js → repository-cache-hgz4x7wa.js} +1 -1
- package/dist/chunks/{agent-vn5kn1xa.js → repository-cache-hqxhqkds.js} +16 -6
- package/dist/chunks/{agent-mw9nhf2x.js → repository-cache-j1wkfhwt.js} +3 -3
- package/dist/chunks/{agent-10mgaypy.js → repository-cache-j2b91fdp.js} +14 -14
- package/dist/chunks/{agent-x6ekcm9n.js → repository-cache-j9x0khfw.js} +6 -6
- package/dist/chunks/{agent-j88gsrc2.js → repository-cache-jecp24jg.js} +6 -6
- package/dist/chunks/repository-cache-jevmk2ks.js +26 -0
- package/dist/chunks/{agent-3e3ts2k0.js → repository-cache-k57ac7j1.js} +3 -3
- package/dist/chunks/{agent-ww5bxnkm.js → repository-cache-k9gyx25e.js} +21 -21
- package/dist/chunks/{agent-dwm3anjr.js → repository-cache-kcvbm89f.js} +32 -32
- package/dist/chunks/{agent-fxaymqdw.js → repository-cache-khmqacep.js} +4 -4
- package/dist/chunks/{agent-t59vet7a.js → repository-cache-kpe059n0.js} +9 -9
- package/dist/chunks/{agent-n3df6fgn.js → repository-cache-kqtg52fn.js} +72 -72
- package/dist/chunks/{agent-2ryng5r3.js → repository-cache-kqx1b4hy.js} +4 -4
- package/dist/chunks/{agent-v2mxr9ph.js → repository-cache-krf4tsjk.js} +34 -34
- package/dist/chunks/repository-cache-ks80404h.js +513 -0
- package/dist/chunks/{agent-kwb1v3vj.js → repository-cache-kwb1v3vj.js} +1 -1
- package/dist/chunks/{agent-e314xmzp.js → repository-cache-m6b17x9v.js} +2 -2
- package/dist/chunks/{agent-07y8yssa.js → repository-cache-m8sfq14v.js} +13 -13
- package/dist/chunks/{agent-zvj6924a.js → repository-cache-m93cgr6s.js} +5 -5
- package/dist/chunks/{agent-m9w0rfyh.js → repository-cache-m9w0rfyh.js} +1 -1
- package/dist/chunks/{agent-maspj1v3.js → repository-cache-maspj1v3.js} +1 -1
- package/dist/chunks/{agent-bb86f272.js → repository-cache-mdre6djm.js} +11 -11
- package/dist/chunks/{agent-m341j4am.js → repository-cache-mj4tx5qy.js} +22 -22
- package/dist/chunks/{agent-9t0y1ztz.js → repository-cache-mp7nbm6p.js} +3 -3
- package/dist/chunks/{agent-hrcr6mwe.js → repository-cache-mpy9qz4k.js} +11 -11
- package/dist/chunks/{agent-4at5033j.js → repository-cache-mq9zb5b9.js} +33 -33
- package/dist/chunks/{agent-ap7erzbb.js → repository-cache-mv1zf9z2.js} +47 -47
- package/dist/chunks/{agent-hmf6h8tj.js → repository-cache-mwyvanbh.js} +14 -14
- package/dist/chunks/{agent-40ze75wf.js → repository-cache-n2wb2mch.js} +33 -33
- package/dist/chunks/{agent-n7gz7dkb.js → repository-cache-ngpfqwbj.js} +21 -21
- package/dist/chunks/{agent-x4fsxtvp.js → repository-cache-nj3byha7.js} +16 -16
- package/dist/chunks/{agent-3v1rmssb.js → repository-cache-nq7pnem0.js} +23 -23
- package/dist/chunks/{agent-y4j9axvr.js → repository-cache-p91h8kfs.js} +4 -4
- package/dist/chunks/{agent-yf1wa02y.js → repository-cache-pdx0gykg.js} +25 -25
- package/dist/chunks/{agent-176qrfyr.js → repository-cache-pfjh7j5z.js} +11 -11
- package/dist/chunks/{agent-pjvnvgmy.js → repository-cache-pjvnvgmy.js} +1 -1
- package/dist/chunks/{agent-mxabp7zc.js → repository-cache-pk4ymh6x.js} +22 -22
- package/dist/chunks/{agent-pknna89w.js → repository-cache-pknna89w.js} +1 -1
- package/dist/chunks/{agent-43m0923n.js → repository-cache-pm1kn7fh.js} +23 -23
- package/dist/chunks/{agent-59pb1bst.js → repository-cache-ptjpt6w9.js} +89 -89
- package/dist/chunks/{agent-5ffyefh4.js → repository-cache-px85ptb0.js} +21 -21
- package/dist/chunks/{agent-gftv0dff.js → repository-cache-q2pht526.js} +19 -19
- package/dist/chunks/{agent-tf2nhsz8.js → repository-cache-q51r5gk2.js} +9 -9
- package/dist/chunks/{agent-me8drbfe.js → repository-cache-q5v42qaq.js} +27 -27
- package/dist/chunks/{agent-tvktx62v.js → repository-cache-qb9n2841.js} +3 -3
- package/dist/chunks/{agent-fcrkznn8.js → repository-cache-qgn6gcr1.js} +5 -5
- package/dist/chunks/{agent-qnc92qwc.js → repository-cache-qnc92qwc.js} +1 -1
- package/dist/chunks/{agent-qsdy395h.js → repository-cache-qsdy395h.js} +1 -1
- package/dist/chunks/{agent-ycw2k4m5.js → repository-cache-qyj1vcvk.js} +11 -11
- package/dist/chunks/{agent-pxnnf3sj.js → repository-cache-rap56gfv.js} +10 -10
- package/dist/chunks/{agent-x2p9rnd2.js → repository-cache-rcy0c9yy.js} +46 -46
- package/dist/chunks/{agent-rdw6cm16.js → repository-cache-rdw6cm16.js} +1 -1
- package/dist/chunks/{agent-tkb22qbm.js → repository-cache-rert0e01.js} +2 -2
- package/dist/chunks/{agent-rhjbct0v.js → repository-cache-rhjbct0v.js} +1 -1
- package/dist/chunks/{agent-c41wscbt.js → repository-cache-rj3eygr5.js} +2 -2
- package/dist/chunks/{agent-70acndry.js → repository-cache-rkxvzxf2.js} +47 -47
- package/dist/chunks/{agent-wgahhr0x.js → repository-cache-rsvmvhbp.js} +6 -6
- package/dist/chunks/{agent-c8ax2afj.js → repository-cache-sa8ekw3f.js} +2 -2
- package/dist/chunks/{agent-cnw0s3pm.js → repository-cache-sgjfhjy7.js} +11 -11
- package/dist/chunks/{agent-zfm7v8bv.js → repository-cache-sje3rda6.js} +14 -14
- package/dist/chunks/{agent-s5bmn3fh.js → repository-cache-sxk90dft.js} +33 -33
- package/dist/chunks/{agent-syv4x271.js → repository-cache-syv4x271.js} +1 -1
- package/dist/chunks/{agent-xx5ebepc.js → repository-cache-t0yfw6ys.js} +8 -8
- package/dist/chunks/{agent-tazgh4e4.js → repository-cache-tazgh4e4.js} +1 -1
- package/dist/chunks/{agent-tdstcens.js → repository-cache-tdstcens.js} +1 -1
- package/dist/chunks/{agent-3zst7r5n.js → repository-cache-temcp865.js} +4 -4
- package/dist/chunks/{agent-tm0kqsz3.js → repository-cache-tm0kqsz3.js} +1 -1
- package/dist/chunks/{agent-3nt2w26v.js → repository-cache-tnw9vg4a.js} +1 -1
- package/dist/chunks/{agent-tyytaxap.js → repository-cache-tyytaxap.js} +1 -1
- package/dist/chunks/{agent-6g7e4dd5.js → repository-cache-v0es1rhs.js} +7 -7
- package/dist/chunks/{agent-q88xdd0q.js → repository-cache-v1cyyw7h.js} +15 -15
- package/dist/chunks/{agent-c1ezcj9p.js → repository-cache-v4v9aph4.js} +13 -13
- package/dist/chunks/{agent-ryr25ayn.js → repository-cache-v5dkyp31.js} +4 -4
- package/dist/chunks/{agent-v7p4zvkq.js → repository-cache-v7p4zvkq.js} +2 -2
- package/dist/chunks/{agent-4py5fpra.js → repository-cache-vcdzpava.js} +38 -38
- package/dist/chunks/{agent-84mt6kxk.js → repository-cache-ve7zbnhg.js} +10 -10
- package/dist/chunks/{agent-veqvce7d.js → repository-cache-veqvce7d.js} +1 -1
- package/dist/chunks/{agent-xp6nq9tj.js → repository-cache-vhaf4ayt.js} +92 -92
- package/dist/chunks/{agent-6hk8xqds.js → repository-cache-vk80et65.js} +4 -4
- package/dist/chunks/{agent-sgz82gsd.js → repository-cache-vr44d4hm.js} +19 -19
- package/dist/chunks/{agent-fr4rxre2.js → repository-cache-vsye7q8h.js} +32 -32
- package/dist/chunks/{agent-vzs5sf6e.js → repository-cache-vzs5sf6e.js} +1 -1
- package/dist/chunks/{agent-84txncab.js → repository-cache-w1eejvng.js} +5 -5
- package/dist/chunks/repository-cache-w3tje0hb.js +253 -0
- package/dist/chunks/{agent-w3wsvvr9.js → repository-cache-w3wsvvr9.js} +1 -1
- package/dist/chunks/{agent-py3kkmfq.js → repository-cache-w92k2e0p.js} +8 -8
- package/dist/chunks/{agent-sz15zhhw.js → repository-cache-waskdk5r.js} +4 -4
- package/dist/chunks/{agent-b8n2r79a.js → repository-cache-wbv8krvw.js} +35 -35
- package/dist/chunks/{agent-z9tz5eek.js → repository-cache-wcmdh5fr.js} +8 -8
- package/dist/chunks/{agent-wd87259q.js → repository-cache-wd87259q.js} +1 -1
- package/dist/chunks/{agent-b3f8fkhc.js → repository-cache-wecqtg5s.js} +5 -5
- package/dist/chunks/{agent-1ffvrpkg.js → repository-cache-wjr9rjd7.js} +9 -9
- package/dist/chunks/{agent-mvnt7d01.js → repository-cache-wp5jg3qv.js} +15 -15
- package/dist/chunks/{agent-6r7wd4s9.js → repository-cache-wqaksqmk.js} +20 -20
- package/dist/chunks/{agent-yynp9xvp.js → repository-cache-wz0h12mc.js} +45 -45
- package/dist/chunks/{agent-hk5w54gx.js → repository-cache-x7pmjftd.js} +9 -9
- package/dist/chunks/{agent-sqgae8e7.js → repository-cache-xfnq57nx.js} +17 -17
- package/dist/chunks/{agent-pqk7fwvb.js → repository-cache-xgq2rm19.js} +9 -9
- package/dist/chunks/{agent-7zpkz1ag.js → repository-cache-xreky3y6.js} +32 -32
- package/dist/chunks/{agent-71byd0nn.js → repository-cache-xrr5sc3f.js} +42 -41
- package/dist/chunks/{agent-ns8hhn76.js → repository-cache-xxtzrfs4.js} +11 -11
- package/dist/chunks/{agent-pnzf6mjf.js → repository-cache-xybefm6f.js} +1 -1
- package/dist/chunks/{agent-rrd63aa5.js → repository-cache-xyzkt3tg.js} +28 -28
- package/dist/chunks/{agent-y1fvbwt7.js → repository-cache-y1fvbwt7.js} +1 -1
- package/dist/chunks/{agent-z0aj456m.js → repository-cache-y6mhz57t.js} +4 -4
- package/dist/chunks/{agent-y71avatq.js → repository-cache-y71avatq.js} +1 -1
- package/dist/chunks/{agent-phz50fbd.js → repository-cache-y7nndgyc.js} +9 -9
- package/dist/chunks/{agent-w8frm7c7.js → repository-cache-yacze3r8.js} +5 -5
- package/dist/chunks/{agent-25zgp73e.js → repository-cache-ycpsy51k.js} +32 -32
- package/dist/chunks/{agent-hfbyhya8.js → repository-cache-yh1stbkq.js} +10 -10
- package/dist/chunks/{agent-bv8c7vet.js → repository-cache-yrmnft4d.js} +11 -11
- package/dist/chunks/{agent-j55ztwk7.js → repository-cache-ywqzdww2.js} +25 -25
- package/dist/chunks/{agent-z0bkrqjs.js → repository-cache-z0bkrqjs.js} +1 -1
- package/dist/chunks/{agent-8jjtjp8k.js → repository-cache-z0qz3jqt.js} +56 -56
- package/dist/chunks/{agent-tgvn7qv7.js → repository-cache-zgza60ny.js} +8 -8
- package/dist/chunks/{agent-zr2ceqn5.js → repository-cache-zr2ceqn5.js} +1 -1
- package/dist/chunks/{agent-nhfjry95.js → repository-cache-zss4em3h.js} +23 -23
- package/dist/chunks/{agent-zxq2ej10.js → repository-cache-zxq2ej10.js} +1 -1
- package/dist/chunks/{agent-btjxhes9.js → repository-cache-zzt06fmm.js} +16 -16
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- 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 +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +207 -207
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- 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.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +366 -366
- 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 +95 -95
- 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 +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- 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/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +218 -218
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- package/dist/git.js +10 -10
- 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 +101 -101
- 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/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +357 -357
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +136 -136
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +354 -354
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- 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 +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +329 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -99
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -167
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- 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 +6 -6
- 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 +222 -222
- package/dist/project/schema.js +6 -6
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +97 -97
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +137 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- 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 +217 -217
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- 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 +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +95 -95
- 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 +130 -130
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +114 -114
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/model.d.ts +3 -0
- package/dist/types/variant.d.ts +3 -0
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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 +2 -2
- package/dist/variant.js +97 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +98 -98
- package/package.json +8 -8
- package/dist/chunks/agent-8920dkqx.js +0 -253
- package/dist/chunks/agent-dn7ydhqs.js +0 -513
- package/dist/chunks/agent-n95b3jav.js +0 -18
- package/dist/chunks/agent-vmbjch0v.js +0 -26
- /package/dist/chunks/{agent-0qkdqm5v.js → repository-cache-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{agent-0zkw76rk.js → repository-cache-0zkw76rk.js} +0 -0
- /package/dist/chunks/{agent-17cy0kzp.js → repository-cache-17cy0kzp.js} +0 -0
- /package/dist/chunks/{agent-1cnp2v09.js → repository-cache-1cnp2v09.js} +0 -0
- /package/dist/chunks/{agent-1kg9ymc8.js → repository-cache-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{agent-24dcb14g.js → repository-cache-24dcb14g.js} +0 -0
- /package/dist/chunks/{agent-2710q6r3.js → repository-cache-2710q6r3.js} +0 -0
- /package/dist/chunks/{agent-2axfhc9x.js → repository-cache-2axfhc9x.js} +0 -0
- /package/dist/chunks/{agent-2bv980vf.js → repository-cache-2bv980vf.js} +0 -0
- /package/dist/chunks/{agent-2c3vjs8z.js → repository-cache-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{agent-359p4xyc.js → repository-cache-359p4xyc.js} +0 -0
- /package/dist/chunks/{agent-3asan66x.js → repository-cache-3asan66x.js} +0 -0
- /package/dist/chunks/{agent-3t0ybcrp.js → repository-cache-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{agent-3v8g72cx.js → repository-cache-3v8g72cx.js} +0 -0
- /package/dist/chunks/{agent-3wcehsnq.js → repository-cache-3wcehsnq.js} +0 -0
- /package/dist/chunks/{agent-43n2bw4t.js → repository-cache-43n2bw4t.js} +0 -0
- /package/dist/chunks/{agent-4knz6hnm.js → repository-cache-4knz6hnm.js} +0 -0
- /package/dist/chunks/{agent-4vcrnpx2.js → repository-cache-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{agent-4y7fprxs.js → repository-cache-4y7fprxs.js} +0 -0
- /package/dist/chunks/{agent-53557ph1.js → repository-cache-53557ph1.js} +0 -0
- /package/dist/chunks/{agent-550bvhaj.js → repository-cache-550bvhaj.js} +0 -0
- /package/dist/chunks/{agent-5qd3pb7m.js → repository-cache-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{agent-6prwharc.js → repository-cache-6prwharc.js} +0 -0
- /package/dist/chunks/{agent-6q2bdcd1.js → repository-cache-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{agent-7akdwqpd.js → repository-cache-7akdwqpd.js} +0 -0
- /package/dist/chunks/{agent-7m9af43g.js → repository-cache-7m9af43g.js} +0 -0
- /package/dist/chunks/{agent-822emrt2.js → repository-cache-822emrt2.js} +0 -0
- /package/dist/chunks/{agent-84wd9syh.js → repository-cache-84wd9syh.js} +0 -0
- /package/dist/chunks/{agent-88xbtdfr.js → repository-cache-88xbtdfr.js} +0 -0
- /package/dist/chunks/{agent-8n3pysct.js → repository-cache-8n3pysct.js} +0 -0
- /package/dist/chunks/{agent-8wj87zfr.js → repository-cache-8wj87zfr.js} +0 -0
- /package/dist/chunks/{agent-9a4afbnw.js → repository-cache-9a4afbnw.js} +0 -0
- /package/dist/chunks/{agent-9rqn6x4v.js → repository-cache-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{agent-a6k6eb26.js → repository-cache-a6k6eb26.js} +0 -0
- /package/dist/chunks/{agent-af5trqkr.js → repository-cache-af5trqkr.js} +0 -0
- /package/dist/chunks/{agent-afrmfg78.js → repository-cache-afrmfg78.js} +0 -0
- /package/dist/chunks/{agent-aqzs7mqg.js → repository-cache-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{agent-atq7p7m5.js → repository-cache-atq7p7m5.js} +0 -0
- /package/dist/chunks/{agent-bkyjaxrp.js → repository-cache-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{agent-bmr6ed5q.js → repository-cache-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{agent-cf4snx6d.js → repository-cache-cf4snx6d.js} +0 -0
- /package/dist/chunks/{agent-cvy3z8tj.js → repository-cache-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{agent-d9fn303g.js → repository-cache-d9fn303g.js} +0 -0
- /package/dist/chunks/{agent-d9jj8t3e.js → repository-cache-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{agent-dajrwvna.js → repository-cache-dajrwvna.js} +0 -0
- /package/dist/chunks/{agent-dap0rakb.js → repository-cache-dap0rakb.js} +0 -0
- /package/dist/chunks/{agent-df08tz66.js → repository-cache-df08tz66.js} +0 -0
- /package/dist/chunks/{agent-dy18nga0.js → repository-cache-dy18nga0.js} +0 -0
- /package/dist/chunks/{agent-e5kj55wp.js → repository-cache-e5kj55wp.js} +0 -0
- /package/dist/chunks/{agent-e73j6tqm.js → repository-cache-e73j6tqm.js} +0 -0
- /package/dist/chunks/{agent-ec1grn59.js → repository-cache-ec1grn59.js} +0 -0
- /package/dist/chunks/{agent-eh3zwz77.js → repository-cache-eh3zwz77.js} +0 -0
- /package/dist/chunks/{agent-emrn6kk6.js → repository-cache-emrn6kk6.js} +0 -0
- /package/dist/chunks/{agent-f0mxakyp.js → repository-cache-f0mxakyp.js} +0 -0
- /package/dist/chunks/{agent-f6n9ztr4.js → repository-cache-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{agent-faypxj3z.js → repository-cache-faypxj3z.js} +0 -0
- /package/dist/chunks/{agent-fd410y7t.js → repository-cache-fd410y7t.js} +0 -0
- /package/dist/chunks/{agent-g4wezp1m.js → repository-cache-g4wezp1m.js} +0 -0
- /package/dist/chunks/{agent-g86h250q.js → repository-cache-g86h250q.js} +0 -0
- /package/dist/chunks/{agent-gebd4c9n.js → repository-cache-gebd4c9n.js} +0 -0
- /package/dist/chunks/{agent-gftt206x.js → repository-cache-gftt206x.js} +0 -0
- /package/dist/chunks/{agent-hcxmzztb.js → repository-cache-hcxmzztb.js} +0 -0
- /package/dist/chunks/{agent-hk9envan.js → repository-cache-hk9envan.js} +0 -0
- /package/dist/chunks/{agent-j2ntwpah.js → repository-cache-j2ntwpah.js} +0 -0
- /package/dist/chunks/{agent-j5zkgpj8.js → repository-cache-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{agent-jjkms2e6.js → repository-cache-jjkms2e6.js} +0 -0
- /package/dist/chunks/{agent-jr7sbwjy.js → repository-cache-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{agent-jwfs4k6c.js → repository-cache-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{agent-jze0r7bz.js → repository-cache-jze0r7bz.js} +0 -0
- /package/dist/chunks/{agent-jzg6c2d5.js → repository-cache-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{agent-m18g726c.js → repository-cache-m18g726c.js} +0 -0
- /package/dist/chunks/{agent-mp448xyj.js → repository-cache-mp448xyj.js} +0 -0
- /package/dist/chunks/{agent-msx8hqn2.js → repository-cache-msx8hqn2.js} +0 -0
- /package/dist/chunks/{agent-n05xt0ee.js → repository-cache-n05xt0ee.js} +0 -0
- /package/dist/chunks/{agent-n3j8tn72.js → repository-cache-n3j8tn72.js} +0 -0
- /package/dist/chunks/{agent-njntx4h6.js → repository-cache-njntx4h6.js} +0 -0
- /package/dist/chunks/{agent-pkyv6v7h.js → repository-cache-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{agent-pyv0edze.js → repository-cache-pyv0edze.js} +0 -0
- /package/dist/chunks/{agent-q3sfg36h.js → repository-cache-q3sfg36h.js} +0 -0
- /package/dist/chunks/{agent-q74kybfr.js → repository-cache-q74kybfr.js} +0 -0
- /package/dist/chunks/{agent-qaymkmh1.js → repository-cache-qaymkmh1.js} +0 -0
- /package/dist/chunks/{agent-qb87gjwd.js → repository-cache-qb87gjwd.js} +0 -0
- /package/dist/chunks/{agent-qfa1cgps.js → repository-cache-qfa1cgps.js} +0 -0
- /package/dist/chunks/{agent-qg3g05ea.js → repository-cache-qg3g05ea.js} +0 -0
- /package/dist/chunks/{agent-qrg20bc0.js → repository-cache-qrg20bc0.js} +0 -0
- /package/dist/chunks/{agent-rcb2kzg1.js → repository-cache-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{agent-sdp7kfr6.js → repository-cache-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{agent-ssg3fenm.js → repository-cache-ssg3fenm.js} +0 -0
- /package/dist/chunks/{agent-ve7vex1e.js → repository-cache-ve7vex1e.js} +0 -0
- /package/dist/chunks/{agent-w803qqfp.js → repository-cache-w803qqfp.js} +0 -0
- /package/dist/chunks/{agent-wc3fc9cn.js → repository-cache-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{agent-wer8tq1h.js → repository-cache-wer8tq1h.js} +0 -0
- /package/dist/chunks/{agent-wjj7prxr.js → repository-cache-wjj7prxr.js} +0 -0
- /package/dist/chunks/{agent-wtztk69x.js → repository-cache-wtztk69x.js} +0 -0
- /package/dist/chunks/{agent-x0ckcb58.js → repository-cache-x0ckcb58.js} +0 -0
- /package/dist/chunks/{agent-x61499pn.js → repository-cache-x61499pn.js} +0 -0
- /package/dist/chunks/{agent-y44na4kk.js → repository-cache-y44na4kk.js} +0 -0
- /package/dist/chunks/{agent-y8f7s663.js → repository-cache-y8f7s663.js} +0 -0
- /package/dist/chunks/{agent-ygaqb7jw.js → repository-cache-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{agent-ym463w8f.js → repository-cache-ym463w8f.js} +0 -0
- /package/dist/chunks/{agent-z5v4ffb3.js → repository-cache-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{agent-z9919s4g.js → repository-cache-z9919s4g.js} +0 -0
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-cache-y71avatq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
8
|
-
import {
|
|
9
|
-
Event18,
|
|
10
|
-
Service77,
|
|
11
|
-
node80
|
|
12
|
-
} from "./agent-9656bada.js";
|
|
5
|
+
Service84,
|
|
6
|
+
node88
|
|
7
|
+
} from "./repository-cache-h4a8c9dz.js";
|
|
13
8
|
import {
|
|
9
|
+
Event19,
|
|
14
10
|
Service79,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
11
|
+
node83
|
|
12
|
+
} from "./repository-cache-0h584zcj.js";
|
|
17
13
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
14
|
+
Service81,
|
|
15
|
+
node85
|
|
16
|
+
} from "./repository-cache-zzt06fmm.js";
|
|
21
17
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
Service64,
|
|
19
|
+
node67
|
|
20
|
+
} from "./repository-cache-9ydfqn9m.js";
|
|
21
|
+
import {
|
|
22
|
+
ID16,
|
|
23
|
+
Service80,
|
|
24
|
+
node84
|
|
25
|
+
} from "./repository-cache-zss4em3h.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./repository-cache-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service78,
|
|
34
|
+
node82
|
|
35
|
+
} from "./repository-cache-d591ppm4.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError4,
|
|
45
|
+
Options: () => Options3,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service35,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured3,
|
|
56
|
+
layer: () => layer14,
|
|
57
|
+
node: () => node38
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,21 +103,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service35 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Options3 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
110
110
|
name: Schema.String,
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var
|
|
115
|
-
const location = yield*
|
|
116
|
-
const environment = yield*
|
|
117
|
-
const bus = yield*
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
114
|
+
var layer14 = (options) => Layer.effect(Service35, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service81;
|
|
116
|
+
const environment = yield* Service64;
|
|
117
|
+
const bus = yield* Service84;
|
|
118
|
+
const forms = yield* Service80;
|
|
119
|
+
const integration = yield* Service78;
|
|
120
|
+
const credentials = yield* Service79;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -129,7 +129,7 @@ var layer18 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
129
129
|
return;
|
|
130
130
|
const remote = entry.config;
|
|
131
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
132
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID14.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer18 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service79, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer18 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError4({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service79, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID16.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer18 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service64, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -394,7 +394,7 @@ var layer18 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer18 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service35.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -530,14 +530,14 @@ function mergeCatalogs(catalogs) {
|
|
|
530
530
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function configured3(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
536
|
-
layer:
|
|
537
|
-
deps: [
|
|
535
|
+
service: Service35,
|
|
536
|
+
layer: layer14(options),
|
|
537
|
+
deps: [node85, node67, node88, node84, node82, node83]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node38 = configured3();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError4, ToolCallError2, Service35, Options3, layer14, configured3, node38, exports_mcp4 };
|
|
@@ -2,20 +2,20 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./repository-cache-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service64,
|
|
8
|
+
node67
|
|
9
|
+
} from "./repository-cache-9ydfqn9m.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Content3
|
|
12
|
+
} from "./repository-cache-krf4tsjk.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-cache-3smtnn6g.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/read-filesystem.ts
|
|
21
21
|
var exports_read_filesystem = {};
|
|
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
|
|
|
33
33
|
PageInput: () => PageInput2,
|
|
34
34
|
PathKindError: () => PathKindError2,
|
|
35
35
|
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service13,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node15,
|
|
39
39
|
read: () => read2
|
|
40
40
|
});
|
|
41
41
|
import path from "path";
|
|
@@ -89,7 +89,7 @@ var PageInput2 = Schema.Struct({
|
|
|
89
89
|
});
|
|
90
90
|
var FileContent2 = Schema.Struct({
|
|
91
91
|
type: Schema.Literal("file"),
|
|
92
|
-
...
|
|
92
|
+
...Content3.fields
|
|
93
93
|
}).annotate({ identifier: "ReadTool.FileContent" });
|
|
94
94
|
|
|
95
95
|
class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
@@ -114,7 +114,7 @@ class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service13 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
118
118
|
}
|
|
119
119
|
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
120
120
|
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
@@ -330,13 +330,13 @@ var nthNewline = (bytes, count) => {
|
|
|
330
330
|
return index + 1;
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
var layer = Layer.effect(
|
|
334
|
-
const environment = yield*
|
|
335
|
-
return
|
|
333
|
+
var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
334
|
+
const environment = yield* Service64;
|
|
335
|
+
return Service13.of({
|
|
336
336
|
list: environment.files.list,
|
|
337
337
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
338
338
|
});
|
|
339
339
|
}));
|
|
340
|
-
var
|
|
340
|
+
var node15 = makeLocationNode({ service: Service13, layer, deps: [node67] });
|
|
341
341
|
|
|
342
|
-
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2,
|
|
342
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry2, ListPage2, Service13, read2, node15, exports_read_filesystem };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./repository-cache-n2wb2mch.js";
|
|
4
4
|
import {
|
|
5
5
|
iife2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-1kg9ymc8.js";
|
|
7
7
|
import {
|
|
8
8
|
configuredSettings2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-cache-jecp24jg.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/provider/cloudflare-workers-ai.ts
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
14
14
|
import { Form } from "@opencode/schema/form";
|
|
15
|
-
var providerID =
|
|
15
|
+
var providerID = ID13.make("cloudflare-workers-ai");
|
|
16
16
|
var CloudflareWorkersAIPlugin2 = define({
|
|
17
17
|
id: "opencode.provider.cloudflare.workers.ai",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
@@ -3,23 +3,23 @@ import {
|
|
|
3
3
|
removed2,
|
|
4
4
|
make20,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-cache-rhjbct0v.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize2,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-cache-3fc6dm20.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
20
|
-
make: () =>
|
|
21
|
-
render: () =>
|
|
22
|
-
update: () =>
|
|
17
|
+
var exports_instructions3 = {};
|
|
18
|
+
__export(exports_instructions3, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions3,
|
|
20
|
+
make: () => make15,
|
|
21
|
+
render: () => render3,
|
|
22
|
+
update: () => update3
|
|
23
23
|
});
|
|
24
24
|
import { searchSignature, toolExpression } from "@opencode/codemode";
|
|
25
25
|
import { Effect, Schema } from "effect";
|
|
@@ -32,7 +32,7 @@ ${hasMoreTools ? `The catalog is partial. Inside \`execute\`, use \`search(...)\
|
|
|
32
32
|
- ${searchSignature}` : "The catalog is complete. Do not guess tool names."}
|
|
33
33
|
|
|
34
34
|
## Available tools`;
|
|
35
|
-
function
|
|
35
|
+
function render3(catalog) {
|
|
36
36
|
if (catalog.total === 0)
|
|
37
37
|
return "No Code Mode tools are currently available. Later Code Mode catalog updates may add or remove tools. Do not call `execute` unless there is at least one available Code Mode tool.";
|
|
38
38
|
const tools = catalog.namespaces.flatMap((namespace) => {
|
|
@@ -43,10 +43,10 @@ function render2(catalog) {
|
|
|
43
43
|
${tools.join(`
|
|
44
44
|
`)}`;
|
|
45
45
|
}
|
|
46
|
-
function
|
|
46
|
+
function update3(previous, current) {
|
|
47
47
|
const replacement = `The Code Mode tool catalog has changed. This catalog supersedes the previous Code Mode tool catalog.
|
|
48
48
|
|
|
49
|
-
${
|
|
49
|
+
${render3(current)}`;
|
|
50
50
|
if (current.total === 0)
|
|
51
51
|
return replacement;
|
|
52
52
|
const previousComplete = previous.shown === previous.total;
|
|
@@ -111,18 +111,18 @@ ${render2(current)}`;
|
|
|
111
111
|
}
|
|
112
112
|
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make15 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize2(inventory);
|
|
116
116
|
return make20({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
120
120
|
render: {
|
|
121
|
-
initial:
|
|
122
|
-
changed:
|
|
121
|
+
initial: render3,
|
|
122
|
+
changed: update3,
|
|
123
123
|
removed: () => "Code Mode tools are no longer available. Do not use any previously listed Code Mode tools."
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { render3, update3, make15, exports_instructions3 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service75,
|
|
3
|
+
node79
|
|
4
|
+
} from "./repository-cache-ve7zbnhg.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionMessage2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./repository-cache-gftt206x.js";
|
|
8
8
|
import {
|
|
9
9
|
SessionSchema2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./repository-cache-axe3mf62.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/job.ts
|
|
16
16
|
var exports_job = {};
|
|
17
17
|
__export(exports_job, {
|
|
18
18
|
Job: () => exports_job,
|
|
19
|
-
Service: () =>
|
|
20
|
-
make: () =>
|
|
21
|
-
node: () =>
|
|
19
|
+
Service: () => Service74,
|
|
20
|
+
make: () => make21,
|
|
21
|
+
node: () => node78
|
|
22
22
|
});
|
|
23
23
|
import { Array, Cause, Clock, Context, Deferred, Effect, Exit, Layer, Schema, Scope, SynchronizedRef } from "effect";
|
|
24
24
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -48,7 +48,7 @@ var decodeBackground = Schema.decodeUnknownResult(Background);
|
|
|
48
48
|
var backgroundPrefix = "job.background/";
|
|
49
49
|
var COMPLETED_LIMIT = 25;
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service74 extends Context.Service()("@opencode/Job") {
|
|
52
52
|
}
|
|
53
53
|
function snapshot(job) {
|
|
54
54
|
return {
|
|
@@ -83,8 +83,8 @@ function decrementSession(input, sessionID) {
|
|
|
83
83
|
next.set(sessionID, count - 1);
|
|
84
84
|
return next;
|
|
85
85
|
}
|
|
86
|
-
var
|
|
87
|
-
const kv = yield*
|
|
86
|
+
var make21 = Effect.gen(function* () {
|
|
87
|
+
const kv = yield* Service75;
|
|
88
88
|
const state = {
|
|
89
89
|
jobs: yield* SynchronizedRef.make(new Map),
|
|
90
90
|
scope: yield* Scope.Scope
|
|
@@ -342,7 +342,7 @@ var make19 = Effect.gen(function* () {
|
|
|
342
342
|
next.delete(entry[0]);
|
|
343
343
|
return next;
|
|
344
344
|
})));
|
|
345
|
-
return
|
|
345
|
+
return Service74.of({
|
|
346
346
|
get,
|
|
347
347
|
start,
|
|
348
348
|
wait,
|
|
@@ -354,7 +354,7 @@ var make19 = Effect.gen(function* () {
|
|
|
354
354
|
completeBackground
|
|
355
355
|
});
|
|
356
356
|
});
|
|
357
|
-
var layer = Layer.effect(
|
|
358
|
-
var
|
|
357
|
+
var layer = Layer.effect(Service74, make21);
|
|
358
|
+
var node78 = makeGlobalNode({ service: Service74, layer, deps: [node79] });
|
|
359
359
|
|
|
360
|
-
export {
|
|
360
|
+
export { Service74, make21, node78, exports_job };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-cache-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./repository-cache-y71avatq.js";
|
|
8
8
|
import {
|
|
9
9
|
MAX_TOTAL_PATCH_BYTES2,
|
|
10
10
|
emptyPatch2,
|
|
11
11
|
chunksByFile2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-cache-tazgh4e4.js";
|
|
13
13
|
import {
|
|
14
14
|
gitExecutable2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-cache-ef5x83kb.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/git.ts
|
|
21
21
|
var exports_git3 = {};
|
|
@@ -23,11 +23,11 @@ __export(exports_git3, {
|
|
|
23
23
|
Git: () => exports_git3,
|
|
24
24
|
OperationError: () => OperationError3,
|
|
25
25
|
Repository: () => Repository2,
|
|
26
|
-
Service: () =>
|
|
26
|
+
Service: () => Service83,
|
|
27
27
|
TreeID: () => TreeID2,
|
|
28
28
|
Worktree: () => Worktree2,
|
|
29
29
|
WorktreeError: () => WorktreeError2,
|
|
30
|
-
node: () =>
|
|
30
|
+
node: () => node87
|
|
31
31
|
});
|
|
32
32
|
import path from "path";
|
|
33
33
|
import { Cause, Context, Effect, Exit, Layer, Option, Schedule, Schema } from "effect";
|
|
@@ -100,9 +100,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
100
100
|
}) {
|
|
101
101
|
}
|
|
102
102
|
|
|
103
|
-
class
|
|
103
|
+
class Service83 extends Context.Service()("@opencode/Git") {
|
|
104
104
|
}
|
|
105
|
-
var layer = Layer.effect(
|
|
105
|
+
var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
106
106
|
const fs = yield* FSUtil.Service;
|
|
107
107
|
const proc = yield* AppProcess.Service;
|
|
108
108
|
const locks = makeUnsafe2();
|
|
@@ -717,7 +717,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
717
717
|
kind: index === 0 ? "main" : "linked"
|
|
718
718
|
}));
|
|
719
719
|
});
|
|
720
|
-
return
|
|
720
|
+
return Service83.of({
|
|
721
721
|
repo: { discover, clone, create },
|
|
722
722
|
remote: { get: remote },
|
|
723
723
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -734,7 +734,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
734
734
|
objects: { pack: packObjects }
|
|
735
735
|
});
|
|
736
736
|
}));
|
|
737
|
-
var
|
|
737
|
+
var node87 = makeGlobalNode({ service: Service83, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
738
738
|
function run(cwd, proc, args) {
|
|
739
739
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
740
740
|
}
|
|
@@ -801,4 +801,4 @@ function resolvePath(cwd, value) {
|
|
|
801
801
|
return path.resolve(cwd, normalized);
|
|
802
802
|
}
|
|
803
803
|
|
|
804
|
-
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2,
|
|
804
|
+
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service83, node87, exports_git3 };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
aisdk2,
|
|
4
4
|
mergeOverlay2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./repository-cache-n2wb2mch.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
7
|
+
ID6,
|
|
8
8
|
VariantID2,
|
|
9
9
|
Family2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Info15
|
|
11
|
+
} from "./repository-cache-abs0cgcn.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-cache-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/github-copilot/models.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CopilotModels: () =>
|
|
20
|
-
derive: () =>
|
|
21
|
-
get: () =>
|
|
22
|
-
load: () =>
|
|
17
|
+
var exports_models = {};
|
|
18
|
+
__export(exports_models, {
|
|
19
|
+
CopilotModels: () => exports_models,
|
|
20
|
+
derive: () => derive2,
|
|
21
|
+
get: () => get2,
|
|
22
|
+
load: () => load2
|
|
23
23
|
});
|
|
24
24
|
import { Money } from "@opencode/schema/money";
|
|
25
25
|
import { Option, Schema } from "effect";
|
|
@@ -68,10 +68,10 @@ var RemoteModel = Schema.Struct({
|
|
|
68
68
|
var Response = Schema.Struct({ data: Schema.Array(Schema.Unknown) });
|
|
69
69
|
var decodeResponse = Schema.decodeUnknownSync(Response);
|
|
70
70
|
var decodeModel = Schema.decodeUnknownOption(RemoteModel);
|
|
71
|
-
async function
|
|
72
|
-
return
|
|
71
|
+
async function get2(baseURL, headers, existing) {
|
|
72
|
+
return derive2(baseURL, await load2(baseURL, headers), existing);
|
|
73
73
|
}
|
|
74
|
-
async function
|
|
74
|
+
async function load2(baseURL, headers) {
|
|
75
75
|
const response = await fetch(`${baseURL}/models`, {
|
|
76
76
|
headers,
|
|
77
77
|
signal: AbortSignal.timeout(5000)
|
|
@@ -83,7 +83,7 @@ async function load3(baseURL, headers) {
|
|
|
83
83
|
return model && usable(model) ? [[model.id, model]] : [];
|
|
84
84
|
}));
|
|
85
85
|
}
|
|
86
|
-
function
|
|
86
|
+
function derive2(baseURL, remote, existing) {
|
|
87
87
|
const result = new Map(existing.map((model) => [model.id, model]));
|
|
88
88
|
for (const [id, model] of result) {
|
|
89
89
|
const current = remote.get(model.modelID);
|
|
@@ -94,7 +94,7 @@ function derive3(baseURL, remote, existing) {
|
|
|
94
94
|
result.set(id, build(id, current, baseURL, model));
|
|
95
95
|
}
|
|
96
96
|
for (const [id, model] of remote) {
|
|
97
|
-
const key =
|
|
97
|
+
const key = ID6.make(id);
|
|
98
98
|
if (result.has(key))
|
|
99
99
|
continue;
|
|
100
100
|
result.set(key, build(key, model, baseURL));
|
|
@@ -118,11 +118,11 @@ function build(id, remote, baseURL, previous) {
|
|
|
118
118
|
const usdPerMillion = prices && prices.batch_size > 0 ? 1e4 / prices.batch_size : 0;
|
|
119
119
|
const version = remote.version.startsWith(`${remote.id}-`) ? remote.version.slice(remote.id.length + 1) : remote.version;
|
|
120
120
|
const released = previous?.time.released || Date.parse(version);
|
|
121
|
-
return
|
|
122
|
-
...
|
|
121
|
+
return Info15.make({
|
|
122
|
+
...Info15.default(ID13.githubCopilot, id),
|
|
123
123
|
id,
|
|
124
|
-
modelID:
|
|
125
|
-
providerID:
|
|
124
|
+
modelID: ID6.make(remote.id),
|
|
125
|
+
providerID: ID13.githubCopilot,
|
|
126
126
|
family: previous?.family ?? Family2.make(remote.capabilities.family),
|
|
127
127
|
name: previous?.name ?? remote.name,
|
|
128
128
|
package: messages ? "@opencode/ai/providers/anthropic" : aisdk2("@ai-sdk/github-copilot"),
|
|
@@ -197,4 +197,4 @@ function variants(remote, messages) {
|
|
|
197
197
|
];
|
|
198
198
|
}
|
|
199
199
|
|
|
200
|
-
export {
|
|
200
|
+
export { get2, load2, derive2, exports_models };
|