@opencode/core 0.0.0-dev-19883 → 0.0.0-dev-19884
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 +80 -80
- package/dist/aisdk-native.js +88 -88
- package/dist/aisdk.js +93 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{event-logger-t5gx411e.js → ripgrep-00drppa2.js} +10 -10
- package/dist/chunks/{event-logger-60ya4rxq.js → ripgrep-02kg8zjk.js} +30 -30
- package/dist/chunks/{event-logger-d52xjy57.js → ripgrep-08qs2p70.js} +28 -28
- package/dist/chunks/{event-logger-fqcgpcra.js → ripgrep-0996nyz8.js} +9 -9
- package/dist/chunks/{event-logger-j15mfg1p.js → ripgrep-0gaj4617.js} +4 -4
- package/dist/chunks/{event-logger-0paq2nw3.js → ripgrep-0paq2nw3.js} +1 -1
- package/dist/chunks/{event-logger-0q0f95c6.js → ripgrep-0q0f95c6.js} +1 -1
- package/dist/chunks/{event-logger-eh6z0q8m.js → ripgrep-0rrms05z.js} +33 -33
- package/dist/chunks/{event-logger-cmwkp3r5.js → ripgrep-1ajx6rf5.js} +8 -8
- package/dist/chunks/{event-logger-1dazxqgg.js → ripgrep-1dazxqgg.js} +2 -2
- package/dist/chunks/{event-logger-8akqzrar.js → ripgrep-1nrdxkt6.js} +20 -20
- package/dist/chunks/ripgrep-1x11rq2a.js +18 -0
- package/dist/chunks/{event-logger-dz8x4rxg.js → ripgrep-1yv162eq.js} +4 -4
- package/dist/chunks/{event-logger-21r38tys.js → ripgrep-21r38tys.js} +1 -1
- package/dist/chunks/{event-logger-2402vzrj.js → ripgrep-2402vzrj.js} +1 -1
- package/dist/chunks/{event-logger-z63w68vq.js → ripgrep-29x78va6.js} +6 -6
- package/dist/chunks/{event-logger-2a5m3afh.js → ripgrep-2a5m3afh.js} +1 -1
- package/dist/chunks/{event-logger-b9pgx79x.js → ripgrep-2k97ax98.js} +3 -3
- package/dist/chunks/{event-logger-3cfzdc8e.js → ripgrep-3cfzdc8e.js} +2 -2
- package/dist/chunks/{event-logger-4ttkb0e5.js → ripgrep-3e38qjvr.js} +18 -18
- package/dist/chunks/{event-logger-3fc6dm20.js → ripgrep-3fc6dm20.js} +1 -1
- package/dist/chunks/{event-logger-3hepkmqq.js → ripgrep-3hepkmqq.js} +1 -1
- package/dist/chunks/{event-logger-jbzwn50f.js → ripgrep-3m25mxr5.js} +46 -46
- package/dist/chunks/{event-logger-cxzmmvrx.js → ripgrep-3mc0mxvn.js} +6 -6
- package/dist/chunks/{event-logger-4xv00g1r.js → ripgrep-3mc3a2sf.js} +23 -23
- package/dist/chunks/{event-logger-3smtnn6g.js → ripgrep-3smtnn6g.js} +1 -1
- package/dist/chunks/{event-logger-3tvqynh2.js → ripgrep-3tvqynh2.js} +1 -1
- package/dist/chunks/{event-logger-gbspdhem.js → ripgrep-3wcxc2ne.js} +7 -7
- package/dist/chunks/{event-logger-f1ckv151.js → ripgrep-3zh0859w.js} +13 -13
- package/dist/chunks/{event-logger-8mbscqky.js → ripgrep-43h198y8.js} +8 -8
- package/dist/chunks/{event-logger-xfqb4thj.js → ripgrep-47axers8.js} +25 -25
- package/dist/chunks/{event-logger-h6r3nrb9.js → ripgrep-4dgbcxzg.js} +4 -4
- package/dist/chunks/{event-logger-cq9babp4.js → ripgrep-4p8111z8.js} +19 -19
- package/dist/chunks/{event-logger-s8mtmqsj.js → ripgrep-4pjcr2w6.js} +5 -5
- package/dist/chunks/{event-logger-cj65b5yb.js → ripgrep-4sra3427.js} +18 -18
- package/dist/chunks/{event-logger-8d1k587k.js → ripgrep-576taz8z.js} +40 -40
- package/dist/chunks/{event-logger-57ez7d0k.js → ripgrep-57ez7d0k.js} +2 -2
- package/dist/chunks/{event-logger-rmxzq7f5.js → ripgrep-57z5z4v1.js} +8 -8
- package/dist/chunks/{event-logger-c1np9tvh.js → ripgrep-595ycqh3.js} +12 -12
- package/dist/chunks/{event-logger-q1v1tjfj.js → ripgrep-5a6ex2zm.js} +34 -34
- package/dist/chunks/{event-logger-5c4hm403.js → ripgrep-5c4hm403.js} +3 -3
- package/dist/chunks/{event-logger-bbj18gvp.js → ripgrep-5d771mpt.js} +4 -4
- package/dist/chunks/{event-logger-5daktx2q.js → ripgrep-5daktx2q.js} +1 -1
- package/dist/chunks/{event-logger-619d0a7n.js → ripgrep-5jbzwjgm.js} +11 -11
- package/dist/chunks/{event-logger-5t3nmthw.js → ripgrep-5t3nmthw.js} +2 -2
- package/dist/chunks/{event-logger-v2f267zw.js → ripgrep-5zv2xz0x.js} +17 -17
- package/dist/chunks/{event-logger-46efvg8p.js → ripgrep-60bahft7.js} +11 -11
- package/dist/chunks/{event-logger-a48tmg35.js → ripgrep-62cs28jb.js} +5 -5
- package/dist/chunks/{event-logger-669tq793.js → ripgrep-669tq793.js} +1 -1
- package/dist/chunks/{event-logger-6msgmcgs.js → ripgrep-6msgmcgs.js} +1 -1
- package/dist/chunks/{event-logger-vh8m9vgh.js → ripgrep-6pc7fx7t.js} +26 -26
- package/dist/chunks/{event-logger-pkhzxmfp.js → ripgrep-6yvbrjax.js} +20 -20
- package/dist/chunks/{event-logger-r5x6zcsm.js → ripgrep-73tb2d7t.js} +3 -3
- package/dist/chunks/{event-logger-8mfkgmb0.js → ripgrep-762am0a2.js} +3 -3
- package/dist/chunks/{event-logger-km0q4cc0.js → ripgrep-777p5kr8.js} +22 -22
- package/dist/chunks/{event-logger-hxcpnqqq.js → ripgrep-77b9qh7g.js} +15 -15
- package/dist/chunks/{event-logger-v3kcbs8h.js → ripgrep-7ak0evkr.js} +4 -4
- package/dist/chunks/{event-logger-3xa9cbtx.js → ripgrep-7arsjac4.js} +11 -11
- package/dist/chunks/ripgrep-7bm43ve7.js +252 -0
- package/dist/chunks/{event-logger-7bmhse3q.js → ripgrep-7bmhse3q.js} +1 -1
- package/dist/chunks/{event-logger-40zcdha5.js → ripgrep-7c7tqtfq.js} +11 -11
- package/dist/chunks/{event-logger-0jwsre1p.js → ripgrep-7dqw4kz8.js} +5 -5
- package/dist/chunks/{event-logger-f0ekz9ts.js → ripgrep-7h053g4f.js} +15 -15
- package/dist/chunks/{event-logger-nybvked5.js → ripgrep-7pnjd3fd.js} +13 -13
- package/dist/chunks/{event-logger-afdq0bv9.js → ripgrep-7ye0eskq.js} +5 -5
- package/dist/chunks/{event-logger-2syw43ez.js → ripgrep-80nc4spm.js} +11 -11
- package/dist/chunks/{event-logger-f19mgfsc.js → ripgrep-86cf9fw2.js} +11 -11
- package/dist/chunks/{event-logger-5qpddqx9.js → ripgrep-88fr6h4a.js} +30 -30
- package/dist/chunks/{event-logger-8d7r5vzw.js → ripgrep-8d7r5vzw.js} +1 -1
- package/dist/chunks/{event-logger-nnwve76w.js → ripgrep-8jzekk46.js} +14 -14
- package/dist/chunks/{event-logger-ch0zjgx3.js → ripgrep-8p9yqp1g.js} +25 -25
- package/dist/chunks/{event-logger-s8xqzfhv.js → ripgrep-8q3y7ehd.js} +29 -29
- package/dist/chunks/{event-logger-adbn4dna.js → ripgrep-8s5tghjp.js} +22 -22
- package/dist/chunks/{event-logger-dtm1n4d8.js → ripgrep-8wb0zfrh.js} +19 -19
- package/dist/chunks/{event-logger-6hsqvad3.js → ripgrep-94zshge0.js} +26 -26
- package/dist/chunks/{event-logger-kz7agx4r.js → ripgrep-96y38d67.js} +40 -40
- package/dist/chunks/{event-logger-v0ks3twn.js → ripgrep-98cb2jh6.js} +173 -173
- package/dist/chunks/{event-logger-c8bydgjz.js → ripgrep-9ae44cfy.js} +6 -6
- package/dist/chunks/{event-logger-46msr37g.js → ripgrep-9dsm0yy8.js} +9 -9
- package/dist/chunks/{event-logger-xqcbpej0.js → ripgrep-9k4hstdt.js} +42 -42
- package/dist/chunks/{event-logger-cd9nda8q.js → ripgrep-9p41r4tx.js} +23 -23
- package/dist/chunks/{event-logger-5y196rt8.js → ripgrep-9xbg11md.js} +24 -24
- package/dist/chunks/{event-logger-63m4sj6v.js → ripgrep-a5ws9a8a.js} +13 -13
- package/dist/chunks/{event-logger-0jcepjca.js → ripgrep-a7q5ytqy.js} +12 -12
- package/dist/chunks/{event-logger-aaet6srn.js → ripgrep-aaet6srn.js} +2 -2
- package/dist/chunks/{event-logger-syh73nww.js → ripgrep-ad9f3vzh.js} +19 -19
- package/dist/chunks/{event-logger-wn8hqewz.js → ripgrep-ap58tr72.js} +22 -22
- package/dist/chunks/{event-logger-8zv0ajwr.js → ripgrep-b46t8qcq.js} +11 -11
- package/dist/chunks/{event-logger-1mx79f5s.js → ripgrep-b5dg6b6d.js} +19 -19
- package/dist/chunks/{event-logger-b6gygkdw.js → ripgrep-b6gygkdw.js} +2 -2
- package/dist/chunks/{event-logger-he4jzgvh.js → ripgrep-b7wj3gyt.js} +21 -21
- package/dist/chunks/{event-logger-msq0jde0.js → ripgrep-bccb6npm.js} +4 -4
- package/dist/chunks/{event-logger-t9zs3egg.js → ripgrep-bf0ztrs3.js} +4 -4
- package/dist/chunks/{event-logger-h9e7zzhd.js → ripgrep-bpagpxd9.js} +9 -9
- package/dist/chunks/{event-logger-nv6sgpkb.js → ripgrep-bpcm8v83.js} +9 -9
- package/dist/chunks/{event-logger-s78dcbxc.js → ripgrep-bvvrmhe1.js} +19 -19
- package/dist/chunks/{event-logger-ewzsd05a.js → ripgrep-bywg4f5n.js} +44 -44
- package/dist/chunks/{event-logger-p3yw0krh.js → ripgrep-c8br9twv.js} +20 -20
- package/dist/chunks/ripgrep-cd7q2513.js +26 -0
- package/dist/chunks/{event-logger-y8bg65e2.js → ripgrep-cdawn80v.js} +11 -11
- package/dist/chunks/{event-logger-c765mh8b.js → ripgrep-cwa6csj7.js} +9 -9
- package/dist/chunks/{event-logger-0f9afca0.js → ripgrep-d2aac7k2.js} +5 -5
- package/dist/chunks/{event-logger-ntr68xqe.js → ripgrep-dbvccpaz.js} +8 -8
- package/dist/chunks/{event-logger-rtbp0y8z.js → ripgrep-dbxp2k0j.js} +7 -7
- package/dist/chunks/{event-logger-dj2t23y0.js → ripgrep-dj2t23y0.js} +2 -2
- package/dist/chunks/{event-logger-08pqa12r.js → ripgrep-dm8e8cqc.js} +11 -11
- package/dist/chunks/{event-logger-zsbsgkcm.js → ripgrep-dmpxpvyd.js} +11 -11
- package/dist/chunks/{event-logger-yaa6bn1m.js → ripgrep-dw1q9xcc.js} +37 -37
- package/dist/chunks/{event-logger-7np6y5v9.js → ripgrep-e34x8y7p.js} +12 -12
- package/dist/chunks/{event-logger-5qd3pb7m.js → ripgrep-e3qxr5gk.js} +2 -2
- package/dist/chunks/{event-logger-k8qf691v.js → ripgrep-eae6hk2f.js} +17 -17
- package/dist/chunks/{event-logger-ef5x83kb.js → ripgrep-ef5x83kb.js} +1 -1
- package/dist/chunks/{event-logger-jqpxjgen.js → ripgrep-emqpgmd6.js} +27 -27
- package/dist/chunks/{event-logger-ckqp5h15.js → ripgrep-ena3twxc.js} +29 -29
- package/dist/chunks/{event-logger-gcavn3wx.js → ripgrep-engkm2d6.js} +5 -5
- package/dist/chunks/{event-logger-vz9h7ybk.js → ripgrep-enx68je3.js} +18 -18
- package/dist/chunks/{event-logger-0pasfmx1.js → ripgrep-erbxqsgg.js} +18 -18
- package/dist/chunks/{event-logger-erw5rpbs.js → ripgrep-erw5rpbs.js} +2 -2
- package/dist/chunks/{event-logger-pnezrcsm.js → ripgrep-eszpxc5c.js} +5 -5
- package/dist/chunks/{event-logger-etq0c3wd.js → ripgrep-etq0c3wd.js} +1 -1
- package/dist/chunks/{event-logger-b6d8p86x.js → ripgrep-f06c2dtw.js} +17 -17
- package/dist/chunks/{event-logger-scyg2gcb.js → ripgrep-f2aqmkqm.js} +11 -11
- package/dist/chunks/{event-logger-1acjjqhc.js → ripgrep-f2n192rq.js} +4 -4
- package/dist/chunks/{event-logger-h4gjr50j.js → ripgrep-f4ysmyc6.js} +4 -4
- package/dist/chunks/{event-logger-zh8ae39d.js → ripgrep-f8mhce1d.js} +9 -9
- package/dist/chunks/{event-logger-4s11dycz.js → ripgrep-fg7qhaex.js} +55 -55
- package/dist/chunks/{event-logger-v5dkyp31.js → ripgrep-fm2qvscf.js} +4 -4
- package/dist/chunks/{event-logger-k6yq57aq.js → ripgrep-fpnx24t4.js} +3 -3
- package/dist/chunks/{event-logger-fxbjtjnd.js → ripgrep-fxbjtjnd.js} +1 -1
- package/dist/chunks/{event-logger-8xfdh4m7.js → ripgrep-fy1t25hs.js} +10 -10
- package/dist/chunks/{event-logger-a25zmek9.js → ripgrep-fyvg84yx.js} +12 -12
- package/dist/chunks/{event-logger-8w6a2ddy.js → ripgrep-g5rgvkph.js} +32 -32
- package/dist/chunks/{event-logger-erw0j3dc.js → ripgrep-g5xx7w73.js} +13 -13
- package/dist/chunks/{event-logger-n22mwfxb.js → ripgrep-g790jytp.js} +47 -47
- package/dist/chunks/{event-logger-1zqt6k48.js → ripgrep-gc5ex385.js} +11 -11
- package/dist/chunks/{event-logger-gd4qta3r.js → ripgrep-gd4qta3r.js} +1 -1
- package/dist/chunks/{event-logger-gv6a8nnw.js → ripgrep-gv6a8nnw.js} +2 -2
- package/dist/chunks/{event-logger-fm7r8sy8.js → ripgrep-h3g2mynz.js} +7 -7
- package/dist/chunks/{event-logger-4fdckjx1.js → ripgrep-h3qh9gwx.js} +18 -18
- package/dist/chunks/ripgrep-h47he10w.js +4 -0
- package/dist/chunks/{event-logger-3csn3f6x.js → ripgrep-h47rfed7.js} +22 -22
- package/dist/chunks/{event-logger-h6vf3j39.js → ripgrep-h6vf3j39.js} +1 -1
- package/dist/chunks/{event-logger-p7nsp59h.js → ripgrep-h6z8d5tn.js} +4 -4
- package/dist/chunks/{event-logger-dwhttab4.js → ripgrep-hc7vac20.js} +18 -18
- package/dist/chunks/{event-logger-hdnk95c8.js → ripgrep-hdnk95c8.js} +2 -2
- package/dist/chunks/{event-logger-xc3sajb5.js → ripgrep-hn3c4ey4.js} +19 -19
- package/dist/chunks/{event-logger-ef1vt8sq.js → ripgrep-hqh6p6yn.js} +4 -4
- package/dist/chunks/{event-logger-as30p4pk.js → ripgrep-hv38ezqz.js} +31 -31
- package/dist/chunks/{event-logger-akg7mpd2.js → ripgrep-hv6rh1ah.js} +25 -25
- package/dist/chunks/{event-logger-vy0sc1r4.js → ripgrep-hvtp2efv.js} +28 -28
- package/dist/chunks/{event-logger-ws6abfst.js → ripgrep-hyr91dj2.js} +3 -3
- package/dist/chunks/{event-logger-3y81hdb8.js → ripgrep-j26cqbwq.js} +3 -3
- package/dist/chunks/{event-logger-j56e64zr.js → ripgrep-j56e64zr.js} +1 -1
- package/dist/chunks/{event-logger-ceaeedp1.js → ripgrep-j68eznfn.js} +6 -6
- package/dist/chunks/{event-logger-5t3q07mb.js → ripgrep-j75a2xa8.js} +9 -9
- package/dist/chunks/{event-logger-x09vac25.js → ripgrep-jbj27hk3.js} +5 -5
- package/dist/chunks/{event-logger-17dw7sdx.js → ripgrep-jegn5rpz.js} +43 -43
- package/dist/chunks/{event-logger-t00k10qy.js → ripgrep-jhewz3v4.js} +13 -13
- package/dist/chunks/{event-logger-jjs74g98.js → ripgrep-jjs74g98.js} +2 -2
- package/dist/chunks/{event-logger-9c3np669.js → ripgrep-jkka0c6f.js} +8 -8
- package/dist/chunks/{event-logger-jmphe03k.js → ripgrep-jmphe03k.js} +4 -4
- package/dist/chunks/{event-logger-5gk8amnh.js → ripgrep-jntbakwj.js} +10 -10
- package/dist/chunks/{event-logger-q4x4f9x3.js → ripgrep-jvdt4jv7.js} +6 -6
- package/dist/chunks/{event-logger-pg0h3cca.js → ripgrep-kh0v43c1.js} +7 -7
- package/dist/chunks/{event-logger-nrdmrqsx.js → ripgrep-kk00bynn.js} +21 -21
- package/dist/chunks/{event-logger-vsmhe3bm.js → ripgrep-kkgwyedr.js} +16 -16
- package/dist/chunks/{event-logger-qp69s4zb.js → ripgrep-kv8tb5ny.js} +16 -16
- package/dist/chunks/{event-logger-mgs7q34e.js → ripgrep-kv9ap8w1.js} +11 -11
- package/dist/chunks/{event-logger-y0mc46pw.js → ripgrep-kw9xdzv2.js} +9 -9
- package/dist/chunks/{event-logger-m0jqrx5p.js → ripgrep-m0jqrx5p.js} +2 -2
- package/dist/chunks/{event-logger-bgaehm52.js → ripgrep-m2cwgzsz.js} +21 -21
- package/dist/chunks/{event-logger-m3fdjcah.js → ripgrep-m3fdjcah.js} +1 -1
- package/dist/chunks/{event-logger-c9sk7z94.js → ripgrep-m3wcxb4h.js} +19 -19
- package/dist/chunks/{event-logger-bbcxnpjs.js → ripgrep-m6yarymk.js} +25 -25
- package/dist/chunks/{event-logger-m9w0rfyh.js → ripgrep-m9w0rfyh.js} +1 -1
- package/dist/chunks/{event-logger-56gdpj1q.js → ripgrep-mfqp6xfm.js} +6 -6
- package/dist/chunks/{event-logger-2hppe1qg.js → ripgrep-mh050mx3.js} +26 -26
- package/dist/chunks/{event-logger-44ke2mar.js → ripgrep-mmr7bq34.js} +8 -8
- package/dist/chunks/{event-logger-newypggy.js → ripgrep-mqc96y4z.js} +12 -12
- package/dist/chunks/{event-logger-q42dvkxw.js → ripgrep-mw03hhna.js} +20 -20
- package/dist/chunks/{event-logger-q3hye7rp.js → ripgrep-n06c4v83.js} +43 -43
- package/dist/chunks/{event-logger-3m7gm69k.js → ripgrep-n8ha5vbr.js} +55 -55
- package/dist/chunks/{event-logger-y51nmxxr.js → ripgrep-n91rd0qh.js} +315 -315
- package/dist/chunks/{event-logger-5sfbvqw6.js → ripgrep-naw1myqz.js} +22 -22
- package/dist/chunks/{event-logger-whjydms9.js → ripgrep-npch8yde.js} +38 -38
- package/dist/chunks/{event-logger-fr5z3gca.js → ripgrep-npm9gzvc.js} +1 -1
- package/dist/chunks/{event-logger-bwckxjxx.js → ripgrep-nqjmnyjs.js} +11 -11
- package/dist/chunks/{event-logger-h4z1mxff.js → ripgrep-nyqx1cb3.js} +5 -5
- package/dist/chunks/{event-logger-k3c624dm.js → ripgrep-nzks3jc8.js} +3 -3
- package/dist/chunks/{event-logger-510m7gjw.js → ripgrep-p1nm93x7.js} +5 -5
- package/dist/chunks/{event-logger-p28j5sbe.js → ripgrep-p28j5sbe.js} +2 -2
- package/dist/chunks/{event-logger-mtd3hevm.js → ripgrep-p39gsrf5.js} +41 -41
- package/dist/chunks/{event-logger-tw4cw4te.js → ripgrep-p3jb5j7b.js} +33 -33
- package/dist/chunks/{event-logger-j113hsvj.js → ripgrep-p51w04et.js} +8 -8
- package/dist/chunks/{event-logger-nhzac2vt.js → ripgrep-p6r503wj.js} +26 -26
- package/dist/chunks/{event-logger-8y0ey7w7.js → ripgrep-p82qgwm6.js} +14 -14
- package/dist/chunks/{event-logger-j311gd59.js → ripgrep-pjedbq3k.js} +7 -7
- package/dist/chunks/{event-logger-pjvnvgmy.js → ripgrep-pjvnvgmy.js} +1 -1
- package/dist/chunks/{event-logger-pknna89w.js → ripgrep-pknna89w.js} +1 -1
- package/dist/chunks/{event-logger-b282z4ws.js → ripgrep-pm5byaap.js} +20 -20
- package/dist/chunks/{event-logger-xe37s958.js → ripgrep-pmryb5d7.js} +24 -24
- package/dist/chunks/{event-logger-gz9012ze.js → ripgrep-ps7p92m4.js} +15 -15
- package/dist/chunks/{event-logger-rt0dk2st.js → ripgrep-pvwh1q8t.js} +25 -25
- package/dist/chunks/{event-logger-v6efr277.js → ripgrep-pzz9wtjp.js} +4 -4
- package/dist/chunks/{event-logger-wqc6684y.js → ripgrep-q970vn6j.js} +2 -2
- package/dist/chunks/{event-logger-c121y83y.js → ripgrep-qd7cft6p.js} +9 -9
- package/dist/chunks/{event-logger-5jghf0hr.js → ripgrep-qdcqwhjs.js} +17 -17
- package/dist/chunks/{event-logger-cr4m8zwx.js → ripgrep-qfpwt3wt.js} +8 -8
- package/dist/chunks/{event-logger-xfkkasph.js → ripgrep-qqeeq2t9.js} +7 -7
- package/dist/chunks/{event-logger-gc0sa5ac.js → ripgrep-qrn1gxgv.js} +84 -84
- package/dist/chunks/{event-logger-qsdy395h.js → ripgrep-qsdy395h.js} +1 -1
- package/dist/chunks/{event-logger-xg1bq5dx.js → ripgrep-r51gqmb4.js} +4 -4
- package/dist/chunks/{event-logger-tqsbc54k.js → ripgrep-r83etpq8.js} +6 -6
- package/dist/chunks/{event-logger-y3x14sz7.js → ripgrep-ranyrkk2.js} +11 -11
- package/dist/chunks/{event-logger-rdw6cm16.js → ripgrep-rdw6cm16.js} +1 -1
- package/dist/chunks/{event-logger-2mn660gm.js → ripgrep-rqwcfhke.js} +11 -11
- package/dist/chunks/{event-logger-1xbk51d1.js → ripgrep-rvtvfpzy.js} +6 -6
- package/dist/chunks/{event-logger-ezy2bptn.js → ripgrep-rxcdjwh1.js} +8 -8
- package/dist/chunks/{event-logger-pstg3rfm.js → ripgrep-ryt7pzqc.js} +1 -1
- package/dist/chunks/{event-logger-yrznvahk.js → ripgrep-s4enseaf.js} +2 -2
- package/dist/chunks/{event-logger-gjdnp5j1.js → ripgrep-sdgam4xr.js} +1 -1
- package/dist/chunks/{event-logger-533t3k18.js → ripgrep-sgwh5nyn.js} +8 -8
- package/dist/chunks/{event-logger-6h1q4549.js → ripgrep-sh1v16f4.js} +32 -32
- package/dist/chunks/{event-logger-qq10ch32.js → ripgrep-szb7x5e7.js} +25 -25
- package/dist/chunks/{event-logger-enxf8gt6.js → ripgrep-t0ac4kqt.js} +16 -16
- package/dist/chunks/{event-logger-8qmmky1n.js → ripgrep-t0w9tswa.js} +11 -11
- package/dist/chunks/{event-logger-embw8kgh.js → ripgrep-t2az9yje.js} +4 -4
- package/dist/chunks/{event-logger-t550f9t1.js → ripgrep-t550f9t1.js} +1 -1
- package/dist/chunks/{event-logger-k9eyp8c5.js → ripgrep-taxxp7qa.js} +20 -20
- package/dist/chunks/{event-logger-tazgh4e4.js → ripgrep-tazgh4e4.js} +1 -1
- package/dist/chunks/{event-logger-tcezcvh9.js → ripgrep-tcezcvh9.js} +1 -1
- package/dist/chunks/{event-logger-tdstcens.js → ripgrep-tdstcens.js} +1 -1
- package/dist/chunks/{event-logger-zxs38eqt.js → ripgrep-terq9fxp.js} +28 -28
- package/dist/chunks/{event-logger-kkp8zx71.js → ripgrep-tfzngn12.js} +4 -4
- package/dist/chunks/{event-logger-fc3harsg.js → ripgrep-tgaz0dtb.js} +5 -5
- package/dist/chunks/{event-logger-a1apahce.js → ripgrep-tp9tgz8k.js} +11 -11
- package/dist/chunks/{event-logger-sqgt392s.js → ripgrep-tv5x03kr.js} +27 -27
- package/dist/chunks/{event-logger-dtv5040x.js → ripgrep-tvmycyz8.js} +5 -5
- package/dist/chunks/{event-logger-tvtrv512.js → ripgrep-tvtrv512.js} +1 -1
- package/dist/chunks/{event-logger-p6n5ewqn.js → ripgrep-txwbxve6.js} +15 -15
- package/dist/chunks/{event-logger-w9hz286w.js → ripgrep-tynr2gr2.js} +28 -28
- package/dist/chunks/{event-logger-1r23a98c.js → ripgrep-v19709j4.js} +33 -33
- package/dist/chunks/{event-logger-veqvce7d.js → ripgrep-veqvce7d.js} +1 -1
- package/dist/chunks/{event-logger-tvk4srm3.js → ripgrep-vfpvfcad.js} +32 -32
- package/dist/chunks/{event-logger-c7a8dyv3.js → ripgrep-vspmzc2d.js} +14 -14
- package/dist/chunks/{event-logger-a68v6zx7.js → ripgrep-vyrd71eq.js} +11 -11
- package/dist/chunks/{event-logger-vzcthcp8.js → ripgrep-vzcthcp8.js} +1 -1
- package/dist/chunks/{event-logger-r3fw3xwq.js → ripgrep-vzfyj1ka.js} +12 -12
- package/dist/chunks/{event-logger-w3wsvvr9.js → ripgrep-w3wsvvr9.js} +1 -1
- package/dist/chunks/{event-logger-v880302c.js → ripgrep-w8ee3ykt.js} +28 -28
- package/dist/chunks/{event-logger-qp1yqj07.js → ripgrep-w9k11mtt.js} +16 -16
- package/dist/chunks/{event-logger-89wvkx3n.js → ripgrep-wa8gayma.js} +93 -93
- package/dist/chunks/{event-logger-wd87259q.js → ripgrep-wd87259q.js} +1 -1
- package/dist/chunks/{event-logger-1yf2qjj7.js → ripgrep-wdkpcg2j.js} +21 -21
- package/dist/chunks/{event-logger-5g0g34ek.js → ripgrep-wqkfmf7p.js} +11 -11
- package/dist/chunks/{event-logger-475xsn2x.js → ripgrep-wsfhs49f.js} +3 -3
- package/dist/chunks/{event-logger-3pt4dhyb.js → ripgrep-wws8y0j5.js} +7 -7
- package/dist/chunks/{event-logger-x1ezjp6w.js → ripgrep-x1ezjp6w.js} +1 -1
- package/dist/chunks/{event-logger-nemvvhp1.js → ripgrep-x8dfedm0.js} +5 -5
- package/dist/chunks/{event-logger-addpfpm2.js → ripgrep-x9ayx9my.js} +5 -5
- package/dist/chunks/{event-logger-6hc1ve34.js → ripgrep-xb6f42dc.js} +14 -14
- package/dist/chunks/{event-logger-zs2egq8y.js → ripgrep-xgw0etvz.js} +2 -2
- package/dist/chunks/{event-logger-ejre7x2g.js → ripgrep-xrbsbc41.js} +7 -7
- package/dist/chunks/{event-logger-cc6fgmxw.js → ripgrep-xvyew5bh.js} +26 -26
- package/dist/chunks/{event-logger-4tr7qdh0.js → ripgrep-xyb0jyg8.js} +6 -6
- package/dist/chunks/{event-logger-sfk65rgw.js → ripgrep-xyssbcjp.js} +8 -8
- package/dist/chunks/{event-logger-3td8ra85.js → ripgrep-xz99hjyp.js} +8 -8
- package/dist/chunks/{event-logger-y1fvbwt7.js → ripgrep-y1fvbwt7.js} +1 -1
- package/dist/chunks/{event-logger-sfh11f92.js → ripgrep-y34kqq23.js} +19 -19
- package/dist/chunks/{event-logger-n7z9xjgh.js → ripgrep-y3kqwzhp.js} +9 -9
- package/dist/chunks/{event-logger-dpkg50ah.js → ripgrep-y71avatq.js} +4 -4
- package/dist/chunks/{event-logger-tjzps5h2.js → ripgrep-yanrta8x.js} +28 -28
- package/dist/chunks/{event-logger-j945v2sv.js → ripgrep-ydzmr5w4.js} +22 -22
- package/dist/chunks/{event-logger-efadqd38.js → ripgrep-yh6dn83m.js} +12 -12
- package/dist/chunks/{event-logger-yrhqyw5v.js → ripgrep-yrhqyw5v.js} +1 -1
- package/dist/chunks/{event-logger-ah5wg1j1.js → ripgrep-ysddpjww.js} +6 -6
- package/dist/chunks/{event-logger-148btmhs.js → ripgrep-yyaayjfj.js} +65 -65
- package/dist/chunks/{event-logger-z0bkrqjs.js → ripgrep-z0bkrqjs.js} +1 -1
- package/dist/chunks/{event-logger-3w5nwqty.js → ripgrep-zb5wqgkq.js} +51 -51
- package/dist/chunks/{event-logger-zeh9ct20.js → ripgrep-zeh9ct20.js} +2 -2
- package/dist/chunks/{event-logger-wcp0pvg9.js → ripgrep-zmgjwfd0.js} +41 -41
- package/dist/chunks/{event-logger-zr2ceqn5.js → ripgrep-zr2ceqn5.js} +1 -1
- package/dist/chunks/{event-logger-vkja9z68.js → ripgrep-ztyn76tz.js} +11 -11
- package/dist/chunks/{event-logger-zxq2ej10.js → ripgrep-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +78 -78
- package/dist/config/discovery.js +81 -81
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +105 -105
- package/dist/config/plugin/agent.js +122 -122
- package/dist/config/plugin/command.js +211 -211
- package/dist/config/plugin/compaction.js +159 -159
- package/dist/config/plugin/compatibility.js +140 -140
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +123 -123
- package/dist/config/plugin/image.js +122 -122
- package/dist/config/plugin/instruction.js +89 -89
- package/dist/config/plugin/location-watcher.js +124 -124
- package/dist/config/plugin/mcp.js +129 -129
- package/dist/config/plugin/policy.js +122 -122
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +124 -124
- package/dist/config/plugin/shell.js +122 -122
- package/dist/config/plugin/skill-file.js +101 -101
- package/dist/config/plugin/skill.js +141 -141
- package/dist/config/plugin/snapshot.js +122 -122
- package/dist/config/plugin/source.js +123 -123
- package/dist/config/plugin/tool-output.js +124 -124
- package/dist/config/plugin/websearch.js +121 -121
- package/dist/config/plugin/worktree.js +124 -124
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +127 -127
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +82 -82
- package/dist/database/database.js +71 -71
- 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.gen.js +48 -48
- package/dist/database/migration.js +50 -50
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +92 -92
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +94 -94
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +71 -71
- package/dist/file-access.js +103 -103
- package/dist/file-mutation.js +93 -93
- package/dist/file-retention.js +1 -1
- package/dist/file.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +226 -226
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +105 -105
- package/dist/form.js +79 -79
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +88 -88
- package/dist/generate.js +102 -102
- 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 +90 -90
- 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 +359 -359
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +86 -86
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +83 -83
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +72 -72
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +105 -105
- package/dist/location-mutation.js +103 -103
- package/dist/location-service-map.js +85 -85
- package/dist/location-services.js +356 -356
- package/dist/location.js +82 -82
- package/dist/mcp/client.js +90 -90
- package/dist/mcp/index.js +107 -107
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +77 -77
- package/dist/mcp/stdio.js +89 -89
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +90 -90
- package/dist/model-resolver.js +97 -97
- package/dist/model.js +97 -97
- package/dist/models-dev.js +106 -106
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +81 -81
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +114 -114
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +87 -87
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +74 -74
- package/dist/plugin/agent.js +101 -101
- package/dist/plugin/command.js +98 -98
- package/dist/plugin/compaction.js +130 -130
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +217 -217
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +330 -330
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +95 -95
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +101 -101
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +89 -89
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +120 -120
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +118 -118
- package/dist/plugin/provider/digitalocean.js +92 -92
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +92 -92
- package/dist/plugin/provider/gitlab.js +90 -90
- package/dist/plugin/provider/google-vertex.js +89 -89
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +76 -76
- package/dist/plugin/provider/lmstudio.js +121 -121
- package/dist/plugin/provider/modal.js +91 -91
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +121 -121
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +92 -92
- package/dist/plugin/provider/openrouter.js +90 -90
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +77 -77
- package/dist/plugin/provider/prompt-cache-key.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +90 -90
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +121 -121
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +89 -89
- package/dist/plugin/provider/vllm.js +119 -119
- package/dist/plugin/provider/xai.js +90 -90
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +158 -158
- package/dist/plugin/sdk.js +73 -73
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +140 -140
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -347
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +85 -85
- package/dist/plugin/vcs/hg.js +85 -85
- package/dist/plugin/warming.js +120 -120
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +224 -224
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +81 -81
- package/dist/provider.js +96 -96
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/schema.js +3 -3
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +88 -88
- package/dist/reference.js +90 -90
- package/dist/repository-cache.js +80 -80
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +96 -96
- package/dist/rpc.js +85 -85
- package/dist/schema.js +1 -1
- package/dist/session/command.js +73 -73
- package/dist/session/compaction.js +131 -131
- package/dist/session/context.js +151 -151
- package/dist/session/diff.js +87 -87
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +222 -222
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +150 -150
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +85 -85
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +78 -78
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +96 -96
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +118 -118
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +85 -85
- package/dist/session/prompt.js +104 -104
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +89 -89
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +228 -228
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +97 -97
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +113 -113
- package/dist/session/runner/step.js +123 -123
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +171 -171
- package/dist/session/shell.js +137 -137
- package/dist/session/skill.js +102 -102
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +74 -74
- package/dist/session/store.js +86 -86
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +209 -209
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +149 -149
- package/dist/session/to-session-error.js +110 -110
- package/dist/session/transfer.js +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +219 -219
- 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 +139 -139
- package/dist/skill/discovery.js +2 -2
- package/dist/skill/instructions.js +106 -106
- package/dist/skill.js +111 -111
- package/dist/snapshot.js +90 -90
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +126 -126
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +123 -123
- package/dist/tool/plugin/grep.js +119 -119
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +121 -121
- package/dist/tool/plugin/question.js +102 -102
- package/dist/tool/plugin/read.js +124 -124
- package/dist/tool/plugin/shell.js +214 -214
- package/dist/tool/plugin/skill.js +112 -112
- package/dist/tool/plugin/subagent.js +218 -218
- package/dist/tool/plugin/webfetch.js +111 -111
- package/dist/tool/plugin/websearch.js +111 -111
- package/dist/tool/plugin/write.js +121 -121
- package/dist/tool/read-filesystem.js +99 -99
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/attachment.js +2 -2
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/formatter.js +5 -5
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +91 -91
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/v1/permission.js +1 -1
- package/dist/variant.js +92 -92
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +88 -88
- package/dist/websearch.js +81 -81
- package/dist/wellknown/plugin.js +75 -75
- package/dist/wellknown.js +80 -80
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +79 -79
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +88 -88
- package/dist/worktree.js +95 -95
- package/package.json +8 -8
- package/dist/chunks/event-logger-05e5mmsy.js +0 -252
- package/dist/chunks/event-logger-28bncwe8.js +0 -26
- package/dist/chunks/event-logger-9sh4wc5j.js +0 -18
- package/dist/chunks/event-logger-xrsqh21y.js +0 -4
- /package/dist/chunks/{event-logger-0qkdqm5v.js → ripgrep-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{event-logger-0zkw76rk.js → ripgrep-0zkw76rk.js} +0 -0
- /package/dist/chunks/{event-logger-17cy0kzp.js → ripgrep-17cy0kzp.js} +0 -0
- /package/dist/chunks/{event-logger-1cnp2v09.js → ripgrep-1cnp2v09.js} +0 -0
- /package/dist/chunks/{event-logger-1kg9ymc8.js → ripgrep-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{event-logger-24dcb14g.js → ripgrep-24dcb14g.js} +0 -0
- /package/dist/chunks/{event-logger-2710q6r3.js → ripgrep-2710q6r3.js} +0 -0
- /package/dist/chunks/{event-logger-2axfhc9x.js → ripgrep-2axfhc9x.js} +0 -0
- /package/dist/chunks/{event-logger-2c3vjs8z.js → ripgrep-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{event-logger-359p4xyc.js → ripgrep-359p4xyc.js} +0 -0
- /package/dist/chunks/{event-logger-3asan66x.js → ripgrep-3asan66x.js} +0 -0
- /package/dist/chunks/{event-logger-3v8g72cx.js → ripgrep-3v8g72cx.js} +0 -0
- /package/dist/chunks/{event-logger-3w5fmr99.js → ripgrep-3w5fmr99.js} +0 -0
- /package/dist/chunks/{event-logger-3wcehsnq.js → ripgrep-3wcehsnq.js} +0 -0
- /package/dist/chunks/{event-logger-43n2bw4t.js → ripgrep-43n2bw4t.js} +0 -0
- /package/dist/chunks/{event-logger-4knz6hnm.js → ripgrep-4knz6hnm.js} +0 -0
- /package/dist/chunks/{event-logger-4vcrnpx2.js → ripgrep-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{event-logger-4y7fprxs.js → ripgrep-4y7fprxs.js} +0 -0
- /package/dist/chunks/{event-logger-53557ph1.js → ripgrep-53557ph1.js} +0 -0
- /package/dist/chunks/{event-logger-550bvhaj.js → ripgrep-550bvhaj.js} +0 -0
- /package/dist/chunks/{event-logger-6prwharc.js → ripgrep-6prwharc.js} +0 -0
- /package/dist/chunks/{event-logger-7akdwqpd.js → ripgrep-7akdwqpd.js} +0 -0
- /package/dist/chunks/{event-logger-7m9af43g.js → ripgrep-7m9af43g.js} +0 -0
- /package/dist/chunks/{event-logger-822emrt2.js → ripgrep-822emrt2.js} +0 -0
- /package/dist/chunks/{event-logger-88xbtdfr.js → ripgrep-88xbtdfr.js} +0 -0
- /package/dist/chunks/{event-logger-8n3pysct.js → ripgrep-8n3pysct.js} +0 -0
- /package/dist/chunks/{event-logger-922hggd3.js → ripgrep-922hggd3.js} +0 -0
- /package/dist/chunks/{event-logger-9a4afbnw.js → ripgrep-9a4afbnw.js} +0 -0
- /package/dist/chunks/{event-logger-9rqn6x4v.js → ripgrep-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{event-logger-a6k6eb26.js → ripgrep-a6k6eb26.js} +0 -0
- /package/dist/chunks/{event-logger-af5trqkr.js → ripgrep-af5trqkr.js} +0 -0
- /package/dist/chunks/{event-logger-afrmfg78.js → ripgrep-afrmfg78.js} +0 -0
- /package/dist/chunks/{event-logger-aqzs7mqg.js → ripgrep-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{event-logger-atq7p7m5.js → ripgrep-atq7p7m5.js} +0 -0
- /package/dist/chunks/{event-logger-bkyjaxrp.js → ripgrep-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{event-logger-bmr6ed5q.js → ripgrep-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{event-logger-cf4snx6d.js → ripgrep-cf4snx6d.js} +0 -0
- /package/dist/chunks/{event-logger-cvy3z8tj.js → ripgrep-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{event-logger-d9fn303g.js → ripgrep-d9fn303g.js} +0 -0
- /package/dist/chunks/{event-logger-d9jj8t3e.js → ripgrep-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{event-logger-dajrwvna.js → ripgrep-dajrwvna.js} +0 -0
- /package/dist/chunks/{event-logger-dap0rakb.js → ripgrep-dap0rakb.js} +0 -0
- /package/dist/chunks/{event-logger-df08tz66.js → ripgrep-df08tz66.js} +0 -0
- /package/dist/chunks/{event-logger-dy18nga0.js → ripgrep-dy18nga0.js} +0 -0
- /package/dist/chunks/{event-logger-e5kj55wp.js → ripgrep-e5kj55wp.js} +0 -0
- /package/dist/chunks/{event-logger-e73j6tqm.js → ripgrep-e73j6tqm.js} +0 -0
- /package/dist/chunks/{event-logger-ec1grn59.js → ripgrep-ec1grn59.js} +0 -0
- /package/dist/chunks/{event-logger-eh3zwz77.js → ripgrep-eh3zwz77.js} +0 -0
- /package/dist/chunks/{event-logger-emrn6kk6.js → ripgrep-emrn6kk6.js} +0 -0
- /package/dist/chunks/{event-logger-f0mxakyp.js → ripgrep-f0mxakyp.js} +0 -0
- /package/dist/chunks/{event-logger-f6n9ztr4.js → ripgrep-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{event-logger-faypxj3z.js → ripgrep-faypxj3z.js} +0 -0
- /package/dist/chunks/{event-logger-fd410y7t.js → ripgrep-fd410y7t.js} +0 -0
- /package/dist/chunks/{event-logger-fxgpk5d8.js → ripgrep-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{event-logger-g4wezp1m.js → ripgrep-g4wezp1m.js} +0 -0
- /package/dist/chunks/{event-logger-g86h250q.js → ripgrep-g86h250q.js} +0 -0
- /package/dist/chunks/{event-logger-gebd4c9n.js → ripgrep-gebd4c9n.js} +0 -0
- /package/dist/chunks/{event-logger-gftt206x.js → ripgrep-gftt206x.js} +0 -0
- /package/dist/chunks/{event-logger-hjbc5kem.js → ripgrep-hjbc5kem.js} +0 -0
- /package/dist/chunks/{event-logger-hk9envan.js → ripgrep-hk9envan.js} +0 -0
- /package/dist/chunks/{event-logger-j2ntwpah.js → ripgrep-j2ntwpah.js} +0 -0
- /package/dist/chunks/{event-logger-j5zkgpj8.js → ripgrep-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{event-logger-jjkms2e6.js → ripgrep-jjkms2e6.js} +0 -0
- /package/dist/chunks/{event-logger-jr7sbwjy.js → ripgrep-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{event-logger-jwfs4k6c.js → ripgrep-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{event-logger-jzg6c2d5.js → ripgrep-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{event-logger-mp448xyj.js → ripgrep-mp448xyj.js} +0 -0
- /package/dist/chunks/{event-logger-msx8hqn2.js → ripgrep-msx8hqn2.js} +0 -0
- /package/dist/chunks/{event-logger-n05xt0ee.js → ripgrep-n05xt0ee.js} +0 -0
- /package/dist/chunks/{event-logger-n3j8tn72.js → ripgrep-n3j8tn72.js} +0 -0
- /package/dist/chunks/{event-logger-njntx4h6.js → ripgrep-njntx4h6.js} +0 -0
- /package/dist/chunks/{event-logger-q3sfg36h.js → ripgrep-q3sfg36h.js} +0 -0
- /package/dist/chunks/{event-logger-q74kybfr.js → ripgrep-q74kybfr.js} +0 -0
- /package/dist/chunks/{event-logger-qaymkmh1.js → ripgrep-qaymkmh1.js} +0 -0
- /package/dist/chunks/{event-logger-qb87gjwd.js → ripgrep-qb87gjwd.js} +0 -0
- /package/dist/chunks/{event-logger-qfa1cgps.js → ripgrep-qfa1cgps.js} +0 -0
- /package/dist/chunks/{event-logger-qg3g05ea.js → ripgrep-qg3g05ea.js} +0 -0
- /package/dist/chunks/{event-logger-qrg20bc0.js → ripgrep-qrg20bc0.js} +0 -0
- /package/dist/chunks/{event-logger-rcb2kzg1.js → ripgrep-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{event-logger-sdp7kfr6.js → ripgrep-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{event-logger-sk3qaz4a.js → ripgrep-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{event-logger-ssg3fenm.js → ripgrep-ssg3fenm.js} +0 -0
- /package/dist/chunks/{event-logger-twg0f83k.js → ripgrep-twg0f83k.js} +0 -0
- /package/dist/chunks/{event-logger-w803qqfp.js → ripgrep-w803qqfp.js} +0 -0
- /package/dist/chunks/{event-logger-wc3fc9cn.js → ripgrep-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{event-logger-wer8tq1h.js → ripgrep-wer8tq1h.js} +0 -0
- /package/dist/chunks/{event-logger-wtztk69x.js → ripgrep-wtztk69x.js} +0 -0
- /package/dist/chunks/{event-logger-x0ckcb58.js → ripgrep-x0ckcb58.js} +0 -0
- /package/dist/chunks/{event-logger-x61499pn.js → ripgrep-x61499pn.js} +0 -0
- /package/dist/chunks/{event-logger-y44na4kk.js → ripgrep-y44na4kk.js} +0 -0
- /package/dist/chunks/{event-logger-y8cydn3q.js → ripgrep-y8cydn3q.js} +0 -0
- /package/dist/chunks/{event-logger-y8f7s663.js → ripgrep-y8f7s663.js} +0 -0
- /package/dist/chunks/{event-logger-ygaqb7jw.js → ripgrep-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{event-logger-ym463w8f.js → ripgrep-ym463w8f.js} +0 -0
- /package/dist/chunks/{event-logger-z9919s4g.js → ripgrep-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service81,
|
|
9
|
+
node84
|
|
10
|
+
} from "./ripgrep-e34x8y7p.js";
|
|
11
11
|
import {
|
|
12
12
|
Service79,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
node82
|
|
14
|
+
} from "./ripgrep-xrbsbc41.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./ripgrep-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error4,
|
|
26
|
+
ID: () => ID15,
|
|
27
|
+
Service: () => Service74,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node76,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,20 +34,20 @@ import path from "path";
|
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID15 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error4 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service74 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service74, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service81;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
52
|
const location = yield* Service79;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error4({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error4({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID15.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service74.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node76 = makeLocationNode({
|
|
144
|
+
service: Service74,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node84, Global.node, node82]
|
|
147
147
|
});
|
|
148
|
-
var noopLayer3 = Layer.succeed(
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service74, Service74.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service61, Service61.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error4 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error4({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID15, Error4, Service74, node76, noopLayer3, exports_snapshot2 };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service83
|
|
3
|
+
} from "./ripgrep-vspmzc2d.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service34
|
|
6
|
+
} from "./ripgrep-9ae44cfy.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./ripgrep-1x11rq2a.js";
|
|
10
10
|
import {
|
|
11
11
|
provenance2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./ripgrep-bccb6npm.js";
|
|
13
13
|
import {
|
|
14
14
|
preview2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./ripgrep-60bahft7.js";
|
|
16
16
|
import {
|
|
17
17
|
baseTranscript2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./ripgrep-sh1v16f4.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service19
|
|
21
|
+
} from "./ripgrep-qrn1gxgv.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/session/generate.ts
|
|
27
27
|
var exports_generate = {};
|
|
@@ -32,12 +32,12 @@ __export(exports_generate, {
|
|
|
32
32
|
import { LLMClient, Message } from "@opencode/ai";
|
|
33
33
|
import { Effect } from "effect";
|
|
34
34
|
var generate2 = Effect.fn("SessionGenerate.generate")(function* (input) {
|
|
35
|
-
const instances = yield*
|
|
36
|
-
const database = yield*
|
|
35
|
+
const instances = yield* Service34;
|
|
36
|
+
const database = yield* Service83;
|
|
37
37
|
const llm = yield* LLMClient.Service;
|
|
38
38
|
return yield* Effect.gen(function* () {
|
|
39
39
|
yield* awaitActivation2;
|
|
40
|
-
const context = yield*
|
|
40
|
+
const context = yield* Service19;
|
|
41
41
|
const selection = yield* context.select(input.session.id);
|
|
42
42
|
const model = yield* context.resolveModel(selection.session);
|
|
43
43
|
const history = yield* preview2(database.db, selection.session.id, selection.instructions, provenance2(model) ?? "local");
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service83
|
|
3
|
+
} from "./ripgrep-vspmzc2d.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./ripgrep-ps7p92m4.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service34
|
|
9
|
+
} from "./ripgrep-9ae44cfy.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./ripgrep-922hggd3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
ID15,
|
|
15
|
+
Service74
|
|
16
|
+
} from "./ripgrep-88fr6h4a.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./ripgrep-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
21
|
SessionMessage2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./ripgrep-gftt206x.js";
|
|
23
23
|
import {
|
|
24
24
|
MessageNotFoundError2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./ripgrep-bpcm8v83.js";
|
|
26
26
|
import {
|
|
27
27
|
SessionMessageTable2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./ripgrep-5c4hm403.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/session/revert.ts
|
|
34
34
|
var exports_revert = {};
|
|
@@ -42,12 +42,12 @@ __export(exports_revert, {
|
|
|
42
42
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
45
|
-
const instances = yield*
|
|
46
|
-
const database = yield*
|
|
47
|
-
const bus = yield*
|
|
45
|
+
const instances = yield* Service34;
|
|
46
|
+
const database = yield* Service83;
|
|
47
|
+
const bus = yield* Service82;
|
|
48
48
|
return yield* Effect.gen(function* () {
|
|
49
|
-
const snapshot = yield*
|
|
50
|
-
const original = input.session.revert?.snapshot ?
|
|
49
|
+
const snapshot = yield* Service74;
|
|
50
|
+
const original = input.session.revert?.snapshot ? ID15.make(input.session.revert.snapshot) : yield* snapshot.capture();
|
|
51
51
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
52
52
|
const restore = new Map;
|
|
53
53
|
if (original) {
|
|
@@ -74,13 +74,13 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
74
74
|
}).pipe(instances.provide(input.session));
|
|
75
75
|
});
|
|
76
76
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
77
|
-
const instances = yield*
|
|
78
|
-
const bus = yield*
|
|
77
|
+
const instances = yield* Service34;
|
|
78
|
+
const bus = yield* Service82;
|
|
79
79
|
yield* Effect.gen(function* () {
|
|
80
|
-
const snapshot = yield*
|
|
80
|
+
const snapshot = yield* Service74;
|
|
81
81
|
if (!session.revert)
|
|
82
82
|
return;
|
|
83
|
-
const original = session.revert.snapshot ?
|
|
83
|
+
const original = session.revert.snapshot ? ID15.make(session.revert.snapshot) : undefined;
|
|
84
84
|
if (original)
|
|
85
85
|
yield* snapshot.restore({
|
|
86
86
|
files: new Map((session.revert.files ?? []).map((file) => [RelativePath2.make(file.file), original]))
|
|
@@ -111,7 +111,7 @@ var plan = Effect.fn("SessionRevert.plan")(function* (db, input) {
|
|
|
111
111
|
continue;
|
|
112
112
|
for (const file of message.snapshot.files ?? [])
|
|
113
113
|
if (!files.has(file))
|
|
114
|
-
files.set(file,
|
|
114
|
+
files.set(file, ID15.make(message.snapshot.start));
|
|
115
115
|
}
|
|
116
116
|
return files;
|
|
117
117
|
});
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service82,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-ps7p92m4.js";
|
|
5
5
|
import {
|
|
6
6
|
environment2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-y34kqq23.js";
|
|
8
8
|
import {
|
|
9
9
|
makeDaemonTransport2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ripgrep-sk3qaz4a.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/persistent-pty/index.ts
|
|
16
16
|
var exports_persistent_pty = {};
|
|
17
17
|
__export(exports_persistent_pty, {
|
|
18
18
|
Handoff: () => Handoff2,
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Options: () =>
|
|
19
|
+
NotFoundError: () => NotFoundError8,
|
|
20
|
+
Options: () => Options6,
|
|
21
21
|
PersistentPty: () => exports_persistent_pty,
|
|
22
|
-
Service: () =>
|
|
23
|
-
UnavailableError: () =>
|
|
24
|
-
configured: () =>
|
|
25
|
-
layer: () =>
|
|
26
|
-
node: () =>
|
|
22
|
+
Service: () => Service61,
|
|
23
|
+
UnavailableError: () => UnavailableError3,
|
|
24
|
+
configured: () => configured6,
|
|
25
|
+
layer: () => layer21,
|
|
26
|
+
node: () => node63
|
|
27
27
|
});
|
|
28
28
|
import os from "node:os";
|
|
29
29
|
import path from "node:path";
|
|
@@ -35,22 +35,22 @@ import { Pty } from "@opencode/schema/pty";
|
|
|
35
35
|
import { Global } from "@opencode/util/global";
|
|
36
36
|
import { resolveBinary } from "#persistent-pty-binary";
|
|
37
37
|
import { Handoff as Handoff2 } from "@opencode/schema/persistent-pty";
|
|
38
|
-
var
|
|
38
|
+
var Options6 = Schema.Struct({ handoff: Schema.optional(Handoff) });
|
|
39
39
|
|
|
40
|
-
class
|
|
40
|
+
class UnavailableError3 extends Schema.TaggedError()("PersistentPty.UnavailableError", {
|
|
41
41
|
message: Schema.String
|
|
42
42
|
}) {
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class NotFoundError8 extends Schema.TaggedError()("PersistentPty.NotFoundError", {
|
|
46
46
|
ptyID: Pty.ID
|
|
47
47
|
}) {
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service61 extends Context.Service()("@opencode/PersistentPty") {
|
|
51
51
|
}
|
|
52
|
-
var makeLayer = (options = {}) => Layer.effect(
|
|
53
|
-
const bus = yield*
|
|
52
|
+
var makeLayer = (options = {}) => Layer.effect(Service61, Effect.gen(function* () {
|
|
53
|
+
const bus = yield* Service82;
|
|
54
54
|
const global = yield* Global.Service;
|
|
55
55
|
const context = yield* Effect.context();
|
|
56
56
|
const runFork = Effect.runForkWith(context);
|
|
@@ -72,7 +72,7 @@ var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* (
|
|
|
72
72
|
const get = Effect.fn("PersistentPty.get")(function* (id) {
|
|
73
73
|
const found = (yield* list()).find((terminal) => terminal.id === id);
|
|
74
74
|
if (!found)
|
|
75
|
-
return yield* new
|
|
75
|
+
return yield* new NotFoundError8({ ptyID: id });
|
|
76
76
|
return found;
|
|
77
77
|
});
|
|
78
78
|
const create = Effect.fn("PersistentPty.create")(function* (sessionID, input) {
|
|
@@ -162,7 +162,7 @@ var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* (
|
|
|
162
162
|
});
|
|
163
163
|
const read = Effect.fn("PersistentPty.read")(function* (sessionID, lines) {
|
|
164
164
|
if (lines !== undefined && !Schema.is(ReadLines)(lines))
|
|
165
|
-
return yield* new
|
|
165
|
+
return yield* new UnavailableError3({ message: "lines must be an integer between 1 and 65535" });
|
|
166
166
|
const id = current.get(sessionID);
|
|
167
167
|
if (!id)
|
|
168
168
|
return null;
|
|
@@ -239,7 +239,7 @@ var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* (
|
|
|
239
239
|
detach: attachment.detach
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
|
-
return
|
|
242
|
+
return Service61.of({
|
|
243
243
|
list,
|
|
244
244
|
get,
|
|
245
245
|
create,
|
|
@@ -255,17 +255,17 @@ var makeLayer = (options = {}) => Layer.effect(Service16, Effect.gen(function* (
|
|
|
255
255
|
attach
|
|
256
256
|
});
|
|
257
257
|
}));
|
|
258
|
-
var
|
|
259
|
-
var
|
|
260
|
-
service:
|
|
261
|
-
layer: options === undefined ?
|
|
258
|
+
var layer21 = makeLayer();
|
|
259
|
+
var configured6 = (options) => makeGlobalNode({
|
|
260
|
+
service: Service61,
|
|
261
|
+
layer: options === undefined ? layer21 : makeLayer(options),
|
|
262
262
|
deps: [node85, Global.node]
|
|
263
263
|
});
|
|
264
|
-
var
|
|
264
|
+
var node63 = configured6();
|
|
265
265
|
var request = (daemon, value, start = false) => daemon.request(value, start).pipe(Effect.mapError(unavailable));
|
|
266
266
|
var optionalRequest = (daemon, value) => daemon.requestIfRunning(value).pipe(Effect.mapError(unavailable));
|
|
267
|
-
var unexpected = (response) => Effect.fail(new
|
|
268
|
-
var unavailable = (error) => new
|
|
267
|
+
var unexpected = (response) => Effect.fail(new UnavailableError3({ message: `unexpected opencode-pty response: ${response.type}` }));
|
|
268
|
+
var unavailable = (error) => new UnavailableError3({ message: error instanceof Error ? error.message : String(error) });
|
|
269
269
|
var runtimeDirectory = () => {
|
|
270
270
|
const root = process.env.OPENCODE_PTY_RUNTIME_DIR ?? (process.env.XDG_RUNTIME_DIR ? path.join(process.env.XDG_RUNTIME_DIR, "opencode-pty") : path.join(os.tmpdir(), `opencode-pty-${typeof process.getuid === "function" ? process.getuid() : process.env.USER || "unknown"}`));
|
|
271
271
|
return path.join(root, crypto.randomUUID());
|
|
@@ -301,4 +301,4 @@ function fromID(value) {
|
|
|
301
301
|
return parsed;
|
|
302
302
|
}
|
|
303
303
|
|
|
304
|
-
export {
|
|
304
|
+
export { Options6, UnavailableError3, NotFoundError8, Service61, layer21, configured6, node63, exports_persistent_pty, Handoff2 };
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
Service82,
|
|
3
3
|
node85
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-ps7p92m4.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-rdw6cm16.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Agent: () =>
|
|
13
|
+
var exports_agent3 = {};
|
|
14
|
+
__export(exports_agent3, {
|
|
15
|
+
Agent: () => exports_agent3,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
18
|
-
ID: () =>
|
|
19
|
-
Info: () =>
|
|
17
|
+
Event: () => Event12,
|
|
18
|
+
ID: () => ID8,
|
|
19
|
+
Info: () => Info13,
|
|
20
20
|
Name: () => Name3,
|
|
21
21
|
Service: () => Service59,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node61
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Array, Context, Effect, Layer } from "effect";
|
|
28
28
|
import { Agent } from "@opencode/schema/agent";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
import { Event as
|
|
30
|
+
import { Event as Event12 } from "@opencode/schema/agent";
|
|
31
31
|
var SHELL_OUTPUT_GLOB = (data) => path.join(data, "shell", "*", "*");
|
|
32
32
|
var TOOL_OUTPUT_GLOB = (data) => path.join(data, "tool-output", "*");
|
|
33
|
-
var
|
|
33
|
+
var ID8 = Agent.ID;
|
|
34
34
|
var Name3 = Agent.Name;
|
|
35
|
-
var defaultID2 =
|
|
35
|
+
var defaultID2 = ID8.make("build");
|
|
36
36
|
var Color2 = Agent.Color;
|
|
37
|
-
var
|
|
37
|
+
var Info13 = Agent.Info;
|
|
38
38
|
|
|
39
39
|
class Service59 extends Context.Service()("@opencode/Agent") {
|
|
40
40
|
}
|
|
41
41
|
var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
42
|
-
const bus = yield*
|
|
42
|
+
const bus = yield* Service82;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const permissions = [
|
|
45
45
|
{ action: "external_directory", resource: SHELL_OUTPUT_GLOB(global.data), effect: "allow" },
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
57
57
|
editor.default = id;
|
|
58
58
|
},
|
|
59
59
|
update: (id, fn) => {
|
|
60
|
-
const defaults =
|
|
60
|
+
const defaults = Info13.default(id);
|
|
61
61
|
const current = editor.agents.get(id) ?? {
|
|
62
62
|
...defaults,
|
|
63
63
|
permissions: [...defaults.permissions, ...permissions]
|
|
@@ -79,7 +79,7 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
79
79
|
const configured = data.default ? selectable(data.agents.get(data.default)) : undefined;
|
|
80
80
|
if (configured)
|
|
81
81
|
return configured;
|
|
82
|
-
const build = selectable(data.agents.get(
|
|
82
|
+
const build = selectable(data.agents.get(ID8.make("build")));
|
|
83
83
|
if (build)
|
|
84
84
|
return build;
|
|
85
85
|
for (const agent of data.agents.values()) {
|
|
@@ -96,12 +96,12 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
96
96
|
}),
|
|
97
97
|
resolve: Effect.fnUntraced(function* (id) {
|
|
98
98
|
if (id !== undefined)
|
|
99
|
-
return state.get().agents.get(
|
|
99
|
+
return state.get().agents.get(ID8.make(id));
|
|
100
100
|
return selectedDefault();
|
|
101
101
|
}),
|
|
102
102
|
select: Effect.fn("Agent.select")(function* (id) {
|
|
103
103
|
if (id !== undefined) {
|
|
104
|
-
const selected =
|
|
104
|
+
const selected = ID8.make(id);
|
|
105
105
|
return { id: selected, info: state.get().agents.get(selected) };
|
|
106
106
|
}
|
|
107
107
|
const info = selectedDefault();
|
|
@@ -116,6 +116,6 @@ var layer = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
118
|
}));
|
|
119
|
-
var
|
|
119
|
+
var node61 = makeLocationNode({ service: Service59, layer, deps: [node85, Global.node] });
|
|
120
120
|
|
|
121
|
-
export {
|
|
121
|
+
export { ID8, Name3, defaultID2, Color2, Info13, Service59, node61, exports_agent3, Event12 };
|
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-nqjmnyjs.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service82
|
|
6
|
+
} from "./ripgrep-ps7p92m4.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event19
|
|
10
|
+
} from "./ripgrep-vfpvfcad.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID12,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./ripgrep-hv6rh1ah.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./ripgrep-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID11,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./ripgrep-xvyew5bh.js";
|
|
24
24
|
|
|
25
25
|
// src/plugin/provider/openai.ts
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -44,7 +44,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
44
44
|
}));
|
|
45
45
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
46
46
|
var browser = (app) => ({
|
|
47
|
-
integrationID:
|
|
47
|
+
integrationID: ID12.make("openai"),
|
|
48
48
|
method: {
|
|
49
49
|
id: browserMethodID,
|
|
50
50
|
type: "oauth",
|
|
@@ -117,7 +117,7 @@ function addressInUse(error) {
|
|
|
117
117
|
return "code" in error && error.code === "EADDRINUSE";
|
|
118
118
|
}
|
|
119
119
|
var headless = (app) => ({
|
|
120
|
-
integrationID:
|
|
120
|
+
integrationID: ID12.make("openai"),
|
|
121
121
|
method: {
|
|
122
122
|
id: headlessMethodID,
|
|
123
123
|
type: "oauth",
|
|
@@ -159,10 +159,10 @@ var headless = (app) => ({
|
|
|
159
159
|
}),
|
|
160
160
|
refresh: (value) => refresh(headlessMethodID, value, app)
|
|
161
161
|
});
|
|
162
|
-
var
|
|
162
|
+
var OpenAIPlugin3 = define({
|
|
163
163
|
id: "opencode.provider.openai",
|
|
164
164
|
effect: Effect.fn(function* (ctx) {
|
|
165
|
-
const bus = yield*
|
|
165
|
+
const bus = yield* Service82;
|
|
166
166
|
const loading = Semaphore.makeUnsafe(1);
|
|
167
167
|
let chatgpt;
|
|
168
168
|
const load = Effect.fn("OpenAIPlugin.load")(function* () {
|
|
@@ -178,7 +178,7 @@ var OpenAIPlugin2 = define({
|
|
|
178
178
|
});
|
|
179
179
|
yield* load();
|
|
180
180
|
yield* ctx.provider.transform((providers) => {
|
|
181
|
-
const item = providers.get(
|
|
181
|
+
const item = providers.get(ID11.openai);
|
|
182
182
|
if (!item)
|
|
183
183
|
return;
|
|
184
184
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -197,7 +197,7 @@ var OpenAIPlugin2 = define({
|
|
|
197
197
|
});
|
|
198
198
|
});
|
|
199
199
|
yield* ctx.model.transform((models) => {
|
|
200
|
-
for (const model of models.list(
|
|
200
|
+
for (const model of models.list(ID11.openai)) {
|
|
201
201
|
models.update(model.providerID, model.id, (draft) => {
|
|
202
202
|
if (!chatgpt)
|
|
203
203
|
return;
|
|
@@ -225,9 +225,9 @@ var OpenAIPlugin2 = define({
|
|
|
225
225
|
evt.baseURL = codexBaseURL;
|
|
226
226
|
evt.headers.originator = "opencode";
|
|
227
227
|
evt.headers["session-id"] = evt.sessionID;
|
|
228
|
-
}), { providerID:
|
|
228
|
+
}), { providerID: ID11.openai });
|
|
229
229
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
230
|
-
yield* bus.subscribe(
|
|
230
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID12.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
231
231
|
})
|
|
232
232
|
});
|
|
233
233
|
function headers(contentType, app) {
|
|
@@ -318,4 +318,4 @@ function claim(token) {
|
|
|
318
318
|
return claims.chatgpt_account_id ?? claims["https://api.openai.com/auth"]?.chatgpt_account_id ?? claims.organizations?.[0]?.id;
|
|
319
319
|
}
|
|
320
320
|
|
|
321
|
-
export {
|
|
321
|
+
export { OpenAIPlugin3 };
|