@opencode/core 0.0.0-dev-21748 → 0.0.0-dev-21761
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 +92 -91
- package/dist/aisdk.js +98 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/aisdk-00ve6mdn.js +18 -0
- package/dist/chunks/{file-retention-wbs5jnf2.js → aisdk-00xj84pr.js} +7 -7
- package/dist/chunks/{file-retention-s9zqy389.js → aisdk-01xkvnr3.js} +8 -8
- package/dist/chunks/{file-retention-034tev2y.js → aisdk-034tev2y.js} +2 -2
- package/dist/chunks/{file-retention-4rnx58kd.js → aisdk-049c72zv.js} +5 -5
- package/dist/chunks/{file-retention-z781txa6.js → aisdk-04sye11p.js} +10 -10
- package/dist/chunks/{file-retention-8jv5e0ry.js → aisdk-05y9e0hf.js} +2 -2
- package/dist/chunks/{file-retention-kd261f9v.js → aisdk-0a71s41t.js} +11 -11
- package/dist/chunks/{file-retention-wr3re1en.js → aisdk-0h8y3ex8.js} +4 -4
- package/dist/chunks/{file-retention-y31s63n5.js → aisdk-0p25w9ph.js} +6 -6
- package/dist/chunks/{file-retention-9gkymt4j.js → aisdk-0p88zpcm.js} +4 -4
- package/dist/chunks/{file-retention-58j32a3p.js → aisdk-0teydma5.js} +12 -12
- package/dist/chunks/{file-retention-90h4gxms.js → aisdk-12nb02t2.js} +18 -18
- package/dist/chunks/{file-retention-1ep2p91f.js → aisdk-1ep2p91f.js} +2 -2
- package/dist/chunks/{file-retention-hvtqj62d.js → aisdk-1ja24dq6.js} +22 -22
- package/dist/chunks/{file-retention-x6v8tecr.js → aisdk-1qcedexj.js} +83 -83
- package/dist/chunks/{file-retention-1x2knyw4.js → aisdk-1x2knyw4.js} +1 -1
- package/dist/chunks/{file-retention-rmd2jjvw.js → aisdk-220mdhzb.js} +4 -4
- package/dist/chunks/{file-retention-zfcxpxqg.js → aisdk-26j25cha.js} +56 -56
- package/dist/chunks/{file-retention-haz7d3nj.js → aisdk-29hrpqng.js} +12 -12
- package/dist/chunks/{file-retention-bg38yaka.js → aisdk-2wdrvq6a.js} +45 -45
- package/dist/chunks/{file-retention-t6qzkm7d.js → aisdk-2y7eyeza.js} +34 -34
- package/dist/chunks/{file-retention-2z1j29yd.js → aisdk-2z1j29yd.js} +1 -1
- package/dist/chunks/{file-retention-vq1ppevj.js → aisdk-3416qbwy.js} +8 -8
- package/dist/chunks/{file-retention-rw5cqjms.js → aisdk-35fwsjrv.js} +30 -30
- package/dist/chunks/{file-retention-0gka690g.js → aisdk-36qx82yz.js} +15 -5
- package/dist/chunks/{file-retention-zjrmgn7z.js → aisdk-37geb7z3.js} +17 -17
- package/dist/chunks/{file-retention-remxw044.js → aisdk-38shjhjm.js} +1 -1
- package/dist/chunks/{file-retention-2mrk5sk4.js → aisdk-3d48af3m.js} +30 -30
- package/dist/chunks/{file-retention-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-retention-3nnrz6f6.js → aisdk-3nnrz6f6.js} +1 -1
- package/dist/chunks/{file-retention-w22yp63b.js → aisdk-3p1jq0np.js} +9 -9
- package/dist/chunks/{file-retention-h1y7dhnp.js → aisdk-3x08tjx8.js} +9 -9
- package/dist/chunks/{file-retention-v3t7qrd6.js → aisdk-3x857x5x.js} +177 -177
- package/dist/chunks/{file-retention-x43as62j.js → aisdk-3zycr9qn.js} +20 -20
- package/dist/chunks/{file-retention-10jjfj8e.js → aisdk-4bnk94p6.js} +35 -35
- package/dist/chunks/{file-retention-nf4f45p9.js → aisdk-4cq5g4wa.js} +40 -40
- package/dist/chunks/{file-retention-40x2gp1a.js → aisdk-4e2nnt3c.js} +17 -17
- package/dist/chunks/{file-retention-yszz6e3t.js → aisdk-4fwdgzfb.js} +23 -23
- package/dist/chunks/{file-retention-wz1jcdgb.js → aisdk-4gyktcna.js} +19 -19
- package/dist/chunks/{file-retention-4v008n1t.js → aisdk-4v008n1t.js} +1 -1
- package/dist/chunks/{file-retention-4xvmh7wp.js → aisdk-4xvmh7wp.js} +3 -3
- package/dist/chunks/{file-retention-2fbg880x.js → aisdk-55ry4qzj.js} +50 -50
- package/dist/chunks/{file-retention-pm973k6d.js → aisdk-587x5jpz.js} +4 -4
- package/dist/chunks/{file-retention-j21s6pys.js → aisdk-5avxzg1d.js} +12 -12
- package/dist/chunks/{file-retention-81xmdkgf.js → aisdk-5cs07f0d.js} +9 -9
- package/dist/chunks/{file-retention-jff6x0jb.js → aisdk-5d8bg0wt.js} +4 -4
- package/dist/chunks/{file-retention-40za9wsf.js → aisdk-5enarcya.js} +6 -6
- package/dist/chunks/{file-retention-pp47ehpg.js → aisdk-5kg1rr73.js} +4 -4
- package/dist/chunks/{file-retention-5m9w47nd.js → aisdk-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-retention-yydqqga9.js → aisdk-5w1mdqt7.js} +4 -4
- package/dist/chunks/{file-retention-rqbwb7q3.js → aisdk-5zr4pxbw.js} +18 -18
- package/dist/chunks/{file-retention-nrb1vmgh.js → aisdk-65xt1b15.js} +25 -25
- package/dist/chunks/{file-retention-51g9mfss.js → aisdk-6673z0jd.js} +12 -12
- package/dist/chunks/{file-retention-6esdw8yj.js → aisdk-6esdw8yj.js} +1 -1
- package/dist/chunks/{file-retention-v2bxwf46.js → aisdk-6gveg3af.js} +36 -36
- package/dist/chunks/{file-retention-be4vgese.js → aisdk-6gvhtv45.js} +5 -5
- package/dist/chunks/{file-retention-xcbr4qhr.js → aisdk-6k4nvbs0.js} +28 -28
- package/dist/chunks/{file-retention-2y5s3d4p.js → aisdk-6nw7xe5v.js} +15 -15
- package/dist/chunks/{file-retention-6pjqjmy2.js → aisdk-6pjqjmy2.js} +1 -1
- package/dist/chunks/{file-retention-bn42ez4f.js → aisdk-6v1bxwq1.js} +15 -15
- package/dist/chunks/{file-retention-x3xjyz42.js → aisdk-77j7mfrn.js} +15 -15
- package/dist/chunks/{file-retention-a8qqmhn7.js → aisdk-78qdxz5c.js} +10 -10
- package/dist/chunks/{file-retention-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-retention-xv753k3w.js → aisdk-7gv8tktv.js} +16 -16
- package/dist/chunks/{file-retention-vw5yqba1.js → aisdk-7tnvyfx2.js} +21 -21
- package/dist/chunks/{file-retention-7w2ypzdf.js → aisdk-7w2ypzdf.js} +1 -1
- package/dist/chunks/{file-retention-8y08emeq.js → aisdk-7wxtqqfa.js} +25 -25
- package/dist/chunks/{file-retention-b50rsrab.js → aisdk-7xg2jm5b.js} +5 -5
- package/dist/chunks/{file-retention-qcv3trs9.js → aisdk-7z013g1v.js} +7 -7
- package/dist/chunks/{file-retention-9e6thw54.js → aisdk-80sbmjz5.js} +19 -19
- package/dist/chunks/{file-retention-v70qecbj.js → aisdk-87j4n1tv.js} +17 -17
- package/dist/chunks/{file-retention-a6zs52qt.js → aisdk-88gdvb0f.js} +12 -12
- package/dist/chunks/{file-retention-pc1v25hk.js → aisdk-8bc2ahr8.js} +3 -3
- package/dist/chunks/{file-retention-qjgzc4b4.js → aisdk-8jztxfpf.js} +4 -4
- package/dist/chunks/{file-retention-dhka8w8f.js → aisdk-8kyn5d4c.js} +5 -5
- package/dist/chunks/{file-retention-f5bp1zt3.js → aisdk-8mb6a7e8.js} +23 -23
- package/dist/chunks/{file-retention-52m7r17y.js → aisdk-8pme5eag.js} +11 -11
- package/dist/chunks/{file-retention-8wtp7s3z.js → aisdk-8wtp7s3z.js} +1 -1
- package/dist/chunks/{file-retention-6bqt0z5z.js → aisdk-8wxdtvx4.js} +14 -14
- package/dist/chunks/{file-retention-1thmyanr.js → aisdk-8x10f120.js} +25 -25
- package/dist/chunks/{file-retention-r2jew814.js → aisdk-8y31xnqm.js} +5 -5
- package/dist/chunks/{file-retention-91rj84md.js → aisdk-91rj84md.js} +1 -1
- package/dist/chunks/{file-retention-998yhzzq.js → aisdk-998yhzzq.js} +3 -3
- package/dist/chunks/{file-retention-jjyvd6es.js → aisdk-9a91xz6j.js} +32 -32
- package/dist/chunks/{file-retention-qv2ex6zx.js → aisdk-9c04767k.js} +12 -12
- package/dist/chunks/{file-retention-3xv5yes5.js → aisdk-9cbnrx2n.js} +6 -6
- package/dist/chunks/aisdk-9dkfkrqe.js +257 -0
- package/dist/chunks/{file-retention-wzwsv8q3.js → aisdk-9grvd76r.js} +8 -8
- package/dist/chunks/{file-retention-jy10t676.js → aisdk-9zz0xvdb.js} +21 -21
- package/dist/chunks/{file-retention-tth2ngyv.js → aisdk-a4c7tjfz.js} +57 -57
- package/dist/chunks/{file-retention-s774txbb.js → aisdk-a60wbeh3.js} +28 -28
- package/dist/chunks/{file-retention-etc4v71r.js → aisdk-a9eckmg9.js} +11 -11
- package/dist/chunks/{file-retention-xs35f6gm.js → aisdk-abr9m9q2.js} +15 -15
- package/dist/chunks/aisdk-ag1sebv8.js +111 -0
- package/dist/chunks/{file-retention-4yyqx4s3.js → aisdk-ajz4j5wg.js} +1 -1
- package/dist/chunks/{file-retention-3mgb105e.js → aisdk-apd5jra7.js} +9 -9
- package/dist/chunks/{file-retention-mtpeagzc.js → aisdk-arz7hw7x.js} +3 -3
- package/dist/chunks/{file-retention-10s4rp80.js → aisdk-ax2hm835.js} +46 -46
- package/dist/chunks/{file-retention-yh5vc5ym.js → aisdk-axmgkvat.js} +16 -16
- package/dist/chunks/{file-retention-hmhshprh.js → aisdk-aybq7ad1.js} +8 -8
- package/dist/chunks/{file-retention-ayjs7tqn.js → aisdk-ayjs7tqn.js} +2 -2
- package/dist/chunks/{file-retention-b0mv4wxm.js → aisdk-b0mv4wxm.js} +2 -2
- package/dist/chunks/{file-retention-nm20qxyr.js → aisdk-b0v3gy1q.js} +18 -18
- package/dist/chunks/{file-retention-5nnwax6m.js → aisdk-b6vsg801.js} +5 -5
- package/dist/chunks/{file-retention-tthyd1ww.js → aisdk-b9zkcqt6.js} +10 -10
- package/dist/chunks/{file-retention-j4rz9p31.js → aisdk-bkc2tac9.js} +11 -11
- package/dist/chunks/{file-retention-wkcmpner.js → aisdk-br70t734.js} +6 -6
- package/dist/chunks/{file-retention-bstexjd6.js → aisdk-bstexjd6.js} +1 -1
- package/dist/chunks/{file-retention-tpdxm5tk.js → aisdk-bsym7w2k.js} +6 -6
- package/dist/chunks/{file-retention-k5qr9t5z.js → aisdk-c3f7s1z4.js} +5 -5
- package/dist/chunks/{file-retention-06443jab.js → aisdk-c84xww2z.js} +3 -3
- package/dist/chunks/{file-retention-zvp9t4zy.js → aisdk-cd1mybd7.js} +33 -33
- package/dist/chunks/{file-retention-7b6m6kjp.js → aisdk-ckpcc1p6.js} +21 -21
- package/dist/chunks/{file-retention-b4ay2ffd.js → aisdk-cq35sb18.js} +40 -40
- package/dist/chunks/{file-retention-895yj7sv.js → aisdk-csbefy86.js} +41 -41
- package/dist/chunks/{file-retention-6phpkkwx.js → aisdk-d0a8twh9.js} +12 -12
- package/dist/chunks/{file-retention-d4v9tmah.js → aisdk-d4v9tmah.js} +2 -2
- package/dist/chunks/{file-retention-8d2bz6m6.js → aisdk-ddvn7d3w.js} +8 -8
- package/dist/chunks/{file-retention-wvskh021.js → aisdk-dg7jpt9k.js} +18 -18
- package/dist/chunks/{file-retention-h401316e.js → aisdk-dgyr5e3n.js} +54 -47
- package/dist/chunks/{file-retention-jj9caqwr.js → aisdk-djwtgbda.js} +8 -8
- package/dist/chunks/{file-retention-vq7nwj9a.js → aisdk-dpaznkka.js} +29 -29
- package/dist/chunks/{file-retention-78etnvtx.js → aisdk-dzz03wkf.js} +9 -9
- package/dist/chunks/{file-retention-y2tacs4v.js → aisdk-e5dqjz6v.js} +6 -6
- package/dist/chunks/{file-retention-0txt22rj.js → aisdk-e7f9c5nc.js} +5 -5
- package/dist/chunks/{file-retention-e834z07m.js → aisdk-e834z07m.js} +1 -1
- package/dist/chunks/{file-retention-wyzcntk3.js → aisdk-ebzzn2wv.js} +43 -43
- package/dist/chunks/{file-retention-wqscedq8.js → aisdk-eg2ky145.js} +4 -4
- package/dist/chunks/{file-retention-ry63fkbp.js → aisdk-eg4538tj.js} +6 -6
- package/dist/chunks/{file-retention-x3t9xer4.js → aisdk-eq3fc1qc.js} +5 -5
- package/dist/chunks/{file-retention-c03k9zs8.js → aisdk-er6r66k3.js} +28 -28
- package/dist/chunks/{file-retention-wetwfxab.js → aisdk-ewvn0npq.js} +17 -17
- package/dist/chunks/{file-retention-xvs21e7s.js → aisdk-f2h28766.js} +11 -11
- package/dist/chunks/{file-retention-ny5fjnrw.js → aisdk-f3esefgg.js} +19 -19
- package/dist/chunks/{file-retention-sgj3v8j3.js → aisdk-f6nndrrh.js} +24 -24
- package/dist/chunks/aisdk-fffr9x0a.js +26 -0
- package/dist/chunks/{file-retention-fffv3p7h.js → aisdk-fffv3p7h.js} +1 -1
- package/dist/chunks/{file-retention-rbhan2a8.js → aisdk-fs61zt0f.js} +40 -40
- package/dist/chunks/{file-retention-spxhva7x.js → aisdk-fsgf2sts.js} +13 -13
- package/dist/chunks/{file-retention-an0ed0qm.js → aisdk-fvh2vv9m.js} +24 -24
- package/dist/chunks/{file-retention-dx9hwm58.js → aisdk-g0ca4n64.js} +15 -15
- package/dist/chunks/{file-retention-g5h9c0rr.js → aisdk-g5h9c0rr.js} +2 -2
- package/dist/chunks/{file-retention-vrcsa8qx.js → aisdk-gcjdgkn2.js} +9 -9
- package/dist/chunks/{file-retention-fvgj1da1.js → aisdk-gfk8shh2.js} +7 -7
- package/dist/chunks/{file-retention-fyg8cwdt.js → aisdk-gggmd2rh.js} +14 -14
- package/dist/chunks/{file-retention-qx10fapg.js → aisdk-grnky8r7.js} +21 -21
- package/dist/chunks/{file-retention-sbexhbnh.js → aisdk-gy7s430a.js} +11 -11
- package/dist/chunks/{file-retention-96zt377w.js → aisdk-h6vh40gh.js} +31 -31
- package/dist/chunks/{file-retention-1b000e53.js → aisdk-h7pdcx31.js} +49 -49
- package/dist/chunks/{file-retention-b69pzmrp.js → aisdk-h83fqc2v.js} +32 -32
- package/dist/chunks/{file-retention-nkr5r85d.js → aisdk-hhafapa0.js} +2 -2
- package/dist/chunks/{file-retention-hamx4eyd.js → aisdk-hpdmknzn.js} +13 -13
- package/dist/chunks/{file-retention-w1j6kydb.js → aisdk-hv6j6j2x.js} +14 -14
- package/dist/chunks/{file-retention-12vgd738.js → aisdk-hvssq0y7.js} +4 -4
- package/dist/chunks/{file-retention-j113cymg.js → aisdk-j113cymg.js} +1 -1
- package/dist/chunks/{file-retention-zpr39raf.js → aisdk-j2t5kkxj.js} +24 -24
- package/dist/chunks/{file-retention-a1kcf5d2.js → aisdk-j43965rx.js} +9 -9
- package/dist/chunks/{file-retention-5tdnk8gt.js → aisdk-j461w920.js} +32 -32
- package/dist/chunks/{file-retention-6zzg071e.js → aisdk-j61vbze9.js} +7 -7
- package/dist/chunks/{file-retention-jfp7edqe.js → aisdk-jawg49hk.js} +20 -20
- package/dist/chunks/{file-retention-pv64vp27.js → aisdk-jtpvmkzs.js} +11 -11
- package/dist/chunks/{file-retention-d2ckxhpm.js → aisdk-k3a9bzeg.js} +22 -22
- package/dist/chunks/{file-retention-qada39n4.js → aisdk-k63vy0cm.js} +3 -3
- package/dist/chunks/{file-retention-k814nvkf.js → aisdk-k814nvkf.js} +1 -1
- package/dist/chunks/{file-retention-ap543zt0.js → aisdk-kcp9cvk2.js} +28 -28
- package/dist/chunks/{file-retention-41ae5eq3.js → aisdk-kfwzpye5.js} +5 -5
- package/dist/chunks/{file-retention-0pv52n9j.js → aisdk-kgwvpfhe.js} +16 -16
- package/dist/chunks/{file-retention-dbvdvcnm.js → aisdk-kpx1d59m.js} +18 -18
- package/dist/chunks/{file-retention-cebdmmc8.js → aisdk-kwfd8efh.js} +10 -10
- package/dist/chunks/{file-retention-m1714858.js → aisdk-m1714858.js} +1 -1
- package/dist/chunks/{file-retention-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-retention-maspj1v3.js → aisdk-maspj1v3.js} +1 -1
- package/dist/chunks/{file-retention-5e27t7kq.js → aisdk-mb36f359.js} +36 -36
- package/dist/chunks/{file-retention-c3cfh5w6.js → aisdk-mmkbt6v3.js} +9 -9
- package/dist/chunks/{file-retention-0t1mekc8.js → aisdk-mqzq7ps5.js} +8 -8
- package/dist/chunks/{file-retention-c9t2ty9q.js → aisdk-mtkfycnh.js} +4 -4
- package/dist/chunks/{file-retention-n0p0277s.js → aisdk-n0p0277s.js} +1 -1
- package/dist/chunks/{file-retention-gnswcmy6.js → aisdk-n3y3wd5f.js} +4 -4
- package/dist/chunks/{file-retention-6ejhvxx1.js → aisdk-n8da7heg.js} +32 -32
- package/dist/chunks/{file-retention-nah043kf.js → aisdk-nah043kf.js} +1 -1
- package/dist/chunks/{file-retention-fy85b4j6.js → aisdk-nefstypy.js} +12 -12
- package/dist/chunks/{file-retention-qer95tax.js → aisdk-nnp54cts.js} +16 -16
- package/dist/chunks/{file-retention-p015t6z3.js → aisdk-p015t6z3.js} +2 -2
- package/dist/chunks/{file-retention-9wrzmk82.js → aisdk-p7pnaddp.js} +9 -9
- package/dist/chunks/{file-retention-g6hpx9wf.js → aisdk-pdfka3qf.js} +11 -11
- package/dist/chunks/{file-retention-d1fhw6xp.js → aisdk-pft6njjq.js} +21 -21
- package/dist/chunks/{file-retention-yyqm007w.js → aisdk-pgh89q3r.js} +9 -9
- package/dist/chunks/{file-retention-706d41vq.js → aisdk-pj44ejs4.js} +21 -21
- package/dist/chunks/{file-retention-pknna89w.js → aisdk-pknna89w.js} +1 -1
- package/dist/chunks/{file-retention-e45fk36t.js → aisdk-prd8gnhb.js} +4 -4
- package/dist/chunks/{file-retention-zjzg4f6c.js → aisdk-q1z4kk8n.js} +4 -4
- package/dist/chunks/{file-retention-m463fjkb.js → aisdk-q3drqv0m.js} +10 -10
- package/dist/chunks/{file-retention-yg7ytxzr.js → aisdk-q409csbg.js} +11 -11
- package/dist/chunks/{file-retention-nbkd2rx6.js → aisdk-q5ewbhp3.js} +12 -12
- package/dist/chunks/{file-retention-4944f0f3.js → aisdk-q7ke1em1.js} +3 -3
- package/dist/chunks/{file-retention-nk9n5r8p.js → aisdk-q9aq9fqv.js} +15 -15
- package/dist/chunks/{file-retention-n0wndcqz.js → aisdk-q9epxj2b.js} +37 -37
- package/dist/chunks/{file-retention-t5qy80th.js → aisdk-qacamjxb.js} +16 -16
- package/dist/chunks/{file-retention-7p5j3bg8.js → aisdk-qm80d3sz.js} +18 -18
- package/dist/chunks/{file-retention-y81yjmmg.js → aisdk-qsqxvd8d.js} +16 -16
- package/dist/chunks/{file-retention-v3vpydwx.js → aisdk-qx09r870.js} +20 -20
- package/dist/chunks/{file-retention-e7h3kv1s.js → aisdk-qyrdhqaa.js} +27 -27
- package/dist/chunks/{file-retention-aydsvzbb.js → aisdk-r0td1pez.js} +14 -14
- package/dist/chunks/{file-retention-r0yr0wbs.js → aisdk-r0yr0wbs.js} +1 -1
- package/dist/chunks/{file-retention-1mn7gzbb.js → aisdk-r892vp5m.js} +44 -44
- package/dist/chunks/{file-retention-rb9dy4dg.js → aisdk-rb9dy4dg.js} +1 -1
- package/dist/chunks/{file-retention-t9mb6c21.js → aisdk-rfd5kqhk.js} +4 -4
- package/dist/chunks/aisdk-rmezgp6m.js +517 -0
- package/dist/chunks/{file-retention-ar2j3j0f.js → aisdk-rrad2nt9.js} +4 -4
- package/dist/chunks/{file-retention-byrp127m.js → aisdk-rrfmzwpm.js} +4 -4
- package/dist/chunks/{file-retention-rt5dr6hb.js → aisdk-rt5dr6hb.js} +1 -1
- package/dist/chunks/{file-retention-7ax5pvs2.js → aisdk-rytxqrsr.js} +20 -20
- package/dist/chunks/{file-retention-jv443j8m.js → aisdk-s2p0a5nx.js} +14 -14
- package/dist/chunks/{file-retention-mh30raav.js → aisdk-s99p9jh6.js} +8 -6
- package/dist/chunks/aisdk-sa3fpqfw.js +46 -0
- package/dist/chunks/{file-retention-8q24scts.js → aisdk-sa8jxy57.js} +17 -17
- package/dist/chunks/{file-retention-kkgp9ksj.js → aisdk-sc3bsvgm.js} +32 -32
- package/dist/chunks/{file-retention-ncfxqt3s.js → aisdk-shn52zna.js} +10 -10
- package/dist/chunks/{file-retention-sqjzf8x2.js → aisdk-sqjzf8x2.js} +1 -1
- package/dist/chunks/{file-retention-j1jygztj.js → aisdk-srazx2b7.js} +30 -30
- package/dist/chunks/{file-retention-sdgwjry1.js → aisdk-ss04k2gg.js} +47 -47
- package/dist/chunks/{file-retention-bx2edf7r.js → aisdk-syjzf9mk.js} +19 -19
- package/dist/chunks/{file-retention-p4j299q5.js → aisdk-szkfmpq9.js} +17 -17
- package/dist/chunks/{file-retention-j22gxa80.js → aisdk-szxd9w50.js} +30 -30
- package/dist/chunks/{file-retention-nk9akxx5.js → aisdk-t60595ww.js} +2 -2
- package/dist/chunks/{file-retention-jz4cjtb2.js → aisdk-t9yxd4g7.js} +4 -4
- package/dist/chunks/{file-retention-tczq8hjw.js → aisdk-tczq8hjw.js} +1 -1
- package/dist/chunks/{file-retention-8h66aeq1.js → aisdk-tq0qt55e.js} +17 -17
- package/dist/chunks/{file-retention-kfd0jx8z.js → aisdk-tsgcpws0.js} +20 -20
- package/dist/chunks/{file-retention-tw8zr1ps.js → aisdk-tw8zr1ps.js} +1 -1
- package/dist/chunks/{file-retention-twv2r8f4.js → aisdk-twv2r8f4.js} +2 -2
- package/dist/chunks/{file-retention-bar9hexn.js → aisdk-tz9bjn7r.js} +6 -6
- package/dist/chunks/{file-retention-s8tktxtj.js → aisdk-v2e82ypn.js} +13 -13
- package/dist/chunks/{file-retention-v2r1d0zg.js → aisdk-v2r1d0zg.js} +1 -1
- package/dist/chunks/{file-retention-3xbbjsgy.js → aisdk-v2ywx7d9.js} +17 -17
- package/dist/chunks/{file-retention-qgqvdsez.js → aisdk-v9b1jn8p.js} +21 -21
- package/dist/chunks/{file-retention-0syxcydp.js → aisdk-v9esy932.js} +11 -11
- package/dist/chunks/{file-retention-p7vhpwh8.js → aisdk-v9ez2kgh.js} +5 -5
- package/dist/chunks/{file-retention-jbkw413w.js → aisdk-vbhy04yp.js} +8 -8
- package/dist/chunks/{file-retention-vd3b3yk9.js → aisdk-vd3b3yk9.js} +1 -1
- package/dist/chunks/{file-retention-jtgyhacv.js → aisdk-ve5z042r.js} +27 -27
- package/dist/chunks/{file-retention-veqvce7d.js → aisdk-veqvce7d.js} +1 -1
- package/dist/chunks/{file-retention-8v2hjwdb.js → aisdk-vf2v61ts.js} +28 -28
- package/dist/chunks/{file-retention-bbfkmt36.js → aisdk-vh0jeg5q.js} +22 -22
- package/dist/chunks/{file-retention-vmfhgzt5.js → aisdk-vmfhgzt5.js} +1 -1
- package/dist/chunks/{file-retention-dvgja063.js → aisdk-vspp8v6d.js} +6 -6
- package/dist/chunks/{file-retention-wj0whgje.js → aisdk-vzarcnq3.js} +16 -16
- package/dist/chunks/{file-retention-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-retention-etzytfjk.js → aisdk-w4c0j6zg.js} +24 -24
- package/dist/chunks/{file-retention-76cb1hcw.js → aisdk-w8qtt4th.js} +4 -4
- package/dist/chunks/{file-retention-wakvkjy4.js → aisdk-wakvkjy4.js} +1 -1
- package/dist/chunks/{file-retention-wd87259q.js → aisdk-wd87259q.js} +1 -1
- package/dist/chunks/{file-retention-gsgdtt07.js → aisdk-wezhzhbw.js} +15 -15
- package/dist/chunks/{file-retention-j4qs9z9f.js → aisdk-whhz53d6.js} +23 -23
- package/dist/chunks/{file-retention-ex2ghmgq.js → aisdk-wp4rg1a9.js} +5 -5
- package/dist/chunks/{file-retention-na0a39nw.js → aisdk-ws84jjae.js} +49 -49
- package/dist/chunks/{file-retention-4xj5yeb9.js → aisdk-x0v1qxj5.js} +15 -15
- package/dist/chunks/{file-retention-vb1h3fk1.js → aisdk-x4r9ezkk.js} +6 -6
- package/dist/chunks/{file-retention-pjw5exqh.js → aisdk-x7vk9p31.js} +11 -11
- package/dist/chunks/{file-retention-n2zgan0r.js → aisdk-x8n50tyc.js} +11 -11
- package/dist/chunks/{file-retention-c8666r4c.js → aisdk-xkympmbz.js} +6 -6
- package/dist/chunks/{file-retention-004rgtvd.js → aisdk-xrwhez4s.js} +7 -7
- package/dist/chunks/{file-retention-fjbza28h.js → aisdk-xvdmjtkf.js} +87 -87
- package/dist/chunks/{file-retention-8q4csfv6.js → aisdk-xwbr60jz.js} +8 -8
- package/dist/chunks/{file-retention-9aytyba7.js → aisdk-y1tjw70v.js} +8 -8
- package/dist/chunks/{file-retention-e5qrk7kc.js → aisdk-y89skamq.js} +35 -35
- package/dist/chunks/{file-retention-yb20nhc3.js → aisdk-yb20nhc3.js} +1 -1
- package/dist/chunks/{file-retention-27g2d1zk.js → aisdk-yjwcb63e.js} +9 -9
- package/dist/chunks/{file-retention-vdrf2z40.js → aisdk-yk9hzv9x.js} +23 -23
- package/dist/chunks/{file-retention-8775xmr7.js → aisdk-ypr958tt.js} +15 -15
- package/dist/chunks/{file-retention-3js5sq8v.js → aisdk-yr1nt44v.js} +5 -5
- package/dist/chunks/{file-retention-2yeqtm01.js → aisdk-yyb821fg.js} +23 -23
- package/dist/chunks/{file-retention-z0bkrqjs.js → aisdk-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-retention-h1eg3vk4.js → aisdk-z0dwwj88.js} +22 -22
- package/dist/chunks/{file-retention-z38nccrw.js → aisdk-z38nccrw.js} +1 -1
- package/dist/chunks/{file-retention-zkg84ctx.js → aisdk-zkg84ctx.js} +1 -1
- package/dist/chunks/{file-retention-fx2h2ek3.js → aisdk-zmr7x0ed.js} +4 -4
- package/dist/chunks/{file-retention-sjx4qwkt.js → aisdk-zp2rbezs.js} +11 -11
- package/dist/chunks/{file-retention-pd5s7czc.js → aisdk-zyzsrgv4.js} +11 -11
- package/dist/chunks/{file-retention-a9kms1wj.js → aisdk-zzwtngp7.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +87 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +102 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- 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 +116 -116
- package/dist/config/plugin/skill-file.js +105 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- 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 +115 -115
- 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 +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- 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 +16 -16
- 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 +95 -94
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +96 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +98 -97
- 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 +72 -72
- package/dist/file-access.js +107 -106
- package/dist/file-mutation.js +97 -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 +225 -225
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +105 -104
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +90 -89
- package/dist/generate.js +108 -107
- package/dist/git.js +11 -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 +102 -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 +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +88 -87
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +156 -156
- package/dist/location-lifecycle.js +106 -105
- package/dist/location-service-map.js +89 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +92 -91
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +94 -93
- package/dist/mcp/index.js +106 -105
- package/dist/mcp/instructions.js +141 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +93 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +102 -101
- package/dist/model-resolver.js +104 -103
- package/dist/model-retry.js +1 -1
- package/dist/model.js +103 -102
- package/dist/models-dev.js +104 -103
- 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 +116 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- 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 +105 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +5 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +99 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +5 -3
- package/dist/plugin/plan.js +105 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +93 -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 +113 -113
- 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 +96 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +98 -97
- package/dist/plugin/provider/gitlab.js +96 -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 +95 -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-context-caps.js +93 -92
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +101 -100
- package/dist/plugin/provider/openrouter.js +94 -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 +94 -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 +93 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +94 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +89 -88
- package/dist/plugin/vcs/hg.js +89 -88
- package/dist/plugin/verbosity.js +96 -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 +4 -4
- 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 +229 -229
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -92
- package/dist/provider.js +104 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +92 -91
- package/dist/reference.js +92 -91
- package/dist/repository-cache.js +84 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +98 -97
- package/dist/rpc.js +89 -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 -136
- package/dist/session/context.js +165 -164
- package/dist/session/diff.js +91 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +131 -130
- package/dist/session/generate.js +165 -164
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +93 -93
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -95
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +123 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +133 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +108 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +97 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +229 -229
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +103 -102
- package/dist/session/runner/publish-llm-event.js +117 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +127 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +106 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +163 -162
- package/dist/session/to-session-error.js +115 -114
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +110 -109
- package/dist/skill.js +113 -112
- package/dist/snapshot.js +94 -93
- 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 +138 -137
- package/dist/tool/plugin/edit.js +123 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +127 -126
- package/dist/tool/plugin/grep.js +127 -126
- package/dist/tool/plugin/mcp-resource.js +127 -126
- package/dist/tool/plugin/opencode.js +112 -111
- package/dist/tool/plugin/patch.js +123 -122
- package/dist/tool/plugin/question.js +104 -103
- package/dist/tool/plugin/read.js +128 -127
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +112 -111
- package/dist/tool/plugin/subagent.js +217 -217
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +114 -113
- package/dist/tool/plugin/websearch.js +115 -114
- package/dist/tool/plugin/write.js +125 -124
- package/dist/tool/read-filesystem.js +103 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/plugin/optimize.d.ts +26 -0
- package/dist/types/util/git-executable.d.ts +6 -2
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +5 -2
- 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 +4 -4
- package/dist/v1/config/migrate.js +95 -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 +4 -4
- package/dist/variant.js +96 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +92 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +80 -80
- 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 +11 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +92 -91
- package/dist/worktree.js +101 -100
- package/package.json +8 -8
- package/dist/chunks/file-retention-0y56atyb.js +0 -257
- package/dist/chunks/file-retention-6zjm2phc.js +0 -18
- package/dist/chunks/file-retention-8rzgfn7k.js +0 -26
- package/dist/chunks/file-retention-bjec6aaf.js +0 -82
- package/dist/chunks/file-retention-ef5x83kb.js +0 -15
- package/dist/chunks/file-retention-x90fzfq6.js +0 -517
- /package/dist/chunks/{file-retention-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-retention-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-retention-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-retention-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-retention-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-retention-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-retention-2bv980vf.js → aisdk-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-retention-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-retention-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-retention-3asan66x.js → aisdk-3asan66x.js} +0 -0
- /package/dist/chunks/{file-retention-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-retention-3wcehsnq.js → aisdk-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-retention-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-retention-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-retention-4vcrnpx2.js → aisdk-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-retention-4y7fprxs.js → aisdk-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-retention-53557ph1.js → aisdk-53557ph1.js} +0 -0
- /package/dist/chunks/{file-retention-550bvhaj.js → aisdk-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-retention-5fjb7ams.js → aisdk-5fjb7ams.js} +0 -0
- /package/dist/chunks/{file-retention-5qd3pb7m.js → aisdk-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-retention-6prwharc.js → aisdk-6prwharc.js} +0 -0
- /package/dist/chunks/{file-retention-6q2bdcd1.js → aisdk-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-retention-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-retention-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-retention-822emrt2.js → aisdk-822emrt2.js} +0 -0
- /package/dist/chunks/{file-retention-84wd9syh.js → aisdk-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-retention-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-retention-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-retention-8wj87zfr.js → aisdk-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-retention-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-retention-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-retention-a058387c.js → aisdk-a058387c.js} +0 -0
- /package/dist/chunks/{file-retention-a6k6eb26.js → aisdk-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-retention-af5trqkr.js → aisdk-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-retention-afrmfg78.js → aisdk-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-retention-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-retention-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-retention-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-retention-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-retention-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-retention-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-retention-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-retention-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-retention-dajrwvna.js → aisdk-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-retention-dap0rakb.js → aisdk-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-retention-df08tz66.js → aisdk-df08tz66.js} +0 -0
- /package/dist/chunks/{file-retention-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-retention-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-retention-e73j6tqm.js → aisdk-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-retention-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-retention-eh3zwz77.js → aisdk-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-retention-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-retention-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-retention-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-retention-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-retention-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-retention-g4wezp1m.js → aisdk-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-retention-g86h250q.js → aisdk-g86h250q.js} +0 -0
- /package/dist/chunks/{file-retention-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-retention-gftt206x.js → aisdk-gftt206x.js} +0 -0
- /package/dist/chunks/{file-retention-hcxmzztb.js → aisdk-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-retention-hk9envan.js → aisdk-hk9envan.js} +0 -0
- /package/dist/chunks/{file-retention-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-retention-j5zkgpj8.js → aisdk-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-retention-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-retention-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-retention-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-retention-jze0r7bz.js → aisdk-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-retention-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-retention-m18g726c.js → aisdk-m18g726c.js} +0 -0
- /package/dist/chunks/{file-retention-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-retention-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-retention-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-retention-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-retention-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-retention-pkyv6v7h.js → aisdk-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{file-retention-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-retention-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-retention-qaymkmh1.js → aisdk-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-retention-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-retention-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-retention-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-retention-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-retention-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-retention-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-retention-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-retention-ve7vex1e.js → aisdk-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-retention-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-retention-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-retention-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-retention-wjj7prxr.js → aisdk-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-retention-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-retention-x0ckcb58.js → aisdk-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-retention-x61499pn.js → aisdk-x61499pn.js} +0 -0
- /package/dist/chunks/{file-retention-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-retention-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-retention-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-retention-ym463w8f.js → aisdk-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-retention-z5v4ffb3.js → aisdk-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-retention-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/instance.ts
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service7,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node9
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service7 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node9 = makeLocationNode({
|
|
19
|
+
service: Service7,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service7, Service7.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service7, node9, bound2, exports_instance2 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-rrfmzwpm.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./aisdk-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
Ref3,
|
|
11
|
+
Service78,
|
|
12
|
+
node82
|
|
13
|
+
} from "./aisdk-v2ywx7d9.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service56,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node58
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service56 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,10 +39,10 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service56, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service85;
|
|
44
|
-
const location = yield*
|
|
45
|
-
const ref =
|
|
44
|
+
const location = yield* Service78;
|
|
45
|
+
const ref = Ref3.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
48
48
|
error: (type, message, data) => new DeclaredError(type, message, data)
|
|
@@ -118,19 +118,19 @@ var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service78, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service56.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node58 = makeLocationNode({ service: Service56, layer, deps: [node89, node82] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
132
132
|
metadata: optional2(Schema.Record(Schema.String, Schema.Unknown)),
|
|
133
|
-
location: optional2(
|
|
133
|
+
location: optional2(Ref3)
|
|
134
134
|
};
|
|
135
135
|
var EventData = Schema.Record(Schema.String, Schema.Unknown);
|
|
136
136
|
var jsonSchemas = new WeakMap;
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service56, node58, exports_rpc, define2 };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-x8n50tyc.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-rrfmzwpm.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
8
|
+
ID17,
|
|
9
|
+
Event19,
|
|
10
|
+
Service83
|
|
11
|
+
} from "./aisdk-35fwsjrv.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./aisdk-rrad2nt9.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID16,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./aisdk-9a91xz6j.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./aisdk-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
ID13,
|
|
24
|
+
Service77
|
|
25
|
+
} from "./aisdk-h83fqc2v.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
ID12
|
|
28
|
+
} from "./aisdk-sc3bsvgm.js";
|
|
29
29
|
import {
|
|
30
30
|
configuredSettings2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./aisdk-bsym7w2k.js";
|
|
32
32
|
|
|
33
33
|
// src/plugin/provider/azure.ts
|
|
34
34
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -63,18 +63,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
|
|
|
63
63
|
}));
|
|
64
64
|
var ResourceQuery = Schema.Struct({ query: Schema.String });
|
|
65
65
|
var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
|
|
66
|
-
function
|
|
66
|
+
function make7(endpoints = {
|
|
67
67
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
68
68
|
management: "https://management.azure.com"
|
|
69
69
|
}) {
|
|
70
70
|
return define({
|
|
71
71
|
id: "opencode.provider.azure",
|
|
72
72
|
effect: Effect.fn(function* (ctx) {
|
|
73
|
-
const configured = yield* configuredSettings2(
|
|
73
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
74
74
|
const processes = yield* AppProcess.Service;
|
|
75
75
|
const bus = yield* Service85;
|
|
76
|
-
const credentials = yield*
|
|
77
|
-
const providers = yield*
|
|
76
|
+
const credentials = yield* Service83;
|
|
77
|
+
const providers = yield* Service77;
|
|
78
78
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
79
79
|
const tokens = new Map;
|
|
80
80
|
const resourceIDs = new Map;
|
|
@@ -100,11 +100,11 @@ function make6(endpoints = {
|
|
|
100
100
|
const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
|
|
101
101
|
yield* ctx.integration.transform((editor) => {
|
|
102
102
|
editor.method.update({
|
|
103
|
-
integrationID:
|
|
103
|
+
integrationID: ID13.azure,
|
|
104
104
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
105
105
|
});
|
|
106
106
|
editor.method.update({
|
|
107
|
-
integrationID:
|
|
107
|
+
integrationID: ID13.azure,
|
|
108
108
|
method: {
|
|
109
109
|
type: "key",
|
|
110
110
|
label: "API key",
|
|
@@ -122,7 +122,7 @@ function make6(endpoints = {
|
|
|
122
122
|
if (!available)
|
|
123
123
|
return;
|
|
124
124
|
editor.method.update({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID13.azure,
|
|
126
126
|
method: {
|
|
127
127
|
id: methodID,
|
|
128
128
|
type: "external",
|
|
@@ -142,8 +142,8 @@ function make6(endpoints = {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
145
|
-
const connection = yield* ctx.integration.connection.active(
|
|
146
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
145
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
146
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID17.make(connection.id)) : undefined;
|
|
147
147
|
return { connection, resource: credentialResource(stored?.value) };
|
|
148
148
|
});
|
|
149
149
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -182,7 +182,7 @@ function make6(endpoints = {
|
|
|
182
182
|
}));
|
|
183
183
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
184
184
|
const connection = loaded.connection;
|
|
185
|
-
const settings = (yield* providers.get(
|
|
185
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
186
186
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
187
187
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
188
188
|
if (loaded.connection !== connection)
|
|
@@ -204,11 +204,11 @@ function make6(endpoints = {
|
|
|
204
204
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
205
205
|
if (!found)
|
|
206
206
|
return;
|
|
207
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
207
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
208
208
|
return;
|
|
209
209
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
210
210
|
return;
|
|
211
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
211
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
212
212
|
id.toLowerCase(),
|
|
213
213
|
id
|
|
214
214
|
]));
|
|
@@ -221,11 +221,11 @@ function make6(endpoints = {
|
|
|
221
221
|
yield* ctx.model.reload();
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
224
|
-
const resourceFor = (provider) => provider.id ===
|
|
224
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
225
225
|
Object.assign(loaded, yield* load());
|
|
226
226
|
yield* ctx.provider.transform((evt) => {
|
|
227
227
|
for (const item of evt.list()) {
|
|
228
|
-
if (item.provider.id !==
|
|
228
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
229
229
|
continue;
|
|
230
230
|
const resourceName = resourceFor(item.provider);
|
|
231
231
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -240,7 +240,7 @@ function make6(endpoints = {
|
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
const item = evt.get(
|
|
243
|
+
const item = evt.get(ID13.azure);
|
|
244
244
|
if (!item)
|
|
245
245
|
return;
|
|
246
246
|
evt.add({
|
|
@@ -251,32 +251,39 @@ function make6(endpoints = {
|
|
|
251
251
|
});
|
|
252
252
|
yield* ctx.model.transform((models) => {
|
|
253
253
|
for (const item of models.provider.list()) {
|
|
254
|
-
if (item.provider.id !==
|
|
254
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
255
255
|
continue;
|
|
256
256
|
const resourceName = resourceFor(item.provider);
|
|
257
|
-
|
|
257
|
+
if (!resourceName)
|
|
258
|
+
continue;
|
|
259
|
+
for (const model of item.models.values()) {
|
|
260
|
+
if (typeof model.settings?.baseURL !== "string")
|
|
261
|
+
continue;
|
|
262
|
+
const baseURL = expandResourceName(model.settings.baseURL, resolveResourceName(model.settings, resourceName) ?? resourceName);
|
|
263
|
+
if (baseURL === model.settings.baseURL)
|
|
264
|
+
continue;
|
|
258
265
|
models.update(item.provider.id, model.id, (draft) => {
|
|
259
|
-
if (
|
|
266
|
+
if (typeof draft.settings?.baseURL === "string")
|
|
260
267
|
draft.settings.baseURL = expandResourceName(draft.settings.baseURL, resolveResourceName(draft.settings, resourceName) ?? resourceName);
|
|
261
268
|
});
|
|
262
269
|
}
|
|
263
270
|
}
|
|
264
271
|
if (!loaded.deployments)
|
|
265
272
|
return;
|
|
266
|
-
const catalog = models.list(
|
|
273
|
+
const catalog = models.list(ID13.azure);
|
|
267
274
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
268
275
|
for (const model of catalog) {
|
|
269
276
|
if (!deployed.has(model.id))
|
|
270
|
-
models.remove(
|
|
277
|
+
models.remove(ID13.azure, model.id);
|
|
271
278
|
}
|
|
272
279
|
for (const [id, model] of deployed) {
|
|
273
|
-
models.update(
|
|
280
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
274
281
|
}
|
|
275
282
|
});
|
|
276
|
-
yield* bus.subscribe(
|
|
283
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
277
284
|
yield* refresh().pipe(Effect.forkScoped);
|
|
278
285
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
279
|
-
const connection = yield* ctx.integration.connection.active(
|
|
286
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
280
287
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
281
288
|
return;
|
|
282
289
|
})) : undefined;
|
|
@@ -288,7 +295,7 @@ function make6(endpoints = {
|
|
|
288
295
|
return `Bearer ${current.access}`;
|
|
289
296
|
});
|
|
290
297
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
291
|
-
if (evt.model.providerID !==
|
|
298
|
+
if (evt.model.providerID !== ID13.azure)
|
|
292
299
|
return;
|
|
293
300
|
const authorization = yield* bearer(evt.request.url);
|
|
294
301
|
if (!authorization)
|
|
@@ -297,9 +304,9 @@ function make6(endpoints = {
|
|
|
297
304
|
evt.request.headers.delete("x-api-key");
|
|
298
305
|
evt.request.headers.set("authorization", authorization);
|
|
299
306
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
300
|
-
}), { providerID:
|
|
307
|
+
}), { providerID: ID13.azure });
|
|
301
308
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
302
|
-
if (evt.model.providerID !==
|
|
309
|
+
if (evt.model.providerID !== ID13.azure)
|
|
303
310
|
return;
|
|
304
311
|
const authorization = yield* bearer(evt.url);
|
|
305
312
|
if (!authorization)
|
|
@@ -308,11 +315,11 @@ function make6(endpoints = {
|
|
|
308
315
|
delete evt.headers["x-api-key"];
|
|
309
316
|
evt.headers.authorization = authorization;
|
|
310
317
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
311
|
-
}), { providerID:
|
|
318
|
+
}), { providerID: ID13.azure });
|
|
312
319
|
})
|
|
313
320
|
});
|
|
314
321
|
}
|
|
315
|
-
var AzurePlugin2 =
|
|
322
|
+
var AzurePlugin2 = make7();
|
|
316
323
|
function resolveResourceName(settings, fallback) {
|
|
317
324
|
const configured = settings?.resourceName;
|
|
318
325
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -342,11 +349,11 @@ function deployedModels(deployments, catalog) {
|
|
|
342
349
|
const model = catalogModel(models, deployment);
|
|
343
350
|
if (!model)
|
|
344
351
|
return [];
|
|
345
|
-
const id =
|
|
352
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
346
353
|
const info = {
|
|
347
354
|
...structuredClone(model),
|
|
348
355
|
id,
|
|
349
|
-
modelID:
|
|
356
|
+
modelID: ID12.make(deployment.name),
|
|
350
357
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
351
358
|
};
|
|
352
359
|
return [[id, info]];
|
|
@@ -368,4 +375,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
368
375
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
369
376
|
}
|
|
370
377
|
|
|
371
|
-
export {
|
|
378
|
+
export { make7, AzurePlugin2 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Entries2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Info10
|
|
7
|
+
} from "./aisdk-eg2ky145.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/v1/config/agent.ts
|
|
13
13
|
var exports_agent3 = {};
|
|
14
14
|
__export(exports_agent3, {
|
|
15
15
|
ConfigAgentV1: () => exports_agent3,
|
|
16
|
-
Info: () =>
|
|
16
|
+
Info: () => Info9
|
|
17
17
|
});
|
|
18
18
|
import { Schema, SchemaGetter } from "effect";
|
|
19
19
|
var Color = Schema.Union([
|
|
@@ -45,7 +45,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
45
45
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
46
46
|
}),
|
|
47
47
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
48
|
-
permission: Schema.optional(
|
|
48
|
+
permission: Schema.optional(Info10)
|
|
49
49
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
50
50
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
51
51
|
var normalize = (agent) => {
|
|
@@ -64,9 +64,9 @@ var normalize = (agent) => {
|
|
|
64
64
|
const steps = agent.steps ?? agent.maxSteps;
|
|
65
65
|
return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
|
|
66
66
|
};
|
|
67
|
-
var
|
|
67
|
+
var Info9 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
|
|
68
68
|
decode: SchemaGetter.transform(normalize),
|
|
69
69
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
70
70
|
})).annotate({ identifier: "AgentConfig" });
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { Info9, exports_agent3 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-rrfmzwpm.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-4e2nnt3c.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./aisdk-a058387c.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError10,
|
|
20
|
+
Options: () => Options7,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
available: () =>
|
|
25
|
-
configured: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
node: () =>
|
|
22
|
+
Service: () => Service68,
|
|
23
|
+
UnavailableError: () => UnavailableError2,
|
|
24
|
+
available: () => available3,
|
|
25
|
+
configured: () => configured10,
|
|
26
|
+
layer: () => layer23,
|
|
27
|
+
node: () => node72
|
|
28
28
|
});
|
|
29
29
|
import path from "node:path";
|
|
30
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -34,25 +34,25 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
34
34
|
import { Global } from "@opencode/util/global";
|
|
35
35
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
36
36
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
37
|
-
import { available as
|
|
38
|
-
var
|
|
37
|
+
import { available as available3 } from "#persistent-pty-binary";
|
|
38
|
+
var Options7 = Schema.Struct({
|
|
39
39
|
handoff: Schema.optional(Handoff),
|
|
40
40
|
root: Schema.optional(Schema.String)
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class UnavailableError2 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
44
44
|
message: Schema.String
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class NotFoundError10 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
49
49
|
ptyID: Pty.ID
|
|
50
50
|
}) {
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
class
|
|
53
|
+
class Service68 extends Context.Service()("@opencode/PersistentPty") {
|
|
54
54
|
}
|
|
55
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
55
|
+
var makeLayer = (options = {}) => Layer.effect(Service68, Effect.gen(function* () {
|
|
56
56
|
const bus = yield* Service85;
|
|
57
57
|
const global = yield* Global.Service;
|
|
58
58
|
const context = yield* Effect.context();
|
|
@@ -75,7 +75,7 @@ var makeLayer = (options = {}) => Layer.effect(Service19, Effect.gen(function* (
|
|
|
75
75
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
76
76
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
77
77
|
if (!found)
|
|
78
|
-
return yield* new
|
|
78
|
+
return yield* new NotFoundError10({ ptyID: id });
|
|
79
79
|
return found;
|
|
80
80
|
});
|
|
81
81
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -165,7 +165,7 @@ var makeLayer = (options = {}) => Layer.effect(Service19, Effect.gen(function* (
|
|
|
165
165
|
});
|
|
166
166
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
167
167
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
168
|
-
return yield* new
|
|
168
|
+
return yield* new UnavailableError2({ message: "lines must be an integer between 1 and 65535" });
|
|
169
169
|
const id = current.get(sessionID);
|
|
170
170
|
if (!id)
|
|
171
171
|
return null;
|
|
@@ -242,7 +242,7 @@ var makeLayer = (options = {}) => Layer.effect(Service19, Effect.gen(function* (
|
|
|
242
242
|
detach: attachment.detach
|
|
243
243
|
};
|
|
244
244
|
});
|
|
245
|
-
return
|
|
245
|
+
return Service68.of({
|
|
246
246
|
list,
|
|
247
247
|
get,
|
|
248
248
|
create,
|
|
@@ -258,17 +258,17 @@ var makeLayer = (options = {}) => Layer.effect(Service19, Effect.gen(function* (
|
|
|
258
258
|
attach
|
|
259
259
|
});
|
|
260
260
|
}));
|
|
261
|
-
var
|
|
262
|
-
var
|
|
263
|
-
service:
|
|
264
|
-
layer: options === undefined ?
|
|
261
|
+
var layer23 = makeLayer();
|
|
262
|
+
var configured10 = (options) => makeGlobalNode({
|
|
263
|
+
service: Service68,
|
|
264
|
+
layer: options === undefined ? layer23 : makeLayer(options),
|
|
265
265
|
deps: [node89, Global.node]
|
|
266
266
|
});
|
|
267
|
-
var
|
|
267
|
+
var node72 = configured10();
|
|
268
268
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
269
269
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
270
|
-
var unexpected = (response) => Effect.fail(new
|
|
271
|
-
var unavailable = (error) => new
|
|
270
|
+
var unexpected = (response) => Effect.fail(new UnavailableError2({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
271
|
+
var unavailable = (error) => new UnavailableError2({ message: error instanceof Error ? error.message : String(error) });
|
|
272
272
|
function toInfo(value) {
|
|
273
273
|
const status = value.lifecycle.status;
|
|
274
274
|
return {
|
|
@@ -300,4 +300,4 @@ function fromID(value) {
|
|
|
300
300
|
return parsed;
|
|
301
301
|
}
|
|
302
302
|
|
|
303
|
-
export {
|
|
303
|
+
export { Options7, UnavailableError2, NotFoundError10, Service68, layer23, configured10, node72, exports_persistent_pty, Handoff2, available3 };
|
|
@@ -3,30 +3,30 @@ import {
|
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
5
|
Service32
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-r892vp5m.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service63
|
|
9
|
+
} from "./aisdk-h7pdcx31.js";
|
|
10
10
|
import {
|
|
11
11
|
MEDIA_MIMES2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-6v1bxwq1.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/tool/plugin/mcp-resource.ts
|
|
18
18
|
var exports_mcp_resource = {};
|
|
19
19
|
__export(exports_mcp_resource, {
|
|
20
20
|
McpResourceTools: () => exports_mcp_resource,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin37
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
|
-
var
|
|
25
|
+
var Plugin37 = {
|
|
26
26
|
id: "opencode.tools.mcp-resources",
|
|
27
27
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
28
28
|
const mcp = yield* Service32;
|
|
29
|
-
const permission = yield*
|
|
29
|
+
const permission = yield* Service63;
|
|
30
30
|
yield* ctx.tool.transform((editor) => {
|
|
31
31
|
editor.add({
|
|
32
32
|
name: "list_mcp_resources",
|
|
@@ -96,4 +96,4 @@ var Plugin40 = {
|
|
|
96
96
|
})
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin37, exports_mcp_resource };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instructions/index.ts
|
|
6
6
|
var exports_instructions6 = {};
|
|
@@ -10,7 +10,7 @@ __export(exports_instructions6, {
|
|
|
10
10
|
Hash: () => Hash2,
|
|
11
11
|
InitializationBlocked: () => InitializationBlocked2,
|
|
12
12
|
Instructions: () => exports_instructions6,
|
|
13
|
-
Key: () =>
|
|
13
|
+
Key: () => Key3,
|
|
14
14
|
Values: () => Values2,
|
|
15
15
|
applyHashDelta: () => applyHashDelta2,
|
|
16
16
|
combine: () => combine2,
|
|
@@ -28,7 +28,7 @@ __export(exports_instructions6, {
|
|
|
28
28
|
import { createHash } from "crypto";
|
|
29
29
|
import { Instruction } from "@opencode/schema/instruction";
|
|
30
30
|
import { Data, Effect, Option, Schema } from "effect";
|
|
31
|
-
var
|
|
31
|
+
var Key3 = Instruction.Key;
|
|
32
32
|
var Hash2 = Instruction.Hash;
|
|
33
33
|
var Values2 = Instruction.Values;
|
|
34
34
|
var Delta2 = Instruction.Delta;
|
|
@@ -36,14 +36,14 @@ var NonValue = Data.taggedEnum();
|
|
|
36
36
|
var unavailable3 = NonValue.Unavailable();
|
|
37
37
|
var removed2 = NonValue.Removed();
|
|
38
38
|
|
|
39
|
-
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(
|
|
39
|
+
class InitializationBlocked2 extends Schema.TaggedError()("Instructions.InitializationBlocked", { keys: Schema.Array(Key3) }) {
|
|
40
40
|
get message() {
|
|
41
41
|
return `Instruction initialization blocked by unavailable sources: ${this.keys.join(", ")}`;
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
class DuplicateKeyError2 extends Schema.TaggedError()("Instructions.DuplicateKeyError", {
|
|
46
|
-
key:
|
|
46
|
+
key: Key3
|
|
47
47
|
}) {
|
|
48
48
|
get message() {
|
|
49
49
|
return `Duplicate instruction key: ${this.key}`;
|
|
@@ -193,4 +193,4 @@ function requireText(key, kind, text) {
|
|
|
193
193
|
return text;
|
|
194
194
|
}
|
|
195
195
|
|
|
196
|
-
export {
|
|
196
|
+
export { Key3, Hash2, Values2, Delta2, unavailable3, removed2, InitializationBlocked2, DuplicateKeyError2, empty3, make20, combine2, read3, diff2, renderInitial2, renderUpdate2, hash2, applyHashDelta2, diffByKey2, exports_instructions6 };
|