@opencode/core 0.0.0-dev-19602 → 0.0.0-dev-19607
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 +82 -82
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{ripgrep-t550f9t1.js → bus-02nrjc1r.js} +8 -8
- package/dist/chunks/{ripgrep-yt0fqk68.js → bus-0f9afca0.js} +5 -5
- package/dist/chunks/{ripgrep-1gfvv37n.js → bus-0ffvsmqa.js} +11 -11
- package/dist/chunks/{ripgrep-49nxeqwp.js → bus-0h0xn3fd.js} +30 -30
- package/dist/chunks/{ripgrep-03cq7ksh.js → bus-0hng8cbp.js} +17 -17
- package/dist/chunks/{ripgrep-qgn6gcr1.js → bus-0jwsre1p.js} +5 -5
- package/dist/chunks/{ripgrep-kn5jtnf9.js → bus-0n6rap9z.js} +19 -19
- package/dist/chunks/{ripgrep-0paq2nw3.js → bus-0paq2nw3.js} +1 -1
- package/dist/chunks/{ripgrep-31ybmgpq.js → bus-0pwp6vee.js} +17 -17
- package/dist/chunks/{ripgrep-0q0f95c6.js → bus-0q0f95c6.js} +1 -1
- package/dist/chunks/{ripgrep-hcz3zddy.js → bus-0r7yqxbf.js} +5 -5
- package/dist/chunks/{ripgrep-8j1202qn.js → bus-11nsfp7x.js} +23 -23
- package/dist/chunks/{ripgrep-gn2hfjap.js → bus-15nepkqg.js} +8 -8
- package/dist/chunks/{ripgrep-p0b4ytnr.js → bus-15zevn5w.js} +6 -6
- package/dist/chunks/{ripgrep-nw2nz702.js → bus-179189h4.js} +4 -4
- package/dist/chunks/{ripgrep-ds2g25h4.js → bus-1c2v1v3n.js} +32 -32
- package/dist/chunks/{ripgrep-1dazxqgg.js → bus-1dazxqgg.js} +2 -2
- package/dist/chunks/bus-1m7ztpz9.js +26 -0
- package/dist/chunks/{ripgrep-hma6wv7h.js → bus-1p84h329.js} +18 -18
- package/dist/chunks/{ripgrep-0sm34qmf.js → bus-1vh9c756.js} +17 -17
- package/dist/chunks/{ripgrep-czw1qt7p.js → bus-1xj9a01p.js} +5 -5
- package/dist/chunks/{ripgrep-21r38tys.js → bus-21r38tys.js} +1 -1
- package/dist/chunks/{ripgrep-x3qc7sc6.js → bus-236xsrf6.js} +24 -24
- package/dist/chunks/{ripgrep-2nv5fzs9.js → bus-2596a819.js} +13 -13
- package/dist/chunks/{ripgrep-gmpff112.js → bus-25k60r6z.js} +17 -17
- package/dist/chunks/{ripgrep-2a5m3afh.js → bus-2a5m3afh.js} +1 -1
- package/dist/chunks/{ripgrep-kxm5s6yc.js → bus-2fqncqd8.js} +27 -27
- package/dist/chunks/{ripgrep-2jbbv5tb.js → bus-2hhrjxd4.js} +16 -16
- package/dist/chunks/{ripgrep-qaw7gzvj.js → bus-2p5j9sv7.js} +17 -17
- package/dist/chunks/{ripgrep-q7d9vt9f.js → bus-2ryrfs8t.js} +18 -18
- package/dist/chunks/{ripgrep-j6rsnrbc.js → bus-2t9y4ena.js} +22 -22
- package/dist/chunks/{ripgrep-6x0gytms.js → bus-2vvyjm96.js} +86 -86
- package/dist/chunks/{ripgrep-vskpp35t.js → bus-2wmcpc5j.js} +11 -11
- package/dist/chunks/{ripgrep-56gdpj1q.js → bus-33w4ejhs.js} +6 -6
- package/dist/chunks/{ripgrep-dpzg5xnq.js → bus-36eabxvj.js} +6 -6
- package/dist/chunks/{ripgrep-3fc6dm20.js → bus-3fc6dm20.js} +1 -1
- package/dist/chunks/{ripgrep-3hepkmqq.js → bus-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-3smtnn6g.js → bus-3smtnn6g.js} +1 -1
- package/dist/chunks/{ripgrep-3tvqynh2.js → bus-3tvqynh2.js} +1 -1
- package/dist/chunks/{ripgrep-f0xd9knp.js → bus-3vk31qq0.js} +1 -1
- package/dist/chunks/{ripgrep-n57z002n.js → bus-3vnz1vry.js} +14 -14
- package/dist/chunks/{ripgrep-vcpz2z7s.js → bus-437w8xnq.js} +4 -4
- package/dist/chunks/{ripgrep-ksqz3pap.js → bus-4czdean4.js} +19 -19
- package/dist/chunks/{ripgrep-3ds7w9ed.js → bus-4fb4zfkv.js} +3 -3
- package/dist/chunks/{ripgrep-qwn7812e.js → bus-4ma4crhq.js} +18 -18
- package/dist/chunks/{ripgrep-2fgn2we9.js → bus-4sn99hha.js} +5 -5
- package/dist/chunks/{ripgrep-1jvw600p.js → bus-4vdg0vy0.js} +32 -32
- package/dist/chunks/{ripgrep-892y1dhq.js → bus-4xgsacd1.js} +19 -19
- package/dist/chunks/{ripgrep-0t098hqn.js → bus-5d17xbav.js} +5 -5
- package/dist/chunks/{ripgrep-5daktx2q.js → bus-5daktx2q.js} +1 -1
- package/dist/chunks/{ripgrep-zw0mbbcz.js → bus-5dfrxsm4.js} +8 -8
- package/dist/chunks/{ripgrep-4sct5deg.js → bus-5nc0fa0s.js} +23 -23
- package/dist/chunks/{ripgrep-2pyh63en.js → bus-5pjsqvg3.js} +22 -22
- package/dist/chunks/{ripgrep-e3qxr5gk.js → bus-5qd3pb7m.js} +2 -2
- package/dist/chunks/{ripgrep-q5zedzf9.js → bus-5rr0th1e.js} +15 -15
- package/dist/chunks/{ripgrep-6qwwd18r.js → bus-5rvay4qb.js} +4 -4
- package/dist/chunks/{ripgrep-jz1pxar4.js → bus-5t01hw7s.js} +1 -1
- package/dist/chunks/{ripgrep-5t3nmthw.js → bus-5t3nmthw.js} +2 -2
- package/dist/chunks/{ripgrep-m77pw7dw.js → bus-62akg8e4.js} +24 -24
- package/dist/chunks/{ripgrep-vvccsdf3.js → bus-63xctefh.js} +6 -6
- package/dist/chunks/{ripgrep-669tq793.js → bus-669tq793.js} +1 -1
- package/dist/chunks/{ripgrep-p9s0eh58.js → bus-686zvbc5.js} +64 -64
- package/dist/chunks/{ripgrep-vfgx9b51.js → bus-6cr8vpfb.js} +3 -3
- package/dist/chunks/{ripgrep-2402vzrj.js → bus-6h73sxmp.js} +5 -5
- package/dist/chunks/{ripgrep-6msgmcgs.js → bus-6msgmcgs.js} +1 -1
- package/dist/chunks/{ripgrep-wa698kjv.js → bus-6xf9vr65.js} +51 -51
- package/dist/chunks/{ripgrep-71q4at8m.js → bus-71q4at8m.js} +1 -1
- package/dist/chunks/{ripgrep-ym7eccym.js → bus-72774a2p.js} +6 -6
- package/dist/chunks/{ripgrep-1bbkgx8g.js → bus-73tb2d7t.js} +3 -3
- package/dist/chunks/{ripgrep-189gvxgf.js → bus-73z097ay.js} +14 -14
- package/dist/chunks/{ripgrep-rg9pm5jb.js → bus-7414g21f.js} +43 -43
- package/dist/chunks/{ripgrep-tcs4ev01.js → bus-74ag36aw.js} +19 -19
- package/dist/chunks/{ripgrep-a2ejp4ca.js → bus-75tpbtqb.js} +35 -35
- package/dist/chunks/{ripgrep-7bmhse3q.js → bus-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-6rdgvekc.js → bus-7kj26btf.js} +3 -3
- package/dist/chunks/{ripgrep-agmj7b0k.js → bus-7vgsmbaw.js} +9 -9
- package/dist/chunks/{ripgrep-7gpx9yxs.js → bus-7zgx3034.js} +18 -18
- package/dist/chunks/{ripgrep-tcezcvh9.js → bus-89znhe33.js} +4 -4
- package/dist/chunks/{ripgrep-8d7r5vzw.js → bus-8d7r5vzw.js} +1 -1
- package/dist/chunks/{ripgrep-8p4f9s12.js → bus-8p4f9s12.js} +2 -2
- package/dist/chunks/{ripgrep-ajbpkfam.js → bus-8pbhr5rb.js} +11 -11
- package/dist/chunks/{ripgrep-wva7n27r.js → bus-8qvaa28h.js} +10 -10
- package/dist/chunks/{ripgrep-df5tg79n.js → bus-9a5x4ndh.js} +32 -32
- package/dist/chunks/{ripgrep-e1n4w09h.js → bus-9cebcpzz.js} +30 -30
- package/dist/chunks/{ripgrep-es6p32db.js → bus-9gwk1d27.js} +310 -310
- package/dist/chunks/{ripgrep-9bc93h43.js → bus-9m5kzw0e.js} +11 -11
- package/dist/chunks/{ripgrep-y8639ad0.js → bus-9yma6mz2.js} +24 -24
- package/dist/chunks/{ripgrep-a1bz86dw.js → bus-a1bz86dw.js} +3 -3
- package/dist/chunks/{ripgrep-wds0x6j9.js → bus-a3e7ey2w.js} +5 -5
- package/dist/chunks/{ripgrep-vpnc1spb.js → bus-a4f8rw7k.js} +11 -11
- package/dist/chunks/{ripgrep-aaet6srn.js → bus-aaet6srn.js} +2 -2
- package/dist/chunks/{ripgrep-4p3ge18s.js → bus-aef6edcj.js} +11 -11
- package/dist/chunks/{ripgrep-44e7s01k.js → bus-aez8skhx.js} +35 -35
- package/dist/chunks/{ripgrep-x353b1jt.js → bus-at1kfnmk.js} +8 -8
- package/dist/chunks/{ripgrep-8h150kyy.js → bus-atssdtxp.js} +6 -6
- package/dist/chunks/{ripgrep-12x6e8th.js → bus-ay1e4s3v.js} +17 -17
- package/dist/chunks/{ripgrep-h3qyz6r3.js → bus-b5ky3g00.js} +2 -2
- package/dist/chunks/{ripgrep-b6gygkdw.js → bus-b6gygkdw.js} +2 -2
- package/dist/chunks/{ripgrep-d3tz2ej1.js → bus-b8ey678w.js} +9 -9
- package/dist/chunks/{ripgrep-2c7f7wtp.js → bus-bbtrsqmd.js} +28 -28
- package/dist/chunks/{ripgrep-8jzp8wqa.js → bus-bc94wkq6.js} +28 -28
- package/dist/chunks/{ripgrep-gzbkpp9m.js → bus-bdqrk2vk.js} +4 -4
- package/dist/chunks/{ripgrep-8jpwh3cy.js → bus-bje2m678.js} +30 -30
- package/dist/chunks/{ripgrep-rxmh2sg9.js → bus-brbkvpcb.js} +14 -14
- package/dist/chunks/{ripgrep-kmfbtjhd.js → bus-c3nbwr53.js} +34 -34
- package/dist/chunks/{ripgrep-4f0srg1f.js → bus-c72vda60.js} +29 -29
- package/dist/chunks/{ripgrep-s2e9xs2h.js → bus-c833tjt1.js} +32 -32
- package/dist/chunks/{ripgrep-5j2tm17g.js → bus-c9f7p254.js} +20 -20
- package/dist/chunks/{ripgrep-zvt5dnpc.js → bus-ca7w653e.js} +4 -4
- package/dist/chunks/{ripgrep-ra713epb.js → bus-cadqg8yk.js} +20 -20
- package/dist/chunks/{ripgrep-nwqvjhxj.js → bus-cdvm88eq.js} +9 -9
- package/dist/chunks/{ripgrep-cfpkc3c9.js → bus-cfpkc3c9.js} +2 -2
- package/dist/chunks/{ripgrep-x8pc9v5x.js → bus-cj2xyb66.js} +20 -20
- package/dist/chunks/{ripgrep-ypveyybc.js → bus-cnb5z5cf.js} +11 -11
- package/dist/chunks/{ripgrep-67dbk5sq.js → bus-cpng0f85.js} +28 -28
- package/dist/chunks/{ripgrep-pj5x48v7.js → bus-cq1ssszz.js} +6 -6
- package/dist/chunks/{ripgrep-jdwwbwbn.js → bus-cst62dfw.js} +19 -19
- package/dist/chunks/{ripgrep-zt5h3yfa.js → bus-d09006c3.js} +2 -2
- package/dist/chunks/{ripgrep-bg6j762k.js → bus-d1e2r7xq.js} +10 -10
- package/dist/chunks/{ripgrep-21w4258z.js → bus-dbmkm35e.js} +1 -1
- package/dist/chunks/{ripgrep-tdd2jx9c.js → bus-dn2g8ty9.js} +15 -15
- package/dist/chunks/{ripgrep-jwcy2c2z.js → bus-dpkg50ah.js} +4 -4
- package/dist/chunks/{ripgrep-6aqnmcny.js → bus-dpmm3pd1.js} +30 -30
- package/dist/chunks/{ripgrep-bn746h9y.js → bus-e16t29dh.js} +6 -6
- package/dist/chunks/{ripgrep-e5nv3ght.js → bus-e5nv3ght.js} +2 -2
- package/dist/chunks/{ripgrep-hjt4xg1x.js → bus-e82z9tr0.js} +7 -7
- package/dist/chunks/{ripgrep-80wpcwwr.js → bus-eebdtnk6.js} +11 -11
- package/dist/chunks/{ripgrep-ef5x83kb.js → bus-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-r2zs1qxw.js → bus-engx0f1y.js} +23 -23
- package/dist/chunks/{ripgrep-gcngnys8.js → bus-eq4mjx14.js} +28 -28
- package/dist/chunks/{ripgrep-38c78d9y.js → bus-erswsgcd.js} +8 -8
- package/dist/chunks/{ripgrep-jt7tdy1h.js → bus-ete3mxyp.js} +16 -16
- package/dist/chunks/{ripgrep-etq0c3wd.js → bus-etq0c3wd.js} +1 -1
- package/dist/chunks/{ripgrep-kez65ze9.js → bus-ewp6a6x8.js} +25 -25
- package/dist/chunks/{ripgrep-f828m53h.js → bus-f828m53h.js} +2 -2
- package/dist/chunks/{ripgrep-k9m5ndvb.js → bus-fcxm0egy.js} +15 -15
- package/dist/chunks/{ripgrep-anjeghmy.js → bus-fec9d9pd.js} +60 -60
- package/dist/chunks/{ripgrep-fxbjtjnd.js → bus-fxbjtjnd.js} +1 -1
- package/dist/chunks/{ripgrep-bajakh74.js → bus-fxqygnfa.js} +4 -4
- package/dist/chunks/{ripgrep-xxf1z6td.js → bus-fz5sfred.js} +22 -22
- package/dist/chunks/{ripgrep-x6qre90b.js → bus-g4rgasps.js} +11 -11
- package/dist/chunks/{ripgrep-w5d72rt0.js → bus-g8n86g3v.js} +2 -2
- package/dist/chunks/{ripgrep-97czctv7.js → bus-gbcrwt4m.js} +13 -13
- package/dist/chunks/{ripgrep-ah8fqh7n.js → bus-gcrpxwkb.js} +25 -25
- package/dist/chunks/{ripgrep-gd4qta3r.js → bus-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-cbbc3wgw.js → bus-gemkh5vt.js} +24 -24
- package/dist/chunks/{ripgrep-0hg8636t.js → bus-gmjjhz4f.js} +9 -9
- package/dist/chunks/{ripgrep-3y9bq3t8.js → bus-gx8hye9g.js} +6 -6
- package/dist/chunks/{ripgrep-7h39wxaq.js → bus-gzyaaj9q.js} +13 -13
- package/dist/chunks/{ripgrep-h03wrkyp.js → bus-h03wrkyp.js} +2 -2
- package/dist/chunks/{ripgrep-v7wvwwvc.js → bus-h11wzpyy.js} +22 -22
- package/dist/chunks/{ripgrep-jpzcdmvj.js → bus-h3sg4en2.js} +10 -10
- package/dist/chunks/{ripgrep-egmb5x89.js → bus-h3ysd6bx.js} +36 -36
- package/dist/chunks/{ripgrep-bdd1mh0w.js → bus-h686kfbk.js} +9 -9
- package/dist/chunks/{ripgrep-h6vf3j39.js → bus-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-m86bnw2c.js → bus-h7ygw6q4.js} +9 -9
- package/dist/chunks/{ripgrep-nev01g0y.js → bus-hp23vqgj.js} +4 -4
- package/dist/chunks/{ripgrep-0tes6vj0.js → bus-hs3grr87.js} +21 -21
- package/dist/chunks/{ripgrep-tyyv5ce2.js → bus-hspc2tk9.js} +1 -1
- package/dist/chunks/{ripgrep-j78hbbge.js → bus-hvk5xh9a.js} +43 -43
- package/dist/chunks/{ripgrep-2fcjxh44.js → bus-hy39tjkp.js} +9 -9
- package/dist/chunks/{ripgrep-ddxnayy4.js → bus-j2149bqs.js} +11 -11
- package/dist/chunks/{ripgrep-mx4mv9ny.js → bus-j35w4m74.js} +6 -6
- package/dist/chunks/{ripgrep-j56e64zr.js → bus-j56e64zr.js} +1 -1
- package/dist/chunks/{ripgrep-g97bb4fb.js → bus-jca4demv.js} +2 -2
- package/dist/chunks/{ripgrep-n91t41cy.js → bus-jcmyxw9c.js} +12 -12
- package/dist/chunks/{ripgrep-t990yqw6.js → bus-jdc9ax8k.js} +10 -10
- package/dist/chunks/{ripgrep-3vde3pvj.js → bus-jg1rg3jc.js} +43 -43
- package/dist/chunks/{ripgrep-0df5h2qy.js → bus-jgpr3qf1.js} +27 -27
- package/dist/chunks/{ripgrep-y83j6qwg.js → bus-jssqjg8j.js} +7 -7
- package/dist/chunks/{ripgrep-et0rkxxj.js → bus-k5m0fz1p.js} +8 -8
- package/dist/chunks/{ripgrep-4y8bm76w.js → bus-kdh23bg8.js} +19 -19
- package/dist/chunks/{ripgrep-5d42m44n.js → bus-kffdrsz9.js} +5 -5
- package/dist/chunks/{ripgrep-k1jy5w06.js → bus-km7e3hxy.js} +1 -1
- package/dist/chunks/{ripgrep-4pa8q4z1.js → bus-ktjqq88n.js} +32 -32
- package/dist/chunks/{ripgrep-49p1g939.js → bus-kxdh0s6n.js} +11 -11
- package/dist/chunks/{ripgrep-nk1anpaj.js → bus-m4gm00jg.js} +7 -7
- package/dist/chunks/{ripgrep-4q6wvnkn.js → bus-m4sagrtb.js} +49 -49
- package/dist/chunks/{ripgrep-53agvevm.js → bus-m63gtq16.js} +11 -11
- package/dist/chunks/{ripgrep-m9w0rfyh.js → bus-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-avsbzx7p.js → bus-mca7v45c.js} +32 -32
- package/dist/chunks/{ripgrep-kk00bynn.js → bus-mjymc32g.js} +21 -21
- package/dist/chunks/{ripgrep-mxr7eecd.js → bus-mx0gp0c3.js} +33 -33
- package/dist/chunks/{ripgrep-5sdgc7vh.js → bus-mz0r0wg6.js} +18 -18
- package/dist/chunks/{ripgrep-k9avwfq5.js → bus-n81xd9d5.js} +1 -1
- package/dist/chunks/{ripgrep-jztv3xwp.js → bus-nkj12b6c.js} +179 -179
- package/dist/chunks/{ripgrep-4vrcg479.js → bus-nnq4n2qn.js} +46 -46
- package/dist/chunks/{ripgrep-gfe8pz8k.js → bus-nrtvwtgm.js} +4 -4
- package/dist/chunks/{ripgrep-2yqkqxm6.js → bus-nzh27kh4.js} +13 -13
- package/dist/chunks/{ripgrep-qfhza6js.js → bus-nzzy63ds.js} +5 -5
- package/dist/chunks/{ripgrep-06yesm3b.js → bus-p33wnvsh.js} +23 -23
- package/dist/chunks/{ripgrep-yseaw3zk.js → bus-p53n7dng.js} +30 -30
- package/dist/chunks/{ripgrep-88sz8qcd.js → bus-paegk39x.js} +4 -4
- package/dist/chunks/{ripgrep-xean7qwc.js → bus-pbky2mmf.js} +27 -27
- package/dist/chunks/{ripgrep-8mnq8fdw.js → bus-pbp9sz76.js} +4 -4
- package/dist/chunks/bus-pf31ssb9.js +18 -0
- package/dist/chunks/{ripgrep-20cnsgn6.js → bus-pfrpta5e.js} +6 -6
- package/dist/chunks/{ripgrep-pjvnvgmy.js → bus-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-pknna89w.js → bus-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-2syw43ez.js → bus-ppj42jsj.js} +12 -12
- package/dist/chunks/{ripgrep-cd8pzhxg.js → bus-pw2ze8eb.js} +32 -32
- package/dist/chunks/{ripgrep-mj489v08.js → bus-pwpvhpkp.js} +18 -18
- package/dist/chunks/{ripgrep-yedx64dk.js → bus-q09v2a5f.js} +4 -4
- package/dist/chunks/{ripgrep-3j8sdtpz.js → bus-q2b1ymqp.js} +4 -4
- package/dist/chunks/{ripgrep-5epte933.js → bus-q3t37ft6.js} +3 -3
- package/dist/chunks/{ripgrep-5jz398fa.js → bus-q529tzg0.js} +23 -23
- package/dist/chunks/{ripgrep-qf4kcv83.js → bus-q73r15kw.js} +9 -9
- package/dist/chunks/{ripgrep-eb0ks5fv.js → bus-q7wya2ft.js} +10 -10
- package/dist/chunks/bus-qapv375x.js +4 -0
- package/dist/chunks/{ripgrep-9gf5hqrf.js → bus-qed01h9c.js} +67 -67
- package/dist/chunks/{ripgrep-ezcbab6y.js → bus-qrs9zw48.js} +11 -11
- package/dist/chunks/{ripgrep-qsdy395h.js → bus-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-nzqx2mf8.js → bus-qyeevtht.js} +41 -41
- package/dist/chunks/{ripgrep-h6r3nrb9.js → bus-r55vasa2.js} +4 -4
- package/dist/chunks/{ripgrep-r9mregkx.js → bus-r9mregkx.js} +2 -2
- package/dist/chunks/{ripgrep-3gh58dm9.js → bus-r9nkdn48.js} +5 -5
- package/dist/chunks/{ripgrep-rdw6cm16.js → bus-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-tex4jp26.js → bus-rkhcyd8j.js} +11 -11
- package/dist/chunks/{ripgrep-9jc96w9w.js → bus-sg1mp0wp.js} +28 -28
- package/dist/chunks/{ripgrep-3g5g2h75.js → bus-sm8rghk4.js} +13 -13
- package/dist/chunks/{ripgrep-60sb5knf.js → bus-ss6xz6nm.js} +11 -11
- package/dist/chunks/{ripgrep-8w01d1n2.js → bus-stb1hwq0.js} +15 -15
- package/dist/chunks/{ripgrep-t13q6zse.js → bus-t32f9ypw.js} +14 -14
- package/dist/chunks/{ripgrep-ptse1bjf.js → bus-t3qrjm11.js} +34 -34
- package/dist/chunks/{ripgrep-pcqp5rgh.js → bus-t402yjt7.js} +24 -24
- package/dist/chunks/{ripgrep-rt5bks5t.js → bus-t5t549nc.js} +20 -20
- package/dist/chunks/{ripgrep-w9vf9qqj.js → bus-tat11k01.js} +9 -9
- package/dist/chunks/{ripgrep-tazgh4e4.js → bus-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-scq4khx8.js → bus-tcg29b4q.js} +1 -1
- package/dist/chunks/{ripgrep-84h9x75f.js → bus-tdhe5xga.js} +11 -11
- package/dist/chunks/{ripgrep-tdstcens.js → bus-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-e5vq6wef.js → bus-te6cpsjw.js} +4 -4
- package/dist/chunks/{ripgrep-37zh6x8p.js → bus-th34e5xy.js} +11 -11
- package/dist/chunks/{ripgrep-gv6a8nnw.js → bus-th5km1p3.js} +5 -5
- package/dist/chunks/{ripgrep-73gmm198.js → bus-tkmwgdpd.js} +7 -7
- package/dist/chunks/{ripgrep-rsz70btv.js → bus-tsg9kv8a.js} +12 -12
- package/dist/chunks/{ripgrep-tvtrv512.js → bus-tvtrv512.js} +1 -1
- package/dist/chunks/{ripgrep-ag9w8cw1.js → bus-tz2bjj40.js} +5 -5
- package/dist/chunks/{ripgrep-124zgskp.js → bus-v1ksr1cs.js} +5 -5
- package/dist/chunks/{ripgrep-bs81dhpw.js → bus-v21t5zre.js} +24 -24
- package/dist/chunks/{ripgrep-yp1jwc24.js → bus-v2tpmsmj.js} +41 -41
- package/dist/chunks/{ripgrep-7b15y959.js → bus-v4hmzr0r.js} +8 -8
- package/dist/chunks/{ripgrep-veqvce7d.js → bus-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-rp1syd7b.js → bus-vgg4xkgc.js} +5 -5
- package/dist/chunks/{ripgrep-79gxnefz.js → bus-vw8bwat5.js} +28 -28
- package/dist/chunks/{ripgrep-z9pcy3hm.js → bus-vxn7m0sk.js} +5 -5
- package/dist/chunks/{ripgrep-vzcthcp8.js → bus-vzcthcp8.js} +1 -1
- package/dist/chunks/{ripgrep-9pbcs2te.js → bus-w0sf05pe.js} +4 -4
- package/dist/chunks/{ripgrep-94325gp6.js → bus-w35y2yw8.js} +37 -37
- package/dist/chunks/{ripgrep-w3wsvvr9.js → bus-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-k9heqbmv.js → bus-w5k3gg8r.js} +94 -94
- package/dist/chunks/{ripgrep-4rr9ghsb.js → bus-w6dzfd7x.js} +12 -12
- package/dist/chunks/{ripgrep-gr2hg8ez.js → bus-wb72v9a5.js} +15 -15
- package/dist/chunks/{ripgrep-wd87259q.js → bus-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-5rtg8v4f.js → bus-wq4mgxca.js} +4 -4
- package/dist/chunks/{ripgrep-x1ezjp6w.js → bus-x1ezjp6w.js} +1 -1
- package/dist/chunks/{ripgrep-j2cgy6et.js → bus-x60djdrf.js} +27 -27
- package/dist/chunks/bus-x88d9nzm.js +251 -0
- package/dist/chunks/{ripgrep-a9tqjgec.js → bus-xevfw74a.js} +27 -27
- package/dist/chunks/{ripgrep-mhwrm0j5.js → bus-xp1v9ajb.js} +28 -28
- package/dist/chunks/{ripgrep-3wkcfg07.js → bus-xpfz5w62.js} +6 -6
- package/dist/chunks/{ripgrep-fv5ds83k.js → bus-xpgn474g.js} +12 -12
- package/dist/chunks/{ripgrep-h4tg60r9.js → bus-xsxe7432.js} +9 -9
- package/dist/chunks/{ripgrep-66r4fn97.js → bus-xx2kx86r.js} +42 -42
- package/dist/chunks/{ripgrep-y1fvbwt7.js → bus-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-h4121yxn.js → bus-ycxk46z7.js} +47 -47
- package/dist/chunks/{ripgrep-8vb99h00.js → bus-yd9ketrd.js} +3 -3
- package/dist/chunks/{ripgrep-e5atvjy6.js → bus-yjjca98t.js} +14 -14
- package/dist/chunks/{ripgrep-yp2x3t23.js → bus-yp2x3t23.js} +1 -1
- package/dist/chunks/{ripgrep-yrhqyw5v.js → bus-yrhqyw5v.js} +1 -1
- package/dist/chunks/{ripgrep-s4enseaf.js → bus-yrznvahk.js} +2 -2
- package/dist/chunks/{ripgrep-9cc1d2dv.js → bus-yx0rmv9r.js} +8 -8
- package/dist/chunks/{ripgrep-z0bkrqjs.js → bus-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-29x78va6.js → bus-z63w68vq.js} +6 -6
- package/dist/chunks/{ripgrep-bzryztkv.js → bus-zakjc7j6.js} +31 -31
- package/dist/chunks/{ripgrep-sev8k0v9.js → bus-zbj7r6th.js} +10 -10
- package/dist/chunks/{ripgrep-he5x26st.js → bus-zcxhpjvf.js} +15 -15
- package/dist/chunks/{ripgrep-zeh9ct20.js → bus-zeh9ct20.js} +2 -2
- package/dist/chunks/{ripgrep-edbcpkh6.js → bus-zg4yt3jb.js} +35 -35
- package/dist/chunks/{ripgrep-r8p0psj5.js → bus-zn1xqtaw.js} +28 -28
- package/dist/chunks/{ripgrep-f4mjzmv8.js → bus-zp0g5kd9.js} +19 -19
- package/dist/chunks/{ripgrep-01qf260s.js → bus-zp47re1r.js} +11 -11
- package/dist/chunks/{ripgrep-zr2ceqn5.js → bus-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-zxq2ej10.js → bus-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +83 -83
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +124 -124
- package/dist/config/plugin/command.js +213 -213
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +122 -122
- package/dist/config/plugin/mcp.js +131 -131
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +121 -121
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +124 -124
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +125 -125
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +123 -123
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +84 -84
- package/dist/database/database.js +71 -71
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- 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 +75 -75
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +365 -365
- 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 +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- 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 +73 -73
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +223 -223
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +105 -105
- package/dist/form.js +83 -83
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +86 -86
- package/dist/generate.js +101 -101
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +98 -98
- 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/id/id.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +356 -356
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +85 -85
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +137 -137
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +87 -87
- package/dist/location-services.js +353 -353
- package/dist/location.js +84 -84
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +99 -99
- package/dist/mcp/instructions.js +124 -124
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +98 -98
- package/dist/model-resolver.js +96 -96
- package/dist/model.js +101 -101
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +118 -118
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +79 -79
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +103 -103
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +216 -216
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +94 -94
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +89 -89
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +89 -89
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +89 -89
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +91 -91
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +121 -121
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +89 -89
- package/dist/plugin/provider.js +159 -159
- package/dist/plugin/sdk.js +75 -75
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +342 -342
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/variant.js +91 -91
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +4 -4
- package/dist/project/sql.js +4 -4
- package/dist/project.js +85 -85
- package/dist/provider.js +100 -100
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +91 -91
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +94 -94
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +223 -223
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +87 -87
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +113 -113
- package/dist/session/model-transport.js +5 -5
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +228 -228
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +72 -72
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +220 -220
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +7 -7
- package/dist/shell.js +139 -139
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +111 -111
- package/dist/snapshot.js +90 -90
- 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 +123 -123
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +115 -115
- package/dist/tool/plugin/grep.js +123 -123
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +104 -104
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/session/execution.d.ts +1 -1
- package/dist/types/session/session.d.ts +1 -1
- package/dist/types/session.d.ts +1 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- 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 +7 -7
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +78 -78
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +4 -4
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/refresh.js +345 -345
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +93 -93
- package/package.json +8 -8
- package/dist/chunks/ripgrep-0mesazry.js +0 -4
- package/dist/chunks/ripgrep-3xc7y499.js +0 -251
- package/dist/chunks/ripgrep-ahz9sev5.js +0 -26
- package/dist/chunks/ripgrep-by5v678g.js +0 -18
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → bus-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → bus-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → bus-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → bus-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-1kg9ymc8.js → bus-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → bus-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2axfhc9x.js → bus-2axfhc9x.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → bus-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → bus-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → bus-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → bus-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3w5fmr99.js → bus-3w5fmr99.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → bus-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → bus-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → bus-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → bus-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → bus-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → bus-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → bus-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → bus-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → bus-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → bus-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → bus-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → bus-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → bus-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-922hggd3.js → bus-922hggd3.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → bus-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → bus-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → bus-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → bus-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → bus-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → bus-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → bus-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → bus-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → bus-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → bus-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → bus-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → bus-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → bus-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → bus-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → bus-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → bus-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → bus-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → bus-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → bus-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → bus-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → bus-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → bus-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → bus-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → bus-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → bus-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → bus-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-fxgpk5d8.js → bus-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → bus-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → bus-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → bus-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → bus-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hjbc5kem.js → bus-hjbc5kem.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → bus-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-hrnqkpcd.js → bus-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → bus-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → bus-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → bus-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → bus-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → bus-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → bus-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → bus-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → bus-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → bus-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → bus-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → bus-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → bus-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → bus-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → bus-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → bus-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → bus-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → bus-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → bus-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-sk3qaz4a.js → bus-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → bus-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-twg0f83k.js → bus-twg0f83k.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → bus-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → bus-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → bus-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → bus-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → bus-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → bus-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8cydn3q.js → bus-y8cydn3q.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → bus-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → bus-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → bus-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → bus-z9919s4g.js} +0 -0
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./bus-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service40
|
|
7
|
+
} from "./bus-m4sagrtb.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./bus-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service53
|
|
13
|
+
} from "./bus-gemkh5vt.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service42
|
|
16
|
+
} from "./bus-0hng8cbp.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service68
|
|
19
|
+
} from "./bus-686zvbc5.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service67,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./bus-7zgx3034.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./bus-fxbjtjnd.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service78,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./bus-rkhcyd8j.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError4,
|
|
36
|
+
Service38
|
|
37
|
+
} from "./bus-6xf9vr65.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./
|
|
39
|
+
Service19
|
|
40
|
+
} from "./bus-w5k3gg8r.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./bus-hp23vqgj.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./bus-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
|
-
var
|
|
50
|
-
__export(
|
|
49
|
+
var exports_shell = {};
|
|
50
|
+
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
54
|
-
ShellTool: () =>
|
|
55
|
-
name: () =>
|
|
52
|
+
Input: () => Input5,
|
|
53
|
+
Plugin: () => Plugin6,
|
|
54
|
+
ShellTool: () => exports_shell,
|
|
55
|
+
name: () => name5
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name5 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
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.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input5 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
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."
|
|
@@ -115,19 +115,19 @@ Output is streaming to: ${file}`,
|
|
|
115
115
|
truncated: false,
|
|
116
116
|
status: "running"
|
|
117
117
|
});
|
|
118
|
-
var
|
|
118
|
+
var Plugin6 = {
|
|
119
119
|
id: "opencode.tool.shell",
|
|
120
120
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
121
|
-
const sessions = yield*
|
|
122
|
-
const jobs = yield*
|
|
121
|
+
const sessions = yield* Service19;
|
|
122
|
+
const jobs = yield* Service42;
|
|
123
123
|
const scope = yield* Scope.Scope;
|
|
124
|
-
const environment = yield*
|
|
125
|
-
const access = yield*
|
|
126
|
-
const shell = yield*
|
|
127
|
-
const shellSelect = yield*
|
|
124
|
+
const environment = yield* Service53;
|
|
125
|
+
const access = yield* Service67;
|
|
126
|
+
const shell = yield* Service38;
|
|
127
|
+
const shellSelect = yield* Service78;
|
|
128
128
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
129
|
-
const permission = yield*
|
|
130
|
-
const config = yield*
|
|
129
|
+
const permission = yield* Service68;
|
|
130
|
+
const config = yield* Service40;
|
|
131
131
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
132
132
|
const source = {
|
|
133
133
|
type: "tool",
|
|
@@ -146,7 +146,7 @@ var Plugin23 = {
|
|
|
146
146
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
147
147
|
if (parsed.commands.length > 0)
|
|
148
148
|
yield* permission.assert({
|
|
149
|
-
action:
|
|
149
|
+
action: name5,
|
|
150
150
|
resources: parsed.commands.map((command) => command.resource),
|
|
151
151
|
save: parsed.commands.map((command) => command.save),
|
|
152
152
|
sessionID: context.sessionID,
|
|
@@ -183,10 +183,10 @@ var Plugin23 = {
|
|
|
183
183
|
yield* jobs.completeBackground(info.notificationID);
|
|
184
184
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
185
185
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
186
|
-
name:
|
|
186
|
+
name: name5,
|
|
187
187
|
options: { codemode: false },
|
|
188
188
|
description: description(),
|
|
189
|
-
input:
|
|
189
|
+
input: Input5,
|
|
190
190
|
output: Output,
|
|
191
191
|
execute: (input, context) => Effect.gen(function* () {
|
|
192
192
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -205,7 +205,7 @@ var Plugin23 = {
|
|
|
205
205
|
const run = Effect.gen(function* () {
|
|
206
206
|
const result = yield* shell.result(info);
|
|
207
207
|
if (!result.capture)
|
|
208
|
-
return yield* new
|
|
208
|
+
return yield* new NotFoundError4({ id: info.id });
|
|
209
209
|
const output = output2(result);
|
|
210
210
|
return {
|
|
211
211
|
...output,
|
|
@@ -219,7 +219,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
219
219
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
220
220
|
const job = yield* jobs.start({
|
|
221
221
|
id: info.id,
|
|
222
|
-
type:
|
|
222
|
+
type: name5,
|
|
223
223
|
title: info.command,
|
|
224
224
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
225
225
|
recovery: {
|
|
@@ -249,7 +249,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
249
249
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
250
250
|
})).pipe(Effect.orDie);
|
|
251
251
|
const hook = (event) => Effect.gen(function* () {
|
|
252
|
-
const tool = event.tools[
|
|
252
|
+
const tool = event.tools[name5];
|
|
253
253
|
if (!tool)
|
|
254
254
|
return;
|
|
255
255
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -260,4 +260,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
260
260
|
})
|
|
261
261
|
};
|
|
262
262
|
|
|
263
|
-
export {
|
|
263
|
+
export { name5, DEFAULT_TIMEOUT_MS2, Input5, Plugin6, exports_shell };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
provider2,
|
|
3
3
|
model2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./bus-0paq2nw3.js";
|
|
5
5
|
import {
|
|
6
6
|
aisdk2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./bus-75tpbtqb.js";
|
|
8
8
|
import {
|
|
9
9
|
Capabilities2,
|
|
10
10
|
compatibility2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./bus-aez8skhx.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./bus-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/v1/config/migrate.ts
|
|
17
17
|
var exports_migrate = {};
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service79,
|
|
4
|
+
node83
|
|
5
|
+
} from "./bus-brbkvpcb.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./bus-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/sdk.ts
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service4,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
layer: () => layer5,
|
|
17
|
+
node: () => node7
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service4 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
26
|
-
const bus = yield*
|
|
25
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
26
|
+
const bus = yield* Service79;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service4.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {})), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node7 = makeGlobalNode({ service: Service4, layer: layer5, deps: [node83] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service4, layer5, node7, exports_sdk };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
webSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./bus-5t3nmthw.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./bus-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
@@ -12,7 +12,7 @@ __export(exports_model_transport, {
|
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
13
|
layer: () => layer11,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node32
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -361,6 +361,6 @@ var makeLayer2 = (connector) => Layer.effect(Service28, Effect.gen(function* ()
|
|
|
361
361
|
var layer11 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
362
362
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
363
363
|
})));
|
|
364
|
-
var
|
|
364
|
+
var node32 = makeGlobalNode({ service: Service28, layer: layer11, deps: [webSocketConstructor2] });
|
|
365
365
|
|
|
366
|
-
export { Service28, makeLayer2, layer11,
|
|
366
|
+
export { Service28, makeLayer2, layer11, node32, exports_model_transport };
|
|
@@ -1,38 +1,38 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Metadata2,
|
|
3
3
|
useragent2,
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
4
|
+
node50
|
|
5
|
+
} from "./bus-kxdh0s6n.js";
|
|
6
6
|
import {
|
|
7
7
|
provenance2,
|
|
8
8
|
compatible2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./bus-paegk39x.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service74,
|
|
12
|
+
node78
|
|
13
|
+
} from "./bus-at1kfnmk.js";
|
|
14
14
|
import {
|
|
15
15
|
DeclinedError2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./bus-686zvbc5.js";
|
|
17
17
|
import {
|
|
18
18
|
CancelledError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./bus-3vnz1vry.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Error4
|
|
22
|
+
} from "./bus-236xsrf6.js";
|
|
23
23
|
import {
|
|
24
24
|
Service28,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
node32
|
|
26
|
+
} from "./bus-nzzy63ds.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
make13
|
|
29
|
+
} from "./bus-e82z9tr0.js";
|
|
30
30
|
import {
|
|
31
31
|
toLLMMessages2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./bus-tcg29b4q.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./bus-9rqn6x4v.js";
|
|
36
36
|
|
|
37
37
|
// src/session/model-request.ts
|
|
38
38
|
var exports_model_request = {};
|
|
@@ -42,7 +42,7 @@ __export(exports_model_request, {
|
|
|
42
42
|
baseTranscript: () => baseTranscript2,
|
|
43
43
|
boundImages: () => boundImages2,
|
|
44
44
|
layer: () => layer10,
|
|
45
|
-
node: () =>
|
|
45
|
+
node: () => node31,
|
|
46
46
|
unsupportedParts: () => unsupportedParts2
|
|
47
47
|
});
|
|
48
48
|
import {
|
|
@@ -66,7 +66,7 @@ var baseTranscript2 = (input) => {
|
|
|
66
66
|
return {
|
|
67
67
|
providerMetadataKey,
|
|
68
68
|
system: [
|
|
69
|
-
input.agent.system ? input.agent.system :
|
|
69
|
+
input.agent.system ? input.agent.system : make13(input.tools.definitions.map((tool) => tool.name)),
|
|
70
70
|
input.initial
|
|
71
71
|
].filter((part) => part.length > 0).map(SystemPart.make),
|
|
72
72
|
messages: toLLMMessages2(input.messages, input.model.ref, providerMetadataKey)
|
|
@@ -153,7 +153,7 @@ var boundImages2 = (messages) => {
|
|
|
153
153
|
class Service27 extends Context.Service()("@opencode/SessionModelRequest") {
|
|
154
154
|
}
|
|
155
155
|
var layer10 = Layer.effect(Service27, Effect.gen(function* () {
|
|
156
|
-
const hooks = yield*
|
|
156
|
+
const hooks = yield* Service74;
|
|
157
157
|
const transport = yield* Service28;
|
|
158
158
|
const app = yield* Metadata2;
|
|
159
159
|
const prepare = Effect.fn("SessionModelRequest.prepare")(function* (kind, input, shape) {
|
|
@@ -162,7 +162,7 @@ var layer10 = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
162
162
|
const scope = { sessionID: session.id, agent: input.agent, model: model.ref, kind };
|
|
163
163
|
const tools = input.tools ?? {
|
|
164
164
|
definitions: [],
|
|
165
|
-
execute: () => new
|
|
165
|
+
execute: () => new Error4({ message: "Tools are not available for this request" })
|
|
166
166
|
};
|
|
167
167
|
const given = new Map(tools.definitions.map((t) => [{ description: t.description, input: { ...t.inputSchema } }, t]));
|
|
168
168
|
const shaped = yield* shape({ sessionID: session.id, model: model.ref, system: input.system, messages: input.messages, options: {} }, Object.fromEntries(Array.from(given, ([d, t]) => [t.name, d])));
|
|
@@ -251,10 +251,10 @@ var layer10 = Layer.effect(Service27, Effect.gen(function* () {
|
|
|
251
251
|
title: (input) => prepare("title", input, (draft) => hooks.trigger("session", "title", draft))
|
|
252
252
|
});
|
|
253
253
|
}));
|
|
254
|
-
var
|
|
254
|
+
var node31 = makeLocationNode({
|
|
255
255
|
service: Service27,
|
|
256
256
|
layer: layer10,
|
|
257
|
-
deps: [
|
|
257
|
+
deps: [node78, node32, node50]
|
|
258
258
|
});
|
|
259
259
|
|
|
260
|
-
export { baseTranscript2, unsupportedParts2, boundImages2, Service27, layer10,
|
|
260
|
+
export { baseTranscript2, unsupportedParts2, boundImages2, Service27, layer10, node31, exports_model_request };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./bus-922hggd3.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service72,
|
|
7
|
+
node76
|
|
8
|
+
} from "./bus-73z097ay.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service48,
|
|
11
|
+
node52
|
|
12
|
+
} from "./bus-4vdg0vy0.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./bus-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/filesystem.ts
|
|
18
18
|
var exports_filesystem = {};
|
|
@@ -20,31 +20,31 @@ __export(exports_filesystem, {
|
|
|
20
20
|
Content: () => Content2,
|
|
21
21
|
DEFAULT_SEARCH_LIMIT: () => DEFAULT_SEARCH_LIMIT2,
|
|
22
22
|
DEFAULT_SEARCH_TIMEOUT_MS: () => DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
23
|
-
Entry: () =>
|
|
24
|
-
Event: () =>
|
|
23
|
+
Entry: () => Entry4,
|
|
24
|
+
Event: () => Event8,
|
|
25
25
|
FileSystem: () => exports_filesystem,
|
|
26
26
|
FindInput: () => FindInput2,
|
|
27
27
|
GlobInput: () => GlobInput2,
|
|
28
28
|
GrepInput: () => GrepInput2,
|
|
29
|
-
ListInput: () =>
|
|
29
|
+
ListInput: () => ListInput3,
|
|
30
30
|
Match: () => Match2,
|
|
31
|
-
NotFoundError: () =>
|
|
31
|
+
NotFoundError: () => NotFoundError6,
|
|
32
32
|
ReadInput: () => ReadInput2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service47,
|
|
34
34
|
Submatch: () => Submatch2,
|
|
35
|
-
node: () =>
|
|
35
|
+
node: () => node51
|
|
36
36
|
});
|
|
37
37
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
38
38
|
import path from "path";
|
|
39
39
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
40
40
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
41
41
|
import { Entry, FileSystem, FindInput as FindInput2 } from "@opencode/schema/filesystem";
|
|
42
|
-
import { Entry as
|
|
42
|
+
import { Entry as Entry4, Match as Match2, Submatch as Submatch2 } from "@opencode/schema/filesystem";
|
|
43
43
|
var ReadInput2 = Schema.Struct({
|
|
44
44
|
path: RelativePath2
|
|
45
45
|
});
|
|
46
46
|
|
|
47
|
-
class
|
|
47
|
+
class NotFoundError6 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
48
48
|
path: RelativePath2
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
@@ -55,7 +55,7 @@ var Content2 = Schema.Struct({
|
|
|
55
55
|
encoding: Schema.Literals(["utf8", "base64"]),
|
|
56
56
|
mime: Schema.String
|
|
57
57
|
}).annotate({ identifier: "FileSystem.Content" });
|
|
58
|
-
var
|
|
58
|
+
var ListInput3 = Schema.Struct({
|
|
59
59
|
path: Schema.String.pipe(Schema.optional)
|
|
60
60
|
});
|
|
61
61
|
var DEFAULT_SEARCH_LIMIT2 = 100;
|
|
@@ -78,14 +78,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
78
78
|
limit: Schema.optionalKey(PositiveInt2)
|
|
79
79
|
}) {
|
|
80
80
|
}
|
|
81
|
-
var
|
|
81
|
+
var Event8 = FileSystem.Event;
|
|
82
82
|
|
|
83
|
-
class
|
|
83
|
+
class Service47 extends Context.Service()("@opencode/FileSystem") {
|
|
84
84
|
}
|
|
85
|
-
var baseLayer = Layer.effect(
|
|
85
|
+
var baseLayer = Layer.effect(Service47, Effect.gen(function* () {
|
|
86
86
|
const fs = yield* FSUtil.Service;
|
|
87
|
-
const location = yield*
|
|
88
|
-
const search = yield*
|
|
87
|
+
const location = yield* Service72;
|
|
88
|
+
const search = yield* Service48;
|
|
89
89
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.orDie);
|
|
90
90
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
91
91
|
const absolute = path.resolve(location.directory, input ?? ".");
|
|
@@ -96,15 +96,15 @@ var baseLayer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
96
96
|
return yield* Effect.die(new Error("Path escapes the location"));
|
|
97
97
|
return { absolute, real, directory: location.directory };
|
|
98
98
|
});
|
|
99
|
-
return
|
|
99
|
+
return Service47.of({
|
|
100
100
|
find: search.find,
|
|
101
101
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
102
|
-
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
103
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
102
|
+
const target = yield* resolve(input.path).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError6({ path: input.path })), (_, error) => Effect.die(error)));
|
|
103
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError6({ path: input.path })), (_, error) => Effect.die(error)));
|
|
104
104
|
if (info.type !== "File")
|
|
105
105
|
return yield* Effect.die(new Error("Path is not a file"));
|
|
106
106
|
return {
|
|
107
|
-
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
107
|
+
content: yield* fs.readFile(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError6({ path: input.path })), (_, error) => Effect.die(error))),
|
|
108
108
|
mime: FSUtil.mimeType(target.real)
|
|
109
109
|
};
|
|
110
110
|
}),
|
|
@@ -128,10 +128,10 @@ var baseLayer = Layer.effect(Service56, Effect.gen(function* () {
|
|
|
128
128
|
})
|
|
129
129
|
});
|
|
130
130
|
}));
|
|
131
|
-
var
|
|
132
|
-
service:
|
|
131
|
+
var node51 = makeLocationNode({
|
|
132
|
+
service: Service47,
|
|
133
133
|
layer: baseLayer,
|
|
134
|
-
deps: [FSUtil.node,
|
|
134
|
+
deps: [FSUtil.node, node76, node52]
|
|
135
135
|
});
|
|
136
136
|
|
|
137
|
-
export { FindInput2, ReadInput2,
|
|
137
|
+
export { FindInput2, ReadInput2, NotFoundError6, Content2, ListInput3, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event8, Service47, node51, exports_filesystem, Entry4, Match2, Submatch2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./bus-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info27,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info27 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -52,4 +52,4 @@ var encode2 = (provenance, replacement) => ({
|
|
|
52
52
|
var decode2 = (context) => Schema.decodeUnknownSync(messages)(context.messages);
|
|
53
53
|
var validate2 = (context) => Schema.decodeUnknownEffect(messages)(context.messages);
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { Info27, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./bus-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service72
|
|
6
|
+
} from "./bus-73z097ay.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service67
|
|
9
|
+
} from "./bus-7zgx3034.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service6
|
|
12
|
+
} from "./bus-2t9y4ena.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./bus-2a5m3afh.js";
|
|
16
16
|
import {
|
|
17
17
|
MEDIA_MIMES2,
|
|
18
18
|
BinaryFileError2,
|
|
@@ -23,26 +23,26 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Service5
|
|
27
|
+
} from "./bus-dn2g8ty9.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./bus-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input10,
|
|
36
|
+
Plugin: () => Plugin11,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
39
|
-
toModelContent: () =>
|
|
38
|
+
name: () => name10,
|
|
39
|
+
toModelContent: () => toModelContent5
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name10 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input10 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin11 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service5;
|
|
62
|
+
const access = yield* Service67;
|
|
63
|
+
const sessionInstructions = yield* Service6;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service72;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name10,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input10,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -112,7 +112,7 @@ var Plugin28 = {
|
|
|
112
112
|
return { output: result.content, path: result.path };
|
|
113
113
|
}).pipe(Effect.map((result) => ({
|
|
114
114
|
output: result.output,
|
|
115
|
-
content:
|
|
115
|
+
content: toModelContent5(result.path, input.offset, result.output),
|
|
116
116
|
metadata: { truncated: result.output.type === "file" ? false : result.output.truncated }
|
|
117
117
|
})), Effect.mapError((error) => {
|
|
118
118
|
if (error instanceof ToolFailure)
|
|
@@ -144,7 +144,7 @@ ${suggestions.join(`
|
|
|
144
144
|
});
|
|
145
145
|
})
|
|
146
146
|
};
|
|
147
|
-
var
|
|
147
|
+
var toModelContent5 = (path, offset, output) => {
|
|
148
148
|
if (output.type === "file" && output.encoding === "base64")
|
|
149
149
|
return [
|
|
150
150
|
{ type: "text", text: output.mime === "application/pdf" ? "PDF read successfully" : "Image read successfully" },
|
|
@@ -180,4 +180,4 @@ var toModelContent3 = (path, offset, output) => {
|
|
|
180
180
|
`);
|
|
181
181
|
};
|
|
182
182
|
|
|
183
|
-
export {
|
|
183
|
+
export { name10, Input10, Plugin11, toModelContent5, exports_read };
|