@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
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service79,
|
|
8
|
+
node83
|
|
9
|
+
} from "./location-lifecycle-7apps605.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service57,
|
|
12
|
+
node60
|
|
13
|
+
} from "./location-lifecycle-9egyhmwg.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/filesystem.ts
|
|
19
19
|
var exports_filesystem = {};
|
|
@@ -24,17 +24,17 @@ __export(exports_filesystem, {
|
|
|
24
24
|
DirectoryAccessDeniedError: () => DirectoryAccessDeniedError2,
|
|
25
25
|
DirectoryNotFoundError: () => DirectoryNotFoundError2,
|
|
26
26
|
Entry: () => Entry2,
|
|
27
|
-
Event: () =>
|
|
27
|
+
Event: () => Event10,
|
|
28
28
|
FileSystem: () => exports_filesystem,
|
|
29
29
|
FindInput: () => FindInput2,
|
|
30
30
|
GlobInput: () => GlobInput2,
|
|
31
31
|
GrepInput: () => GrepInput2,
|
|
32
32
|
Match: () => Match2,
|
|
33
|
-
NotFoundError: () =>
|
|
34
|
-
Service: () =>
|
|
33
|
+
NotFoundError: () => NotFoundError7,
|
|
34
|
+
Service: () => Service56,
|
|
35
35
|
Submatch: () => Submatch2,
|
|
36
36
|
Write: () => Write2,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node59
|
|
38
38
|
});
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import path from "path";
|
|
@@ -43,7 +43,7 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
43
43
|
import { Entry, FileSystem, FindInput as FindInput2, Write as Write2 } from "@opencode/schema/filesystem";
|
|
44
44
|
import { Entry as Entry2, Match as Match2, Submatch as Submatch2 } from "@opencode/schema/filesystem";
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class NotFoundError7 extends Schema.TaggedError()("FileSystem.NotFoundError", {
|
|
47
47
|
path: RelativePath2
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
@@ -92,14 +92,14 @@ class GrepInput2 extends Schema.Class("FileSystem.GrepInput")({
|
|
|
92
92
|
limit: Schema.optionalKey(PositiveInt2)
|
|
93
93
|
}) {
|
|
94
94
|
}
|
|
95
|
-
var
|
|
95
|
+
var Event10 = FileSystem.Event;
|
|
96
96
|
|
|
97
|
-
class
|
|
97
|
+
class Service56 extends Context.Service()("@opencode/FileSystem") {
|
|
98
98
|
}
|
|
99
|
-
var baseLayer = Layer.effect(
|
|
99
|
+
var baseLayer = Layer.effect(Service56, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
|
-
const location = yield*
|
|
102
|
-
const search = yield*
|
|
101
|
+
const location = yield* Service79;
|
|
102
|
+
const search = yield* Service57;
|
|
103
103
|
const root = location.workspaceID ? location.directory : yield* fs.realPath(location.directory).pipe(Effect.tap((real) => fs.access(real, { readable: true })), Effect.catch((cause) => {
|
|
104
104
|
if (cause.reason._tag === "NotFound")
|
|
105
105
|
return Effect.fail(new DirectoryNotFoundError2({ directory: location.directory, cause }));
|
|
@@ -109,22 +109,22 @@ var baseLayer = Layer.effect(Service41, Effect.gen(function* () {
|
|
|
109
109
|
}));
|
|
110
110
|
const resolve = Effect.fnUntraced(function* (input) {
|
|
111
111
|
if (input.includes("\x00"))
|
|
112
|
-
return yield* Effect.fail(new
|
|
112
|
+
return yield* Effect.fail(new NotFoundError7({ path: input }));
|
|
113
113
|
const absolute = path.resolve(location.directory, input);
|
|
114
114
|
if (!FSUtil.contains(location.directory, absolute))
|
|
115
|
-
return yield* Effect.fail(new
|
|
116
|
-
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
115
|
+
return yield* Effect.fail(new NotFoundError7({ path: input }));
|
|
116
|
+
const real = yield* fs.realPath(absolute).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError7({ path: input })), (_, error) => Effect.die(error)));
|
|
117
117
|
if (!FSUtil.contains(root, real))
|
|
118
|
-
return yield* Effect.fail(new
|
|
118
|
+
return yield* Effect.fail(new NotFoundError7({ path: input }));
|
|
119
119
|
return { absolute, real, directory: location.directory };
|
|
120
120
|
});
|
|
121
|
-
return
|
|
121
|
+
return Service56.of({
|
|
122
122
|
find: search.find,
|
|
123
123
|
read: Effect.fn("FileSystem.read")(function* (input) {
|
|
124
124
|
const target = yield* resolve(input.path);
|
|
125
|
-
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new
|
|
125
|
+
const info = yield* fs.stat(target.real).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(new NotFoundError7({ path: input.path })), (_, error) => Effect.die(error)));
|
|
126
126
|
if (info.type !== "File")
|
|
127
|
-
return yield* Effect.fail(new
|
|
127
|
+
return yield* Effect.fail(new NotFoundError7({ path: input.path }));
|
|
128
128
|
return {
|
|
129
129
|
mime: FSUtil.mimeType(target.real),
|
|
130
130
|
size: Number(info.size),
|
|
@@ -134,7 +134,7 @@ var baseLayer = Layer.effect(Service41, Effect.gen(function* () {
|
|
|
134
134
|
}),
|
|
135
135
|
list: Effect.fn("FileSystem.list")(function* (input = {}) {
|
|
136
136
|
const directory = path.resolve(location.directory, input.path ?? ".");
|
|
137
|
-
const missing = new
|
|
137
|
+
const missing = new NotFoundError7({ path: RelativePath2.make(input.path ?? ".") });
|
|
138
138
|
const info = yield* fs.stat(directory).pipe(Effect.catchReason("PlatformError", "NotFound", () => Effect.fail(missing), (_, error) => Effect.die(error)));
|
|
139
139
|
if (info.type !== "Directory")
|
|
140
140
|
return yield* missing;
|
|
@@ -158,10 +158,10 @@ var baseLayer = Layer.effect(Service41, Effect.gen(function* () {
|
|
|
158
158
|
})
|
|
159
159
|
});
|
|
160
160
|
}));
|
|
161
|
-
var
|
|
162
|
-
service:
|
|
161
|
+
var node59 = makeLocationNode({
|
|
162
|
+
service: Service56,
|
|
163
163
|
layer: baseLayer,
|
|
164
|
-
deps: [FSUtil.node,
|
|
164
|
+
deps: [FSUtil.node, node83, node60]
|
|
165
165
|
});
|
|
166
166
|
|
|
167
|
-
export { FindInput2, Write2,
|
|
167
|
+
export { FindInput2, Write2, NotFoundError7, DirectoryNotFoundError2, DirectoryAccessDeniedError2, Content2, DEFAULT_SEARCH_LIMIT2, DEFAULT_SEARCH_TIMEOUT_MS2, GlobInput2, GrepInput2, Event10, Service56, node59, exports_filesystem, Entry2, Match2, Submatch2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service79
|
|
6
|
+
} from "./location-lifecycle-7apps605.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service70
|
|
9
|
+
} from "./location-lifecycle-zprh8kn6.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service19
|
|
12
|
+
} from "./location-lifecycle-3x8v6y5r.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-hpg1pkwy.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/config/plugin/worktree.ts
|
|
21
21
|
var exports_worktree = {};
|
|
22
22
|
__export(exports_worktree, {
|
|
23
23
|
ConfigWorktreePlugin: () => exports_worktree,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin42
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
var
|
|
30
|
+
var Plugin42 = define({
|
|
31
31
|
id: "opencode.config.worktree",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const location = yield*
|
|
33
|
+
const config = yield* Service70;
|
|
34
|
+
const location = yield* Service79;
|
|
35
35
|
const global = yield* Global.Service;
|
|
36
|
-
const worktrees = yield*
|
|
36
|
+
const worktrees = yield* Service19;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, worktrees.reload());
|
|
38
38
|
yield* worktrees.transform((editor) => {
|
|
39
39
|
for (const entry of loaded.entries) {
|
|
@@ -48,4 +48,4 @@ var Plugin46 = define({
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Plugin42, exports_worktree };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service85
|
|
3
|
-
} from "./tool-sar0kh51.js";
|
|
4
1
|
import {
|
|
5
2
|
Service82
|
|
6
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-jpt0aj2d.js";
|
|
4
|
+
import {
|
|
5
|
+
Service79
|
|
6
|
+
} from "./location-lifecycle-7apps605.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
9
|
Service39
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-lifecycle-kz91psg5.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
16
|
var exports_command = {};
|
|
17
17
|
__export(exports_command, {
|
|
18
18
|
CommandPlugin: () => exports_command,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin22
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,12 +193,12 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin22 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
199
|
+
const location = yield* Service79;
|
|
200
200
|
const mcp = yield* Service39;
|
|
201
|
-
const bus = yield*
|
|
201
|
+
const bus = yield* Service82;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
204
204
|
loaded.prompts = yield* mcp.prompts();
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin22, exports_command };
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./location-lifecycle-jpt0aj2d.js";
|
|
5
5
|
import {
|
|
6
6
|
parse4,
|
|
7
7
|
parseRemote2,
|
|
8
8
|
validateBranch3,
|
|
9
9
|
isRemote2,
|
|
10
10
|
cachePath2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-lifecycle-bstexjd6.js";
|
|
12
12
|
import {
|
|
13
13
|
AbsolutePath2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-lifecycle-z5v4ffb3.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
16
|
+
Service61,
|
|
17
|
+
node64
|
|
18
|
+
} from "./location-lifecycle-fmkz8025.js";
|
|
19
19
|
import {
|
|
20
20
|
changes2,
|
|
21
21
|
create3
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./location-lifecycle-204s3925.js";
|
|
23
23
|
import {
|
|
24
24
|
__export
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
26
26
|
|
|
27
27
|
// src/reference.ts
|
|
28
28
|
var exports_reference2 = {};
|
|
@@ -32,9 +32,9 @@ __export(exports_reference2, {
|
|
|
32
32
|
Info: () => Info12,
|
|
33
33
|
LocalSource: () => LocalSource2,
|
|
34
34
|
Reference: () => exports_reference2,
|
|
35
|
-
Service: () =>
|
|
35
|
+
Service: () => Service60,
|
|
36
36
|
Source: () => Source4,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node63
|
|
38
38
|
});
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
@@ -46,12 +46,12 @@ var GitSource2 = Reference.GitSource;
|
|
|
46
46
|
var Source4 = Reference.Source;
|
|
47
47
|
var Info12 = Reference.Info;
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Service60 extends Context.Service()("@opencode/Reference") {
|
|
50
50
|
}
|
|
51
|
-
var layer = Layer.effect(
|
|
51
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
52
52
|
const global = yield* Global.Service;
|
|
53
|
-
const bus = yield*
|
|
54
|
-
const cache = yield*
|
|
53
|
+
const bus = yield* Service82;
|
|
54
|
+
const cache = yield* Service61;
|
|
55
55
|
const scope = yield* Scope.Scope;
|
|
56
56
|
const list = (data = state.get()) => Array.from(data.sources).flatMap(([name, source]) => {
|
|
57
57
|
const info = {
|
|
@@ -105,7 +105,7 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
107
|
yield* Effect.sleep("1 hour").pipe(Effect.andThen(refresh()), Effect.forever, Effect.forkScoped);
|
|
108
|
-
return
|
|
108
|
+
return Service60.of({
|
|
109
109
|
transform: state.transform,
|
|
110
110
|
reload: state.reload,
|
|
111
111
|
list: Effect.fn("Reference.list")(function* () {
|
|
@@ -113,10 +113,10 @@ var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
|
113
113
|
})
|
|
114
114
|
});
|
|
115
115
|
}));
|
|
116
|
-
var
|
|
117
|
-
service:
|
|
116
|
+
var node63 = makeLocationNode({
|
|
117
|
+
service: Service60,
|
|
118
118
|
layer,
|
|
119
|
-
deps: [Global.node,
|
|
119
|
+
deps: [Global.node, node86, node64]
|
|
120
120
|
});
|
|
121
121
|
|
|
122
|
-
export { LocalSource2, GitSource2, Source4, Info12,
|
|
122
|
+
export { LocalSource2, GitSource2, Source4, Info12, Service60, node63, exports_reference2, Event11 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./location-lifecycle-jpt0aj2d.js";
|
|
5
5
|
import {
|
|
6
6
|
changes2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./location-lifecycle-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
__export
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
12
12
|
|
|
13
13
|
// src/command.ts
|
|
14
14
|
var exports_command4 = {};
|
|
15
15
|
__export(exports_command4, {
|
|
16
16
|
Command: () => exports_command4,
|
|
17
|
-
Event: () =>
|
|
17
|
+
Event: () => Event9,
|
|
18
18
|
ExecutionError: () => ExecutionError2,
|
|
19
19
|
Info: () => Info11,
|
|
20
20
|
NotFoundError: () => NotFoundError6,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service50,
|
|
22
22
|
layer: () => layer22,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node52
|
|
24
24
|
});
|
|
25
25
|
import { Command } from "@opencode/schema/command";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
28
|
-
import { Event as
|
|
28
|
+
import { Event as Event9 } from "@opencode/schema/command";
|
|
29
29
|
var Info11 = Command.Info;
|
|
30
30
|
|
|
31
31
|
class NotFoundError6 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
@@ -40,10 +40,10 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service50 extends Context.Service()("@opencode/Command") {
|
|
44
44
|
}
|
|
45
|
-
var layer22 = Layer.effect(
|
|
46
|
-
const bus = yield*
|
|
45
|
+
var layer22 = Layer.effect(Service50, Effect.gen(function* () {
|
|
46
|
+
const bus = yield* Service82;
|
|
47
47
|
const info = (definition) => Info11.make({
|
|
48
48
|
name: definition.name,
|
|
49
49
|
description: definition.description
|
|
@@ -56,7 +56,7 @@ var layer22 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
56
56
|
}),
|
|
57
57
|
notify: changes2((commands) => Array.from(commands.values(), info), () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid))
|
|
58
58
|
});
|
|
59
|
-
return
|
|
59
|
+
return Service50.of({
|
|
60
60
|
reload: state.reload,
|
|
61
61
|
transform: state.transform,
|
|
62
62
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -72,10 +72,10 @@ var layer22 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
72
72
|
})
|
|
73
73
|
});
|
|
74
74
|
}));
|
|
75
|
-
var
|
|
76
|
-
service:
|
|
75
|
+
var node52 = makeLocationNode({
|
|
76
|
+
service: Service50,
|
|
77
77
|
layer: layer22,
|
|
78
|
-
deps: [
|
|
78
|
+
deps: [node86]
|
|
79
79
|
});
|
|
80
80
|
function errorMessage(error) {
|
|
81
81
|
if (error instanceof Error)
|
|
@@ -87,4 +87,4 @@ function errorMessage(error) {
|
|
|
87
87
|
return "Command execution failed";
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
export { Info11, NotFoundError6, ExecutionError2,
|
|
90
|
+
export { Info11, NotFoundError6, ExecutionError2, Service50, layer22, node52, exports_command4, Event9 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service58,
|
|
3
|
+
node61
|
|
4
|
+
} from "./location-lifecycle-xvsw1s9a.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service27,
|
|
7
|
+
node30
|
|
8
|
+
} from "./location-lifecycle-13dfg3g1.js";
|
|
9
9
|
import {
|
|
10
10
|
text2,
|
|
11
11
|
deliver2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./location-lifecycle-sqjzf8x2.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/subagent-job.ts
|
|
18
18
|
var exports_subagent_job = {};
|
|
19
19
|
__export(exports_subagent_job, {
|
|
20
|
-
Service: () =>
|
|
20
|
+
Service: () => Service10,
|
|
21
21
|
SubagentJob: () => exports_subagent_job,
|
|
22
|
-
node: () =>
|
|
22
|
+
node: () => node12
|
|
23
23
|
});
|
|
24
24
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
25
25
|
import { Node } from "@opencode/util/effect/app-node";
|
|
26
|
-
class
|
|
26
|
+
class Service10 extends Context.Service()("@opencode/SubagentJob") {
|
|
27
27
|
}
|
|
28
28
|
var make = Effect.gen(function* () {
|
|
29
|
-
const sessions = yield*
|
|
30
|
-
const jobs = yield*
|
|
29
|
+
const sessions = yield* Service27;
|
|
30
|
+
const jobs = yield* Service58;
|
|
31
31
|
const scope = yield* Scope.Scope;
|
|
32
32
|
const context = yield* Effect.context();
|
|
33
33
|
const notifications = new Set;
|
|
@@ -42,7 +42,7 @@ var make = Effect.gen(function* () {
|
|
|
42
42
|
yield* deliver2(sessions, jobs, { ...info, recovery });
|
|
43
43
|
}).pipe(Effect.ensuring(Effect.sync(() => notifications.delete(key))), Effect.forkIn(scope, { startImmediately: true }), Effect.setContext(context));
|
|
44
44
|
});
|
|
45
|
-
return
|
|
45
|
+
return Service10.of({
|
|
46
46
|
start: (recovery) => jobs.start({
|
|
47
47
|
id: recovery.childSessionID,
|
|
48
48
|
type: "subagent",
|
|
@@ -64,10 +64,10 @@ var make = Effect.gen(function* () {
|
|
|
64
64
|
notify
|
|
65
65
|
});
|
|
66
66
|
});
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
69
|
-
layer: Layer.effect(
|
|
70
|
-
deps: [
|
|
67
|
+
var node12 = Node.makeGlobalNode({
|
|
68
|
+
service: Service10,
|
|
69
|
+
layer: Layer.effect(Service10, make),
|
|
70
|
+
deps: [node30, node61]
|
|
71
71
|
});
|
|
72
72
|
|
|
73
|
-
export {
|
|
73
|
+
export { Service10, node12, exports_subagent_job };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-lifecycle-jze0r7bz.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -1,65 +1,65 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service82,
|
|
3
|
+
node86
|
|
4
|
+
} from "./location-lifecycle-jpt0aj2d.js";
|
|
5
5
|
import {
|
|
6
6
|
lazy2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-lifecycle-88xbtdfr.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service79,
|
|
10
|
+
node83
|
|
11
|
+
} from "./location-lifecycle-7apps605.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
Service54,
|
|
14
14
|
login2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
node57
|
|
16
|
+
} from "./location-lifecycle-z395qepn.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./location-lifecycle-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
|
-
CreateInput: () =>
|
|
25
|
-
Event: () =>
|
|
24
|
+
CreateInput: () => CreateInput3,
|
|
25
|
+
Event: () => Event6,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
|
-
ID: () =>
|
|
28
|
-
Info: () =>
|
|
29
|
-
NotFoundError: () =>
|
|
27
|
+
ID: () => ID4,
|
|
28
|
+
Info: () => Info7,
|
|
29
|
+
NotFoundError: () => NotFoundError3,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service23,
|
|
32
32
|
UpdateInput: () => UpdateInput2,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node26
|
|
34
34
|
});
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event6 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
42
|
+
var ID4 = Pty.ID;
|
|
43
|
+
var Info7 = Pty.Info;
|
|
44
|
+
var CreateInput3 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
ptyID:
|
|
47
|
+
class NotFoundError3 extends Schema.TaggedError()("Pty.NotFoundError", {
|
|
48
|
+
ptyID: ID4
|
|
49
49
|
}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ExitedError2 extends Schema.TaggedError()("Pty.ExitedError", {
|
|
53
|
-
ptyID:
|
|
53
|
+
ptyID: ID4
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service23 extends Context.Service()("@opencode/Pty") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
60
|
-
const bus = yield*
|
|
61
|
-
const location = yield*
|
|
62
|
-
const shell = yield*
|
|
59
|
+
var layer = Layer.effect(Service23, Effect.gen(function* () {
|
|
60
|
+
const bus = yield* Service82;
|
|
61
|
+
const location = yield* Service79;
|
|
62
|
+
const shell = yield* Service54;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -96,7 +96,7 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
96
96
|
const requireSession = Effect.fn("Pty.requireSession")(function* (id) {
|
|
97
97
|
const session = sessions.get(id);
|
|
98
98
|
if (!session)
|
|
99
|
-
return yield* new
|
|
99
|
+
return yield* new NotFoundError3({ ptyID: id });
|
|
100
100
|
return session;
|
|
101
101
|
});
|
|
102
102
|
const removeSession = Effect.fnUntraced(function* (id) {
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
122
122
|
return (yield* requireSession(id)).info;
|
|
123
123
|
});
|
|
124
124
|
const create = Effect.fn("Pty.create")(function* (input) {
|
|
125
|
-
const id =
|
|
125
|
+
const id = ID4.ascending();
|
|
126
126
|
const command = input.command || (yield* shell.resolve({ priority: "config" }));
|
|
127
127
|
const args = login2(command) ? [...input.args ?? [], "-l"] : [...input.args ?? []];
|
|
128
128
|
const cwd = input.cwd || location.directory;
|
|
@@ -267,12 +267,12 @@ var layer = Layer.effect(Service14, Effect.gen(function* () {
|
|
|
267
267
|
}
|
|
268
268
|
};
|
|
269
269
|
});
|
|
270
|
-
return
|
|
270
|
+
return Service23.of({ list, get, create, update, remove, write, attach });
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node26 = makeLocationNode({
|
|
273
|
+
service: Service23,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [
|
|
275
|
+
deps: [node86, node83, node57]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export {
|
|
278
|
+
export { ID4, Info7, CreateInput3, UpdateInput2, NotFoundError3, ExitedError2, Service23, node26, exports_pty, Event6 };
|