@opencode/core 0.0.0-dev-21463 → 0.0.0-dev-21474
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -96
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{ripgrep-a20pjse5.js → shell-02mvvr71.js} +3 -3
- package/dist/chunks/{ripgrep-cvb5s8dx.js → shell-031dz6qq.js} +11 -11
- package/dist/chunks/{ripgrep-aj7mw0zk.js → shell-034tev2y.js} +2 -2
- package/dist/chunks/{ripgrep-0javqkgf.js → shell-0javqkgf.js} +2 -2
- package/dist/chunks/{ripgrep-hfj6ba10.js → shell-0r1sze87.js} +28 -28
- package/dist/chunks/{ripgrep-0vbcp93d.js → shell-0vbcp93d.js} +2 -2
- package/dist/chunks/{ripgrep-ye7bjynm.js → shell-0y52mb4t.js} +7 -7
- package/dist/chunks/{ripgrep-rpbyp8pn.js → shell-10fdd7m2.js} +5 -5
- package/dist/chunks/{ripgrep-1rwjpbn5.js → shell-18c04net.js} +26 -26
- package/dist/chunks/{ripgrep-5wdmk2gh.js → shell-1a4k3fgm.js} +22 -22
- package/dist/chunks/{ripgrep-gw2dacjw.js → shell-1cn4jcr5.js} +33 -33
- package/dist/chunks/{ripgrep-bd8280h5.js → shell-1djwqam2.js} +19 -19
- package/dist/chunks/{ripgrep-c1kvbfjw.js → shell-1eezgq1q.js} +14 -14
- package/dist/chunks/{ripgrep-27w5k9zf.js → shell-1ep2p91f.js} +2 -2
- package/dist/chunks/{ripgrep-abwmzdm0.js → shell-1wdr2gyj.js} +16 -16
- package/dist/chunks/{ripgrep-j4axjra1.js → shell-1y4t10jc.js} +11 -11
- package/dist/chunks/{ripgrep-vc4gp4va.js → shell-2405xxdm.js} +21 -21
- package/dist/chunks/{ripgrep-5cwz5tfs.js → shell-274qjpyr.js} +6 -6
- package/dist/chunks/{ripgrep-7jxgd9ay.js → shell-2bgg218e.js} +24 -24
- package/dist/chunks/{ripgrep-zky955f5.js → shell-2ksy28s1.js} +20 -20
- package/dist/chunks/{ripgrep-298dhb3n.js → shell-2s6dvjm8.js} +21 -21
- package/dist/chunks/{ripgrep-qwjmgwmn.js → shell-30846h32.js} +8 -8
- package/dist/chunks/{ripgrep-6mjf37c3.js → shell-3db5z6nj.js} +26 -26
- package/dist/chunks/{ripgrep-jyarf421.js → shell-3e6t89rp.js} +5 -5
- package/dist/chunks/{ripgrep-4yszj04w.js → shell-3h206gsx.js} +33 -33
- package/dist/chunks/{ripgrep-3hepkmqq.js → shell-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-3hwn7j4h.js → shell-3hwn7j4h.js} +2 -2
- package/dist/chunks/{ripgrep-3tvqynh2.js → shell-3tvqynh2.js} +1 -1
- package/dist/chunks/{ripgrep-5kk0g6xv.js → shell-3z47e1q3.js} +13 -13
- package/dist/chunks/{ripgrep-3zsf4n22.js → shell-3zsf4n22.js} +1 -1
- package/dist/chunks/{ripgrep-2wvr9kck.js → shell-4f0dxzkx.js} +47 -47
- package/dist/chunks/{ripgrep-jga877gc.js → shell-4mpfc065.js} +17 -17
- package/dist/chunks/{ripgrep-dcf9rm2z.js → shell-4mysfaem.js} +3 -3
- package/dist/chunks/{ripgrep-e0d821cc.js → shell-4x3rb0w8.js} +5 -5
- package/dist/chunks/{ripgrep-1jshh0hj.js → shell-4y64nfaj.js} +21 -21
- package/dist/chunks/{ripgrep-pq2gcbye.js → shell-4zkkyyzw.js} +20 -20
- package/dist/chunks/{ripgrep-ng3918dk.js → shell-518cpg7m.js} +8 -8
- package/dist/chunks/{ripgrep-sxzvkvgj.js → shell-51f5btjf.js} +6 -6
- package/dist/chunks/{ripgrep-dtt6326j.js → shell-53z78fmx.js} +9 -9
- package/dist/chunks/{ripgrep-54ma36ye.js → shell-54ma36ye.js} +1 -1
- package/dist/chunks/{ripgrep-72x17vkx.js → shell-55m81wnp.js} +12 -12
- package/dist/chunks/{ripgrep-2sejkfem.js → shell-5d607bsg.js} +9 -9
- package/dist/chunks/{ripgrep-rqbrrxj6.js → shell-5drt1p2d.js} +13 -13
- package/dist/chunks/{ripgrep-pyv0edze.js → shell-5fjb7ams.js} +4 -4
- package/dist/chunks/{ripgrep-5g57z1ma.js → shell-5g57z1ma.js} +1 -1
- package/dist/chunks/{ripgrep-rbnhhjf8.js → shell-5m0z0vbp.js} +46 -46
- package/dist/chunks/{ripgrep-5m9w47nd.js → shell-5m9w47nd.js} +1 -1
- package/dist/chunks/{ripgrep-j0pnngg3.js → shell-5vkfphhp.js} +22 -22
- package/dist/chunks/{ripgrep-06h1tyz4.js → shell-5vtnzdvh.js} +4 -4
- package/dist/chunks/{ripgrep-1w5qwmmm.js → shell-5yedj4sq.js} +8 -8
- package/dist/chunks/{ripgrep-22v61q2t.js → shell-5z3ty1st.js} +11 -11
- package/dist/chunks/{ripgrep-6827pfxn.js → shell-6827pfxn.js} +1 -1
- package/dist/chunks/{ripgrep-b7pfhk9a.js → shell-6fp2d1d9.js} +18 -18
- package/dist/chunks/{ripgrep-251hxpd6.js → shell-6gb59z7y.js} +2 -2
- package/dist/chunks/{ripgrep-hhvzr4qm.js → shell-6gw3719p.js} +23 -23
- package/dist/chunks/{ripgrep-m1q28qka.js → shell-6rfh3hr4.js} +10 -10
- package/dist/chunks/{ripgrep-44ak30pa.js → shell-6t4hr8r6.js} +4 -4
- package/dist/chunks/{ripgrep-6xb47vfp.js → shell-6xb47vfp.js} +1 -1
- package/dist/chunks/{ripgrep-1gvanxjs.js → shell-73cvp0d7.js} +35 -35
- package/dist/chunks/{ripgrep-775gj3j1.js → shell-775gj3j1.js} +2 -2
- package/dist/chunks/{ripgrep-7bmhse3q.js → shell-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-7dqw4kz8.js → shell-7dqw4kz8.js} +1 -1
- package/dist/chunks/{ripgrep-bqwheb6v.js → shell-7erbtyx3.js} +11 -11
- package/dist/chunks/{ripgrep-efw5yz4r.js → shell-7fdk8hc2.js} +45 -45
- package/dist/chunks/{ripgrep-jqvncec7.js → shell-7ka0b1x2.js} +35 -35
- package/dist/chunks/{ripgrep-ywrpet35.js → shell-7rdmhycs.js} +27 -27
- package/dist/chunks/{ripgrep-84txncab.js → shell-84txncab.js} +1 -1
- package/dist/chunks/{ripgrep-k9tfrms9.js → shell-8c464aba.js} +9 -9
- package/dist/chunks/{ripgrep-s9x4dfc6.js → shell-8dqakt6y.js} +14 -14
- package/dist/chunks/{ripgrep-g721rhm1.js → shell-8jcfdq83.js} +17 -17
- package/dist/chunks/{ripgrep-8m6m0r52.js → shell-8m6m0r52.js} +1 -1
- package/dist/chunks/{ripgrep-8mywswrd.js → shell-8mywswrd.js} +1 -1
- package/dist/chunks/{ripgrep-mk60gw4q.js → shell-8q2dnp38.js} +15 -15
- package/dist/chunks/{ripgrep-py3kkmfq.js → shell-8sze2n9a.js} +6 -6
- package/dist/chunks/{ripgrep-xh90p7br.js → shell-8tmj3wng.js} +15 -15
- package/dist/chunks/{ripgrep-e33zja9b.js → shell-905zhqsw.js} +36 -36
- package/dist/chunks/{ripgrep-hcv80w8f.js → shell-967benbv.js} +11 -11
- package/dist/chunks/{ripgrep-wqgd9sqk.js → shell-99js1k2h.js} +19 -19
- package/dist/chunks/{ripgrep-mez1mdm0.js → shell-9b5ejg1q.js} +18 -18
- package/dist/chunks/{ripgrep-eyakfeqd.js → shell-9ctqrb5b.js} +14 -14
- package/dist/chunks/{ripgrep-6ypqa0d2.js → shell-9dm4tzrk.js} +33 -33
- package/dist/chunks/{ripgrep-kxpg0xct.js → shell-9gxde5n1.js} +2 -2
- package/dist/chunks/{ripgrep-avj6wgd7.js → shell-9k8pcz7j.js} +28 -28
- package/dist/chunks/{ripgrep-pa098ddb.js → shell-9p1sbxph.js} +45 -45
- package/dist/chunks/{ripgrep-8hs2d1kn.js → shell-9pga77eq.js} +18 -23
- package/dist/chunks/{ripgrep-9wev2pgg.js → shell-9wev2pgg.js} +1 -1
- package/dist/chunks/{ripgrep-mmjfp5s5.js → shell-9zwayr6v.js} +13 -13
- package/dist/chunks/{ripgrep-x661k3y3.js → shell-addxnjmp.js} +4 -4
- package/dist/chunks/{ripgrep-r8ay4eh8.js → shell-advv0bgh.js} +14 -14
- package/dist/chunks/{ripgrep-gk6en6xk.js → shell-ahkdh84r.js} +35 -35
- package/dist/chunks/{ripgrep-bmff2rpw.js → shell-ajwh877x.js} +24 -24
- package/dist/chunks/{ripgrep-mda08b8j.js → shell-akbpfsbh.js} +6 -6
- package/dist/chunks/{ripgrep-3220qrgn.js → shell-am1tmpj5.js} +10 -10
- package/dist/chunks/{ripgrep-6gya5b2a.js → shell-asypmx3c.js} +45 -47
- package/dist/chunks/{ripgrep-h0qy9bnt.js → shell-atbdcssm.js} +5 -5
- package/dist/chunks/{ripgrep-3vt2dxg2.js → shell-avvce0kw.js} +4 -4
- package/dist/chunks/{ripgrep-09c1zjrt.js → shell-aw9wggsx.js} +16 -16
- package/dist/chunks/{ripgrep-x831e2b7.js → shell-azvj0qaf.js} +15 -15
- package/dist/chunks/{ripgrep-gd45gbwy.js → shell-b0v2f3d7.js} +18 -18
- package/dist/chunks/{ripgrep-tm0kqsz3.js → shell-b11a7tx7.js} +4 -3
- package/dist/chunks/{ripgrep-fqb2p7cx.js → shell-b27vhd2z.js} +4 -4
- package/dist/chunks/{ripgrep-dfe61pt0.js → shell-b4w8vgnn.js} +22 -22
- package/dist/chunks/{ripgrep-xg2cxak3.js → shell-b7gzk9zn.js} +14 -14
- package/dist/chunks/{ripgrep-vbfgae2j.js → shell-bacyadyn.js} +4 -4
- package/dist/chunks/{ripgrep-50ttpepc.js → shell-bf4y5pbw.js} +57 -57
- package/dist/chunks/{ripgrep-bzeyqsqd.js → shell-bzeyqsqd.js} +1 -1
- package/dist/chunks/{ripgrep-8eadsrjy.js → shell-c1qkpkxj.js} +28 -28
- package/dist/chunks/{ripgrep-waskajng.js → shell-c3zvns2h.js} +5 -5
- package/dist/chunks/{ripgrep-312nns96.js → shell-cd0efadx.js} +11 -11
- package/dist/chunks/{ripgrep-h47csjds.js → shell-cd2jam34.js} +68 -68
- package/dist/chunks/{ripgrep-9xj3p3b6.js → shell-cmhag69x.js} +17 -17
- package/dist/chunks/{ripgrep-jv8w58zf.js → shell-cvhewn3n.js} +23 -23
- package/dist/chunks/{ripgrep-g0445xdp.js → shell-czfptnv9.js} +8 -8
- package/dist/chunks/{ripgrep-6dx9d91q.js → shell-d1b87mp8.js} +9 -9
- package/dist/chunks/{ripgrep-cph4sz5z.js → shell-d5sr47tk.js} +13 -13
- package/dist/chunks/{ripgrep-s7158cf1.js → shell-d6cmegr0.js} +4 -4
- package/dist/chunks/{ripgrep-z55zg8mm.js → shell-d6sm0xhg.js} +14 -14
- package/dist/chunks/{ripgrep-prc3rt3m.js → shell-d9h00asa.js} +5 -5
- package/dist/chunks/{ripgrep-3mkjzvwp.js → shell-d9jtx293.js} +6 -6
- package/dist/chunks/{ripgrep-p50c7myx.js → shell-dgzq35zb.js} +3 -3
- package/dist/chunks/{ripgrep-f6egx6pd.js → shell-dn54e1vc.js} +23 -23
- package/dist/chunks/{ripgrep-q9z8ctd8.js → shell-e0vjet6h.js} +9 -9
- package/dist/chunks/{ripgrep-rvnqf66d.js → shell-e0xgvc2t.js} +18 -18
- package/dist/chunks/{ripgrep-pz39tkx9.js → shell-e0yd8g35.js} +35 -35
- package/dist/chunks/{ripgrep-5qd3pb7m.js → shell-e3qxr5gk.js} +2 -2
- package/dist/chunks/{ripgrep-fs83kz7m.js → shell-eb0txge1.js} +11 -11
- package/dist/chunks/{ripgrep-k7ct3b4w.js → shell-edex00km.js} +20 -20
- package/dist/chunks/{ripgrep-eej6y6fw.js → shell-eej6y6fw.js} +2 -2
- package/dist/chunks/{ripgrep-ef5x83kb.js → shell-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-w7jyze1k.js → shell-eh45hhbp.js} +4 -4
- package/dist/chunks/{ripgrep-rvn8t98y.js → shell-ek150c57.js} +13 -13
- package/dist/chunks/{ripgrep-xc4hpcyp.js → shell-ewrpj132.js} +25 -25
- package/dist/chunks/{ripgrep-pkwzmj2h.js → shell-ey8ah1zs.js} +16 -16
- package/dist/chunks/{ripgrep-h6vdgmbd.js → shell-f4bbp22f.js} +34 -34
- package/dist/chunks/{ripgrep-29mhb2se.js → shell-f5sdy3zr.js} +53 -53
- package/dist/chunks/{ripgrep-fcy631f0.js → shell-fcy631f0.js} +1 -1
- package/dist/chunks/{ripgrep-axkwkzd9.js → shell-fey4ts1c.js} +14 -14
- package/dist/chunks/{ripgrep-560zx63f.js → shell-fkedvtkk.js} +1 -1
- package/dist/chunks/{ripgrep-rbzr3q5g.js → shell-fpneb7zf.js} +9 -9
- package/dist/chunks/{ripgrep-yrwfzynx.js → shell-fpzg53qc.js} +85 -85
- package/dist/chunks/{ripgrep-5cfq97pr.js → shell-fw81v0b3.js} +27 -27
- package/dist/chunks/{ripgrep-hq3c8me3.js → shell-fxaymqdw.js} +4 -4
- package/dist/chunks/{ripgrep-bj5f8pf2.js → shell-fxz1hm3d.js} +4 -4
- package/dist/chunks/{ripgrep-agt495f3.js → shell-gcpky43g.js} +12 -12
- package/dist/chunks/{ripgrep-gd4qta3r.js → shell-gd4qta3r.js} +1 -1
- package/dist/chunks/{ripgrep-pd1jyj3n.js → shell-ggqrcf80.js} +15 -15
- package/dist/chunks/{ripgrep-e1kmgh1g.js → shell-gjrenmtf.js} +47 -47
- package/dist/chunks/{ripgrep-yrbjxrxk.js → shell-gk0wee00.js} +7 -7
- package/dist/chunks/{ripgrep-5d51bkr7.js → shell-gkdfaqyz.js} +45 -45
- package/dist/chunks/{ripgrep-77jva0j9.js → shell-gp1qp977.js} +7 -7
- package/dist/chunks/{ripgrep-gjbmpe49.js → shell-grpwpbkn.js} +30 -30
- package/dist/chunks/{ripgrep-9nhbmbq3.js → shell-gwq75z1b.js} +11 -11
- package/dist/chunks/{ripgrep-8sjwbqp5.js → shell-h0a9te69.js} +17 -17
- package/dist/chunks/{ripgrep-z7669q6a.js → shell-h66t4gvj.js} +10 -10
- package/dist/chunks/{ripgrep-h6vf3j39.js → shell-h6vf3j39.js} +1 -1
- package/dist/chunks/{ripgrep-4xpgt2w9.js → shell-h83xjv7f.js} +5 -5
- package/dist/chunks/{ripgrep-tt8gc4fv.js → shell-hbb7npd7.js} +6 -6
- package/dist/chunks/{ripgrep-hgz4x7wa.js → shell-hgz4x7wa.js} +1 -1
- package/dist/chunks/{ripgrep-7e8r663x.js → shell-hkr0b4h7.js} +22 -22
- package/dist/chunks/{ripgrep-g1962y70.js → shell-hszpjbfe.js} +21 -21
- package/dist/chunks/{ripgrep-14w7p54a.js → shell-j429n2jr.js} +50 -50
- package/dist/chunks/{ripgrep-s96dfbc8.js → shell-j9pc77qk.js} +18 -18
- package/dist/chunks/{ripgrep-edswj8x3.js → shell-jdgd2e3k.js} +17 -17
- package/dist/chunks/{ripgrep-2r363r85.js → shell-jky0s88p.js} +8 -8
- package/dist/chunks/{ripgrep-r565a100.js → shell-jwsejh1z.js} +27 -27
- package/dist/chunks/{ripgrep-cys88cvv.js → shell-k1znrbj8.js} +5 -5
- package/dist/chunks/{ripgrep-ayvmmyqf.js → shell-k63k4b0t.js} +20 -20
- package/dist/chunks/{ripgrep-htbjkf0w.js → shell-kgkxj8pd.js} +3 -3
- package/dist/chunks/{ripgrep-57pprckc.js → shell-kk5caf58.js} +24 -24
- package/dist/chunks/{ripgrep-prq7hedt.js → shell-kp8q1t60.js} +9 -9
- package/dist/chunks/shell-kq2taeak.js +257 -0
- package/dist/chunks/{ripgrep-txm3e8qz.js → shell-kqv3x6rj.js} +9 -9
- package/dist/chunks/{ripgrep-kwb1v3vj.js → shell-kwb1v3vj.js} +1 -1
- package/dist/chunks/{ripgrep-qhdh8prp.js → shell-m12xqqkm.js} +46 -46
- package/dist/chunks/{ripgrep-4zd5n188.js → shell-m46yv57x.js} +22 -22
- package/dist/chunks/{ripgrep-m9w0rfyh.js → shell-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-hm49vy5t.js → shell-masm6h4a.js} +11 -11
- package/dist/chunks/{ripgrep-maspj1v3.js → shell-maspj1v3.js} +1 -1
- package/dist/chunks/{ripgrep-1fmrbde1.js → shell-mvfdckk2.js} +6 -6
- package/dist/chunks/{ripgrep-nyg27w76.js → shell-myarde17.js} +3 -3
- package/dist/chunks/{ripgrep-ykpagz71.js → shell-n46qfe0v.js} +11 -11
- package/dist/chunks/{ripgrep-my4zabxr.js → shell-n7d88tpn.js} +2 -2
- package/dist/chunks/{ripgrep-1zd1rgqx.js → shell-nx3vsr5t.js} +19 -19
- package/dist/chunks/{ripgrep-rf4xhyrq.js → shell-nzgfnq9c.js} +32 -32
- package/dist/chunks/{ripgrep-dhb2hta4.js → shell-p8dm3ep0.js} +5 -5
- package/dist/chunks/{ripgrep-9ms3qzpy.js → shell-p9czke70.js} +5 -5
- package/dist/chunks/{ripgrep-dgwfvztm.js → shell-p9jtbmhc.js} +28 -28
- package/dist/chunks/{ripgrep-r2z489rp.js → shell-pc1v25hk.js} +4 -6
- package/dist/chunks/{ripgrep-0nmqjfd0.js → shell-pdb5khhv.js} +14 -14
- package/dist/chunks/{ripgrep-pjvnvgmy.js → shell-pjvnvgmy.js} +1 -1
- package/dist/chunks/{ripgrep-pknna89w.js → shell-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-fmcqyzhx.js → shell-pnkbpv6t.js} +9 -9
- package/dist/chunks/{ripgrep-eh2h7xf4.js → shell-prq96jqy.js} +17 -17
- package/dist/chunks/{ripgrep-nfj18b9m.js → shell-q2pe6j31.js} +28 -28
- package/dist/chunks/{ripgrep-x6pyv2yz.js → shell-q4fmv0xv.js} +5 -5
- package/dist/chunks/{ripgrep-d9ddtp67.js → shell-q6v6amn1.js} +11 -11
- package/dist/chunks/{ripgrep-eev4j3tf.js → shell-q9pe90t0.js} +15 -15
- package/dist/chunks/shell-qc068m1q.js +18 -0
- package/dist/chunks/{ripgrep-n4h5z8fw.js → shell-qcprd6de.js} +23 -23
- package/dist/chunks/{ripgrep-tz783a2y.js → shell-qe3epw5x.js} +11 -11
- package/dist/chunks/{ripgrep-hd44qvhb.js → shell-qj5ta0kd.js} +20 -20
- package/dist/chunks/{ripgrep-3mqyb98t.js → shell-qkynqyav.js} +3 -3
- package/dist/chunks/{ripgrep-pxnwhmcf.js → shell-qqafxchd.js} +6 -6
- package/dist/chunks/{ripgrep-qsdy395h.js → shell-qsdy395h.js} +1 -1
- package/dist/chunks/{ripgrep-g2kqvpw2.js → shell-qtbmwfhq.js} +11 -11
- package/dist/chunks/{ripgrep-hpfvhvya.js → shell-r61qxybf.js} +8 -8
- package/dist/chunks/{ripgrep-e225h40x.js → shell-r6rbj50z.js} +17 -17
- package/dist/chunks/{ripgrep-713a57ta.js → shell-r75ymksz.js} +10 -15
- package/dist/chunks/{ripgrep-qmm8f62j.js → shell-r8f8vm0g.js} +19 -19
- package/dist/chunks/{ripgrep-g686f6pq.js → shell-ra67jj04.js} +9 -9
- package/dist/chunks/{ripgrep-rdw6cm16.js → shell-rdw6cm16.js} +1 -1
- package/dist/chunks/{ripgrep-75d596k4.js → shell-rk96c1vx.js} +21 -21
- package/dist/chunks/{ripgrep-fxq1hvsx.js → shell-rmxqhsb7.js} +4 -4
- package/dist/chunks/{ripgrep-2wqnbphr.js → shell-s7tme0tc.js} +21 -21
- package/dist/chunks/{ripgrep-q59jvvg4.js → shell-s7w7kyay.js} +26 -26
- package/dist/chunks/{ripgrep-49j0r9af.js → shell-sa4r6z7r.js} +21 -21
- package/dist/chunks/{ripgrep-kzrm98pv.js → shell-sc7vxha7.js} +20 -20
- package/dist/chunks/{ripgrep-y2w3p8tb.js → shell-sp1mwpas.js} +13 -13
- package/dist/chunks/{ripgrep-91af422c.js → shell-svh0p8w5.js} +19 -19
- package/dist/chunks/{ripgrep-syv4x271.js → shell-syv4x271.js} +1 -1
- package/dist/chunks/{ripgrep-68zvyq3x.js → shell-syv6ahra.js} +11 -11
- package/dist/chunks/{ripgrep-s8d7rejh.js → shell-t550f9t1.js} +4 -4
- package/dist/chunks/{ripgrep-b1hts85v.js → shell-t7rj6shc.js} +34 -34
- package/dist/chunks/{ripgrep-hxsbxgw0.js → shell-t9sq8qeg.js} +42 -42
- package/dist/chunks/{ripgrep-tazgh4e4.js → shell-tazgh4e4.js} +1 -1
- package/dist/chunks/{ripgrep-tcezcvh9.js → shell-tcezcvh9.js} +1 -1
- package/dist/chunks/{ripgrep-tdstcens.js → shell-tdstcens.js} +1 -1
- package/dist/chunks/{ripgrep-sjxt2y8n.js → shell-tjrg3twb.js} +181 -181
- package/dist/chunks/{ripgrep-4kjvvtcf.js → shell-tq6we1s0.js} +20 -20
- package/dist/chunks/{ripgrep-124s2bhj.js → shell-trehngv2.js} +10 -10
- package/dist/chunks/{ripgrep-hs6ysvtc.js → shell-txf768b9.js} +34 -34
- package/dist/chunks/{ripgrep-tyytaxap.js → shell-tyytaxap.js} +1 -1
- package/dist/chunks/{ripgrep-8fmaj9a8.js → shell-tzxxmegj.js} +19 -19
- package/dist/chunks/{ripgrep-nz56sr1f.js → shell-v13b12ef.js} +5 -5
- package/dist/chunks/{ripgrep-xk3573b9.js → shell-v4rmv62r.js} +32 -32
- package/dist/chunks/{ripgrep-8wx9bhg6.js → shell-v640fphy.js} +4 -4
- package/dist/chunks/{ripgrep-v7p4zvkq.js → shell-v7p4zvkq.js} +2 -2
- package/dist/chunks/{ripgrep-86gy2e90.js → shell-v9xc3wdb.js} +30 -30
- package/dist/chunks/{ripgrep-yj7k2rcj.js → shell-vc5fxanm.js} +6 -6
- package/dist/chunks/{ripgrep-veqvce7d.js → shell-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-2sstcm55.js → shell-vf6nq1yq.js} +12 -12
- package/dist/chunks/{ripgrep-989d504g.js → shell-vvp3kbkr.js} +35 -35
- package/dist/chunks/{ripgrep-3k2tm6e9.js → shell-vx3rapja.js} +1 -1
- package/dist/chunks/shell-vy0yhs8z.js +26 -0
- package/dist/chunks/{ripgrep-vzs5sf6e.js → shell-vzs5sf6e.js} +1 -1
- package/dist/chunks/{ripgrep-a3w6cej7.js → shell-w2q1tvs9.js} +14 -14
- package/dist/chunks/{ripgrep-w3wsvvr9.js → shell-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-wakvkjy4.js → shell-wakvkjy4.js} +1 -1
- package/dist/chunks/{ripgrep-k9s1epkc.js → shell-wb3h0med.js} +8 -8
- package/dist/chunks/{ripgrep-gj71zhbs.js → shell-wbgabvvj.js} +5 -5
- package/dist/chunks/{ripgrep-wd87259q.js → shell-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-bjx1sjef.js → shell-wjr9rjd7.js} +6 -6
- package/dist/chunks/{ripgrep-jx1ed50p.js → shell-wkvsvh4e.js} +24 -24
- package/dist/chunks/{ripgrep-yn91e0pt.js → shell-x48888jx.js} +2 -2
- package/dist/chunks/{ripgrep-w8tjtray.js → shell-x4bpn50y.js} +31 -31
- package/dist/chunks/{ripgrep-wthbqfdd.js → shell-xayssg3h.js} +5 -5
- package/dist/chunks/{ripgrep-5h8zx44a.js → shell-xdbrd9pk.js} +18 -18
- package/dist/chunks/{ripgrep-bh4seszr.js → shell-xevw8b9b.js} +34 -34
- package/dist/chunks/{ripgrep-xfkkasph.js → shell-xfkkasph.js} +1 -1
- package/dist/chunks/{ripgrep-pnjc2gnv.js → shell-xsgrs5rf.js} +332 -332
- package/dist/chunks/{ripgrep-8vcf4cwr.js → shell-xw9fg8fb.js} +2 -2
- package/dist/chunks/{ripgrep-230myn37.js → shell-xxv9hwag.js} +14 -14
- package/dist/chunks/{ripgrep-prsxfqy1.js → shell-xzp9n4gz.js} +24 -24
- package/dist/chunks/{ripgrep-y1fvbwt7.js → shell-y1fvbwt7.js} +1 -1
- package/dist/chunks/{ripgrep-szj64q0v.js → shell-y5prcm51.js} +4 -4
- package/dist/chunks/{ripgrep-dpkg50ah.js → shell-y71avatq.js} +4 -4
- package/dist/chunks/{ripgrep-vbnktpmr.js → shell-ybjc3k76.js} +9 -9
- package/dist/chunks/{ripgrep-6s32m78n.js → shell-yg3cazfx.js} +86 -86
- package/dist/chunks/{ripgrep-z1ggpzpx.js → shell-ythqyp3b.js} +11 -11
- package/dist/chunks/{ripgrep-z0bkrqjs.js → shell-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-z18fegx4.js → shell-z18fegx4.js} +1 -1
- package/dist/chunks/{ripgrep-k8yk4ekq.js → shell-z1ycdyr0.js} +15 -15
- package/dist/chunks/{ripgrep-rfmtd9hm.js → shell-z3qxvmgt.js} +10 -10
- package/dist/chunks/{ripgrep-s7pm50yw.js → shell-z65fybyq.js} +13 -20
- package/dist/chunks/{ripgrep-a0b0pnyt.js → shell-z9z5kemy.js} +4 -4
- package/dist/chunks/{ripgrep-06x8he3q.js → shell-zcrspsvn.js} +4 -4
- package/dist/chunks/{ripgrep-v8351vk8.js → shell-zfvfcy7q.js} +8 -8
- package/dist/chunks/{ripgrep-d3fk46xw.js → shell-zhhedqrt.js} +32 -32
- package/dist/chunks/{ripgrep-skxfb30d.js → shell-zmbfn0by.js} +24 -24
- package/dist/chunks/{ripgrep-x83knd5j.js → shell-zmjz8g0x.js} +4 -4
- package/dist/chunks/{ripgrep-zr2ceqn5.js → shell-zr2ceqn5.js} +1 -1
- package/dist/chunks/{ripgrep-zxq2ej10.js → shell-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- package/dist/config/discovery.js +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- 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 +369 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -106
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +156 -155
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -358
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +101 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -171
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +136 -136
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +130 -129
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +93 -93
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +132 -131
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -100
- package/dist/session/runner/publish-llm-event.js +116 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +165 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -113
- package/dist/session/transfer.js +215 -215
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +95 -95
- 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 +139 -139
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +118 -118
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +113 -113
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +4 -2
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/types/tool/runtime.d.ts +1 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- 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/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +78 -78
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/ripgrep-1kg9ymc8.js +0 -6
- package/dist/chunks/ripgrep-2axfhc9x.js +0 -49
- package/dist/chunks/ripgrep-3qcx2nn5.js +0 -257
- package/dist/chunks/ripgrep-cb080mpn.js +0 -26
- package/dist/chunks/ripgrep-q509s3k3.js +0 -18
- package/dist/types/util/error.d.ts +0 -273
- package/dist/types/util/iife.d.ts +0 -1
- package/dist/types/v1/config/error.d.ts +0 -393
- package/dist/util/error.js +0 -6
- package/dist/util/iife.js +0 -6
- package/dist/v1/config/error.js +0 -27
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → shell-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → shell-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → shell-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → shell-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → shell-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → shell-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2bv980vf.js → shell-2bv980vf.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → shell-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → shell-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → shell-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3t0ybcrp.js → shell-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → shell-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → shell-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → shell-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → shell-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → shell-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → shell-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → shell-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → shell-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → shell-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-6q2bdcd1.js → shell-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → shell-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → shell-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → shell-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-84wd9syh.js → shell-84wd9syh.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → shell-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → shell-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-8wj87zfr.js → shell-8wj87zfr.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → shell-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → shell-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → shell-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → shell-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → shell-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → shell-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → shell-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → shell-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → shell-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → shell-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → shell-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → shell-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → shell-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → shell-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → shell-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → shell-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → shell-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → shell-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → shell-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → shell-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → shell-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → shell-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → shell-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → shell-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → shell-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → shell-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → shell-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → shell-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → shell-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → shell-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hcxmzztb.js → shell-hcxmzztb.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → shell-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → shell-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → shell-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → shell-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → shell-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → shell-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jze0r7bz.js → shell-jze0r7bz.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → shell-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-m18g726c.js → shell-m18g726c.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → shell-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → shell-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → shell-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → shell-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → shell-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-pkyv6v7h.js → shell-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → shell-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → shell-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → shell-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → shell-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → shell-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → shell-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → shell-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → shell-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → shell-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → shell-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-ve7vex1e.js → shell-ve7vex1e.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → shell-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → shell-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → shell-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wjj7prxr.js → shell-wjj7prxr.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → shell-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → shell-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → shell-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → shell-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → shell-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → shell-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → shell-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z5v4ffb3.js → shell-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → shell-z9919s4g.js} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/integration/connection.ts
|
|
6
6
|
var exports_connection = {};
|
|
7
7
|
__export(exports_connection, {
|
|
8
8
|
CredentialInfo: () => CredentialInfo2,
|
|
9
9
|
EnvInfo: () => EnvInfo2,
|
|
10
|
-
Info: () =>
|
|
10
|
+
Info: () => Info24,
|
|
11
11
|
IntegrationConnection: () => exports_connection,
|
|
12
12
|
Status: () => Status3,
|
|
13
13
|
key: () => key2
|
|
@@ -15,7 +15,7 @@ __export(exports_connection, {
|
|
|
15
15
|
import { Connection } from "@opencode/schema/connection";
|
|
16
16
|
var CredentialInfo2 = Connection.CredentialInfo;
|
|
17
17
|
var EnvInfo2 = Connection.EnvInfo;
|
|
18
|
-
var
|
|
18
|
+
var Info24 = Connection.Info;
|
|
19
19
|
var Status3 = Connection.Status;
|
|
20
20
|
function key2(connection) {
|
|
21
21
|
if (!connection)
|
|
@@ -23,4 +23,4 @@ function key2(connection) {
|
|
|
23
23
|
return connection.type === "credential" ? `credential:${connection.id}` : `env:${connection.name}`;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export { CredentialInfo2, EnvInfo2,
|
|
26
|
+
export { CredentialInfo2, EnvInfo2, Info24, Status3, key2, exports_connection };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-v640fphy.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./shell-w2q1tvs9.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service38
|
|
10
|
+
} from "./shell-gjrenmtf.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./shell-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/plugin/command.ts
|
|
16
|
-
var
|
|
17
|
-
__export(
|
|
18
|
-
CommandPlugin: () =>
|
|
19
|
-
Plugin: () =>
|
|
16
|
+
var exports_command2 = {};
|
|
17
|
+
__export(exports_command2, {
|
|
18
|
+
CommandPlugin: () => exports_command2,
|
|
19
|
+
Plugin: () => Plugin34
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,11 +193,11 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin34 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
200
|
-
const mcp = yield*
|
|
199
|
+
const location = yield* Service81;
|
|
200
|
+
const mcp = yield* Service38;
|
|
201
201
|
const bus = yield* Service85;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin34, exports_command2 };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./shell-myarde17.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./shell-v640fphy.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service45,
|
|
11
|
+
node47
|
|
12
|
+
} from "./shell-d6sm0xhg.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service44,
|
|
15
|
+
node46
|
|
16
|
+
} from "./shell-51f5btjf.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./shell-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
21
|
make17
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./shell-5g57z1ma.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service41
|
|
26
|
+
} from "./shell-zcrspsvn.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service48,
|
|
29
|
+
node50
|
|
30
|
+
} from "./shell-b7gzk9zn.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./shell-k1znrbj8.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./shell-svh0p8w5.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./shell-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service40,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
48
|
-
noopLayer: () =>
|
|
46
|
+
layer: () => layer18,
|
|
47
|
+
node: () => node43,
|
|
48
|
+
noopLayer: () => noopLayer2,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service40 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
62
|
+
var layer18 = Layer.effect(Service40, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service48;
|
|
64
|
+
const instances = yield* Service44;
|
|
65
65
|
const bus = yield* Service85;
|
|
66
|
-
const jobs = yield*
|
|
66
|
+
const jobs = yield* Service45;
|
|
67
67
|
const db = (yield* Service86).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -76,7 +76,7 @@ var layer17 = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service41.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable),
|
|
@@ -104,7 +104,7 @@ var layer17 = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service40.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer17 = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
128
|
-
layer:
|
|
129
|
-
deps: [
|
|
126
|
+
var node43 = makeGlobalNode({
|
|
127
|
+
service: Service40,
|
|
128
|
+
layer: layer18,
|
|
129
|
+
deps: [node50, node46, node89, node90, node47]
|
|
130
130
|
});
|
|
131
|
-
var
|
|
131
|
+
var noopLayer2 = Layer.succeed(Service40, Service40.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer3 = Layer.succeed(Service38, Service38.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service40, terminal2, layer18, node43, noopLayer2, exports_execution };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./shell-v640fphy.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./shell-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
evaluate2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./shell-bf4y5pbw.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./shell-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/skill.ts
|
|
16
16
|
var exports_skill5 = {};
|
|
17
17
|
__export(exports_skill5, {
|
|
18
18
|
DirectorySource: () => DirectorySource2,
|
|
19
19
|
EmbeddedSource: () => EmbeddedSource2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Info: () =>
|
|
20
|
+
Event: () => Event6,
|
|
21
|
+
ID: () => ID5,
|
|
22
|
+
Info: () => Info8,
|
|
23
23
|
Name: () => Name2,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service39,
|
|
25
25
|
Skill: () => exports_skill5,
|
|
26
|
-
Source: () =>
|
|
26
|
+
Source: () => Source3,
|
|
27
27
|
UrlSource: () => UrlSource2,
|
|
28
28
|
available: () => available3,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node42,
|
|
30
30
|
prepare: () => prepare3,
|
|
31
31
|
toModelOutput: () => toModelOutput3
|
|
32
32
|
});
|
|
@@ -35,13 +35,13 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Context, Effect, Layer } from "effect";
|
|
37
37
|
import { Skill } from "@opencode/schema/skill";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event6 } from "@opencode/schema/skill";
|
|
39
39
|
var DirectorySource2 = Skill.DirectorySource;
|
|
40
40
|
var UrlSource2 = Skill.UrlSource;
|
|
41
41
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
42
|
-
var
|
|
43
|
-
var
|
|
44
|
-
var
|
|
42
|
+
var Source3 = Skill.Source;
|
|
43
|
+
var Info8 = Skill.Info;
|
|
44
|
+
var ID5 = Skill.ID;
|
|
45
45
|
var Name2 = Skill.Name;
|
|
46
46
|
var available3 = (skills, permissions) => skills.filter((skill) => evaluate2("skill", skill.id, permissions).effect !== "deny");
|
|
47
47
|
var toModelOutput3 = (skill, files) => {
|
|
@@ -78,33 +78,33 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
|
|
|
78
78
|
};
|
|
79
79
|
});
|
|
80
80
|
|
|
81
|
-
class
|
|
81
|
+
class Service39 extends Context.Service()("@opencode/Skill") {
|
|
82
82
|
}
|
|
83
|
-
var layer = Layer.effect(
|
|
83
|
+
var layer = Layer.effect(Service39, Effect.gen(function* () {
|
|
84
84
|
const bus = yield* Service85;
|
|
85
85
|
const state = create3({
|
|
86
86
|
name: "skill",
|
|
87
87
|
initial: () => ({ skills: new Map }),
|
|
88
88
|
editor: (editor) => ({
|
|
89
89
|
list: () => Array.from(editor.skills.values()),
|
|
90
|
-
get: (id) => editor.skills.get(
|
|
90
|
+
get: (id) => editor.skills.get(ID5.make(id)),
|
|
91
91
|
add: (skill) => {
|
|
92
92
|
editor.skills.set(skill.id, { ...skill });
|
|
93
93
|
},
|
|
94
94
|
update: (id, update) => {
|
|
95
|
-
const current = editor.skills.get(
|
|
95
|
+
const current = editor.skills.get(ID5.make(id));
|
|
96
96
|
if (!current)
|
|
97
97
|
return;
|
|
98
98
|
update(current);
|
|
99
|
-
current.id =
|
|
99
|
+
current.id = ID5.make(id);
|
|
100
100
|
},
|
|
101
101
|
remove: (id) => {
|
|
102
|
-
editor.skills.delete(
|
|
102
|
+
editor.skills.delete(ID5.make(id));
|
|
103
103
|
}
|
|
104
104
|
}),
|
|
105
105
|
notify: () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid)
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service39.of({
|
|
108
108
|
transform: state.transform,
|
|
109
109
|
reload: state.reload,
|
|
110
110
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -115,10 +115,10 @@ var layer = Layer.effect(Service67, Effect.gen(function* () {
|
|
|
115
115
|
})
|
|
116
116
|
});
|
|
117
117
|
}));
|
|
118
|
-
var
|
|
119
|
-
service:
|
|
118
|
+
var node42 = makeLocationNode({
|
|
119
|
+
service: Service39,
|
|
120
120
|
layer,
|
|
121
121
|
deps: [node89]
|
|
122
122
|
});
|
|
123
123
|
|
|
124
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2,
|
|
124
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source3, Info8, ID5, Name2, available3, toModelOutput3, prepare3, Service39, node42, exports_skill5, Event6 };
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service85,
|
|
4
4
|
node89
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./shell-v640fphy.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./shell-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/sdk.ts
|
|
11
11
|
var exports_sdk = {};
|
|
@@ -13,7 +13,7 @@ __export(exports_sdk, {
|
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
14
|
Service: () => Service4,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
16
|
+
layer: () => layer5,
|
|
17
17
|
node: () => node5
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
@@ -22,7 +22,7 @@ var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
|
22
22
|
|
|
23
23
|
class Service4 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
26
26
|
const bus = yield* Service85;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
@@ -33,6 +33,6 @@ var layer4 = Layer.effect(Service4, Effect.gen(function* () {
|
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var node5 = makeGlobalNode({ service: Service4, layer:
|
|
36
|
+
var node5 = makeGlobalNode({ service: Service4, layer: layer5, deps: [node89] });
|
|
37
37
|
|
|
38
|
-
export { Updated2, Service4,
|
|
38
|
+
export { Updated2, Service4, layer5, node5, exports_sdk };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
match2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-y1fvbwt7.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/managed-policy.ts
|
|
9
9
|
var exports_managed_policy = {};
|
|
10
10
|
__export(exports_managed_policy, {
|
|
11
11
|
ManagedPolicy: () => exports_managed_policy,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service13,
|
|
13
13
|
decision: () => decision2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
node: () =>
|
|
14
|
+
layer: () => layer9,
|
|
15
|
+
node: () => node15,
|
|
16
16
|
statements: () => statements2
|
|
17
17
|
});
|
|
18
18
|
import { isDeepStrictEqual } from "node:util";
|
|
19
19
|
import { Context, Effect, Layer, PubSub, Stream } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Service13 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var layer9 = Layer.effect(Service13, Effect.gen(function* () {
|
|
25
25
|
const changes = yield* PubSub.unbounded();
|
|
26
26
|
const state = { current: { statements: [] } };
|
|
27
|
-
return
|
|
27
|
+
return Service13.of({
|
|
28
28
|
changes: () => Stream.fromPubSub(changes),
|
|
29
29
|
current: () => state.current,
|
|
30
30
|
set: (next) => Effect.gen(function* () {
|
|
@@ -36,7 +36,7 @@ var layer23 = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
39
|
+
var node15 = makeGlobalNode({ service: Service13, layer: layer9, deps: [] });
|
|
40
40
|
function statements2(entries, organization) {
|
|
41
41
|
return [
|
|
42
42
|
...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.policies ?? []).map((policy) => ({ ...policy, message: "Blocked by configuration policy" })),
|
|
@@ -50,4 +50,4 @@ function decision2(policies, action, resource) {
|
|
|
50
50
|
return policies.findLast((policy) => policy.action === action && match2(resource, policy.resource))?.effect ?? "allow";
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service13, layer9, node15, statements2, decision2, exports_managed_policy };
|
|
@@ -1,41 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-addxnjmp.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-v640fphy.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event21
|
|
10
|
+
} from "./shell-c1qkpkxj.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID14,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./shell-18c04net.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID13,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service78
|
|
20
|
+
} from "./shell-v9xc3wdb.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID12
|
|
23
|
+
} from "./shell-zhhedqrt.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
load3,
|
|
26
|
+
derive3
|
|
27
|
+
} from "./shell-5vkfphhp.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./shell-trehngv2.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID8
|
|
33
|
+
} from "./shell-xzp9n4gz.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./shell-54ma36ye.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
|
+
import { isRecord } from "@opencode/ai/utils/record";
|
|
39
40
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
40
41
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
41
42
|
var clientID = "Ov23li8tweQw6odWQebz";
|
|
@@ -65,7 +66,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
65
66
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
66
67
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
67
68
|
var oauth = (app) => ({
|
|
68
|
-
integrationID:
|
|
69
|
+
integrationID: ID14.make("github-copilot"),
|
|
69
70
|
method: {
|
|
70
71
|
id: methodID,
|
|
71
72
|
type: "oauth",
|
|
@@ -163,7 +164,7 @@ var oauth = (app) => ({
|
|
|
163
164
|
var GithubCopilotPlugin2 = define({
|
|
164
165
|
id: "opencode.provider.github.copilot",
|
|
165
166
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
167
|
+
const providers = yield* Service78;
|
|
167
168
|
const bus = yield* Service85;
|
|
168
169
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
170
|
const loaded = {};
|
|
@@ -180,9 +181,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
181
|
return;
|
|
181
182
|
}
|
|
182
183
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
184
|
+
const provider = yield* providers.get(ID13.githubCopilot);
|
|
184
185
|
const remote = yield* Effect.tryPromise({
|
|
185
|
-
try: () =>
|
|
186
|
+
try: () => load3(url, {
|
|
186
187
|
...provider?.headers,
|
|
187
188
|
Authorization: `Bearer ${credential.refresh}`,
|
|
188
189
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -202,13 +203,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
203
|
editor.method.update(oauth(ctx.app));
|
|
203
204
|
});
|
|
204
205
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
206
|
+
const item = evt.get(ID13.githubCopilot);
|
|
206
207
|
if (!item)
|
|
207
208
|
return;
|
|
208
209
|
if (loaded.models) {
|
|
209
210
|
evt.add({
|
|
210
211
|
info: item.provider,
|
|
211
|
-
models: Array.from(
|
|
212
|
+
models: Array.from(derive3(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
212
213
|
sourceConnection: loaded.connection
|
|
213
214
|
});
|
|
214
215
|
return;
|
|
@@ -230,17 +231,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
230
231
|
}
|
|
231
232
|
});
|
|
232
233
|
yield* ctx.model.transform((models) => {
|
|
233
|
-
if (models.get(
|
|
234
|
-
models.update(
|
|
234
|
+
if (models.get(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"))) {
|
|
235
|
+
models.update(ID13.githubCopilot, ID12.make("gpt-5-chat-latest"), (model) => {
|
|
235
236
|
model.enabled = false;
|
|
236
237
|
});
|
|
237
238
|
}
|
|
238
239
|
});
|
|
239
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
240
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID14.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
241
242
|
yield* refresh().pipe(Effect.forkScoped);
|
|
242
243
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
243
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
244
245
|
return;
|
|
245
246
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
246
247
|
return;
|
|
@@ -249,7 +250,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
249
250
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
250
251
|
}));
|
|
251
252
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
252
|
-
if (evt.model.providerID !==
|
|
253
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
253
254
|
return;
|
|
254
255
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
255
256
|
return;
|
|
@@ -259,13 +260,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
259
260
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
260
261
|
if (interaction !== "conversation-agent")
|
|
261
262
|
evt.headers["x-initiator"] = "agent";
|
|
262
|
-
}), { providerID:
|
|
263
|
+
}), { providerID: ID13.githubCopilot });
|
|
263
264
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
264
|
-
if (evt.model.providerID !==
|
|
265
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
265
266
|
return;
|
|
266
267
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
267
268
|
return;
|
|
268
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
269
|
+
const agent = yield* ctx.agent.get({ agentID: ID8.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
269
270
|
return;
|
|
270
271
|
}));
|
|
271
272
|
if (agent?.data.model)
|
|
@@ -276,9 +277,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
276
277
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
277
278
|
return;
|
|
278
279
|
}));
|
|
279
|
-
}), { providerID:
|
|
280
|
+
}), { providerID: ID13.githubCopilot });
|
|
280
281
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
281
|
-
if (evt.model.providerID !==
|
|
282
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
282
283
|
return;
|
|
283
284
|
const token = evt.request.headers.get("x-api-key");
|
|
284
285
|
if (!token)
|
|
@@ -286,9 +287,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
286
287
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
287
288
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
288
289
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
289
|
-
}), { providerID:
|
|
290
|
+
}), { providerID: ID13.githubCopilot });
|
|
290
291
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
291
|
-
if (evt.model.providerID !==
|
|
292
|
+
if (evt.model.providerID !== ID13.githubCopilot)
|
|
292
293
|
return;
|
|
293
294
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
294
295
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -436,13 +437,13 @@ function interactionType2(kind, child) {
|
|
|
436
437
|
return "conversation-agent";
|
|
437
438
|
}
|
|
438
439
|
function requestMetadata(url, body) {
|
|
439
|
-
if (!
|
|
440
|
+
if (!isRecord(body))
|
|
440
441
|
return { agent: false, vision: false };
|
|
441
442
|
if (Array.isArray(body.input)) {
|
|
442
443
|
const last = body.input.at(-1);
|
|
443
444
|
return {
|
|
444
|
-
agent: !
|
|
445
|
-
vision: body.input.some((item) =>
|
|
445
|
+
agent: !isRecord(last) || last.role !== "user",
|
|
446
|
+
vision: body.input.some((item) => isRecord(item) && Array.isArray(item.content) && item.content.some((part) => isRecord(part) && part.type === "input_image"))
|
|
446
447
|
};
|
|
447
448
|
}
|
|
448
449
|
if (!Array.isArray(body.messages))
|
|
@@ -450,18 +451,15 @@ function requestMetadata(url, body) {
|
|
|
450
451
|
const last = body.messages.at(-1);
|
|
451
452
|
if (url.includes("completions")) {
|
|
452
453
|
return {
|
|
453
|
-
agent: !
|
|
454
|
-
vision: body.messages.some((message) =>
|
|
454
|
+
agent: !isRecord(last) || last.role !== "user",
|
|
455
|
+
vision: body.messages.some((message) => isRecord(message) && Array.isArray(message.content) && message.content.some((part) => isRecord(part) && part.type === "image_url"))
|
|
455
456
|
};
|
|
456
457
|
}
|
|
457
|
-
const content =
|
|
458
|
+
const content = isRecord(last) && Array.isArray(last.content) ? last.content : [];
|
|
458
459
|
return {
|
|
459
|
-
agent: !
|
|
460
|
-
vision: body.messages.some((message) =>
|
|
460
|
+
agent: !isRecord(last) || last.role !== "user" || !content.some((part) => isRecord(part) && part.type !== "tool_result"),
|
|
461
|
+
vision: body.messages.some((message) => isRecord(message) && Array.isArray(message.content) && message.content.some((part) => isRecord(part) && (part.type === "image" || part.type === "tool_result" && Array.isArray(part.content) && part.content.some((nested) => isRecord(nested) && nested.type === "image"))))
|
|
461
462
|
};
|
|
462
463
|
}
|
|
463
|
-
function record(input) {
|
|
464
|
-
return typeof input === "object" && input !== null && !Array.isArray(input);
|
|
465
|
-
}
|
|
466
464
|
|
|
467
465
|
export { GithubCopilotPlugin2, copilotEntitlementError2, copilotBaseURL2, utilityTitleModels2, utilityTitle2, copilotFetch2, interactionType2 };
|