@opencode/core 0.0.0-dev-91 → 0.0.0-dev-96
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 +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +7 -7
- package/dist/bus.js +79 -79
- package/dist/chunks/{tool-aj7mw0zk.js → location-lifecycle-034tev2y.js} +2 -2
- package/dist/chunks/{tool-hq4hw89f.js → location-lifecycle-0pynqpwf.js} +21 -21
- package/dist/chunks/{tool-jtj22pb2.js → location-lifecycle-0qf3mhr8.js} +15 -15
- package/dist/chunks/{tool-dcanc5rs.js → location-lifecycle-0txfsz7g.js} +11 -11
- package/dist/chunks/{tool-j5cqker3.js → location-lifecycle-0yceejvq.js} +4 -4
- package/dist/chunks/{tool-3a164vj7.js → location-lifecycle-0zzhzcdy.js} +21 -21
- package/dist/chunks/{tool-46hcmk88.js → location-lifecycle-13dfg3g1.js} +92 -92
- package/dist/chunks/{tool-27w5k9zf.js → location-lifecycle-1ep2p91f.js} +2 -2
- package/dist/chunks/{tool-yqdh10qg.js → location-lifecycle-1h498w7a.js} +10 -10
- package/dist/chunks/{tool-1kn6jdkn.js → location-lifecycle-1kn6jdkn.js} +1 -1
- package/dist/chunks/{tool-kfjnvpza.js → location-lifecycle-1mf4ycf9.js} +2 -2
- package/dist/chunks/{tool-w5w2ye0s.js → location-lifecycle-1s4qyrgd.js} +3 -3
- package/dist/chunks/{tool-j8rqras6.js → location-lifecycle-1s5emn35.js} +9 -9
- package/dist/chunks/{tool-1x2knyw4.js → location-lifecycle-1x2knyw4.js} +1 -1
- package/dist/chunks/{tool-1yq9hg58.js → location-lifecycle-1yq9hg58.js} +1 -1
- package/dist/chunks/{tool-204s3925.js → location-lifecycle-204s3925.js} +1 -1
- package/dist/chunks/{tool-mwg5k7zj.js → location-lifecycle-2gg8p134.js} +33 -33
- package/dist/chunks/{tool-gk277ckk.js → location-lifecycle-2j1927g1.js} +2 -2
- package/dist/chunks/{tool-2kg89srt.js → location-lifecycle-2kg89srt.js} +1 -1
- package/dist/chunks/{tool-72nd48f3.js → location-lifecycle-2mjmg601.js} +19 -19
- package/dist/chunks/{tool-bw4r357a.js → location-lifecycle-2mkh3jee.js} +9 -9
- package/dist/chunks/{tool-q8fk1046.js → location-lifecycle-2tt341e3.js} +30 -30
- package/dist/chunks/{tool-2zp5a6yg.js → location-lifecycle-2zp5a6yg.js} +1 -1
- package/dist/chunks/{tool-ma572n1c.js → location-lifecycle-31dzx4sq.js} +5 -5
- package/dist/chunks/{tool-305xqwqt.js → location-lifecycle-38zftftk.js} +45 -45
- package/dist/chunks/{tool-8vdz7xys.js → location-lifecycle-3g3amc73.js} +9 -9
- package/dist/chunks/{tool-3hepkmqq.js → location-lifecycle-3hepkmqq.js} +1 -1
- package/dist/chunks/{tool-7nbypc4n.js → location-lifecycle-3m4mqfgr.js} +20 -20
- package/dist/chunks/{tool-7jz89kf0.js → location-lifecycle-3n5jkvcw.js} +5 -5
- package/dist/chunks/{tool-3nnrz6f6.js → location-lifecycle-3nnrz6f6.js} +1 -1
- package/dist/chunks/{tool-c4x8pk91.js → location-lifecycle-3pg0cjjn.js} +3 -3
- package/dist/chunks/{tool-yc9w3422.js → location-lifecycle-3s6061p5.js} +13 -13
- package/dist/chunks/{tool-q3xtnt1c.js → location-lifecycle-3tsagvbz.js} +11 -11
- package/dist/chunks/{tool-wtjwwyta.js → location-lifecycle-3vtjh306.js} +12 -12
- package/dist/chunks/{tool-gn34jygc.js → location-lifecycle-3x8v6y5r.js} +19 -19
- package/dist/chunks/{tool-wxf92x0x.js → location-lifecycle-3y8fn22w.js} +1 -1
- package/dist/chunks/{tool-wm8ps0kb.js → location-lifecycle-44e3v4ts.js} +18 -18
- package/dist/chunks/{tool-z56aywt7.js → location-lifecycle-49nvze50.js} +12 -12
- package/dist/chunks/{tool-6b8745b8.js → location-lifecycle-4es0r967.js} +13 -13
- package/dist/chunks/{tool-vnxqy2jq.js → location-lifecycle-4jbtddcy.js} +26 -26
- package/dist/chunks/{tool-4jxvx69e.js → location-lifecycle-4jtw0229.js} +3 -3
- package/dist/chunks/{tool-4pyp9zr9.js → location-lifecycle-4pyp9zr9.js} +1 -1
- package/dist/chunks/{tool-9w4n3zkz.js → location-lifecycle-4s5pdsz9.js} +6 -6
- package/dist/chunks/{tool-4v008n1t.js → location-lifecycle-4v008n1t.js} +1 -1
- package/dist/chunks/{tool-4h4e17dv.js → location-lifecycle-571c0xa8.js} +45 -45
- package/dist/chunks/{tool-5k73ne16.js → location-lifecycle-593m5q2k.js} +18 -18
- package/dist/chunks/{tool-5m9w47nd.js → location-lifecycle-5m9w47nd.js} +1 -1
- package/dist/chunks/{tool-1pnwdb4n.js → location-lifecycle-5tsxwx1t.js} +32 -32
- package/dist/chunks/{tool-hj8dv2fv.js → location-lifecycle-5x26af84.js} +4 -4
- package/dist/chunks/{tool-61ennm6n.js → location-lifecycle-61ennm6n.js} +1 -1
- package/dist/chunks/{tool-4mfe4fpk.js → location-lifecycle-659kt248.js} +5 -5
- package/dist/chunks/{tool-0fwfag3t.js → location-lifecycle-66d52wcm.js} +9 -9
- package/dist/chunks/{tool-6esdw8yj.js → location-lifecycle-6esdw8yj.js} +1 -1
- package/dist/chunks/{tool-2rvkjrha.js → location-lifecycle-6kzw03wj.js} +12 -12
- package/dist/chunks/{tool-7aawz9ta.js → location-lifecycle-6wwc1h0y.js} +17 -17
- package/dist/chunks/{tool-76cb1hcw.js → location-lifecycle-76cb1hcw.js} +1 -1
- package/dist/chunks/{tool-770pw0s1.js → location-lifecycle-770pw0s1.js} +1 -1
- package/dist/chunks/{tool-c9c3vcvh.js → location-lifecycle-77ttacwt.js} +6 -6
- package/dist/chunks/{tool-v9m2ypfg.js → location-lifecycle-7apps605.js} +14 -14
- package/dist/chunks/{tool-7bmhse3q.js → location-lifecycle-7bmhse3q.js} +1 -1
- package/dist/chunks/{tool-3vschx9t.js → location-lifecycle-7tahwg30.js} +4 -4
- package/dist/chunks/{tool-7w2ypzdf.js → location-lifecycle-7w2ypzdf.js} +1 -1
- package/dist/chunks/{tool-wzdbde40.js → location-lifecycle-8395ab52.js} +22 -22
- package/dist/chunks/{tool-k86ss76b.js → location-lifecycle-89658q1h.js} +11 -11
- package/dist/chunks/{tool-draeheqz.js → location-lifecycle-8c9h179s.js} +12 -12
- package/dist/chunks/{tool-5y20gt8q.js → location-lifecycle-8cy6yjnj.js} +5 -5
- package/dist/chunks/{tool-11hfp36g.js → location-lifecycle-8jztxfpf.js} +4 -4
- package/dist/chunks/{tool-k91y97gc.js → location-lifecycle-8k95y3xh.js} +21 -21
- package/dist/chunks/{tool-91gn8tjy.js → location-lifecycle-8m44dcfv.js} +7 -7
- package/dist/chunks/{tool-ja63h2sr.js → location-lifecycle-8wc2fpae.js} +5 -5
- package/dist/chunks/{tool-8wtp7s3z.js → location-lifecycle-8wtp7s3z.js} +1 -1
- package/dist/chunks/{tool-xstj61st.js → location-lifecycle-90hass2h.js} +18 -18
- package/dist/chunks/{tool-90zstvax.js → location-lifecycle-90zstvax.js} +1 -1
- package/dist/chunks/{tool-9pneywy4.js → location-lifecycle-91wahnve.js} +8 -8
- package/dist/chunks/{tool-nad4mkqt.js → location-lifecycle-9bc1thgt.js} +8 -8
- package/dist/chunks/{tool-n3eppyw3.js → location-lifecycle-9csarjst.js} +45 -45
- package/dist/chunks/{tool-mkxa71wh.js → location-lifecycle-9egyhmwg.js} +25 -25
- package/dist/chunks/{tool-7ddp8ank.js → location-lifecycle-9jq4xrcd.js} +38 -38
- package/dist/chunks/{tool-6wkw62dq.js → location-lifecycle-9mpb42pn.js} +17 -17
- package/dist/chunks/{tool-x5xx62h0.js → location-lifecycle-9vxcaz77.js} +14 -14
- package/dist/chunks/{tool-ra34yqmw.js → location-lifecycle-a4ww6fpm.js} +6 -6
- package/dist/chunks/{tool-pjzajrbc.js → location-lifecycle-a9k70j1m.js} +54 -54
- package/dist/chunks/{tool-axy5ptv8.js → location-lifecycle-afx5ptxw.js} +11 -11
- package/dist/chunks/{tool-dp2cvfdy.js → location-lifecycle-argy1hng.js} +26 -26
- package/dist/chunks/{tool-sweqe2a6.js → location-lifecycle-atr2mg2b.js} +8 -8
- package/dist/chunks/{tool-7aerd0dr.js → location-lifecycle-ay8at4ts.js} +9 -9
- package/dist/chunks/{tool-3cbjf1nt.js → location-lifecycle-ayjs7tqn.js} +2 -2
- package/dist/chunks/{tool-7w0d3x1p.js → location-lifecycle-b2es2gxt.js} +35 -35
- package/dist/chunks/{tool-tzr3pa0w.js → location-lifecycle-b396mz2y.js} +13 -13
- package/dist/chunks/{tool-b6vsg801.js → location-lifecycle-b6vsg801.js} +2 -2
- package/dist/chunks/{tool-2x2ke6ta.js → location-lifecycle-bff375yx.js} +47 -47
- package/dist/chunks/{tool-1cp227ey.js → location-lifecycle-bnbdtabc.js} +17 -17
- package/dist/chunks/{tool-bstexjd6.js → location-lifecycle-bstexjd6.js} +1 -1
- package/dist/chunks/{tool-k8dvdjfn.js → location-lifecycle-by0j0h2p.js} +4 -4
- package/dist/chunks/{tool-860bwv8p.js → location-lifecycle-bysrz3s4.js} +13 -13
- package/dist/chunks/{tool-ds7r37yp.js → location-lifecycle-c46s9eb3.js} +5 -5
- package/dist/chunks/{tool-mpe6qr53.js → location-lifecycle-c5m2a8vb.js} +8 -8
- package/dist/chunks/{tool-x1a7cwfg.js → location-lifecycle-c6p73vp9.js} +9 -9
- package/dist/chunks/{tool-1gbxvym9.js → location-lifecycle-c73btdhw.js} +8 -8
- package/dist/chunks/{tool-4xer52tg.js → location-lifecycle-c89mfdye.js} +9 -9
- package/dist/chunks/{tool-0ahs07zn.js → location-lifecycle-cpvd08na.js} +4 -4
- package/dist/chunks/{tool-cwrgdav8.js → location-lifecycle-cwrgdav8.js} +2 -2
- package/dist/chunks/{tool-ssfehs1z.js → location-lifecycle-d2887f8n.js} +4 -4
- package/dist/chunks/{tool-cmwydw43.js → location-lifecycle-d390zwf3.js} +6 -6
- package/dist/chunks/{tool-gbzp4egg.js → location-lifecycle-d3v7ftdb.js} +12 -12
- package/dist/chunks/{tool-hn0gtwg2.js → location-lifecycle-d3y6ws5r.js} +5 -5
- package/dist/chunks/{tool-d4v9tmah.js → location-lifecycle-d4v9tmah.js} +2 -2
- package/dist/chunks/{tool-h3b857xk.js → location-lifecycle-d8p3t516.js} +4 -4
- package/dist/chunks/{tool-jem635sa.js → location-lifecycle-da0rp3w3.js} +7 -7
- package/dist/chunks/{tool-awnpzmr9.js → location-lifecycle-dep9axyc.js} +17 -17
- package/dist/chunks/{tool-pg5ky8fn.js → location-lifecycle-dkqevyg4.js} +6 -6
- package/dist/chunks/{tool-drvbhkez.js → location-lifecycle-drvbhkez.js} +2 -2
- package/dist/chunks/{tool-6khygjy4.js → location-lifecycle-dssj73nn.js} +22 -22
- package/dist/chunks/{tool-dt77769w.js → location-lifecycle-dt77769w.js} +1 -1
- package/dist/chunks/{tool-jx64hzqx.js → location-lifecycle-e19pjn16.js} +20 -20
- package/dist/chunks/location-lifecycle-e54pjyq4.js +257 -0
- package/dist/chunks/{tool-e834z07m.js → location-lifecycle-e834z07m.js} +1 -1
- package/dist/chunks/{tool-gr5kqd9r.js → location-lifecycle-e8x13e29.js} +25 -25
- package/dist/chunks/{tool-cs175ng9.js → location-lifecycle-ec8ztzxh.js} +35 -35
- package/dist/chunks/{tool-kx5zbgb5.js → location-lifecycle-efrs1fd0.js} +5 -5
- package/dist/chunks/{tool-gcmr6tz2.js → location-lifecycle-eg9axkz1.js} +25 -25
- package/dist/chunks/{tool-3e3jqjep.js → location-lifecycle-ehmz4fbd.js} +7 -7
- package/dist/chunks/{tool-698qh926.js → location-lifecycle-ejpsjfaa.js} +11 -11
- package/dist/chunks/{tool-0ryed6y5.js → location-lifecycle-ekvcbmhs.js} +16 -16
- package/dist/chunks/{tool-hed2thzz.js → location-lifecycle-er4j9ya8.js} +13 -13
- package/dist/chunks/{tool-69xqjxg7.js → location-lifecycle-escmp7at.js} +4 -4
- package/dist/chunks/{tool-m6s8mxr7.js → location-lifecycle-evc6pnny.js} +12 -12
- package/dist/chunks/{tool-52b9nvdb.js → location-lifecycle-ewc6hp7k.js} +13 -13
- package/dist/chunks/{tool-zkmce7rg.js → location-lifecycle-fb6xpck4.js} +11 -11
- package/dist/chunks/{tool-0j4991a9.js → location-lifecycle-fd3xj8kb.js} +20 -20
- package/dist/chunks/{tool-fffv3p7h.js → location-lifecycle-fffv3p7h.js} +1 -1
- package/dist/chunks/location-lifecycle-ffr2ff94.js +26 -0
- package/dist/chunks/{tool-fg9p65nk.js → location-lifecycle-fg9p65nk.js} +2 -2
- package/dist/chunks/{tool-68x0q3w1.js → location-lifecycle-fj1gdevc.js} +29 -29
- package/dist/chunks/{tool-2kxyfk53.js → location-lifecycle-fkk6zjcb.js} +1 -1
- package/dist/chunks/{tool-zpdhy3rs.js → location-lifecycle-fmkz8025.js} +20 -20
- package/dist/chunks/{tool-q2j9e0vw.js → location-lifecycle-fqh1vcta.js} +28 -28
- package/dist/chunks/{tool-s36045k5.js → location-lifecycle-fyfkn899.js} +26 -26
- package/dist/chunks/{tool-fznmdakp.js → location-lifecycle-fznmdakp.js} +1 -1
- package/dist/chunks/{tool-7mjr8a8n.js → location-lifecycle-g3e9axc6.js} +49 -49
- package/dist/chunks/{tool-rj977cyr.js → location-lifecycle-g93ewfj3.js} +21 -21
- package/dist/chunks/{tool-ngbav3vd.js → location-lifecycle-g9z7txar.js} +38 -38
- package/dist/chunks/{tool-vrcsa8qx.js → location-lifecycle-gcjdgkn2.js} +9 -9
- package/dist/chunks/{tool-ep59zg61.js → location-lifecycle-gg8p9cgs.js} +3 -3
- package/dist/chunks/{tool-wzcyht23.js → location-lifecycle-gzwbakhe.js} +48 -48
- package/dist/chunks/{tool-9ctmy678.js → location-lifecycle-h30qdrk4.js} +33 -33
- package/dist/chunks/{tool-nk68y23q.js → location-lifecycle-h6f816q8.js} +5 -5
- package/dist/chunks/{tool-tn29j0fz.js → location-lifecycle-h6gk331h.js} +5 -5
- package/dist/chunks/{tool-ysxqaady.js → location-lifecycle-hc06g2dd.js} +18 -18
- package/dist/chunks/{tool-hdfrs5mg.js → location-lifecycle-hdfrs5mg.js} +2 -2
- package/dist/chunks/{tool-hfgk9wzg.js → location-lifecycle-hfgk9wzg.js} +1 -1
- package/dist/chunks/{tool-28v09jk4.js → location-lifecycle-hhd4jpkv.js} +9 -9
- package/dist/chunks/{tool-s631gf5j.js → location-lifecycle-hjjzccew.js} +24 -24
- package/dist/chunks/{tool-230veacn.js → location-lifecycle-hkttqz6k.js} +12 -12
- package/dist/chunks/{tool-hwp1rwn1.js → location-lifecycle-hp8bxbqk.js} +13 -13
- package/dist/chunks/{tool-hpg1pkwy.js → location-lifecycle-hpg1pkwy.js} +1 -1
- package/dist/chunks/{tool-7heva7vf.js → location-lifecycle-hrvanjhp.js} +15 -15
- package/dist/chunks/{tool-qb7a72fd.js → location-lifecycle-hyaaevkq.js} +13 -13
- package/dist/chunks/{tool-h57pbter.js → location-lifecycle-hyvndsn3.js} +12 -12
- package/dist/chunks/{tool-emmmyxzw.js → location-lifecycle-j4fqp8bt.js} +22 -22
- package/dist/chunks/{tool-jh6e5x5q.js → location-lifecycle-jcyy662a.js} +21 -21
- package/dist/chunks/{tool-beyjcx72.js → location-lifecycle-jd7xkz5t.js} +4 -4
- package/dist/chunks/{tool-jfaecv01.js → location-lifecycle-jfaecv01.js} +1 -1
- package/dist/chunks/{tool-sar0kh51.js → location-lifecycle-jpt0aj2d.js} +16 -16
- package/dist/chunks/{tool-jtnps1zs.js → location-lifecycle-jtnps1zs.js} +2 -2
- package/dist/chunks/{tool-61q2c8gp.js → location-lifecycle-jwck18p0.js} +4 -4
- package/dist/chunks/{tool-3ran0gcz.js → location-lifecycle-k00xdm8z.js} +4 -4
- package/dist/chunks/{tool-517jtzaa.js → location-lifecycle-k1y2t7va.js} +8 -8
- package/dist/chunks/{tool-fhq3mczf.js → location-lifecycle-k3b4spb7.js} +15 -15
- package/dist/chunks/{tool-mfvvktb5.js → location-lifecycle-k4jqj58p.js} +30 -30
- package/dist/chunks/{tool-k814nvkf.js → location-lifecycle-k814nvkf.js} +1 -1
- package/dist/chunks/{tool-k9zkdd2y.js → location-lifecycle-k9zkdd2y.js} +1 -1
- package/dist/chunks/{tool-8wdz4h3x.js → location-lifecycle-kb5vdnxs.js} +25 -25
- package/dist/chunks/{tool-fcdhbwna.js → location-lifecycle-kbww7t3z.js} +12 -12
- package/dist/chunks/{tool-z2e75qjb.js → location-lifecycle-krbc0w9j.js} +18 -18
- package/dist/chunks/{tool-q9z0p7gh.js → location-lifecycle-krv07zrz.js} +14 -14
- package/dist/chunks/{tool-kt3bjfbg.js → location-lifecycle-kt3bjfbg.js} +1 -1
- package/dist/chunks/{tool-bq6jjxqp.js → location-lifecycle-kvh94732.js} +18 -18
- package/dist/chunks/{tool-n3bkb5q1.js → location-lifecycle-kx4zfn7s.js} +8 -8
- package/dist/chunks/{tool-6g0tafez.js → location-lifecycle-kyjvyndz.js} +18 -18
- package/dist/chunks/{tool-1t618e4c.js → location-lifecycle-kz91psg5.js} +37 -37
- package/dist/chunks/{tool-m1714858.js → location-lifecycle-m1714858.js} +1 -1
- package/dist/chunks/{tool-j9z4bav5.js → location-lifecycle-m3vdhvvx.js} +42 -42
- package/dist/chunks/{tool-3dqda9j1.js → location-lifecycle-m45g6xk3.js} +57 -57
- package/dist/chunks/{tool-5wj60p4s.js → location-lifecycle-m956wbx5.js} +9 -9
- package/dist/chunks/{tool-m9w0rfyh.js → location-lifecycle-m9w0rfyh.js} +1 -1
- package/dist/chunks/{tool-ep9ghbrk.js → location-lifecycle-mc0mf75j.js} +11 -11
- package/dist/chunks/{tool-ee45cksz.js → location-lifecycle-megkghgm.js} +17 -17
- package/dist/chunks/{tool-f97eyc81.js → location-lifecycle-mqt19jab.js} +5 -5
- package/dist/chunks/{tool-74zhyzb7.js → location-lifecycle-mrhsrvyj.js} +6 -6
- package/dist/chunks/{tool-vkd92t59.js → location-lifecycle-mxa7x819.js} +21 -21
- package/dist/chunks/{tool-k65b2vst.js → location-lifecycle-n8r9g462.js} +27 -27
- package/dist/chunks/{tool-yc35554n.js → location-lifecycle-n9j6q2yt.js} +4 -4
- package/dist/chunks/{tool-qg14jn6v.js → location-lifecycle-ncfhdpxs.js} +30 -30
- package/dist/chunks/{tool-7ez3gjeb.js → location-lifecycle-nh37xeqd.js} +15 -15
- package/dist/chunks/{tool-q3v7sg8t.js → location-lifecycle-nnx5jh0h.js} +11 -11
- package/dist/chunks/{tool-7t6vbzys.js → location-lifecycle-nqwjnhn2.js} +21 -21
- package/dist/chunks/{tool-0c8f71n7.js → location-lifecycle-nvqjkgcj.js} +17 -17
- package/dist/chunks/{tool-zbqcyxaa.js → location-lifecycle-nzmqqmhf.js} +19 -19
- package/dist/chunks/{tool-p015t6z3.js → location-lifecycle-p015t6z3.js} +2 -2
- package/dist/chunks/{tool-7enbyk8v.js → location-lifecycle-p8rwbenj.js} +37 -37
- package/dist/chunks/{tool-6fx7ap1b.js → location-lifecycle-p90d1n73.js} +9 -9
- package/dist/chunks/{tool-by8ezbee.js → location-lifecycle-pd78mrea.js} +27 -27
- package/dist/chunks/{tool-5phnv3yb.js → location-lifecycle-pev14w4e.js} +6 -6
- package/dist/chunks/{tool-1svbn1jm.js → location-lifecycle-pgckvs8f.js} +4 -4
- package/dist/chunks/{tool-j1568g2c.js → location-lifecycle-ph7d09sa.js} +9 -9
- package/dist/chunks/{tool-pknna89w.js → location-lifecycle-pknna89w.js} +1 -1
- package/dist/chunks/{tool-kpm58pge.js → location-lifecycle-pvk8eqah.js} +25 -25
- package/dist/chunks/{tool-njyr3yz2.js → location-lifecycle-pwfd0hqt.js} +182 -182
- package/dist/chunks/{tool-38adaqc0.js → location-lifecycle-q6yya7b3.js} +5 -5
- package/dist/chunks/{tool-qp7r0hxv.js → location-lifecycle-qp7r0hxv.js} +1 -1
- package/dist/chunks/{tool-vtgxp655.js → location-lifecycle-qsee9sfb.js} +2 -2
- package/dist/chunks/{tool-s4g3e7mz.js → location-lifecycle-qxmke217.js} +38 -38
- package/dist/chunks/{tool-r0yr0wbs.js → location-lifecycle-r0yr0wbs.js} +1 -1
- package/dist/chunks/{tool-40za9wsf.js → location-lifecycle-r41sfy63.js} +6 -6
- package/dist/chunks/{tool-r542h3bh.js → location-lifecycle-r542h3bh.js} +1 -1
- package/dist/chunks/{tool-14g07qkw.js → location-lifecycle-r6609qgj.js} +27 -27
- package/dist/chunks/{tool-rb9dy4dg.js → location-lifecycle-rb9dy4dg.js} +1 -1
- package/dist/chunks/{tool-1ftdw7h3.js → location-lifecycle-rgbq3f4j.js} +17 -17
- package/dist/chunks/{tool-5fn6dbwx.js → location-lifecycle-rhenp69m.js} +5 -5
- package/dist/chunks/{tool-5849hgw0.js → location-lifecycle-rjj7awg3.js} +21 -21
- package/dist/chunks/{tool-rt5dr6hb.js → location-lifecycle-rt5dr6hb.js} +1 -1
- package/dist/chunks/{tool-ct12tdge.js → location-lifecycle-s5rnxzx6.js} +74 -74
- package/dist/chunks/{tool-sa3fpqfw.js → location-lifecycle-sa3fpqfw.js} +2 -2
- package/dist/chunks/{tool-75c6t5n2.js → location-lifecycle-sjg9an28.js} +43 -43
- package/dist/chunks/{tool-sqjzf8x2.js → location-lifecycle-sqjzf8x2.js} +1 -1
- package/dist/chunks/{tool-svcy3p9a.js → location-lifecycle-svcy3p9a.js} +1 -1
- package/dist/chunks/{tool-ks317rcp.js → location-lifecycle-t5jqs5j7.js} +2 -2
- package/dist/chunks/{tool-x0fjpjwd.js → location-lifecycle-t8esk2gp.js} +25 -25
- package/dist/chunks/{tool-cqw9ekvn.js → location-lifecycle-t9qkp5rw.js} +9 -9
- package/dist/chunks/{tool-3xf4gmea.js → location-lifecycle-tanfvfr0.js} +36 -36
- package/dist/chunks/{tool-tczq8hjw.js → location-lifecycle-tczq8hjw.js} +1 -1
- package/dist/chunks/{tool-ex547tfp.js → location-lifecycle-thnnvt7z.js} +24 -24
- package/dist/chunks/{tool-ba26w197.js → location-lifecycle-tjqje47s.js} +5 -5
- package/dist/chunks/{tool-ndtrv5vn.js → location-lifecycle-tkejj1mv.js} +32 -32
- package/dist/chunks/{tool-hqz3v7ac.js → location-lifecycle-tspfbqtr.js} +11 -11
- package/dist/chunks/{tool-twssxy5n.js → location-lifecycle-twssxy5n.js} +2 -2
- package/dist/chunks/location-lifecycle-tzjp6t9r.js +511 -0
- package/dist/chunks/{tool-v2r1d0zg.js → location-lifecycle-v2r1d0zg.js} +1 -1
- package/dist/chunks/{tool-ydsespw1.js → location-lifecycle-v5hpj9dd.js} +8 -8
- package/dist/chunks/{tool-1zfa644b.js → location-lifecycle-v9rqbzsq.js} +35 -35
- package/dist/chunks/{tool-vaq1yek0.js → location-lifecycle-vaq1yek0.js} +3 -3
- package/dist/chunks/{tool-veqvce7d.js → location-lifecycle-veqvce7d.js} +1 -1
- package/dist/chunks/{tool-av2yj9c6.js → location-lifecycle-vxw7r75p.js} +11 -11
- package/dist/chunks/{tool-9yr7e8hg.js → location-lifecycle-vzth5496.js} +22 -22
- package/dist/chunks/{tool-xrzs0xn3.js → location-lifecycle-vzyfvavq.js} +8 -8
- package/dist/chunks/{tool-1q93rhva.js → location-lifecycle-w1dfqh86.js} +11 -11
- package/dist/chunks/{tool-w3wsvvr9.js → location-lifecycle-w3wsvvr9.js} +1 -1
- package/dist/chunks/{tool-e1mb4rnk.js → location-lifecycle-w5yxp3hw.js} +4 -4
- package/dist/chunks/{tool-vz02t2s9.js → location-lifecycle-w72e71xv.js} +43 -43
- package/dist/chunks/{tool-hghxj8gh.js → location-lifecycle-w8tewjsp.js} +26 -26
- package/dist/chunks/{tool-v8t9vyt9.js → location-lifecycle-w90qadrs.js} +32 -32
- package/dist/chunks/{tool-wakvkjy4.js → location-lifecycle-wakvkjy4.js} +1 -1
- package/dist/chunks/{tool-wd87259q.js → location-lifecycle-wd87259q.js} +1 -1
- package/dist/chunks/{tool-wnhgecwx.js → location-lifecycle-wnhgecwx.js} +1 -1
- package/dist/chunks/{tool-d24g109n.js → location-lifecycle-wp3582yg.js} +4 -4
- package/dist/chunks/{tool-5571esjp.js → location-lifecycle-wqsqce1q.js} +20 -20
- package/dist/chunks/{tool-pqyr85nv.js → location-lifecycle-wse1pq25.js} +28 -28
- package/dist/chunks/{tool-hvb7rpxf.js → location-lifecycle-wzagvp0p.js} +19 -19
- package/dist/chunks/{tool-d05zg70t.js → location-lifecycle-x0fq6v58.js} +24 -24
- package/dist/chunks/{tool-scjxmssc.js → location-lifecycle-x7zajsph.js} +8 -8
- package/dist/chunks/{tool-krv0p5sn.js → location-lifecycle-xb71yztv.js} +11 -11
- package/dist/chunks/{tool-1ggxchhs.js → location-lifecycle-xvsw1s9a.js} +14 -14
- package/dist/chunks/{tool-zg3zhf3v.js → location-lifecycle-xw7793rd.js} +23 -23
- package/dist/chunks/{tool-m0jwy07f.js → location-lifecycle-y3ahkf2e.js} +35 -35
- package/dist/chunks/{tool-qkw2jr9b.js → location-lifecycle-yara3q77.js} +2 -2
- package/dist/chunks/{tool-yb20nhc3.js → location-lifecycle-yb20nhc3.js} +1 -1
- package/dist/chunks/{tool-q4vfmnms.js → location-lifecycle-ybj0t81k.js} +30 -30
- package/dist/chunks/{tool-py366xq1.js → location-lifecycle-yj33kabs.js} +9 -9
- package/dist/chunks/{tool-ymz7p2c9.js → location-lifecycle-ymz7p2c9.js} +3 -3
- package/dist/chunks/{tool-ztf6n3de.js → location-lifecycle-yqveydy6.js} +4 -4
- package/dist/chunks/{tool-f3yfea70.js → location-lifecycle-z02rg5r5.js} +3 -3
- package/dist/chunks/{tool-z0bkrqjs.js → location-lifecycle-z0bkrqjs.js} +1 -1
- package/dist/chunks/{tool-852b9zb5.js → location-lifecycle-z15t4xkz.js} +29 -29
- package/dist/chunks/{tool-z38nccrw.js → location-lifecycle-z38nccrw.js} +1 -1
- package/dist/chunks/{tool-pvjefvaz.js → location-lifecycle-z395qepn.js} +13 -13
- package/dist/chunks/{tool-gp067yzn.js → location-lifecycle-z4fv3q24.js} +11 -11
- package/dist/chunks/location-lifecycle-z7bdqmx5.js +18 -0
- package/dist/chunks/{tool-0j8sypb1.js → location-lifecycle-zestxctz.js} +30 -30
- package/dist/chunks/{tool-c50m1jnq.js → location-lifecycle-zevk5kpf.js} +21 -21
- package/dist/chunks/{tool-zgkm4kzm.js → location-lifecycle-zgkm4kzm.js} +3 -3
- package/dist/chunks/{tool-x1wax2tm.js → location-lifecycle-zh5xqnxh.js} +5 -5
- package/dist/chunks/{tool-zgd8t41s.js → location-lifecycle-zh7bbm8x.js} +9 -9
- package/dist/chunks/{tool-0qbg5y1h.js → location-lifecycle-zmtqta5h.js} +75 -75
- package/dist/chunks/{tool-7aq6rx75.js → location-lifecycle-zprh8kn6.js} +43 -43
- package/dist/chunks/{tool-7spmdhhv.js → location-lifecycle-ztnvrctf.js} +14 -14
- package/dist/chunks/{tool-qgtqwdmb.js → location-lifecycle-zwa1n2at.js} +12 -12
- package/dist/chunks/{tool-9qcg53ez.js → location-lifecycle-zx29snpc.js} +9 -9
- 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 +90 -90
- package/dist/config/integration.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +121 -121
- package/dist/config/plugin/command.js +219 -219
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +121 -121
- package/dist/config/plugin/mcp.js +128 -128
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +121 -121
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +120 -120
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +120 -120
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +76 -76
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +98 -98
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +381 -381
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -101
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +80 -80
- package/dist/file-access.js +148 -148
- package/dist/file-mutation.js +102 -102
- 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/file-watch.js +86 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +7 -7
- package/dist/filesystem.js +110 -110
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +95 -95
- package/dist/generate.js +115 -115
- package/dist/git.js +11 -11
- 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 +107 -107
- 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-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +372 -372
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +91 -91
- package/dist/job.js +82 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +166 -166
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +369 -369
- package/dist/location.js +93 -93
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +160 -160
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +107 -107
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +106 -106
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +116 -116
- 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 +143 -143
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +80 -80
- package/dist/plugin/command.js +108 -108
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +225 -225
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +342 -342
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +123 -123
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +121 -121
- package/dist/plugin/provider/opencode.js +124 -124
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +175 -175
- package/dist/plugin/sdk.js +82 -82
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +361 -361
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +234 -234
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +105 -105
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +92 -92
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +105 -105
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +164 -164
- package/dist/session/context.js +186 -186
- package/dist/session/diff.js +96 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -231
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +188 -188
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +132 -132
- 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 +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +153 -153
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +81 -81
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +228 -228
- package/dist/session/usage.js +1 -1
- package/dist/session.js +221 -221
- 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 +9 -9
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +143 -143
- package/dist/skill.js +142 -142
- package/dist/snapshot.js +99 -99
- 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 +159 -159
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +136 -136
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +222 -222
- package/dist/tool/plugin/skill.js +147 -147
- package/dist/tool/plugin/subagent.js +226 -226
- package/dist/tool/plugin/todo.js +143 -143
- package/dist/tool/plugin/webfetch.js +149 -149
- package/dist/tool/plugin/websearch.js +145 -145
- package/dist/tool/plugin/write.js +154 -154
- package/dist/tool/read-filesystem.js +104 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +95 -95
- package/dist/voice.js +96 -96
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -86
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +104 -104
- package/package.json +8 -8
- package/dist/chunks/tool-00ve6mdn.js +0 -18
- package/dist/chunks/tool-axtqa2m2.js +0 -26
- package/dist/chunks/tool-hknrdqqs.js +0 -257
- package/dist/chunks/tool-s8gnseh8.js +0 -511
- /package/dist/chunks/{tool-0qkdqm5v.js → location-lifecycle-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{tool-0zkw76rk.js → location-lifecycle-0zkw76rk.js} +0 -0
- /package/dist/chunks/{tool-17cy0kzp.js → location-lifecycle-17cy0kzp.js} +0 -0
- /package/dist/chunks/{tool-1cnp2v09.js → location-lifecycle-1cnp2v09.js} +0 -0
- /package/dist/chunks/{tool-1jakw16s.js → location-lifecycle-1jakw16s.js} +0 -0
- /package/dist/chunks/{tool-24dcb14g.js → location-lifecycle-24dcb14g.js} +0 -0
- /package/dist/chunks/{tool-2710q6r3.js → location-lifecycle-2710q6r3.js} +0 -0
- /package/dist/chunks/{tool-2bv980vf.js → location-lifecycle-2bv980vf.js} +0 -0
- /package/dist/chunks/{tool-2c3vjs8z.js → location-lifecycle-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{tool-359p4xyc.js → location-lifecycle-359p4xyc.js} +0 -0
- /package/dist/chunks/{tool-3asan66x.js → location-lifecycle-3asan66x.js} +0 -0
- /package/dist/chunks/{tool-3v8g72cx.js → location-lifecycle-3v8g72cx.js} +0 -0
- /package/dist/chunks/{tool-3wcehsnq.js → location-lifecycle-3wcehsnq.js} +0 -0
- /package/dist/chunks/{tool-43n2bw4t.js → location-lifecycle-43n2bw4t.js} +0 -0
- /package/dist/chunks/{tool-4knz6hnm.js → location-lifecycle-4knz6hnm.js} +0 -0
- /package/dist/chunks/{tool-4m86bj6y.js → location-lifecycle-4m86bj6y.js} +0 -0
- /package/dist/chunks/{tool-4vcrnpx2.js → location-lifecycle-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{tool-4y7fprxs.js → location-lifecycle-4y7fprxs.js} +0 -0
- /package/dist/chunks/{tool-53557ph1.js → location-lifecycle-53557ph1.js} +0 -0
- /package/dist/chunks/{tool-550bvhaj.js → location-lifecycle-550bvhaj.js} +0 -0
- /package/dist/chunks/{tool-5w3e23ze.js → location-lifecycle-5w3e23ze.js} +0 -0
- /package/dist/chunks/{tool-6prwharc.js → location-lifecycle-6prwharc.js} +0 -0
- /package/dist/chunks/{tool-6q2bdcd1.js → location-lifecycle-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{tool-7akdwqpd.js → location-lifecycle-7akdwqpd.js} +0 -0
- /package/dist/chunks/{tool-7m9af43g.js → location-lifecycle-7m9af43g.js} +0 -0
- /package/dist/chunks/{tool-822emrt2.js → location-lifecycle-822emrt2.js} +0 -0
- /package/dist/chunks/{tool-84wd9syh.js → location-lifecycle-84wd9syh.js} +0 -0
- /package/dist/chunks/{tool-88xbtdfr.js → location-lifecycle-88xbtdfr.js} +0 -0
- /package/dist/chunks/{tool-8n3pysct.js → location-lifecycle-8n3pysct.js} +0 -0
- /package/dist/chunks/{tool-8wj87zfr.js → location-lifecycle-8wj87zfr.js} +0 -0
- /package/dist/chunks/{tool-9a4afbnw.js → location-lifecycle-9a4afbnw.js} +0 -0
- /package/dist/chunks/{tool-9rqn6x4v.js → location-lifecycle-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{tool-a058387c.js → location-lifecycle-a058387c.js} +0 -0
- /package/dist/chunks/{tool-a6k6eb26.js → location-lifecycle-a6k6eb26.js} +0 -0
- /package/dist/chunks/{tool-af5trqkr.js → location-lifecycle-af5trqkr.js} +0 -0
- /package/dist/chunks/{tool-afrmfg78.js → location-lifecycle-afrmfg78.js} +0 -0
- /package/dist/chunks/{tool-aqzs7mqg.js → location-lifecycle-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{tool-atq7p7m5.js → location-lifecycle-atq7p7m5.js} +0 -0
- /package/dist/chunks/{tool-beh6qq61.js → location-lifecycle-beh6qq61.js} +0 -0
- /package/dist/chunks/{tool-bkyjaxrp.js → location-lifecycle-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{tool-bmr6ed5q.js → location-lifecycle-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{tool-cf4snx6d.js → location-lifecycle-cf4snx6d.js} +0 -0
- /package/dist/chunks/{tool-cqv5kn06.js → location-lifecycle-cqv5kn06.js} +0 -0
- /package/dist/chunks/{tool-cvy3z8tj.js → location-lifecycle-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{tool-d9fn303g.js → location-lifecycle-d9fn303g.js} +0 -0
- /package/dist/chunks/{tool-d9jj8t3e.js → location-lifecycle-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{tool-dajrwvna.js → location-lifecycle-dajrwvna.js} +0 -0
- /package/dist/chunks/{tool-dap0rakb.js → location-lifecycle-dap0rakb.js} +0 -0
- /package/dist/chunks/{tool-df08tz66.js → location-lifecycle-df08tz66.js} +0 -0
- /package/dist/chunks/{tool-dy18nga0.js → location-lifecycle-dy18nga0.js} +0 -0
- /package/dist/chunks/{tool-e5kj55wp.js → location-lifecycle-e5kj55wp.js} +0 -0
- /package/dist/chunks/{tool-e73j6tqm.js → location-lifecycle-e73j6tqm.js} +0 -0
- /package/dist/chunks/{tool-ec1grn59.js → location-lifecycle-ec1grn59.js} +0 -0
- /package/dist/chunks/{tool-eh3zwz77.js → location-lifecycle-eh3zwz77.js} +0 -0
- /package/dist/chunks/{tool-emrn6kk6.js → location-lifecycle-emrn6kk6.js} +0 -0
- /package/dist/chunks/{tool-f0mxakyp.js → location-lifecycle-f0mxakyp.js} +0 -0
- /package/dist/chunks/{tool-f6n9ztr4.js → location-lifecycle-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{tool-faypxj3z.js → location-lifecycle-faypxj3z.js} +0 -0
- /package/dist/chunks/{tool-fd410y7t.js → location-lifecycle-fd410y7t.js} +0 -0
- /package/dist/chunks/{tool-fkpq3x5p.js → location-lifecycle-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{tool-g4wezp1m.js → location-lifecycle-g4wezp1m.js} +0 -0
- /package/dist/chunks/{tool-g86h250q.js → location-lifecycle-g86h250q.js} +0 -0
- /package/dist/chunks/{tool-gebd4c9n.js → location-lifecycle-gebd4c9n.js} +0 -0
- /package/dist/chunks/{tool-gftt206x.js → location-lifecycle-gftt206x.js} +0 -0
- /package/dist/chunks/{tool-hcxmzztb.js → location-lifecycle-hcxmzztb.js} +0 -0
- /package/dist/chunks/{tool-hk9envan.js → location-lifecycle-hk9envan.js} +0 -0
- /package/dist/chunks/{tool-j2ntwpah.js → location-lifecycle-j2ntwpah.js} +0 -0
- /package/dist/chunks/{tool-j5zkgpj8.js → location-lifecycle-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{tool-jjkms2e6.js → location-lifecycle-jjkms2e6.js} +0 -0
- /package/dist/chunks/{tool-jr7sbwjy.js → location-lifecycle-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{tool-jwfs4k6c.js → location-lifecycle-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{tool-jwr30sdr.js → location-lifecycle-jwr30sdr.js} +0 -0
- /package/dist/chunks/{tool-jze0r7bz.js → location-lifecycle-jze0r7bz.js} +0 -0
- /package/dist/chunks/{tool-jzg6c2d5.js → location-lifecycle-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{tool-m18g726c.js → location-lifecycle-m18g726c.js} +0 -0
- /package/dist/chunks/{tool-mp448xyj.js → location-lifecycle-mp448xyj.js} +0 -0
- /package/dist/chunks/{tool-msx8hqn2.js → location-lifecycle-msx8hqn2.js} +0 -0
- /package/dist/chunks/{tool-n05xt0ee.js → location-lifecycle-n05xt0ee.js} +0 -0
- /package/dist/chunks/{tool-n3j8tn72.js → location-lifecycle-n3j8tn72.js} +0 -0
- /package/dist/chunks/{tool-ncqqe42p.js → location-lifecycle-ncqqe42p.js} +0 -0
- /package/dist/chunks/{tool-njntx4h6.js → location-lifecycle-njntx4h6.js} +0 -0
- /package/dist/chunks/{tool-p71gwv9c.js → location-lifecycle-p71gwv9c.js} +0 -0
- /package/dist/chunks/{tool-q3sfg36h.js → location-lifecycle-q3sfg36h.js} +0 -0
- /package/dist/chunks/{tool-q74kybfr.js → location-lifecycle-q74kybfr.js} +0 -0
- /package/dist/chunks/{tool-qaymkmh1.js → location-lifecycle-qaymkmh1.js} +0 -0
- /package/dist/chunks/{tool-qb87gjwd.js → location-lifecycle-qb87gjwd.js} +0 -0
- /package/dist/chunks/{tool-qfa1cgps.js → location-lifecycle-qfa1cgps.js} +0 -0
- /package/dist/chunks/{tool-qg3g05ea.js → location-lifecycle-qg3g05ea.js} +0 -0
- /package/dist/chunks/{tool-qrg20bc0.js → location-lifecycle-qrg20bc0.js} +0 -0
- /package/dist/chunks/{tool-rcb2kzg1.js → location-lifecycle-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{tool-sdp7kfr6.js → location-lifecycle-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{tool-ssg3fenm.js → location-lifecycle-ssg3fenm.js} +0 -0
- /package/dist/chunks/{tool-ve7vex1e.js → location-lifecycle-ve7vex1e.js} +0 -0
- /package/dist/chunks/{tool-w803qqfp.js → location-lifecycle-w803qqfp.js} +0 -0
- /package/dist/chunks/{tool-wc3fc9cn.js → location-lifecycle-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{tool-wer8tq1h.js → location-lifecycle-wer8tq1h.js} +0 -0
- /package/dist/chunks/{tool-wtztk69x.js → location-lifecycle-wtztk69x.js} +0 -0
- /package/dist/chunks/{tool-x0ckcb58.js → location-lifecycle-x0ckcb58.js} +0 -0
- /package/dist/chunks/{tool-x61499pn.js → location-lifecycle-x61499pn.js} +0 -0
- /package/dist/chunks/{tool-y44na4kk.js → location-lifecycle-y44na4kk.js} +0 -0
- /package/dist/chunks/{tool-y8f7s663.js → location-lifecycle-y8f7s663.js} +0 -0
- /package/dist/chunks/{tool-ygaqb7jw.js → location-lifecycle-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{tool-ym463w8f.js → location-lifecycle-ym463w8f.js} +0 -0
- /package/dist/chunks/{tool-z5v4ffb3.js → location-lifecycle-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{tool-z9919s4g.js → location-lifecycle-z9919s4g.js} +0 -0
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/instance.ts
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service6,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node8
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service6 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node8 = makeLocationNode({
|
|
19
|
+
service: Service6,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service6, Service6.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service6, node8, bound2, exports_instance2 };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-svcy3p9a.js";
|
|
4
4
|
import {
|
|
5
5
|
RelativePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service79
|
|
9
|
+
} from "./location-lifecycle-7apps605.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service68
|
|
12
|
+
} from "./location-lifecycle-hjjzccew.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service67
|
|
16
|
+
} from "./location-lifecycle-90hass2h.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
21
|
Entry2,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-lifecycle-ncfhdpxs.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service63
|
|
26
|
+
} from "./location-lifecycle-571c0xa8.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service62
|
|
29
|
+
} from "./location-lifecycle-eg9axkz1.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/grep.ts
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
42
|
-
toModelContent: () =>
|
|
38
|
+
Input: () => Input11,
|
|
39
|
+
Output: () => Output7,
|
|
40
|
+
Plugin: () => Plugin13,
|
|
41
|
+
name: () => name11,
|
|
42
|
+
toModelContent: () => toModelContent5
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name11 = "grep";
|
|
48
|
+
var Input11 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -65,8 +65,8 @@ var Input2 = Schema.Struct({
|
|
|
65
65
|
description: `Maximum number of matching lines to return (default: ${DEFAULT_SEARCH_LIMIT2})`
|
|
66
66
|
})
|
|
67
67
|
});
|
|
68
|
-
var
|
|
69
|
-
var
|
|
68
|
+
var Output7 = Schema.Array(Match2);
|
|
69
|
+
var toModelContent5 = (matches, truncated = false) => {
|
|
70
70
|
const lines = matches.length === 0 ? ["No matches found"] : [`Found ${matches.length} matches`];
|
|
71
71
|
let current = "";
|
|
72
72
|
for (const match of matches) {
|
|
@@ -83,26 +83,26 @@ var toModelContent2 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin13 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service68;
|
|
90
|
+
const ripgrep = yield* Service67;
|
|
91
|
+
const location = yield* Service79;
|
|
92
|
+
const access = yield* Service62;
|
|
93
|
+
const permission = yield* Service63;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name11,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
99
|
-
output:
|
|
98
|
+
input: Input11,
|
|
99
|
+
output: Output7,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name11,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -144,7 +144,7 @@ var Plugin19 = {
|
|
|
144
144
|
return { matches: matches.slice(0, limit), truncated: matches.length > limit };
|
|
145
145
|
}).pipe(Effect.map((result) => ({
|
|
146
146
|
output: result.matches,
|
|
147
|
-
content:
|
|
147
|
+
content: toModelContent5(result.matches.map((match) => ({
|
|
148
148
|
...match,
|
|
149
149
|
entry: { ...match.entry, path: path.resolve(location.directory, match.entry.path) }
|
|
150
150
|
})), result.truncated),
|
|
@@ -154,4 +154,4 @@ var Plugin19 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name11, Input11, Output7, toModelContent5, Plugin13, exports_grep };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
policy3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-wnhgecwx.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionEvent2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-ec1grn59.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/retry.ts
|
|
12
12
|
var exports_retry = {};
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service70
|
|
4
|
+
} from "./location-lifecycle-zprh8kn6.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service7
|
|
7
|
+
} from "./location-lifecycle-gzwbakhe.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-hpg1pkwy.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/compaction.ts
|
|
16
16
|
var exports_compaction = {};
|
|
17
17
|
__export(exports_compaction, {
|
|
18
18
|
ConfigCompactionPlugin: () => exports_compaction,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin38
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin38 = define({
|
|
24
24
|
id: "opencode.config.compaction",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const compaction = yield*
|
|
26
|
+
const config = yield* Service70;
|
|
27
|
+
const compaction = yield* Service7;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, compaction.reload());
|
|
29
29
|
yield* compaction.transform((editor) => {
|
|
30
30
|
editor.configure({ precompute: latest2(loaded.entries, "experimental")?.background_compaction === true });
|
|
@@ -41,4 +41,4 @@ var Plugin33 = define({
|
|
|
41
41
|
})
|
|
42
42
|
});
|
|
43
43
|
|
|
44
|
-
export {
|
|
44
|
+
export { Plugin38, exports_compaction };
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-x7zajsph.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./location-lifecycle-jpt0aj2d.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event17,
|
|
10
|
+
Service75
|
|
11
|
+
} from "./location-lifecycle-zestxctz.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID14,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-fyfkn899.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID13,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-lifecycle-ybj0t81k.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID12,
|
|
22
22
|
VariantID2,
|
|
23
23
|
Info22
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./location-lifecycle-w90qadrs.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./location-lifecycle-yb20nhc3.js";
|
|
29
29
|
import {
|
|
30
30
|
get5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./location-lifecycle-3nnrz6f6.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./location-lifecycle-pev14w4e.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 = ID13.openai;
|
|
47
|
+
var integrationID = ID14.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -181,8 +181,8 @@ function listen(server) {
|
|
|
181
181
|
var ChatGPTPlugin2 = define({
|
|
182
182
|
id: "opencode.provider.chatgpt",
|
|
183
183
|
effect: Effect.fn(function* (ctx) {
|
|
184
|
-
const bus = yield*
|
|
185
|
-
const credentials = yield*
|
|
184
|
+
const bus = yield* Service82;
|
|
185
|
+
const credentials = yield* Service75;
|
|
186
186
|
const loading = Semaphore.makeUnsafe(1);
|
|
187
187
|
let chatgpt;
|
|
188
188
|
let source;
|
|
@@ -197,7 +197,7 @@ var ChatGPTPlugin2 = define({
|
|
|
197
197
|
yield* ctx.integration.transform((editor) => {
|
|
198
198
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
199
199
|
});
|
|
200
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
200
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("openai")), (entry) => {
|
|
201
201
|
const value = entry.value;
|
|
202
202
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
203
203
|
return Effect.void;
|
|
@@ -270,7 +270,7 @@ var ChatGPTPlugin2 = define({
|
|
|
270
270
|
}
|
|
271
271
|
});
|
|
272
272
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
273
|
-
yield* bus.subscribe(
|
|
273
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
274
274
|
})
|
|
275
275
|
});
|
|
276
276
|
function headers(app) {
|
|
@@ -327,7 +327,7 @@ function deriveModels2(remote, existing) {
|
|
|
327
327
|
const found = byID.get(model.modelID);
|
|
328
328
|
return found ? [deriveModel(found, model)] : [];
|
|
329
329
|
}),
|
|
330
|
-
...remote.filter((model) => !known.has(
|
|
330
|
+
...remote.filter((model) => !known.has(ID12.make(model.slug))).map((model) => deriveModel(model, Info22.default(ID13.openai, ID12.make(model.slug))))
|
|
331
331
|
];
|
|
332
332
|
}
|
|
333
333
|
function deriveModel(remote, previous) {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
aisdk2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-ybj0t81k.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service72
|
|
6
|
+
} from "./location-lifecycle-w90qadrs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/verbosity.ts
|
|
12
12
|
var exports_verbosity = {};
|
|
13
13
|
__export(exports_verbosity, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin27,
|
|
15
15
|
VerbosityPlugin: () => exports_verbosity
|
|
16
16
|
});
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -27,10 +27,10 @@ var gateways = new Set([
|
|
|
27
27
|
"@opencode/ai/providers/vercel-ai-gateway",
|
|
28
28
|
aisdk2("@ai-sdk/gateway")
|
|
29
29
|
]);
|
|
30
|
-
var
|
|
30
|
+
var Plugin27 = define({
|
|
31
31
|
id: "opencode.prompt.verbosity",
|
|
32
32
|
effect: Effect.fn("VerbosityPlugin")(function* (ctx) {
|
|
33
|
-
const models = yield*
|
|
33
|
+
const models = yield* Service72;
|
|
34
34
|
const hook = (event) => Effect.gen(function* () {
|
|
35
35
|
if (event.options.textVerbosity !== undefined)
|
|
36
36
|
return;
|
|
@@ -70,4 +70,4 @@ function openAIModelID(model) {
|
|
|
70
70
|
return id.slice("openai/".length);
|
|
71
71
|
}
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { Plugin27, exports_verbosity };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeWithDefaults2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-77ttacwt.js";
|
|
4
4
|
import {
|
|
5
5
|
apply3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-1s4qyrgd.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/database.ts
|
|
12
12
|
var exports_database = {};
|
|
13
13
|
__export(exports_database, {
|
|
14
14
|
Database: () => exports_database,
|
|
15
15
|
Options: () => Options9,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service83,
|
|
17
17
|
configured: () => configured13,
|
|
18
18
|
configuredClient: () => configuredClient2,
|
|
19
19
|
layer: () => layer28,
|
|
20
20
|
layerFromClient: () => layerFromClient2,
|
|
21
|
-
node: () =>
|
|
21
|
+
node: () => node87
|
|
22
22
|
});
|
|
23
23
|
import { sqliteLayer, supportsForeignKeyToggle, supportsTuningPragmas } from "#sqlite";
|
|
24
24
|
import { Context, Effect, Layer, Schema, Semaphore } from "effect";
|
|
@@ -32,9 +32,9 @@ var Options9 = Schema.Struct({
|
|
|
32
32
|
path: Schema.optional(Schema.String)
|
|
33
33
|
});
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service83 extends Context.Service()("@opencode/storage/Database") {
|
|
36
36
|
}
|
|
37
|
-
var databaseLayer = (lock) => Layer.effect(
|
|
37
|
+
var databaseLayer = (lock) => Layer.effect(Service83, Effect.gen(function* () {
|
|
38
38
|
const db = yield* makeDatabase;
|
|
39
39
|
if (supportsTuningPragmas) {
|
|
40
40
|
yield* db.run("PRAGMA journal_mode = WAL");
|
|
@@ -82,15 +82,15 @@ async function restrictToOwner(filename) {
|
|
|
82
82
|
}
|
|
83
83
|
var layerFromClient2 = databaseLayer(Semaphore.make(1));
|
|
84
84
|
function configured13(options) {
|
|
85
|
-
return makeGlobalNode({ service:
|
|
85
|
+
return makeGlobalNode({ service: Service83, layer: layer28(options), deps: [Global.node] });
|
|
86
86
|
}
|
|
87
87
|
function configuredClient2(client) {
|
|
88
88
|
return makeGlobalNode({
|
|
89
|
-
service:
|
|
89
|
+
service: Service83,
|
|
90
90
|
layer: layerFromClient2.pipe(Layer.provide(client)),
|
|
91
91
|
deps: [Global.node]
|
|
92
92
|
});
|
|
93
93
|
}
|
|
94
|
-
var
|
|
94
|
+
var node87 = configured13({ path: ":memory:" });
|
|
95
95
|
|
|
96
|
-
export { Options9,
|
|
96
|
+
export { Options9, Service83, layer28, layerFromClient2, configured13, configuredClient2, node87, exports_database };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTableColumnsRuntime2,
|
|
3
3
|
orderSelectedFields2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-emrn6kk6.js";
|
|
5
5
|
|
|
6
6
|
// src/database/drizzle/sqlite-core/effect/delete.ts
|
|
7
7
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOption2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-e834z07m.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
8
|
ID5,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-kvh94732.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/skill-file.ts
|
|
16
16
|
var exports_skill_file = {};
|
|
@@ -1,50 +1,50 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service66
|
|
3
|
+
} from "./location-lifecycle-rgbq3f4j.js";
|
|
4
4
|
import {
|
|
5
5
|
Ref3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service72
|
|
7
|
+
} from "./location-lifecycle-w90qadrs.js";
|
|
8
8
|
import {
|
|
9
9
|
latest2,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service70
|
|
11
|
+
} from "./location-lifecycle-zprh8kn6.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionSchema2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-qsee9sfb.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service58
|
|
17
|
+
} from "./location-lifecycle-xvsw1s9a.js";
|
|
18
18
|
import {
|
|
19
19
|
evaluate2,
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service63
|
|
21
|
+
} from "./location-lifecycle-571c0xa8.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Service27
|
|
24
|
+
} from "./location-lifecycle-13dfg3g1.js";
|
|
25
25
|
import {
|
|
26
26
|
NO_TEXT2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-lifecycle-sqjzf8x2.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
Service10
|
|
30
|
+
} from "./location-lifecycle-nzmqqmhf.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
34
34
|
|
|
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: () => Input12,
|
|
39
|
+
Output: () => Output8,
|
|
40
|
+
Plugin: () => Plugin14,
|
|
41
41
|
SubagentTool: () => exports_subagent,
|
|
42
|
-
description: () =>
|
|
43
|
-
name: () =>
|
|
42
|
+
description: () => description5,
|
|
43
|
+
name: () => name12
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
46
46
|
import { Effect, Predicate, Schema } from "effect";
|
|
47
|
-
var
|
|
47
|
+
var name12 = "subagent";
|
|
48
48
|
var backgroundResult = (sessionID) => ({
|
|
49
49
|
sessionID,
|
|
50
50
|
status: "running",
|
|
@@ -55,7 +55,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
55
55
|
].join(`
|
|
56
56
|
`)
|
|
57
57
|
});
|
|
58
|
-
var
|
|
58
|
+
var Input12 = Schema.Struct({
|
|
59
59
|
agent: Schema.String.annotate({
|
|
60
60
|
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."
|
|
61
61
|
}),
|
|
@@ -71,12 +71,12 @@ var Input7 = Schema.Struct({
|
|
|
71
71
|
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."
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
|
-
var
|
|
74
|
+
var Output8 = Schema.Struct({
|
|
75
75
|
sessionID: SessionSchema2.ID,
|
|
76
76
|
status: Schema.Literals(["completed", "running"]),
|
|
77
77
|
output: Schema.String
|
|
78
78
|
});
|
|
79
|
-
var
|
|
79
|
+
var description5 = [
|
|
80
80
|
"Spawns an agent in a child session to work on the specified task.",
|
|
81
81
|
"The output includes a sessionID you can pass back later to continue that specific conversation with the subagent.",
|
|
82
82
|
"New child sessions start with fresh context, so include all relevant context and instructions when you don't pass a sessionID.",
|
|
@@ -85,16 +85,16 @@ var description3 = [
|
|
|
85
85
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
86
86
|
].join(`
|
|
87
87
|
`);
|
|
88
|
-
var
|
|
88
|
+
var Plugin14 = {
|
|
89
89
|
id: "opencode.tool.subagent",
|
|
90
90
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
91
|
-
const sessions = yield*
|
|
92
|
-
const jobs = yield*
|
|
93
|
-
const agents = yield*
|
|
94
|
-
const config = yield*
|
|
95
|
-
const permission = yield*
|
|
96
|
-
const models = yield*
|
|
97
|
-
const subagents = yield*
|
|
91
|
+
const sessions = yield* Service27;
|
|
92
|
+
const jobs = yield* Service58;
|
|
93
|
+
const agents = yield* Service66;
|
|
94
|
+
const config = yield* Service70;
|
|
95
|
+
const permission = yield* Service63;
|
|
96
|
+
const models = yield* Service72;
|
|
97
|
+
const subagents = yield* Service10;
|
|
98
98
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
99
99
|
const ref = yield* Effect.try({
|
|
100
100
|
try: () => Ref3.parse(input),
|
|
@@ -114,11 +114,11 @@ var Plugin24 = {
|
|
|
114
114
|
return ref;
|
|
115
115
|
});
|
|
116
116
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
117
|
-
name:
|
|
117
|
+
name: name12,
|
|
118
118
|
options: { codemode: false },
|
|
119
|
-
description:
|
|
120
|
-
input:
|
|
121
|
-
output:
|
|
119
|
+
description: description5,
|
|
120
|
+
input: Input12,
|
|
121
|
+
output: Output8,
|
|
122
122
|
execute: (input, context) => Effect.gen(function* () {
|
|
123
123
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
124
124
|
let current = parent;
|
|
@@ -138,7 +138,7 @@ var Plugin24 = {
|
|
|
138
138
|
if (agent.mode === "primary")
|
|
139
139
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
140
140
|
yield* permission.assert({
|
|
141
|
-
action:
|
|
141
|
+
action: name12,
|
|
142
142
|
resources: [agent.id],
|
|
143
143
|
save: [agent.id],
|
|
144
144
|
sessionID: context.sessionID,
|
|
@@ -217,7 +217,7 @@ ${output.output}
|
|
|
217
217
|
})))
|
|
218
218
|
})).pipe(Effect.orDie);
|
|
219
219
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
220
|
-
if (event.tool !==
|
|
220
|
+
if (event.tool !== name12 || !Predicate.isObject(event.input))
|
|
221
221
|
return;
|
|
222
222
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
223
223
|
return;
|
|
@@ -229,13 +229,13 @@ ${output.output}
|
|
|
229
229
|
event.input = input;
|
|
230
230
|
}));
|
|
231
231
|
const hook = (event) => Effect.gen(function* () {
|
|
232
|
-
const tool = event.tools[
|
|
232
|
+
const tool = event.tools[name12];
|
|
233
233
|
if (!tool)
|
|
234
234
|
return;
|
|
235
235
|
const selected = yield* agents.resolve(event.agent);
|
|
236
236
|
if (!selected)
|
|
237
237
|
return;
|
|
238
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
238
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name12, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
239
239
|
if (available.length === 0)
|
|
240
240
|
return;
|
|
241
241
|
tool.description = [
|
|
@@ -252,4 +252,4 @@ ${output.output}
|
|
|
252
252
|
})
|
|
253
253
|
};
|
|
254
254
|
|
|
255
|
-
export {
|
|
255
|
+
export { name12, Input12, Output8, description5, Plugin14, exports_subagent };
|