@opencode/core 0.0.0-dev-21745 → 0.0.0-dev-21748
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 +97 -97
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{snapshot-6n1s1dfa.js → file-retention-004rgtvd.js} +7 -7
- package/dist/chunks/{snapshot-034tev2y.js → file-retention-034tev2y.js} +2 -2
- package/dist/chunks/{snapshot-7633k18y.js → file-retention-06443jab.js} +3 -3
- package/dist/chunks/{snapshot-r6wgv8c9.js → file-retention-0gka690g.js} +6 -6
- package/dist/chunks/{snapshot-791mgs72.js → file-retention-0pv52n9j.js} +12 -12
- package/dist/chunks/{snapshot-p1qgn14a.js → file-retention-0syxcydp.js} +9 -9
- package/dist/chunks/{snapshot-h740tfnc.js → file-retention-0t1mekc8.js} +5 -5
- package/dist/chunks/{snapshot-n95zghxh.js → file-retention-0txt22rj.js} +5 -5
- package/dist/chunks/file-retention-0y56atyb.js +257 -0
- package/dist/chunks/{snapshot-k4a9rn7k.js → file-retention-10jjfj8e.js} +32 -32
- package/dist/chunks/{snapshot-gs87y69e.js → file-retention-10s4rp80.js} +25 -25
- package/dist/chunks/{snapshot-qhacjaam.js → file-retention-12vgd738.js} +4 -4
- package/dist/chunks/{snapshot-skwwrjz6.js → file-retention-1b000e53.js} +47 -47
- package/dist/chunks/{snapshot-1ep2p91f.js → file-retention-1ep2p91f.js} +2 -2
- package/dist/chunks/{snapshot-9pjcyyyz.js → file-retention-1mn7gzbb.js} +52 -52
- package/dist/chunks/{snapshot-vkc62rge.js → file-retention-1thmyanr.js} +29 -29
- package/dist/chunks/{snapshot-1x2knyw4.js → file-retention-1x2knyw4.js} +1 -1
- package/dist/chunks/{snapshot-kc3jq4k5.js → file-retention-27g2d1zk.js} +9 -9
- package/dist/chunks/{snapshot-veg4raah.js → file-retention-2fbg880x.js} +50 -50
- package/dist/chunks/{snapshot-jxffhsbt.js → file-retention-2mrk5sk4.js} +19 -19
- package/dist/chunks/{snapshot-06efqm8m.js → file-retention-2y5s3d4p.js} +17 -17
- package/dist/chunks/{snapshot-6hzzfs8d.js → file-retention-2yeqtm01.js} +23 -23
- package/dist/chunks/{snapshot-2z1j29yd.js → file-retention-2z1j29yd.js} +1 -1
- package/dist/chunks/{snapshot-3hepkmqq.js → file-retention-3hepkmqq.js} +1 -1
- package/dist/chunks/{snapshot-an558sqv.js → file-retention-3js5sq8v.js} +4 -4
- package/dist/chunks/{snapshot-dz8hhvgv.js → file-retention-3mgb105e.js} +9 -9
- package/dist/chunks/{snapshot-3nnrz6f6.js → file-retention-3nnrz6f6.js} +1 -1
- package/dist/chunks/{snapshot-67pdg5mz.js → file-retention-3xbbjsgy.js} +14 -14
- package/dist/chunks/{snapshot-fp2kss3x.js → file-retention-3xv5yes5.js} +6 -6
- package/dist/chunks/{snapshot-rtza7ceg.js → file-retention-40x2gp1a.js} +19 -19
- package/dist/chunks/{snapshot-w2eysc6j.js → file-retention-40za9wsf.js} +9 -9
- package/dist/chunks/{snapshot-b5g8zywb.js → file-retention-41ae5eq3.js} +5 -5
- package/dist/chunks/{snapshot-brpe5pm9.js → file-retention-4944f0f3.js} +3 -3
- package/dist/chunks/{snapshot-jcvhz0ne.js → file-retention-4rnx58kd.js} +5 -5
- package/dist/chunks/{snapshot-4v008n1t.js → file-retention-4v008n1t.js} +1 -1
- package/dist/chunks/{snapshot-k5q8ak4g.js → file-retention-4xj5yeb9.js} +18 -18
- package/dist/chunks/{snapshot-4xvmh7wp.js → file-retention-4xvmh7wp.js} +3 -3
- package/dist/chunks/{snapshot-xfzdx1cq.js → file-retention-4yyqx4s3.js} +1 -1
- package/dist/chunks/{snapshot-pg6c20a0.js → file-retention-51g9mfss.js} +16 -16
- package/dist/chunks/{snapshot-erw1a2px.js → file-retention-52m7r17y.js} +11 -11
- package/dist/chunks/{snapshot-r3t0nk92.js → file-retention-58j32a3p.js} +11 -11
- package/dist/chunks/{snapshot-k8repwgk.js → file-retention-5e27t7kq.js} +33 -33
- package/dist/chunks/{snapshot-5m9w47nd.js → file-retention-5m9w47nd.js} +1 -1
- package/dist/chunks/{snapshot-5nnwax6m.js → file-retention-5nnwax6m.js} +2 -2
- package/dist/chunks/{snapshot-d4txh1kp.js → file-retention-5tdnk8gt.js} +30 -30
- package/dist/chunks/{snapshot-pyr79hg3.js → file-retention-6bqt0z5z.js} +14 -14
- package/dist/chunks/{snapshot-9xvj91tm.js → file-retention-6ejhvxx1.js} +30 -30
- package/dist/chunks/{snapshot-6esdw8yj.js → file-retention-6esdw8yj.js} +1 -1
- package/dist/chunks/{snapshot-0pchwhq8.js → file-retention-6phpkkwx.js} +10 -10
- package/dist/chunks/{snapshot-6pjqjmy2.js → file-retention-6pjqjmy2.js} +1 -1
- package/dist/chunks/file-retention-6zjm2phc.js +18 -0
- package/dist/chunks/{snapshot-41peksc2.js → file-retention-6zzg071e.js} +14 -14
- package/dist/chunks/{snapshot-8xmxx3r8.js → file-retention-706d41vq.js} +24 -24
- package/dist/chunks/{snapshot-76cb1hcw.js → file-retention-76cb1hcw.js} +1 -1
- package/dist/chunks/{snapshot-zy2m570x.js → file-retention-78etnvtx.js} +11 -11
- package/dist/chunks/{snapshot-tej0rhj5.js → file-retention-7ax5pvs2.js} +22 -22
- package/dist/chunks/{snapshot-c76bvptd.js → file-retention-7b6m6kjp.js} +23 -23
- package/dist/chunks/{snapshot-7bmhse3q.js → file-retention-7bmhse3q.js} +1 -1
- package/dist/chunks/{snapshot-7m8hecea.js → file-retention-7p5j3bg8.js} +18 -18
- package/dist/chunks/{snapshot-7w2ypzdf.js → file-retention-7w2ypzdf.js} +1 -1
- package/dist/chunks/{snapshot-ftzbw7kw.js → file-retention-81xmdkgf.js} +9 -9
- package/dist/chunks/{snapshot-d2121cgz.js → file-retention-8775xmr7.js} +15 -15
- package/dist/chunks/{snapshot-q6swskfy.js → file-retention-895yj7sv.js} +44 -44
- package/dist/chunks/{snapshot-hw621kav.js → file-retention-8d2bz6m6.js} +8 -8
- package/dist/chunks/{snapshot-jaqz1j5c.js → file-retention-8h66aeq1.js} +15 -15
- package/dist/chunks/{snapshot-dhn570bz.js → file-retention-8jv5e0ry.js} +2 -2
- package/dist/chunks/{snapshot-6e1r9k58.js → file-retention-8q24scts.js} +19 -19
- package/dist/chunks/{snapshot-62w55z8x.js → file-retention-8q4csfv6.js} +8 -8
- package/dist/chunks/file-retention-8rzgfn7k.js +26 -0
- package/dist/chunks/{snapshot-ed24c9s1.js → file-retention-8v2hjwdb.js} +28 -28
- package/dist/chunks/{snapshot-8wtp7s3z.js → file-retention-8wtp7s3z.js} +1 -1
- package/dist/chunks/{snapshot-hyg60882.js → file-retention-8y08emeq.js} +27 -27
- package/dist/chunks/{snapshot-c0jtyzjh.js → file-retention-90h4gxms.js} +18 -18
- package/dist/chunks/{snapshot-91rj84md.js → file-retention-91rj84md.js} +1 -1
- package/dist/chunks/{snapshot-p1nmqc4v.js → file-retention-96zt377w.js} +38 -38
- package/dist/chunks/{snapshot-998yhzzq.js → file-retention-998yhzzq.js} +3 -3
- package/dist/chunks/{snapshot-hp1h3ap0.js → file-retention-9aytyba7.js} +8 -8
- package/dist/chunks/{snapshot-yc89j42n.js → file-retention-9e6thw54.js} +23 -23
- package/dist/chunks/{snapshot-0p88zpcm.js → file-retention-9gkymt4j.js} +4 -4
- package/dist/chunks/{snapshot-nb2pkzvt.js → file-retention-9wrzmk82.js} +9 -9
- package/dist/chunks/{snapshot-5bn25yvx.js → file-retention-a1kcf5d2.js} +9 -9
- package/dist/chunks/{snapshot-znnhxh9a.js → file-retention-a6zs52qt.js} +12 -12
- package/dist/chunks/{snapshot-p0z6e7n7.js → file-retention-a8qqmhn7.js} +13 -13
- package/dist/chunks/{snapshot-f5pnm9ht.js → file-retention-a9kms1wj.js} +5 -5
- package/dist/chunks/{snapshot-pgbwge99.js → file-retention-an0ed0qm.js} +27 -27
- package/dist/chunks/{snapshot-jy35taan.js → file-retention-ap543zt0.js} +26 -26
- package/dist/chunks/{snapshot-bjhzkqyk.js → file-retention-ar2j3j0f.js} +4 -4
- package/dist/chunks/{snapshot-v2k3kh21.js → file-retention-aydsvzbb.js} +14 -14
- package/dist/chunks/{snapshot-ayjs7tqn.js → file-retention-ayjs7tqn.js} +2 -2
- package/dist/chunks/{snapshot-b0mv4wxm.js → file-retention-b0mv4wxm.js} +2 -2
- package/dist/chunks/{snapshot-rvyv8nvn.js → file-retention-b4ay2ffd.js} +45 -45
- package/dist/chunks/{snapshot-n6v2b7cw.js → file-retention-b50rsrab.js} +5 -5
- package/dist/chunks/{snapshot-0kjrd2qd.js → file-retention-b69pzmrp.js} +35 -35
- package/dist/chunks/{snapshot-6g24mm1y.js → file-retention-bar9hexn.js} +3 -3
- package/dist/chunks/{snapshot-81sa6vvk.js → file-retention-bbfkmt36.js} +20 -20
- package/dist/chunks/{snapshot-0vn2ss9c.js → file-retention-be4vgese.js} +5 -5
- package/dist/chunks/{snapshot-1nqgcrc1.js → file-retention-bg38yaka.js} +45 -45
- package/dist/chunks/{snapshot-tjbpd8jx.js → file-retention-bjec6aaf.js} +17 -17
- package/dist/chunks/{snapshot-k8hjh5qf.js → file-retention-bn42ez4f.js} +15 -15
- package/dist/chunks/{snapshot-bstexjd6.js → file-retention-bstexjd6.js} +1 -1
- package/dist/chunks/{snapshot-p2y5jf41.js → file-retention-bx2edf7r.js} +19 -19
- package/dist/chunks/{snapshot-146q7e0b.js → file-retention-byrp127m.js} +12 -12
- package/dist/chunks/{snapshot-9bqzx224.js → file-retention-c03k9zs8.js} +28 -28
- package/dist/chunks/{snapshot-c3cfh5w6.js → file-retention-c3cfh5w6.js} +2 -2
- package/dist/chunks/{snapshot-tasvem1v.js → file-retention-c8666r4c.js} +6 -6
- package/dist/chunks/{snapshot-d2887f8n.js → file-retention-c9t2ty9q.js} +4 -4
- package/dist/chunks/{snapshot-zng1ess9.js → file-retention-cebdmmc8.js} +12 -12
- package/dist/chunks/{snapshot-bjk9yhz6.js → file-retention-d1fhw6xp.js} +19 -19
- package/dist/chunks/{snapshot-4t0h3ecc.js → file-retention-d2ckxhpm.js} +11 -11
- package/dist/chunks/{snapshot-d4v9tmah.js → file-retention-d4v9tmah.js} +2 -2
- package/dist/chunks/{snapshot-tqxvqvy9.js → file-retention-dbvdvcnm.js} +13 -13
- package/dist/chunks/{snapshot-zv5q208p.js → file-retention-dhka8w8f.js} +3 -3
- package/dist/chunks/{snapshot-59t3c98x.js → file-retention-dvgja063.js} +6 -6
- package/dist/chunks/{snapshot-fkdm3x4n.js → file-retention-dx9hwm58.js} +15 -15
- package/dist/chunks/{snapshot-ky596kc3.js → file-retention-e45fk36t.js} +4 -4
- package/dist/chunks/{snapshot-dak4ewys.js → file-retention-e5qrk7kc.js} +29 -29
- package/dist/chunks/{snapshot-zpn8gsta.js → file-retention-e7h3kv1s.js} +36 -36
- package/dist/chunks/{snapshot-e834z07m.js → file-retention-e834z07m.js} +1 -1
- package/dist/chunks/{snapshot-ef5x83kb.js → file-retention-ef5x83kb.js} +1 -1
- package/dist/chunks/{snapshot-kfbj1vfn.js → file-retention-etc4v71r.js} +13 -13
- package/dist/chunks/{snapshot-xqya8bhb.js → file-retention-etzytfjk.js} +24 -24
- package/dist/chunks/{snapshot-9g4cv0f3.js → file-retention-ex2ghmgq.js} +5 -5
- package/dist/chunks/{snapshot-8vvxxr3d.js → file-retention-f5bp1zt3.js} +21 -21
- package/dist/chunks/{snapshot-fffv3p7h.js → file-retention-fffv3p7h.js} +1 -1
- package/dist/chunks/{snapshot-w2frxgzv.js → file-retention-fjbza28h.js} +90 -90
- package/dist/chunks/{snapshot-qt0rakd9.js → file-retention-fvgj1da1.js} +7 -7
- package/dist/chunks/{snapshot-6vh6abp7.js → file-retention-fx2h2ek3.js} +4 -4
- package/dist/chunks/{snapshot-z0h4wvmy.js → file-retention-fy85b4j6.js} +16 -16
- package/dist/chunks/{snapshot-pyka91yh.js → file-retention-fyg8cwdt.js} +18 -18
- package/dist/chunks/{snapshot-g5h9c0rr.js → file-retention-g5h9c0rr.js} +2 -2
- package/dist/chunks/{snapshot-d69d80k0.js → file-retention-g6hpx9wf.js} +11 -11
- package/dist/chunks/{snapshot-bkh5f3ma.js → file-retention-gnswcmy6.js} +4 -4
- package/dist/chunks/{snapshot-5x10bg3a.js → file-retention-gsgdtt07.js} +20 -20
- package/dist/chunks/{snapshot-frncqm0b.js → file-retention-h1eg3vk4.js} +22 -22
- package/dist/chunks/{snapshot-6zxm3gf7.js → file-retention-h1y7dhnp.js} +9 -9
- package/dist/chunks/{snapshot-2njjtkdw.js → file-retention-h401316e.js} +44 -44
- package/dist/chunks/{snapshot-zedte0ep.js → file-retention-hamx4eyd.js} +13 -13
- package/dist/chunks/{snapshot-8ny5g7zq.js → file-retention-haz7d3nj.js} +21 -21
- package/dist/chunks/{snapshot-0v17xkyr.js → file-retention-hmhshprh.js} +8 -8
- package/dist/chunks/{snapshot-cbdaszja.js → file-retention-hvtqj62d.js} +28 -28
- package/dist/chunks/{snapshot-j113cymg.js → file-retention-j113cymg.js} +1 -1
- package/dist/chunks/{snapshot-ew333j68.js → file-retention-j1jygztj.js} +33 -33
- package/dist/chunks/{snapshot-ky5h0dy4.js → file-retention-j21s6pys.js} +12 -12
- package/dist/chunks/{snapshot-49waears.js → file-retention-j22gxa80.js} +32 -32
- package/dist/chunks/{snapshot-hvbtf1fc.js → file-retention-j4qs9z9f.js} +12 -12
- package/dist/chunks/{snapshot-0k1j1wdr.js → file-retention-j4rz9p31.js} +11 -11
- package/dist/chunks/{snapshot-qz087kyw.js → file-retention-jbkw413w.js} +8 -8
- package/dist/chunks/{snapshot-9ekt8wk3.js → file-retention-jff6x0jb.js} +4 -4
- package/dist/chunks/{snapshot-q110d9ad.js → file-retention-jfp7edqe.js} +18 -18
- package/dist/chunks/{snapshot-jj9caqwr.js → file-retention-jj9caqwr.js} +3 -3
- package/dist/chunks/{snapshot-5tnc4nbn.js → file-retention-jjyvd6es.js} +33 -33
- package/dist/chunks/{snapshot-rwppv50t.js → file-retention-jtgyhacv.js} +27 -27
- package/dist/chunks/{snapshot-f4p1w2yj.js → file-retention-jv443j8m.js} +14 -14
- package/dist/chunks/{snapshot-pcc0bmtm.js → file-retention-jy10t676.js} +25 -25
- package/dist/chunks/{snapshot-mbvkkv9q.js → file-retention-jz4cjtb2.js} +4 -4
- package/dist/chunks/{snapshot-pbdpbsbw.js → file-retention-k5qr9t5z.js} +5 -5
- package/dist/chunks/{snapshot-k814nvkf.js → file-retention-k814nvkf.js} +1 -1
- package/dist/chunks/{snapshot-3y5jkgnv.js → file-retention-kd261f9v.js} +11 -11
- package/dist/chunks/{snapshot-fk87wxfh.js → file-retention-kfd0jx8z.js} +20 -20
- package/dist/chunks/{snapshot-y3g4yaer.js → file-retention-kkgp9ksj.js} +35 -35
- package/dist/chunks/{snapshot-m1714858.js → file-retention-m1714858.js} +1 -1
- package/dist/chunks/{snapshot-9ydy8fkm.js → file-retention-m463fjkb.js} +10 -10
- package/dist/chunks/{snapshot-m9w0rfyh.js → file-retention-m9w0rfyh.js} +1 -1
- package/dist/chunks/{snapshot-maspj1v3.js → file-retention-maspj1v3.js} +1 -1
- package/dist/chunks/{snapshot-1nhpz7zk.js → file-retention-mh30raav.js} +4 -4
- package/dist/chunks/{snapshot-vpm8vpz0.js → file-retention-mtpeagzc.js} +3 -3
- package/dist/chunks/{snapshot-n0p0277s.js → file-retention-n0p0277s.js} +1 -1
- package/dist/chunks/{snapshot-4kk5y41y.js → file-retention-n0wndcqz.js} +40 -40
- package/dist/chunks/{snapshot-sxs6dstq.js → file-retention-n2zgan0r.js} +11 -11
- package/dist/chunks/{snapshot-xajebrz9.js → file-retention-na0a39nw.js} +49 -49
- package/dist/chunks/{snapshot-nah043kf.js → file-retention-nah043kf.js} +1 -1
- package/dist/chunks/{snapshot-4v48c47j.js → file-retention-nbkd2rx6.js} +12 -12
- package/dist/chunks/{snapshot-rfwvsy21.js → file-retention-ncfxqt3s.js} +10 -10
- package/dist/chunks/{snapshot-07c3528d.js → file-retention-nf4f45p9.js} +37 -37
- package/dist/chunks/{snapshot-30ee3db1.js → file-retention-nk9akxx5.js} +2 -2
- package/dist/chunks/{snapshot-stzta4q0.js → file-retention-nk9n5r8p.js} +15 -15
- package/dist/chunks/{snapshot-7yect7x1.js → file-retention-nkr5r85d.js} +2 -2
- package/dist/chunks/{snapshot-n3q07mde.js → file-retention-nm20qxyr.js} +20 -20
- package/dist/chunks/{snapshot-bcey06z6.js → file-retention-nrb1vmgh.js} +33 -33
- package/dist/chunks/{snapshot-m8nqxsmt.js → file-retention-ny5fjnrw.js} +20 -20
- package/dist/chunks/{snapshot-p015t6z3.js → file-retention-p015t6z3.js} +2 -2
- package/dist/chunks/{snapshot-nca90r8m.js → file-retention-p4j299q5.js} +17 -17
- package/dist/chunks/{snapshot-5zrxpy3q.js → file-retention-p7vhpwh8.js} +5 -5
- package/dist/chunks/{snapshot-5crety7g.js → file-retention-pc1v25hk.js} +3 -3
- package/dist/chunks/{snapshot-1g4xnxab.js → file-retention-pd5s7czc.js} +11 -11
- package/dist/chunks/{snapshot-c63yzxyg.js → file-retention-pjw5exqh.js} +11 -11
- package/dist/chunks/{snapshot-pknna89w.js → file-retention-pknna89w.js} +1 -1
- package/dist/chunks/{snapshot-tvw5eq5w.js → file-retention-pm973k6d.js} +4 -4
- package/dist/chunks/{snapshot-5js31cy8.js → file-retention-pp47ehpg.js} +4 -4
- package/dist/chunks/{snapshot-a5qg0yvf.js → file-retention-pv64vp27.js} +11 -11
- package/dist/chunks/{snapshot-c547q8a8.js → file-retention-qada39n4.js} +3 -3
- package/dist/chunks/{snapshot-fagjz3hv.js → file-retention-qcv3trs9.js} +9 -9
- package/dist/chunks/{snapshot-ks2yvdq8.js → file-retention-qer95tax.js} +19 -19
- package/dist/chunks/{snapshot-teer94dd.js → file-retention-qgqvdsez.js} +11 -11
- package/dist/chunks/{snapshot-qjgzc4b4.js → file-retention-qjgzc4b4.js} +1 -1
- package/dist/chunks/{snapshot-v67055n8.js → file-retention-qv2ex6zx.js} +14 -14
- package/dist/chunks/{snapshot-j0mfwgby.js → file-retention-qx10fapg.js} +24 -24
- package/dist/chunks/{snapshot-r0yr0wbs.js → file-retention-r0yr0wbs.js} +1 -1
- package/dist/chunks/{snapshot-96te9d4b.js → file-retention-r2jew814.js} +5 -5
- package/dist/chunks/{snapshot-rb9dy4dg.js → file-retention-rb9dy4dg.js} +1 -1
- package/dist/chunks/{snapshot-qrnt2mf5.js → file-retention-rbhan2a8.js} +43 -43
- package/dist/chunks/{snapshot-wrj7qkae.js → file-retention-remxw044.js} +1 -1
- package/dist/chunks/{snapshot-zndjfy4q.js → file-retention-rmd2jjvw.js} +4 -4
- package/dist/chunks/{snapshot-gxket47c.js → file-retention-rqbwb7q3.js} +18 -18
- package/dist/chunks/{snapshot-rt5dr6hb.js → file-retention-rt5dr6hb.js} +1 -1
- package/dist/chunks/{snapshot-3qwxnent.js → file-retention-rw5cqjms.js} +33 -33
- package/dist/chunks/{snapshot-jevs3q22.js → file-retention-ry63fkbp.js} +8 -8
- package/dist/chunks/{snapshot-gkwb1x3r.js → file-retention-s774txbb.js} +37 -37
- package/dist/chunks/{snapshot-9jfbssnq.js → file-retention-s8tktxtj.js} +13 -13
- package/dist/chunks/{snapshot-p9pds4nr.js → file-retention-s9zqy389.js} +8 -8
- package/dist/chunks/{snapshot-r1nmjmkp.js → file-retention-sbexhbnh.js} +11 -11
- package/dist/chunks/{snapshot-x453mv9b.js → file-retention-sdgwjry1.js} +45 -45
- package/dist/chunks/{snapshot-58rbgd2h.js → file-retention-sgj3v8j3.js} +22 -22
- package/dist/chunks/{snapshot-8f85gbek.js → file-retention-sjx4qwkt.js} +13 -13
- package/dist/chunks/{snapshot-c1ny7psb.js → file-retention-spxhva7x.js} +13 -13
- package/dist/chunks/{snapshot-sqjzf8x2.js → file-retention-sqjzf8x2.js} +1 -1
- package/dist/chunks/{snapshot-p180b23n.js → file-retention-t5qy80th.js} +15 -15
- package/dist/chunks/{snapshot-4xz63ymp.js → file-retention-t6qzkm7d.js} +34 -34
- package/dist/chunks/{snapshot-gxj7r0cm.js → file-retention-t9mb6c21.js} +4 -4
- package/dist/chunks/{snapshot-tczq8hjw.js → file-retention-tczq8hjw.js} +1 -1
- package/dist/chunks/{snapshot-xh9mmxn9.js → file-retention-tpdxm5tk.js} +6 -6
- package/dist/chunks/{snapshot-8xa1336w.js → file-retention-tth2ngyv.js} +72 -72
- package/dist/chunks/{snapshot-z642n2d8.js → file-retention-tthyd1ww.js} +12 -12
- package/dist/chunks/{snapshot-tw8zr1ps.js → file-retention-tw8zr1ps.js} +1 -1
- package/dist/chunks/{snapshot-twv2r8f4.js → file-retention-twv2r8f4.js} +2 -2
- package/dist/chunks/{snapshot-r83r493t.js → file-retention-v2bxwf46.js} +34 -34
- package/dist/chunks/{snapshot-v2r1d0zg.js → file-retention-v2r1d0zg.js} +1 -1
- package/dist/chunks/{snapshot-gxrd13cp.js → file-retention-v3t7qrd6.js} +178 -178
- package/dist/chunks/{snapshot-kk6qbz20.js → file-retention-v3vpydwx.js} +22 -22
- package/dist/chunks/{snapshot-f3zns29m.js → file-retention-v70qecbj.js} +15 -15
- package/dist/chunks/{snapshot-qgt613xz.js → file-retention-vb1h3fk1.js} +3 -3
- package/dist/chunks/{snapshot-vd3b3yk9.js → file-retention-vd3b3yk9.js} +1 -1
- package/dist/chunks/{snapshot-wfa3pkfz.js → file-retention-vdrf2z40.js} +27 -27
- package/dist/chunks/{snapshot-veqvce7d.js → file-retention-veqvce7d.js} +1 -1
- package/dist/chunks/{snapshot-vmfhgzt5.js → file-retention-vmfhgzt5.js} +1 -1
- package/dist/chunks/{snapshot-hx3mz2q2.js → file-retention-vq1ppevj.js} +8 -8
- package/dist/chunks/{snapshot-x9s9q40r.js → file-retention-vq7nwj9a.js} +17 -17
- package/dist/chunks/{snapshot-n7bnkb3p.js → file-retention-vrcsa8qx.js} +9 -9
- package/dist/chunks/{snapshot-y3rgpzve.js → file-retention-vw5yqba1.js} +21 -21
- package/dist/chunks/{snapshot-rh14b8v9.js → file-retention-w1j6kydb.js} +11 -11
- package/dist/chunks/{snapshot-vzmjdaw1.js → file-retention-w22yp63b.js} +9 -9
- package/dist/chunks/{snapshot-w3wsvvr9.js → file-retention-w3wsvvr9.js} +1 -1
- package/dist/chunks/{snapshot-wakvkjy4.js → file-retention-wakvkjy4.js} +1 -1
- package/dist/chunks/{snapshot-t4jqr6z5.js → file-retention-wbs5jnf2.js} +7 -7
- package/dist/chunks/{snapshot-wd87259q.js → file-retention-wd87259q.js} +1 -1
- package/dist/chunks/{snapshot-s4gp6xhn.js → file-retention-wetwfxab.js} +23 -23
- package/dist/chunks/{snapshot-nnbr5qt6.js → file-retention-wj0whgje.js} +14 -14
- package/dist/chunks/{snapshot-w71sye8r.js → file-retention-wkcmpner.js} +6 -6
- package/dist/chunks/{snapshot-wqscedq8.js → file-retention-wqscedq8.js} +1 -1
- package/dist/chunks/{snapshot-fznmdakp.js → file-retention-wr3re1en.js} +4 -4
- package/dist/chunks/{snapshot-22whgeeb.js → file-retention-wvskh021.js} +18 -18
- package/dist/chunks/{snapshot-j368hqxn.js → file-retention-wyzcntk3.js} +41 -41
- package/dist/chunks/{snapshot-rsgnsn16.js → file-retention-wz1jcdgb.js} +22 -22
- package/dist/chunks/{snapshot-r8f6rk3c.js → file-retention-wzwsv8q3.js} +8 -8
- package/dist/chunks/{snapshot-1vdntpm3.js → file-retention-x3t9xer4.js} +5 -5
- package/dist/chunks/{snapshot-6tjk5bs4.js → file-retention-x3xjyz42.js} +7 -7
- package/dist/chunks/{snapshot-z6p19xhz.js → file-retention-x43as62j.js} +18 -18
- package/dist/chunks/{snapshot-t0n1m2fz.js → file-retention-x6v8tecr.js} +84 -84
- package/dist/chunks/file-retention-x90fzfq6.js +517 -0
- package/dist/chunks/{snapshot-damdxvc5.js → file-retention-xcbr4qhr.js} +28 -28
- package/dist/chunks/{snapshot-80pwfyqn.js → file-retention-xs35f6gm.js} +16 -16
- package/dist/chunks/{snapshot-henamrq6.js → file-retention-xv753k3w.js} +27 -27
- package/dist/chunks/{snapshot-s7v4tzf9.js → file-retention-xvs21e7s.js} +11 -11
- package/dist/chunks/{snapshot-e5dqjz6v.js → file-retention-y2tacs4v.js} +6 -6
- package/dist/chunks/{snapshot-5kbev7nh.js → file-retention-y31s63n5.js} +3 -3
- package/dist/chunks/{snapshot-75dns9y2.js → file-retention-y81yjmmg.js} +16 -16
- package/dist/chunks/{snapshot-yb20nhc3.js → file-retention-yb20nhc3.js} +1 -1
- package/dist/chunks/{snapshot-pbnk69jw.js → file-retention-yg7ytxzr.js} +11 -11
- package/dist/chunks/{snapshot-z1v7eazc.js → file-retention-yh5vc5ym.js} +29 -29
- package/dist/chunks/{snapshot-01ve1yxr.js → file-retention-yszz6e3t.js} +27 -27
- package/dist/chunks/{snapshot-dds9zz6p.js → file-retention-yydqqga9.js} +4 -4
- package/dist/chunks/{snapshot-xyjma05j.js → file-retention-yyqm007w.js} +9 -9
- package/dist/chunks/{snapshot-z0bkrqjs.js → file-retention-z0bkrqjs.js} +1 -1
- package/dist/chunks/{snapshot-z38nccrw.js → file-retention-z38nccrw.js} +1 -1
- package/dist/chunks/{snapshot-epqefa0z.js → file-retention-z781txa6.js} +5 -5
- package/dist/chunks/{snapshot-99e1pwyw.js → file-retention-zfcxpxqg.js} +56 -56
- package/dist/chunks/{snapshot-fjdpkb6n.js → file-retention-zjrmgn7z.js} +17 -17
- package/dist/chunks/{snapshot-kv3e8w2a.js → file-retention-zjzg4f6c.js} +4 -4
- package/dist/chunks/{snapshot-zkg84ctx.js → file-retention-zkg84ctx.js} +1 -1
- package/dist/chunks/{snapshot-a8azxzn2.js → file-retention-zpr39raf.js} +26 -26
- package/dist/chunks/{snapshot-bzhcfbtm.js → file-retention-zvp9t4zy.js} +35 -35
- 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 +83 -83
- package/dist/config/discovery.js +84 -84
- 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 +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 +104 -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 +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 +89 -89
- 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 +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 +97 -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 +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 +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +100 -100
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +85 -85
- 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 +93 -93
- 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 +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +159 -159
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +109 -109
- package/dist/mcp/instructions.js +132 -132
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- 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 +115 -115
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- 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 +218 -218
- package/dist/plugin/identity.js +3 -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 +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 +114 -114
- 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 +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-context-caps.js +92 -92
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -100
- 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 -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 +351 -351
- 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 +223 -223
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- 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 +138 -138
- package/dist/session/context.js +164 -164
- 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 +224 -224
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +95 -95
- 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 +99 -99
- package/dist/session/message-updater.js +2 -2
- 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 +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +102 -102
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- 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 +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 +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +214 -214
- 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 +13 -13
- package/dist/shell.js +130 -130
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- 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 +139 -139
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -122
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +132 -132
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +114 -114
- 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 +12 -12
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -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 +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +1 -1
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +86 -86
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- 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 +100 -100
- package/package.json +8 -8
- package/dist/chunks/snapshot-4a4jqpwz.js +0 -257
- package/dist/chunks/snapshot-a610t88q.js +0 -18
- package/dist/chunks/snapshot-cyy23x7w.js +0 -517
- package/dist/chunks/snapshot-ps2yext1.js +0 -26
- /package/dist/chunks/{snapshot-0qkdqm5v.js → file-retention-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{snapshot-0zkw76rk.js → file-retention-0zkw76rk.js} +0 -0
- /package/dist/chunks/{snapshot-17cy0kzp.js → file-retention-17cy0kzp.js} +0 -0
- /package/dist/chunks/{snapshot-1cnp2v09.js → file-retention-1cnp2v09.js} +0 -0
- /package/dist/chunks/{snapshot-24dcb14g.js → file-retention-24dcb14g.js} +0 -0
- /package/dist/chunks/{snapshot-2710q6r3.js → file-retention-2710q6r3.js} +0 -0
- /package/dist/chunks/{snapshot-2bv980vf.js → file-retention-2bv980vf.js} +0 -0
- /package/dist/chunks/{snapshot-2c3vjs8z.js → file-retention-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{snapshot-359p4xyc.js → file-retention-359p4xyc.js} +0 -0
- /package/dist/chunks/{snapshot-3asan66x.js → file-retention-3asan66x.js} +0 -0
- /package/dist/chunks/{snapshot-3v8g72cx.js → file-retention-3v8g72cx.js} +0 -0
- /package/dist/chunks/{snapshot-3wcehsnq.js → file-retention-3wcehsnq.js} +0 -0
- /package/dist/chunks/{snapshot-43n2bw4t.js → file-retention-43n2bw4t.js} +0 -0
- /package/dist/chunks/{snapshot-4knz6hnm.js → file-retention-4knz6hnm.js} +0 -0
- /package/dist/chunks/{snapshot-4vcrnpx2.js → file-retention-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{snapshot-4y7fprxs.js → file-retention-4y7fprxs.js} +0 -0
- /package/dist/chunks/{snapshot-53557ph1.js → file-retention-53557ph1.js} +0 -0
- /package/dist/chunks/{snapshot-550bvhaj.js → file-retention-550bvhaj.js} +0 -0
- /package/dist/chunks/{snapshot-5fjb7ams.js → file-retention-5fjb7ams.js} +0 -0
- /package/dist/chunks/{snapshot-5qd3pb7m.js → file-retention-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{snapshot-6prwharc.js → file-retention-6prwharc.js} +0 -0
- /package/dist/chunks/{snapshot-6q2bdcd1.js → file-retention-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{snapshot-7akdwqpd.js → file-retention-7akdwqpd.js} +0 -0
- /package/dist/chunks/{snapshot-7m9af43g.js → file-retention-7m9af43g.js} +0 -0
- /package/dist/chunks/{snapshot-822emrt2.js → file-retention-822emrt2.js} +0 -0
- /package/dist/chunks/{snapshot-84wd9syh.js → file-retention-84wd9syh.js} +0 -0
- /package/dist/chunks/{snapshot-88xbtdfr.js → file-retention-88xbtdfr.js} +0 -0
- /package/dist/chunks/{snapshot-8n3pysct.js → file-retention-8n3pysct.js} +0 -0
- /package/dist/chunks/{snapshot-8wj87zfr.js → file-retention-8wj87zfr.js} +0 -0
- /package/dist/chunks/{snapshot-9a4afbnw.js → file-retention-9a4afbnw.js} +0 -0
- /package/dist/chunks/{snapshot-9rqn6x4v.js → file-retention-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{snapshot-a058387c.js → file-retention-a058387c.js} +0 -0
- /package/dist/chunks/{snapshot-a6k6eb26.js → file-retention-a6k6eb26.js} +0 -0
- /package/dist/chunks/{snapshot-af5trqkr.js → file-retention-af5trqkr.js} +0 -0
- /package/dist/chunks/{snapshot-afrmfg78.js → file-retention-afrmfg78.js} +0 -0
- /package/dist/chunks/{snapshot-aqzs7mqg.js → file-retention-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{snapshot-atq7p7m5.js → file-retention-atq7p7m5.js} +0 -0
- /package/dist/chunks/{snapshot-bkyjaxrp.js → file-retention-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{snapshot-bmr6ed5q.js → file-retention-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{snapshot-cf4snx6d.js → file-retention-cf4snx6d.js} +0 -0
- /package/dist/chunks/{snapshot-cvy3z8tj.js → file-retention-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{snapshot-d9fn303g.js → file-retention-d9fn303g.js} +0 -0
- /package/dist/chunks/{snapshot-d9jj8t3e.js → file-retention-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{snapshot-dajrwvna.js → file-retention-dajrwvna.js} +0 -0
- /package/dist/chunks/{snapshot-dap0rakb.js → file-retention-dap0rakb.js} +0 -0
- /package/dist/chunks/{snapshot-df08tz66.js → file-retention-df08tz66.js} +0 -0
- /package/dist/chunks/{snapshot-dy18nga0.js → file-retention-dy18nga0.js} +0 -0
- /package/dist/chunks/{snapshot-e5kj55wp.js → file-retention-e5kj55wp.js} +0 -0
- /package/dist/chunks/{snapshot-e73j6tqm.js → file-retention-e73j6tqm.js} +0 -0
- /package/dist/chunks/{snapshot-ec1grn59.js → file-retention-ec1grn59.js} +0 -0
- /package/dist/chunks/{snapshot-eh3zwz77.js → file-retention-eh3zwz77.js} +0 -0
- /package/dist/chunks/{snapshot-emrn6kk6.js → file-retention-emrn6kk6.js} +0 -0
- /package/dist/chunks/{snapshot-f0mxakyp.js → file-retention-f0mxakyp.js} +0 -0
- /package/dist/chunks/{snapshot-f6n9ztr4.js → file-retention-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{snapshot-faypxj3z.js → file-retention-faypxj3z.js} +0 -0
- /package/dist/chunks/{snapshot-fd410y7t.js → file-retention-fd410y7t.js} +0 -0
- /package/dist/chunks/{snapshot-g4wezp1m.js → file-retention-g4wezp1m.js} +0 -0
- /package/dist/chunks/{snapshot-g86h250q.js → file-retention-g86h250q.js} +0 -0
- /package/dist/chunks/{snapshot-gebd4c9n.js → file-retention-gebd4c9n.js} +0 -0
- /package/dist/chunks/{snapshot-gftt206x.js → file-retention-gftt206x.js} +0 -0
- /package/dist/chunks/{snapshot-hcxmzztb.js → file-retention-hcxmzztb.js} +0 -0
- /package/dist/chunks/{snapshot-hk9envan.js → file-retention-hk9envan.js} +0 -0
- /package/dist/chunks/{snapshot-j2ntwpah.js → file-retention-j2ntwpah.js} +0 -0
- /package/dist/chunks/{snapshot-j5zkgpj8.js → file-retention-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{snapshot-jjkms2e6.js → file-retention-jjkms2e6.js} +0 -0
- /package/dist/chunks/{snapshot-jr7sbwjy.js → file-retention-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{snapshot-jwfs4k6c.js → file-retention-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{snapshot-jze0r7bz.js → file-retention-jze0r7bz.js} +0 -0
- /package/dist/chunks/{snapshot-jzg6c2d5.js → file-retention-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{snapshot-m18g726c.js → file-retention-m18g726c.js} +0 -0
- /package/dist/chunks/{snapshot-mp448xyj.js → file-retention-mp448xyj.js} +0 -0
- /package/dist/chunks/{snapshot-msx8hqn2.js → file-retention-msx8hqn2.js} +0 -0
- /package/dist/chunks/{snapshot-n05xt0ee.js → file-retention-n05xt0ee.js} +0 -0
- /package/dist/chunks/{snapshot-n3j8tn72.js → file-retention-n3j8tn72.js} +0 -0
- /package/dist/chunks/{snapshot-njntx4h6.js → file-retention-njntx4h6.js} +0 -0
- /package/dist/chunks/{snapshot-pkyv6v7h.js → file-retention-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{snapshot-q3sfg36h.js → file-retention-q3sfg36h.js} +0 -0
- /package/dist/chunks/{snapshot-q74kybfr.js → file-retention-q74kybfr.js} +0 -0
- /package/dist/chunks/{snapshot-qaymkmh1.js → file-retention-qaymkmh1.js} +0 -0
- /package/dist/chunks/{snapshot-qb87gjwd.js → file-retention-qb87gjwd.js} +0 -0
- /package/dist/chunks/{snapshot-qfa1cgps.js → file-retention-qfa1cgps.js} +0 -0
- /package/dist/chunks/{snapshot-qg3g05ea.js → file-retention-qg3g05ea.js} +0 -0
- /package/dist/chunks/{snapshot-qrg20bc0.js → file-retention-qrg20bc0.js} +0 -0
- /package/dist/chunks/{snapshot-rcb2kzg1.js → file-retention-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{snapshot-sdp7kfr6.js → file-retention-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{snapshot-ssg3fenm.js → file-retention-ssg3fenm.js} +0 -0
- /package/dist/chunks/{snapshot-ve7vex1e.js → file-retention-ve7vex1e.js} +0 -0
- /package/dist/chunks/{snapshot-w803qqfp.js → file-retention-w803qqfp.js} +0 -0
- /package/dist/chunks/{snapshot-wc3fc9cn.js → file-retention-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{snapshot-wer8tq1h.js → file-retention-wer8tq1h.js} +0 -0
- /package/dist/chunks/{snapshot-wjj7prxr.js → file-retention-wjj7prxr.js} +0 -0
- /package/dist/chunks/{snapshot-wtztk69x.js → file-retention-wtztk69x.js} +0 -0
- /package/dist/chunks/{snapshot-x0ckcb58.js → file-retention-x0ckcb58.js} +0 -0
- /package/dist/chunks/{snapshot-x61499pn.js → file-retention-x61499pn.js} +0 -0
- /package/dist/chunks/{snapshot-y44na4kk.js → file-retention-y44na4kk.js} +0 -0
- /package/dist/chunks/{snapshot-y8f7s663.js → file-retention-y8f7s663.js} +0 -0
- /package/dist/chunks/{snapshot-ygaqb7jw.js → file-retention-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{snapshot-ym463w8f.js → file-retention-ym463w8f.js} +0 -0
- /package/dist/chunks/{snapshot-z5v4ffb3.js → file-retention-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{snapshot-z9919s4g.js → file-retention-z9919s4g.js} +0 -0
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service67
|
|
3
|
+
} from "./file-retention-etzytfjk.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service14,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-retention-s8tktxtj.js";
|
|
9
9
|
import {
|
|
10
10
|
Service15
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-x3xjyz42.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service76
|
|
14
|
+
} from "./file-retention-1b000e53.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service75
|
|
17
|
+
} from "./file-retention-rqbwb7q3.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-retention-6prwharc.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
|
-
Input: () =>
|
|
29
|
-
Output: () =>
|
|
30
|
-
Plugin: () =>
|
|
28
|
+
Input: () => Input7,
|
|
29
|
+
Output: () => Output6,
|
|
30
|
+
Plugin: () => Plugin43,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
|
-
name: () =>
|
|
33
|
-
toModelContent: () =>
|
|
32
|
+
name: () => name7,
|
|
33
|
+
toModelContent: () => toModelContent4
|
|
34
34
|
});
|
|
35
35
|
import { ToolFailure } from "@opencode/ai";
|
|
36
36
|
import { Effect, Schema } from "effect";
|
|
37
37
|
import { Bom } from "@opencode/util/bom";
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var name7 = "write";
|
|
39
|
+
var Input7 = Schema.Struct({
|
|
40
40
|
path: Schema.String.annotate({
|
|
41
41
|
description: "Path to the file to write to"
|
|
42
42
|
}),
|
|
43
43
|
content: Schema.String.annotate({ description: "Content to write to the file" })
|
|
44
44
|
});
|
|
45
|
-
var
|
|
45
|
+
var Output6 = Schema.Struct({
|
|
46
46
|
operation: Schema.Literal("write"),
|
|
47
47
|
target: Schema.String,
|
|
48
48
|
resource: Schema.String,
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var toModelContent4 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
+
var Plugin43 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
55
|
+
const access = yield* Service75;
|
|
56
|
+
const fileMutation = yield* Service14;
|
|
57
|
+
const environment = yield* Service67;
|
|
58
58
|
const formatter = yield* Service15;
|
|
59
|
-
const permission = yield*
|
|
59
|
+
const permission = yield* Service76;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
|
-
name:
|
|
61
|
+
name: name7,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
63
63
|
description: `Writes a file to the local filesystem, overwriting if one exists.
|
|
64
64
|
|
|
65
65
|
Missing parent directories are created automatically.
|
|
66
66
|
|
|
67
67
|
Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
|
|
68
|
-
input:
|
|
69
|
-
output:
|
|
68
|
+
input: Input7,
|
|
69
|
+
output: Output6,
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
const source = {
|
|
72
72
|
type: "tool",
|
|
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
93
93
|
yield* syncTextBom2(environment.files, target.absolute, bom);
|
|
94
94
|
}
|
|
95
95
|
return result;
|
|
96
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
96
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent4(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
97
97
|
})).pipe(Effect.orDie);
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { name7, Input7, Output6, toModelContent4, Plugin43, exports_write };
|
|
@@ -5,24 +5,24 @@ import {
|
|
|
5
5
|
emptyPatch2,
|
|
6
6
|
splitGitPatch2,
|
|
7
7
|
chunksByFile2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-retention-rb9dy4dg.js";
|
|
9
9
|
import {
|
|
10
10
|
gitExecutable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./file-retention-ef5x83kb.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service82
|
|
14
|
+
} from "./file-retention-3xbbjsgy.js";
|
|
15
15
|
import {
|
|
16
16
|
DiffError2
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./file-retention-706d41vq.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/plugin/vcs/git.ts
|
|
23
23
|
var exports_git = {};
|
|
24
24
|
__export(exports_git, {
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin7,
|
|
26
26
|
VcsGitPlugin: () => exports_git
|
|
27
27
|
});
|
|
28
28
|
import { randomUUID } from "crypto";
|
|
@@ -33,10 +33,10 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
import { ChildProcess } from "effect/process";
|
|
35
35
|
import { AppProcess } from "@opencode/util/process";
|
|
36
|
-
var
|
|
36
|
+
var Plugin7 = define({
|
|
37
37
|
id: "opencode.vcs.git",
|
|
38
38
|
effect: Effect.fn("VcsGitPlugin")(function* (ctx) {
|
|
39
|
-
const location = yield*
|
|
39
|
+
const location = yield* Service82;
|
|
40
40
|
if (location.vcs && location.vcs.type !== "git")
|
|
41
41
|
return;
|
|
42
42
|
const processes = yield* AppProcess.Service;
|
|
@@ -553,4 +553,4 @@ var track = Effect.fnUntraced(function* (ctx, ref, options) {
|
|
|
553
553
|
return yield* diffAgainstRef(ctx, ref, options);
|
|
554
554
|
});
|
|
555
555
|
|
|
556
|
-
export {
|
|
556
|
+
export { Plugin7, exports_git };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service26,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service26 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service26.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service26, awaitActivation2, exports_service };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service74
|
|
3
|
+
} from "./file-retention-1thmyanr.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service76
|
|
6
|
+
} from "./file-retention-1b000e53.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input14,
|
|
16
16
|
Output: () => Output10,
|
|
17
17
|
Plugin: () => Plugin51,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
19
19
|
description: () => description6,
|
|
20
|
-
name: () =>
|
|
20
|
+
name: () => name14,
|
|
21
21
|
toModelContent: () => toModelContent7
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
25
|
import { Question } from "@opencode/schema/question";
|
|
26
|
-
var
|
|
26
|
+
var name14 = "question";
|
|
27
27
|
var description6 = `Use this tool when you need to ask the user questions during execution. This allows you to:
|
|
28
28
|
1. Gather user preferences or requirements
|
|
29
29
|
2. Clarify ambiguous instructions
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input14 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output10 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin51 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service74;
|
|
57
|
+
const permission = yield* Service76;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
|
-
name:
|
|
59
|
+
name: name14,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input14,
|
|
63
63
|
output: Output10,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -117,4 +117,4 @@ function toField(question, index) {
|
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
export {
|
|
120
|
+
export { name14, description6, Input14, Output10, CancelledError2, toModelContent7, Plugin51, exports_question };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./file-retention-byrp127m.js";
|
|
5
5
|
import {
|
|
6
6
|
PATCH_CONTEXT_LINES2,
|
|
7
7
|
MAX_TOTAL_PATCH_BYTES2,
|
|
8
8
|
emptyPatch2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-retention-rb9dy4dg.js";
|
|
10
10
|
import {
|
|
11
11
|
root2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-retention-10s4rp80.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service82,
|
|
15
|
+
node86
|
|
16
|
+
} from "./file-retention-3xbbjsgy.js";
|
|
17
17
|
import {
|
|
18
18
|
reconcile2,
|
|
19
19
|
create3
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./file-retention-vd3b3yk9.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/vcs.ts
|
|
26
26
|
var exports_vcs = {};
|
|
@@ -29,18 +29,18 @@ __export(exports_vcs, {
|
|
|
29
29
|
BranchList: () => BranchList2,
|
|
30
30
|
DiffError: () => DiffError2,
|
|
31
31
|
FileStatus: () => FileStatus2,
|
|
32
|
-
Info: () =>
|
|
32
|
+
Info: () => Info4,
|
|
33
33
|
InitializeError: () => InitializeError2,
|
|
34
34
|
Mode: () => Mode2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service18,
|
|
36
36
|
Vcs: () => exports_vcs,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node21
|
|
38
38
|
});
|
|
39
39
|
import path from "path";
|
|
40
40
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
41
41
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
42
42
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
43
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
43
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info4, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
44
44
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
45
45
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
46
46
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -54,12 +54,12 @@ class InitializeError2 extends Schema.TaggedError()("Vcs.InitializeError", {
|
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service18 extends Context.Service()("@opencode/Vcs") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
60
60
|
const fs = yield* FSUtil.Service;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const bus = yield*
|
|
61
|
+
const location = yield* Service82;
|
|
62
|
+
const bus = yield* Service85;
|
|
63
63
|
const root = yield* Effect.scope;
|
|
64
64
|
const fork = yield* FiberSet.makeRuntime();
|
|
65
65
|
const vcs = location.vcs;
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
71
71
|
canonical: location.project.canonical,
|
|
72
72
|
...vcs ? { store: vcs.store } : {}
|
|
73
73
|
};
|
|
74
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
74
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info4));
|
|
75
75
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
76
76
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
77
77
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
129
129
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
130
130
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
131
131
|
}
|
|
132
|
-
return
|
|
132
|
+
return Service18.of({
|
|
133
133
|
transform: state.transform,
|
|
134
134
|
reload: state.reload,
|
|
135
135
|
initialize: Effect.fn("Vcs.initialize")(function* (providerID) {
|
|
@@ -187,10 +187,10 @@ var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
|
187
187
|
})
|
|
188
188
|
});
|
|
189
189
|
}));
|
|
190
|
-
var
|
|
191
|
-
service:
|
|
190
|
+
var node21 = makeLocationNode({
|
|
191
|
+
service: Service18,
|
|
192
192
|
layer,
|
|
193
|
-
deps: [FSUtil.node,
|
|
193
|
+
deps: [FSUtil.node, node86, node89]
|
|
194
194
|
});
|
|
195
195
|
|
|
196
|
-
export { Base2, BranchList2, FileStatus2,
|
|
196
|
+
export { Base2, BranchList2, FileStatus2, Info4, Mode2, DiffError2, InitializeError2, Service18, node21, exports_vcs };
|
|
@@ -2,31 +2,31 @@ import {
|
|
|
2
2
|
Resource2,
|
|
3
3
|
ResourceTemplate2,
|
|
4
4
|
ResourceContent2,
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service32
|
|
6
|
+
} from "./file-retention-1mn7gzbb.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service76
|
|
9
|
+
} from "./file-retention-1b000e53.js";
|
|
10
10
|
import {
|
|
11
11
|
MEDIA_MIMES2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-retention-bn42ez4f.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-retention-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: () => Plugin40
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
|
-
var
|
|
25
|
+
var Plugin40 = {
|
|
26
26
|
id: "opencode.tools.mcp-resources",
|
|
27
27
|
effect: Effect.fn("McpResourceTools.Plugin")(function* (ctx) {
|
|
28
|
-
const mcp = yield*
|
|
29
|
-
const permission = yield*
|
|
28
|
+
const mcp = yield* Service32;
|
|
29
|
+
const permission = yield* Service76;
|
|
30
30
|
yield* ctx.tool.transform((editor) => {
|
|
31
31
|
editor.add({
|
|
32
32
|
name: "list_mcp_resources",
|
|
@@ -96,4 +96,4 @@ var Plugin21 = {
|
|
|
96
96
|
})
|
|
97
97
|
};
|
|
98
98
|
|
|
99
|
-
export {
|
|
99
|
+
export { Plugin40, exports_mcp_resource };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
Service82,
|
|
4
|
-
node86
|
|
5
|
-
} from "./snapshot-146q7e0b.js";
|
|
6
|
-
import {
|
|
7
3
|
Service85,
|
|
8
4
|
node89
|
|
9
|
-
} from "./
|
|
5
|
+
} from "./file-retention-byrp127m.js";
|
|
6
|
+
import {
|
|
7
|
+
Service64,
|
|
8
|
+
node67
|
|
9
|
+
} from "./file-retention-ncfxqt3s.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./file-retention-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/wellknown.ts
|
|
15
15
|
var exports_wellknown = {};
|
|
16
16
|
__export(exports_wellknown, {
|
|
17
17
|
Auth: () => Auth2,
|
|
18
18
|
Config: () => Config2,
|
|
19
|
-
Event: () =>
|
|
19
|
+
Event: () => Event7,
|
|
20
20
|
Manifest: () => Manifest2,
|
|
21
21
|
RemoteConfig: () => RemoteConfig2,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service53,
|
|
23
23
|
WellKnown: () => exports_wellknown,
|
|
24
24
|
inspect: () => inspect2,
|
|
25
|
-
node: () =>
|
|
26
|
-
resolve: () =>
|
|
25
|
+
node: () => node56,
|
|
26
|
+
resolve: () => resolve2
|
|
27
27
|
});
|
|
28
28
|
import { Integration } from "@opencode/schema/integration";
|
|
29
29
|
import { Context, Effect, Layer, Ref, Schema, Semaphore } from "effect";
|
|
@@ -46,9 +46,9 @@ var Manifest2 = Schema.Struct({
|
|
|
46
46
|
remote_config: Schema.optional(RemoteConfig2)
|
|
47
47
|
}).annotate({ identifier: "WellKnown.Manifest" });
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service53 extends Context.Service()("@opencode/WellKnown") {
|
|
50
50
|
}
|
|
51
|
-
var
|
|
51
|
+
var Event7 = {
|
|
52
52
|
Updated: ephemeral2({ type: "wellknown.updated", schema: {} })
|
|
53
53
|
};
|
|
54
54
|
var requestTimeout = "15 seconds";
|
|
@@ -57,7 +57,7 @@ var inspect2 = Effect.fn("WellKnown.inspect")(function* (origin) {
|
|
|
57
57
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
58
58
|
return yield* http.execute(HttpClientRequest.get(url).pipe(HttpClientRequest.acceptJson)).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Manifest2)), Effect.timeout(requestTimeout), Effect.mapError((cause) => new Error(`Failed to load wellknown manifest from ${url}`, { cause })));
|
|
59
59
|
});
|
|
60
|
-
var
|
|
60
|
+
var resolve2 = Effect.fn("WellKnown.resolve")(function* (input) {
|
|
61
61
|
const manifest = yield* inspect2(input.origin);
|
|
62
62
|
return yield* resolveEntry({ origin: input.origin, integrationID: Integration.ID.make(input.origin.replace(/\/+$/, "")), manifest }, input.variables ?? {});
|
|
63
63
|
});
|
|
@@ -79,10 +79,10 @@ var Sources = Schema.Array(Schema.String);
|
|
|
79
79
|
var manifestKey = (origin) => `wellknown:manifest:${origin}`;
|
|
80
80
|
var configKey = (origin) => `wellknown:config:${origin}`;
|
|
81
81
|
var Configs = Schema.Array(Config2);
|
|
82
|
-
var layer = Layer.effect(
|
|
82
|
+
var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
83
83
|
const http = yield* HttpClient.HttpClient;
|
|
84
|
-
const kv = yield*
|
|
85
|
-
const bus = yield*
|
|
84
|
+
const kv = yield* Service64;
|
|
85
|
+
const bus = yield* Service85;
|
|
86
86
|
const cache = yield* Ref.make(new Map);
|
|
87
87
|
const lock = Semaphore.makeUnsafe(1);
|
|
88
88
|
const loadEntry = Effect.fn("WellKnown.loadEntry")(function* (origin) {
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
113
113
|
if (!changed)
|
|
114
114
|
return false;
|
|
115
115
|
yield* Ref.set(cache, next);
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event7.Updated, {}, { global: true });
|
|
117
117
|
return true;
|
|
118
118
|
}, (effect) => lock.withPermit(effect));
|
|
119
|
-
return
|
|
119
|
+
return Service53.of({
|
|
120
120
|
entries: load,
|
|
121
121
|
snapshot: () => Array.from(Ref.getUnsafe(cache).values()),
|
|
122
122
|
refresh,
|
|
@@ -129,7 +129,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
129
129
|
const origins = Schema.is(Sources)(sources) ? sources : [];
|
|
130
130
|
yield* kv.set(sourcesKey, Array.from(new Set([...origins, origin])));
|
|
131
131
|
yield* Ref.update(cache, (current) => new Map(current).set(origin, entry));
|
|
132
|
-
yield* bus.publish(
|
|
132
|
+
yield* bus.publish(Event7.Updated, {}, { global: true });
|
|
133
133
|
return entry;
|
|
134
134
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
135
135
|
remove: Effect.fn("WellKnown.remove")(function* (value) {
|
|
@@ -144,7 +144,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
144
144
|
next.delete(origin);
|
|
145
145
|
return next;
|
|
146
146
|
});
|
|
147
|
-
yield* bus.publish(
|
|
147
|
+
yield* bus.publish(Event7.Updated, {}, { global: true });
|
|
148
148
|
}, (effect, _value) => lock.withPermit(effect)),
|
|
149
149
|
resolve: Effect.fn("WellKnown.resolveEntry")(function* (entry, variables) {
|
|
150
150
|
const configs = yield* resolveEntry(entry, variables).pipe(Effect.provideService(HttpClient.HttpClient, http));
|
|
@@ -157,6 +157,6 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
157
157
|
})
|
|
158
158
|
});
|
|
159
159
|
}));
|
|
160
|
-
var
|
|
160
|
+
var node56 = makeGlobalNode({ service: Service53, layer, deps: [httpClient, node67, node89] });
|
|
161
161
|
|
|
162
|
-
export { Auth2, RemoteConfig2, Config2, Manifest2,
|
|
162
|
+
export { Auth2, RemoteConfig2, Config2, Manifest2, Service53, Event7, inspect2, resolve2, node56, exports_wellknown };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-retention-n2zgan0r.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./file-retention-byrp127m.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event16,
|
|
10
|
+
Service73
|
|
11
|
+
} from "./file-retention-rw5cqjms.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID9,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-retention-jjyvd6es.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID8,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./file-retention-b69pzmrp.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID7,
|
|
22
22
|
VariantID2,
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info17
|
|
24
|
+
} from "./file-retention-kkgp9ksj.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./file-retention-yb20nhc3.js";
|
|
29
29
|
import {
|
|
30
30
|
get5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-retention-3nnrz6f6.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-retention-tpdxm5tk.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
|
|
|
43
43
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
|
-
var providerID =
|
|
47
|
-
var integrationID =
|
|
46
|
+
var providerID = ID8.openai;
|
|
47
|
+
var integrationID = ID9.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -179,8 +179,8 @@ function listen(server) {
|
|
|
179
179
|
var ChatGPTPlugin2 = define({
|
|
180
180
|
id: "opencode.provider.chatgpt",
|
|
181
181
|
effect: Effect.fn(function* (ctx) {
|
|
182
|
-
const bus = yield*
|
|
183
|
-
const credentials = yield*
|
|
182
|
+
const bus = yield* Service85;
|
|
183
|
+
const credentials = yield* Service73;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let chatgpt;
|
|
186
186
|
let source;
|
|
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
|
|
|
195
195
|
yield* ctx.integration.transform((editor) => {
|
|
196
196
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
197
197
|
});
|
|
198
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
198
|
+
yield* Effect.forEach(yield* credentials.list(ID9.make("openai")), (entry) => {
|
|
199
199
|
const value = entry.value;
|
|
200
200
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
201
201
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var ChatGPTPlugin2 = define({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
271
|
-
yield* bus.subscribe(
|
|
271
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
274
|
function headers(app) {
|
|
@@ -325,7 +325,7 @@ function deriveModels2(remote, existing) {
|
|
|
325
325
|
const found = byID.get(model.modelID);
|
|
326
326
|
return found ? [deriveModel(found, model)] : [];
|
|
327
327
|
}),
|
|
328
|
-
...remote.filter((model) => !known.has(
|
|
328
|
+
...remote.filter((model) => !known.has(ID7.make(model.slug))).map((model) => deriveModel(model, Info17.default(ID8.openai, ID7.make(model.slug))))
|
|
329
329
|
];
|
|
330
330
|
}
|
|
331
331
|
function deriveModel(remote, previous) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getTableColumnsRuntime2,
|
|
3
3
|
orderSelectedFields2,
|
|
4
4
|
mapUpdateSet2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-retention-emrn6kk6.js";
|
|
6
6
|
|
|
7
7
|
// src/database/drizzle/sqlite-core/effect/insert.ts
|
|
8
8
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|