@opencode/core 0.0.0-dev-19292 → 0.0.0-dev-19294
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 +81 -81
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +67 -67
- package/dist/catalog.js +79 -79
- package/dist/chunks/{filesystem-eaj1djv9.js → persistent-pty-02nrjc1r.js} +4 -4
- package/dist/chunks/{filesystem-5nzkepsx.js → persistent-pty-05d6g4k8.js} +4 -4
- package/dist/chunks/{filesystem-aabx2j0n.js → persistent-pty-0axathjs.js} +27 -27
- package/dist/chunks/{filesystem-qpcd101b.js → persistent-pty-0e5n0sf2.js} +25 -25
- package/dist/chunks/{filesystem-mtft99cd.js → persistent-pty-0f9afca0.js} +5 -5
- package/dist/chunks/{filesystem-0hpxrkyb.js → persistent-pty-0hpxrkyb.js} +2 -2
- package/dist/chunks/{filesystem-t4e6bmk3.js → persistent-pty-0myxtnrb.js} +15 -15
- package/dist/chunks/{filesystem-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
- package/dist/chunks/{filesystem-0q0f95c6.js → persistent-pty-0q0f95c6.js} +1 -1
- package/dist/chunks/{filesystem-nfkr9082.js → persistent-pty-0v53mg2y.js} +4 -4
- package/dist/chunks/{filesystem-tn4g20bc.js → persistent-pty-0x4wqcvz.js} +9 -9
- package/dist/chunks/{filesystem-xmxn88x7.js → persistent-pty-145661wq.js} +11 -11
- package/dist/chunks/{filesystem-1acjjqhc.js → persistent-pty-1acjjqhc.js} +1 -1
- package/dist/chunks/{filesystem-52j78j64.js → persistent-pty-1aypx7k6.js} +43 -43
- package/dist/chunks/{filesystem-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
- package/dist/chunks/{filesystem-w6jjpet8.js → persistent-pty-1g8atdmp.js} +5 -5
- package/dist/chunks/{filesystem-ydvj4nw2.js → persistent-pty-1r470mcr.js} +17 -17
- package/dist/chunks/{filesystem-9zswys26.js → persistent-pty-1tjg7tvh.js} +9 -9
- package/dist/chunks/{filesystem-1s6e1gpa.js → persistent-pty-1wh7yt6v.js} +26 -26
- package/dist/chunks/{filesystem-xhv33s0s.js → persistent-pty-1yrs7djp.js} +9 -9
- package/dist/chunks/{filesystem-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
- package/dist/chunks/{filesystem-fffs15cf.js → persistent-pty-22zc0h6z.js} +22 -22
- package/dist/chunks/{filesystem-2402vzrj.js → persistent-pty-2402vzrj.js} +1 -1
- package/dist/chunks/{filesystem-2fjmmd1n.js → persistent-pty-2483rb3n.js} +150 -150
- package/dist/chunks/{filesystem-9m17q65d.js → persistent-pty-24z3mw7y.js} +44 -44
- package/dist/chunks/{filesystem-z412kppw.js → persistent-pty-28wyaaxp.js} +4 -4
- package/dist/chunks/{filesystem-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
- package/dist/chunks/{filesystem-2k8khapm.js → persistent-pty-2k8khapm.js} +1 -1
- package/dist/chunks/{filesystem-7g04y0rf.js → persistent-pty-2me1kph6.js} +34 -34
- package/dist/chunks/{filesystem-q13v07rn.js → persistent-pty-2pwhnswx.js} +20 -20
- package/dist/chunks/{filesystem-36q2s365.js → persistent-pty-2qa1y7tr.js} +25 -25
- package/dist/chunks/{filesystem-mqafpt2f.js → persistent-pty-2qcb76fz.js} +1 -1
- package/dist/chunks/{filesystem-77934d6b.js → persistent-pty-2y9nvaw7.js} +10 -10
- package/dist/chunks/{filesystem-t4z0wkpb.js → persistent-pty-31nw0jmk.js} +13 -13
- package/dist/chunks/{filesystem-56gdpj1q.js → persistent-pty-33w4ejhs.js} +6 -6
- package/dist/chunks/{filesystem-70h0dqcv.js → persistent-pty-35qwg6vj.js} +17 -17
- package/dist/chunks/{filesystem-tpxc5hbb.js → persistent-pty-393vybvf.js} +11 -11
- package/dist/chunks/{filesystem-7stty0k9.js → persistent-pty-3b234dxf.js} +13 -13
- package/dist/chunks/{filesystem-afc89ev1.js → persistent-pty-3dtz0ed4.js} +9 -9
- package/dist/chunks/{filesystem-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{filesystem-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{filesystem-68rttjrp.js → persistent-pty-3jaapndc.js} +25 -25
- package/dist/chunks/{filesystem-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{filesystem-qmr73083.js → persistent-pty-3trbxeqx.js} +1 -1
- package/dist/chunks/{filesystem-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{filesystem-cny5rd43.js → persistent-pty-4c8bw516.js} +8 -8
- package/dist/chunks/{filesystem-2hybh429.js → persistent-pty-4gq97fz6.js} +4 -4
- package/dist/chunks/{filesystem-61938heb.js → persistent-pty-4hbnwbp2.js} +10 -10
- package/dist/chunks/{filesystem-f2gse5fy.js → persistent-pty-4kr8d4zw.js} +6 -6
- package/dist/chunks/{filesystem-560shqbd.js → persistent-pty-50fwx2e7.js} +3 -3
- package/dist/chunks/{filesystem-y81batpe.js → persistent-pty-519xp98s.js} +4 -4
- package/dist/chunks/{filesystem-wbs9x86t.js → persistent-pty-554te78s.js} +9 -9
- package/dist/chunks/{filesystem-qr27hz8v.js → persistent-pty-5aqfxp9a.js} +4 -4
- package/dist/chunks/{filesystem-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
- package/dist/chunks/{filesystem-yt0bjwgq.js → persistent-pty-5p42pk8x.js} +4 -4
- package/dist/chunks/{filesystem-ytws7ykb.js → persistent-pty-5q7zd1pw.js} +2 -2
- package/dist/chunks/{filesystem-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
- package/dist/chunks/{filesystem-669tq793.js → persistent-pty-669tq793.js} +1 -1
- package/dist/chunks/{filesystem-jrjrrhp8.js → persistent-pty-6a88n1h6.js} +15 -15
- package/dist/chunks/{filesystem-721tb84k.js → persistent-pty-6bsje7ws.js} +2 -2
- package/dist/chunks/{filesystem-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
- package/dist/chunks/{filesystem-71q4at8m.js → persistent-pty-71q4at8m.js} +1 -1
- package/dist/chunks/{filesystem-qzkfvpqa.js → persistent-pty-725dzfhf.js} +25 -25
- package/dist/chunks/{filesystem-9vf0b0kg.js → persistent-pty-727hyhtj.js} +28 -28
- package/dist/chunks/{filesystem-g5g6qkd8.js → persistent-pty-72p4sft2.js} +3 -3
- package/dist/chunks/{filesystem-r5x6zcsm.js → persistent-pty-73tb2d7t.js} +3 -3
- package/dist/chunks/{filesystem-md8xapqn.js → persistent-pty-774549wc.js} +16 -16
- package/dist/chunks/{filesystem-844ef7ks.js → persistent-pty-7b15y959.js} +8 -8
- package/dist/chunks/{filesystem-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{filesystem-2mrtaxmf.js → persistent-pty-7knmeq7j.js} +10 -10
- package/dist/chunks/{filesystem-v8wb3v9z.js → persistent-pty-7s3mtrfk.js} +11 -11
- package/dist/chunks/{filesystem-ddztgakg.js → persistent-pty-80bgm7g6.js} +43 -43
- package/dist/chunks/{filesystem-81swgkk7.js → persistent-pty-81swgkk7.js} +2 -2
- package/dist/chunks/{filesystem-crzr9tv5.js → persistent-pty-82zcy4t3.js} +11 -11
- package/dist/chunks/{filesystem-2d6j2h4j.js → persistent-pty-84tssp1s.js} +6 -6
- package/dist/chunks/{filesystem-y4f4eb8e.js → persistent-pty-8d6twjaw.js} +25 -25
- package/dist/chunks/{filesystem-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
- package/dist/chunks/{filesystem-9pdjfdc0.js → persistent-pty-8gmzme5z.js} +15 -15
- package/dist/chunks/{filesystem-vfkzc9c7.js → persistent-pty-8j7660kb.js} +18 -18
- package/dist/chunks/{filesystem-9yx1vv9a.js → persistent-pty-8kay7r51.js} +14 -14
- package/dist/chunks/{filesystem-dj2t23y0.js → persistent-pty-8p4f9s12.js} +2 -2
- package/dist/chunks/{filesystem-j86xyryf.js → persistent-pty-8sfc32fj.js} +13 -13
- package/dist/chunks/{filesystem-5qsm3jka.js → persistent-pty-8sjbh9hv.js} +12 -12
- package/dist/chunks/{filesystem-wwrcmqtb.js → persistent-pty-8y1r50ts.js} +13 -13
- package/dist/chunks/{filesystem-vbfce96g.js → persistent-pty-8ygrg08v.js} +16 -16
- package/dist/chunks/{filesystem-7yjg4qch.js → persistent-pty-9dgj6nfy.js} +30 -30
- package/dist/chunks/{filesystem-2tfmgkzg.js → persistent-pty-9gr8y5ys.js} +4 -4
- package/dist/chunks/{filesystem-v8ch97zc.js → persistent-pty-9k2v62xn.js} +1 -1
- package/dist/chunks/{filesystem-1j4zjt90.js → persistent-pty-9r9xaaca.js} +16 -16
- package/dist/chunks/{filesystem-5c4hm403.js → persistent-pty-a1bz86dw.js} +3 -3
- package/dist/chunks/{filesystem-2chnyb6y.js → persistent-pty-a8qvq7xc.js} +27 -27
- package/dist/chunks/{filesystem-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
- package/dist/chunks/{filesystem-jw6vwvft.js → persistent-pty-ac5bwv76.js} +16 -16
- package/dist/chunks/{filesystem-hwdsezy6.js → persistent-pty-atcvebh1.js} +22 -22
- package/dist/chunks/{filesystem-jbd8s1pr.js → persistent-pty-b1er1a8h.js} +11 -11
- package/dist/chunks/{filesystem-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
- package/dist/chunks/{filesystem-cv4ngb9q.js → persistent-pty-bbf85as9.js} +3 -3
- package/dist/chunks/{filesystem-wgfj0ahh.js → persistent-pty-bbrn9wt5.js} +10 -10
- package/dist/chunks/{filesystem-kxf93db8.js → persistent-pty-bgz3db1b.js} +30 -30
- package/dist/chunks/{filesystem-7yqnf43w.js → persistent-pty-bscb95cy.js} +4 -4
- package/dist/chunks/{filesystem-9g4h0krc.js → persistent-pty-bv075x5w.js} +17 -17
- package/dist/chunks/{filesystem-csa1wr7g.js → persistent-pty-c12qfpxz.js} +10 -10
- package/dist/chunks/{filesystem-29bacfvv.js → persistent-pty-c2bnm6k2.js} +5 -5
- package/dist/chunks/{filesystem-hv2e1k7y.js → persistent-pty-cay3r0qb.js} +4 -4
- package/dist/chunks/{filesystem-m0jqrx5p.js → persistent-pty-cfpkc3c9.js} +2 -2
- package/dist/chunks/{filesystem-k8zgzs4j.js → persistent-pty-cjckq4v9.js} +7 -7
- package/dist/chunks/{filesystem-9z2n9fsv.js → persistent-pty-cpy6gm2a.js} +4 -4
- package/dist/chunks/{filesystem-j2d2x7tv.js → persistent-pty-cvjh1vra.js} +77 -77
- package/dist/chunks/{filesystem-bsfhgqyd.js → persistent-pty-d190jgse.js} +46 -46
- package/dist/chunks/{filesystem-ze5td8vt.js → persistent-pty-daq6r9eg.js} +11 -11
- package/dist/chunks/{filesystem-2vnwx32a.js → persistent-pty-ddx3tg71.js} +8 -8
- package/dist/chunks/{filesystem-nv8hv94m.js → persistent-pty-djvjdepx.js} +9 -9
- package/dist/chunks/persistent-pty-dxj72tfx.js +18 -0
- package/dist/chunks/{filesystem-qyp1btz3.js → persistent-pty-dxsf3nxk.js} +9 -9
- package/dist/chunks/{filesystem-a2rp47zj.js → persistent-pty-dz79qsv0.js} +9 -9
- package/dist/chunks/{filesystem-wzchp92g.js → persistent-pty-e3xaa0tb.js} +28 -28
- package/dist/chunks/{filesystem-f9jz9apw.js → persistent-pty-ed4261w0.js} +24 -24
- package/dist/chunks/{filesystem-st1tj7wz.js → persistent-pty-ee2tbgw5.js} +35 -35
- package/dist/chunks/{filesystem-mn7mvsf2.js → persistent-pty-egg00cm7.js} +17 -17
- package/dist/chunks/{filesystem-r3x1gk33.js → persistent-pty-emjm2bea.js} +19 -19
- package/dist/chunks/{filesystem-7d9rgk6v.js → persistent-pty-eqw6cy2w.js} +18 -18
- package/dist/chunks/{filesystem-zsdmrg6x.js → persistent-pty-es9s4w7e.js} +11 -11
- package/dist/chunks/{filesystem-31dz7cp4.js → persistent-pty-esdnemd6.js} +1 -1
- package/dist/chunks/{filesystem-y9aqre06.js → persistent-pty-etks993p.js} +11 -11
- package/dist/chunks/{filesystem-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
- package/dist/chunks/{filesystem-dbftckt4.js → persistent-pty-ewy23wfq.js} +50 -50
- package/dist/chunks/{filesystem-gepszj42.js → persistent-pty-f2serpxf.js} +12 -12
- package/dist/chunks/{filesystem-hdnk95c8.js → persistent-pty-f828m53h.js} +2 -2
- package/dist/chunks/{filesystem-cc3f4dqb.js → persistent-pty-fg8ch49h.js} +6 -6
- package/dist/chunks/{filesystem-1rrwdqhg.js → persistent-pty-fnw3hf31.js} +5 -5
- package/dist/chunks/{filesystem-wd3khw6k.js → persistent-pty-fp77m0kv.js} +18 -18
- package/dist/chunks/{filesystem-18cztcj7.js → persistent-pty-fq1h1v14.js} +3 -3
- package/dist/chunks/{filesystem-kam6mwnv.js → persistent-pty-fthsm4kn.js} +5 -5
- package/dist/chunks/{filesystem-fxbjtjnd.js → persistent-pty-fxbjtjnd.js} +1 -1
- package/dist/chunks/{filesystem-fyjrpq2n.js → persistent-pty-fyjrpq2n.js} +3 -3
- package/dist/chunks/{filesystem-182ekf6d.js → persistent-pty-g2ym30wz.js} +18 -18
- package/dist/chunks/{filesystem-j8xrsd60.js → persistent-pty-g5w4gfvg.js} +20 -20
- package/dist/chunks/{filesystem-b6vhrqz2.js → persistent-pty-g9hjdpe6.js} +13 -13
- package/dist/chunks/{filesystem-2g4a82s9.js → persistent-pty-gb05bdzk.js} +6 -6
- package/dist/chunks/persistent-pty-gbs4gtrg.js +22 -0
- package/dist/chunks/{filesystem-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{filesystem-q3n43qhw.js → persistent-pty-gg09y051.js} +10 -10
- package/dist/chunks/{filesystem-6wfg927e.js → persistent-pty-gkngn95s.js} +21 -21
- package/dist/chunks/{filesystem-bq07s7py.js → persistent-pty-gqxm86at.js} +8 -8
- package/dist/chunks/{filesystem-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
- package/dist/chunks/{filesystem-rt3ch154.js → persistent-pty-gwzd8001.js} +19 -19
- package/dist/chunks/{filesystem-h03wrkyp.js → persistent-pty-h03wrkyp.js} +2 -2
- package/dist/chunks/{filesystem-f9bavhm2.js → persistent-pty-h2gyv3sg.js} +1 -1
- package/dist/chunks/{filesystem-am15qhr4.js → persistent-pty-h44053qn.js} +16 -16
- package/dist/chunks/{filesystem-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{filesystem-6jnybvqn.js → persistent-pty-h7ygw6q4.js} +9 -9
- package/dist/chunks/{filesystem-qywpveqw.js → persistent-pty-h82fng87.js} +15 -15
- package/dist/chunks/{filesystem-s3ef3sn4.js → persistent-pty-he62rfth.js} +22 -22
- package/dist/chunks/{filesystem-knac7z16.js → persistent-pty-hghsks1n.js} +20 -20
- package/dist/chunks/{filesystem-hjt4xg1x.js → persistent-pty-hjt4xg1x.js} +1 -1
- package/dist/chunks/{filesystem-4r3mqmdm.js → persistent-pty-hphp9nwx.js} +8 -8
- package/dist/chunks/{filesystem-ny7m7jyt.js → persistent-pty-hrtnrbtk.js} +6 -6
- package/dist/chunks/{filesystem-t0x5rdq8.js → persistent-pty-hrvd6t1f.js} +9 -9
- package/dist/chunks/{filesystem-zdejx0ks.js → persistent-pty-ht8yq9j7.js} +24 -24
- package/dist/chunks/{filesystem-fkf7rt1g.js → persistent-pty-j18gb1wk.js} +17 -17
- package/dist/chunks/{filesystem-tqjtzs87.js → persistent-pty-j3s48atd.js} +24 -24
- package/dist/chunks/{filesystem-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
- package/dist/chunks/{filesystem-cvx3h1xc.js → persistent-pty-j67mtk5t.js} +15 -15
- package/dist/chunks/{filesystem-8eyjkgz3.js → persistent-pty-j78cby75.js} +32 -32
- package/dist/chunks/{filesystem-jefma2gq.js → persistent-pty-jefma2gq.js} +3 -3
- package/dist/chunks/{filesystem-ve6nm2s5.js → persistent-pty-jkp0d30b.js} +6 -6
- package/dist/chunks/{filesystem-qte5z7bc.js → persistent-pty-jv01nqvq.js} +5 -5
- package/dist/chunks/{filesystem-sea28k5q.js → persistent-pty-k0gdq8ga.js} +11 -11
- package/dist/chunks/{filesystem-85g0gjbv.js → persistent-pty-k0sa6emq.js} +27 -27
- package/dist/chunks/{filesystem-9bey2zpa.js → persistent-pty-k1557tdf.js} +12 -12
- package/dist/chunks/{filesystem-abzdtrwv.js → persistent-pty-k1v94gwx.js} +24 -24
- package/dist/chunks/persistent-pty-kfvq4etd.js +247 -0
- package/dist/chunks/{filesystem-kg06axw8.js → persistent-pty-kg06axw8.js} +1 -1
- package/dist/chunks/{filesystem-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{filesystem-dfzjqex4.js → persistent-pty-ma15yhyh.js} +5 -5
- package/dist/chunks/{filesystem-3rz5xnhe.js → persistent-pty-mjkd0a6p.js} +43 -43
- package/dist/chunks/{filesystem-mkcjrzeh.js → persistent-pty-mkcjrzeh.js} +1 -1
- package/dist/chunks/{filesystem-ff6crjyd.js → persistent-pty-mnza640n.js} +30 -30
- package/dist/chunks/{filesystem-1ah30sey.js → persistent-pty-mrw4weg4.js} +5 -5
- package/dist/chunks/{filesystem-1pmr1wh0.js → persistent-pty-mtfbgphn.js} +31 -31
- package/dist/chunks/{filesystem-jgeey3vd.js → persistent-pty-mv1w94an.js} +35 -35
- package/dist/chunks/{filesystem-r59yas2b.js → persistent-pty-mwm2dbc1.js} +11 -11
- package/dist/chunks/{filesystem-610n7dfb.js → persistent-pty-nbjdr6xc.js} +17 -17
- package/dist/chunks/{filesystem-eeavwd92.js → persistent-pty-ndf63s1d.js} +3 -3
- package/dist/chunks/{filesystem-rhm006ed.js → persistent-pty-nh85wpnm.js} +4 -4
- package/dist/chunks/{filesystem-hdxhjexh.js → persistent-pty-nhvy51yq.js} +6 -6
- package/dist/chunks/{filesystem-a79c2avy.js → persistent-pty-nnjk6rmq.js} +29 -29
- package/dist/chunks/{filesystem-33yyfjes.js → persistent-pty-nswt8hzj.js} +15 -15
- package/dist/chunks/{filesystem-3nbz8wd3.js → persistent-pty-ny46n6vj.js} +8 -8
- package/dist/chunks/{filesystem-tdwyp4wd.js → persistent-pty-nzq16788.js} +38 -38
- package/dist/chunks/{filesystem-snfe3xn9.js → persistent-pty-p3n7r4sc.js} +7 -7
- package/dist/chunks/{filesystem-73df9qch.js → persistent-pty-p7t0e5yz.js} +15 -15
- package/dist/chunks/{filesystem-dm4dnfc4.js → persistent-pty-pa16je5z.js} +11 -11
- package/dist/chunks/{filesystem-j935v87r.js → persistent-pty-paphc93g.js} +2 -2
- package/dist/chunks/{filesystem-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{filesystem-t54fdmqn.js → persistent-pty-pk6r85zh.js} +13 -13
- package/dist/chunks/{filesystem-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{filesystem-e0prvjnp.js → persistent-pty-pq4st5kv.js} +2 -2
- package/dist/chunks/{filesystem-7xcv53jd.js → persistent-pty-pvm63170.js} +5 -5
- package/dist/chunks/{filesystem-nb12cs01.js → persistent-pty-pxks3tta.js} +9 -9
- package/dist/chunks/{filesystem-4zskx0sx.js → persistent-pty-q0xt3gns.js} +17 -17
- package/dist/chunks/{filesystem-9afe43sd.js → persistent-pty-q1a91n7k.js} +6 -6
- package/dist/chunks/{filesystem-a4exdnt3.js → persistent-pty-q6zxxt9y.js} +2 -2
- package/dist/chunks/{filesystem-1ypbpeza.js → persistent-pty-qbhwnd5t.js} +8 -8
- package/dist/chunks/{filesystem-c3h4b1pf.js → persistent-pty-qg9drey5.js} +20 -20
- package/dist/chunks/{filesystem-9d8ap61w.js → persistent-pty-qhmak1gv.js} +27 -27
- package/dist/chunks/{filesystem-t51qk8jz.js → persistent-pty-qj8eh1ht.js} +21 -21
- package/dist/chunks/{filesystem-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{filesystem-77kqwf55.js → persistent-pty-qx5x1pzp.js} +7 -7
- package/dist/chunks/{filesystem-29k8s8e4.js → persistent-pty-qyvn9zey.js} +15 -15
- package/dist/chunks/{filesystem-r1p902q3.js → persistent-pty-qzqps7kt.js} +8 -8
- package/dist/chunks/{filesystem-pzh96g4g.js → persistent-pty-r17k24qa.js} +8 -8
- package/dist/chunks/{filesystem-xtskrd06.js → persistent-pty-r2dp1cmd.js} +27 -27
- package/dist/chunks/{filesystem-zbmxxgxf.js → persistent-pty-rcfc93g0.js} +7 -7
- package/dist/chunks/{filesystem-sv9bpgvh.js → persistent-pty-rs226bz6.js} +5 -5
- package/dist/chunks/{filesystem-csf2jhsg.js → persistent-pty-rsdf2nvv.js} +4 -4
- package/dist/chunks/{filesystem-sc1v85yd.js → persistent-pty-rv1159bt.js} +16 -16
- package/dist/chunks/{filesystem-bpzgnhx9.js → persistent-pty-rxv86vcs.js} +57 -57
- package/dist/chunks/{filesystem-tm7zr4pr.js → persistent-pty-s0esgemt.js} +4 -4
- package/dist/chunks/{filesystem-4nvekdmf.js → persistent-pty-s8bz6z4k.js} +5 -5
- package/dist/chunks/{filesystem-d6jf792w.js → persistent-pty-sytjjnsv.js} +18 -18
- package/dist/chunks/{filesystem-8fjdeang.js → persistent-pty-t3xw15sj.js} +11 -11
- package/dist/chunks/{filesystem-2vs2nh1n.js → persistent-pty-t7n9q6bq.js} +4 -4
- package/dist/chunks/{filesystem-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{filesystem-tcezcvh9.js → persistent-pty-tcezcvh9.js} +1 -1
- package/dist/chunks/{filesystem-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{filesystem-phnksyfb.js → persistent-pty-th9j4zfv.js} +50 -50
- package/dist/chunks/{filesystem-a46v4e4v.js → persistent-pty-tkmwgdpd.js} +7 -7
- package/dist/chunks/{filesystem-fpmq6gma.js → persistent-pty-tn0aqsam.js} +5 -5
- package/dist/chunks/{filesystem-ac9yf703.js → persistent-pty-tn6kcrep.js} +30 -30
- package/dist/chunks/{filesystem-ra6n8sk1.js → persistent-pty-trn6fzsq.js} +4 -4
- package/dist/chunks/{filesystem-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
- package/dist/chunks/{filesystem-8z6evsjd.js → persistent-pty-tysjjvy9.js} +6 -6
- package/dist/chunks/{filesystem-p5eadnhw.js → persistent-pty-v0wtswx9.js} +17 -17
- package/dist/chunks/{filesystem-45pqravd.js → persistent-pty-v1qx6y19.js} +8 -8
- package/dist/chunks/{filesystem-5jtdmvnp.js → persistent-pty-vabb23s0.js} +1 -1
- package/dist/chunks/{filesystem-n819r5x6.js → persistent-pty-vbqtc4fz.js} +16 -16
- package/dist/chunks/{filesystem-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{filesystem-jy16bfac.js → persistent-pty-vypqtakx.js} +1 -1
- package/dist/chunks/{filesystem-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
- package/dist/chunks/{filesystem-1d6xgsn1.js → persistent-pty-w3jexmf5.js} +46 -46
- package/dist/chunks/{filesystem-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{filesystem-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{filesystem-jmgfrcfm.js → persistent-pty-wed3qxc6.js} +5 -5
- package/dist/chunks/{filesystem-80e0yyk8.js → persistent-pty-wgmz4se6.js} +4 -4
- package/dist/chunks/{filesystem-6175y1py.js → persistent-pty-wp1zmha7.js} +13 -13
- package/dist/chunks/{filesystem-qynpn6w3.js → persistent-pty-ws5qfxv9.js} +9 -9
- package/dist/chunks/{filesystem-6nvdcf2p.js → persistent-pty-www25bj0.js} +11 -11
- package/dist/chunks/{filesystem-851r6173.js → persistent-pty-wwxgka64.js} +8 -8
- package/dist/chunks/{filesystem-3jp54z3r.js → persistent-pty-wx9wy1qm.js} +1 -1
- package/dist/chunks/{filesystem-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
- package/dist/chunks/{filesystem-x43y2vfs.js → persistent-pty-x43y2vfs.js} +2 -2
- package/dist/chunks/{filesystem-va2cr1hn.js → persistent-pty-x9y61efs.js} +24 -24
- package/dist/chunks/{filesystem-7wc683m2.js → persistent-pty-xhqkdcr0.js} +2 -2
- package/dist/chunks/{filesystem-0my5tm07.js → persistent-pty-xr3qwqh4.js} +16 -16
- package/dist/chunks/{filesystem-306yx9xs.js → persistent-pty-xrdkskw0.js} +22 -22
- package/dist/chunks/{filesystem-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{filesystem-55azg7hm.js → persistent-pty-y59nms7p.js} +32 -32
- package/dist/chunks/{filesystem-y71avatq.js → persistent-pty-y71avatq.js} +1 -1
- package/dist/chunks/persistent-pty-y7yp40hx.js +462 -0
- package/dist/chunks/{filesystem-87deq66t.js → persistent-pty-y8p3zjbc.js} +6 -6
- package/dist/chunks/{filesystem-wgnc4fqp.js → persistent-pty-y9g26qgq.js} +19 -19
- package/dist/chunks/{filesystem-mmqk02zq.js → persistent-pty-ydvjgqzz.js} +24 -24
- package/dist/chunks/{filesystem-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
- package/dist/chunks/{filesystem-s4enseaf.js → persistent-pty-yrznvahk.js} +2 -2
- package/dist/chunks/persistent-pty-yxt3f3md.js +228 -0
- package/dist/chunks/{filesystem-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{filesystem-ca4qmn19.js → persistent-pty-z1hva277.js} +16 -16
- package/dist/chunks/{filesystem-29x78va6.js → persistent-pty-z63w68vq.js} +6 -6
- package/dist/chunks/{filesystem-at1f71x6.js → persistent-pty-z7exr65g.js} +20 -20
- package/dist/chunks/{filesystem-0ja9s148.js → persistent-pty-z807qtb6.js} +20 -20
- package/dist/chunks/{filesystem-jzdnffp3.js → persistent-pty-z9ftmr1k.js} +9 -9
- package/dist/chunks/{filesystem-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
- package/dist/chunks/{filesystem-pahszt5y.js → persistent-pty-zhakcjh9.js} +8 -8
- package/dist/chunks/{filesystem-x553xac2.js → persistent-pty-zhbcekg2.js} +9 -9
- package/dist/chunks/{filesystem-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{filesystem-6v7xqtha.js → persistent-pty-zr7f6xwe.js} +6 -6
- package/dist/chunks/{filesystem-apbzxcta.js → persistent-pty-zxperdw5.js} +76 -76
- package/dist/chunks/{filesystem-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/chunks/{filesystem-jtc6bzgn.js → persistent-pty-zyrrefe2.js} +33 -33
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +77 -77
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +19 -19
- package/dist/config/plugin/agent.js +117 -117
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +115 -115
- package/dist/config/plugin/instruction.js +85 -85
- package/dist/config/plugin/location-watcher.js +115 -115
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +114 -114
- package/dist/config/plugin/provider.js +113 -113
- package/dist/config/plugin/reference.js +117 -117
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +97 -97
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +115 -115
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +113 -113
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +81 -81
- package/dist/database/database.js +64 -64
- 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.gen.js +47 -47
- package/dist/database/migration.js +49 -49
- 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 +74 -74
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +361 -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 +88 -88
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +90 -90
- 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 +68 -68
- package/dist/file-access.js +99 -99
- package/dist/file-mutation.js +89 -89
- 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 +220 -220
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +100 -100
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +78 -78
- package/dist/generate.js +89 -89
- package/dist/git.js +3 -3
- 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 +3 -3
- 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 +352 -352
- package/dist/instruction-discovery.js +83 -83
- package/dist/instructions/builtins.js +82 -82
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +80 -80
- package/dist/job.js +75 -75
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +71 -71
- package/dist/location-activity.js +128 -128
- package/dist/location-mutation.js +99 -99
- package/dist/location-service-map.js +81 -81
- package/dist/location-services.js +349 -349
- package/dist/location.js +80 -80
- package/dist/mcp/client.js +86 -86
- package/dist/mcp/index.js +101 -101
- package/dist/mcp/instructions.js +120 -120
- package/dist/mcp/oauth.js +3 -3
- package/dist/mcp/stdio.js +85 -85
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +86 -86
- package/dist/model.js +2 -2
- package/dist/models-dev.js +86 -86
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +110 -110
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +73 -73
- package/dist/plugin/agent.js +99 -99
- package/dist/plugin/command.js +96 -96
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +213 -213
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +323 -323
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +75 -75
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +97 -97
- 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/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +117 -117
- package/dist/plugin/provider/cloudflare-workers-ai.js +117 -117
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/digitalocean.js +79 -79
- 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 +80 -80
- 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 +76 -76
- package/dist/plugin/provider/lmstudio.js +117 -117
- package/dist/plugin/provider/mistral.js +2 -2
- package/dist/plugin/provider/modal.js +79 -79
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +117 -117
- package/dist/plugin/provider/openai-compatible.js +1 -1
- package/dist/plugin/provider/openai.js +80 -80
- package/dist/plugin/provider/opencode.js +76 -76
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/perplexity.js +2 -2
- 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 +118 -5
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +117 -117
- package/dist/plugin/provider/xai.js +77 -77
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +133 -133
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +338 -338
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +82 -82
- package/dist/plugin/vcs/hg.js +82 -82
- package/dist/plugin/warming.js +112 -112
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +8 -8
- 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.js +220 -220
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +75 -75
- package/dist/provider.js +5 -5
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +82 -82
- package/dist/reference/instructions.js +82 -82
- package/dist/reference.js +82 -82
- package/dist/repository-cache.js +76 -76
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +93 -93
- package/dist/rpc.js +81 -81
- package/dist/schema.js +1 -1
- package/dist/session/command.js +72 -72
- package/dist/session/compaction.js +123 -123
- package/dist/session/context.js +147 -147
- 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 +215 -215
- package/dist/session/execution.js +122 -122
- package/dist/session/generate.js +146 -146
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +82 -82
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +75 -75
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +92 -92
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +111 -111
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +84 -84
- package/dist/session/prompt.js +100 -100
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +85 -85
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -223
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +86 -86
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +110 -110
- package/dist/session/runner/step.js +119 -119
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +169 -169
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +98 -98
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +71 -71
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +145 -145
- package/dist/session/to-session-error.js +107 -107
- package/dist/session/transfer.js +207 -207
- package/dist/session/usage.js +1 -1
- package/dist/session.js +211 -211
- 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 +13 -13
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +100 -100
- package/dist/skill.js +103 -103
- package/dist/snapshot.js +84 -84
- 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 +119 -119
- package/dist/tool/plugin/edit.js +115 -115
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +118 -118
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +115 -115
- package/dist/tool/plugin/question.js +96 -96
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +106 -106
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +103 -103
- package/dist/tool/plugin/websearch.js +107 -107
- package/dist/tool/plugin/write.js +117 -117
- package/dist/tool/read-filesystem.js +96 -96
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +15 -15
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +5 -4
- 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 +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- 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 +1 -1
- 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 +85 -85
- package/dist/websearch.js +74 -74
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +5 -5
- package/dist/worktree/refresh.js +339 -339
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree.js +87 -87
- package/package.json +8 -8
- package/dist/chunks/filesystem-de4mmwy9.js +0 -247
- package/dist/chunks/filesystem-gbeg4n2a.js +0 -22
- package/dist/chunks/filesystem-k0k8y9a7.js +0 -71
- package/dist/chunks/filesystem-nb2mwgfq.js +0 -462
- package/dist/chunks/filesystem-rap9a73h.js +0 -18
- /package/dist/chunks/{filesystem-0mesazry.js → persistent-pty-0mesazry.js} +0 -0
- /package/dist/chunks/{filesystem-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{filesystem-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{filesystem-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{filesystem-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{filesystem-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{filesystem-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{filesystem-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{filesystem-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{filesystem-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{filesystem-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{filesystem-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{filesystem-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
- /package/dist/chunks/{filesystem-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{filesystem-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{filesystem-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{filesystem-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{filesystem-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{filesystem-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{filesystem-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{filesystem-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{filesystem-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{filesystem-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{filesystem-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{filesystem-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{filesystem-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
- /package/dist/chunks/{filesystem-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{filesystem-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{filesystem-a1tpkmh4.js → persistent-pty-a1tpkmh4.js} +0 -0
- /package/dist/chunks/{filesystem-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{filesystem-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{filesystem-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{filesystem-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{filesystem-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{filesystem-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{filesystem-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{filesystem-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{filesystem-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{filesystem-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{filesystem-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{filesystem-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{filesystem-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{filesystem-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{filesystem-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{filesystem-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{filesystem-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{filesystem-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{filesystem-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{filesystem-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{filesystem-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{filesystem-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{filesystem-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{filesystem-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{filesystem-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{filesystem-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{filesystem-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{filesystem-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{filesystem-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{filesystem-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
- /package/dist/chunks/{filesystem-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{filesystem-hrnqkpcd.js → persistent-pty-hrnqkpcd.js} +0 -0
- /package/dist/chunks/{filesystem-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{filesystem-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{filesystem-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{filesystem-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{filesystem-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{filesystem-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{filesystem-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{filesystem-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{filesystem-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{filesystem-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{filesystem-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{filesystem-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{filesystem-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{filesystem-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{filesystem-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{filesystem-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{filesystem-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{filesystem-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{filesystem-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{filesystem-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{filesystem-twg0f83k.js → persistent-pty-twg0f83k.js} +0 -0
- /package/dist/chunks/{filesystem-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{filesystem-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{filesystem-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{filesystem-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{filesystem-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{filesystem-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{filesystem-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
- /package/dist/chunks/{filesystem-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{filesystem-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{filesystem-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID14,
|
|
3
3
|
Family2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-wgmz4se6.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service51
|
|
7
|
+
} from "./persistent-pty-mjkd0a6p.js";
|
|
8
8
|
import {
|
|
9
9
|
foldSettings2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./persistent-pty-fthsm4kn.js";
|
|
11
11
|
|
|
12
12
|
// src/plugin/provider/ollama.ts
|
|
13
13
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -45,12 +45,12 @@ var ShowResponse = Schema.Struct({
|
|
|
45
45
|
});
|
|
46
46
|
var discovery = new Map;
|
|
47
47
|
var discoveryLock = Semaphore.makeUnsafe(1);
|
|
48
|
-
function
|
|
48
|
+
function make5(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
49
49
|
return define({
|
|
50
50
|
id: "opencode.provider.ollama",
|
|
51
51
|
effect: Effect.fn(function* (ctx) {
|
|
52
52
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
53
|
-
const config = yield*
|
|
53
|
+
const config = yield* Service51;
|
|
54
54
|
const source = { current: configured(yield* config.entries(), origin) };
|
|
55
55
|
const loaded = { models: [], hash: "[]" };
|
|
56
56
|
yield* ctx.integration.transform((integrations) => {
|
|
@@ -151,7 +151,7 @@ function make9(origin = "http://127.0.0.1:11434", interval = "30 seconds") {
|
|
|
151
151
|
})
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
|
-
var OllamaPlugin2 =
|
|
154
|
+
var OllamaPlugin2 = make5();
|
|
155
155
|
function configured(entries, origin) {
|
|
156
156
|
const settings = foldSettings2(entries, providerID, undefined);
|
|
157
157
|
const baseURL = (typeof settings?.baseURL === "string" ? settings.baseURL : `${origin.replace(/\/+$/, "")}/v1`).replace(/\/+$/, "");
|
|
@@ -170,4 +170,4 @@ function configured(entries, origin) {
|
|
|
170
170
|
return { baseURL, apiKey, tagsEndpoint, showEndpoint: url.toString() };
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
export {
|
|
173
|
+
export { make5, OllamaPlugin2 };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-28wyaaxp.js";
|
|
5
5
|
import {
|
|
6
6
|
Service78,
|
|
7
7
|
node83
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./persistent-pty-jefma2gq.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service76,
|
|
11
|
+
node81
|
|
12
|
+
} from "./persistent-pty-4hbnwbp2.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-dxj72tfx.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service52,
|
|
18
|
+
node55
|
|
19
|
+
} from "./persistent-pty-ht8yq9j7.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
node22
|
|
22
|
+
} from "./persistent-pty-eqw6cy2w.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service11,
|
|
25
|
+
node14
|
|
26
|
+
} from "./persistent-pty-hrvd6t1f.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/filesystem/location-watcher.ts
|
|
32
32
|
var exports_location_watcher2 = {};
|
|
33
33
|
__export(exports_location_watcher2, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher2,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service10,
|
|
36
|
+
node: () => node13
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service10 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
45
|
+
var layer = Layer.effect(Service10, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service76;
|
|
47
|
+
const watcher = yield* Service52;
|
|
48
48
|
const bus = yield* Service79;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
50
|
const git = yield* Service78;
|
|
51
|
-
const policy = yield*
|
|
51
|
+
const policy = yield* Service11;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service10.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node13 = makeLocationNode({
|
|
106
|
+
service: Service10,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node55, FSUtil.node, node81, node83, node84, node22, node14]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service10, node13, exports_location_watcher2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service59
|
|
3
|
+
} from "./persistent-pty-725dzfhf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service64
|
|
6
|
+
} from "./persistent-pty-rxv86vcs.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/tool/plugin/question.ts
|
|
12
12
|
var exports_question = {};
|
|
@@ -53,8 +53,8 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin45 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service59;
|
|
57
|
+
const permission = yield* Service64;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
59
|
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID16,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./persistent-pty-84tssp1s.js";
|
|
6
6
|
|
|
7
7
|
// src/plugin/provider/google-vertex.ts
|
|
8
8
|
import { Effect } from "effect";
|
|
@@ -39,7 +39,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
39
39
|
for (const item of evt.provider.list()) {
|
|
40
40
|
if (!isAISDK2(item.provider.package))
|
|
41
41
|
continue;
|
|
42
|
-
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id ===
|
|
42
|
+
if (packageName2(item.provider.package) !== "@ai-sdk/google-vertex" && !(item.provider.id === ID16.googleVertex && packageName2(item.provider.package)?.includes("@ai-sdk/openai-compatible")))
|
|
43
43
|
continue;
|
|
44
44
|
const project = resolveProject(item.provider.settings ?? {});
|
|
45
45
|
const location = String(resolveLocation(item.provider.settings ?? {}));
|
|
@@ -56,7 +56,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
56
56
|
}
|
|
57
57
|
});
|
|
58
58
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
59
|
-
if (evt.model.providerID ===
|
|
59
|
+
if (evt.model.providerID === ID16.googleVertex && evt.package.includes("@ai-sdk/openai-compatible")) {
|
|
60
60
|
evt.options.fetch = authFetch(evt.options.fetch);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
@@ -87,7 +87,7 @@ var GoogleVertexPlugin2 = define({
|
|
|
87
87
|
});
|
|
88
88
|
}));
|
|
89
89
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
90
|
-
if (evt.model.providerID !==
|
|
90
|
+
if (evt.model.providerID !== ID16.googleVertex)
|
|
91
91
|
return;
|
|
92
92
|
evt.language = evt.sdk.languageModel(String(evt.model.modelID ?? evt.model.id).trim());
|
|
93
93
|
}));
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/provider-context.ts
|
|
6
6
|
var exports_provider_context = {};
|
|
7
7
|
__export(exports_provider_context, {
|
|
8
|
-
Info: () =>
|
|
8
|
+
Info: () => Info24,
|
|
9
9
|
SessionProviderContext: () => exports_provider_context,
|
|
10
10
|
compatible: () => compatible2,
|
|
11
11
|
decode: () => decode2,
|
|
@@ -19,7 +19,7 @@ import { SessionProviderContext } from "@opencode/schema/session-provider-contex
|
|
|
19
19
|
import { Schema } from "effect";
|
|
20
20
|
import { isDeepStrictEqual } from "node:util";
|
|
21
21
|
import { Hash } from "@opencode/util/hash";
|
|
22
|
-
var
|
|
22
|
+
var Info24 = SessionProviderContext.Info;
|
|
23
23
|
var messages = Schema.toCodecJson(Schema.Array(Message));
|
|
24
24
|
function provenance2(resolved) {
|
|
25
25
|
const model = resolved.model;
|
|
@@ -52,4 +52,4 @@ var encode2 = (provenance, replacement) => ({
|
|
|
52
52
|
var decode2 = (context) => Schema.decodeUnknownSync(messages)(context.messages);
|
|
53
53
|
var validate2 = (context) => Schema.decodeUnknownEffect(messages)(context.messages);
|
|
54
54
|
|
|
55
|
-
export {
|
|
55
|
+
export { Info24, provenance2, compatible2, isCheckpoint2, encode2, decode2, validate2, exports_provider_context };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-bbf85as9.js";
|
|
5
5
|
import {
|
|
6
6
|
latestSequence2,
|
|
7
7
|
Service79,
|
|
8
8
|
node84
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-28wyaaxp.js";
|
|
10
10
|
import {
|
|
11
11
|
llmClient2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-5t3nmthw.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
firstUserMessage2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./persistent-pty-es9s4w7e.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service65,
|
|
21
|
+
node69
|
|
22
|
+
} from "./persistent-pty-z1hva277.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service29,
|
|
25
|
+
node34
|
|
26
|
+
} from "./persistent-pty-cvjh1vra.js";
|
|
27
27
|
import {
|
|
28
28
|
record2,
|
|
29
29
|
add2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./persistent-pty-tdstcens.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/title.ts
|
|
36
36
|
var exports_title = {};
|
|
@@ -61,8 +61,8 @@ var isUntitled2 = (session) => isExactRootFallback({
|
|
|
61
61
|
var layer3 = Layer.effect(Service2, Effect.gen(function* () {
|
|
62
62
|
const bus = yield* Service79;
|
|
63
63
|
const llm = yield* LLMClient.Service;
|
|
64
|
-
const context = yield*
|
|
65
|
-
const store = yield*
|
|
64
|
+
const context = yield* Service29;
|
|
65
|
+
const store = yield* Service65;
|
|
66
66
|
const db = (yield* Service80).db;
|
|
67
67
|
const attempt = Effect.fn("SessionTitle.attempt")(function* (input) {
|
|
68
68
|
const chunks = [];
|
|
@@ -150,7 +150,7 @@ Recent conversation:
|
|
|
150
150
|
var node4 = makeLocationNode({
|
|
151
151
|
service: Service2,
|
|
152
152
|
layer: layer3,
|
|
153
|
-
deps: [node84, llmClient2,
|
|
153
|
+
deps: [node84, llmClient2, node34, node69, node85]
|
|
154
154
|
});
|
|
155
155
|
|
|
156
156
|
export { Service2, isUntitled2, layer3, node4, exports_title };
|
|
@@ -1,70 +1,70 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-28wyaaxp.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service76,
|
|
7
|
+
node81
|
|
8
|
+
} from "./persistent-pty-4hbnwbp2.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
ID13,
|
|
11
|
+
Service67,
|
|
12
|
+
node71
|
|
13
|
+
} from "./persistent-pty-x9y61efs.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
NotFoundError9
|
|
16
|
+
} from "./persistent-pty-3dtz0ed4.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service65,
|
|
19
|
+
node69
|
|
20
|
+
} from "./persistent-pty-z1hva277.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./persistent-pty-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service66,
|
|
26
|
+
node70
|
|
27
|
+
} from "./persistent-pty-egg00cm7.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service68,
|
|
30
|
+
node72
|
|
31
|
+
} from "./persistent-pty-ddx3tg71.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
|
-
var
|
|
38
|
-
__export(
|
|
37
|
+
var exports_permission2 = {};
|
|
38
|
+
__export(exports_permission2, {
|
|
39
39
|
AskResult: () => AskResult2,
|
|
40
40
|
AssertInput: () => AssertInput2,
|
|
41
41
|
BlockedError: () => BlockedError2,
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
48
|
-
Permission: () =>
|
|
49
|
-
Reply: () =>
|
|
45
|
+
Event: () => Event17,
|
|
46
|
+
ID: () => ID10,
|
|
47
|
+
NotFoundError: () => NotFoundError8,
|
|
48
|
+
Permission: () => exports_permission2,
|
|
49
|
+
Reply: () => Reply3,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
51
|
Request: () => Request2,
|
|
52
|
-
Rule: () =>
|
|
52
|
+
Rule: () => Rule3,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service64,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node68
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
|
-
import { Rule as
|
|
64
|
-
import { Event as
|
|
63
|
+
import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
+
import { Event as Event17 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID10 = Permission.ID;
|
|
68
68
|
var Source5 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -75,19 +75,19 @@ var RequestFields = {
|
|
|
75
75
|
source: Permission.Request.fields.source
|
|
76
76
|
};
|
|
77
77
|
var Request2 = Permission.Request;
|
|
78
|
-
var
|
|
78
|
+
var Reply3 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID10.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID13.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
86
|
-
reply:
|
|
85
|
+
requestID: ID10,
|
|
86
|
+
reply: Reply3,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID10,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError8 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID10
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service64 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
130
|
+
var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
131
131
|
const bus = yield* Service79;
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
132
|
+
const location = yield* Service76;
|
|
133
|
+
const agents = yield* Service67;
|
|
134
|
+
const sessions = yield* Service65;
|
|
135
|
+
const saved = yield* Service66;
|
|
136
|
+
const hooks = yield* Service68;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
yield* Effect.addFinalizer(() => Effect.forEach(pending.values(), (item) => Deferred.fail(item.deferred, new DeclinedError2), {
|
|
139
139
|
discard: true
|
|
@@ -150,7 +150,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
150
150
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
151
151
|
const session = yield* sessions.get(sessionID);
|
|
152
152
|
if (!session)
|
|
153
|
-
return yield* new
|
|
153
|
+
return yield* new NotFoundError9({ sessionID });
|
|
154
154
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
155
155
|
return agent?.permissions ?? missingAgentPermissions;
|
|
156
156
|
});
|
|
@@ -180,7 +180,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
180
180
|
});
|
|
181
181
|
function request(input, message) {
|
|
182
182
|
return {
|
|
183
|
-
id: input.id ??
|
|
183
|
+
id: input.id ?? ID10.create(),
|
|
184
184
|
sessionID: input.sessionID,
|
|
185
185
|
action: input.action,
|
|
186
186
|
resources: input.resources,
|
|
@@ -228,7 +228,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
228
228
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
229
229
|
const existing = pending.get(input.requestID);
|
|
230
230
|
if (!existing)
|
|
231
|
-
return yield* new
|
|
231
|
+
return yield* new NotFoundError8({ requestID: input.requestID });
|
|
232
232
|
yield* bus.publish(Permission.Event.Replied, {
|
|
233
233
|
sessionID: existing.request.sessionID,
|
|
234
234
|
requestID: existing.request.id,
|
|
@@ -283,12 +283,12 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
283
283
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
284
284
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
285
285
|
});
|
|
286
|
-
return
|
|
286
|
+
return Service64.of({ ask, assert, reply, get, forSession, list });
|
|
287
287
|
}));
|
|
288
|
-
var
|
|
289
|
-
service:
|
|
288
|
+
var node68 = makeLocationNode({
|
|
289
|
+
service: Service64,
|
|
290
290
|
layer,
|
|
291
|
-
deps: [node84,
|
|
291
|
+
deps: [node84, node81, node71, node69, node70, node72]
|
|
292
292
|
});
|
|
293
293
|
|
|
294
|
-
export { PermissionEffect,
|
|
294
|
+
export { PermissionEffect, ID10, Source5, Request2, Reply3, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError8, evaluate2, merge2, Service64, node68, exports_permission2, Rule3, Ruleset2, Event17 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/mcp-codemode-exclusion.ts
|
|
6
6
|
var exports_mcp_codemode_exclusion = {};
|
|
7
7
|
__export(exports_mcp_codemode_exclusion, {
|
|
8
8
|
McpCodeModeExclusionPlugin: () => exports_mcp_codemode_exclusion,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin22
|
|
10
10
|
});
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
var urls = [/^https:\/\/executor\.sh\/[^/]+\/mcp$/];
|
|
14
|
-
var
|
|
14
|
+
var Plugin22 = define({
|
|
15
15
|
id: "opencode.mcp.codemode.exclusion",
|
|
16
16
|
effect: Effect.fn(function* (ctx) {
|
|
17
17
|
yield* ctx.mcp.transform((editor) => {
|
|
@@ -34,4 +34,4 @@ var Plugin38 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin22, exports_mcp_codemode_exclusion };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-33w4ejhs.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin17,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
13
|
endpoint: () => endpoint4
|
|
14
14
|
});
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin17 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export { endpoint4,
|
|
83
|
+
export { endpoint4, Plugin17, exports_exa };
|
|
@@ -2,26 +2,26 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./persistent-pty-922hggd3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service73,
|
|
8
|
+
node77
|
|
9
|
+
} from "./persistent-pty-k1v94gwx.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./persistent-pty-8d7r5vzw.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
19
19
|
__export(exports_ripgrep, {
|
|
20
|
-
Error: () =>
|
|
20
|
+
Error: () => Error2,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service17,
|
|
24
|
+
node: () => node20
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/unstable/process";
|
|
@@ -46,7 +46,7 @@ var RawMatch = Schema.Struct({
|
|
|
46
46
|
});
|
|
47
47
|
var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
|
|
48
48
|
|
|
49
|
-
class
|
|
49
|
+
class Error2 extends Schema.TaggedError()("Ripgrep.Error", {
|
|
50
50
|
message: Schema.String,
|
|
51
51
|
cause: Schema.optional(Schema.Defect())
|
|
52
52
|
}) {
|
|
@@ -58,13 +58,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
58
58
|
}) {
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
class
|
|
61
|
+
class Service17 extends Context.Service()("@opencode/Ripgrep") {
|
|
62
62
|
}
|
|
63
|
-
var failure = (message, cause) => new
|
|
63
|
+
var failure = (message, cause) => new Error2({ message, cause });
|
|
64
64
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
65
65
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
66
|
-
var layer = Layer.effect(
|
|
67
|
-
const environment = yield*
|
|
66
|
+
var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
67
|
+
const environment = yield* Service73;
|
|
68
68
|
const binary = yield* RipgrepBinary2.Service;
|
|
69
69
|
const run = (input) => {
|
|
70
70
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -90,9 +90,9 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
90
90
|
return code === 1 ? [] : rows;
|
|
91
91
|
}));
|
|
92
92
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
93
|
-
return abortable.pipe(Effect.mapError((cause) => cause instanceof
|
|
93
|
+
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error2 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
94
94
|
};
|
|
95
|
-
return
|
|
95
|
+
return Service17.of({
|
|
96
96
|
glob: (input) => run({
|
|
97
97
|
cwd: input.cwd,
|
|
98
98
|
limit: input.limit,
|
|
@@ -174,6 +174,6 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
174
174
|
}))))
|
|
175
175
|
});
|
|
176
176
|
}));
|
|
177
|
-
var
|
|
177
|
+
var node20 = makeLocationNode({ service: Service17, layer, deps: [node77, RipgrepBinary2.node] });
|
|
178
178
|
|
|
179
|
-
export {
|
|
179
|
+
export { Error2, InvalidPatternError2, Service17, node20, exports_ripgrep };
|