@opencode/core 2.0.1 → 2.0.3
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 +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/catalog.js +82 -82
- package/dist/chunks/{repository-rhjbct0v.js → mime-02a7j1yb.js} +4 -4
- package/dist/chunks/{repository-c9wtqnwj.js → mime-05gwmh6x.js} +11 -11
- package/dist/chunks/{repository-fmvngk0a.js → mime-07jv6yz6.js} +29 -29
- package/dist/chunks/{repository-mw6spqsr.js → mime-0e70zyzp.js} +17 -17
- package/dist/chunks/{repository-q8rd9qhs.js → mime-0f9vejxt.js} +28 -28
- package/dist/chunks/{repository-fmpkkhtn.js → mime-0gc96ev3.js} +18 -18
- package/dist/chunks/{repository-18e56dsp.js → mime-0gr7cw0d.js} +4 -4
- package/dist/chunks/{repository-nxamnhdf.js → mime-0kcg9p5c.js} +10 -10
- package/dist/chunks/{repository-evxnsm19.js → mime-0mtmygp7.js} +15 -15
- package/dist/chunks/{repository-3seenrp7.js → mime-0nhe5bzg.js} +9 -9
- package/dist/chunks/{repository-0paq2nw3.js → mime-0paq2nw3.js} +1 -1
- package/dist/chunks/{repository-0q0f95c6.js → mime-0q0f95c6.js} +1 -1
- package/dist/chunks/{repository-27wgnz1z.js → mime-0x7565bv.js} +13 -13
- package/dist/chunks/{repository-a5h5qkjp.js → mime-0xcwyxas.js} +33 -33
- package/dist/chunks/{repository-r94mrtfv.js → mime-1ajjaskr.js} +20 -20
- package/dist/chunks/{repository-1bbkgx8g.js → mime-1bbkgx8g.js} +1 -1
- package/dist/chunks/{repository-1dazxqgg.js → mime-1dazxqgg.js} +2 -2
- package/dist/chunks/{repository-b0sf2pns.js → mime-1drzz6a4.js} +6 -6
- package/dist/chunks/{repository-ehajtz8g.js → mime-1h4ppwsj.js} +11 -11
- package/dist/chunks/{repository-yahs3f01.js → mime-1khmrxma.js} +46 -46
- package/dist/chunks/{repository-1tjfkw5v.js → mime-1s7fk0j0.js} +25 -25
- package/dist/chunks/{repository-56gdpj1q.js → mime-1ygqh575.js} +9 -9
- package/dist/chunks/{repository-21r38tys.js → mime-21r38tys.js} +1 -1
- package/dist/chunks/{repository-2402vzrj.js → mime-2402vzrj.js} +1 -1
- package/dist/chunks/{repository-a3n1dpj2.js → mime-2419kjk7.js} +9 -9
- package/dist/chunks/{repository-9yhr46n3.js → mime-26m96hf0.js} +22 -22
- package/dist/chunks/{repository-4emgtgzt.js → mime-27cjkq2h.js} +15 -15
- package/dist/chunks/{repository-mqsc2h20.js → mime-29seat8c.js} +24 -24
- package/dist/chunks/{repository-z63w68vq.js → mime-29x78va6.js} +6 -6
- package/dist/chunks/{repository-2a5m3afh.js → mime-2a5m3afh.js} +1 -1
- package/dist/chunks/{repository-wxpch4dk.js → mime-2b4vkxet.js} +30 -30
- package/dist/chunks/{repository-2cgm8dc1.js → mime-2ff821eq.js} +11 -11
- package/dist/chunks/{repository-ksjan0t5.js → mime-2h1k6vak.js} +13 -13
- package/dist/chunks/{repository-g9cr3d5v.js → mime-2magtmd2.js} +4 -4
- package/dist/chunks/{repository-hrncarcf.js → mime-2t5kqt1k.js} +1 -1
- package/dist/chunks/{repository-ext3js1z.js → mime-2vr1hr03.js} +18 -18
- package/dist/chunks/{repository-me4pxbk2.js → mime-2zdv8wt0.js} +30 -30
- package/dist/chunks/{repository-36564s8r.js → mime-31je9t57.js} +29 -29
- package/dist/chunks/{repository-kkdm9ajw.js → mime-348n1k1m.js} +3 -3
- package/dist/chunks/{repository-y973e7aq.js → mime-34f33jfe.js} +13 -13
- package/dist/chunks/{repository-p6v0vyws.js → mime-3ac6cy74.js} +20 -20
- package/dist/chunks/{repository-cq37gk0t.js → mime-3amprz0f.js} +4 -4
- package/dist/chunks/{repository-20q8k894.js → mime-3ax7whkq.js} +9 -9
- package/dist/chunks/{repository-ezbaq0hv.js → mime-3bca72pz.js} +4 -4
- package/dist/chunks/{repository-ppq9etn0.js → mime-3c5r44ez.js} +37 -37
- package/dist/chunks/mime-3es18rb9.js +76 -0
- package/dist/chunks/{repository-gdvy8fx6.js → mime-3fc6dm20.js} +4 -4
- package/dist/chunks/{repository-3hepkmqq.js → mime-3hepkmqq.js} +1 -1
- package/dist/chunks/{repository-seps633m.js → mime-3k5rp9zq.js} +26 -26
- package/dist/chunks/{repository-ky16kd9n.js → mime-3mp8pt0x.js} +12 -12
- package/dist/chunks/{repository-3smtnn6g.js → mime-3smtnn6g.js} +1 -1
- package/dist/chunks/{repository-3tvqynh2.js → mime-3tvqynh2.js} +1 -1
- package/dist/chunks/{repository-x6rcf4cj.js → mime-3wjgak91.js} +16 -16
- package/dist/chunks/{repository-3mdgf1e2.js → mime-3xz6hyac.js} +22 -22
- package/dist/chunks/{repository-ztwfyng4.js → mime-3zf9b344.js} +4 -4
- package/dist/chunks/{repository-csp720wb.js → mime-3zpd0x8a.js} +25 -25
- package/dist/chunks/{repository-h90k734v.js → mime-4e18mqjd.js} +9 -9
- package/dist/chunks/{repository-0xfnng1h.js → mime-4ey0fprp.js} +15 -15
- package/dist/chunks/{repository-zr3d0gxg.js → mime-4nncm24z.js} +28 -28
- package/dist/chunks/{repository-gxgjkd0x.js → mime-4w46mhc5.js} +13 -13
- package/dist/chunks/{repository-3yetcf2r.js → mime-53c48grp.js} +50 -50
- package/dist/chunks/{repository-mhbk2b8a.js → mime-56yeekyc.js} +13 -13
- package/dist/chunks/{repository-qkrnz1pz.js → mime-5ahh7ntp.js} +5 -5
- package/dist/chunks/{repository-5daktx2q.js → mime-5daktx2q.js} +1 -1
- package/dist/chunks/{repository-g0dr00md.js → mime-5gzmb6dp.js} +32 -32
- package/dist/chunks/{repository-8vg4n516.js → mime-5hf3fyzy.js} +20 -20
- package/dist/chunks/{repository-eprkdeyt.js → mime-5psmcwnn.js} +21 -21
- package/dist/chunks/{repository-5t3nmthw.js → mime-5t3nmthw.js} +2 -2
- package/dist/chunks/{repository-669tq793.js → mime-669tq793.js} +1 -1
- package/dist/chunks/{repository-r2dfp6se.js → mime-66v7x5gy.js} +35 -35
- package/dist/chunks/{repository-q8bcy8ws.js → mime-6b2vme4h.js} +2 -2
- package/dist/chunks/{repository-jby58kjs.js → mime-6ean1s1z.js} +11 -11
- package/dist/chunks/{repository-g8d3gcyj.js → mime-6hh8tjw2.js} +7 -7
- package/dist/chunks/{repository-6msgmcgs.js → mime-6msgmcgs.js} +1 -1
- package/dist/chunks/{repository-smnv2tch.js → mime-6q31zrbr.js} +91 -42
- package/dist/chunks/{repository-58e8mpmb.js → mime-6vz9gfbd.js} +13 -13
- package/dist/chunks/{repository-71q4at8m.js → mime-71q4at8m.js} +1 -1
- package/dist/chunks/{repository-1j4qb6e1.js → mime-771dt0vh.js} +8 -8
- package/dist/chunks/{repository-w75dnx21.js → mime-77hmfzz5.js} +43 -43
- package/dist/chunks/{repository-bbarxbyb.js → mime-79w795fr.js} +1 -1
- package/dist/chunks/{repository-0k3t14ts.js → mime-7assmfkm.js} +7 -7
- package/dist/chunks/{repository-7bmhse3q.js → mime-7bmhse3q.js} +1 -1
- package/dist/chunks/{repository-2k8khapm.js → mime-7dqw4kz8.js} +5 -5
- package/dist/chunks/{repository-j5xt7epv.js → mime-7rntk513.js} +18 -18
- package/dist/chunks/{repository-2v08kgv1.js → mime-824vcv1n.js} +9 -9
- package/dist/chunks/{repository-y5pstp70.js → mime-83qrv3hw.js} +6 -6
- package/dist/chunks/{repository-r14cnnrw.js → mime-8815nq26.js} +8 -8
- package/dist/chunks/{repository-8d7r5vzw.js → mime-8d7r5vzw.js} +1 -1
- package/dist/chunks/{repository-h4e6z68e.js → mime-8fjx57rb.js} +13 -13
- package/dist/chunks/{repository-t59s3hhv.js → mime-8kdf3zjj.js} +32 -32
- package/dist/chunks/{repository-4e540xxx.js → mime-8mfdap3f.js} +8 -8
- package/dist/chunks/{repository-8p4f9s12.js → mime-8p4f9s12.js} +2 -2
- package/dist/chunks/{repository-nrk5vjbf.js → mime-8ryk0bb9.js} +5 -5
- package/dist/chunks/{repository-fv2d43cy.js → mime-8z221vkh.js} +18 -18
- package/dist/chunks/{repository-yjknk9j9.js → mime-95wcbadv.js} +3 -3
- package/dist/chunks/{repository-ct93djtc.js → mime-9e5xqeqt.js} +14 -14
- package/dist/chunks/mime-9jxymrt4.js +247 -0
- package/dist/chunks/{repository-v3v5frkk.js → mime-9k690w47.js} +17 -17
- package/dist/chunks/{repository-w4wc2211.js → mime-9nydp2f6.js} +32 -32
- package/dist/chunks/{repository-mgx963cj.js → mime-9pm6y0s1.js} +8 -8
- package/dist/chunks/{repository-8db04et3.js → mime-9xrpzr2m.js} +8 -8
- package/dist/chunks/{repository-47vy4edm.js → mime-9zqg8qpq.js} +5 -5
- package/dist/chunks/{repository-d75w7jnc.js → mime-a0amxwx8.js} +17 -17
- package/dist/chunks/{repository-xjmr3883.js → mime-a13hqwzr.js} +6 -6
- package/dist/chunks/{repository-a1bz86dw.js → mime-a1bz86dw.js} +3 -3
- package/dist/chunks/{repository-t0x5rdq8.js → mime-a5gt7g2r.js} +9 -9
- package/dist/chunks/{repository-aaet6srn.js → mime-aaet6srn.js} +2 -2
- package/dist/chunks/{repository-tat7nwhe.js → mime-ak7sjf8k.js} +12 -12
- package/dist/chunks/{repository-pvp1cs2e.js → mime-ar6rwxgq.js} +16 -16
- package/dist/chunks/mime-b1jrztkg.js +26 -0
- package/dist/chunks/{repository-zc2xj3qj.js → mime-b2vqmjat.js} +1 -1
- package/dist/chunks/{repository-pn143qvt.js → mime-b315ag2q.js} +17 -17
- package/dist/chunks/{repository-b6gygkdw.js → mime-b6gygkdw.js} +2 -2
- package/dist/chunks/{repository-59j62b79.js → mime-b8cmw211.js} +11 -11
- package/dist/chunks/{repository-6wjjjhy6.js → mime-bawj3v5d.js} +11 -11
- package/dist/chunks/{repository-ztky2hbm.js → mime-bb4ztexx.js} +18 -18
- package/dist/chunks/{repository-msq0jde0.js → mime-bccb6npm.js} +4 -4
- package/dist/chunks/{repository-8m31s27t.js → mime-bhp9fn5h.js} +11 -11
- package/dist/chunks/{repository-5b88mxz1.js → mime-bjbqe5j4.js} +7 -7
- package/dist/chunks/{repository-213v9py0.js → mime-bst9cd68.js} +6 -6
- package/dist/chunks/{repository-dj9sq318.js → mime-c78bbtc9.js} +5 -5
- package/dist/chunks/{repository-g8mks886.js → mime-caw866h7.js} +11 -11
- package/dist/chunks/{repository-cfpkc3c9.js → mime-cfpkc3c9.js} +2 -2
- package/dist/chunks/{repository-cmwkp3r5.js → mime-cmwkp3r5.js} +1 -1
- package/dist/chunks/{repository-g4kbd5hn.js → mime-crfhge7d.js} +21 -21
- package/dist/chunks/{repository-de42ff3x.js → mime-cvt7tjwh.js} +36 -36
- package/dist/chunks/{repository-hj2f0bzq.js → mime-cx2dw8ng.js} +7 -7
- package/dist/chunks/{repository-h71w788e.js → mime-depwzj9d.js} +9 -9
- package/dist/chunks/{repository-10jtetaj.js → mime-dg5bcj4q.js} +6 -6
- package/dist/chunks/{repository-4y66k410.js → mime-e5nv3ght.js} +12 -5
- package/dist/chunks/{repository-cabt264k.js → mime-efp1nzpe.js} +14 -14
- package/dist/chunks/{repository-tx9qvpbt.js → mime-eraanh1f.js} +2 -2
- package/dist/chunks/{repository-2yv9jfkc.js → mime-esaayfhr.js} +10 -10
- package/dist/chunks/{repository-etq0c3wd.js → mime-etq0c3wd.js} +1 -1
- package/dist/chunks/{repository-ff9w6xrb.js → mime-ex0mzm10.js} +9 -9
- package/dist/chunks/{repository-5n0sh9d6.js → mime-ex105f0g.js} +7 -7
- package/dist/chunks/{repository-r8xr0va3.js → mime-f2n192rq.js} +4 -4
- package/dist/chunks/{repository-f828m53h.js → mime-f828m53h.js} +2 -2
- package/dist/chunks/{repository-c13f7gjw.js → mime-fap8rsc6.js} +34 -34
- package/dist/chunks/{repository-sgk3431w.js → mime-fce3k32g.js} +25 -25
- package/dist/chunks/{repository-fxbjtjnd.js → mime-fxbjtjnd.js} +1 -1
- package/dist/chunks/{repository-haj0byqn.js → mime-g04bxtcn.js} +4 -4
- package/dist/chunks/{repository-84czwvzw.js → mime-g6878fex.js} +16 -16
- package/dist/chunks/{repository-rsbh8q26.js → mime-g7jyz10z.js} +48 -48
- package/dist/chunks/{repository-yz39bey7.js → mime-g7nm1tr2.js} +15 -15
- package/dist/chunks/{repository-3x8gcmrs.js → mime-ga6hqhxm.js} +9 -9
- package/dist/chunks/{repository-gd4qta3r.js → mime-gd4qta3r.js} +1 -1
- package/dist/chunks/{repository-x384g1hs.js → mime-ggch0ev5.js} +15 -15
- package/dist/chunks/{repository-8gs4w1fy.js → mime-gmw5hd0s.js} +31 -31
- package/dist/chunks/{repository-rg2zvvyz.js → mime-gnq13918.js} +11 -11
- package/dist/chunks/{repository-p33ejz0k.js → mime-gqrjg9m0.js} +2 -1
- package/dist/chunks/{repository-8c7y8dn0.js → mime-gqrsst1j.js} +5 -5
- package/dist/chunks/{repository-8gxqpgph.js → mime-gst7axd9.js} +4 -4
- package/dist/chunks/{repository-sksn9mf1.js → mime-gwk6svk5.js} +9 -9
- package/dist/chunks/{repository-h03wrkyp.js → mime-h03wrkyp.js} +2 -2
- package/dist/chunks/{repository-h6vf3j39.js → mime-h6vf3j39.js} +1 -1
- package/dist/chunks/mime-h7v0c4h9.js +97 -0
- package/dist/chunks/{repository-b5n11jz6.js → mime-hdrc7pzh.js} +27 -27
- package/dist/chunks/{repository-qrj9d2ct.js → mime-hf6kd63r.js} +19 -19
- package/dist/chunks/{repository-bejabbw1.js → mime-hk1cyxmr.js} +50 -45
- package/dist/chunks/{repository-w0cvk6jr.js → mime-hkgwg6cc.js} +20 -20
- package/dist/chunks/{repository-a8ygtzbq.js → mime-hkjvptd8.js} +14 -14
- package/dist/chunks/{repository-0r7yqxbf.js → mime-hnr5yq9h.js} +5 -5
- package/dist/chunks/{repository-jzksghxf.js → mime-hxnftcv1.js} +30 -30
- package/dist/chunks/{repository-0k7wafs3.js → mime-j0xvhg4t.js} +26 -26
- package/dist/chunks/{repository-j4z2qnee.js → mime-j1tqpjge.js} +11 -11
- package/dist/chunks/{repository-j56e64zr.js → mime-j56e64zr.js} +1 -1
- package/dist/chunks/{repository-paphc93g.js → mime-j935v87r.js} +2 -2
- package/dist/chunks/{repository-1g6ktzxp.js → mime-jg33m14x.js} +46 -46
- package/dist/chunks/{repository-rgmexsye.js → mime-jq13afhk.js} +13 -13
- package/dist/chunks/{repository-pwf15mvc.js → mime-js4jadbf.js} +4 -4
- package/dist/chunks/{repository-19c2b9rb.js → mime-jvw2nnm0.js} +11 -11
- package/dist/chunks/{repository-72ds7gf6.js → mime-jwttd70a.js} +32 -32
- package/dist/chunks/{repository-h0gkjmvb.js → mime-jzp1tdep.js} +13 -13
- package/dist/chunks/{repository-h1rn3ct5.js → mime-k12bwzmm.js} +91 -91
- package/dist/chunks/{repository-kg06axw8.js → mime-kg06axw8.js} +1 -1
- package/dist/chunks/{repository-t2x602yk.js → mime-kghzffp5.js} +19 -19
- package/dist/chunks/{repository-gtm8txn9.js → mime-kxmcqd0q.js} +26 -26
- package/dist/chunks/{repository-b09hzw3k.js → mime-ky3seynh.js} +2 -2
- package/dist/chunks/{repository-m9w0rfyh.js → mime-m9w0rfyh.js} +1 -1
- package/dist/chunks/{repository-s2t8c8fj.js → mime-mkgf31e5.js} +4 -4
- package/dist/chunks/{repository-1gnhqkth.js → mime-mr645x8e.js} +63 -53
- package/dist/chunks/{repository-qfmvv2sm.js → mime-n0ta87th.js} +3 -3
- package/dist/chunks/{repository-5y5h33xd.js → mime-n6wnmytb.js} +8 -8
- package/dist/chunks/{repository-87v8z91d.js → mime-n9pgkqx1.js} +11 -11
- package/dist/chunks/{repository-hjt4xg1x.js → mime-nhy5jxhy.js} +4 -4
- package/dist/chunks/{repository-02dev0ez.js → mime-nxa5rjjz.js} +13 -13
- package/dist/chunks/{repository-penaav09.js → mime-nxrdkmqf.js} +26 -26
- package/dist/chunks/{repository-drknmmyh.js → mime-nzwzy72p.js} +9 -9
- package/dist/chunks/mime-p2h6zvwc.js +18 -0
- package/dist/chunks/{repository-fcgysgr5.js → mime-p7ks6zyz.js} +11 -11
- package/dist/chunks/{repository-z0xnky3q.js → mime-pcedqjxk.js} +27 -27
- package/dist/chunks/{repository-jwjk52g2.js → mime-pck3w1ab.js} +4 -4
- package/dist/chunks/{repository-eztf1wzg.js → mime-pd4btrn7.js} +1 -1
- package/dist/chunks/{repository-j5346eb1.js → mime-pe4b2cf4.js} +160 -160
- package/dist/chunks/{repository-pjvnvgmy.js → mime-pjvnvgmy.js} +1 -1
- package/dist/chunks/{repository-pknna89w.js → mime-pknna89w.js} +1 -1
- package/dist/chunks/{repository-m2d0j7c0.js → mime-pnv527nz.js} +9 -9
- package/dist/chunks/{repository-fmdgzt8c.js → mime-q2fb3trg.js} +41 -41
- package/dist/chunks/{repository-88zp0tbv.js → mime-q2yns0nb.js} +10 -10
- package/dist/chunks/{repository-j38hs89b.js → mime-q4w5h7cm.js} +31 -25
- package/dist/chunks/{repository-y1b098n8.js → mime-q6sszjbn.js} +9 -9
- package/dist/chunks/{repository-1bvekr7f.js → mime-qfzde7bh.js} +6 -6
- package/dist/chunks/{repository-he3792rk.js → mime-qhvmp4yv.js} +33 -33
- package/dist/chunks/{repository-za4pw5w1.js → mime-qs001aqx.js} +11 -11
- package/dist/chunks/{repository-qsdy395h.js → mime-qsdy395h.js} +1 -1
- package/dist/chunks/{repository-6tpt9h9q.js → mime-qvkfnpew.js} +60 -60
- package/dist/chunks/{repository-my7gf51c.js → mime-r27v71mw.js} +67 -67
- package/dist/chunks/{repository-j83byb14.js → mime-r98e92ep.js} +4 -4
- package/dist/chunks/{repository-r9mregkx.js → mime-r9mregkx.js} +2 -2
- package/dist/chunks/{repository-bkhh0yw4.js → mime-raczhzft.js} +21 -21
- package/dist/chunks/{repository-hqjg1cx1.js → mime-rk0rec3h.js} +9 -9
- package/dist/chunks/{repository-51cmmk6m.js → mime-rme0s8je.js} +115 -93
- package/dist/chunks/{repository-r33ff4dw.js → mime-rph3zd4r.js} +6 -6
- package/dist/chunks/{repository-fmykz272.js → mime-rpqc7xtd.js} +7 -7
- package/dist/chunks/{repository-w4axh9wz.js → mime-rqcbxq1a.js} +8 -8
- package/dist/chunks/{repository-xp6wb0v9.js → mime-rvw86qrh.js} +25 -25
- package/dist/chunks/{repository-aa4x36r7.js → mime-s2azsgc2.js} +47 -47
- package/dist/chunks/{repository-yrznvahk.js → mime-s4enseaf.js} +2 -2
- package/dist/chunks/{repository-0zkv00cg.js → mime-s6khr2z3.js} +25 -25
- package/dist/chunks/{repository-zdwyj9y5.js → mime-s74jw2kt.js} +36 -36
- package/dist/chunks/{repository-3tamc9js.js → mime-s957sxhe.js} +28 -28
- package/dist/chunks/{repository-cg1ew3t4.js → mime-sc497s7j.js} +3 -3
- package/dist/chunks/{repository-1n274c67.js → mime-spb3hsfg.js} +19 -19
- package/dist/chunks/{repository-9rs4eqfv.js → mime-szb4ct1t.js} +17 -17
- package/dist/chunks/{repository-n4a6bgqk.js → mime-t1xxg50c.js} +14 -14
- package/dist/chunks/{repository-tazgh4e4.js → mime-tazgh4e4.js} +1 -1
- package/dist/chunks/{repository-tcezcvh9.js → mime-tcezcvh9.js} +1 -1
- package/dist/chunks/{repository-tdstcens.js → mime-tdstcens.js} +1 -1
- package/dist/chunks/{repository-qt3bdkqw.js → mime-teqxmgy8.js} +18 -18
- package/dist/chunks/{repository-gv6a8nnw.js → mime-th5km1p3.js} +5 -5
- package/dist/chunks/{repository-tkvvdtgj.js → mime-tnf45s15.js} +5 -5
- package/dist/chunks/{repository-1t2s0wry.js → mime-ttkasvj9.js} +5 -5
- package/dist/chunks/{repository-tvtrv512.js → mime-tvtrv512.js} +1 -1
- package/dist/chunks/{repository-0wjw63yk.js → mime-v5bprabd.js} +26 -26
- package/dist/chunks/{repository-w96k05dy.js → mime-vbedh2fb.js} +11 -11
- package/dist/chunks/{repository-5cy52y0z.js → mime-vc2f4mv3.js} +6 -6
- package/dist/chunks/{repository-veqvce7d.js → mime-veqvce7d.js} +1 -1
- package/dist/chunks/{repository-j8g7a3j8.js → mime-vz9r8jjr.js} +11 -11
- package/dist/chunks/{repository-vzcthcp8.js → mime-vzcthcp8.js} +1 -1
- package/dist/chunks/{repository-petjzngd.js → mime-w3mesfdc.js} +14 -14
- package/dist/chunks/{repository-w3wsvvr9.js → mime-w3wsvvr9.js} +1 -1
- package/dist/chunks/{repository-5892jdtn.js → mime-w49382pb.js} +8 -8
- package/dist/chunks/{repository-wd87259q.js → mime-wd87259q.js} +1 -1
- package/dist/chunks/{repository-3ke3s58r.js → mime-wgqr0wr2.js} +13 -12
- package/dist/chunks/{repository-txzqvs6q.js → mime-wq0697zs.js} +33 -33
- package/dist/chunks/{repository-peejr10p.js → mime-wqgnyshj.js} +1 -1
- package/dist/chunks/{repository-c968x2fe.js → mime-wwr0k6jb.js} +11 -11
- package/dist/chunks/{repository-9xb0s4b9.js → mime-wzfbm1pf.js} +26 -26
- package/dist/chunks/{repository-x1ezjp6w.js → mime-x1ezjp6w.js} +1 -1
- package/dist/chunks/{repository-pjrv1sn1.js → mime-xc0y5txa.js} +1 -1
- package/dist/chunks/{repository-xhhmv89y.js → mime-xcggh081.js} +4 -4
- package/dist/chunks/{repository-2m84dfka.js → mime-xcz029a5.js} +20 -20
- package/dist/chunks/{repository-g190xswt.js → mime-xdk9p2qn.js} +21 -21
- package/dist/chunks/{repository-7zs56f9j.js → mime-xmvnw2y2.js} +6 -6
- package/dist/chunks/{repository-pye8sh6e.js → mime-xnqxh1k4.js} +6 -6
- package/dist/chunks/{repository-shg3amz7.js → mime-xnxgv7d0.js} +24 -24
- package/dist/chunks/mime-xrsqh21y.js +4 -0
- package/dist/chunks/{repository-sm236kpq.js → mime-xvssc1kt.js} +17 -17
- package/dist/chunks/{repository-y6f0p4jw.js → mime-xxynqx5z.js} +3 -3
- package/dist/chunks/{repository-y1fvbwt7.js → mime-y1fvbwt7.js} +1 -1
- package/dist/chunks/{repository-sztg2hv4.js → mime-y1hy1c31.js} +17 -17
- package/dist/chunks/{repository-b6hy6gkz.js → mime-y6fqbdb6.js} +2 -2
- package/dist/chunks/{repository-f78hydwg.js → mime-y6r7tp3a.js} +3 -3
- package/dist/chunks/{repository-y71avatq.js → mime-y71avatq.js} +1 -1
- package/dist/chunks/{repository-xqzn0vp7.js → mime-yk45fjth.js} +9 -9
- package/dist/chunks/{repository-cedwm630.js → mime-yrgys5zv.js} +45 -45
- package/dist/chunks/{repository-yrhqyw5v.js → mime-yrhqyw5v.js} +1 -1
- package/dist/chunks/{repository-pecb0brz.js → mime-yt0fqk68.js} +5 -5
- package/dist/chunks/{repository-39fveamk.js → mime-yz87v98p.js} +27 -25
- package/dist/chunks/{repository-z0bkrqjs.js → mime-z0bkrqjs.js} +1 -1
- package/dist/chunks/{repository-pctvcs1g.js → mime-z159gw3g.js} +18 -18
- package/dist/chunks/{repository-386j3b86.js → mime-z2gbnfa5.js} +23 -23
- package/dist/chunks/{repository-pzjh8mr9.js → mime-z3af23pk.js} +20 -20
- package/dist/chunks/{repository-ykpr0q7c.js → mime-z3zadmjk.js} +55 -55
- package/dist/chunks/{repository-mppgq2kn.js → mime-z7q0mhzt.js} +301 -301
- package/dist/chunks/{repository-je6c5z5p.js → mime-zch57v4g.js} +9 -9
- package/dist/chunks/{repository-zeh9ct20.js → mime-zeh9ct20.js} +2 -2
- package/dist/chunks/{repository-1jnd8eq9.js → mime-zg7qrvva.js} +16 -16
- package/dist/chunks/{repository-zr2ceqn5.js → mime-zr2ceqn5.js} +1 -1
- package/dist/chunks/{repository-2fbr18f9.js → mime-zxh2e4w2.js} +42 -42
- package/dist/chunks/{repository-zxq2ej10.js → mime-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +84 -84
- package/dist/config/discovery.js +79 -78
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +119 -118
- package/dist/config/plugin/command.js +212 -210
- package/dist/config/plugin/compaction.js +157 -156
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -118
- package/dist/config/plugin/image.js +117 -116
- package/dist/config/plugin/instruction.js +87 -86
- package/dist/config/plugin/location-watcher.js +119 -118
- package/dist/config/plugin/mcp.js +128 -127
- package/dist/config/plugin/policy.js +116 -115
- package/dist/config/plugin/provider.js +115 -114
- package/dist/config/plugin/reference.js +119 -118
- package/dist/config/plugin/shell.js +120 -119
- package/dist/config/plugin/skill-file.js +99 -98
- package/dist/config/plugin/skill.js +138 -137
- package/dist/config/plugin/snapshot.js +117 -116
- package/dist/config/plugin/source.js +119 -118
- package/dist/config/plugin/tool-output.js +119 -118
- package/dist/config/plugin/websearch.js +117 -116
- package/dist/config/plugin/worktree.js +120 -119
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -118
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +76 -76
- package/dist/database/database.js +69 -69
- 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 +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -361
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +90 -89
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +92 -91
- 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 +101 -100
- package/dist/file-mutation.js +91 -90
- 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 +224 -223
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -100
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -99
- package/dist/form.js +75 -75
- package/dist/formatter/builtins.js +2 -2
- package/dist/formatter.js +84 -83
- package/dist/generate.js +88 -88
- package/dist/git.js +8 -7
- 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 +7 -7
- 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 +354 -352
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +84 -83
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +83 -83
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +135 -134
- package/dist/location-mutation.js +101 -100
- package/dist/location-service-map.js +85 -84
- package/dist/location-services.js +351 -349
- package/dist/location.js +82 -81
- package/dist/mcp/client.js +88 -87
- package/dist/mcp/index.js +107 -106
- package/dist/mcp/instructions.js +124 -123
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +87 -86
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +85 -85
- package/dist/model.js +6 -6
- package/dist/models-dev.js +87 -87
- 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 +110 -109
- 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 +101 -100
- package/dist/plugin/command.js +98 -97
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +215 -214
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +325 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +76 -76
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +99 -98
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/alibaba.js +2 -2
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/azure.js +120 -119
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +119 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +119 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +116 -115
- package/dist/plugin/provider/digitalocean.js +80 -80
- 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 +81 -81
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +117 -116
- package/dist/plugin/provider/modal.js +80 -80
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +119 -118
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +79 -79
- package/dist/plugin/provider/opencode.js +80 -80
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/sap-ai-core.js +3 -3
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +119 -118
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -116
- package/dist/plugin/provider/xai.js +78 -78
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +158 -157
- package/dist/plugin/sdk.js +71 -71
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +342 -340
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +83 -83
- package/dist/plugin/vcs/hg.js +83 -83
- package/dist/plugin/warming.js +114 -113
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -8
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +13 -0
- package/dist/plugin.js +220 -219
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +87 -86
- package/dist/provider.js +5 -5
- 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 +96 -95
- package/dist/reference/instructions.js +86 -85
- package/dist/reference.js +86 -85
- package/dist/repository-cache.js +78 -77
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -94
- package/dist/rpc.js +79 -78
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +129 -128
- package/dist/session/context.js +149 -148
- package/dist/session/diff.js +94 -0
- 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 +222 -220
- package/dist/session/execution.js +124 -123
- package/dist/session/generate.js +148 -147
- 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 +94 -93
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +115 -114
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +128 -127
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +102 -101
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +87 -86
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +227 -226
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +87 -87
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +112 -111
- package/dist/session/runner/step.js +121 -120
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -170
- package/dist/session/shell.js +133 -132
- package/dist/session/skill.js +100 -99
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -206
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +151 -150
- package/dist/session/to-session-error.js +109 -108
- package/dist/session/transfer.js +221 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -214
- 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 +135 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +104 -103
- package/dist/skill.js +107 -106
- package/dist/snapshot.js +88 -87
- 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 +121 -120
- package/dist/tool/plugin/edit.js +117 -116
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +122 -121
- package/dist/tool/plugin/grep.js +122 -121
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +119 -118
- package/dist/tool/plugin/question.js +102 -101
- package/dist/tool/plugin/read.js +123 -122
- package/dist/tool/plugin/shell.js +215 -213
- package/dist/tool/plugin/skill.js +104 -103
- package/dist/tool/plugin/subagent.js +213 -211
- package/dist/tool/plugin/webfetch.js +109 -108
- package/dist/tool/plugin/websearch.js +111 -110
- package/dist/tool/plugin/write.js +119 -118
- package/dist/tool/read-filesystem.js +98 -97
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +13 -13
- package/dist/types/config.d.ts +5 -1
- package/dist/types/filesystem.d.ts +6 -1
- package/dist/types/plugin/websearch/index.d.ts +1 -1
- package/dist/types/plugin/websearch/tinyfish.d.ts +5 -0
- package/dist/types/session/diff.d.ts +48 -0
- package/dist/types/session/history.d.ts +40 -0
- package/dist/types/session/sql.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +12 -1
- package/dist/types/session.d.ts +10 -0
- package/dist/types/shell/select.d.ts +1 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- 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 +5 -5
- 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 +4 -4
- 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 +86 -86
- package/dist/websearch.js +81 -81
- 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 +8 -7
- package/dist/worktree/refresh.js +343 -341
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +93 -92
- package/package.json +8 -8
- package/dist/chunks/repository-jqh9b0xq.js +0 -18
- package/dist/chunks/repository-qapv375x.js +0 -4
- package/dist/chunks/repository-qec2v6cx.js +0 -247
- package/dist/chunks/repository-sj51pd9c.js +0 -22
- /package/dist/chunks/{repository-0qkdqm5v.js → mime-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{repository-0zkw76rk.js → mime-0zkw76rk.js} +0 -0
- /package/dist/chunks/{repository-17cy0kzp.js → mime-17cy0kzp.js} +0 -0
- /package/dist/chunks/{repository-1cnp2v09.js → mime-1cnp2v09.js} +0 -0
- /package/dist/chunks/{repository-1kg9ymc8.js → mime-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{repository-2710q6r3.js → mime-2710q6r3.js} +0 -0
- /package/dist/chunks/{repository-2axfhc9x.js → mime-2axfhc9x.js} +0 -0
- /package/dist/chunks/{repository-2c3vjs8z.js → mime-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{repository-359p4xyc.js → mime-359p4xyc.js} +0 -0
- /package/dist/chunks/{repository-3asan66x.js → mime-3asan66x.js} +0 -0
- /package/dist/chunks/{repository-3v8g72cx.js → mime-3v8g72cx.js} +0 -0
- /package/dist/chunks/{repository-3w5fmr99.js → mime-3w5fmr99.js} +0 -0
- /package/dist/chunks/{repository-3wcehsnq.js → mime-3wcehsnq.js} +0 -0
- /package/dist/chunks/{repository-43n2bw4t.js → mime-43n2bw4t.js} +0 -0
- /package/dist/chunks/{repository-4knz6hnm.js → mime-4knz6hnm.js} +0 -0
- /package/dist/chunks/{repository-4vcrnpx2.js → mime-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{repository-4y7fprxs.js → mime-4y7fprxs.js} +0 -0
- /package/dist/chunks/{repository-53557ph1.js → mime-53557ph1.js} +0 -0
- /package/dist/chunks/{repository-550bvhaj.js → mime-550bvhaj.js} +0 -0
- /package/dist/chunks/{repository-6prwharc.js → mime-6prwharc.js} +0 -0
- /package/dist/chunks/{repository-7akdwqpd.js → mime-7akdwqpd.js} +0 -0
- /package/dist/chunks/{repository-7m9af43g.js → mime-7m9af43g.js} +0 -0
- /package/dist/chunks/{repository-822emrt2.js → mime-822emrt2.js} +0 -0
- /package/dist/chunks/{repository-88xbtdfr.js → mime-88xbtdfr.js} +0 -0
- /package/dist/chunks/{repository-8n3pysct.js → mime-8n3pysct.js} +0 -0
- /package/dist/chunks/{repository-922hggd3.js → mime-922hggd3.js} +0 -0
- /package/dist/chunks/{repository-9a4afbnw.js → mime-9a4afbnw.js} +0 -0
- /package/dist/chunks/{repository-9rqn6x4v.js → mime-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{repository-a6k6eb26.js → mime-a6k6eb26.js} +0 -0
- /package/dist/chunks/{repository-af5trqkr.js → mime-af5trqkr.js} +0 -0
- /package/dist/chunks/{repository-afrmfg78.js → mime-afrmfg78.js} +0 -0
- /package/dist/chunks/{repository-aqzs7mqg.js → mime-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{repository-atq7p7m5.js → mime-atq7p7m5.js} +0 -0
- /package/dist/chunks/{repository-bkyjaxrp.js → mime-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{repository-bmr6ed5q.js → mime-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{repository-cf4snx6d.js → mime-cf4snx6d.js} +0 -0
- /package/dist/chunks/{repository-cvy3z8tj.js → mime-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{repository-d9fn303g.js → mime-d9fn303g.js} +0 -0
- /package/dist/chunks/{repository-d9jj8t3e.js → mime-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{repository-dajrwvna.js → mime-dajrwvna.js} +0 -0
- /package/dist/chunks/{repository-dap0rakb.js → mime-dap0rakb.js} +0 -0
- /package/dist/chunks/{repository-df08tz66.js → mime-df08tz66.js} +0 -0
- /package/dist/chunks/{repository-dy18nga0.js → mime-dy18nga0.js} +0 -0
- /package/dist/chunks/{repository-e5kj55wp.js → mime-e5kj55wp.js} +0 -0
- /package/dist/chunks/{repository-e73j6tqm.js → mime-e73j6tqm.js} +0 -0
- /package/dist/chunks/{repository-ec1grn59.js → mime-ec1grn59.js} +0 -0
- /package/dist/chunks/{repository-eh3zwz77.js → mime-eh3zwz77.js} +0 -0
- /package/dist/chunks/{repository-emrn6kk6.js → mime-emrn6kk6.js} +0 -0
- /package/dist/chunks/{repository-f0mxakyp.js → mime-f0mxakyp.js} +0 -0
- /package/dist/chunks/{repository-f6n9ztr4.js → mime-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{repository-faypxj3z.js → mime-faypxj3z.js} +0 -0
- /package/dist/chunks/{repository-fd410y7t.js → mime-fd410y7t.js} +0 -0
- /package/dist/chunks/{repository-fxgpk5d8.js → mime-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{repository-g4wezp1m.js → mime-g4wezp1m.js} +0 -0
- /package/dist/chunks/{repository-g86h250q.js → mime-g86h250q.js} +0 -0
- /package/dist/chunks/{repository-gebd4c9n.js → mime-gebd4c9n.js} +0 -0
- /package/dist/chunks/{repository-gftt206x.js → mime-gftt206x.js} +0 -0
- /package/dist/chunks/{repository-hjbc5kem.js → mime-hjbc5kem.js} +0 -0
- /package/dist/chunks/{repository-hk9envan.js → mime-hk9envan.js} +0 -0
- /package/dist/chunks/{repository-hrnqkpcd.js → mime-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{repository-j2ntwpah.js → mime-j2ntwpah.js} +0 -0
- /package/dist/chunks/{repository-j5zkgpj8.js → mime-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{repository-jr7sbwjy.js → mime-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{repository-jwfs4k6c.js → mime-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{repository-jzg6c2d5.js → mime-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{repository-mp448xyj.js → mime-mp448xyj.js} +0 -0
- /package/dist/chunks/{repository-msx8hqn2.js → mime-msx8hqn2.js} +0 -0
- /package/dist/chunks/{repository-n05xt0ee.js → mime-n05xt0ee.js} +0 -0
- /package/dist/chunks/{repository-n3j8tn72.js → mime-n3j8tn72.js} +0 -0
- /package/dist/chunks/{repository-njntx4h6.js → mime-njntx4h6.js} +0 -0
- /package/dist/chunks/{repository-q3sfg36h.js → mime-q3sfg36h.js} +0 -0
- /package/dist/chunks/{repository-q74kybfr.js → mime-q74kybfr.js} +0 -0
- /package/dist/chunks/{repository-qaymkmh1.js → mime-qaymkmh1.js} +0 -0
- /package/dist/chunks/{repository-qb87gjwd.js → mime-qb87gjwd.js} +0 -0
- /package/dist/chunks/{repository-qfa1cgps.js → mime-qfa1cgps.js} +0 -0
- /package/dist/chunks/{repository-qrg20bc0.js → mime-qrg20bc0.js} +0 -0
- /package/dist/chunks/{repository-rcb2kzg1.js → mime-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{repository-sdp7kfr6.js → mime-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{repository-sk3qaz4a.js → mime-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{repository-ssg3fenm.js → mime-ssg3fenm.js} +0 -0
- /package/dist/chunks/{repository-twg0f83k.js → mime-twg0f83k.js} +0 -0
- /package/dist/chunks/{repository-w803qqfp.js → mime-w803qqfp.js} +0 -0
- /package/dist/chunks/{repository-wer8tq1h.js → mime-wer8tq1h.js} +0 -0
- /package/dist/chunks/{repository-wtztk69x.js → mime-wtztk69x.js} +0 -0
- /package/dist/chunks/{repository-x0ckcb58.js → mime-x0ckcb58.js} +0 -0
- /package/dist/chunks/{repository-x61499pn.js → mime-x61499pn.js} +0 -0
- /package/dist/chunks/{repository-y44na4kk.js → mime-y44na4kk.js} +0 -0
- /package/dist/chunks/{repository-y8cydn3q.js → mime-y8cydn3q.js} +0 -0
- /package/dist/chunks/{repository-y8f7s663.js → mime-y8f7s663.js} +0 -0
- /package/dist/chunks/{repository-ygaqb7jw.js → mime-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{repository-ym463w8f.js → mime-ym463w8f.js} +0 -0
- /package/dist/chunks/{repository-z9919s4g.js → mime-z9919s4g.js} +0 -0
|
@@ -1,13 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./mime-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./mime-y71avatq.js";
|
|
8
|
+
import {
|
|
9
|
+
MAX_TOTAL_PATCH_BYTES2,
|
|
10
|
+
emptyPatch2,
|
|
11
|
+
chunksByFile2
|
|
12
|
+
} from "./mime-tazgh4e4.js";
|
|
8
13
|
import {
|
|
9
14
|
__export
|
|
10
|
-
} from "./
|
|
15
|
+
} from "./mime-9rqn6x4v.js";
|
|
11
16
|
|
|
12
17
|
// src/git.ts
|
|
13
18
|
var exports_git3 = {};
|
|
@@ -15,11 +20,11 @@ __export(exports_git3, {
|
|
|
15
20
|
Git: () => exports_git3,
|
|
16
21
|
OperationError: () => OperationError3,
|
|
17
22
|
Repository: () => Repository2,
|
|
18
|
-
Service: () =>
|
|
23
|
+
Service: () => Service71,
|
|
19
24
|
TreeID: () => TreeID2,
|
|
20
25
|
Worktree: () => Worktree2,
|
|
21
26
|
WorktreeError: () => WorktreeError2,
|
|
22
|
-
node: () =>
|
|
27
|
+
node: () => node76
|
|
23
28
|
});
|
|
24
29
|
import path from "path";
|
|
25
30
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -85,9 +90,9 @@ class WorktreeError2 extends Schema.TaggedError()("Git.WorktreeError", {
|
|
|
85
90
|
}) {
|
|
86
91
|
}
|
|
87
92
|
|
|
88
|
-
class
|
|
93
|
+
class Service71 extends Context.Service()("@opencode/Git") {
|
|
89
94
|
}
|
|
90
|
-
var layer = Layer.effect(
|
|
95
|
+
var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
91
96
|
const fs = yield* FSUtil.Service;
|
|
92
97
|
const proc = yield* AppProcess.Service;
|
|
93
98
|
const locks = makeUnsafe2();
|
|
@@ -199,7 +204,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
199
204
|
cwd: repository.worktree,
|
|
200
205
|
env: options?.env,
|
|
201
206
|
extendEnv: true
|
|
202
|
-
}), { stdin: options?.stdin }).pipe(Effect.mapError((cause) => new OperationError3({
|
|
207
|
+
}), { stdin: options?.stdin, maxOutputBytes: options?.maxOutputBytes }).pipe(Effect.mapError((cause) => new OperationError3({
|
|
203
208
|
operation: operationName,
|
|
204
209
|
directory: repository.worktree,
|
|
205
210
|
message: cause.message,
|
|
@@ -207,7 +212,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
207
212
|
})));
|
|
208
213
|
const text = result.stdout.toString("utf8");
|
|
209
214
|
if (result.exitCode === 0)
|
|
210
|
-
return { text, stderr: result.stderr.toString("utf8") };
|
|
215
|
+
return { text, stderr: result.stderr.toString("utf8"), truncated: result.stdoutTruncated };
|
|
211
216
|
return yield* new OperationError3({
|
|
212
217
|
operation: operationName,
|
|
213
218
|
directory: repository.worktree,
|
|
@@ -246,7 +251,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
246
251
|
return repository;
|
|
247
252
|
});
|
|
248
253
|
const refresh = Effect.fn("Git.index.refresh")(function* (input) {
|
|
249
|
-
const list = (args) => repositoryOperation("refresh", input.repository, args).pipe(Effect.map((result) => result.text
|
|
254
|
+
const list = (args) => repositoryOperation("refresh", input.repository, args).pipe(Effect.map((result) => nuls(result.text)));
|
|
250
255
|
const [tracked, untracked] = yield* Effect.all([
|
|
251
256
|
list(["diff-files", "--name-only", "-z", "--", input.scope]),
|
|
252
257
|
list(["ls-files", "--others", "--exclude-standard", "-z", "--", input.scope])
|
|
@@ -286,7 +291,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
286
291
|
directory: input.repository.worktree,
|
|
287
292
|
message: result.stderr.toString("utf8").trim() || "Failed to check ignored paths"
|
|
288
293
|
});
|
|
289
|
-
return new Set(result.stdout.toString("utf8")
|
|
294
|
+
return new Set(nuls(result.stdout.toString("utf8")).map((file) => RelativePath2.make(file)));
|
|
290
295
|
});
|
|
291
296
|
const writeTree = Effect.fn("Git.tree.write")(function* (repository) {
|
|
292
297
|
return TreeID2.make((yield* repositoryOperation("write_tree", repository, ["write-tree"])).text.trim());
|
|
@@ -296,55 +301,57 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
296
301
|
return yield* writeTree(input.repository);
|
|
297
302
|
})));
|
|
298
303
|
const treeFiles = Effect.fn("Git.tree.files")(function* (input) {
|
|
299
|
-
return (yield* repositoryOperation("list_files", input.repository, [
|
|
304
|
+
return nuls((yield* repositoryOperation("list_files", input.repository, [
|
|
300
305
|
"diff",
|
|
301
306
|
"--name-only",
|
|
302
307
|
"--no-renames",
|
|
303
308
|
"-z",
|
|
304
309
|
input.from,
|
|
305
310
|
input.to
|
|
306
|
-
])).text
|
|
311
|
+
])).text).map((file) => RelativePath2.make(file));
|
|
307
312
|
});
|
|
308
313
|
const treeDiff = Effect.fn("Git.tree.diff")(function* (input) {
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
]
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
const
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
314
|
+
if (input.paths?.length === 0)
|
|
315
|
+
return [];
|
|
316
|
+
const args = ["--no-renames", input.from, input.to, "--", ...input.paths ?? []];
|
|
317
|
+
const [names, numbers, patch] = yield* Effect.all([
|
|
318
|
+
repositoryOperation("diff", input.repository, ["diff", "--name-status", "-z", ...args]),
|
|
319
|
+
repositoryOperation("diff", input.repository, ["diff", "--numstat", "-z", ...args]),
|
|
320
|
+
repositoryOperation("diff", input.repository, ["-c", "core.quotepath=false", "diff", "--no-ext-diff", `--unified=${input.context ?? 3}`, ...args], { maxOutputBytes: MAX_TOTAL_PATCH_BYTES2 })
|
|
321
|
+
], { concurrency: 3 });
|
|
322
|
+
const statuses = nuls(names.text);
|
|
323
|
+
const files = statuses.flatMap((code, index) => {
|
|
324
|
+
const file = statuses[index + 1];
|
|
325
|
+
if (index % 2 !== 0 || !file)
|
|
326
|
+
return [];
|
|
327
|
+
return [
|
|
328
|
+
{
|
|
329
|
+
file: RelativePath2.make(file),
|
|
330
|
+
status: code.startsWith("A") ? "added" : code.startsWith("D") ? "deleted" : "modified"
|
|
331
|
+
}
|
|
332
|
+
];
|
|
333
|
+
});
|
|
334
|
+
const stats = new Map(nuls(numbers.text).flatMap((line) => {
|
|
335
|
+
const [additions, deletions, ...file] = line.split("\t");
|
|
336
|
+
if (!additions || !deletions || file.length === 0)
|
|
337
|
+
return [];
|
|
338
|
+
return [
|
|
339
|
+
[
|
|
340
|
+
file.join("\t"),
|
|
341
|
+
additions === "-" || deletions === "-" ? { binary: true, additions: 0, deletions: 0 } : { binary: false, additions: Number(additions), deletions: Number(deletions) }
|
|
342
|
+
]
|
|
343
|
+
];
|
|
344
|
+
}));
|
|
345
|
+
const patches = chunksByFile2(patch, (index) => files[index]?.file);
|
|
346
|
+
return files.map((entry) => {
|
|
347
|
+
const stat = stats.get(entry.file);
|
|
340
348
|
return {
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
patch
|
|
349
|
+
...entry,
|
|
350
|
+
additions: stat?.additions ?? 0,
|
|
351
|
+
deletions: stat?.deletions ?? 0,
|
|
352
|
+
patch: stat?.binary ? "" : patches.get(entry.file) ?? emptyPatch2(entry.file)
|
|
346
353
|
};
|
|
347
|
-
})
|
|
354
|
+
});
|
|
348
355
|
});
|
|
349
356
|
const hasEntry = Effect.fnUntraced(function* (repository, tree, file) {
|
|
350
357
|
const text = (yield* repositoryOperation("restore", repository, [
|
|
@@ -409,7 +416,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
409
416
|
kind: index === 0 ? "main" : "linked"
|
|
410
417
|
}));
|
|
411
418
|
});
|
|
412
|
-
return
|
|
419
|
+
return Service71.of({
|
|
413
420
|
repo: { discover, clone, create },
|
|
414
421
|
remote: { get: remote },
|
|
415
422
|
history: { head, branch, defaultRemoteBranch: remoteHead, rootCommits: roots },
|
|
@@ -425,7 +432,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
425
432
|
}
|
|
426
433
|
});
|
|
427
434
|
}));
|
|
428
|
-
var
|
|
435
|
+
var node76 = makeGlobalNode({ service: Service71, layer, deps: [FSUtil.node, AppProcess.node] });
|
|
429
436
|
function run(cwd, proc, args) {
|
|
430
437
|
return execute(cwd, proc, args).pipe(Effect.orElseSucceed(() => ({ exitCode: 1, text: "", stderr: "" })));
|
|
431
438
|
}
|
|
@@ -440,6 +447,9 @@ function execute(cwd, proc, args) {
|
|
|
440
447
|
stderr: result.stderr.toString("utf8")
|
|
441
448
|
})));
|
|
442
449
|
}
|
|
450
|
+
function nuls(text) {
|
|
451
|
+
return text.split("\x00").filter(Boolean);
|
|
452
|
+
}
|
|
443
453
|
function resolvePath(cwd, value) {
|
|
444
454
|
const trimmed = value.replace(/[\r\n]+$/, "");
|
|
445
455
|
if (!trimmed)
|
|
@@ -450,4 +460,4 @@ function resolvePath(cwd, value) {
|
|
|
450
460
|
return path.resolve(cwd, normalized);
|
|
451
461
|
}
|
|
452
462
|
|
|
453
|
-
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2,
|
|
463
|
+
export { Repository2, TreeID2, OperationError3, Worktree2, WorktreeError2, Service71, node76, exports_git3 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
migrations2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-s2azsgc2.js";
|
|
4
4
|
import {
|
|
5
5
|
schema_gen_default
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-twg0f83k.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/database/migration.ts
|
|
12
12
|
var exports_migration = {};
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-j1tqpjge.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/tavily.ts
|
|
9
9
|
var exports_tavily = {};
|
|
10
10
|
__export(exports_tavily, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin7,
|
|
12
12
|
WebSearchTavily: () => exports_tavily,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint5
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Duration, Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint5 = "https://api.tavily.com/search";
|
|
19
19
|
var SearchRequest = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
search_depth: Schema.Literal("basic"),
|
|
@@ -29,7 +29,7 @@ var SearchResponse = Schema.Struct({
|
|
|
29
29
|
content: Schema.String
|
|
30
30
|
}))
|
|
31
31
|
});
|
|
32
|
-
var
|
|
32
|
+
var Plugin7 = define({
|
|
33
33
|
id: "opencode.websearch.tavily",
|
|
34
34
|
effect: Effect.fn("WebSearchTavily.Plugin")(function* (ctx) {
|
|
35
35
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -51,7 +51,7 @@ var Plugin32 = define({
|
|
|
51
51
|
execute: (input) => Effect.gen(function* () {
|
|
52
52
|
const connection = yield* ctx.integration.connection.active("tavily");
|
|
53
53
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
54
|
-
const request = yield* HttpClientRequest.post(
|
|
54
|
+
const request = yield* HttpClientRequest.post(endpoint5).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders({
|
|
55
55
|
"User-Agent": useragent2(ctx.app),
|
|
56
56
|
"X-Client-Name": "opencode2",
|
|
57
57
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : { "X-Tavily-Access-Mode": "keyless" }
|
|
@@ -77,4 +77,4 @@ var Plugin32 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint5, Plugin7, exports_tavily };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service55
|
|
4
|
+
} from "./mime-6q31zrbr.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service54
|
|
7
|
+
} from "./mime-3mp8pt0x.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./mime-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./mime-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/tool-output.ts
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin33
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin33 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service55;
|
|
27
|
+
const output = yield* Service54;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin12 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin33, exports_tool_output };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make14,
|
|
10
10
|
render: () => render3
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -29,7 +29,7 @@ var system_default = `You are an AI agent powered by OpenCode, a coding agent ha
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
// src/session/system-prompt.ts
|
|
32
|
-
function
|
|
32
|
+
function make14(tools) {
|
|
33
33
|
return render3(system_default, tools);
|
|
34
34
|
}
|
|
35
35
|
function render3(prompt, tools) {
|
|
@@ -47,4 +47,4 @@ function render3(prompt, tools) {
|
|
|
47
47
|
`));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { make14, render3, exports_system_prompt };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service56
|
|
3
|
+
} from "./mime-xnxgv7d0.js";
|
|
4
4
|
import {
|
|
5
5
|
unavailable3
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-02a7j1yb.js";
|
|
7
7
|
import {
|
|
8
8
|
AbsolutePath2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./mime-922hggd3.js";
|
|
10
10
|
import {
|
|
11
11
|
File2,
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service45
|
|
13
|
+
} from "./mime-0f9vejxt.js";
|
|
14
14
|
import {
|
|
15
15
|
Service66
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./mime-bawj3v5d.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./mime-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/instruction.ts
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin38
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
30
|
import { dirname, join } from "path";
|
|
31
31
|
import { Effect, PubSub, Semaphore, Stream } from "effect";
|
|
32
|
-
var
|
|
32
|
+
var Plugin38 = define({
|
|
33
33
|
id: "opencode.config.instruction",
|
|
34
34
|
effect: Effect.fn(function* () {
|
|
35
|
-
const discovery = yield*
|
|
35
|
+
const discovery = yield* Service45;
|
|
36
36
|
if (!discovery.project && !discovery.global)
|
|
37
37
|
return;
|
|
38
38
|
yield* Effect.gen(function* () {
|
|
39
39
|
const fs = yield* FSUtil.Service;
|
|
40
40
|
const global = yield* Global.Service;
|
|
41
41
|
const location = yield* Service66;
|
|
42
|
-
const watcher = yield*
|
|
42
|
+
const watcher = yield* Service56;
|
|
43
43
|
const changes = yield* PubSub.sliding(1);
|
|
44
44
|
const lock = Semaphore.makeUnsafe(1);
|
|
45
45
|
const start = yield* fs.resolve(location.directory);
|
|
@@ -114,4 +114,4 @@ function ancestorDirectories(start, stop) {
|
|
|
114
114
|
return [start, ...ancestorDirectories(dirname(start), stop)];
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
export {
|
|
117
|
+
export { Plugin38, exports_instruction };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelativePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service66,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node71
|
|
7
|
+
} from "./mime-bawj3v5d.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service48,
|
|
10
|
+
node51
|
|
11
|
+
} from "./mime-bb4ztexx.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./mime-tcezcvh9.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./mime-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/filesystem/search.ts
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Options: () =>
|
|
25
|
-
Service: () =>
|
|
26
|
-
configured: () =>
|
|
24
|
+
Options: () => Options5,
|
|
25
|
+
Service: () => Service47,
|
|
26
|
+
configured: () => configured5,
|
|
27
27
|
fffLayer: () => fffLayer2,
|
|
28
|
-
layer: () =>
|
|
29
|
-
node: () =>
|
|
28
|
+
layer: () => layer18,
|
|
29
|
+
node: () => node50,
|
|
30
30
|
ripgrepLayer: () => ripgrepLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -35,11 +35,11 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Schema, Scope } from
|
|
|
35
35
|
import { Fff } from "#fff";
|
|
36
36
|
import fuzzysort from "fuzzysort";
|
|
37
37
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
38
|
-
var
|
|
38
|
+
var Options5 = Schema.Struct({
|
|
39
39
|
fff: Schema.optional(Schema.Boolean)
|
|
40
40
|
});
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service47 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
43
43
|
}
|
|
44
44
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
45
45
|
function emptyIndex() {
|
|
@@ -58,9 +58,9 @@ function search(index, input) {
|
|
|
58
58
|
});
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
var ripgrepLayer2 = Layer.effect(
|
|
61
|
+
var ripgrepLayer2 = Layer.effect(Service47, Effect.gen(function* () {
|
|
62
62
|
const location = yield* Service66;
|
|
63
|
-
const ripgrep = yield*
|
|
63
|
+
const ripgrep = yield* Service48;
|
|
64
64
|
const scope = yield* Scope.Scope;
|
|
65
65
|
const clock = yield* Clock.Clock;
|
|
66
66
|
const home = isHome2(location.directory);
|
|
@@ -105,14 +105,14 @@ var ripgrepLayer2 = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
105
105
|
Deferred.doneUnsafe(attempt, exit);
|
|
106
106
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
107
107
|
});
|
|
108
|
-
return
|
|
108
|
+
return Service47.of({
|
|
109
109
|
find: (input) => Effect.gen(function* () {
|
|
110
110
|
yield* refresh;
|
|
111
111
|
return search(index, input);
|
|
112
112
|
})
|
|
113
113
|
});
|
|
114
114
|
}));
|
|
115
|
-
var fffLayer2 = Layer.effect(
|
|
115
|
+
var fffLayer2 = Layer.effect(Service47, Effect.gen(function* () {
|
|
116
116
|
const location = yield* Service66;
|
|
117
117
|
const result = yield* Effect.try({
|
|
118
118
|
try: () => Fff.create({
|
|
@@ -126,12 +126,12 @@ var fffLayer2 = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
126
126
|
if (!result?.ok) {
|
|
127
127
|
if (result)
|
|
128
128
|
yield* Effect.logWarning("failed to initialize fff", { error: result.error });
|
|
129
|
-
return
|
|
129
|
+
return Service47.of({
|
|
130
130
|
find: () => Effect.succeed([])
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
yield* Effect.addFinalizer(() => Effect.sync(() => result.value.destroy()));
|
|
134
|
-
return
|
|
134
|
+
return Service47.of({
|
|
135
135
|
find: (input) => Effect.sync(() => {
|
|
136
136
|
const options = { pageIndex: 0, pageSize: input.limit ?? 50 };
|
|
137
137
|
const items = (() => {
|
|
@@ -174,7 +174,7 @@ var fffLayer2 = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
174
174
|
})
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
177
|
+
var layer18 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
178
178
|
const location = yield* Service66;
|
|
179
179
|
if (location.workspaceID)
|
|
180
180
|
return ripgrepLayer2;
|
|
@@ -182,9 +182,9 @@ var layer10 = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
|
182
182
|
return ripgrepLayer2;
|
|
183
183
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer2;
|
|
184
184
|
}));
|
|
185
|
-
function
|
|
186
|
-
return makeLocationNode({ service:
|
|
185
|
+
function configured5(options) {
|
|
186
|
+
return makeLocationNode({ service: Service47, layer: layer18(options), deps: [node71, node51] });
|
|
187
187
|
}
|
|
188
|
-
var
|
|
188
|
+
var node50 = configured5();
|
|
189
189
|
|
|
190
|
-
export {
|
|
190
|
+
export { Options5, Service47, ripgrepLayer2, fffLayer2, layer18, configured5, node50, exports_search };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-kg06axw8.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./mime-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/image.ts
|
|
9
9
|
var exports_image2 = {};
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service68,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node73
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service68 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service68.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node73 = makeLocationNode({ service: Service68, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service68, node73, exports_image2 };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
__export
|
|
3
|
+
} from "./mime-9rqn6x4v.js";
|
|
4
|
+
|
|
5
|
+
// src/plugin/service.ts
|
|
6
|
+
var exports_service = {};
|
|
7
|
+
__export(exports_service, {
|
|
8
|
+
Plugin: () => exports_service,
|
|
9
|
+
Service: () => Service19,
|
|
10
|
+
awaitActivation: () => awaitActivation2
|
|
11
|
+
});
|
|
12
|
+
import { Context } from "effect";
|
|
13
|
+
|
|
14
|
+
class Service19 extends Context.Service()("@opencode/Plugin") {
|
|
15
|
+
}
|
|
16
|
+
var awaitActivation2 = Service19.use((plugins) => plugins.awaitActivation);
|
|
17
|
+
|
|
18
|
+
export { Service19, awaitActivation2, exports_service };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./mime-j1tqpjge.js";
|
|
4
4
|
import {
|
|
5
5
|
OAuth3,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service77
|
|
7
|
+
} from "./mime-y1hy1c31.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
9
|
+
ID14,
|
|
10
10
|
MethodID2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./mime-s6khr2z3.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
ID17
|
|
14
|
+
} from "./mime-xnqxh1k4.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/provider/xai.ts
|
|
17
17
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -23,7 +23,7 @@ var scope = "openid profile email offline_access grok-cli:access api:access";
|
|
|
23
23
|
var pollingSafetyMargin = 3000;
|
|
24
24
|
var browserMethodID = MethodID2.make("browser");
|
|
25
25
|
var deviceMethodID = MethodID2.make("device");
|
|
26
|
-
var providerID =
|
|
26
|
+
var providerID = ID17.make("xai");
|
|
27
27
|
var Token = Schema.Struct({
|
|
28
28
|
access_token: Schema.String,
|
|
29
29
|
refresh_token: Schema.optional(Schema.String),
|
|
@@ -43,7 +43,7 @@ var DeviceError = Schema.Struct({
|
|
|
43
43
|
});
|
|
44
44
|
var decodeDeviceError = Schema.decodeUnknownOption(Schema.fromJsonString(DeviceError));
|
|
45
45
|
var device = (app) => ({
|
|
46
|
-
integrationID:
|
|
46
|
+
integrationID: ID14.make("xai"),
|
|
47
47
|
method: {
|
|
48
48
|
id: deviceMethodID,
|
|
49
49
|
type: "oauth",
|
|
@@ -68,8 +68,8 @@ var device = (app) => ({
|
|
|
68
68
|
var XAIPlugin2 = define({
|
|
69
69
|
id: "opencode.provider.xai",
|
|
70
70
|
effect: Effect.fn(function* (ctx) {
|
|
71
|
-
const credentials = yield*
|
|
72
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
71
|
+
const credentials = yield* Service77;
|
|
72
|
+
yield* Effect.forEach(yield* credentials.list(ID14.make("xai")), (credential) => {
|
|
73
73
|
if (credential.value.type !== "oauth" || credential.value.methodID !== browserMethodID)
|
|
74
74
|
return Effect.void;
|
|
75
75
|
return credentials.update(credential.id, {
|