@opencode/core 0.0.0-dev-20160 → 0.0.0-dev-20161
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 +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +69 -69
- package/dist/chunks/{session-2sg260nx.js → persistent-pty-001y1jgc.js} +29 -29
- package/dist/chunks/{session-0ds4nxjt.js → persistent-pty-00qdhpqs.js} +15 -15
- package/dist/chunks/{session-kxzgz6qj.js → persistent-pty-0hp4c3hn.js} +4 -4
- package/dist/chunks/{session-n71epsv6.js → persistent-pty-0km2ps5n.js} +13 -13
- package/dist/chunks/{session-0paq2nw3.js → persistent-pty-0paq2nw3.js} +1 -1
- package/dist/chunks/{session-r5734vc9.js → persistent-pty-0tk0r9vs.js} +11 -11
- package/dist/chunks/{session-bf5cr955.js → persistent-pty-0zms6rpb.js} +6 -6
- package/dist/chunks/{session-cbyh50mr.js → persistent-pty-0zs6fyez.js} +11 -11
- package/dist/chunks/{session-7vpargwy.js → persistent-pty-10cps0de.js} +59 -59
- package/dist/chunks/{session-22rafnjp.js → persistent-pty-16t7m2p8.js} +6 -6
- package/dist/chunks/{session-1dazxqgg.js → persistent-pty-1dazxqgg.js} +2 -2
- package/dist/chunks/{session-dcd3cb6e.js → persistent-pty-1dj1qnqc.js} +11 -11
- package/dist/chunks/{session-878p20b2.js → persistent-pty-1phy0an4.js} +7 -7
- package/dist/chunks/{session-kvynqkpr.js → persistent-pty-1pkc5cmh.js} +20 -20
- package/dist/chunks/{session-cntynd0e.js → persistent-pty-1sjkd43q.js} +33 -33
- package/dist/chunks/{session-spq68xge.js → persistent-pty-1wgjazvh.js} +10 -10
- package/dist/chunks/{session-0ab3je7r.js → persistent-pty-1y5g7d32.js} +5 -5
- package/dist/chunks/{session-21r38tys.js → persistent-pty-21r38tys.js} +1 -1
- package/dist/chunks/{session-2402vzrj.js → persistent-pty-2402vzrj.js} +1 -1
- package/dist/chunks/{session-ycgn13tp.js → persistent-pty-25cqgkt3.js} +10 -10
- package/dist/chunks/{session-2a5m3afh.js → persistent-pty-2a5m3afh.js} +1 -1
- package/dist/chunks/{session-37sfe3bm.js → persistent-pty-2c7hjkzv.js} +13 -13
- package/dist/chunks/{session-3cfzdc8e.js → persistent-pty-2f0bjgcj.js} +5 -5
- package/dist/chunks/{session-br926xn9.js → persistent-pty-2fcahxgq.js} +7 -7
- package/dist/chunks/{session-b5k86chy.js → persistent-pty-2gkx64as.js} +3 -3
- package/dist/chunks/{session-7dqw4kz8.js → persistent-pty-2k8khapm.js} +5 -5
- package/dist/chunks/{session-73cs7vnm.js → persistent-pty-2xsn1zg1.js} +8 -8
- package/dist/chunks/{session-3fc6dm20.js → persistent-pty-3fc6dm20.js} +1 -1
- package/dist/chunks/{session-3hepkmqq.js → persistent-pty-3hepkmqq.js} +1 -1
- package/dist/chunks/{session-x9rp7719.js → persistent-pty-3hz5d8pf.js} +27 -27
- package/dist/chunks/{session-3smtnn6g.js → persistent-pty-3smtnn6g.js} +1 -1
- package/dist/chunks/{session-rfke20cm.js → persistent-pty-3ttpyjev.js} +3 -3
- package/dist/chunks/{session-3tvqynh2.js → persistent-pty-3tvqynh2.js} +1 -1
- package/dist/chunks/{session-3zsf4n22.js → persistent-pty-3zsf4n22.js} +1 -1
- package/dist/chunks/{session-78bh9b51.js → persistent-pty-41tjw832.js} +38 -38
- package/dist/chunks/{session-pw26y09t.js → persistent-pty-43amtwcs.js} +14 -14
- package/dist/chunks/{session-tbmac1c7.js → persistent-pty-4bm5ja14.js} +4 -4
- package/dist/chunks/{session-nbby7gnz.js → persistent-pty-4ej9fmev.js} +6 -6
- package/dist/chunks/{session-qa3qntg2.js → persistent-pty-4g8a3071.js} +44 -44
- package/dist/chunks/{session-h59aghp9.js → persistent-pty-4rjsgs5d.js} +13 -13
- package/dist/chunks/{session-8q9cyy35.js → persistent-pty-4sftmnet.js} +20 -20
- package/dist/chunks/{session-x7jaq4w3.js → persistent-pty-4snmkckq.js} +25 -25
- package/dist/chunks/{session-j7a31f70.js → persistent-pty-4v68peyh.js} +5 -5
- package/dist/chunks/{session-h6vtv795.js → persistent-pty-511zxn61.js} +25 -25
- package/dist/chunks/{session-q4zrs7xy.js → persistent-pty-53tb33wk.js} +8 -8
- package/dist/chunks/{session-ty1n72rn.js → persistent-pty-54whtqgx.js} +2 -2
- package/dist/chunks/{session-56gdpj1q.js → persistent-pty-56gdpj1q.js} +2 -2
- package/dist/chunks/{session-xfkkasph.js → persistent-pty-57b9ws8p.js} +7 -7
- package/dist/chunks/{session-57ez7d0k.js → persistent-pty-57ez7d0k.js} +2 -2
- package/dist/chunks/{session-yrq1xc16.js → persistent-pty-58h6nhfy.js} +7 -7
- package/dist/chunks/{session-5h35ktg3.js → persistent-pty-58nbvhsb.js} +31 -31
- package/dist/chunks/{session-k1qrnqst.js → persistent-pty-5b84avn1.js} +8 -8
- package/dist/chunks/{session-5daktx2q.js → persistent-pty-5daktx2q.js} +1 -1
- package/dist/chunks/{session-vn3my0c0.js → persistent-pty-5hn18gj9.js} +6 -6
- package/dist/chunks/{session-ypt7zytc.js → persistent-pty-5kjs1xx3.js} +15 -15
- package/dist/chunks/{session-e3qxr5gk.js → persistent-pty-5qd3pb7m.js} +2 -2
- package/dist/chunks/{session-7q2tvaya.js → persistent-pty-5rc4gns8.js} +18 -18
- package/dist/chunks/{session-d7fs98ew.js → persistent-pty-5s51epvc.js} +35 -35
- package/dist/chunks/{session-t4hjygyp.js → persistent-pty-5sz0tvwy.js} +1 -1
- package/dist/chunks/{session-5t3nmthw.js → persistent-pty-5t3nmthw.js} +2 -2
- package/dist/chunks/{session-hnv6ytv5.js → persistent-pty-5tmg9z32.js} +57 -57
- package/dist/chunks/{session-619r8v3y.js → persistent-pty-619r8v3y.js} +1 -1
- package/dist/chunks/{session-sjrw32hx.js → persistent-pty-620nd8sc.js} +9 -9
- package/dist/chunks/{session-669tq793.js → persistent-pty-669tq793.js} +1 -1
- package/dist/chunks/{session-g4n87ghy.js → persistent-pty-6993v4hz.js} +3 -3
- package/dist/chunks/{session-rp8jz6x1.js → persistent-pty-6anwy9fs.js} +4 -4
- package/dist/chunks/{session-p1nk9e7p.js → persistent-pty-6b342141.js} +23 -23
- package/dist/chunks/{session-cv2ckvez.js → persistent-pty-6bd6ytb7.js} +10 -10
- package/dist/chunks/{session-mjcgfbxd.js → persistent-pty-6e3ttc5b.js} +26 -26
- package/dist/chunks/{session-zad4pthz.js → persistent-pty-6jdw569z.js} +13 -13
- package/dist/chunks/{session-6msgmcgs.js → persistent-pty-6msgmcgs.js} +1 -1
- package/dist/chunks/{session-a881zpfh.js → persistent-pty-6n4b0dsb.js} +9 -9
- package/dist/chunks/{session-j8a3t00s.js → persistent-pty-6v46makf.js} +33 -33
- package/dist/chunks/{session-bretxvn8.js → persistent-pty-6v65b3fz.js} +23 -23
- package/dist/chunks/{session-5fq3s9nk.js → persistent-pty-70s96e4j.js} +18 -18
- package/dist/chunks/{session-73p015gt.js → persistent-pty-721wyhkj.js} +41 -41
- package/dist/chunks/{session-7bmhse3q.js → persistent-pty-7bmhse3q.js} +1 -1
- package/dist/chunks/{session-0wpx4zh6.js → persistent-pty-7dhhhw6e.js} +77 -77
- package/dist/chunks/{session-b0dgvpy7.js → persistent-pty-82rhge12.js} +9 -9
- package/dist/chunks/{session-cyvxyepb.js → persistent-pty-83g6ksvf.js} +14 -14
- package/dist/chunks/{session-9jdnhbcg.js → persistent-pty-83zq1v6a.js} +27 -27
- package/dist/chunks/{session-fhy7zdhf.js → persistent-pty-89tas9n7.js} +30 -30
- package/dist/chunks/{session-9y0w708y.js → persistent-pty-8ank75fn.js} +8 -8
- package/dist/chunks/{session-8d7r5vzw.js → persistent-pty-8d7r5vzw.js} +1 -1
- package/dist/chunks/{session-2cyv4f5e.js → persistent-pty-8frg9jgy.js} +10 -10
- package/dist/chunks/{session-x5cg1xcm.js → persistent-pty-8h3wkb9t.js} +10 -10
- package/dist/chunks/{session-w139t23a.js → persistent-pty-8m2wsxaa.js} +5 -5
- package/dist/chunks/{session-vqv9rnx6.js → persistent-pty-8pggv5rn.js} +22 -22
- package/dist/chunks/{session-ht4w0svj.js → persistent-pty-8z04j688.js} +16 -16
- package/dist/chunks/{session-9ynr3dfk.js → persistent-pty-8z4djcf1.js} +10 -10
- package/dist/chunks/{session-2a6rn6yr.js → persistent-pty-909p1r3q.js} +6 -6
- package/dist/chunks/{session-x6wtfncd.js → persistent-pty-911wn564.js} +22 -22
- package/dist/chunks/{session-gfvb90ym.js → persistent-pty-94ek1h2f.js} +2 -2
- package/dist/chunks/{session-em3h5ktn.js → persistent-pty-96ctqc5x.js} +4 -4
- package/dist/chunks/{session-zdwjck79.js → persistent-pty-973ajm3c.js} +24 -24
- package/dist/chunks/{session-a745b56a.js → persistent-pty-99edkwrt.js} +43 -43
- package/dist/chunks/{session-j3dd5x6a.js → persistent-pty-9b0hn6p1.js} +30 -30
- package/dist/chunks/{session-hpxb066z.js → persistent-pty-9cz1e5x5.js} +22 -22
- package/dist/chunks/{session-r5x6zcsm.js → persistent-pty-a1gpj94z.js} +3 -3
- package/dist/chunks/{session-a8wf0jya.js → persistent-pty-a8b42nbe.js} +9 -9
- package/dist/chunks/{session-z9cgy18q.js → persistent-pty-a9fv3hpn.js} +10 -10
- package/dist/chunks/{session-hjxhb8xk.js → persistent-pty-a9wcce88.js} +14 -14
- package/dist/chunks/{session-aaet6srn.js → persistent-pty-aaet6srn.js} +2 -2
- package/dist/chunks/{session-vy4zg7qh.js → persistent-pty-afed7ext.js} +5 -5
- package/dist/chunks/{session-x9n1am6t.js → persistent-pty-ag580yac.js} +4 -4
- package/dist/chunks/{session-6bvhsrzt.js → persistent-pty-ages87gt.js} +15 -15
- package/dist/chunks/{session-3y650d3w.js → persistent-pty-ajzbtavw.js} +12 -12
- package/dist/chunks/{session-3daw23hh.js → persistent-pty-akhrmp6k.js} +3 -3
- package/dist/chunks/{session-ez7z0p20.js → persistent-pty-ap94g0em.js} +1 -1
- package/dist/chunks/{session-0etr5837.js → persistent-pty-aqxrhhqj.js} +3 -3
- package/dist/chunks/{session-ag4f73gw.js → persistent-pty-awbdf8k5.js} +12 -12
- package/dist/chunks/{session-11k00grk.js → persistent-pty-azw5h5wv.js} +8 -8
- package/dist/chunks/{session-gn1f0zrs.js → persistent-pty-b2ymzsjy.js} +20 -20
- package/dist/chunks/{session-b6gygkdw.js → persistent-pty-b6gygkdw.js} +2 -2
- package/dist/chunks/{session-axs6pdy0.js → persistent-pty-b7b4ctej.js} +5 -5
- package/dist/chunks/{session-f1eys81r.js → persistent-pty-bdgt4s9b.js} +5 -5
- package/dist/chunks/{session-a76mq0kp.js → persistent-pty-bex1ttf8.js} +15 -15
- package/dist/chunks/{session-36w2c4wp.js → persistent-pty-bkk31atn.js} +24 -24
- package/dist/chunks/{session-6fxkhm7k.js → persistent-pty-bz1n60hy.js} +17 -17
- package/dist/chunks/{session-teeeetwt.js → persistent-pty-c53acc8g.js} +24 -24
- package/dist/chunks/{session-5bghj9c4.js → persistent-pty-c5e87xej.js} +18 -18
- package/dist/chunks/{session-bjp7wch6.js → persistent-pty-c7jcxm17.js} +51 -28
- package/dist/chunks/{session-v176d600.js → persistent-pty-c7vf4kh0.js} +4 -4
- package/dist/chunks/{session-axmvebxj.js → persistent-pty-cavr175a.js} +21 -21
- package/dist/chunks/persistent-pty-cdss73z7.js +252 -0
- package/dist/chunks/{session-54rbqgw7.js → persistent-pty-cenvhtqn.js} +18 -18
- package/dist/chunks/{session-xenc6ek8.js → persistent-pty-cgp2fa9y.js} +20 -20
- package/dist/chunks/{session-dan7ncpb.js → persistent-pty-ck0wjfjv.js} +30 -30
- package/dist/chunks/{session-54tcyq79.js → persistent-pty-ckecvw8r.js} +2 -2
- package/dist/chunks/{session-n3vhrske.js → persistent-pty-cmp9tspr.js} +30 -30
- package/dist/chunks/{session-h6r3nrb9.js → persistent-pty-cpj0znwe.js} +4 -4
- package/dist/chunks/{session-erkj4jm4.js → persistent-pty-cpvy7b7p.js} +8 -8
- package/dist/chunks/{session-djszqvmq.js → persistent-pty-cwa6csj7.js} +9 -9
- package/dist/chunks/{session-2tqyxpjd.js → persistent-pty-czpwm44a.js} +8 -8
- package/dist/chunks/{session-pq623249.js → persistent-pty-d9jme974.js} +5 -5
- package/dist/chunks/{session-rfddq75h.js → persistent-pty-dbnx9smq.js} +11 -11
- package/dist/chunks/{session-1geh030x.js → persistent-pty-dekmczra.js} +70 -70
- package/dist/chunks/{session-0v53mg2y.js → persistent-pty-dfe8djrf.js} +4 -4
- package/dist/chunks/{session-aztc6zc0.js → persistent-pty-dk7pdvq2.js} +20 -20
- package/dist/chunks/{session-0g0xjf3w.js → persistent-pty-dq2map5x.js} +25 -25
- package/dist/chunks/{session-cwfeh27v.js → persistent-pty-drbh3724.js} +17 -17
- package/dist/chunks/{session-h10s6dah.js → persistent-pty-dwq6ryhm.js} +8 -8
- package/dist/chunks/{session-0m60qzxk.js → persistent-pty-e48e4j0a.js} +24 -24
- package/dist/chunks/{session-m7eqtq7h.js → persistent-pty-e90jpx4a.js} +11 -11
- package/dist/chunks/{session-tnqnkygc.js → persistent-pty-eb65cref.js} +3 -3
- package/dist/chunks/{session-ecfe7b91.js → persistent-pty-ecfe7b91.js} +2 -2
- package/dist/chunks/{session-ef5x83kb.js → persistent-pty-ef5x83kb.js} +1 -1
- package/dist/chunks/{session-adbsxxgk.js → persistent-pty-efm0s0bd.js} +13 -13
- package/dist/chunks/{session-etq0c3wd.js → persistent-pty-etq0c3wd.js} +1 -1
- package/dist/chunks/{session-0j3q064p.js → persistent-pty-f19h6g1r.js} +27 -27
- package/dist/chunks/{session-7bwbn0jd.js → persistent-pty-f3bevy8m.js} +29 -29
- package/dist/chunks/{session-c2tr9cba.js → persistent-pty-f5dmnpzb.js} +11 -11
- package/dist/chunks/{session-zw68n9f5.js → persistent-pty-fgcwhffx.js} +9 -9
- package/dist/chunks/{session-dec238cb.js → persistent-pty-fk7v7fft.js} +308 -308
- package/dist/chunks/{session-p3mw7xyr.js → persistent-pty-fxv4vbj0.js} +5 -5
- package/dist/chunks/{session-3vggypkr.js → persistent-pty-g2by5rc0.js} +11 -11
- package/dist/chunks/{session-4sh8yqy7.js → persistent-pty-g8jasmdt.js} +11 -11
- package/dist/chunks/{session-j5dnef6t.js → persistent-pty-gbqzgj7y.js} +17 -17
- package/dist/chunks/{session-gd4qta3r.js → persistent-pty-gd4qta3r.js} +1 -1
- package/dist/chunks/{session-h486cbhb.js → persistent-pty-gm9ayw17.js} +12 -12
- package/dist/chunks/{session-y26s5m2q.js → persistent-pty-gpy90s52.js} +11 -11
- package/dist/chunks/{session-gv6a8nnw.js → persistent-pty-gv6a8nnw.js} +2 -2
- package/dist/chunks/{session-nj3ema9j.js → persistent-pty-h584h0q7.js} +24 -24
- package/dist/chunks/{session-ynj0xxy8.js → persistent-pty-h641zn2v.js} +41 -41
- package/dist/chunks/{session-h6vf3j39.js → persistent-pty-h6vf3j39.js} +1 -1
- package/dist/chunks/{session-0vq8hxf6.js → persistent-pty-h8d1bq6v.js} +17 -17
- package/dist/chunks/{session-07exw706.js → persistent-pty-hbn9qevp.js} +34 -34
- package/dist/chunks/{session-6dzhqqtb.js → persistent-pty-hfcyh0cs.js} +6 -6
- package/dist/chunks/{session-b09hzw3k.js → persistent-pty-hkagk5ex.js} +2 -2
- package/dist/chunks/{session-pfykbea3.js → persistent-pty-hxtnvy26.js} +4 -4
- package/dist/chunks/{session-z22sqqyn.js → persistent-pty-hy9skd6v.js} +8 -8
- package/dist/chunks/{session-h83mpa4f.js → persistent-pty-j0exgwae.js} +16 -16
- package/dist/chunks/{session-tq6thkf7.js → persistent-pty-j3w6saxc.js} +5 -5
- package/dist/chunks/{session-j56e64zr.js → persistent-pty-j56e64zr.js} +1 -1
- package/dist/chunks/{session-5vgkx6vx.js → persistent-pty-j622fpqk.js} +16 -16
- package/dist/chunks/{session-knevfgda.js → persistent-pty-j8m1p4p1.js} +4 -4
- package/dist/chunks/{session-363xrghk.js → persistent-pty-jmj6k8nb.js} +10 -10
- package/dist/chunks/{session-8y47sz6y.js → persistent-pty-kaafkdk2.js} +43 -43
- package/dist/chunks/{session-4x7vd7ad.js → persistent-pty-kdtg0hmj.js} +38 -38
- package/dist/chunks/{session-mj7jap7m.js → persistent-pty-kg6vqa2g.js} +39 -39
- package/dist/chunks/{session-8bwb6cg8.js → persistent-pty-kj9mzqja.js} +21 -21
- package/dist/chunks/{session-6m46kzd3.js → persistent-pty-kkxrf4q9.js} +11 -11
- package/dist/chunks/{session-59nw1bw3.js → persistent-pty-kqeepe86.js} +9 -9
- package/dist/chunks/{session-1bj2jnan.js → persistent-pty-m2r9tm47.js} +9 -9
- package/dist/chunks/{session-m3fdjcah.js → persistent-pty-m3fdjcah.js} +1 -1
- package/dist/chunks/{session-spps2bf2.js → persistent-pty-m7hh4551.js} +26 -26
- package/dist/chunks/{session-m9w0rfyh.js → persistent-pty-m9w0rfyh.js} +1 -1
- package/dist/chunks/{session-2p8k3371.js → persistent-pty-mgmaefw5.js} +3 -3
- package/dist/chunks/{session-z2sk8n0r.js → persistent-pty-mgvjhcwg.js} +9 -9
- package/dist/chunks/{session-22r42fq5.js → persistent-pty-mjeayme1.js} +20 -20
- package/dist/chunks/{session-2xwkyk0m.js → persistent-pty-mtrbqqrq.js} +5 -5
- package/dist/chunks/{session-d8cw0a7r.js → persistent-pty-mvksx64m.js} +4 -4
- package/dist/chunks/{session-9yfmx064.js → persistent-pty-n0aymgn1.js} +21 -21
- package/dist/chunks/{session-mxaf64hb.js → persistent-pty-n0ecsdh3.js} +21 -21
- package/dist/chunks/{session-72ykkv7q.js → persistent-pty-ncxkwzes.js} +11 -11
- package/dist/chunks/{session-y6f0p4jw.js → persistent-pty-ndmv45hp.js} +3 -3
- package/dist/chunks/{session-ead3g9p8.js → persistent-pty-nxhqveyz.js} +5 -5
- package/dist/chunks/{session-k3c624dm.js → persistent-pty-nzks3jc8.js} +3 -3
- package/dist/chunks/{session-vkx2mzfj.js → persistent-pty-p0m94kn1.js} +9 -9
- package/dist/chunks/{session-pa8pe2x7.js → persistent-pty-p42hj8p8.js} +8 -8
- package/dist/chunks/{session-1a04trcm.js → persistent-pty-p4zsmmgp.js} +12 -12
- package/dist/chunks/{session-e7bd4f0g.js → persistent-pty-p8q141tk.js} +5 -5
- package/dist/chunks/{session-6hje2pqe.js → persistent-pty-p912m9y8.js} +26 -26
- package/dist/chunks/{session-zf6529qm.js → persistent-pty-pgmzfdk5.js} +7 -7
- package/dist/chunks/{session-pjvnvgmy.js → persistent-pty-pjvnvgmy.js} +1 -1
- package/dist/chunks/{session-pknna89w.js → persistent-pty-pknna89w.js} +1 -1
- package/dist/chunks/{session-5ggb7gsj.js → persistent-pty-pn9rmv0x.js} +10 -10
- package/dist/chunks/{session-6hcqq1md.js → persistent-pty-pz0sazxr.js} +11 -11
- package/dist/chunks/{session-8ac9we4c.js → persistent-pty-pzwp9vyv.js} +22 -22
- package/dist/chunks/{session-yfac261q.js → persistent-pty-q5wdx1yq.js} +6 -6
- package/dist/chunks/{session-4fhgqxn3.js → persistent-pty-q66wawzv.js} +26 -26
- package/dist/chunks/{session-fm2qvscf.js → persistent-pty-qa3qhgw8.js} +4 -4
- package/dist/chunks/persistent-pty-qapv375x.js +4 -0
- package/dist/chunks/{session-pnv527nz.js → persistent-pty-qg0jgkcp.js} +9 -9
- package/dist/chunks/{session-4zmtbcja.js → persistent-pty-qghn429y.js} +11 -11
- package/dist/chunks/{session-cgf4qtyb.js → persistent-pty-qjxevsft.js} +1 -1
- package/dist/chunks/{session-nfjjh792.js → persistent-pty-qpa1z2xq.js} +8 -8
- package/dist/chunks/{session-f88bvz2g.js → persistent-pty-qq4d284g.js} +4 -4
- package/dist/chunks/{session-wnmqtqbz.js → persistent-pty-qq8x5mwt.js} +7 -7
- package/dist/chunks/{session-qsdy395h.js → persistent-pty-qsdy395h.js} +1 -1
- package/dist/chunks/{session-td2xt15b.js → persistent-pty-qw6ew0vv.js} +17 -17
- package/dist/chunks/{session-6pbvtem2.js → persistent-pty-r16x646x.js} +10 -10
- package/dist/chunks/{session-rdw6cm16.js → persistent-pty-rdw6cm16.js} +1 -1
- package/dist/chunks/{session-rhjbct0v.js → persistent-pty-rhjbct0v.js} +1 -1
- package/dist/chunks/{session-89n7ecns.js → persistent-pty-rjgm2g5y.js} +11 -11
- package/dist/chunks/{session-tfcs166d.js → persistent-pty-rrxgszfj.js} +22 -22
- package/dist/chunks/{session-g281w60y.js → persistent-pty-rzef2apf.js} +13 -13
- package/dist/chunks/{session-7301y69e.js → persistent-pty-sjdt00n5.js} +20 -20
- package/dist/chunks/{session-pdanyz1v.js → persistent-pty-sq5357bb.js} +16 -16
- package/dist/chunks/{session-tazgh4e4.js → persistent-pty-tazgh4e4.js} +1 -1
- package/dist/chunks/{session-sbe92etv.js → persistent-pty-tb7f0f66.js} +14 -14
- package/dist/chunks/{session-tcezcvh9.js → persistent-pty-tcezcvh9.js} +1 -1
- package/dist/chunks/{session-tdstcens.js → persistent-pty-tdstcens.js} +1 -1
- package/dist/chunks/{session-dtb3tcrh.js → persistent-pty-tpzdabj1.js} +3 -3
- package/dist/chunks/{session-8a062qkv.js → persistent-pty-tvgkc4yy.js} +4 -4
- package/dist/chunks/{session-tvtrv512.js → persistent-pty-tvtrv512.js} +1 -1
- package/dist/chunks/{session-g88nb3be.js → persistent-pty-tyvhjzdr.js} +18 -18
- package/dist/chunks/{session-t5kz8wwg.js → persistent-pty-v1xx0enh.js} +7 -7
- package/dist/chunks/{session-p23qnjj8.js → persistent-pty-v2zjbjd3.js} +48 -48
- package/dist/chunks/{session-24ac7ank.js → persistent-pty-vdvpd1jg.js} +9 -9
- package/dist/chunks/{session-veqvce7d.js → persistent-pty-veqvce7d.js} +1 -1
- package/dist/chunks/{session-4gnrzq8g.js → persistent-pty-vpyec1rj.js} +16 -16
- package/dist/chunks/{session-5s92r4aj.js → persistent-pty-vv5pystr.js} +25 -25
- package/dist/chunks/persistent-pty-vw66btjd.js +26 -0
- package/dist/chunks/{session-757464b7.js → persistent-pty-vwpcpzep.js} +8 -8
- package/dist/chunks/{session-fth3s3gv.js → persistent-pty-vyx03eky.js} +156 -156
- package/dist/chunks/{session-tgjneemn.js → persistent-pty-vz6t9qnh.js} +10 -10
- package/dist/chunks/{session-vzcthcp8.js → persistent-pty-vzcthcp8.js} +1 -1
- package/dist/chunks/{session-vzs5sf6e.js → persistent-pty-vzs5sf6e.js} +1 -1
- package/dist/chunks/{session-w3wsvvr9.js → persistent-pty-w3wsvvr9.js} +1 -1
- package/dist/chunks/{session-abpkgy4h.js → persistent-pty-w5xkzqwn.js} +17 -17
- package/dist/chunks/{session-py3kkmfq.js → persistent-pty-w92k2e0p.js} +8 -8
- package/dist/chunks/{session-psazpmmj.js → persistent-pty-wd3x2cqz.js} +2 -2
- package/dist/chunks/{session-wd87259q.js → persistent-pty-wd87259q.js} +1 -1
- package/dist/chunks/{session-jdejrt4w.js → persistent-pty-weyhrafj.js} +13 -13
- package/dist/chunks/{session-asdxbhk9.js → persistent-pty-wfs1cdtc.js} +4 -4
- package/dist/chunks/{session-1jfryw5c.js → persistent-pty-wrmrmykr.js} +9 -9
- package/dist/chunks/{session-ehy067re.js → persistent-pty-wt44zdry.js} +3 -3
- package/dist/chunks/{session-x1ezjp6w.js → persistent-pty-x1ezjp6w.js} +1 -1
- package/dist/chunks/{session-jz1hg8xh.js → persistent-pty-x64cfhhk.js} +43 -43
- package/dist/chunks/{session-4e3z9wr6.js → persistent-pty-xgv5607x.js} +3 -3
- package/dist/chunks/{session-hf5q49q4.js → persistent-pty-xjdbqttv.js} +17 -17
- package/dist/chunks/{session-xkntkrq7.js → persistent-pty-xkntkrq7.js} +2 -2
- package/dist/chunks/{session-03an8pay.js → persistent-pty-xqcdm74r.js} +18 -18
- package/dist/chunks/{session-y1fvbwt7.js → persistent-pty-y1fvbwt7.js} +1 -1
- package/dist/chunks/{session-y71avatq.js → persistent-pty-y71avatq.js} +1 -1
- package/dist/chunks/{session-jhp1ybt8.js → persistent-pty-y87t9fp6.js} +19 -19
- package/dist/chunks/{session-07770t2t.js → persistent-pty-ydgy0jv4.js} +4 -4
- package/dist/chunks/{session-9pzy0dy5.js → persistent-pty-yfydxkxn.js} +22 -22
- package/dist/chunks/{session-jv01nqvq.js → persistent-pty-yjptyezs.js} +5 -5
- package/dist/chunks/{session-s6v4tep7.js → persistent-pty-yk0enmjw.js} +13 -13
- package/dist/chunks/{session-1acjjqhc.js → persistent-pty-yp2x3t23.js} +4 -4
- package/dist/chunks/{session-wss0rg9k.js → persistent-pty-yr1cdtnb.js} +21 -21
- package/dist/chunks/{session-yrhqyw5v.js → persistent-pty-yrhqyw5v.js} +1 -1
- package/dist/chunks/{session-mg9ysj5n.js → persistent-pty-yrtwb1pz.js} +11 -11
- package/dist/chunks/{session-s4enseaf.js → persistent-pty-yrznvahk.js} +2 -2
- package/dist/chunks/{session-k9brhh59.js → persistent-pty-yyasfjgt.js} +15 -15
- package/dist/chunks/{session-bjtzbw4r.js → persistent-pty-z07pqspn.js} +3 -3
- package/dist/chunks/{session-z0bkrqjs.js → persistent-pty-z0bkrqjs.js} +1 -1
- package/dist/chunks/{session-29x78va6.js → persistent-pty-z63w68vq.js} +6 -6
- package/dist/chunks/{session-rf8hweaa.js → persistent-pty-zas2f676.js} +9 -9
- package/dist/chunks/{session-zeh9ct20.js → persistent-pty-zeh9ct20.js} +2 -2
- package/dist/chunks/{session-4kzrk3r9.js → persistent-pty-zp72hf0n.js} +12 -12
- package/dist/chunks/{session-zr2ceqn5.js → persistent-pty-zr2ceqn5.js} +1 -1
- package/dist/chunks/{session-t7n9q6bq.js → persistent-pty-zvt5dnpc.js} +4 -4
- package/dist/chunks/{session-zxq2ej10.js → persistent-pty-zxq2ej10.js} +1 -1
- package/dist/chunks/{session-dzqekp4s.js → persistent-pty-zz6fs82c.js} +2 -2
- 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 +81 -81
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +160 -160
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +142 -142
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +79 -79
- package/dist/database/database.js +66 -66
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +76 -76
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -372
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +93 -93
- 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 +70 -70
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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 +227 -227
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +99 -99
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +100 -100
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +103 -103
- package/dist/git.js +6 -6
- 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 +91 -91
- 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 +363 -363
- package/dist/instruction-discovery.js +81 -81
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +86 -86
- package/dist/job.js +79 -79
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +132 -132
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-mutation.js +104 -104
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +100 -100
- package/dist/mcp/instructions.js +126 -126
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +91 -91
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +100 -100
- package/dist/models-dev.js +103 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +119 -119
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +99 -99
- package/dist/plugin/compaction.js +131 -131
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +220 -220
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +334 -334
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +7 -7
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +122 -122
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/cloudflare-ai-gateway.js +121 -121
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- 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 +93 -93
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +77 -77
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +94 -94
- package/dist/plugin/provider/opencode.js +95 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +78 -78
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +122 -122
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +160 -160
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +139 -139
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +84 -84
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +101 -101
- 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 +94 -94
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +134 -134
- package/dist/session/context.js +150 -150
- package/dist/session/diff.js +88 -88
- 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 +218 -218
- package/dist/session/execution.js +124 -124
- package/dist/session/generate.js +151 -151
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +84 -84
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +77 -77
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +117 -117
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +126 -126
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +229 -229
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +114 -114
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +73 -73
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +210 -210
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +150 -150
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +214 -214
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +140 -140
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +91 -91
- 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 +123 -123
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +116 -116
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +101 -101
- package/dist/tool/plugin/read.js +123 -123
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +110 -110
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- 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 +4 -4
- 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 +92 -92
- 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 +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +80 -80
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +78 -78
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +85 -85
- package/dist/worktree.js +90 -90
- package/package.json +8 -8
- package/dist/chunks/session-0mesazry.js +0 -4
- package/dist/chunks/session-6p6hfw42.js +0 -26
- package/dist/chunks/session-8977zpnw.js +0 -252
- /package/dist/chunks/{session-0qkdqm5v.js → persistent-pty-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{session-0zkw76rk.js → persistent-pty-0zkw76rk.js} +0 -0
- /package/dist/chunks/{session-17cy0kzp.js → persistent-pty-17cy0kzp.js} +0 -0
- /package/dist/chunks/{session-1cnp2v09.js → persistent-pty-1cnp2v09.js} +0 -0
- /package/dist/chunks/{session-1kg9ymc8.js → persistent-pty-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{session-24dcb14g.js → persistent-pty-24dcb14g.js} +0 -0
- /package/dist/chunks/{session-2710q6r3.js → persistent-pty-2710q6r3.js} +0 -0
- /package/dist/chunks/{session-2axfhc9x.js → persistent-pty-2axfhc9x.js} +0 -0
- /package/dist/chunks/{session-2c3vjs8z.js → persistent-pty-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{session-34c7v6d4.js → persistent-pty-34c7v6d4.js} +0 -0
- /package/dist/chunks/{session-359p4xyc.js → persistent-pty-359p4xyc.js} +0 -0
- /package/dist/chunks/{session-3asan66x.js → persistent-pty-3asan66x.js} +0 -0
- /package/dist/chunks/{session-3v8g72cx.js → persistent-pty-3v8g72cx.js} +0 -0
- /package/dist/chunks/{session-3w5fmr99.js → persistent-pty-3w5fmr99.js} +0 -0
- /package/dist/chunks/{session-3wcehsnq.js → persistent-pty-3wcehsnq.js} +0 -0
- /package/dist/chunks/{session-43n2bw4t.js → persistent-pty-43n2bw4t.js} +0 -0
- /package/dist/chunks/{session-4knz6hnm.js → persistent-pty-4knz6hnm.js} +0 -0
- /package/dist/chunks/{session-4vcrnpx2.js → persistent-pty-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{session-4y7fprxs.js → persistent-pty-4y7fprxs.js} +0 -0
- /package/dist/chunks/{session-53557ph1.js → persistent-pty-53557ph1.js} +0 -0
- /package/dist/chunks/{session-550bvhaj.js → persistent-pty-550bvhaj.js} +0 -0
- /package/dist/chunks/{session-6prwharc.js → persistent-pty-6prwharc.js} +0 -0
- /package/dist/chunks/{session-7akdwqpd.js → persistent-pty-7akdwqpd.js} +0 -0
- /package/dist/chunks/{session-7m9af43g.js → persistent-pty-7m9af43g.js} +0 -0
- /package/dist/chunks/{session-822emrt2.js → persistent-pty-822emrt2.js} +0 -0
- /package/dist/chunks/{session-88xbtdfr.js → persistent-pty-88xbtdfr.js} +0 -0
- /package/dist/chunks/{session-8n3pysct.js → persistent-pty-8n3pysct.js} +0 -0
- /package/dist/chunks/{session-8wj87zfr.js → persistent-pty-8wj87zfr.js} +0 -0
- /package/dist/chunks/{session-922hggd3.js → persistent-pty-922hggd3.js} +0 -0
- /package/dist/chunks/{session-9a4afbnw.js → persistent-pty-9a4afbnw.js} +0 -0
- /package/dist/chunks/{session-9rqn6x4v.js → persistent-pty-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{session-a6k6eb26.js → persistent-pty-a6k6eb26.js} +0 -0
- /package/dist/chunks/{session-af5trqkr.js → persistent-pty-af5trqkr.js} +0 -0
- /package/dist/chunks/{session-afrmfg78.js → persistent-pty-afrmfg78.js} +0 -0
- /package/dist/chunks/{session-aqzs7mqg.js → persistent-pty-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{session-atq7p7m5.js → persistent-pty-atq7p7m5.js} +0 -0
- /package/dist/chunks/{session-bkyjaxrp.js → persistent-pty-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{session-bmr6ed5q.js → persistent-pty-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{session-cf4snx6d.js → persistent-pty-cf4snx6d.js} +0 -0
- /package/dist/chunks/{session-cvy3z8tj.js → persistent-pty-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{session-d9fn303g.js → persistent-pty-d9fn303g.js} +0 -0
- /package/dist/chunks/{session-d9jj8t3e.js → persistent-pty-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{session-dajrwvna.js → persistent-pty-dajrwvna.js} +0 -0
- /package/dist/chunks/{session-dap0rakb.js → persistent-pty-dap0rakb.js} +0 -0
- /package/dist/chunks/{session-df08tz66.js → persistent-pty-df08tz66.js} +0 -0
- /package/dist/chunks/{session-dy18nga0.js → persistent-pty-dy18nga0.js} +0 -0
- /package/dist/chunks/{session-e5kj55wp.js → persistent-pty-e5kj55wp.js} +0 -0
- /package/dist/chunks/{session-e73j6tqm.js → persistent-pty-e73j6tqm.js} +0 -0
- /package/dist/chunks/{session-ec1grn59.js → persistent-pty-ec1grn59.js} +0 -0
- /package/dist/chunks/{session-eh3zwz77.js → persistent-pty-eh3zwz77.js} +0 -0
- /package/dist/chunks/{session-emrn6kk6.js → persistent-pty-emrn6kk6.js} +0 -0
- /package/dist/chunks/{session-f0mxakyp.js → persistent-pty-f0mxakyp.js} +0 -0
- /package/dist/chunks/{session-f6n9ztr4.js → persistent-pty-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{session-faypxj3z.js → persistent-pty-faypxj3z.js} +0 -0
- /package/dist/chunks/{session-fd410y7t.js → persistent-pty-fd410y7t.js} +0 -0
- /package/dist/chunks/{session-fxgpk5d8.js → persistent-pty-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{session-g4wezp1m.js → persistent-pty-g4wezp1m.js} +0 -0
- /package/dist/chunks/{session-g86h250q.js → persistent-pty-g86h250q.js} +0 -0
- /package/dist/chunks/{session-gebd4c9n.js → persistent-pty-gebd4c9n.js} +0 -0
- /package/dist/chunks/{session-gftt206x.js → persistent-pty-gftt206x.js} +0 -0
- /package/dist/chunks/{session-hjbc5kem.js → persistent-pty-hjbc5kem.js} +0 -0
- /package/dist/chunks/{session-hk9envan.js → persistent-pty-hk9envan.js} +0 -0
- /package/dist/chunks/{session-j2ntwpah.js → persistent-pty-j2ntwpah.js} +0 -0
- /package/dist/chunks/{session-j5zkgpj8.js → persistent-pty-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{session-jjkms2e6.js → persistent-pty-jjkms2e6.js} +0 -0
- /package/dist/chunks/{session-jr7sbwjy.js → persistent-pty-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{session-jwfs4k6c.js → persistent-pty-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{session-jzg6c2d5.js → persistent-pty-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{session-mp448xyj.js → persistent-pty-mp448xyj.js} +0 -0
- /package/dist/chunks/{session-msx8hqn2.js → persistent-pty-msx8hqn2.js} +0 -0
- /package/dist/chunks/{session-n05xt0ee.js → persistent-pty-n05xt0ee.js} +0 -0
- /package/dist/chunks/{session-n3j8tn72.js → persistent-pty-n3j8tn72.js} +0 -0
- /package/dist/chunks/{session-njntx4h6.js → persistent-pty-njntx4h6.js} +0 -0
- /package/dist/chunks/{session-q3sfg36h.js → persistent-pty-q3sfg36h.js} +0 -0
- /package/dist/chunks/{session-q74kybfr.js → persistent-pty-q74kybfr.js} +0 -0
- /package/dist/chunks/{session-qaymkmh1.js → persistent-pty-qaymkmh1.js} +0 -0
- /package/dist/chunks/{session-qb87gjwd.js → persistent-pty-qb87gjwd.js} +0 -0
- /package/dist/chunks/{session-qfa1cgps.js → persistent-pty-qfa1cgps.js} +0 -0
- /package/dist/chunks/{session-qg3g05ea.js → persistent-pty-qg3g05ea.js} +0 -0
- /package/dist/chunks/{session-qrg20bc0.js → persistent-pty-qrg20bc0.js} +0 -0
- /package/dist/chunks/{session-rcb2kzg1.js → persistent-pty-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{session-sdp7kfr6.js → persistent-pty-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{session-sk3qaz4a.js → persistent-pty-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{session-ssg3fenm.js → persistent-pty-ssg3fenm.js} +0 -0
- /package/dist/chunks/{session-w803qqfp.js → persistent-pty-w803qqfp.js} +0 -0
- /package/dist/chunks/{session-wc3fc9cn.js → persistent-pty-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{session-wer8tq1h.js → persistent-pty-wer8tq1h.js} +0 -0
- /package/dist/chunks/{session-wtztk69x.js → persistent-pty-wtztk69x.js} +0 -0
- /package/dist/chunks/{session-x0ckcb58.js → persistent-pty-x0ckcb58.js} +0 -0
- /package/dist/chunks/{session-x61499pn.js → persistent-pty-x61499pn.js} +0 -0
- /package/dist/chunks/{session-y44na4kk.js → persistent-pty-y44na4kk.js} +0 -0
- /package/dist/chunks/{session-y8cydn3q.js → persistent-pty-y8cydn3q.js} +0 -0
- /package/dist/chunks/{session-y8f7s663.js → persistent-pty-y8f7s663.js} +0 -0
- /package/dist/chunks/{session-ygaqb7jw.js → persistent-pty-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{session-ym463w8f.js → persistent-pty-ym463w8f.js} +0 -0
- /package/dist/chunks/{session-z9919s4g.js → persistent-pty-z9919s4g.js} +0 -0
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
BlockedError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-10cps0de.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/plan.ts
|
|
9
9
|
var exports_plan = {};
|
|
10
10
|
__export(exports_plan, {
|
|
11
11
|
PlanPlugin: () => exports_plan,
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin43
|
|
13
13
|
});
|
|
14
14
|
import { Message, ToolFailure } from "@opencode/ai";
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -29,7 +29,7 @@ You remain in Plan mode until the user switches agents. If the user asks you to
|
|
|
29
29
|
var leave = `<system-reminder>
|
|
30
30
|
You are NO LONGER in Plan mode. The previous Plan restrictions no longer apply. Any Plan mode instructions from earlier in this conversation are no longer active.
|
|
31
31
|
</system-reminder>`;
|
|
32
|
-
var
|
|
32
|
+
var Plugin43 = define({
|
|
33
33
|
id: "opencode.plan",
|
|
34
34
|
effect: Effect.fn(function* (ctx) {
|
|
35
35
|
const global = yield* Global.Service;
|
|
@@ -106,4 +106,4 @@ function lastReminder(messages, enterReminder) {
|
|
|
106
106
|
}, undefined);
|
|
107
107
|
}
|
|
108
108
|
|
|
109
|
-
export {
|
|
109
|
+
export { Plugin43, exports_plan };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID7,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
mergeOverlay2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-001y1jgc.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/aisdk.ts
|
|
12
12
|
var exports_aisdk = {};
|
|
13
13
|
__export(exports_aisdk, {
|
|
14
14
|
AISDK: () => exports_aisdk,
|
|
15
15
|
InitError: () => InitError2,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service49,
|
|
17
17
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
18
|
+
node: () => node51
|
|
19
19
|
});
|
|
20
20
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -150,7 +150,7 @@ function throughMiddleware(store, send, input, init) {
|
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
153
|
-
providerID:
|
|
153
|
+
providerID: ID7,
|
|
154
154
|
cause: Schema.Defect()
|
|
155
155
|
}) {
|
|
156
156
|
}
|
|
@@ -158,9 +158,9 @@ function initError(providerID) {
|
|
|
158
158
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
class
|
|
161
|
+
class Service49 extends Context.Service()("@opencode/AISDK") {
|
|
162
162
|
}
|
|
163
|
-
var locationLayer2 = Layer.effect(
|
|
163
|
+
var locationLayer2 = Layer.effect(Service49, Effect.gen(function* () {
|
|
164
164
|
let sdkHooks = [];
|
|
165
165
|
let languageHooks = [];
|
|
166
166
|
const languages = new Map;
|
|
@@ -198,7 +198,7 @@ var locationLayer2 = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
198
198
|
}
|
|
199
199
|
return event;
|
|
200
200
|
});
|
|
201
|
-
const service =
|
|
201
|
+
const service = Service49.of({
|
|
202
202
|
hook: {
|
|
203
203
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
204
204
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -862,6 +862,6 @@ function providerErrorMessage(error) {
|
|
|
862
862
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
863
863
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
864
864
|
}
|
|
865
|
-
var
|
|
865
|
+
var node51 = makeLocationNode({ service: Service49, layer: locationLayer2, deps: [] });
|
|
866
866
|
|
|
867
|
-
export { InitError2,
|
|
867
|
+
export { InitError2, Service49, locationLayer2, node51, exports_aisdk };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Info13
|
|
6
|
+
} from "./persistent-pty-cavr175a.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/v1/config/agent.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigAgentV1: () =>
|
|
15
|
-
Info: () =>
|
|
12
|
+
var exports_agent3 = {};
|
|
13
|
+
__export(exports_agent3, {
|
|
14
|
+
ConfigAgentV1: () => exports_agent3,
|
|
15
|
+
Info: () => Info12
|
|
16
16
|
});
|
|
17
17
|
import { Schema, SchemaGetter } from "effect";
|
|
18
18
|
var Color = Schema.Union([
|
|
@@ -44,7 +44,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
44
44
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
45
45
|
}),
|
|
46
46
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
47
|
-
permission: Schema.optional(
|
|
47
|
+
permission: Schema.optional(Info13)
|
|
48
48
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
49
49
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
50
50
|
var normalize = (agent) => {
|
|
@@ -66,9 +66,9 @@ var normalize = (agent) => {
|
|
|
66
66
|
const steps = agent.steps ?? agent.maxSteps;
|
|
67
67
|
return { ...agent, options, permission, ...steps !== undefined ? { steps } : {} };
|
|
68
68
|
};
|
|
69
|
-
var
|
|
69
|
+
var Info12 = AgentSchema.pipe(Schema.decodeTo(AgentSchema, {
|
|
70
70
|
decode: SchemaGetter.transform(normalize),
|
|
71
71
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
72
72
|
})).annotate({ identifier: "AgentConfig" });
|
|
73
73
|
|
|
74
|
-
export {
|
|
74
|
+
export { Info12, exports_agent3 };
|
|
@@ -1,36 +1,36 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service83
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-wfs1cdtc.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service41
|
|
6
|
+
} from "./persistent-pty-511zxn61.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Error3
|
|
9
|
+
} from "./persistent-pty-c53acc8g.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service68
|
|
12
|
+
} from "./persistent-pty-zp72hf0n.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./persistent-pty-wrmrmykr.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./persistent-pty-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./persistent-pty-hxtnvy26.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./persistent-pty-tdstcens.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./persistent-pty-ecfe7b91.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./persistent-pty-hfcyh0cs.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/runner/step.ts
|
|
36
36
|
var exports_step = {};
|
|
@@ -54,8 +54,8 @@ var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not r
|
|
|
54
54
|
var make3 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service83;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service41;
|
|
58
|
+
const toolOutput = yield* Service68;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const startSnapshot = yield* snapshots.capture();
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -71,7 +71,7 @@ var make3 = Effect.gen(function* () {
|
|
|
71
71
|
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
72
72
|
const executeTool = (call) => {
|
|
73
73
|
if (input.prepared.request.toolChoice?.type === "none")
|
|
74
|
-
return new
|
|
74
|
+
return new Error3({ message: "Tools are disabled after the maximum agent steps" });
|
|
75
75
|
return input.prepared.executeTool({
|
|
76
76
|
sessionID: input.sessionID,
|
|
77
77
|
agent: input.agent,
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service80
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-54whtqgx.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service58
|
|
7
|
+
} from "./persistent-pty-41tjw832.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service19
|
|
10
|
+
} from "./persistent-pty-tb7f0f66.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
make11
|
|
13
|
+
} from "./persistent-pty-a1gpj94z.js";
|
|
14
14
|
import {
|
|
15
15
|
observe2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-qsdy395h.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/formatter.ts
|
|
22
22
|
var exports_formatter = {};
|
|
@@ -33,8 +33,8 @@ import { Effect } from "effect";
|
|
|
33
33
|
var Plugin30 = define({
|
|
34
34
|
id: "opencode.config.formatter",
|
|
35
35
|
effect: Effect.fn(function* (ctx) {
|
|
36
|
-
const config = yield*
|
|
37
|
-
const formatter = yield*
|
|
36
|
+
const config = yield* Service58;
|
|
37
|
+
const formatter = yield* Service19;
|
|
38
38
|
const fs = yield* FSUtil.Service;
|
|
39
39
|
const global = yield* Global.Service;
|
|
40
40
|
const location = yield* Service80;
|
|
@@ -45,7 +45,7 @@ var Plugin30 = define({
|
|
|
45
45
|
const configured = latest2(loaded.entries, "formatter");
|
|
46
46
|
if (!configured)
|
|
47
47
|
return;
|
|
48
|
-
const builtIns =
|
|
48
|
+
const builtIns = make11({
|
|
49
49
|
directory: location.directory,
|
|
50
50
|
worktree: location.project.directory,
|
|
51
51
|
fs,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service84,
|
|
3
3
|
node88
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./persistent-pty-aqxrhhqj.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
7
|
removed2,
|
|
8
8
|
make20,
|
|
9
9
|
combine2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./persistent-pty-rhjbct0v.js";
|
|
11
11
|
import {
|
|
12
12
|
InstructionEntryTable2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./persistent-pty-z07pqspn.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/session/instruction-entry.ts
|
|
19
19
|
var exports_instruction_entry = {};
|
|
@@ -22,11 +22,11 @@ __export(exports_instruction_entry, {
|
|
|
22
22
|
InstructionEntry: () => exports_instruction_entry,
|
|
23
23
|
Key: () => Key2,
|
|
24
24
|
MaxValueBytes: () => MaxValueBytes2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service31,
|
|
26
26
|
Snapshot: () => Snapshot2,
|
|
27
27
|
ValueTooLargeError: () => ValueTooLargeError2,
|
|
28
28
|
initialize: () => initialize2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node35,
|
|
30
30
|
snapshot: () => snapshot2
|
|
31
31
|
});
|
|
32
32
|
import { and, asc, eq, isNotNull, isNull, ne, or } from "drizzle-orm";
|
|
@@ -56,7 +56,7 @@ var initialize2 = Effect.fn("InstructionEntry.initialize")(function* (db, sessio
|
|
|
56
56
|
}))).run().pipe(Effect.orDie), { discard: true });
|
|
57
57
|
});
|
|
58
58
|
|
|
59
|
-
class
|
|
59
|
+
class Service31 extends Context.Service()("@opencode/InstructionEntry") {
|
|
60
60
|
}
|
|
61
61
|
var renderValue = (value) => typeof value === "string" ? value : JSON.stringify(value, null, 2);
|
|
62
62
|
var renderBlock = (key, value) => [`<context key="${key}">`, renderValue(value), "</context>"].join(`
|
|
@@ -75,7 +75,7 @@ var source = (entry) => make20({
|
|
|
75
75
|
removed: () => `The context under "${entry.key}" no longer applies. Disregard it.`
|
|
76
76
|
}
|
|
77
77
|
});
|
|
78
|
-
var layer = Layer.effect(
|
|
78
|
+
var layer = Layer.effect(Service31, Effect.gen(function* () {
|
|
79
79
|
const { db } = yield* Service84;
|
|
80
80
|
const rows = Effect.fnUntraced(function* (sessionID, includeRemoved) {
|
|
81
81
|
return yield* db.select({
|
|
@@ -108,8 +108,8 @@ var layer = Layer.effect(Service32, Effect.gen(function* () {
|
|
|
108
108
|
const load = Effect.fn("InstructionEntry.load")(function* (sessionID) {
|
|
109
109
|
return combine2((yield* rows(sessionID, true)).map(source));
|
|
110
110
|
});
|
|
111
|
-
return
|
|
111
|
+
return Service31.of({ list, put, remove, load });
|
|
112
112
|
}));
|
|
113
|
-
var
|
|
113
|
+
var node35 = makeLocationNode({ service: Service31, layer, deps: [node88] });
|
|
114
114
|
|
|
115
|
-
export { Key2, Info6, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2,
|
|
115
|
+
export { Key2, Info6, Snapshot2, MaxValueBytes2, ValueTooLargeError2, snapshot2, initialize2, Service31, node35, exports_instruction_entry };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./persistent-pty-cavr175a.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info12
|
|
9
|
+
} from "./persistent-pty-g8jasmdt.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info18
|
|
12
|
+
} from "./persistent-pty-2f0bjgcj.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info14
|
|
15
|
+
} from "./persistent-pty-qa3qhgw8.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Info15
|
|
18
|
+
} from "./persistent-pty-nxhqveyz.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./persistent-pty-2k8khapm.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info11
|
|
24
|
+
} from "./persistent-pty-yjptyezs.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
26
|
+
Info10
|
|
27
|
+
} from "./persistent-pty-kaafkdk2.js";
|
|
28
28
|
import {
|
|
29
29
|
migrate2,
|
|
30
30
|
normalizeAction2,
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
migrateMcp2,
|
|
34
34
|
migrateProvider2,
|
|
35
35
|
providerID2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./persistent-pty-0hp4c3hn.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/config/normalize.ts
|
|
42
42
|
var exports_normalize = {};
|
|
@@ -84,10 +84,10 @@ function normalize2(input) {
|
|
|
84
84
|
const encoded = {};
|
|
85
85
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
86
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
87
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info10.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
88
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
89
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ? decodeValue(
|
|
90
|
+
const legacyMedia = own(input, "attachment") ? decodeValue(Info18, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
91
91
|
if (legacyMedia !== undefined) {
|
|
92
92
|
const migrated = migrate2({ attachment: legacyMedia }).media;
|
|
93
93
|
if (migrated !== undefined)
|
|
@@ -104,7 +104,7 @@ function normalize2(input) {
|
|
|
104
104
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
105
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
106
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
107
|
+
const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
|
|
108
108
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
109
|
const migratedCommands = mapValues(legacyCommands, (value) => {
|
|
110
110
|
const migrated = commands2({ value })?.value;
|
|
@@ -112,7 +112,7 @@ function normalize2(input) {
|
|
|
112
112
|
});
|
|
113
113
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
114
114
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
115
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
115
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info12, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
116
116
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
117
117
|
const migratedSmallModel = legacySmallModel ? migrate2({ small_model: legacySmallModel }).agents?.title?.model : undefined;
|
|
118
118
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -126,7 +126,7 @@ function normalize2(input) {
|
|
|
126
126
|
model: migratedSmallModel,
|
|
127
127
|
...legacyAgents.title
|
|
128
128
|
};
|
|
129
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
129
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info12, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
130
130
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
131
131
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
132
132
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
225
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const server = decodeValue(
|
|
228
|
+
const server = decodeValue(Info15, value, path, diagnostics);
|
|
229
229
|
if (server !== undefined)
|
|
230
230
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
231
|
});
|
|
@@ -421,7 +421,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
421
421
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
422
422
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
423
423
|
return [];
|
|
424
|
-
const provider = decodeValue(
|
|
424
|
+
const provider = decodeValue(Info11, raw, path, diagnostics);
|
|
425
425
|
if (provider === undefined)
|
|
426
426
|
return [];
|
|
427
427
|
const destination = providerID2(name);
|
|
@@ -1,62 +1,62 @@
|
|
|
1
1
|
import {
|
|
2
2
|
NonNegativeInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./persistent-pty-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
latest2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service58
|
|
7
|
+
} from "./persistent-pty-41tjw832.js";
|
|
8
8
|
import {
|
|
9
9
|
typeFollowing2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./persistent-pty-2a5m3afh.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service78
|
|
13
|
+
} from "./persistent-pty-n0ecsdh3.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service65
|
|
16
|
+
} from "./persistent-pty-qw6ew0vv.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
18
|
+
Service70
|
|
19
|
+
} from "./persistent-pty-10cps0de.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
Service16,
|
|
22
22
|
resolvePath2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./persistent-pty-bex1ttf8.js";
|
|
24
24
|
import {
|
|
25
25
|
output2,
|
|
26
26
|
notice2,
|
|
27
27
|
metadata2,
|
|
28
28
|
notification2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./persistent-pty-vzs5sf6e.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
Service67,
|
|
32
32
|
name15
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./persistent-pty-y87t9fp6.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
} from "./
|
|
35
|
+
NotFoundError7,
|
|
36
|
+
Service50
|
|
37
|
+
} from "./persistent-pty-x64cfhhk.js";
|
|
38
38
|
import {
|
|
39
39
|
Service28
|
|
40
|
-
} from "./
|
|
40
|
+
} from "./persistent-pty-dekmczra.js";
|
|
41
41
|
import {
|
|
42
42
|
scan2
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./persistent-pty-c7vf4kh0.js";
|
|
44
44
|
import {
|
|
45
45
|
__export
|
|
46
|
-
} from "./
|
|
46
|
+
} from "./persistent-pty-9rqn6x4v.js";
|
|
47
47
|
|
|
48
48
|
// src/tool/plugin/shell.ts
|
|
49
49
|
var exports_shell = {};
|
|
50
50
|
__export(exports_shell, {
|
|
51
51
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
52
|
-
Input: () =>
|
|
53
|
-
Plugin: () =>
|
|
52
|
+
Input: () => Input2,
|
|
53
|
+
Plugin: () => Plugin3,
|
|
54
54
|
ShellTool: () => exports_shell,
|
|
55
|
-
name: () =>
|
|
55
|
+
name: () => name2
|
|
56
56
|
});
|
|
57
57
|
import { ToolFailure } from "@opencode/ai";
|
|
58
58
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
59
|
-
var
|
|
59
|
+
var name2 = "shell";
|
|
60
60
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
61
61
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
62
62
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -70,7 +70,7 @@ var description = (shell) => [
|
|
|
70
70
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
71
71
|
"Background commands return immediately, and you will be notified when they complete."
|
|
72
72
|
].join(" ");
|
|
73
|
-
var
|
|
73
|
+
var Input2 = Schema.Struct({
|
|
74
74
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
75
75
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
76
76
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -116,19 +116,19 @@ Output is streaming to: ${file}`,
|
|
|
116
116
|
truncated: false,
|
|
117
117
|
status: "running"
|
|
118
118
|
});
|
|
119
|
-
var
|
|
119
|
+
var Plugin3 = {
|
|
120
120
|
id: "opencode.tool.shell",
|
|
121
121
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
122
122
|
const sessions = yield* Service28;
|
|
123
|
-
const jobs = yield*
|
|
123
|
+
const jobs = yield* Service65;
|
|
124
124
|
const scope = yield* Scope.Scope;
|
|
125
|
-
const environment = yield*
|
|
126
|
-
const access = yield*
|
|
127
|
-
const shell = yield*
|
|
128
|
-
const shellSelect = yield*
|
|
125
|
+
const environment = yield* Service78;
|
|
126
|
+
const access = yield* Service16;
|
|
127
|
+
const shell = yield* Service50;
|
|
128
|
+
const shellSelect = yield* Service67;
|
|
129
129
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
130
|
-
const permission = yield*
|
|
131
|
-
const config = yield*
|
|
130
|
+
const permission = yield* Service70;
|
|
131
|
+
const config = yield* Service58;
|
|
132
132
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
133
133
|
const source = {
|
|
134
134
|
type: "tool",
|
|
@@ -147,7 +147,7 @@ var Plugin12 = {
|
|
|
147
147
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
148
148
|
if (parsed.commands.length > 0)
|
|
149
149
|
yield* permission.assert({
|
|
150
|
-
action:
|
|
150
|
+
action: name2,
|
|
151
151
|
resources: parsed.commands.map((command) => command.resource),
|
|
152
152
|
save: parsed.commands.map((command) => command.save),
|
|
153
153
|
sessionID: context.sessionID,
|
|
@@ -184,10 +184,10 @@ var Plugin12 = {
|
|
|
184
184
|
yield* jobs.completeBackground(info.notificationID);
|
|
185
185
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
186
186
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
187
|
-
name:
|
|
187
|
+
name: name2,
|
|
188
188
|
options: { codemode: false },
|
|
189
189
|
description: description(),
|
|
190
|
-
input:
|
|
190
|
+
input: Input2,
|
|
191
191
|
output: Output,
|
|
192
192
|
execute: (input, context) => Effect.gen(function* () {
|
|
193
193
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -206,7 +206,7 @@ var Plugin12 = {
|
|
|
206
206
|
const run = Effect.gen(function* () {
|
|
207
207
|
const result = yield* shell.result(info);
|
|
208
208
|
if (!result.capture)
|
|
209
|
-
return yield* new
|
|
209
|
+
return yield* new NotFoundError7({ id: info.id });
|
|
210
210
|
const output = output2(result);
|
|
211
211
|
return {
|
|
212
212
|
...output,
|
|
@@ -220,7 +220,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
220
220
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
221
221
|
const job = yield* jobs.start({
|
|
222
222
|
id: info.id,
|
|
223
|
-
type:
|
|
223
|
+
type: name2,
|
|
224
224
|
title: info.command,
|
|
225
225
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
226
226
|
recovery: {
|
|
@@ -250,7 +250,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
250
250
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
251
251
|
})).pipe(Effect.orDie);
|
|
252
252
|
const hook = (event) => Effect.gen(function* () {
|
|
253
|
-
const tool = event.tools[
|
|
253
|
+
const tool = event.tools[name2];
|
|
254
254
|
if (!tool)
|
|
255
255
|
return;
|
|
256
256
|
tool.description = description(name15(yield* compatibleShell));
|
|
@@ -261,4 +261,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
261
261
|
})
|
|
262
262
|
};
|
|
263
263
|
|
|
264
|
-
export {
|
|
264
|
+
export { name2, DEFAULT_TIMEOUT_MS2, Input2, Plugin3, exports_shell };
|