@opencode/core 0.0.0-dev-241 → 0.0.0-dev-256
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 +87 -86
- package/dist/aisdk-native.js +101 -100
- package/dist/aisdk.js +107 -106
- package/dist/app.js +7 -7
- package/dist/bus.js +83 -82
- package/dist/chunks/{form-qd0p20n5.js → ripgrep-03sqz7a9.js} +9 -9
- package/dist/chunks/{form-bmp8ftgp.js → ripgrep-0cc6nv5k.js} +11 -11
- package/dist/chunks/{form-d877pmrn.js → ripgrep-0h910ma9.js} +15 -15
- package/dist/chunks/{form-8jztxfpf.js → ripgrep-11hfp36g.js} +4 -4
- package/dist/chunks/{form-agqd6nxz.js → ripgrep-17cjzed1.js} +4 -4
- package/dist/chunks/{form-vrcsa8qx.js → ripgrep-18g90bpv.js} +9 -9
- package/dist/chunks/{form-5gahmjy1.js → ripgrep-1f952vs7.js} +9 -9
- package/dist/chunks/{form-maemcbqj.js → ripgrep-1fwefjcd.js} +22 -22
- package/dist/chunks/{form-eydhdpnx.js → ripgrep-1gx6yymd.js} +44 -44
- package/dist/chunks/{form-q1dg5ken.js → ripgrep-1t7faze9.js} +21 -21
- package/dist/chunks/{form-1x2knyw4.js → ripgrep-1x2knyw4.js} +1 -1
- package/dist/chunks/{form-1yq9hg58.js → ripgrep-1yq9hg58.js} +1 -1
- package/dist/chunks/{form-204s3925.js → ripgrep-204s3925.js} +1 -1
- package/dist/chunks/{form-25h84942.js → ripgrep-25h84942.js} +1 -1
- package/dist/chunks/{form-1ep2p91f.js → ripgrep-27w5k9zf.js} +2 -2
- package/dist/chunks/{form-4wc1e944.js → ripgrep-29bbm67v.js} +15 -15
- package/dist/chunks/{form-wg881gmg.js → ripgrep-2e5pdp54.js} +7 -7
- package/dist/chunks/{form-t4y2eqtb.js → ripgrep-2hnaskt6.js} +9 -9
- package/dist/chunks/{form-0z8aj9nb.js → ripgrep-2k2kcze4.js} +87 -87
- package/dist/chunks/{form-2t5drfwv.js → ripgrep-2kk97py3.js} +11 -11
- package/dist/chunks/{form-sxramexz.js → ripgrep-2n5jzsvh.js} +13 -13
- package/dist/chunks/{form-mp850hqc.js → ripgrep-2w1g18fp.js} +4 -4
- package/dist/chunks/{form-hqxkkta1.js → ripgrep-2zp5a6yg.js} +3 -3
- package/dist/chunks/{form-56xpzs9c.js → ripgrep-3416qbwy.js} +8 -8
- package/dist/chunks/{form-9x2ynd3b.js → ripgrep-3b0cyw5p.js} +15 -15
- package/dist/chunks/{form-ayjs7tqn.js → ripgrep-3cbjf1nt.js} +2 -2
- package/dist/chunks/{form-3hepkmqq.js → ripgrep-3hepkmqq.js} +1 -1
- package/dist/chunks/{form-nxpp7t5x.js → ripgrep-3jqgx5kj.js} +51 -51
- package/dist/chunks/{form-3nnrz6f6.js → ripgrep-3nnrz6f6.js} +1 -1
- package/dist/chunks/{form-jhc11j6v.js → ripgrep-3rj35y7k.js} +5 -5
- package/dist/chunks/{form-c6x7d2ts.js → ripgrep-3ryz99p0.js} +4 -4
- package/dist/chunks/{form-vr3x69az.js → ripgrep-3sxgvrsr.js} +15 -15
- package/dist/chunks/{form-cnac7q8x.js → ripgrep-3szttj5s.js} +23 -23
- package/dist/chunks/{form-eeejwcqn.js → ripgrep-3t0qvtxf.js} +12 -12
- package/dist/chunks/{form-7bcs6f94.js → ripgrep-3tpyq6vw.js} +13 -13
- package/dist/chunks/{form-5enarcya.js → ripgrep-40za9wsf.js} +6 -6
- package/dist/chunks/{form-dbn5ca56.js → ripgrep-49835bfw.js} +4 -4
- package/dist/chunks/{form-9mesydma.js → ripgrep-4fcq8f9m.js} +15 -15
- package/dist/chunks/{form-nxbfjhca.js → ripgrep-4ggjgtjs.js} +12 -12
- package/dist/chunks/{form-4pyp9zr9.js → ripgrep-4pyp9zr9.js} +1 -1
- package/dist/chunks/{form-4v008n1t.js → ripgrep-4v008n1t.js} +1 -1
- package/dist/chunks/{form-5qjz8kxn.js → ripgrep-5aysfjzq.js} +22 -22
- package/dist/chunks/{form-d4z67fwt.js → ripgrep-5bp97s21.js} +18 -18
- package/dist/chunks/{form-qekva0d7.js → ripgrep-5c6v7bf7.js} +31 -31
- package/dist/chunks/{form-ebc2yafe.js → ripgrep-5jefyemb.js} +5 -5
- package/dist/chunks/{form-5m9w47nd.js → ripgrep-5m9w47nd.js} +1 -1
- package/dist/chunks/{form-5a6cq72k.js → ripgrep-5qbnyx67.js} +43 -43
- package/dist/chunks/{form-1rp9wec1.js → ripgrep-5rgg5y2m.js} +6 -6
- package/dist/chunks/ripgrep-5w9dwxvh.js +222 -0
- package/dist/chunks/{form-5gse0r5n.js → ripgrep-5zt75wsq.js} +8 -8
- package/dist/chunks/{form-ymtvagr8.js → ripgrep-68gxk72y.js} +27 -27
- package/dist/chunks/{form-g85b9q37.js → ripgrep-6dstrpje.js} +12 -12
- package/dist/chunks/{form-6esdw8yj.js → ripgrep-6esdw8yj.js} +1 -1
- package/dist/chunks/{form-wewy9wfm.js → ripgrep-6fpch3kw.js} +19 -19
- package/dist/chunks/{form-34czpf76.js → ripgrep-6t0y96w1.js} +37 -37
- package/dist/chunks/{form-ex68cs9x.js → ripgrep-6vab03tz.js} +35 -35
- package/dist/chunks/{form-1kyyf73t.js → ripgrep-7442v31d.js} +9 -9
- package/dist/chunks/{form-y02zb68m.js → ripgrep-7521vzgd.js} +13 -13
- package/dist/chunks/{form-76cb1hcw.js → ripgrep-76cb1hcw.js} +1 -1
- package/dist/chunks/{form-7bmhse3q.js → ripgrep-7bmhse3q.js} +1 -1
- package/dist/chunks/{form-bn194m36.js → ripgrep-7fjdcjgg.js} +11 -11
- package/dist/chunks/{form-fn32zha6.js → ripgrep-7h63ckp6.js} +19 -19
- package/dist/chunks/{form-8cbkaxar.js → ripgrep-7kef5ntp.js} +3 -3
- package/dist/chunks/{form-fq8z76yw.js → ripgrep-7pf9jw4b.js} +6 -6
- package/dist/chunks/{form-a97jh5ay.js → ripgrep-7rr96ps8.js} +37 -37
- package/dist/chunks/{form-7w2ypzdf.js → ripgrep-7w2ypzdf.js} +1 -1
- package/dist/chunks/{form-p2d6jc5h.js → ripgrep-82b9pnxq.js} +5 -5
- package/dist/chunks/{form-r1r2wh37.js → ripgrep-882n9ge3.js} +5 -5
- package/dist/chunks/{form-ydsespw1.js → ripgrep-8d2bz6m6.js} +8 -8
- package/dist/chunks/{form-5m24a4sd.js → ripgrep-8k3jsm6y.js} +22 -22
- package/dist/chunks/{form-8wtp7s3z.js → ripgrep-8wtp7s3z.js} +1 -1
- package/dist/chunks/{form-ymvwqgy0.js → ripgrep-8wxjt6jj.js} +43 -43
- package/dist/chunks/{form-mb7mbhnz.js → ripgrep-8z6m94af.js} +3 -3
- package/dist/chunks/{form-344ymb5t.js → ripgrep-909bcygr.js} +51 -51
- package/dist/chunks/{form-90zstvax.js → ripgrep-90zstvax.js} +1 -1
- package/dist/chunks/{form-yn3pvg3g.js → ripgrep-9nd6g1h4.js} +53 -53
- package/dist/chunks/{form-bd58n5m3.js → ripgrep-9wqtqs01.js} +34 -34
- package/dist/chunks/{form-n37g9rz2.js → ripgrep-9x1v9m9g.js} +4 -4
- package/dist/chunks/{form-bzgcjp3p.js → ripgrep-a17h2gz7.js} +5 -5
- package/dist/chunks/{form-12ce349e.js → ripgrep-a33m5c2w.js} +11 -11
- package/dist/chunks/{form-qg4wfayj.js → ripgrep-a4f3mdv6.js} +15 -15
- package/dist/chunks/{form-nfkjwrxk.js → ripgrep-ackzm7p5.js} +20 -20
- package/dist/chunks/{form-yykjbrqt.js → ripgrep-agz4bq91.js} +33 -33
- package/dist/chunks/{form-034tev2y.js → ripgrep-aj7mw0zk.js} +2 -2
- package/dist/chunks/{form-gbh3tqmh.js → ripgrep-aje86v63.js} +5 -5
- package/dist/chunks/{form-zwt99n69.js → ripgrep-ak1f0tsr.js} +16 -16
- package/dist/chunks/{form-k5h0kew3.js → ripgrep-am8n4zj8.js} +42 -42
- package/dist/chunks/{form-g8a7cptb.js → ripgrep-ams2yx18.js} +21 -21
- package/dist/chunks/{form-rva7ahw2.js → ripgrep-apk2hew3.js} +11 -11
- package/dist/chunks/{form-gd8sx287.js → ripgrep-aytd9eaj.js} +4 -4
- package/dist/chunks/{form-1q3qkd77.js → ripgrep-b0hcd791.js} +10 -10
- package/dist/chunks/{form-dtg3e95z.js → ripgrep-b0mgw4ep.js} +12 -12
- package/dist/chunks/{form-0kfnnbj0.js → ripgrep-b363w4yw.js} +14 -14
- package/dist/chunks/{form-yd39j0pc.js → ripgrep-b3tsdpgs.js} +10 -10
- package/dist/chunks/{form-h9mc95dv.js → ripgrep-b5jmjrr6.js} +33 -33
- package/dist/chunks/{form-5nnwax6m.js → ripgrep-b6vsg801.js} +5 -5
- package/dist/chunks/{form-t925je5x.js → ripgrep-bccmdxdz.js} +12 -12
- package/dist/chunks/{form-qz087kyw.js → ripgrep-bxe7n28z.js} +8 -8
- package/dist/chunks/{form-30ae49hf.js → ripgrep-bzmxpqn3.js} +18 -18
- package/dist/chunks/{form-1hc4tfsd.js → ripgrep-c48vnd7r.js} +3 -3
- package/dist/chunks/{form-47xk0geh.js → ripgrep-c5rgx9f0.js} +17 -17
- package/dist/chunks/{form-xk2zn0cv.js → ripgrep-cac0wmbb.js} +4 -4
- package/dist/chunks/ripgrep-cgp1s624.js +26 -0
- package/dist/chunks/{form-cwrgdav8.js → ripgrep-cwrgdav8.js} +2 -2
- package/dist/chunks/{form-9f6y0syf.js → ripgrep-d0t1jrhe.js} +16 -5
- package/dist/chunks/{form-d4v9tmah.js → ripgrep-d4v9tmah.js} +2 -2
- package/dist/chunks/{form-kpgx0vyx.js → ripgrep-d5xvmxkt.js} +9 -9
- package/dist/chunks/{form-16twya52.js → ripgrep-d8k33s6g.js} +8 -8
- package/dist/chunks/{form-jnndjjbg.js → ripgrep-daqk1zzh.js} +32 -32
- package/dist/chunks/{form-8q7qvvvm.js → ripgrep-db73xe5x.js} +21 -21
- package/dist/chunks/{form-bnrmard3.js → ripgrep-ddcyzbs8.js} +13 -13
- package/dist/chunks/{form-0m9q59s6.js → ripgrep-ddwaa558.js} +4 -4
- package/dist/chunks/{form-mkcsvzvr.js → ripgrep-dp20ymjh.js} +5 -5
- package/dist/chunks/{form-eq53d4e8.js → ripgrep-dqyfjygp.js} +32 -32
- package/dist/chunks/{form-vjcm0c6v.js → ripgrep-dsmd9z3t.js} +34 -34
- package/dist/chunks/{form-dt77769w.js → ripgrep-dt77769w.js} +1 -1
- package/dist/chunks/{form-ka01146j.js → ripgrep-dwwyec8z.js} +6 -6
- package/dist/chunks/{form-pq2gn7y4.js → ripgrep-e5697zjm.js} +9 -9
- package/dist/chunks/{form-rs8acqz3.js → ripgrep-e7gncem7.js} +2 -2
- package/dist/chunks/{form-e834z07m.js → ripgrep-e834z07m.js} +1 -1
- package/dist/chunks/{form-dajrwvna.js → ripgrep-ean2d8b5.js} +1 -1
- package/dist/chunks/{form-164bbpt7.js → ripgrep-enpxw9ft.js} +38 -38
- package/dist/chunks/{form-m37sd98t.js → ripgrep-eqmd2tfz.js} +7 -7
- package/dist/chunks/{form-wawq6c5s.js → ripgrep-erc81w38.js} +34 -17
- package/dist/chunks/{form-r5gq5fkx.js → ripgrep-f2dkd9c9.js} +84 -84
- package/dist/chunks/{form-c7b37yvv.js → ripgrep-f2hbk3te.js} +11 -11
- package/dist/chunks/{form-8azpkpgk.js → ripgrep-f38wrs86.js} +341 -341
- package/dist/chunks/{form-saap6htg.js → ripgrep-fdfr6sds.js} +17 -17
- package/dist/chunks/{form-mdmwbg8j.js → ripgrep-ffcqnzz5.js} +14 -14
- package/dist/chunks/{form-fffv3p7h.js → ripgrep-fffv3p7h.js} +1 -1
- package/dist/chunks/{form-fg9p65nk.js → ripgrep-fg9p65nk.js} +2 -2
- package/dist/chunks/{form-epbdechd.js → ripgrep-fkx1epcn.js} +24 -24
- package/dist/chunks/{form-17nembyj.js → ripgrep-fqsvv22e.js} +45 -45
- package/dist/chunks/{form-hh8z0h5r.js → ripgrep-fxhhzhmy.js} +23 -23
- package/dist/chunks/{form-2zxqqy9n.js → ripgrep-g24xgb35.js} +11 -11
- package/dist/chunks/{form-cecnk0g5.js → ripgrep-gffq2h0h.js} +21 -21
- package/dist/chunks/{form-yckvrk0f.js → ripgrep-gkng5bng.js} +6 -6
- package/dist/chunks/{form-syd5ygf3.js → ripgrep-gs1ef0jt.js} +21 -21
- package/dist/chunks/{form-k67dv3fj.js → ripgrep-gt0enb5r.js} +33 -33
- package/dist/chunks/{form-cq4y0zvs.js → ripgrep-gzqtw9gm.js} +23 -23
- package/dist/chunks/{form-hjhf5s4p.js → ripgrep-h0xgca3k.js} +22 -22
- package/dist/chunks/{form-s3bc4aa5.js → ripgrep-h5prggwk.js} +47 -47
- package/dist/chunks/{form-jvks6kr5.js → ripgrep-h7tawekg.js} +27 -27
- package/dist/chunks/{form-qhwx0fdf.js → ripgrep-h7zsgwja.js} +28 -28
- package/dist/chunks/{form-hh7kjqtw.js → ripgrep-hh7kjqtw.js} +1 -1
- package/dist/chunks/{form-hpg1pkwy.js → ripgrep-hpg1pkwy.js} +1 -1
- package/dist/chunks/{form-ynk496q3.js → ripgrep-hq7e4nr1.js} +7 -7
- package/dist/chunks/{form-f01y088k.js → ripgrep-hr4y9snp.js} +5 -5
- package/dist/chunks/{form-yc4xwjk4.js → ripgrep-hs9b4b47.js} +9 -9
- package/dist/chunks/{form-hsdtatpb.js → ripgrep-hy1b2qcd.js} +2 -2
- package/dist/chunks/{form-za8zk8x5.js → ripgrep-hzv53yz7.js} +21 -21
- package/dist/chunks/{form-pez63j8g.js → ripgrep-j5dh2pqj.js} +17 -17
- package/dist/chunks/{form-gdn6yz18.js → ripgrep-j83zfqb4.js} +27 -27
- package/dist/chunks/{form-x1wbs47z.js → ripgrep-jdra26ww.js} +9 -9
- package/dist/chunks/{form-yk6ggz05.js → ripgrep-jew46n24.js} +11 -11
- package/dist/chunks/{form-jfaecv01.js → ripgrep-jfaecv01.js} +1 -1
- package/dist/chunks/{form-bxsgj37y.js → ripgrep-jhvnj4yv.js} +15 -15
- package/dist/chunks/{form-s8ecjhm6.js → ripgrep-jk10zsa9.js} +25 -25
- package/dist/chunks/{form-7r72dc1g.js → ripgrep-jp89zqat.js} +23 -23
- package/dist/chunks/{form-m528r48h.js → ripgrep-jqfrpy0b.js} +4 -4
- package/dist/chunks/{form-a44gt5xs.js → ripgrep-jqnfqjgv.js} +6 -6
- package/dist/chunks/{form-jtnps1zs.js → ripgrep-jtnps1zs.js} +2 -2
- package/dist/chunks/{form-hnb1qy4e.js → ripgrep-jxs8nk7d.js} +11 -11
- package/dist/chunks/{form-apsqrt3t.js → ripgrep-jzpa86ty.js} +42 -42
- package/dist/chunks/{form-wy3fx33q.js → ripgrep-k1sfxhaz.js} +40 -40
- package/dist/chunks/{form-e9fqtmvn.js → ripgrep-k4461cq5.js} +4 -4
- package/dist/chunks/{form-p32m2zja.js → ripgrep-k4hxmz12.js} +46 -34
- package/dist/chunks/{form-k814nvkf.js → ripgrep-k814nvkf.js} +1 -1
- package/dist/chunks/{form-wwgpyqzb.js → ripgrep-kcg78dnn.js} +9 -9
- package/dist/chunks/{form-21aep2yn.js → ripgrep-ke335cjj.js} +5 -5
- package/dist/chunks/{form-kqxn4pnr.js → ripgrep-kjdrtwey.js} +8 -8
- package/dist/chunks/{form-kt3bjfbg.js → ripgrep-kt3bjfbg.js} +1 -1
- package/dist/chunks/{form-rw00jzn7.js → ripgrep-m049c8tp.js} +18 -18
- package/dist/chunks/{form-m1714858.js → ripgrep-m1714858.js} +1 -1
- package/dist/chunks/{form-zf08ma9p.js → ripgrep-m7egy7mx.js} +69 -49
- package/dist/chunks/{form-m9w0rfyh.js → ripgrep-m9w0rfyh.js} +1 -1
- package/dist/chunks/{form-d0nww1bx.js → ripgrep-mb3v38wv.js} +5 -5
- package/dist/chunks/{form-6wmf2q20.js → ripgrep-mg06kx6s.js} +16 -16
- package/dist/chunks/{form-mg356nz4.js → ripgrep-mg356nz4.js} +3 -3
- package/dist/chunks/{form-w35wzz9x.js → ripgrep-mmx1mfjr.js} +4 -4
- package/dist/chunks/{form-b1pn0vxn.js → ripgrep-mtkfycnh.js} +4 -4
- package/dist/chunks/{form-c9cgbm0j.js → ripgrep-mvntxdz5.js} +17 -17
- package/dist/chunks/{form-n97mvkbq.js → ripgrep-mw7r6xhf.js} +9 -9
- package/dist/chunks/{form-2hz06pja.js → ripgrep-my54cbqv.js} +5 -5
- package/dist/chunks/{form-a2yfqhnm.js → ripgrep-n0xqaxze.js} +30 -30
- package/dist/chunks/ripgrep-n3r3rt18.js +18 -0
- package/dist/chunks/{form-06b0dpwc.js → ripgrep-n53x6sf3.js} +4 -4
- package/dist/chunks/{form-6xqtcmxs.js → ripgrep-n6v2b7cw.js} +5 -5
- package/dist/chunks/{form-nah043kf.js → ripgrep-nah043kf.js} +1 -1
- package/dist/chunks/{form-g450zyfk.js → ripgrep-ndtpazxm.js} +30 -30
- package/dist/chunks/{form-3e3pzb31.js → ripgrep-nta1mp64.js} +11 -11
- package/dist/chunks/{form-fypmhnps.js → ripgrep-nx4vzyjd.js} +6 -2
- package/dist/chunks/{form-hef4msp3.js → ripgrep-nxftzjsa.js} +20 -20
- package/dist/chunks/{form-p015t6z3.js → ripgrep-p015t6z3.js} +2 -2
- package/dist/chunks/{form-a5qbrk1x.js → ripgrep-p47gpjqr.js} +15 -15
- package/dist/chunks/{form-vzvvagw1.js → ripgrep-pa3yh9f4.js} +25 -25
- package/dist/chunks/{form-k9zkdd2y.js → ripgrep-pcc6rjnf.js} +4 -4
- package/dist/chunks/{form-j0ft87f1.js → ripgrep-phrz113q.js} +28 -28
- package/dist/chunks/{form-yjhf0rgk.js → ripgrep-pj6fb39f.js} +269 -60
- package/dist/chunks/{form-pknna89w.js → ripgrep-pknna89w.js} +1 -1
- package/dist/chunks/{form-sxjfgefz.js → ripgrep-pmnwwjgv.js} +61 -61
- package/dist/chunks/{form-nzbx2r18.js → ripgrep-pnxd3f75.js} +11 -11
- package/dist/chunks/{form-ng3j8dj2.js → ripgrep-psanbaqe.js} +6 -6
- package/dist/chunks/{form-dmb95mhx.js → ripgrep-pvvt21d7.js} +14 -14
- package/dist/chunks/{form-xwhcj832.js → ripgrep-q6vnkpbt.js} +33 -33
- package/dist/chunks/{form-xq6beh0s.js → ripgrep-q91dqmyj.js} +26 -26
- package/dist/chunks/{form-r2z4j37j.js → ripgrep-qavpxcye.js} +2 -2
- package/dist/chunks/{form-j3ahjss5.js → ripgrep-qf4spmep.js} +35 -35
- package/dist/chunks/{form-7e0vrbjb.js → ripgrep-qfkq8xrf.js} +62 -58
- package/dist/chunks/{form-2bgp64vn.js → ripgrep-qh99nfkk.js} +30 -30
- package/dist/chunks/{form-yara3q77.js → ripgrep-qkw2jr9b.js} +2 -2
- package/dist/chunks/{form-bpmnncyw.js → ripgrep-qnghve6e.js} +8 -8
- package/dist/chunks/{form-qp7r0hxv.js → ripgrep-qp7r0hxv.js} +1 -1
- package/dist/chunks/{form-1kn6jdkn.js → ripgrep-qqpbcr2p.js} +4 -4
- package/dist/chunks/{form-qqvy8y24.js → ripgrep-qqvy8y24.js} +1 -1
- package/dist/chunks/ripgrep-qraj6mtx.js +257 -0
- package/dist/chunks/{form-wxknf58s.js → ripgrep-qys60372.js} +10 -10
- package/dist/chunks/{form-yewpp7ak.js → ripgrep-qzwfbxrg.js} +11 -11
- package/dist/chunks/{form-kjt9j6hq.js → ripgrep-r2aaaqsx.js} +37 -37
- package/dist/chunks/{form-r542h3bh.js → ripgrep-r542h3bh.js} +1 -1
- package/dist/chunks/{form-1ehhk9f8.js → ripgrep-r5gpr2p5.js} +25 -25
- package/dist/chunks/{form-qnf47mt5.js → ripgrep-r87akjs2.js} +6 -6
- package/dist/chunks/{form-gx6q6d4a.js → ripgrep-r8ack8x7.js} +8 -8
- package/dist/chunks/{form-rb9dy4dg.js → ripgrep-rb9dy4dg.js} +1 -1
- package/dist/chunks/{form-g1hcq0g8.js → ripgrep-rkafft8x.js} +16 -16
- package/dist/chunks/{form-69vbzxa1.js → ripgrep-rmk8jq11.js} +42 -42
- package/dist/chunks/{form-rt5dr6hb.js → ripgrep-rt5dr6hb.js} +1 -1
- package/dist/chunks/{form-7fy0h8rf.js → ripgrep-rvdapjqy.js} +11 -11
- package/dist/chunks/{form-0zracm40.js → ripgrep-rxc5w0st.js} +43 -43
- package/dist/chunks/{form-885474ts.js → ripgrep-s4vdbda8.js} +14 -14
- package/dist/chunks/{form-0a7n7kwt.js → ripgrep-s5z0gt4g.js} +3 -3
- package/dist/chunks/{form-qkc3z5ds.js → ripgrep-s85z3cra.js} +4 -4
- package/dist/chunks/{form-sa3fpqfw.js → ripgrep-sa3fpqfw.js} +2 -2
- package/dist/chunks/{form-ywk1qbwj.js → ripgrep-sbpkqjks.js} +16 -16
- package/dist/chunks/{form-dpb98s6z.js → ripgrep-sfvb2ra8.js} +47 -51
- package/dist/chunks/{form-caxfsg60.js → ripgrep-shmzzj1p.js} +14 -14
- package/dist/chunks/{form-n5jdsvnn.js → ripgrep-sk9th60b.js} +32 -32
- package/dist/chunks/{form-sqjzf8x2.js → ripgrep-sqjzf8x2.js} +1 -1
- package/dist/chunks/{form-qgfkghh1.js → ripgrep-stkk57rt.js} +4 -0
- package/dist/chunks/{form-svcy3p9a.js → ripgrep-svcy3p9a.js} +1 -1
- package/dist/chunks/{form-y984veh1.js → ripgrep-sy9atnn8.js} +9 -9
- package/dist/chunks/ripgrep-t03h4f5z.js +16 -0
- package/dist/chunks/{form-yzfcgkx8.js → ripgrep-t5kja7d6.js} +27 -27
- package/dist/chunks/{form-emk1tmq0.js → ripgrep-tak8qdkr.js} +8 -8
- package/dist/chunks/{form-tczq8hjw.js → ripgrep-tczq8hjw.js} +1 -1
- package/dist/chunks/{form-3yz3az2p.js → ripgrep-tjx9btwx.js} +195 -195
- package/dist/chunks/{form-zrzd6936.js → ripgrep-tsszwamj.js} +34 -34
- package/dist/chunks/{form-twssxy5n.js → ripgrep-twssxy5n.js} +2 -2
- package/dist/chunks/{form-v2r1d0zg.js → ripgrep-v2r1d0zg.js} +1 -1
- package/dist/chunks/{form-ypzz06n9.js → ripgrep-v8xpr2tt.js} +5 -5
- package/dist/chunks/{form-26x8chrq.js → ripgrep-vaq1yek0.js} +6 -6
- package/dist/chunks/{form-yp7f7fzt.js → ripgrep-vcxd5eqd.js} +8 -8
- package/dist/chunks/{form-80d2zcb4.js → ripgrep-vm4ntgdp.js} +96 -96
- package/dist/chunks/{form-c2t3ry2c.js → ripgrep-vmaxc52x.js} +18 -18
- package/dist/chunks/{form-3ve3e0bk.js → ripgrep-vpm1h889.js} +22 -22
- package/dist/chunks/{form-f0q877ce.js → ripgrep-vydydcga.js} +23 -23
- package/dist/chunks/{form-w3wsvvr9.js → ripgrep-w3wsvvr9.js} +1 -1
- package/dist/chunks/{form-w687dnns.js → ripgrep-w687dnns.js} +1 -1
- package/dist/chunks/{form-wakvkjy4.js → ripgrep-wakvkjy4.js} +1 -1
- package/dist/chunks/{form-wd87259q.js → ripgrep-wd87259q.js} +1 -1
- package/dist/chunks/{form-ertcz5s1.js → ripgrep-wjc27my0.js} +11 -11
- package/dist/chunks/{form-wnhgecwx.js → ripgrep-wnhgecwx.js} +1 -1
- package/dist/chunks/{form-k950nrad.js → ripgrep-wsrqy1ze.js} +21 -21
- package/dist/chunks/{form-0dfv01xh.js → ripgrep-wz5tj16h.js} +5 -5
- package/dist/chunks/{form-mdz0js77.js → ripgrep-x3d3mep8.js} +6 -6
- package/dist/chunks/{form-1fy8p9jc.js → ripgrep-x3fmc1hr.js} +24 -24
- package/dist/chunks/{form-yp23a5z4.js → ripgrep-x524hec9.js} +25 -25
- package/dist/chunks/{form-1vseb64s.js → ripgrep-x62jm14v.js} +12 -12
- package/dist/chunks/{form-ymz7p2c9.js → ripgrep-x7c80rtj.js} +3 -3
- package/dist/chunks/{form-cegg4nag.js → ripgrep-x8yhn9vn.js} +24 -24
- package/dist/chunks/{form-dpd69dnd.js → ripgrep-x959zq99.js} +4 -4
- package/dist/chunks/{form-rwpnrpr8.js → ripgrep-xcebgh3h.js} +4 -4
- package/dist/chunks/{form-bstexjd6.js → ripgrep-xd9cc171.js} +5 -5
- package/dist/chunks/{form-m34q2a8m.js → ripgrep-xf83b33t.js} +21 -21
- package/dist/chunks/{form-44bj7geh.js → ripgrep-xp46ybm5.js} +22 -22
- package/dist/chunks/{form-w5xp5sgq.js → ripgrep-xsga5jf7.js} +22 -22
- package/dist/chunks/{form-ra4wx1p6.js → ripgrep-xv70sp23.js} +26 -26
- package/dist/chunks/{form-jheynnxb.js → ripgrep-xyn9xt4d.js} +11 -11
- package/dist/chunks/{form-9aqddysx.js → ripgrep-y6qsxzbk.js} +4 -4
- package/dist/chunks/{form-hh288azd.js → ripgrep-y8d574bw.js} +26 -26
- package/dist/chunks/{form-yb20nhc3.js → ripgrep-yb20nhc3.js} +1 -1
- package/dist/chunks/{form-w2jxje39.js → ripgrep-ybcwzyjp.js} +29 -29
- package/dist/chunks/{form-ckrm4vaz.js → ripgrep-ydbjebpg.js} +17 -17
- package/dist/chunks/{form-vpm8vpz0.js → ripgrep-yeejah88.js} +3 -3
- package/dist/chunks/{form-5w6nd1s8.js → ripgrep-yqqn7f99.js} +1 -1
- package/dist/chunks/{form-8pyh3h24.js → ripgrep-yxp9849n.js} +31 -31
- package/dist/chunks/{form-0geg3vaz.js → ripgrep-z33c4g07.js} +13 -13
- package/dist/chunks/{form-z38nccrw.js → ripgrep-z38nccrw.js} +1 -1
- package/dist/chunks/{form-4e78z1nw.js → ripgrep-z48jxn29.js} +18 -18
- package/dist/chunks/{form-cj0rt5w2.js → ripgrep-z7zabdrt.js} +24 -24
- package/dist/chunks/{form-e865fpdn.js → ripgrep-z9qgeafv.js} +20 -20
- package/dist/chunks/{form-8xqhc33s.js → ripgrep-zbjfvsrb.js} +12 -12
- package/dist/chunks/{form-c8w8hrxy.js → ripgrep-zd07p9e4.js} +31 -31
- package/dist/chunks/{form-225yscb7.js → ripgrep-zh4a5xq0.js} +19 -19
- package/dist/chunks/{form-e8jekyry.js → ripgrep-zh7bbm8x.js} +9 -9
- package/dist/chunks/{form-hcawp3ym.js → ripgrep-zmz19rft.js} +11 -11
- package/dist/chunks/{form-wdeh72fh.js → ripgrep-zr96t73h.js} +16 -16
- 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 +93 -92
- package/dist/config/discovery.js +94 -93
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +111 -110
- package/dist/config/plugin/agent.js +127 -126
- package/dist/config/plugin/command.js +225 -224
- package/dist/config/plugin/compaction.js +166 -165
- package/dist/config/plugin/compatibility.js +146 -145
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +126 -125
- package/dist/config/plugin/image.js +125 -124
- package/dist/config/plugin/instruction.js +125 -124
- package/dist/config/plugin/location-watcher.js +125 -124
- package/dist/config/plugin/mcp.js +134 -133
- package/dist/config/plugin/policy.js +127 -126
- package/dist/config/plugin/provider.js +126 -125
- package/dist/config/plugin/reference.js +127 -126
- package/dist/config/plugin/shell.js +125 -124
- package/dist/config/plugin/skill-file.js +142 -141
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +149 -148
- package/dist/config/plugin/snapshot.js +125 -124
- package/dist/config/plugin/source.js +128 -127
- package/dist/config/plugin/tool-output.js +126 -125
- package/dist/config/plugin/websearch.js +124 -123
- package/dist/config/plugin/worktree.js +127 -126
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +124 -123
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +93 -92
- package/dist/database/database.js +80 -79
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +6 -0
- package/dist/database/migration.gen.js +59 -58
- package/dist/database/migration.js +61 -60
- 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 +107 -106
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +390 -388
- 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 +105 -104
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +107 -106
- 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 +84 -83
- package/dist/file-access.js +152 -151
- package/dist/file-mutation.js +106 -105
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +90 -89
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +236 -235
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +109 -108
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +7 -7
- package/dist/filesystem.js +112 -111
- package/dist/form.js +92 -91
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +99 -98
- package/dist/generate.js +119 -118
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +111 -110
- 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/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +381 -379
- package/dist/instruction-discovery.js +88 -87
- package/dist/instructions/builtins.js +99 -98
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +99 -98
- package/dist/job.js +88 -87
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +83 -82
- package/dist/location-activity.js +170 -169
- package/dist/location-lifecycle.js +146 -145
- package/dist/location-service-map.js +98 -97
- package/dist/location-services.js +378 -376
- package/dist/location.js +101 -100
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -102
- package/dist/mcp/index.js +117 -116
- package/dist/mcp/instructions.js +172 -171
- package/dist/mcp/oauth.js +88 -87
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +102 -101
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +111 -110
- package/dist/model-resolver.js +111 -110
- package/dist/model-retry.js +1 -1
- package/dist/model.js +114 -113
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +120 -119
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +92 -91
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +153 -150
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +102 -99
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -84
- package/dist/plugin/agent.js +86 -85
- package/dist/plugin/command.js +114 -113
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +231 -230
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +357 -349
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +109 -108
- package/dist/plugin/module.js +127 -126
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +142 -141
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +103 -102
- package/dist/plugin/provider/azure.js +125 -124
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +125 -124
- package/dist/plugin/provider/cloudflare-ai-gateway.js +123 -122
- package/dist/plugin/provider/cloudflare-workers-ai.js +123 -122
- package/dist/plugin/provider/configured.js +121 -120
- package/dist/plugin/provider/credential-settings.js +84 -83
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +105 -104
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +107 -106
- package/dist/plugin/provider/gitlab.js +106 -105
- package/dist/plugin/provider/google-vertex.js +122 -121
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +88 -87
- package/dist/plugin/provider/lmstudio.js +134 -133
- package/dist/plugin/provider/local.js +131 -130
- package/dist/plugin/provider/modal.js +104 -103
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +134 -133
- package/dist/plugin/provider/openai-context-caps.js +102 -101
- package/dist/plugin/provider/openai.js +125 -124
- package/dist/plugin/provider/opencode.js +128 -127
- package/dist/plugin/provider/openrouter.js +103 -102
- package/dist/plugin/provider/poe.js +89 -88
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +103 -102
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +124 -123
- package/dist/plugin/provider/vllm.js +134 -133
- package/dist/plugin/provider/xai.js +103 -102
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +176 -175
- package/dist/plugin/sdk.js +84 -83
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +145 -144
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +369 -367
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +98 -97
- package/dist/plugin/vcs/hg.js +98 -97
- package/dist/plugin/verbosity.js +105 -104
- package/dist/plugin/warming.js +123 -122
- 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 +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +236 -235
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +102 -101
- package/dist/provider.js +111 -110
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +96 -95
- package/dist/reference/instructions.js +100 -99
- package/dist/reference.js +102 -101
- package/dist/repository-cache.js +92 -91
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +107 -106
- package/dist/rpc.js +98 -97
- package/dist/schedule/check.js +248 -0
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +242 -221
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +126 -125
- package/dist/session/command.js +84 -83
- package/dist/session/compaction.js +166 -165
- package/dist/session/context.js +192 -191
- package/dist/session/diff.js +100 -99
- 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 +237 -236
- package/dist/session/execution.js +158 -157
- package/dist/session/generate.js +194 -193
- package/dist/session/history.js +131 -130
- package/dist/session/inbox.js +144 -143
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +89 -88
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +136 -135
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +159 -158
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +160 -159
- package/dist/session/projector.js +138 -137
- package/dist/session/prompt.js +144 -143
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +134 -133
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +243 -242
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +112 -111
- package/dist/session/runner/publish-llm-event.js +145 -144
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +158 -157
- package/dist/session/runner/to-llm-message.js +132 -131
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +176 -175
- package/dist/session/shell.js +139 -138
- package/dist/session/skill.js +143 -142
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +85 -84
- package/dist/session/store.js +137 -136
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +223 -222
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +196 -195
- package/dist/session/to-session-error.js +144 -143
- package/dist/session/transfer.js +237 -236
- package/dist/session/usage.js +1 -1
- package/dist/session.js +229 -228
- 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 +15 -15
- package/dist/shell.js +141 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +147 -146
- package/dist/skill.js +154 -153
- package/dist/snapshot.js +103 -102
- 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 +169 -168
- package/dist/tool/plugin/edit.js +160 -159
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +164 -163
- package/dist/tool/plugin/grep.js +164 -163
- package/dist/tool/plugin/image-generate.js +231 -230
- package/dist/tool/plugin/mcp-resource.js +158 -157
- package/dist/tool/plugin/opencode.js +157 -156
- package/dist/tool/plugin/patch.js +160 -159
- package/dist/tool/plugin/question.js +142 -141
- package/dist/tool/plugin/read.js +165 -164
- package/dist/tool/plugin/schedule.js +239 -222
- package/dist/tool/plugin/shell.js +226 -225
- package/dist/tool/plugin/skill.js +151 -150
- package/dist/tool/plugin/subagent.js +230 -229
- package/dist/tool/plugin/todo.js +149 -148
- package/dist/tool/plugin/webfetch.js +151 -150
- package/dist/tool/plugin/websearch.js +149 -148
- package/dist/tool/plugin/write.js +162 -161
- package/dist/tool/read-filesystem.js +112 -111
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/database/migration/20261029165540_schedule_checks.d.ts +3 -0
- package/dist/types/permission.d.ts +10 -0
- package/dist/types/persistent-pty/index.d.ts +7 -1
- package/dist/types/schedule/check.d.ts +46 -0
- package/dist/types/schedule/sql.d.ts +75 -1
- package/dist/types/schedule.d.ts +4 -147
- package/dist/types/tool/plugin/image-generate.d.ts +1 -1
- package/dist/types/tool/plugin/schedule.d.ts +28 -1
- package/dist/usage-limits.js +89 -88
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +104 -103
- package/dist/v1/config/permission.js +3 -3
- 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 +105 -104
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +101 -100
- package/dist/voice.js +100 -99
- package/dist/websearch.js +94 -93
- package/dist/wellknown/plugin.js +84 -83
- package/dist/wellknown.js +89 -88
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +90 -89
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +101 -100
- package/dist/worktree.js +108 -107
- package/package.json +9 -9
- package/dist/chunks/form-08h3dm3g.js +0 -257
- package/dist/chunks/form-1kh93h0h.js +0 -26
- package/dist/chunks/form-6zjm2phc.js +0 -18
- /package/dist/chunks/{form-0qkdqm5v.js → ripgrep-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{form-0zkw76rk.js → ripgrep-0zkw76rk.js} +0 -0
- /package/dist/chunks/{form-17cy0kzp.js → ripgrep-17cy0kzp.js} +0 -0
- /package/dist/chunks/{form-1cnp2v09.js → ripgrep-1cnp2v09.js} +0 -0
- /package/dist/chunks/{form-1kah00gy.js → ripgrep-1kah00gy.js} +0 -0
- /package/dist/chunks/{form-24dcb14g.js → ripgrep-24dcb14g.js} +0 -0
- /package/dist/chunks/{form-2710q6r3.js → ripgrep-2710q6r3.js} +0 -0
- /package/dist/chunks/{form-2bv980vf.js → ripgrep-2bv980vf.js} +0 -0
- /package/dist/chunks/{form-2c3vjs8z.js → ripgrep-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{form-359p4xyc.js → ripgrep-359p4xyc.js} +0 -0
- /package/dist/chunks/{form-3asan66x.js → ripgrep-3asan66x.js} +0 -0
- /package/dist/chunks/{form-3v8g72cx.js → ripgrep-3v8g72cx.js} +0 -0
- /package/dist/chunks/{form-3wcehsnq.js → ripgrep-3wcehsnq.js} +0 -0
- /package/dist/chunks/{form-43n2bw4t.js → ripgrep-43n2bw4t.js} +0 -0
- /package/dist/chunks/{form-4knz6hnm.js → ripgrep-4knz6hnm.js} +0 -0
- /package/dist/chunks/{form-4vcrnpx2.js → ripgrep-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{form-4y7fprxs.js → ripgrep-4y7fprxs.js} +0 -0
- /package/dist/chunks/{form-53557ph1.js → ripgrep-53557ph1.js} +0 -0
- /package/dist/chunks/{form-550bvhaj.js → ripgrep-550bvhaj.js} +0 -0
- /package/dist/chunks/{form-5w3e23ze.js → ripgrep-5w3e23ze.js} +0 -0
- /package/dist/chunks/{form-6prwharc.js → ripgrep-6prwharc.js} +0 -0
- /package/dist/chunks/{form-6q2bdcd1.js → ripgrep-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{form-7akdwqpd.js → ripgrep-7akdwqpd.js} +0 -0
- /package/dist/chunks/{form-7m9af43g.js → ripgrep-7m9af43g.js} +0 -0
- /package/dist/chunks/{form-7stb81gk.js → ripgrep-7stb81gk.js} +0 -0
- /package/dist/chunks/{form-822emrt2.js → ripgrep-822emrt2.js} +0 -0
- /package/dist/chunks/{form-84wd9syh.js → ripgrep-84wd9syh.js} +0 -0
- /package/dist/chunks/{form-88xbtdfr.js → ripgrep-88xbtdfr.js} +0 -0
- /package/dist/chunks/{form-8n3pysct.js → ripgrep-8n3pysct.js} +0 -0
- /package/dist/chunks/{form-8wj87zfr.js → ripgrep-8wj87zfr.js} +0 -0
- /package/dist/chunks/{form-9a4afbnw.js → ripgrep-9a4afbnw.js} +0 -0
- /package/dist/chunks/{form-9rqn6x4v.js → ripgrep-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{form-a058387c.js → ripgrep-a058387c.js} +0 -0
- /package/dist/chunks/{form-a6k6eb26.js → ripgrep-a6k6eb26.js} +0 -0
- /package/dist/chunks/{form-af5trqkr.js → ripgrep-af5trqkr.js} +0 -0
- /package/dist/chunks/{form-afrmfg78.js → ripgrep-afrmfg78.js} +0 -0
- /package/dist/chunks/{form-aqzs7mqg.js → ripgrep-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{form-atq7p7m5.js → ripgrep-atq7p7m5.js} +0 -0
- /package/dist/chunks/{form-beh6qq61.js → ripgrep-beh6qq61.js} +0 -0
- /package/dist/chunks/{form-bkyjaxrp.js → ripgrep-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{form-bmr6ed5q.js → ripgrep-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{form-cf4snx6d.js → ripgrep-cf4snx6d.js} +0 -0
- /package/dist/chunks/{form-cqv5kn06.js → ripgrep-cqv5kn06.js} +0 -0
- /package/dist/chunks/{form-cvy3z8tj.js → ripgrep-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{form-d9fn303g.js → ripgrep-d9fn303g.js} +0 -0
- /package/dist/chunks/{form-d9jj8t3e.js → ripgrep-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{form-dap0rakb.js → ripgrep-dap0rakb.js} +0 -0
- /package/dist/chunks/{form-df08tz66.js → ripgrep-df08tz66.js} +0 -0
- /package/dist/chunks/{form-dy18nga0.js → ripgrep-dy18nga0.js} +0 -0
- /package/dist/chunks/{form-e5kj55wp.js → ripgrep-e5kj55wp.js} +0 -0
- /package/dist/chunks/{form-e73j6tqm.js → ripgrep-e73j6tqm.js} +0 -0
- /package/dist/chunks/{form-ec1grn59.js → ripgrep-ec1grn59.js} +0 -0
- /package/dist/chunks/{form-eh3zwz77.js → ripgrep-eh3zwz77.js} +0 -0
- /package/dist/chunks/{form-emrn6kk6.js → ripgrep-emrn6kk6.js} +0 -0
- /package/dist/chunks/{form-f0mxakyp.js → ripgrep-f0mxakyp.js} +0 -0
- /package/dist/chunks/{form-f6n9ztr4.js → ripgrep-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{form-faypxj3z.js → ripgrep-faypxj3z.js} +0 -0
- /package/dist/chunks/{form-fd410y7t.js → ripgrep-fd410y7t.js} +0 -0
- /package/dist/chunks/{form-fkpq3x5p.js → ripgrep-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{form-g4wezp1m.js → ripgrep-g4wezp1m.js} +0 -0
- /package/dist/chunks/{form-g86h250q.js → ripgrep-g86h250q.js} +0 -0
- /package/dist/chunks/{form-gebd4c9n.js → ripgrep-gebd4c9n.js} +0 -0
- /package/dist/chunks/{form-gftt206x.js → ripgrep-gftt206x.js} +0 -0
- /package/dist/chunks/{form-hcxmzztb.js → ripgrep-hcxmzztb.js} +0 -0
- /package/dist/chunks/{form-hk9envan.js → ripgrep-hk9envan.js} +0 -0
- /package/dist/chunks/{form-j2ntwpah.js → ripgrep-j2ntwpah.js} +0 -0
- /package/dist/chunks/{form-j5zkgpj8.js → ripgrep-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{form-jjkms2e6.js → ripgrep-jjkms2e6.js} +0 -0
- /package/dist/chunks/{form-jr7sbwjy.js → ripgrep-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{form-jwfs4k6c.js → ripgrep-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{form-jwr30sdr.js → ripgrep-jwr30sdr.js} +0 -0
- /package/dist/chunks/{form-jze0r7bz.js → ripgrep-jze0r7bz.js} +0 -0
- /package/dist/chunks/{form-jzg6c2d5.js → ripgrep-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{form-m18g726c.js → ripgrep-m18g726c.js} +0 -0
- /package/dist/chunks/{form-mp448xyj.js → ripgrep-mp448xyj.js} +0 -0
- /package/dist/chunks/{form-msx8hqn2.js → ripgrep-msx8hqn2.js} +0 -0
- /package/dist/chunks/{form-n05xt0ee.js → ripgrep-n05xt0ee.js} +0 -0
- /package/dist/chunks/{form-n3j8tn72.js → ripgrep-n3j8tn72.js} +0 -0
- /package/dist/chunks/{form-ncqqe42p.js → ripgrep-ncqqe42p.js} +0 -0
- /package/dist/chunks/{form-nh4v3znn.js → ripgrep-nh4v3znn.js} +0 -0
- /package/dist/chunks/{form-njntx4h6.js → ripgrep-njntx4h6.js} +0 -0
- /package/dist/chunks/{form-p71gwv9c.js → ripgrep-p71gwv9c.js} +0 -0
- /package/dist/chunks/{form-q3sfg36h.js → ripgrep-q3sfg36h.js} +0 -0
- /package/dist/chunks/{form-q74kybfr.js → ripgrep-q74kybfr.js} +0 -0
- /package/dist/chunks/{form-qaymkmh1.js → ripgrep-qaymkmh1.js} +0 -0
- /package/dist/chunks/{form-qb87gjwd.js → ripgrep-qb87gjwd.js} +0 -0
- /package/dist/chunks/{form-qfa1cgps.js → ripgrep-qfa1cgps.js} +0 -0
- /package/dist/chunks/{form-qg3g05ea.js → ripgrep-qg3g05ea.js} +0 -0
- /package/dist/chunks/{form-qrg20bc0.js → ripgrep-qrg20bc0.js} +0 -0
- /package/dist/chunks/{form-rcb2kzg1.js → ripgrep-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{form-sdp7kfr6.js → ripgrep-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{form-ssg3fenm.js → ripgrep-ssg3fenm.js} +0 -0
- /package/dist/chunks/{form-ty7weeps.js → ripgrep-ty7weeps.js} +0 -0
- /package/dist/chunks/{form-ve7vex1e.js → ripgrep-ve7vex1e.js} +0 -0
- /package/dist/chunks/{form-w803qqfp.js → ripgrep-w803qqfp.js} +0 -0
- /package/dist/chunks/{form-wc3fc9cn.js → ripgrep-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{form-wer8tq1h.js → ripgrep-wer8tq1h.js} +0 -0
- /package/dist/chunks/{form-wtztk69x.js → ripgrep-wtztk69x.js} +0 -0
- /package/dist/chunks/{form-x0ckcb58.js → ripgrep-x0ckcb58.js} +0 -0
- /package/dist/chunks/{form-x61499pn.js → ripgrep-x61499pn.js} +0 -0
- /package/dist/chunks/{form-y44na4kk.js → ripgrep-y44na4kk.js} +0 -0
- /package/dist/chunks/{form-y8f7s663.js → ripgrep-y8f7s663.js} +0 -0
- /package/dist/chunks/{form-ygaqb7jw.js → ripgrep-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{form-z5v4ffb3.js → ripgrep-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{form-z9919s4g.js → ripgrep-z9919s4g.js} +0 -0
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-b3tsdpgs.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./ripgrep-sbpkqjks.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID11,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Event14
|
|
11
|
+
} from "./ripgrep-q6vnkpbt.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./ripgrep-cac0wmbb.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID10,
|
|
17
17
|
MethodID2,
|
|
18
18
|
AuthorizationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./ripgrep-5c6v7bf7.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
ID9
|
|
22
|
+
} from "./ripgrep-agz4bq91.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service59
|
|
25
|
+
} from "./ripgrep-1gx6yymd.js";
|
|
26
26
|
import {
|
|
27
27
|
Remote2,
|
|
28
28
|
Document2,
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
make17
|
|
30
|
+
} from "./ripgrep-pcc6rjnf.js";
|
|
31
31
|
import {
|
|
32
32
|
integrate2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./ripgrep-p47gpjqr.js";
|
|
34
34
|
import {
|
|
35
35
|
defaultServer2,
|
|
36
36
|
server2,
|
|
37
37
|
headers2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./ripgrep-kt3bjfbg.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
ID14,
|
|
41
|
+
Input16,
|
|
42
42
|
Response2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./ripgrep-phrz113q.js";
|
|
44
44
|
|
|
45
45
|
// src/plugin/provider/opencode.ts
|
|
46
46
|
import { Clock, Duration, Effect, Equal, FiberHandle, Option, Schema, Scope, Semaphore, Stream } from "effect";
|
|
@@ -91,7 +91,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
91
91
|
}
|
|
92
92
|
function oauth(http) {
|
|
93
93
|
return {
|
|
94
|
-
integrationID:
|
|
94
|
+
integrationID: ID10.make("opencode"),
|
|
95
95
|
method: {
|
|
96
96
|
id: methodID,
|
|
97
97
|
type: "oauth",
|
|
@@ -156,10 +156,10 @@ var OpencodePlugin2 = define({
|
|
|
156
156
|
id: "opencode.provider.opencode",
|
|
157
157
|
effect: Effect.fn(function* (ctx) {
|
|
158
158
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
159
|
-
const bus = yield*
|
|
159
|
+
const bus = yield* Service85;
|
|
160
160
|
const client = yield* HttpClient.HttpClient;
|
|
161
161
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
162
|
-
const config = yield*
|
|
162
|
+
const config = yield* Service59;
|
|
163
163
|
const scope = yield* Scope.Scope;
|
|
164
164
|
const loading = Semaphore.makeUnsafe(1);
|
|
165
165
|
let snapshot = { remote: undefined, connection: undefined, organization: undefined };
|
|
@@ -195,13 +195,13 @@ var OpencodePlugin2 = define({
|
|
|
195
195
|
});
|
|
196
196
|
let integrated;
|
|
197
197
|
const integrate = Effect.fnUntraced(function* (document) {
|
|
198
|
-
yield* config.integration?.(
|
|
199
|
-
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID ===
|
|
198
|
+
yield* config.integration?.(ID10.make("opencode"), document) ?? Effect.void;
|
|
199
|
+
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID === ID10.make("opencode"));
|
|
200
200
|
});
|
|
201
201
|
const publish = Effect.fnUntraced(function* (next) {
|
|
202
|
-
yield* integrate(next.remote && next.connection &&
|
|
203
|
-
integrationID:
|
|
204
|
-
connection: next.connection.type === "credential" ? { ...next.connection, id:
|
|
202
|
+
yield* integrate(next.remote && next.connection && make17({
|
|
203
|
+
integrationID: ID10.make("opencode"),
|
|
204
|
+
connection: next.connection.type === "credential" ? { ...next.connection, id: ID11.make(next.connection.id) } : next.connection,
|
|
205
205
|
organization: next.organization,
|
|
206
206
|
info: next.remote
|
|
207
207
|
}));
|
|
@@ -221,7 +221,7 @@ var OpencodePlugin2 = define({
|
|
|
221
221
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
222
222
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
223
223
|
const server = yield* normalizeServer(server2(credential));
|
|
224
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
224
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input16)({
|
|
225
225
|
query: input.query,
|
|
226
226
|
providerID
|
|
227
227
|
}));
|
|
@@ -249,7 +249,7 @@ var OpencodePlugin2 = define({
|
|
|
249
249
|
integrate2(providers, integrated);
|
|
250
250
|
});
|
|
251
251
|
yield* ctx.provider.transform((providers) => {
|
|
252
|
-
const item = providers.get(
|
|
252
|
+
const item = providers.get(ID9.opencode);
|
|
253
253
|
if (!item)
|
|
254
254
|
return;
|
|
255
255
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -261,7 +261,7 @@ var OpencodePlugin2 = define({
|
|
|
261
261
|
});
|
|
262
262
|
});
|
|
263
263
|
yield* ctx.model.transform((models) => {
|
|
264
|
-
const item = models.provider.get(
|
|
264
|
+
const item = models.provider.get(ID9.opencode);
|
|
265
265
|
if (!item)
|
|
266
266
|
return;
|
|
267
267
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -276,7 +276,7 @@ var OpencodePlugin2 = define({
|
|
|
276
276
|
}
|
|
277
277
|
});
|
|
278
278
|
yield* ctx.websearch.transform((editor) => {
|
|
279
|
-
const provider =
|
|
279
|
+
const provider = ID14.make("opencode");
|
|
280
280
|
if (snapshot.remote?.websearch && snapshot.remote.websearch.provider === provider && snapshot.connection)
|
|
281
281
|
editor.add(search(provider, snapshot.connection));
|
|
282
282
|
});
|
|
@@ -315,7 +315,7 @@ var OpencodePlugin2 = define({
|
|
|
315
315
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
316
316
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
317
317
|
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
318
|
-
|
|
318
|
+
ID9.opencode,
|
|
319
319
|
...Object.keys(next.remote?.providers ?? {})
|
|
320
320
|
]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
321
321
|
});
|
|
@@ -328,7 +328,7 @@ var OpencodePlugin2 = define({
|
|
|
328
328
|
onlyIfMissing: true
|
|
329
329
|
});
|
|
330
330
|
});
|
|
331
|
-
yield* bus.subscribe(
|
|
331
|
+
yield* bus.subscribe(Event14.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
332
332
|
yield* poll();
|
|
333
333
|
})
|
|
334
334
|
});
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/instance/service.ts
|
|
6
6
|
var exports_service2 = {};
|
|
7
7
|
__export(exports_service2, {
|
|
8
8
|
Instance: () => exports_service2,
|
|
9
|
-
Service: () =>
|
|
10
|
-
node: () =>
|
|
9
|
+
Service: () => Service36,
|
|
10
|
+
node: () => node38
|
|
11
11
|
});
|
|
12
12
|
import { Context } from "effect";
|
|
13
13
|
import { Node } from "@opencode/util/effect/app-node";
|
|
14
14
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service36 extends Context.Service()("@opencode/Instance") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
18
|
+
var node38 = LayerNode.unbound(Service36, Node.tags.values.global);
|
|
19
19
|
|
|
20
|
-
export {
|
|
20
|
+
export { Service36, node38, exports_service2 };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service85
|
|
3
|
+
} from "./ripgrep-sbpkqjks.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service61,
|
|
6
|
+
Event10
|
|
7
|
+
} from "./ripgrep-gs1ef0jt.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/wellknown/plugin.ts
|
|
13
13
|
var exports_plugin = {};
|
|
@@ -20,8 +20,8 @@ import { Effect, Stream } from "effect";
|
|
|
20
20
|
var Plugin53 = define({
|
|
21
21
|
id: "opencode.wellknown",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
|
-
const bus = yield*
|
|
24
|
-
const wellknown = yield*
|
|
23
|
+
const bus = yield* Service85;
|
|
24
|
+
const wellknown = yield* Service61;
|
|
25
25
|
yield* wellknown.entries().pipe(Effect.orDie);
|
|
26
26
|
yield* ctx.integration.transform((editor) => {
|
|
27
27
|
wellknown.snapshot().forEach((entry) => {
|
|
@@ -41,7 +41,7 @@ var Plugin53 = define({
|
|
|
41
41
|
});
|
|
42
42
|
});
|
|
43
43
|
});
|
|
44
|
-
yield* bus.subscribe(
|
|
44
|
+
yield* bus.subscribe(Event10.Updated).pipe(Stream.runForEach(() => ctx.integration.reload()), Effect.forkScoped({ startImmediately: true }));
|
|
45
45
|
})
|
|
46
46
|
});
|
|
47
47
|
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./ripgrep-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionSchema2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-yeejah88.js";
|
|
8
8
|
|
|
9
9
|
// src/session/info.ts
|
|
10
10
|
import { DateTime, Schema } from "effect";
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-cac0wmbb.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./ripgrep-sbpkqjks.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event14
|
|
10
|
+
} from "./ripgrep-q6vnkpbt.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID10,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./ripgrep-5c6v7bf7.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID9,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service63
|
|
20
|
+
} from "./ripgrep-agz4bq91.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID8
|
|
23
|
+
} from "./ripgrep-7rr96ps8.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
load4,
|
|
26
|
+
derive3
|
|
27
|
+
} from "./ripgrep-5aysfjzq.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./ripgrep-b3tsdpgs.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID15
|
|
33
|
+
} from "./ripgrep-ydbjebpg.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./ripgrep-3nnrz6f6.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { isRecord } from "@opencode/util/record";
|
|
@@ -66,7 +66,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
66
66
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
67
67
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
68
68
|
var oauth = (app) => ({
|
|
69
|
-
integrationID:
|
|
69
|
+
integrationID: ID10.make("github-copilot"),
|
|
70
70
|
method: {
|
|
71
71
|
id: methodID,
|
|
72
72
|
type: "oauth",
|
|
@@ -164,8 +164,8 @@ var oauth = (app) => ({
|
|
|
164
164
|
var GithubCopilotPlugin2 = define({
|
|
165
165
|
id: "opencode.provider.github.copilot",
|
|
166
166
|
effect: Effect.fn(function* (ctx) {
|
|
167
|
-
const providers = yield*
|
|
168
|
-
const bus = yield*
|
|
167
|
+
const providers = yield* Service63;
|
|
168
|
+
const bus = yield* Service85;
|
|
169
169
|
const loading = Semaphore.makeUnsafe(1);
|
|
170
170
|
const loaded = {};
|
|
171
171
|
const load = Effect.fn("GithubCopilotPlugin.load")(function* () {
|
|
@@ -181,9 +181,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
181
181
|
return;
|
|
182
182
|
}
|
|
183
183
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
184
|
-
const provider = yield* providers.get(
|
|
184
|
+
const provider = yield* providers.get(ID9.githubCopilot);
|
|
185
185
|
const remote = yield* Effect.tryPromise({
|
|
186
|
-
try: () =>
|
|
186
|
+
try: () => load4(url, {
|
|
187
187
|
...provider?.headers,
|
|
188
188
|
Authorization: `Bearer ${credential.refresh}`,
|
|
189
189
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -203,13 +203,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
203
203
|
editor.method.update(oauth(ctx.app));
|
|
204
204
|
});
|
|
205
205
|
yield* ctx.provider.transform((evt) => {
|
|
206
|
-
const item = evt.get(
|
|
206
|
+
const item = evt.get(ID9.githubCopilot);
|
|
207
207
|
if (!item)
|
|
208
208
|
return;
|
|
209
209
|
if (loaded.models) {
|
|
210
210
|
evt.add({
|
|
211
211
|
info: item.provider,
|
|
212
|
-
models: Array.from(
|
|
212
|
+
models: Array.from(derive3(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
213
213
|
sourceConnection: loaded.connection
|
|
214
214
|
});
|
|
215
215
|
return;
|
|
@@ -231,17 +231,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
yield* ctx.model.transform((models) => {
|
|
234
|
-
if (models.get(
|
|
235
|
-
models.update(
|
|
234
|
+
if (models.get(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"))) {
|
|
235
|
+
models.update(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"), (model) => {
|
|
236
236
|
model.enabled = false;
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event14.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
242
|
yield* refresh().pipe(Effect.forkScoped);
|
|
243
243
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
244
|
-
if (evt.model.providerID !==
|
|
244
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
245
245
|
return;
|
|
246
246
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
247
247
|
return;
|
|
@@ -250,7 +250,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
250
250
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
251
251
|
}));
|
|
252
252
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
253
|
-
if (evt.model.providerID !==
|
|
253
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
254
254
|
return;
|
|
255
255
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
256
256
|
return;
|
|
@@ -260,13 +260,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
260
260
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
261
261
|
if (interaction !== "conversation-agent")
|
|
262
262
|
evt.headers["x-initiator"] = "agent";
|
|
263
|
-
}), { providerID:
|
|
263
|
+
}), { providerID: ID9.githubCopilot });
|
|
264
264
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
265
|
-
if (evt.model.providerID !==
|
|
265
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
266
266
|
return;
|
|
267
267
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
268
268
|
return;
|
|
269
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
269
|
+
const agent = yield* ctx.agent.get({ agentID: ID15.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
270
270
|
return;
|
|
271
271
|
}));
|
|
272
272
|
if (agent?.data.model)
|
|
@@ -277,9 +277,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
277
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(() => {
|
|
278
278
|
return;
|
|
279
279
|
}));
|
|
280
|
-
}), { providerID:
|
|
280
|
+
}), { providerID: ID9.githubCopilot });
|
|
281
281
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
282
|
-
if (evt.model.providerID !==
|
|
282
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
283
283
|
return;
|
|
284
284
|
const token = evt.request.headers.get("x-api-key");
|
|
285
285
|
if (!token)
|
|
@@ -287,9 +287,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
287
287
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
288
288
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
289
289
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
290
|
-
}), { providerID:
|
|
290
|
+
}), { providerID: ID9.githubCopilot });
|
|
291
291
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
292
|
-
if (evt.model.providerID !==
|
|
292
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
293
293
|
return;
|
|
294
294
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
295
295
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
10
|
-
render: () =>
|
|
9
|
+
make: () => make13,
|
|
10
|
+
render: () => render2
|
|
11
11
|
});
|
|
12
12
|
// src/session/runner/prompt/system.txt
|
|
13
13
|
var system_default = `You are an AI agent running in OpenCode, a coding agent harness. Help the user accomplish their goals using the tools you have available.
|
|
@@ -28,10 +28,10 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
30
|
// src/session/system-prompt.ts
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function make13(tools) {
|
|
32
|
+
return render2(system_default, tools);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function render2(prompt, tools) {
|
|
35
35
|
const instructions = [];
|
|
36
36
|
if (tools.includes("shell")) {
|
|
37
37
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -46,4 +46,4 @@ function render3(prompt, tools) {
|
|
|
46
46
|
`));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { make13, render2, exports_system_prompt };
|
|
@@ -1,30 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service59
|
|
4
|
+
} from "./ripgrep-1gx6yymd.js";
|
|
5
5
|
import {
|
|
6
6
|
observe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./ripgrep-hpg1pkwy.js";
|
|
8
8
|
import {
|
|
9
|
+
Condition2,
|
|
9
10
|
ID2,
|
|
11
|
+
Outcome3,
|
|
10
12
|
Request2,
|
|
11
|
-
When2,
|
|
12
13
|
Status2,
|
|
13
|
-
Outcome3,
|
|
14
14
|
toCreateInput2,
|
|
15
|
+
When2,
|
|
15
16
|
NotFoundError2,
|
|
16
17
|
DisabledError2,
|
|
17
18
|
Service14
|
|
18
|
-
} from "./
|
|
19
|
+
} from "./ripgrep-pj6fb39f.js";
|
|
19
20
|
import {
|
|
20
21
|
__export
|
|
21
|
-
} from "./
|
|
22
|
+
} from "./ripgrep-9rqn6x4v.js";
|
|
22
23
|
|
|
23
24
|
// src/tool/plugin/schedule.ts
|
|
24
25
|
var exports_schedule = {};
|
|
25
26
|
__export(exports_schedule, {
|
|
26
27
|
IDInput: () => IDInput2,
|
|
27
|
-
Plugin: () =>
|
|
28
|
+
Plugin: () => Plugin42,
|
|
28
29
|
ScheduleTools: () => exports_schedule,
|
|
29
30
|
View: () => View2
|
|
30
31
|
});
|
|
@@ -33,7 +34,7 @@ import { optional } from "@opencode/schema/schema";
|
|
|
33
34
|
import { DateTime, Effect, Option, Schema } from "effect";
|
|
34
35
|
|
|
35
36
|
// src/plugin/command/schedule.txt
|
|
36
|
-
var schedule_default = 'Manage scheduled prompts for this session.\n\nRequest: $ARGUMENTS\n\nUse the schedule tools in the `opencode` namespace. They only see this session\'s schedules.\n\n- To schedule something, call `schedule_create`. Choose
|
|
37
|
+
var schedule_default = 'Manage scheduled prompts for this session.\n\nRequest: $ARGUMENTS\n\nUse the schedule tools in the `opencode` namespace. They only see this session\'s schedules.\n\n- To schedule something, call `schedule_create`. Choose `when` (`{ in: "20 minutes" }`, `{ at: "2026-10-27T09:00" }`, `{ every: "1 hour" }` or `{ cron: "0 9 * * 1-5" }`, optional with `until` which defaults to every 30s). Add `until: { run: "..." }` to wait once for a shell condition (exit 0, `is`, `matches`, or `changes: true`, defaulting to a 24h timeout), or `if: { run: "..." }` to gate each recurring slot without a model call. To stop a repeating schedule, add `ends`: `{ after: "8 hours" }`, `{ at: "..." }` or `{ times: 3 }`. Write `prompt` as the instruction you will receive when it wakes, with enough context to act on it without this conversation.\n- To pause, resume or delete one, find its id with `schedule_list`, then call `schedule_pause`, `schedule_resume` or `schedule_delete`.\n- If the request is empty, call `schedule_list` and show this session\'s schedules: name, when, status and next run.\n\nReply in one line: what changed and when it next fires.\n';
|
|
37
38
|
|
|
38
39
|
// src/tool/plugin/schedule.ts
|
|
39
40
|
var View2 = Schema.Struct({
|
|
@@ -41,6 +42,8 @@ var View2 = Schema.Struct({
|
|
|
41
42
|
name: Schema.String.pipe(optional),
|
|
42
43
|
when: When2,
|
|
43
44
|
tz: Schema.String,
|
|
45
|
+
if: Condition2.pipe(optional),
|
|
46
|
+
until: Condition2.pipe(optional),
|
|
44
47
|
prompt: Schema.String,
|
|
45
48
|
status: Status2,
|
|
46
49
|
nextDueAt: Schema.String.pipe(optional),
|
|
@@ -48,7 +51,8 @@ var View2 = Schema.Struct({
|
|
|
48
51
|
remainingRuns: Schema.Number.pipe(optional),
|
|
49
52
|
runCount: Schema.Number,
|
|
50
53
|
lastFiredAt: Schema.String.pipe(optional),
|
|
51
|
-
lastOutcome: Outcome3.pipe(optional)
|
|
54
|
+
lastOutcome: Outcome3.pipe(optional),
|
|
55
|
+
lastOutput: Schema.String.pipe(optional)
|
|
52
56
|
});
|
|
53
57
|
var ListOutput = Schema.Struct({
|
|
54
58
|
now: Schema.String.annotate({ description: "The current time, in UTC." }),
|
|
@@ -58,10 +62,10 @@ var IDInput2 = Schema.Struct({
|
|
|
58
62
|
id: ID2.annotate({ description: "Schedule id from schedule_list." })
|
|
59
63
|
});
|
|
60
64
|
var RemoveOutput = Schema.Struct({ id: ID2, removed: Schema.Boolean });
|
|
61
|
-
var
|
|
65
|
+
var Plugin42 = {
|
|
62
66
|
id: "opencode.tool.schedule",
|
|
63
67
|
effect: Effect.fn("ScheduleTools.Plugin")(function* (ctx) {
|
|
64
|
-
const config = yield*
|
|
68
|
+
const config = yield* Service59;
|
|
65
69
|
const schedules = yield* Service14;
|
|
66
70
|
const loaded = yield* observe2(config, ctx.event, Effect.andThen(ctx.tool.reload(), ctx.command.reload()));
|
|
67
71
|
const enabled = () => latest2(loaded.entries, "experimental")?.schedules === true;
|
|
@@ -73,13 +77,14 @@ var Plugin37 = {
|
|
|
73
77
|
return;
|
|
74
78
|
editor.add({
|
|
75
79
|
name: "schedule_create",
|
|
76
|
-
description: "Schedule a prompt that wakes this session later: once after a delay, at a time, every interval,
|
|
80
|
+
description: "Schedule a prompt that wakes this session later: once after a delay, at a time, every interval, on a cron, or gated by an `if` / `until` shell check. Returns the schedule with its next run (or `done` immediately if `until` already matches).",
|
|
77
81
|
input: Request2,
|
|
78
82
|
output: View2,
|
|
79
83
|
options: { namespace: "opencode", codemode: true },
|
|
80
84
|
execute: (input, context) => schedules.create(toCreateInput2(context.sessionID, input)).pipe(Effect.map((info) => {
|
|
81
85
|
const view = toView(info);
|
|
82
|
-
|
|
86
|
+
const prefix = view.status === "done" && view.until !== undefined ? "Matched immediately" : "Scheduled";
|
|
87
|
+
return { output: view, content: `${prefix}: ${summary(view)}` };
|
|
83
88
|
}), Effect.mapError(failure))
|
|
84
89
|
});
|
|
85
90
|
editor.add({
|
|
@@ -140,15 +145,24 @@ var Plugin37 = {
|
|
|
140
145
|
});
|
|
141
146
|
})
|
|
142
147
|
};
|
|
148
|
+
function formatCondition(condition) {
|
|
149
|
+
switch (condition.type) {
|
|
150
|
+
case "shell":
|
|
151
|
+
return JSON.stringify(condition.run);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
143
154
|
function summary(view) {
|
|
144
155
|
const when = view.when;
|
|
145
156
|
const trigger = when.type === "in" ? `in ${when.in}` : when.type === "at" ? `at ${when.at}` : when.type === "every" ? `every ${when.every}` : `cron "${when.cron}"`;
|
|
157
|
+
const gate = view.until !== undefined ? `until ${formatCondition(view.until)}` : view.if !== undefined ? `if ${formatCondition(view.if)}` : undefined;
|
|
146
158
|
const prompt = view.prompt.length > 80 ? `${view.prompt.slice(0, 79)}…` : view.prompt;
|
|
147
159
|
return [
|
|
148
160
|
`${view.id}${view.name ? ` "${view.name}"` : ""}: ${trigger} (${view.tz})`,
|
|
161
|
+
gate,
|
|
149
162
|
view.status,
|
|
150
163
|
view.nextDueAt && `next ${view.nextDueAt}`,
|
|
151
|
-
`prompt: ${JSON.stringify(prompt)}
|
|
164
|
+
`prompt: ${JSON.stringify(prompt)}`,
|
|
165
|
+
view.lastOutput && `output: ${JSON.stringify(view.lastOutput)}`
|
|
152
166
|
].filter(Boolean).join(", ");
|
|
153
167
|
}
|
|
154
168
|
function toView(info) {
|
|
@@ -165,6 +179,8 @@ function toView(info) {
|
|
|
165
179
|
name: info.name,
|
|
166
180
|
when: info.when,
|
|
167
181
|
tz: info.tz,
|
|
182
|
+
if: info.if,
|
|
183
|
+
until: info.until,
|
|
168
184
|
prompt: info.action.prompt,
|
|
169
185
|
status: info.status,
|
|
170
186
|
nextDueAt: local(info.nextDueAt),
|
|
@@ -172,8 +188,9 @@ function toView(info) {
|
|
|
172
188
|
remainingRuns: info.remainingRuns,
|
|
173
189
|
runCount: info.runCount,
|
|
174
190
|
lastFiredAt: local(info.lastFiredAt),
|
|
175
|
-
lastOutcome: info.lastOutcome
|
|
191
|
+
lastOutcome: info.lastOutcome,
|
|
192
|
+
lastOutput: info.lastOutput
|
|
176
193
|
};
|
|
177
194
|
}
|
|
178
195
|
|
|
179
|
-
export { View2, IDInput2,
|
|
196
|
+
export { View2, IDInput2, Plugin42, exports_schedule };
|