@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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
lazy2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-88xbtdfr.js";
|
|
4
4
|
import {
|
|
5
5
|
which2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-qaymkmh1.js";
|
|
7
7
|
|
|
8
8
|
// src/util/git-executable.ts
|
|
9
9
|
import { existsSync, realpathSync } from "node:fs";
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service70
|
|
7
|
+
} from "./location-lifecycle-zprh8kn6.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-svcy3p9a.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service68
|
|
13
|
+
} from "./location-lifecycle-hjjzccew.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service58
|
|
16
|
+
} from "./location-lifecycle-xvsw1s9a.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service63
|
|
19
|
+
} from "./location-lifecycle-571c0xa8.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service62,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-lifecycle-eg9axkz1.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-lifecycle-k814nvkf.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service54,
|
|
32
32
|
name16
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-lifecycle-z395qepn.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError5,
|
|
36
|
+
Service40
|
|
37
|
+
} from "./location-lifecycle-g3e9axc6.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service27
|
|
40
|
+
} from "./location-lifecycle-13dfg3g1.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./location-lifecycle-0yceejvq.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
49
|
var exports_shell = {};
|
|
50
50
|
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
52
|
+
Input: () => Input3,
|
|
53
|
+
Plugin: () => Plugin3,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name3
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
59
|
import { shellParserWasm } from "#shell-parser-wasm";
|
|
60
|
-
var
|
|
60
|
+
var name3 = "shell";
|
|
61
61
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
62
62
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
63
63
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -71,7 +71,7 @@ var description = (shell) => [
|
|
|
71
71
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
72
72
|
"Background commands return immediately, and you will be notified when they complete."
|
|
73
73
|
].join(" ");
|
|
74
|
-
var
|
|
74
|
+
var Input3 = Schema.Struct({
|
|
75
75
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
76
76
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
77
77
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -117,19 +117,19 @@ Output is streaming to: ${file}`,
|
|
|
117
117
|
truncated: false,
|
|
118
118
|
status: "running"
|
|
119
119
|
});
|
|
120
|
-
var
|
|
120
|
+
var Plugin3 = {
|
|
121
121
|
id: "opencode.tool.shell",
|
|
122
122
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
123
|
-
const sessions = yield*
|
|
124
|
-
const jobs = yield*
|
|
123
|
+
const sessions = yield* Service27;
|
|
124
|
+
const jobs = yield* Service58;
|
|
125
125
|
const scope = yield* Scope.Scope;
|
|
126
|
-
const environment = yield*
|
|
127
|
-
const access = yield*
|
|
128
|
-
const shell = yield*
|
|
129
|
-
const shellSelect = yield*
|
|
126
|
+
const environment = yield* Service68;
|
|
127
|
+
const access = yield* Service62;
|
|
128
|
+
const shell = yield* Service40;
|
|
129
|
+
const shellSelect = yield* Service54;
|
|
130
130
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
131
|
-
const permission = yield*
|
|
132
|
-
const config = yield*
|
|
131
|
+
const permission = yield* Service63;
|
|
132
|
+
const config = yield* Service70;
|
|
133
133
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
134
134
|
const source = {
|
|
135
135
|
type: "tool",
|
|
@@ -148,7 +148,7 @@ var Plugin26 = {
|
|
|
148
148
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
149
149
|
if (parsed.commands.length > 0)
|
|
150
150
|
yield* permission.assert({
|
|
151
|
-
action:
|
|
151
|
+
action: name3,
|
|
152
152
|
resources: parsed.commands.map((command) => command.resource),
|
|
153
153
|
save: parsed.commands.map((command) => command.save),
|
|
154
154
|
sessionID: context.sessionID,
|
|
@@ -185,10 +185,10 @@ var Plugin26 = {
|
|
|
185
185
|
yield* jobs.completeBackground(info.notificationID);
|
|
186
186
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
187
187
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
188
|
-
name:
|
|
188
|
+
name: name3,
|
|
189
189
|
options: { codemode: false },
|
|
190
190
|
description: description(),
|
|
191
|
-
input:
|
|
191
|
+
input: Input3,
|
|
192
192
|
output: Output,
|
|
193
193
|
execute: (input, context) => Effect.gen(function* () {
|
|
194
194
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -211,7 +211,7 @@ var Plugin26 = {
|
|
|
211
211
|
const run = Effect.gen(function* () {
|
|
212
212
|
const result = yield* shell.result(info);
|
|
213
213
|
if (!result.capture)
|
|
214
|
-
return yield* new
|
|
214
|
+
return yield* new NotFoundError5({ id: info.id });
|
|
215
215
|
const output = output2(result);
|
|
216
216
|
return {
|
|
217
217
|
...output,
|
|
@@ -225,7 +225,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
225
225
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
226
226
|
const job = yield* jobs.start({
|
|
227
227
|
id: info.id,
|
|
228
|
-
type:
|
|
228
|
+
type: name3,
|
|
229
229
|
title: info.command,
|
|
230
230
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
231
231
|
recovery: {
|
|
@@ -255,7 +255,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
255
255
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
256
256
|
})).pipe(Effect.orDie);
|
|
257
257
|
const hook = (event) => Effect.gen(function* () {
|
|
258
|
-
const tool = event.tools[
|
|
258
|
+
const tool = event.tools[name3];
|
|
259
259
|
if (!tool)
|
|
260
260
|
return;
|
|
261
261
|
tool.description = description(name16(yield* compatibleShell));
|
|
@@ -266,4 +266,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
266
266
|
})
|
|
267
267
|
};
|
|
268
268
|
|
|
269
|
-
export {
|
|
269
|
+
export { name3, DEFAULT_TIMEOUT_MS2, Input3, Plugin3, exports_shell };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionSchema2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-qsee9sfb.js";
|
|
8
8
|
|
|
9
9
|
// src/session/info.ts
|
|
10
10
|
import { DateTime, Schema } from "effect";
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service85,
|
|
3
|
-
node89
|
|
4
|
-
} from "./tool-sar0kh51.js";
|
|
5
|
-
import {
|
|
6
|
-
Service84,
|
|
7
|
-
node88
|
|
8
|
-
} from "./tool-wtjwwyta.js";
|
|
9
1
|
import {
|
|
10
2
|
Service82,
|
|
11
3
|
node86
|
|
12
|
-
} from "./
|
|
4
|
+
} from "./location-lifecycle-jpt0aj2d.js";
|
|
5
|
+
import {
|
|
6
|
+
Service81,
|
|
7
|
+
node85
|
|
8
|
+
} from "./location-lifecycle-3vtjh306.js";
|
|
9
|
+
import {
|
|
10
|
+
Service79,
|
|
11
|
+
node83
|
|
12
|
+
} from "./location-lifecycle-7apps605.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service71,
|
|
15
|
+
node75
|
|
16
|
+
} from "./location-lifecycle-krv07zrz.js";
|
|
17
17
|
import {
|
|
18
18
|
awaitActivation2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-lifecycle-z7bdqmx5.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
node16
|
|
22
|
+
} from "./location-lifecycle-0pynqpwf.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service9,
|
|
25
|
+
node11
|
|
26
|
+
} from "./location-lifecycle-zh7bbm8x.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/filesystem/location-watcher.ts
|
|
32
32
|
var exports_location_watcher = {};
|
|
@@ -43,12 +43,12 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
43
43
|
class Service2 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
45
|
var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
48
|
-
const bus = yield*
|
|
46
|
+
const location = yield* Service79;
|
|
47
|
+
const watcher = yield* Service71;
|
|
48
|
+
const bus = yield* Service82;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service81;
|
|
51
|
+
const policy = yield* Service9;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -105,7 +105,7 @@ var layer = Layer.effect(Service2, Effect.gen(function* () {
|
|
|
105
105
|
var node2 = makeLocationNode({
|
|
106
106
|
service: Service2,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node75, FSUtil.node, node83, node85, node86, node16, node11]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
111
|
export { Service2, node2, exports_location_watcher };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-204s3925.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/image.ts
|
|
9
9
|
var exports_image2 = {};
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service85,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node89
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service85 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service85, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service85.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node89 = makeLocationNode({ service: Service85, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service85, node89, exports_image2 };
|
|
@@ -2,45 +2,45 @@ import {
|
|
|
2
2
|
NotFound3,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-lifecycle-svcy3p9a.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service79
|
|
8
|
+
} from "./location-lifecycle-7apps605.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service68
|
|
11
|
+
} from "./location-lifecycle-hjjzccew.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service24
|
|
14
|
+
} from "./location-lifecycle-hrvanjhp.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
Service21,
|
|
17
17
|
readText2,
|
|
18
18
|
syncTextBom2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-lifecycle-ewc6hp7k.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service63
|
|
22
|
+
} from "./location-lifecycle-571c0xa8.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
24
|
+
Service62,
|
|
25
25
|
resolvePath2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-lifecycle-eg9axkz1.js";
|
|
27
27
|
import {
|
|
28
28
|
fileDiff2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-lifecycle-6prwharc.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
33
33
|
|
|
34
34
|
// src/tool/plugin/patch.ts
|
|
35
35
|
var exports_patch = {};
|
|
36
36
|
__export(exports_patch, {
|
|
37
37
|
Applied: () => Applied2,
|
|
38
|
-
Input: () =>
|
|
39
|
-
Output: () =>
|
|
38
|
+
Input: () => Input5,
|
|
39
|
+
Output: () => Output3,
|
|
40
40
|
PatchTool: () => exports_patch,
|
|
41
|
-
Plugin: () =>
|
|
42
|
-
name: () =>
|
|
43
|
-
toModelContent: () =>
|
|
41
|
+
Plugin: () => Plugin5,
|
|
42
|
+
name: () => name5,
|
|
43
|
+
toModelContent: () => toModelContent2
|
|
44
44
|
});
|
|
45
45
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
46
46
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
@@ -85,8 +85,8 @@ It is important to remember:
|
|
|
85
85
|
`;
|
|
86
86
|
|
|
87
87
|
// src/tool/plugin/patch.ts
|
|
88
|
-
var
|
|
89
|
-
var
|
|
88
|
+
var name5 = "patch";
|
|
89
|
+
var Input5 = Schema.Struct({
|
|
90
90
|
patchText: Schema.String.annotate({
|
|
91
91
|
description: "The full patch text describing add, update, and delete operations"
|
|
92
92
|
})
|
|
@@ -96,30 +96,30 @@ var Applied2 = Schema.Struct({
|
|
|
96
96
|
resource: Schema.String,
|
|
97
97
|
target: Schema.String
|
|
98
98
|
});
|
|
99
|
-
var
|
|
99
|
+
var Output3 = Schema.Struct({
|
|
100
100
|
applied: Schema.Array(Applied2),
|
|
101
101
|
files: Schema.Array(FileDiff.Info)
|
|
102
102
|
});
|
|
103
|
-
var
|
|
103
|
+
var toModelContent2 = (output) => [
|
|
104
104
|
"Success. Updated the following files:",
|
|
105
105
|
...output.applied.map((item) => `${item.type === "add" ? "A" : item.type === "delete" ? "D" : "M"} ${item.resource}`)
|
|
106
106
|
].join(`
|
|
107
107
|
`);
|
|
108
|
-
var
|
|
108
|
+
var Plugin5 = {
|
|
109
109
|
id: "opencode.tool.patch",
|
|
110
110
|
effect: Effect.fn("PatchTool.Plugin")(function* (ctx) {
|
|
111
|
-
const environment = yield*
|
|
112
|
-
const access = yield*
|
|
113
|
-
const fileMutation = yield*
|
|
114
|
-
const formatter = yield*
|
|
115
|
-
const location = yield*
|
|
116
|
-
const permission = yield*
|
|
111
|
+
const environment = yield* Service68;
|
|
112
|
+
const access = yield* Service62;
|
|
113
|
+
const fileMutation = yield* Service21;
|
|
114
|
+
const formatter = yield* Service24;
|
|
115
|
+
const location = yield* Service79;
|
|
116
|
+
const permission = yield* Service63;
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name5,
|
|
119
119
|
options: { codemode: false, permission: "edit" },
|
|
120
120
|
description: patch_default,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input5,
|
|
122
|
+
output: Output3,
|
|
123
123
|
execute: (input, context) => {
|
|
124
124
|
const applied = [];
|
|
125
125
|
const parsed = Patch.parse(input.patchText);
|
|
@@ -285,7 +285,7 @@ var Plugin25 = {
|
|
|
285
285
|
return { applied, files };
|
|
286
286
|
}).pipe(fileMutation.withLock(lockTargets), Effect.map((output) => ({
|
|
287
287
|
output,
|
|
288
|
-
content:
|
|
288
|
+
content: toModelContent2(output),
|
|
289
289
|
metadata: { files: output.files }
|
|
290
290
|
})), Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: "Unable to apply patch", error })));
|
|
291
291
|
}
|
|
@@ -345,4 +345,4 @@ function trimDiff(diff) {
|
|
|
345
345
|
`);
|
|
346
346
|
}
|
|
347
347
|
|
|
348
|
-
export {
|
|
348
|
+
export { name5, Input5, Applied2, Output3, toModelContent2, Plugin5, exports_patch };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isTextual2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-4pyp9zr9.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service63
|
|
6
|
+
} from "./location-lifecycle-571c0xa8.js";
|
|
7
7
|
import {
|
|
8
8
|
MAX_MARKDOWN_BYTES2,
|
|
9
9
|
convertHTMLToMarkdown2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-4vcrnpx2.js";
|
|
11
11
|
import {
|
|
12
12
|
collectBoundedResponseBody2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-lifecycle-3v8g72cx.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/tool/plugin/webfetch.ts
|
|
19
19
|
var exports_webfetch = {};
|
|
20
20
|
__export(exports_webfetch, {
|
|
21
21
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
22
|
-
Input: () =>
|
|
23
|
-
MAX_RESPONSE_BYTES: () =>
|
|
22
|
+
Input: () => Input4,
|
|
23
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
24
24
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin4,
|
|
26
26
|
WebFetchTool: () => exports_webfetch,
|
|
27
27
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
28
|
-
description: () =>
|
|
28
|
+
description: () => description3,
|
|
29
29
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
30
|
-
name: () =>
|
|
30
|
+
name: () => name4
|
|
31
31
|
});
|
|
32
32
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
33
33
|
import { Duration, Effect, Schema } from "effect";
|
|
34
34
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
35
35
|
import { Parser } from "htmlparser2";
|
|
36
|
-
var
|
|
37
|
-
var
|
|
36
|
+
var name4 = "webfetch";
|
|
37
|
+
var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
|
|
38
38
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
39
39
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
40
|
-
var
|
|
40
|
+
var description3 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
41
41
|
|
|
42
42
|
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.`;
|
|
43
43
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
44
|
-
var
|
|
44
|
+
var Input4 = Schema.Struct({
|
|
45
45
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
46
46
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
47
47
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -51,7 +51,7 @@ var Input12 = Schema.Struct({
|
|
|
51
51
|
var Output = Schema.Struct({
|
|
52
52
|
url: Schema.String,
|
|
53
53
|
contentType: Schema.String,
|
|
54
|
-
format:
|
|
54
|
+
format: Input4.fields.format,
|
|
55
55
|
output: Schema.String
|
|
56
56
|
});
|
|
57
57
|
var acceptHeader = (format) => {
|
|
@@ -82,7 +82,7 @@ var assertHttpUrl = (url) => {
|
|
|
82
82
|
throw new Error("URL must use http:// or https://");
|
|
83
83
|
};
|
|
84
84
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
85
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
85
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
|
|
86
86
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
87
87
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
88
88
|
var convert = (content, contentType, format) => {
|
|
@@ -94,16 +94,16 @@ var convert = (content, contentType, format) => {
|
|
|
94
94
|
return extractTextFromHTML2(content);
|
|
95
95
|
return content;
|
|
96
96
|
};
|
|
97
|
-
var
|
|
97
|
+
var Plugin4 = {
|
|
98
98
|
id: "opencode.tool.webfetch",
|
|
99
99
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
100
100
|
const http = yield* HttpClient.HttpClient;
|
|
101
|
-
const permission = yield*
|
|
101
|
+
const permission = yield* Service63;
|
|
102
102
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
103
|
-
name:
|
|
103
|
+
name: name4,
|
|
104
104
|
options: { codemode: false },
|
|
105
|
-
description:
|
|
106
|
-
input:
|
|
105
|
+
description: description3,
|
|
106
|
+
input: Input4,
|
|
107
107
|
output: Output,
|
|
108
108
|
execute: (input, context) => Effect.gen(function* () {
|
|
109
109
|
yield* Effect.try({
|
|
@@ -111,7 +111,7 @@ var Plugin30 = {
|
|
|
111
111
|
catch: (error) => error
|
|
112
112
|
});
|
|
113
113
|
yield* permission.assert({
|
|
114
|
-
action:
|
|
114
|
+
action: name4,
|
|
115
115
|
resources: [input.url],
|
|
116
116
|
save: ["*"],
|
|
117
117
|
metadata: input,
|
|
@@ -169,4 +169,4 @@ function extractTextFromHTML2(html) {
|
|
|
169
169
|
parser.end();
|
|
170
170
|
return text.trim();
|
|
171
171
|
}
|
|
172
|
-
export {
|
|
172
|
+
export { name4, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description3, Input4, Plugin4, extractTextFromHTML2, exports_webfetch };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID13
|
|
3
|
+
} from "./location-lifecycle-ybj0t81k.js";
|
|
4
4
|
import {
|
|
5
5
|
loadSDKFactory2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-6q2bdcd1.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/provider/sap-ai-core.ts
|
|
9
9
|
import { Effect } from "effect";
|
|
@@ -14,7 +14,7 @@ var SapAICorePlugin2 = define({
|
|
|
14
14
|
effect: Effect.fn(function* (ctx) {
|
|
15
15
|
const npm = yield* Npm.Service;
|
|
16
16
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
17
|
-
if (evt.model.providerID !==
|
|
17
|
+
if (evt.model.providerID !== ID13.make("sap-ai-core"))
|
|
18
18
|
return;
|
|
19
19
|
const serviceKey = process.env.AICORE_SERVICE_KEY ?? (typeof evt.options.serviceKey === "string" ? evt.options.serviceKey : undefined);
|
|
20
20
|
if (serviceKey && !process.env.AICORE_SERVICE_KEY)
|
|
@@ -25,7 +25,7 @@ var SapAICorePlugin2 = define({
|
|
|
25
25
|
evt.sdk = factory(serviceKey ? { deploymentId: process.env.AICORE_DEPLOYMENT_ID, resourceGroup: process.env.AICORE_RESOURCE_GROUP } : {});
|
|
26
26
|
}));
|
|
27
27
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
28
|
-
if (evt.model.providerID !==
|
|
28
|
+
if (evt.model.providerID !== ID13.make("sap-ai-core"))
|
|
29
29
|
return;
|
|
30
30
|
evt.language = evt.sdk(evt.model.modelID ?? evt.model.id);
|
|
31
31
|
}));
|