@opencode/core 0.0.0-dev-449 → 0.0.0-dev-455
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/agent.js +76 -76
- package/dist/aisdk-native.js +79 -79
- package/dist/aisdk.js +84 -84
- package/dist/app.js +7 -7
- package/dist/artifact.js +191 -191
- package/dist/bus.js +69 -69
- package/dist/chunks/{file-retention-me8mm9z9.js → file-retention-05aqx4at.js} +47 -47
- package/dist/chunks/{file-retention-kx9qtpmv.js → file-retention-06w90rm1.js} +15 -15
- package/dist/chunks/{file-retention-nyra3b4e.js → file-retention-0aycggmx.js} +19 -19
- package/dist/chunks/{file-retention-3tfpa1a4.js → file-retention-0bhp1jsg.js} +17 -17
- package/dist/chunks/{file-retention-3th5y0xn.js → file-retention-0cwqm0ac.js} +37 -37
- package/dist/chunks/{file-retention-m7ykyrbv.js → file-retention-0jstpsmh.js} +21 -21
- package/dist/chunks/{file-retention-emaa4905.js → file-retention-0r7m7rz3.js} +12 -12
- package/dist/chunks/{file-retention-gxahm4xg.js → file-retention-0wcgapck.js} +4 -4
- package/dist/chunks/{file-retention-a0vapen2.js → file-retention-1gep6f7s.js} +7 -7
- package/dist/chunks/{file-retention-7th9pvxb.js → file-retention-1pd9p4zg.js} +22 -22
- package/dist/chunks/{file-retention-hecddnr3.js → file-retention-1phbxqt1.js} +1 -1
- package/dist/chunks/{file-retention-dqxhv1nb.js → file-retention-1pq4mddz.js} +18 -18
- package/dist/chunks/{file-retention-djp2yf7t.js → file-retention-1tdxr5p7.js} +29 -29
- package/dist/chunks/{file-retention-ybws1qgk.js → file-retention-1v2g13eq.js} +2 -2
- package/dist/chunks/file-retention-1v8gr36j.js +261 -0
- package/dist/chunks/{file-retention-5zgc43gz.js → file-retention-200qe1b4.js} +15 -15
- package/dist/chunks/{file-retention-1scgcwfj.js → file-retention-2cdjxzfg.js} +2 -2
- package/dist/chunks/{file-retention-qfbjs7tc.js → file-retention-2dfh1hr2.js} +28 -28
- package/dist/chunks/{file-retention-z4qfpq4d.js → file-retention-2n7mmhny.js} +20 -20
- package/dist/chunks/{file-retention-s1ba0vj0.js → file-retention-2p60zmnr.js} +1 -1
- package/dist/chunks/{file-retention-60m2sppj.js → file-retention-2ydq151f.js} +12 -12
- package/dist/chunks/{file-retention-xzb1rrrv.js → file-retention-30asjkfk.js} +11 -11
- package/dist/chunks/file-retention-3aarzgek.js +26 -0
- package/dist/chunks/{file-retention-y8y3xh3s.js → file-retention-3d3mj0t0.js} +356 -356
- package/dist/chunks/{file-retention-ys7rp9j6.js → file-retention-3g1e149e.js} +13 -13
- package/dist/chunks/{file-retention-a95pzf1x.js → file-retention-3gvmrzme.js} +34 -34
- package/dist/chunks/{file-retention-gve1ghrf.js → file-retention-3kr3r5pw.js} +1 -1
- package/dist/chunks/{file-retention-kx4857fp.js → file-retention-3nfqphsz.js} +27 -27
- package/dist/chunks/{file-retention-j3f8hyeg.js → file-retention-3ryz99p0.js} +3 -3
- package/dist/chunks/{file-retention-7kjy5yhf.js → file-retention-3zhtqa8b.js} +10 -10
- package/dist/chunks/{file-retention-jxd6f16v.js → file-retention-44pmzq9c.js} +1 -1
- package/dist/chunks/{file-retention-vatt5ny9.js → file-retention-496yft2b.js} +6 -6
- package/dist/chunks/{file-retention-0yn3ka5j.js → file-retention-4angwywx.js} +18 -18
- package/dist/chunks/{file-retention-b6prfk3g.js → file-retention-4aqrmm1g.js} +1 -1
- package/dist/chunks/{file-retention-3dpbtckw.js → file-retention-4gggmape.js} +1 -1
- package/dist/chunks/{file-retention-gf5d3kfh.js → file-retention-4pa2br34.js} +37 -37
- package/dist/chunks/{file-retention-cn4qtwde.js → file-retention-4pmefyym.js} +30 -30
- package/dist/chunks/{file-retention-sakzxw8a.js → file-retention-4s01kztf.js} +7 -7
- package/dist/chunks/{file-retention-9kgghjmg.js → file-retention-4whyrg43.js} +5 -5
- package/dist/chunks/{file-retention-7gaksq79.js → file-retention-4xape4ax.js} +19 -19
- package/dist/chunks/{file-retention-07mz05rb.js → file-retention-4yazknq3.js} +47 -47
- package/dist/chunks/{file-retention-pb6wsrs5.js → file-retention-55mjyme4.js} +3 -3
- package/dist/chunks/{file-retention-61c892db.js → file-retention-581r698v.js} +1 -1
- package/dist/chunks/{file-retention-34cvy9ct.js → file-retention-5b8228w4.js} +11 -11
- package/dist/chunks/{file-retention-433pf4gj.js → file-retention-5cfjc002.js} +81 -81
- package/dist/chunks/{file-retention-8qcax5vp.js → file-retention-5em2n0xv.js} +31 -31
- package/dist/chunks/{file-retention-g6nneh33.js → file-retention-5ewy4ftf.js} +34 -34
- package/dist/chunks/{file-retention-rt7n98jb.js → file-retention-5j4z2rnn.js} +20 -20
- package/dist/chunks/{file-retention-7vk0t554.js → file-retention-5m3xrn1j.js} +7 -7
- package/dist/chunks/{file-retention-aedrg0ge.js → file-retention-5qg32bbs.js} +23 -23
- package/dist/chunks/{file-retention-kdcv3xak.js → file-retention-5s9wkzxm.js} +16 -16
- package/dist/chunks/{file-retention-28nhxqg9.js → file-retention-5td38wnz.js} +13 -13
- package/dist/chunks/{file-retention-1yq9hg58.js → file-retention-5zrxpy3q.js} +4 -4
- package/dist/chunks/{file-retention-78p2h4ex.js → file-retention-61qraad9.js} +3 -3
- package/dist/chunks/{file-retention-6nkv0fkw.js → file-retention-650f1sfx.js} +9 -9
- package/dist/chunks/{file-retention-qzdnvnff.js → file-retention-68qb3djy.js} +8 -8
- package/dist/chunks/{file-retention-acpwnfxs.js → file-retention-68tk6k3r.js} +11 -11
- package/dist/chunks/{file-retention-yc2h06fb.js → file-retention-68tn9ypg.js} +12 -12
- package/dist/chunks/{file-retention-4awjamkd.js → file-retention-6sg7v011.js} +1 -1
- package/dist/chunks/{file-retention-mr07ez2r.js → file-retention-6xnqn21j.js} +5 -5
- package/dist/chunks/{file-retention-kpkf4881.js → file-retention-6xwywkh7.js} +19 -13
- package/dist/chunks/{file-retention-hwq2cs9e.js → file-retention-6zvhcg4h.js} +14 -14
- package/dist/chunks/{file-retention-n2pc7kwe.js → file-retention-721agqj7.js} +32 -32
- package/dist/chunks/{file-retention-v5yvcr0w.js → file-retention-72b6x64g.js} +5 -5
- package/dist/chunks/{file-retention-wvr8xscb.js → file-retention-79k544d0.js} +6 -6
- package/dist/chunks/{file-retention-hkh70t29.js → file-retention-7ecjk65p.js} +10 -10
- package/dist/chunks/file-retention-7etbzm9y.js +46 -0
- package/dist/chunks/{file-retention-h6jcj9p8.js → file-retention-7jen3kst.js} +7 -7
- package/dist/chunks/{file-retention-cjgsn2s6.js → file-retention-837bxc3c.js} +10 -10
- package/dist/chunks/{file-retention-7xm9wv05.js → file-retention-87jq36v2.js} +14 -14
- package/dist/chunks/{file-retention-wzp3mys1.js → file-retention-8eshswe5.js} +2 -2
- package/dist/chunks/{file-retention-zm27gg57.js → file-retention-8sxe6kv8.js} +6 -1
- package/dist/chunks/{file-retention-yx1z8yqh.js → file-retention-8v7h9drr.js} +43 -41
- package/dist/chunks/{file-retention-yf177qcx.js → file-retention-90gj1595.js} +1 -1
- package/dist/chunks/{file-retention-89rb9xh3.js → file-retention-9dm6vsa2.js} +33 -29
- package/dist/chunks/{file-retention-ctmpqb7w.js → file-retention-9f3jsh1d.js} +7 -7
- package/dist/chunks/{file-retention-txt9e0aq.js → file-retention-9g6yrp67.js} +197 -197
- package/dist/chunks/{file-retention-kzxm184s.js → file-retention-9gczbj86.js} +10 -10
- package/dist/chunks/{file-retention-n9x9rf44.js → file-retention-9pkyxfc8.js} +28 -28
- package/dist/chunks/{file-retention-gt12nt52.js → file-retention-9s6tmzsz.js} +12 -12
- package/dist/chunks/{file-retention-x38wddp3.js → file-retention-9s8ccxzp.js} +10 -10
- package/dist/chunks/{file-retention-f7kqgmxs.js → file-retention-9v7xfrsr.js} +8 -8
- package/dist/chunks/{file-retention-95c1p5m6.js → file-retention-9z0qc3sg.js} +28 -28
- package/dist/chunks/{file-retention-aakm8s55.js → file-retention-a1j9h5sv.js} +25 -25
- package/dist/chunks/{file-retention-q85rya1m.js → file-retention-a4ww6fpm.js} +5 -5
- package/dist/chunks/{file-retention-dgdxz5tx.js → file-retention-a5wpc3w3.js} +49 -49
- package/dist/chunks/{file-retention-a3q9dv9j.js → file-retention-abtpjz44.js} +27 -27
- package/dist/chunks/{file-retention-0chqk1tf.js → file-retention-agemttc5.js} +30 -30
- package/dist/chunks/{file-retention-h5mecdsr.js → file-retention-ananre62.js} +9 -9
- package/dist/chunks/{file-retention-cxbntz7s.js → file-retention-ap8y92rr.js} +8 -8
- package/dist/chunks/{file-retention-hb8g288h.js → file-retention-atscc837.js} +13 -13
- package/dist/chunks/{file-retention-6n7kk6x7.js → file-retention-av46dpsn.js} +8 -8
- package/dist/chunks/{file-retention-zece804q.js → file-retention-avaerfkj.js} +8 -8
- package/dist/chunks/{file-retention-7dhaefc4.js → file-retention-ay9b3rdk.js} +21 -21
- package/dist/chunks/{file-retention-gbyaw8gf.js → file-retention-b1tz7g4k.js} +23 -23
- package/dist/chunks/{file-retention-x8yhzycg.js → file-retention-b4rwxy6m.js} +7 -7
- package/dist/chunks/{file-retention-5nnwax6m.js → file-retention-b6vsg801.js} +3 -3
- package/dist/chunks/{file-retention-ccvcfenq.js → file-retention-b8n7cma0.js} +1 -1
- package/dist/chunks/{file-retention-wx1v6zv9.js → file-retention-ba16f7j8.js} +14 -14
- package/dist/chunks/{file-retention-zd3y931c.js → file-retention-bg3xpdpw.js} +22 -22
- package/dist/chunks/{file-retention-6ma7pn4v.js → file-retention-bjaevfq0.js} +9 -9
- package/dist/chunks/{file-retention-p55ejza0.js → file-retention-bnzx9dwt.js} +3 -3
- package/dist/chunks/{file-retention-nyxfy9wj.js → file-retention-brbp1jmy.js} +7 -7
- package/dist/chunks/{file-retention-31avdb49.js → file-retention-c0tz6aqz.js} +4 -4
- package/dist/chunks/{file-retention-64eehrrp.js → file-retention-c32zfq3f.js} +7 -7
- package/dist/chunks/{file-retention-62ngxq4c.js → file-retention-ctj276x0.js} +10 -10
- package/dist/chunks/{file-retention-g4v74gy6.js → file-retention-ctxsgcm2.js} +7 -7
- package/dist/chunks/{file-retention-s3ccn36m.js → file-retention-d1jwara1.js} +23 -23
- package/dist/chunks/{file-retention-9e0zdsd0.js → file-retention-d4gmqgvp.js} +13 -13
- package/dist/chunks/{file-retention-6bshxcsx.js → file-retention-d77dj7jw.js} +4 -4
- package/dist/chunks/{file-retention-xz5yt0yg.js → file-retention-d9b1e71e.js} +18 -18
- package/dist/chunks/{file-retention-y8e7ya07.js → file-retention-dbhc229r.js} +41 -41
- package/dist/chunks/{file-retention-at1c8yrs.js → file-retention-dcdd8gp0.js} +25 -25
- package/dist/chunks/{file-retention-237anfc9.js → file-retention-dcybvycp.js} +8 -8
- package/dist/chunks/{file-retention-yszbb02h.js → file-retention-dhv1xx0k.js} +9 -9
- package/dist/chunks/{file-retention-6bacesmw.js → file-retention-dkb1sx3x.js} +38 -34
- package/dist/chunks/{file-retention-f32h92jn.js → file-retention-dncts3kv.js} +56 -56
- package/dist/chunks/{file-retention-539dw32x.js → file-retention-dvnqv6yn.js} +3 -3
- package/dist/chunks/{file-retention-0tsw2pcx.js → file-retention-dvyrd087.js} +38 -38
- package/dist/chunks/{file-retention-rt5m8xq2.js → file-retention-dx38te4v.js} +19 -19
- package/dist/chunks/{file-retention-dwsd3zgn.js → file-retention-e5dmmprw.js} +9 -9
- package/dist/chunks/{file-retention-gv8nw05x.js → file-retention-e6er0smf.js} +5 -5
- package/dist/chunks/{file-retention-pn48ae9c.js → file-retention-evsac8k0.js} +25 -25
- package/dist/chunks/{file-retention-3vc76bbn.js → file-retention-f15w2kpp.js} +7 -7
- package/dist/chunks/{file-retention-x8pa5p51.js → file-retention-f3efch3k.js} +22 -22
- package/dist/chunks/{file-retention-6mzz8e2v.js → file-retention-f7rj94ae.js} +43 -43
- package/dist/chunks/{file-retention-z9ersv62.js → file-retention-fa7jqgqj.js} +3 -3
- package/dist/chunks/{file-retention-68cc458t.js → file-retention-ffka7n84.js} +11 -11
- package/dist/chunks/{file-retention-n56yhxz0.js → file-retention-fjjazzdv.js} +12 -12
- package/dist/chunks/{file-retention-qkc3z5ds.js → file-retention-fwp9mfc9.js} +3 -3
- package/dist/chunks/{file-retention-wr3re1en.js → file-retention-fznmdakp.js} +3 -3
- package/dist/chunks/{file-retention-et16066w.js → file-retention-g2jbspnp.js} +18 -18
- package/dist/chunks/{file-retention-whgw2pzj.js → file-retention-g63e6h3e.js} +25 -25
- package/dist/chunks/{file-retention-teyq45ea.js → file-retention-gbcn9d4h.js} +2 -2
- package/dist/chunks/{file-retention-8zh1h1pe.js → file-retention-gbgy6ap4.js} +4 -4
- package/dist/chunks/{file-retention-a1d98dpx.js → file-retention-gh4z7wry.js} +33 -33
- package/dist/chunks/{file-retention-p0g9dthf.js → file-retention-gj10dfeb.js} +4 -4
- package/dist/chunks/{file-retention-yk7egwn6.js → file-retention-gmnq7sxz.js} +48 -48
- package/dist/chunks/{file-retention-9dwnyty3.js → file-retention-gxe5e77w.js} +9 -9
- package/dist/chunks/{file-retention-tq5makbn.js → file-retention-h5enc8pd.js} +27 -27
- package/dist/chunks/{file-retention-gr24kjxn.js → file-retention-h6ejcba2.js} +3 -3
- package/dist/chunks/{file-retention-v6sdsd1y.js → file-retention-hew1js5q.js} +1 -1
- package/dist/chunks/{file-retention-ee476ptv.js → file-retention-hkyks9g6.js} +13 -13
- package/dist/chunks/{file-retention-4y9qf8ry.js → file-retention-hm3wjv3t.js} +21 -21
- package/dist/chunks/{file-retention-7bt6msz7.js → file-retention-hmmsk6f4.js} +18 -18
- package/dist/chunks/{file-retention-z8w58q3b.js → file-retention-hn189zr5.js} +2 -2
- package/dist/chunks/{file-retention-75zng1ge.js → file-retention-hnxa655x.js} +19 -19
- package/dist/chunks/{file-retention-6n8q8wse.js → file-retention-hqvhb0wh.js} +9 -9
- package/dist/chunks/{file-retention-dvt58bph.js → file-retention-hvgfddwz.js} +10 -10
- package/dist/chunks/{file-retention-b5yzcczs.js → file-retention-hx2h0g86.js} +7 -7
- package/dist/chunks/{file-retention-fx5dbny4.js → file-retention-hz2g8n0e.js} +4 -4
- package/dist/chunks/{file-retention-a5e6ddn4.js → file-retention-j4tx0dw9.js} +32 -32
- package/dist/chunks/{file-retention-tykajzt3.js → file-retention-j6q7spb2.js} +29 -29
- package/dist/chunks/{file-retention-m7sx3bgz.js → file-retention-j90hxq85.js} +3 -3
- package/dist/chunks/{file-retention-xgbbyafx.js → file-retention-jd8phrvf.js} +33 -33
- package/dist/chunks/{file-retention-pfb54thj.js → file-retention-jmekf4r3.js} +7 -7
- package/dist/chunks/{file-retention-ae862rdn.js → file-retention-k0kcv3gp.js} +2 -2
- package/dist/chunks/{file-retention-jjxkdvhg.js → file-retention-k2xygrq7.js} +9 -9
- package/dist/chunks/{file-retention-qfz6bxfd.js → file-retention-k46dd5bg.js} +3 -3
- package/dist/chunks/{file-retention-yxmmjzm7.js → file-retention-k9wymzdg.js} +2 -2
- package/dist/chunks/{file-retention-26tkb14f.js → file-retention-kkgm43pe.js} +9 -9
- package/dist/chunks/{file-retention-tmwatq56.js → file-retention-kpa09rhw.js} +7 -7
- package/dist/chunks/{file-retention-41mgdpyq.js → file-retention-m2bn1thc.js} +44 -44
- package/dist/chunks/{file-retention-fsgv702d.js → file-retention-m2vpvwkm.js} +51 -51
- package/dist/chunks/{file-retention-3j68zxqn.js → file-retention-m9js7g7m.js} +8 -8
- package/dist/chunks/{file-retention-75ax6x68.js → file-retention-mbhkhp6q.js} +4 -4
- package/dist/chunks/{file-retention-csdmpgm1.js → file-retention-mhwtew22.js} +15 -15
- package/dist/chunks/{file-retention-b924sz3m.js → file-retention-mtqqxse4.js} +3 -3
- package/dist/chunks/{file-retention-95sp4hdf.js → file-retention-mzm8bzzq.js} +3 -3
- package/dist/chunks/{file-retention-04s74fx7.js → file-retention-n3bkb5q1.js} +4 -4
- package/dist/chunks/{file-retention-aprkypsk.js → file-retention-n3ga810d.js} +15 -15
- package/dist/chunks/{file-retention-bt4213zy.js → file-retention-n6xbcgna.js} +12 -12
- package/dist/chunks/{file-retention-j7qy0s5h.js → file-retention-n8089wab.js} +14 -14
- package/dist/chunks/{file-retention-jz8ht1jj.js → file-retention-ndksvsqq.js} +3 -3
- package/dist/chunks/{file-retention-c2gmg5r9.js → file-retention-nfggrfj2.js} +7 -7
- package/dist/chunks/{file-retention-rdj0vc1c.js → file-retention-nmarmpt2.js} +17 -17
- package/dist/chunks/{file-retention-kmxy273m.js → file-retention-pjx7tz23.js} +4 -4
- package/dist/chunks/{file-retention-ty3f8ea2.js → file-retention-pkq3dv06.js} +14 -14
- package/dist/chunks/{file-retention-35hcamnh.js → file-retention-pmhb73dp.js} +19 -19
- package/dist/chunks/{file-retention-kz7xb2xy.js → file-retention-q5nd4tdk.js} +6 -6
- package/dist/chunks/{file-retention-3q6fzyrv.js → file-retention-qbkx85ty.js} +13 -13
- package/dist/chunks/{file-retention-byjg35ec.js → file-retention-qe6wsf1h.js} +5 -5
- package/dist/chunks/{file-retention-b6wwfjf1.js → file-retention-qtjtwdkb.js} +25 -25
- package/dist/chunks/{file-retention-w0rkd9p8.js → file-retention-qxk677ch.js} +30 -30
- package/dist/chunks/{file-retention-enexbtbh.js → file-retention-r388hamt.js} +28 -28
- package/dist/chunks/{file-retention-pzkzmzjr.js → file-retention-rcw12gd3.js} +40 -40
- package/dist/chunks/{file-retention-qja0360d.js → file-retention-rfhh9jbp.js} +5 -5
- package/dist/chunks/{file-retention-z1qht066.js → file-retention-rjdswr2s.js} +21 -21
- package/dist/chunks/{file-retention-vrcsa8qx.js → file-retention-rmt6m6se.js} +7 -7
- package/dist/chunks/{file-retention-vcjsbe3m.js → file-retention-rpxemsgz.js} +87 -87
- package/dist/chunks/{file-retention-cmnsegyx.js → file-retention-rpzwd4m9.js} +1 -1
- package/dist/chunks/{file-retention-ztvrq7gb.js → file-retention-rr9v9k3b.js} +10 -10
- package/dist/chunks/{file-retention-6qj6ge7d.js → file-retention-s0699xsp.js} +15 -15
- package/dist/chunks/{file-retention-zsv35m7p.js → file-retention-s5vg2p0e.js} +7 -7
- package/dist/chunks/{file-retention-p9nz32sq.js → file-retention-s93d5mte.js} +21 -21
- package/dist/chunks/{file-retention-kyb7yekh.js → file-retention-sctph3n4.js} +32 -32
- package/dist/chunks/{file-retention-ywppahe3.js → file-retention-sj2s1b9m.js} +28 -28
- package/dist/chunks/{file-retention-fwwnnvpx.js → file-retention-sj70yks3.js} +7 -7
- package/dist/chunks/{file-retention-9mt9fcpt.js → file-retention-skrg2vfv.js} +28 -28
- package/dist/chunks/{file-retention-ztz48n3d.js → file-retention-snhnc0ef.js} +10 -10
- package/dist/chunks/{file-retention-963hk181.js → file-retention-snjqag79.js} +7 -7
- package/dist/chunks/{file-retention-q945z18s.js → file-retention-swwepy7r.js} +9 -9
- package/dist/chunks/{file-retention-tngvyp2y.js → file-retention-szfk6t8e.js} +30 -30
- package/dist/chunks/{file-retention-96djdqw5.js → file-retention-szwm4crx.js} +2 -2
- package/dist/chunks/{file-retention-db2v7vv4.js → file-retention-t6zxhcnm.js} +38 -38
- package/dist/chunks/{file-retention-n87deehv.js → file-retention-tb15rp1c.js} +4 -4
- package/dist/chunks/{file-retention-26wfx3k0.js → file-retention-tb2mrvc9.js} +3 -3
- package/dist/chunks/{file-retention-8j5rt9k2.js → file-retention-tfhex4ds.js} +74 -74
- package/dist/chunks/{file-retention-50hftrwd.js → file-retention-tgc8br6y.js} +9 -9
- package/dist/chunks/{file-retention-cse8gxc3.js → file-retention-tnya1cye.js} +6 -6
- package/dist/chunks/{file-retention-j376ae4e.js → file-retention-tr8x705m.js} +4 -4
- package/dist/chunks/{file-retention-vvxtm2dm.js → file-retention-v1mj0bgs.js} +28 -28
- package/dist/chunks/{file-retention-81hxxa3v.js → file-retention-v37bc009.js} +3 -3
- package/dist/chunks/{file-retention-p96e2xw0.js → file-retention-vh942nm4.js} +12 -12
- package/dist/chunks/{file-retention-px7qpgcn.js → file-retention-vt2d6wap.js} +3 -3
- package/dist/chunks/{file-retention-0j8mhk4d.js → file-retention-vxcj7dj3.js} +16 -16
- package/dist/chunks/{file-retention-p9gybnkz.js → file-retention-w1g97wbr.js} +11 -11
- package/dist/chunks/{file-retention-y4f0c2re.js → file-retention-w4whnx61.js} +19 -19
- package/dist/chunks/{file-retention-pdpask2k.js → file-retention-wa6q08vq.js} +23 -23
- package/dist/chunks/{file-retention-qs85e3xq.js → file-retention-waxfvz31.js} +28 -28
- package/dist/chunks/{file-retention-txjcpmgd.js → file-retention-weqsz73e.js} +4 -4
- package/dist/chunks/{file-retention-cgy1nctk.js → file-retention-wfnayh71.js} +7 -7
- package/dist/chunks/{file-retention-ccp6j38y.js → file-retention-wgvnftve.js} +7 -7
- package/dist/chunks/{file-retention-3rjt9f5s.js → file-retention-wh423nk9.js} +23 -23
- package/dist/chunks/{file-retention-kf485nxs.js → file-retention-wm09fakr.js} +32 -32
- package/dist/chunks/{file-retention-f30y5q5n.js → file-retention-wr27nwte.js} +9 -9
- package/dist/chunks/{file-retention-497brhdq.js → file-retention-wy0xsgxw.js} +4 -4
- package/dist/chunks/{file-retention-z5s1hzbx.js → file-retention-x24tvm8w.js} +19 -19
- package/dist/chunks/{file-retention-a5fx33f2.js → file-retention-x4mcewfn.js} +7 -7
- package/dist/chunks/{file-retention-0n6d4kn5.js → file-retention-x4t5xjs0.js} +23 -23
- package/dist/chunks/{file-retention-fyj2mfgy.js → file-retention-x59t0gss.js} +30 -30
- package/dist/chunks/{file-retention-1ss1y6bx.js → file-retention-xa716ypk.js} +11 -11
- package/dist/chunks/{file-retention-bstexjd6.js → file-retention-xd9cc171.js} +4 -4
- package/dist/chunks/{file-retention-wejx1yzz.js → file-retention-xe84dabc.js} +3 -3
- package/dist/chunks/{file-retention-f2j6m0ac.js → file-retention-xgbgysg1.js} +18 -18
- package/dist/chunks/{file-retention-8f42kaey.js → file-retention-xhthag0s.js} +11 -11
- package/dist/chunks/{file-retention-rt5qjrvj.js → file-retention-xksw6ev0.js} +3 -3
- package/dist/chunks/{file-retention-gmdj38bx.js → file-retention-xmm4qtr7.js} +21 -21
- package/dist/chunks/{file-retention-605b6zwb.js → file-retention-xnc68z72.js} +9 -9
- package/dist/chunks/{file-retention-ranh0xe7.js → file-retention-y32xxt00.js} +3 -3
- package/dist/chunks/{file-retention-4xcsbp6b.js → file-retention-y9hckaaa.js} +4 -4
- package/dist/chunks/{file-retention-tg1vr1qt.js → file-retention-ydsespw1.js} +7 -7
- package/dist/chunks/{file-retention-0smjzhyp.js → file-retention-yfe5zj2r.js} +3 -3
- package/dist/chunks/{file-retention-tfcvmk9c.js → file-retention-ym5ftk47.js} +16 -16
- package/dist/chunks/{file-retention-8gc7e869.js → file-retention-ymb0ygkv.js} +20 -20
- package/dist/chunks/{file-retention-3whc36fx.js → file-retention-ynsc8wg2.js} +9 -9
- package/dist/chunks/{file-retention-5wwt8jnt.js → file-retention-ysfhhwnn.js} +6 -6
- package/dist/chunks/{file-retention-h63ygx1j.js → file-retention-yv7pt3ah.js} +2 -2
- package/dist/chunks/{file-retention-x457m8xb.js → file-retention-yvchjg13.js} +13 -13
- package/dist/chunks/{file-retention-70t2yy6e.js → file-retention-yx0ag50g.js} +15 -15
- package/dist/chunks/{file-retention-06e0bzah.js → file-retention-yzde64vc.js} +10 -10
- package/dist/chunks/{file-retention-anvcme1c.js → file-retention-z080rjh6.js} +3 -3
- package/dist/chunks/{file-retention-8xxrj23x.js → file-retention-z7re6mpg.js} +9 -9
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +113 -113
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +119 -119
- package/dist/command.js +78 -78
- package/dist/config/discovery.js +72 -72
- package/dist/config/normalize.js +87 -87
- package/dist/config/plugin/agent.js +101 -101
- package/dist/config/plugin/command.js +189 -189
- package/dist/config/plugin/compaction.js +136 -136
- package/dist/config/plugin/compatibility.js +116 -116
- package/dist/config/plugin/formatter.js +102 -102
- package/dist/config/plugin/image.js +101 -101
- package/dist/config/plugin/instruction.js +102 -102
- package/dist/config/plugin/location-watcher.js +101 -101
- package/dist/config/plugin/mcp.js +106 -106
- package/dist/config/plugin/policy.js +101 -101
- package/dist/config/plugin/provider.js +101 -101
- package/dist/config/plugin/reference.js +103 -103
- package/dist/config/plugin/shell.js +103 -103
- package/dist/config/plugin/skill-file.js +113 -113
- package/dist/config/plugin/skill.js +119 -119
- package/dist/config/plugin/snapshot.js +101 -101
- package/dist/config/plugin/source.js +104 -104
- package/dist/config/plugin/tool-output.js +102 -102
- package/dist/config/plugin/websearch.js +102 -102
- package/dist/config/plugin/worktree.js +102 -102
- package/dist/config.js +107 -107
- package/dist/credential.js +76 -76
- package/dist/database/database.js +64 -64
- package/dist/database/drizzle/effect-sqlite/driver.js +7 -7
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +8 -8
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +8 -8
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +49 -49
- package/dist/database/sqlite.bun.js +3 -71
- package/dist/database/sqlite.node.js +3 -67
- package/dist/database/sqlite.workerd.js +11 -14
- package/dist/database/v1-migration.bun.js +21 -21
- package/dist/effect/app-node-builder.js +268 -268
- package/dist/environment/environment.js +80 -80
- package/dist/environment/index.js +82 -82
- package/dist/environment/unavailable.js +3 -3
- package/dist/event-logger.js +13 -13
- package/dist/file-access.js +117 -117
- package/dist/file-mutation.js +83 -81
- package/dist/filesystem/file-watch.js +17 -17
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +203 -203
- package/dist/filesystem/search.js +84 -84
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +87 -87
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +77 -77
- package/dist/generate.js +93 -93
- package/dist/git.js +6 -6
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +81 -81
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +362 -362
- package/dist/instruction-discovery.js +74 -74
- package/dist/instructions/builtins.js +76 -76
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +81 -81
- package/dist/job.js +72 -72
- package/dist/kv.js +69 -69
- package/dist/location-activity.js +75 -75
- package/dist/location-lifecycle.js +118 -118
- package/dist/location-service-map.js +76 -76
- package/dist/location-services.js +361 -361
- package/dist/location.js +79 -79
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +18 -18
- package/dist/mcp/index.js +96 -96
- package/dist/mcp/instructions.js +144 -144
- package/dist/mcp/oauth.js +13 -13
- package/dist/mcp/stdio.js +77 -77
- package/dist/modal/models.js +81 -81
- package/dist/model-resolver.js +88 -88
- package/dist/model.js +90 -90
- package/dist/models-dev.js +97 -97
- package/dist/permission/saved.js +71 -71
- package/dist/permission.js +121 -121
- package/dist/persistent-pty/index.js +84 -84
- package/dist/persistent-pty.js +68 -68
- package/dist/plugin/agent.js +69 -69
- package/dist/plugin/command.js +87 -87
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +196 -196
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +339 -339
- package/dist/plugin/models-dev.js +86 -86
- package/dist/plugin/module.js +98 -98
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +114 -114
- package/dist/plugin/provider/amazon-bedrock.js +81 -81
- package/dist/plugin/provider/azure.js +102 -102
- package/dist/plugin/provider/chatgpt.js +100 -100
- package/dist/plugin/provider/claude-agent/aisdk.js +89 -89
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/session.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/sessions.js +10 -10
- package/dist/plugin/provider/claude-agent/claude/status.js +5 -5
- package/dist/plugin/provider/claude-agent/index.js +112 -112
- package/dist/plugin/provider/claude-agent/instructions.js +85 -85
- package/dist/plugin/provider/claude-agent/integration.js +86 -86
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +5 -5
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +81 -81
- package/dist/plugin/provider/claude-agent/session.js +84 -84
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +100 -100
- package/dist/plugin/provider/cloudflare-workers-ai.js +100 -100
- package/dist/plugin/provider/configured.js +98 -98
- package/dist/plugin/provider/credential-settings.js +67 -67
- package/dist/plugin/provider/digitalocean.js +84 -84
- package/dist/plugin/provider/github-copilot.js +86 -86
- package/dist/plugin/provider/gitlab.js +83 -83
- package/dist/plugin/provider/google-vertex.js +99 -99
- package/dist/plugin/provider/llmgateway.js +70 -70
- package/dist/plugin/provider/lmstudio.js +108 -108
- package/dist/plugin/provider/local.js +105 -105
- package/dist/plugin/provider/modal.js +84 -84
- package/dist/plugin/provider/ollama.js +106 -106
- package/dist/plugin/provider/openai-context-caps.js +80 -80
- package/dist/plugin/provider/openai.js +102 -102
- package/dist/plugin/provider/opencode.js +102 -102
- package/dist/plugin/provider/openrouter.js +81 -81
- package/dist/plugin/provider/poe.js +70 -70
- package/dist/plugin/provider/refresh.js +69 -69
- package/dist/plugin/provider/sap-ai-core.js +80 -80
- package/dist/plugin/provider/snowflake-cortex.js +100 -100
- package/dist/plugin/provider/vllm.js +106 -106
- package/dist/plugin/provider/xai.js +81 -81
- package/dist/plugin/provider.js +167 -167
- package/dist/plugin/sdk.js +68 -68
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +115 -115
- package/dist/plugin/supervisor.js +349 -349
- package/dist/plugin/tool-input-repair.js +3 -3
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/vcs/git.js +76 -76
- package/dist/plugin/vcs/hg.js +76 -76
- package/dist/plugin/verbosity.js +83 -83
- package/dist/plugin/warming.js +100 -100
- package/dist/plugin/websearch/exa.js +3 -3
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +4 -4
- package/dist/plugin.js +205 -205
- package/dist/project/icon.js +1 -1
- package/dist/project/schema.js +7 -7
- package/dist/project.js +80 -80
- package/dist/provider.js +87 -87
- package/dist/pty.js +86 -86
- package/dist/reference/instructions.js +80 -80
- package/dist/reference.js +83 -83
- package/dist/repository-cache.js +74 -74
- package/dist/repository.js +3 -3
- package/dist/ripgrep.js +81 -81
- package/dist/rpc.js +76 -76
- package/dist/schedule/check.js +200 -200
- package/dist/schedule.js +213 -213
- package/dist/session/blob.js +99 -99
- package/dist/session/command.js +69 -69
- package/dist/session/compaction.js +139 -139
- package/dist/session/context.js +160 -160
- package/dist/session/diff.js +76 -76
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +120 -120
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +162 -162
- package/dist/session/history.js +104 -104
- package/dist/session/inbox.js +117 -117
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +71 -71
- package/dist/session/instructions.js +109 -109
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +135 -135
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +110 -110
- package/dist/session/prompt.js +115 -115
- package/dist/session/revert.js +107 -107
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +207 -207
- package/dist/session/runner/model.js +89 -89
- package/dist/session/runner/publish-llm-event.js +117 -117
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +130 -130
- package/dist/session/runner/to-llm-message.js +105 -105
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +144 -144
- package/dist/session/shell.js +112 -112
- package/dist/session/skill.js +115 -115
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +110 -110
- package/dist/session/subagent-job.js +189 -189
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +163 -163
- package/dist/session/to-session-error.js +116 -116
- package/dist/session/transfer.js +120 -120
- package/dist/session.js +202 -202
- package/dist/shared-cache.js +5 -5
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +14 -14
- package/dist/shell.js +115 -115
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +119 -119
- package/dist/skill.js +122 -122
- package/dist/snapshot.js +81 -81
- package/dist/tool/mcp.js +139 -139
- package/dist/tool/plugin/artifact.js +188 -188
- package/dist/tool/plugin/edit.js +128 -128
- package/dist/tool/plugin/glob.js +131 -131
- package/dist/tool/plugin/grep.js +131 -131
- package/dist/tool/plugin/image-generate.js +198 -198
- package/dist/tool/plugin/mcp-resource.js +125 -125
- package/dist/tool/plugin/opencode.js +125 -125
- package/dist/tool/plugin/patch.js +128 -128
- package/dist/tool/plugin/question.js +116 -116
- package/dist/tool/plugin/read.js +132 -132
- package/dist/tool/plugin/schedule.js +204 -204
- package/dist/tool/plugin/shell.js +195 -195
- package/dist/tool/plugin/skill.js +125 -125
- package/dist/tool/plugin/subagent.js +196 -196
- package/dist/tool/plugin/todo.js +120 -120
- package/dist/tool/plugin/webfetch.js +120 -120
- package/dist/tool/plugin/websearch.js +121 -121
- package/dist/tool/plugin/write.js +130 -130
- package/dist/tool/read-filesystem.js +85 -85
- package/dist/tool-output.js +3 -3
- package/dist/tool.js +125 -125
- package/dist/types/database/sqlite.bun.d.ts +3 -11
- package/dist/types/database/sqlite.node.d.ts +3 -13
- package/dist/types/database/sqlite.workerd.d.ts +1 -2
- package/dist/types/file-mutation.d.ts +8 -1
- package/dist/types/project/icon.d.ts +2 -2
- package/dist/usage-limits.js +78 -78
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +81 -81
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/variant.js +81 -81
- package/dist/vcs.js +79 -79
- package/dist/voice.js +76 -76
- package/dist/websearch.js +78 -78
- package/dist/wellknown/plugin.js +71 -71
- package/dist/wellknown.js +76 -76
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace.js +77 -77
- package/dist/worktree/git.js +3 -3
- package/dist/worktree/strategies.js +78 -78
- package/dist/worktree.js +82 -82
- package/package.json +10 -9
- package/dist/chunks/file-retention-94s5f2xb.js +0 -62
- package/dist/chunks/file-retention-h80z8qef.js +0 -261
- package/dist/chunks/file-retention-tz3w010n.js +0 -43
- package/dist/chunks/file-retention-xajdwwy7.js +0 -26
- package/dist/database/sqlite.js +0 -12
- package/dist/types/database/sqlite.d.ts +0 -20
- /package/dist/chunks/{file-retention-gvefjbhs.js → file-retention-5ej6fcjw.js} +0 -0
- /package/dist/chunks/{file-retention-13k30xes.js → file-retention-6nj48chv.js} +0 -0
- /package/dist/chunks/{file-retention-775hqbnd.js → file-retention-80mg3ag8.js} +0 -0
- /package/dist/chunks/{file-retention-h5chy42v.js → file-retention-94e33dpz.js} +0 -0
- /package/dist/chunks/{file-retention-1nwxscpy.js → file-retention-gcavn3wx.js} +0 -0
- /package/dist/chunks/{file-retention-qw2t3dzn.js → file-retention-r1fnsf7p.js} +0 -0
- /package/dist/chunks/{file-retention-2czx47z2.js → file-retention-sqz6jy89.js} +0 -0
- /package/dist/chunks/{file-retention-j9nxzz3g.js → file-retention-ze75qvmd.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service90,
|
|
3
3
|
node93
|
|
4
|
-
} from "./file-retention-
|
|
4
|
+
} from "./file-retention-8eshswe5.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
7
|
} from "./file-retention-1ep2p91f.js";
|
|
@@ -14,11 +14,11 @@ var exports_saved = {};
|
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
ConflictError: () => ConflictError2,
|
|
16
16
|
ID: () => ID13,
|
|
17
|
-
Info: () =>
|
|
17
|
+
Info: () => Info15,
|
|
18
18
|
NotFoundError: () => NotFoundError11,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service67,
|
|
21
|
+
node: () => node70
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
@@ -26,7 +26,7 @@ import { isSqlError } from "effect/sql/SqlError";
|
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
28
|
var ID13 = PermissionSaved.ID;
|
|
29
|
-
var
|
|
29
|
+
var Info15 = PermissionSaved.Info;
|
|
30
30
|
|
|
31
31
|
class NotFoundError11 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
32
32
|
id: ID13
|
|
@@ -40,9 +40,9 @@ class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError
|
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service67 extends Context.Service()("@opencode/PermissionSaved") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
46
46
|
const db = (yield* Service90).db;
|
|
47
47
|
const list = Effect.fnUntraced(function* (input) {
|
|
48
48
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -72,7 +72,7 @@ var layer = Layer.effect(Service73, Effect.gen(function* () {
|
|
|
72
72
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
73
73
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return Service67.of({ list, add, update, remove });
|
|
76
76
|
}));
|
|
77
77
|
var isUniqueViolation = (error) => {
|
|
78
78
|
const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
|
|
@@ -90,6 +90,6 @@ var info = (row) => ({
|
|
|
90
90
|
updated: DateTime.makeUnsafe(row.time_updated)
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
var
|
|
93
|
+
var node70 = makeGlobalNode({ service: Service67, layer, deps: [node93] });
|
|
94
94
|
|
|
95
|
-
export { ID13,
|
|
95
|
+
export { ID13, Info15, NotFoundError11, ConflictError2, Service67, node70, exports_saved };
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
var exports_hooks2 = {};
|
|
7
7
|
__export(exports_hooks2, {
|
|
8
8
|
PluginHooks: () => exports_hooks2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service68,
|
|
10
|
+
node: () => node71
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
13
13
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -20,9 +20,9 @@ var eventProviderID = (event) => {
|
|
|
20
20
|
return typeof model.providerID === "string" ? model.providerID : undefined;
|
|
21
21
|
};
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service68 extends Context.Service()("@opencode/PluginHooks") {
|
|
24
24
|
}
|
|
25
|
-
var layer = Layer.effect(
|
|
25
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
26
26
|
const callbacks = new Map;
|
|
27
27
|
const key = (domain, name) => `${domain}.${String(name)}`;
|
|
28
28
|
const register = Effect.fn("PluginHooks.register")(function* (domain, name, callback, options) {
|
|
@@ -54,8 +54,8 @@ var layer = Layer.effect(Service76, Effect.gen(function* () {
|
|
|
54
54
|
return event;
|
|
55
55
|
});
|
|
56
56
|
const has = (domain, name, providerID) => Effect.sync(() => (callbacks.get(key(domain, name)) ?? []).some((entry) => entry.options?.providerID === undefined || entry.options.providerID === providerID));
|
|
57
|
-
return
|
|
57
|
+
return Service68.of({ has, register, trigger });
|
|
58
58
|
}));
|
|
59
|
-
var
|
|
59
|
+
var node71 = makeLocationNode({ service: Service68, layer, deps: [] });
|
|
60
60
|
|
|
61
|
-
export {
|
|
61
|
+
export { Service68, node71, exports_hooks2 };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service90,
|
|
3
3
|
node93
|
|
4
|
-
} from "./file-retention-
|
|
4
|
+
} from "./file-retention-8eshswe5.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
7
|
} from "./file-retention-4d2dtj2f.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./file-retention-
|
|
9
|
+
Service89,
|
|
10
|
+
node92
|
|
11
|
+
} from "./file-retention-ynsc8wg2.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
14
|
} from "./file-retention-ec1grn59.js";
|
|
@@ -29,10 +29,10 @@ import {
|
|
|
29
29
|
externalizePayload2,
|
|
30
30
|
recordRefs2,
|
|
31
31
|
releaseMessage2
|
|
32
|
-
} from "./file-retention-
|
|
32
|
+
} from "./file-retention-fa7jqgqj.js";
|
|
33
33
|
import {
|
|
34
34
|
decodeMessageRows2
|
|
35
|
-
} from "./file-retention-
|
|
35
|
+
} from "./file-retention-k0kcv3gp.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
38
|
} from "./file-retention-9rqn6x4v.js";
|
|
@@ -43,7 +43,7 @@ __export(exports_inbox, {
|
|
|
43
43
|
Compaction: () => Compaction2,
|
|
44
44
|
CompactionPayload: () => CompactionPayload2,
|
|
45
45
|
Delivery: () => Delivery2,
|
|
46
|
-
Info: () =>
|
|
46
|
+
Info: () => Info10,
|
|
47
47
|
Item: () => Item2,
|
|
48
48
|
LifecycleConflict: () => LifecycleConflict2,
|
|
49
49
|
MediaInfo: () => MediaInfo2,
|
|
@@ -51,7 +51,7 @@ __export(exports_inbox, {
|
|
|
51
51
|
MediaUserPayload: () => MediaUserPayload2,
|
|
52
52
|
Move: () => Move2,
|
|
53
53
|
MovePayload: () => MovePayload2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service43,
|
|
55
55
|
SessionInbox: () => exports_inbox,
|
|
56
56
|
Synthetic: () => Synthetic2,
|
|
57
57
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -59,13 +59,13 @@ __export(exports_inbox, {
|
|
|
59
59
|
UserPayload: () => UserPayload2,
|
|
60
60
|
find: () => find2,
|
|
61
61
|
has: () => has2,
|
|
62
|
-
layer: () =>
|
|
63
|
-
list: () =>
|
|
62
|
+
layer: () => layer17,
|
|
63
|
+
list: () => list3,
|
|
64
64
|
listWithRefs: () => listWithRefs2,
|
|
65
|
-
make: () =>
|
|
65
|
+
make: () => make26,
|
|
66
66
|
moveIDs: () => moveIDs2,
|
|
67
67
|
nextPromotable: () => nextPromotable2,
|
|
68
|
-
node: () =>
|
|
68
|
+
node: () => node45,
|
|
69
69
|
projectAdmitted: () => projectAdmitted2,
|
|
70
70
|
projectCancelled: () => projectCancelled2,
|
|
71
71
|
projectDelivered: () => projectDelivered2,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
Compaction as Compaction2,
|
|
81
81
|
CompactionPayload as CompactionPayload2,
|
|
82
82
|
Delivery as Delivery2,
|
|
83
|
-
Info as
|
|
83
|
+
Info as Info10,
|
|
84
84
|
Item as Item2,
|
|
85
85
|
MediaInfo as MediaInfo2,
|
|
86
86
|
MediaUser as MediaUser2,
|
|
@@ -184,12 +184,12 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
184
184
|
});
|
|
185
185
|
});
|
|
186
186
|
|
|
187
|
-
class
|
|
187
|
+
class Service43 extends Context.Service()("@opencode/SessionInbox") {
|
|
188
188
|
}
|
|
189
|
-
var
|
|
189
|
+
var make26 = Effect.fn("SessionInbox.make")(function* () {
|
|
190
190
|
const database = yield* Service90;
|
|
191
191
|
const db = database.db;
|
|
192
|
-
const bus = yield*
|
|
192
|
+
const bus = yield* Service89;
|
|
193
193
|
const reconcile = Effect.fn("SessionInbox.reconcile")(function* (request) {
|
|
194
194
|
const existing = (yield* find2(db, request.id)) ?? (yield* promotedFromMessage(db, request.sessionID, request.id, request.delivery));
|
|
195
195
|
if (existing === undefined)
|
|
@@ -206,7 +206,7 @@ var make28 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
206
206
|
inboxID: request.id,
|
|
207
207
|
sessionID: request.sessionID,
|
|
208
208
|
item: request.item
|
|
209
|
-
}).pipe(Effect.map((event) =>
|
|
209
|
+
}).pipe(Effect.map((event) => Info10.make({
|
|
210
210
|
id: request.id,
|
|
211
211
|
sessionID: request.sessionID,
|
|
212
212
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -226,7 +226,7 @@ var make28 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
226
226
|
}
|
|
227
227
|
if (yield* promotedFromMessage(db, input.sessionID, input.id, input.delivery))
|
|
228
228
|
return yield* new LifecycleConflict2({ id: input.id });
|
|
229
|
-
const pending = (yield*
|
|
229
|
+
const pending = (yield* list3(db, input.sessionID)).find((item) => item.type === "compaction");
|
|
230
230
|
if (pending)
|
|
231
231
|
return pending;
|
|
232
232
|
return yield* admit({
|
|
@@ -251,7 +251,7 @@ var make28 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
251
251
|
delivery: "queue"
|
|
252
252
|
})));
|
|
253
253
|
return {
|
|
254
|
-
list: (sessionID) =>
|
|
254
|
+
list: (sessionID) => list3(db, sessionID),
|
|
255
255
|
reconcile,
|
|
256
256
|
admit,
|
|
257
257
|
admitCompaction,
|
|
@@ -260,8 +260,8 @@ var make28 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
260
260
|
queue
|
|
261
261
|
};
|
|
262
262
|
});
|
|
263
|
-
var
|
|
264
|
-
var
|
|
263
|
+
var layer17 = Layer.effect(Service43, make26());
|
|
264
|
+
var node45 = makeGlobalNode({ service: Service43, layer: layer17, deps: [node93, node92] });
|
|
265
265
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
266
266
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
267
267
|
if (message !== undefined)
|
|
@@ -310,7 +310,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
310
310
|
to: input.delivery
|
|
311
311
|
}));
|
|
312
312
|
var listRows = (db, sessionID) => db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
313
|
-
var
|
|
313
|
+
var list3 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
314
314
|
return (yield* hydrateInbox2(db, yield* listRows(db, sessionID))).map(fromRow);
|
|
315
315
|
});
|
|
316
316
|
var listWithRefs2 = Effect.fn("SessionInbox.listWithRefs")(function* (db, sessionID) {
|
|
@@ -385,4 +385,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
385
385
|
return rows;
|
|
386
386
|
}));
|
|
387
387
|
|
|
388
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
388
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info10, Item2, MediaInfo2, MediaUser2, MediaUserPayload2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service43, make26, layer17, node45, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, listWithRefs2, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service90
|
|
3
|
-
} from "./file-retention-
|
|
3
|
+
} from "./file-retention-8eshswe5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-retention-
|
|
5
|
+
Service57
|
|
6
|
+
} from "./file-retention-5m3xrn1j.js";
|
|
7
7
|
import {
|
|
8
8
|
detect2
|
|
9
9
|
} from "./file-retention-4pyp9zr9.js";
|
|
10
10
|
import {
|
|
11
11
|
awaitActivation2
|
|
12
|
-
} from "./file-retention-
|
|
12
|
+
} from "./file-retention-d77dj7jw.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./file-retention-
|
|
14
|
+
Service68
|
|
15
|
+
} from "./file-retention-ctxsgcm2.js";
|
|
16
16
|
import {
|
|
17
17
|
AttachmentError2,
|
|
18
18
|
SkillNotFoundError2
|
|
19
|
-
} from "./file-retention-
|
|
19
|
+
} from "./file-retention-y9hckaaa.js";
|
|
20
20
|
import {
|
|
21
21
|
Ref2,
|
|
22
22
|
refHash2
|
|
23
23
|
} from "./file-retention-fg9p65nk.js";
|
|
24
24
|
import {
|
|
25
25
|
read3
|
|
26
|
-
} from "./file-retention-
|
|
26
|
+
} from "./file-retention-fa7jqgqj.js";
|
|
27
27
|
import {
|
|
28
28
|
prepare3,
|
|
29
|
-
|
|
30
|
-
} from "./file-retention-
|
|
29
|
+
Service52
|
|
30
|
+
} from "./file-retention-b1tz7g4k.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
33
|
} from "./file-retention-9rqn6x4v.js";
|
|
@@ -48,7 +48,7 @@ var RESIZABLE_IMAGE_MIMES = new Set(["image/png", "image/jpeg", "image/gif", "im
|
|
|
48
48
|
var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
50
|
yield* awaitActivation2;
|
|
51
|
-
const hooks = yield*
|
|
51
|
+
const hooks = yield* Service68;
|
|
52
52
|
const event = yield* hooks.trigger("session", "prompt", {
|
|
53
53
|
sessionID: request.session.id,
|
|
54
54
|
messageID: request.messageID,
|
|
@@ -67,7 +67,7 @@ var prepare2 = Effect.fn("SessionPrompt.prepare")(function* (request) {
|
|
|
67
67
|
const selected = yield* Effect.gen(function* () {
|
|
68
68
|
if (!requested?.length)
|
|
69
69
|
return;
|
|
70
|
-
const skillService = yield*
|
|
70
|
+
const skillService = yield* Service52;
|
|
71
71
|
const prepared = new Map;
|
|
72
72
|
return yield* Effect.forEach(requested, (attachment) => Effect.gen(function* () {
|
|
73
73
|
const name = prepared.get(attachment.id);
|
|
@@ -141,7 +141,7 @@ var materializeAttachment = Effect.fn("SessionPrompt.materializeAttachment")(fun
|
|
|
141
141
|
var normalizeImageAttachment = Effect.fn("SessionPrompt.normalizeImageAttachment")(function* (input, data, mime) {
|
|
142
142
|
if (!RESIZABLE_IMAGE_MIMES.has(mime))
|
|
143
143
|
return { data: Base64.make(data), mime };
|
|
144
|
-
const image = yield*
|
|
144
|
+
const image = yield* Service57;
|
|
145
145
|
const label = attachmentLabel(input);
|
|
146
146
|
const content = { uri: label, content: data, encoding: "base64", mime };
|
|
147
147
|
const normalized = yield* image.normalize(label, content).pipe(Effect.catchTag("Image.ResizerUnavailableError", () => Effect.succeed(content)), Effect.mapError((error) => new AttachmentError2({ uri: label, message: error.message })));
|
|
@@ -6,13 +6,13 @@ import {
|
|
|
6
6
|
var exports_service = {};
|
|
7
7
|
__export(exports_service, {
|
|
8
8
|
Plugin: () => exports_service,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service27,
|
|
10
10
|
awaitActivation: () => awaitActivation2
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
|
|
14
|
-
class
|
|
14
|
+
class Service27 extends Context.Service()("@opencode/Plugin") {
|
|
15
15
|
}
|
|
16
|
-
var awaitActivation2 =
|
|
16
|
+
var awaitActivation2 = Service27.use((plugins) => plugins.awaitActivation);
|
|
17
17
|
|
|
18
|
-
export {
|
|
18
|
+
export { Service27, awaitActivation2, exports_service };
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
isTextual2
|
|
3
3
|
} from "./file-retention-4pyp9zr9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./file-retention-
|
|
5
|
+
Service65
|
|
6
|
+
} from "./file-retention-f7rj94ae.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_MARKDOWN_BYTES2,
|
|
9
9
|
convertHTMLToMarkdown2
|
|
@@ -19,30 +19,30 @@ import {
|
|
|
19
19
|
var exports_webfetch = {};
|
|
20
20
|
__export(exports_webfetch, {
|
|
21
21
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
22
|
-
Input: () =>
|
|
22
|
+
Input: () => Input12,
|
|
23
23
|
MAX_REDIRECTS: () => MAX_REDIRECTS2,
|
|
24
24
|
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES3,
|
|
25
25
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
26
|
-
Plugin: () =>
|
|
26
|
+
Plugin: () => Plugin50,
|
|
27
27
|
WebFetchTool: () => exports_webfetch,
|
|
28
28
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
29
|
-
description: () =>
|
|
29
|
+
description: () => description6,
|
|
30
30
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
31
|
-
name: () =>
|
|
31
|
+
name: () => name12
|
|
32
32
|
});
|
|
33
33
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
34
34
|
import { Duration, Effect, Schema } from "effect";
|
|
35
35
|
import { FetchHttpClient, HttpClient, HttpClientError, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
36
36
|
import { Parser } from "htmlparser2";
|
|
37
|
-
var
|
|
37
|
+
var name12 = "webfetch";
|
|
38
38
|
var MAX_RESPONSE_BYTES3 = MAX_MARKDOWN_BYTES2;
|
|
39
39
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
40
40
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
41
|
-
var
|
|
41
|
+
var description6 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
42
42
|
|
|
43
43
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
44
44
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
45
|
-
var
|
|
45
|
+
var Input12 = Schema.Struct({
|
|
46
46
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
47
47
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
48
48
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -52,7 +52,7 @@ var Input7 = Schema.Struct({
|
|
|
52
52
|
var Output = Schema.Struct({
|
|
53
53
|
url: Schema.String,
|
|
54
54
|
contentType: Schema.String,
|
|
55
|
-
format:
|
|
55
|
+
format: Input12.fields.format,
|
|
56
56
|
output: Schema.String
|
|
57
57
|
});
|
|
58
58
|
var acceptHeader = (format) => {
|
|
@@ -115,16 +115,16 @@ var convert = (content, contentType, format) => {
|
|
|
115
115
|
return extractTextFromHTML2(content);
|
|
116
116
|
return content;
|
|
117
117
|
};
|
|
118
|
-
var
|
|
118
|
+
var Plugin50 = {
|
|
119
119
|
id: "opencode.tool.webfetch",
|
|
120
120
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
121
121
|
const http = yield* HttpClient.HttpClient;
|
|
122
|
-
const permission = yield*
|
|
122
|
+
const permission = yield* Service65;
|
|
123
123
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
124
|
-
name:
|
|
124
|
+
name: name12,
|
|
125
125
|
options: { codemode: false },
|
|
126
|
-
description:
|
|
127
|
-
input:
|
|
126
|
+
description: description6,
|
|
127
|
+
input: Input12,
|
|
128
128
|
output: Output,
|
|
129
129
|
execute: (input, context) => Effect.gen(function* () {
|
|
130
130
|
yield* Effect.try({
|
|
@@ -132,7 +132,7 @@ var Plugin26 = {
|
|
|
132
132
|
catch: (error) => error
|
|
133
133
|
});
|
|
134
134
|
yield* permission.assert({
|
|
135
|
-
action:
|
|
135
|
+
action: name12,
|
|
136
136
|
resources: [input.url],
|
|
137
137
|
save: ["*"],
|
|
138
138
|
metadata: input,
|
|
@@ -142,7 +142,7 @@ var Plugin26 = {
|
|
|
142
142
|
});
|
|
143
143
|
const { body, contentType } = yield* Effect.gen(function* () {
|
|
144
144
|
const check = (url) => permission.assertNotDenied({
|
|
145
|
-
action:
|
|
145
|
+
action: name12,
|
|
146
146
|
resources: [url],
|
|
147
147
|
metadata: { ...input, url },
|
|
148
148
|
sessionID: context.sessionID,
|
|
@@ -198,4 +198,4 @@ function extractTextFromHTML2(html) {
|
|
|
198
198
|
parser.end();
|
|
199
199
|
return text.trim();
|
|
200
200
|
}
|
|
201
|
-
export {
|
|
201
|
+
export { name12, MAX_RESPONSE_BYTES3, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description6, Input12, MAX_REDIRECTS2, Plugin50, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./file-retention-
|
|
2
|
+
Service72
|
|
3
|
+
} from "./file-retention-xmm4qtr7.js";
|
|
4
4
|
import {
|
|
5
5
|
Ref3,
|
|
6
|
-
|
|
7
|
-
} from "./file-retention-
|
|
6
|
+
Service78
|
|
7
|
+
} from "./file-retention-721agqj7.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./file-retention-
|
|
10
|
+
Service69
|
|
11
|
+
} from "./file-retention-gmnq7sxz.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionSchema2
|
|
14
|
-
} from "./file-retention-
|
|
14
|
+
} from "./file-retention-v37bc009.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./file-retention-
|
|
16
|
+
Service45
|
|
17
|
+
} from "./file-retention-xa716ypk.js";
|
|
18
18
|
import {
|
|
19
19
|
evaluate3,
|
|
20
|
-
|
|
21
|
-
} from "./file-retention-
|
|
20
|
+
Service65
|
|
21
|
+
} from "./file-retention-f7rj94ae.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./file-retention-
|
|
23
|
+
Service25
|
|
24
|
+
} from "./file-retention-rpxemsgz.js";
|
|
25
25
|
import {
|
|
26
26
|
NO_TEXT2
|
|
27
27
|
} from "./file-retention-0j7gp832.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./file-retention-
|
|
29
|
+
Service12
|
|
30
|
+
} from "./file-retention-nmarmpt2.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
33
|
} from "./file-retention-9rqn6x4v.js";
|
|
@@ -35,16 +35,16 @@ import {
|
|
|
35
35
|
// src/tool/plugin/subagent.ts
|
|
36
36
|
var exports_subagent = {};
|
|
37
37
|
__export(exports_subagent, {
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
38
|
+
Input: () => Input11,
|
|
39
|
+
Output: () => Output9,
|
|
40
|
+
Plugin: () => Plugin48,
|
|
41
41
|
SubagentTool: () => exports_subagent,
|
|
42
|
-
description: () =>
|
|
43
|
-
name: () =>
|
|
42
|
+
description: () => description5,
|
|
43
|
+
name: () => name11
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
46
46
|
import { Effect, Predicate, Schema } from "effect";
|
|
47
|
-
var
|
|
47
|
+
var name11 = "subagent";
|
|
48
48
|
var backgroundResult = (sessionID) => ({
|
|
49
49
|
sessionID,
|
|
50
50
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input11 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,12 +72,12 @@ var Input9 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output9 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
79
79
|
});
|
|
80
|
-
var
|
|
80
|
+
var description5 = [
|
|
81
81
|
"Spawns an agent in a child session to work on the specified task.",
|
|
82
82
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
83
83
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -86,16 +86,16 @@ var description6 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin48 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service25;
|
|
93
|
+
const jobs = yield* Service45;
|
|
94
|
+
const agents = yield* Service72;
|
|
95
|
+
const config = yield* Service69;
|
|
96
|
+
const permission = yield* Service65;
|
|
97
|
+
const models = yield* Service78;
|
|
98
|
+
const subagents = yield* Service12;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref3.parse(input),
|
|
@@ -117,11 +117,11 @@ var Plugin28 = {
|
|
|
117
117
|
return ref;
|
|
118
118
|
});
|
|
119
119
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
120
|
-
name:
|
|
120
|
+
name: name11,
|
|
121
121
|
options: { codemode: false },
|
|
122
|
-
description:
|
|
123
|
-
input:
|
|
124
|
-
output:
|
|
122
|
+
description: description5,
|
|
123
|
+
input: Input11,
|
|
124
|
+
output: Output9,
|
|
125
125
|
execute: (input, context) => Effect.gen(function* () {
|
|
126
126
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
127
127
|
let current = parent;
|
|
@@ -141,7 +141,7 @@ var Plugin28 = {
|
|
|
141
141
|
if (agent.mode === "primary")
|
|
142
142
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
143
143
|
yield* permission.assert({
|
|
144
|
-
action:
|
|
144
|
+
action: name11,
|
|
145
145
|
resources: [agent.id],
|
|
146
146
|
save: [agent.id],
|
|
147
147
|
sessionID: context.sessionID,
|
|
@@ -220,7 +220,7 @@ ${output.output}
|
|
|
220
220
|
})))
|
|
221
221
|
})).pipe(Effect.orDie);
|
|
222
222
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
223
|
-
if (event.tool !==
|
|
223
|
+
if (event.tool !== name11 || !Predicate.isObject(event.input))
|
|
224
224
|
return;
|
|
225
225
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
226
226
|
return;
|
|
@@ -232,13 +232,13 @@ ${output.output}
|
|
|
232
232
|
event.input = input;
|
|
233
233
|
}));
|
|
234
234
|
const hook = (event) => Effect.gen(function* () {
|
|
235
|
-
const tool = event.tools[
|
|
235
|
+
const tool = event.tools[name11];
|
|
236
236
|
if (!tool)
|
|
237
237
|
return;
|
|
238
238
|
const selected = yield* agents.resolve(event.agent);
|
|
239
239
|
if (!selected)
|
|
240
240
|
return;
|
|
241
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate3(
|
|
241
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate3(name11, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
242
242
|
if (available.length === 0)
|
|
243
243
|
return;
|
|
244
244
|
tool.description = [
|
|
@@ -255,4 +255,4 @@ ${output.output}
|
|
|
255
255
|
})
|
|
256
256
|
};
|
|
257
257
|
|
|
258
|
-
export {
|
|
258
|
+
export { name11, Input11, Output9, description5, Plugin48, exports_subagent };
|