@opencode/core 2.0.32 → 2.1.0
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 +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +5 -5
- package/dist/bus.js +71 -71
- package/dist/chunks/{instance-enbw0gbw.js → shell-027ww35v.js} +48 -48
- package/dist/chunks/{instance-52w29975.js → shell-02vamycj.js} +5 -5
- package/dist/chunks/{instance-hy029169.js → shell-03p3wnad.js} +46 -46
- package/dist/chunks/{instance-m8qsgghe.js → shell-04s17g1v.js} +50 -50
- package/dist/chunks/{instance-vz3ca5nz.js → shell-08sd8799.js} +1 -1
- package/dist/chunks/{instance-b4gsa26k.js → shell-0dwthkwv.js} +17 -14
- package/dist/chunks/{instance-wmhjcbrh.js → shell-0jkbja5p.js} +21 -21
- package/dist/chunks/{instance-6njkejes.js → shell-0kt21gsk.js} +24 -24
- package/dist/chunks/{instance-q3krtzxs.js → shell-0rsgqgrk.js} +27 -27
- package/dist/chunks/{instance-0vbcp93d.js → shell-0vbcp93d.js} +2 -2
- package/dist/chunks/{instance-yx0rmv9r.js → shell-0w62qmxp.js} +6 -6
- package/dist/chunks/{instance-wjsh9s1s.js → shell-0x5xc4da.js} +32 -32
- package/dist/chunks/{instance-tx5jepxr.js → shell-0x7kry74.js} +83 -70
- package/dist/chunks/{instance-n86j2s3s.js → shell-0ytk1mmd.js} +11 -11
- package/dist/chunks/{instance-3cy08nae.js → shell-0ztvstyz.js} +7 -7
- package/dist/chunks/{instance-zy2kjt51.js → shell-16fye9k3.js} +43 -43
- package/dist/chunks/{instance-karq4mt3.js → shell-17drjap0.js} +32 -32
- package/dist/chunks/{instance-yp2x3t23.js → shell-1acjjqhc.js} +4 -4
- package/dist/chunks/{instance-wfmvav8k.js → shell-1cbagaqy.js} +8 -8
- package/dist/chunks/shell-1ep4rre3.js +42 -0
- package/dist/chunks/{instance-wjr9rjd7.js → shell-1ffvrpkg.js} +9 -9
- package/dist/chunks/{instance-kjzbdttd.js → shell-1j769d1c.js} +6 -6
- package/dist/chunks/{instance-0f5g2b67.js → shell-1ncsq4gc.js} +22 -22
- package/dist/chunks/{instance-m8p0bf8a.js → shell-1pd15nec.js} +4 -4
- package/dist/chunks/{instance-t5d9whg0.js → shell-2exgm5zs.js} +44 -44
- package/dist/chunks/{instance-eb2yw134.js → shell-2fxx0rz9.js} +17 -17
- package/dist/chunks/{instance-e5wkangg.js → shell-2g93jbb8.js} +32 -34
- package/dist/chunks/{instance-2k8khapm.js → shell-2k8khapm.js} +1 -1
- package/dist/chunks/{instance-ydjrys25.js → shell-2ndqr24s.js} +6 -6
- package/dist/chunks/{instance-j3ftvw7y.js → shell-2qhkdr5r.js} +6 -6
- package/dist/chunks/{instance-99kqc9z2.js → shell-2sq5abjd.js} +28 -29
- package/dist/chunks/{instance-4hxt5e23.js → shell-37kervd6.js} +21 -24
- package/dist/chunks/{instance-k74v33jx.js → shell-387dpq4s.js} +20 -20
- package/dist/chunks/{instance-p6p9qpe8.js → shell-3atk1qyf.js} +25 -25
- package/dist/chunks/{instance-3hepkmqq.js → shell-3hepkmqq.js} +1 -1
- package/dist/chunks/{instance-3hwn7j4h.js → shell-3hwn7j4h.js} +2 -2
- package/dist/chunks/{instance-3smtnn6g.js → shell-3smtnn6g.js} +1 -1
- package/dist/chunks/{instance-3tvqynh2.js → shell-3tvqynh2.js} +1 -1
- package/dist/chunks/{instance-gqtdsdt7.js → shell-3y377wv9.js} +4 -4
- package/dist/chunks/{instance-r730fk4b.js → shell-3ys3ran9.js} +19 -19
- package/dist/chunks/{instance-wndqf9wb.js → shell-3zqqw7j0.js} +8 -8
- package/dist/chunks/{instance-3zsf4n22.js → shell-3zsf4n22.js} +1 -1
- package/dist/chunks/{instance-q97qe3v1.js → shell-41gge36f.js} +24 -25
- package/dist/chunks/{instance-9mg0ha5m.js → shell-41wjcvt0.js} +3 -3
- package/dist/chunks/{instance-x20m8gm2.js → shell-432psgyy.js} +25 -25
- package/dist/chunks/{instance-v742aeg8.js → shell-4b0g6gv7.js} +30 -25
- package/dist/chunks/{instance-tdjzh3mn.js → shell-4d10bng8.js} +15 -15
- package/dist/chunks/{instance-dy6575tn.js → shell-4nejsby7.js} +16 -16
- package/dist/chunks/{instance-6vzwhms5.js → shell-50d2yybn.js} +33 -33
- package/dist/chunks/{instance-ba4zj86y.js → shell-51ajtkpf.js} +27 -27
- package/dist/chunks/{instance-54ma36ye.js → shell-54ma36ye.js} +1 -1
- package/dist/chunks/{instance-gvm6138t.js → shell-5b64kxs9.js} +1 -1
- package/dist/chunks/{instance-6btvgc07.js → shell-5jjsdkbk.js} +51 -34
- package/dist/chunks/{instance-5m9w47nd.js → shell-5m9w47nd.js} +1 -1
- package/dist/chunks/{instance-8dc76097.js → shell-5tt655ph.js} +26 -26
- package/dist/chunks/{instance-8j7djd22.js → shell-5v1f1gfq.js} +22 -22
- package/dist/chunks/{instance-2ysm8pgm.js → shell-5xghjtfa.js} +28 -28
- package/dist/chunks/{instance-94t3kz80.js → shell-603vct5e.js} +25 -25
- package/dist/chunks/{instance-9k44apjz.js → shell-6559rxr6.js} +11 -4
- package/dist/chunks/{instance-ypc4xgvm.js → shell-6775gw9z.js} +26 -26
- package/dist/chunks/{instance-dqxsqydv.js → shell-6827pfxn.js} +2 -2
- package/dist/chunks/{instance-dw46b8bx.js → shell-6c27xjax.js} +20 -20
- package/dist/chunks/{instance-fxp0jy99.js → shell-6eey2wfv.js} +33 -33
- package/dist/chunks/{instance-egzk2yjk.js → shell-6f33sypz.js} +85 -88
- package/dist/chunks/{instance-ryr25ayn.js → shell-6hh8tjw2.js} +4 -4
- package/dist/chunks/{instance-snpj5a6q.js → shell-6hj3adh9.js} +15 -15
- package/dist/chunks/{instance-jez41mts.js → shell-6p4g3g3k.js} +18 -18
- package/dist/chunks/{instance-m82ef0kx.js → shell-6rx6hnnq.js} +5 -5
- package/dist/chunks/{instance-k3e33c9f.js → shell-6srycd3a.js} +13 -13
- package/dist/chunks/{instance-6xb47vfp.js → shell-6xb47vfp.js} +1 -1
- package/dist/chunks/{instance-wh6zw745.js → shell-6yz0wx8n.js} +5 -5
- package/dist/chunks/{instance-5nrew705.js → shell-70y17xeh.js} +5 -5
- package/dist/chunks/{instance-nnq6jpzr.js → shell-75w6s6ma.js} +6 -6
- package/dist/chunks/{instance-775gj3j1.js → shell-775gj3j1.js} +2 -2
- package/dist/chunks/{instance-71svxegq.js → shell-79zqvytx.js} +63 -66
- package/dist/chunks/{instance-7bmhse3q.js → shell-7bmhse3q.js} +1 -1
- package/dist/chunks/{instance-91qna3x0.js → shell-7v6vae4w.js} +39 -21
- package/dist/chunks/{instance-g95hkc6v.js → shell-7vj6fy4k.js} +24 -24
- package/dist/chunks/{instance-9y6nqyzn.js → shell-7wdpyrwx.js} +1 -1
- package/dist/chunks/{instance-9nypp77e.js → shell-8471hwdy.js} +9 -9
- package/dist/chunks/{instance-84txncab.js → shell-84txncab.js} +1 -1
- package/dist/chunks/{instance-h82zpv65.js → shell-89e5dy4j.js} +9 -9
- package/dist/chunks/{instance-89znhe33.js → shell-89znhe33.js} +1 -1
- package/dist/chunks/{instance-agt7xfc2.js → shell-8bee7htz.js} +24 -24
- package/dist/chunks/shell-8dfnjpdr.js +112 -0
- package/dist/chunks/{instance-8m6m0r52.js → shell-8m6m0r52.js} +1 -1
- package/dist/chunks/shell-8mywswrd.js +86 -0
- package/dist/chunks/{instance-qzfs27nc.js → shell-8rnv749x.js} +32 -25
- package/dist/chunks/{instance-w92k2e0p.js → shell-8sze2n9a.js} +4 -4
- package/dist/chunks/{instance-76an7qnj.js → shell-8z3cvr3k.js} +18 -18
- package/dist/chunks/{instance-127b9nq3.js → shell-9bh5q6pj.js} +3 -3
- package/dist/chunks/{instance-gxvgt8t9.js → shell-9d6xe95g.js} +3 -3
- package/dist/chunks/{instance-5408hnnb.js → shell-9hm03b9h.js} +25 -25
- package/dist/chunks/{instance-4q4vnebt.js → shell-9jf0f2cs.js} +7 -7
- package/dist/chunks/shell-9jvjhjkm.js +130 -0
- package/dist/chunks/shell-9t7nqqf0.js +26 -0
- package/dist/chunks/{instance-9jgxs1bn.js → shell-9vbreq9z.js} +9 -9
- package/dist/chunks/{instance-nbm6td7p.js → shell-9vyc8vj1.js} +4 -4
- package/dist/chunks/{instance-5saajy9t.js → shell-9w64rzck.js} +13 -13
- package/dist/chunks/{instance-14q6b86s.js → shell-9zv65pgs.js} +11 -11
- package/dist/chunks/{instance-xnn7a7ef.js → shell-a36y64am.js} +14 -14
- package/dist/chunks/{instance-sz70a389.js → shell-a98yv52t.js} +20 -13
- package/dist/chunks/{instance-ckerv63d.js → shell-adehtbxa.js} +4 -4
- package/dist/chunks/{instance-8dp3pqp7.js → shell-ae0va0j1.js} +5 -5
- package/dist/chunks/{instance-jxa15a22.js → shell-af8g5zb6.js} +21 -21
- package/dist/chunks/{instance-9s4s5645.js → shell-ahe504bx.js} +20 -20
- package/dist/chunks/{instance-kjpxk16h.js → shell-ajpgmfw4.js} +16 -16
- package/dist/chunks/{instance-c4f3nvjn.js → shell-asecphd2.js} +13 -13
- package/dist/chunks/{instance-zr0n9bt7.js → shell-awefsnnk.js} +4 -4
- package/dist/chunks/{instance-mtpeagzc.js → shell-axe3mf62.js} +3 -3
- package/dist/chunks/{instance-47jkzegy.js → shell-b674v2dg.js} +5 -5
- package/dist/chunks/{instance-c9wbyant.js → shell-baqyxak2.js} +9 -9
- package/dist/chunks/{instance-jhx7q1qc.js → shell-bj7p7j85.js} +17 -17
- package/dist/chunks/{instance-9rd468vk.js → shell-c1bdvjkd.js} +30 -30
- package/dist/chunks/{instance-c1fqxshp.js → shell-c1fqxshp.js} +3 -3
- package/dist/chunks/{instance-xn7k1yjr.js → shell-c7fvvtsq.js} +26 -26
- package/dist/chunks/{instance-bcrfy1e8.js → shell-ccbzs5ke.js} +6 -6
- package/dist/chunks/{instance-s9w6dcwz.js → shell-cf6pg1xw.js} +5 -5
- package/dist/chunks/{instance-g6q9qykm.js → shell-cwa6csj7.js} +9 -9
- package/dist/chunks/{instance-xjvxx86v.js → shell-dajdhw2j.js} +6 -6
- package/dist/chunks/{instance-ye119z04.js → shell-dcspakzd.js} +51 -51
- package/dist/chunks/{instance-y56ehv6b.js → shell-depwzj9d.js} +9 -9
- package/dist/chunks/{instance-nfnvba5x.js → shell-dpkssma6.js} +12 -12
- package/dist/chunks/shell-dxj72tfx.js +18 -0
- package/dist/chunks/{instance-m7f5ga5x.js → shell-e3s3zy1r.js} +5 -5
- package/dist/chunks/{instance-j99dhamb.js → shell-e738kmdw.js} +6 -6
- package/dist/chunks/{instance-nsdb0f42.js → shell-eeggec7k.js} +11 -11
- package/dist/chunks/{instance-eej6y6fw.js → shell-eej6y6fw.js} +2 -2
- package/dist/chunks/{instance-ef5x83kb.js → shell-ef5x83kb.js} +1 -1
- package/dist/chunks/{instance-a2gdg3s5.js → shell-ehbg6y37.js} +18 -18
- package/dist/chunks/{instance-f4mxpp6t.js → shell-envzrdm3.js} +49 -49
- package/dist/chunks/{instance-pbh24ypk.js → shell-ey7dv0w4.js} +19 -19
- package/dist/chunks/shell-eyv86r6e.js +257 -0
- package/dist/chunks/{instance-h8wg6m6b.js → shell-f2mw6jyj.js} +11 -11
- package/dist/chunks/{instance-84caq58q.js → shell-f5852yed.js} +11 -11
- package/dist/chunks/{instance-6tnrngrh.js → shell-f6aytc7n.js} +10 -10
- package/dist/chunks/{instance-4p9mf0mj.js → shell-fbxzvvsv.js} +11 -11
- package/dist/chunks/shell-fcy631f0.js +62 -0
- package/dist/chunks/{instance-7q6nqg1g.js → shell-ffxxyzcb.js} +9 -9
- package/dist/chunks/{instance-0aedf7nq.js → shell-fmax1t4t.js} +21 -21
- package/dist/chunks/{instance-yw8t9dwe.js → shell-fqtvmpfq.js} +8 -8
- package/dist/chunks/{instance-h14remhy.js → shell-fvgqktbw.js} +23 -23
- package/dist/chunks/{instance-fww2ha2b.js → shell-fww2ha2b.js} +2 -2
- package/dist/chunks/{instance-1w2wqhfv.js → shell-fxaymqdw.js} +4 -4
- package/dist/chunks/{instance-d4n7pc7j.js → shell-fypxcyz2.js} +10 -10
- package/dist/chunks/{instance-v5qm4ejs.js → shell-g4qztyvf.js} +35 -35
- package/dist/chunks/{instance-74syfsk2.js → shell-g6bqk7eb.js} +11 -11
- package/dist/chunks/{instance-gd4qta3r.js → shell-gd4qta3r.js} +1 -1
- package/dist/chunks/{instance-r1d9yajz.js → shell-gmbs0yfc.js} +37 -37
- package/dist/chunks/{instance-8x4cb7ds.js → shell-gt7zzye3.js} +19 -19
- package/dist/chunks/{instance-2wamsapc.js → shell-h055mtc6.js} +27 -19
- package/dist/chunks/{instance-xt4njr3s.js → shell-h0bzvw2w.js} +17 -13
- package/dist/chunks/{instance-h6vf3j39.js → shell-h6vf3j39.js} +1 -1
- package/dist/chunks/{instance-sxzvkvgj.js → shell-h896pcm5.js} +6 -6
- package/dist/chunks/{instance-6h1sgzxr.js → shell-hdgwvq1e.js} +26 -26
- package/dist/chunks/{instance-7kf7gnm7.js → shell-hdn28k8z.js} +13 -13
- package/dist/chunks/{instance-hgz4x7wa.js → shell-hgz4x7wa.js} +1 -1
- package/dist/chunks/{instance-cqpz2z25.js → shell-hj7zb2g9.js} +10 -10
- package/dist/chunks/{instance-ec8g0tcf.js → shell-htx26fav.js} +29 -29
- package/dist/chunks/{instance-pwjs67dv.js → shell-hvp5ag27.js} +6 -6
- package/dist/chunks/{instance-hz56gd46.js → shell-hzdxw2qq.js} +15 -15
- package/dist/chunks/{instance-edhgwctf.js → shell-j148atrz.js} +5 -5
- package/dist/chunks/{instance-n240m50y.js → shell-j9abz2tj.js} +19 -19
- package/dist/chunks/{instance-2j1fd8ns.js → shell-jaqs594m.js} +16 -16
- package/dist/chunks/{instance-gea60fq5.js → shell-jfh8dh4w.js} +26 -26
- package/dist/chunks/{instance-n886b0hh.js → shell-jgp4qpwz.js} +15 -15
- package/dist/chunks/{instance-7c25kt5f.js → shell-jmb2cr8q.js} +14 -14
- package/dist/chunks/{instance-bwe2bky2.js → shell-jmxxwznn.js} +4 -4
- package/dist/chunks/{instance-be7qvw84.js → shell-jn0tk1mz.js} +8 -8
- package/dist/chunks/{instance-spnt6386.js → shell-jp35yjqz.js} +32 -32
- package/dist/chunks/{instance-9ar4pza7.js → shell-jtjk5p9j.js} +11 -11
- package/dist/chunks/{instance-z8epvsg6.js → shell-k0ev5b6x.js} +2 -2
- package/dist/chunks/{instance-s1kmd63q.js → shell-k51kf5tx.js} +19 -19
- package/dist/chunks/{instance-4y7j986s.js → shell-k7myrtme.js} +9 -9
- package/dist/chunks/{instance-ft79q47f.js → shell-kbxy4n3g.js} +2 -2
- package/dist/chunks/{instance-zdhmwdxf.js → shell-kcrn19zp.js} +13 -13
- package/dist/chunks/{instance-qxbyfn4m.js → shell-kcz1zv3y.js} +20 -20
- package/dist/chunks/{instance-c01nkdt4.js → shell-kfmczrqx.js} +16 -16
- package/dist/chunks/{instance-vqtt4fqa.js → shell-kg4680zm.js} +13 -13
- package/dist/chunks/{instance-g2wa2e5b.js → shell-kgcb372b.js} +11 -11
- package/dist/chunks/{instance-kwb1v3vj.js → shell-kwb1v3vj.js} +1 -1
- package/dist/chunks/{instance-azaahc9x.js → shell-kxnmaf3s.js} +18 -18
- package/dist/chunks/{instance-00hj6bjn.js → shell-kzy2940e.js} +33 -33
- package/dist/chunks/{instance-tfzngn12.js → shell-m0r31qfn.js} +4 -4
- package/dist/chunks/{instance-m9w0rfyh.js → shell-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instance-9b8s04gb.js → shell-maneqgxr.js} +34 -31
- package/dist/chunks/{instance-maspj1v3.js → shell-maspj1v3.js} +1 -1
- package/dist/chunks/{instance-s1xtywav.js → shell-mhpexy54.js} +17 -17
- package/dist/chunks/{instance-sz15zhhw.js → shell-mqqhst8y.js} +4 -4
- package/dist/chunks/{instance-s3v8c45g.js → shell-mwpm31k7.js} +49 -48
- package/dist/chunks/{instance-vcnzat6y.js → shell-n2qdned2.js} +16 -16
- package/dist/chunks/{instance-j4d2njm3.js → shell-nb27xjmq.js} +14 -14
- package/dist/chunks/{instance-h7s7r6s9.js → shell-nz56sr1f.js} +18 -19
- package/dist/chunks/{instance-1e477vzc.js → shell-p20se939.js} +8 -8
- package/dist/chunks/{instance-jxa04fe5.js → shell-pdf17x7p.js} +14 -14
- package/dist/chunks/{instance-wdgmgtm0.js → shell-pg6gmj9m.js} +17 -14
- package/dist/chunks/{instance-y7nndgyc.js → shell-phz50fbd.js} +9 -9
- package/dist/chunks/{instance-pjvnvgmy.js → shell-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instance-pknna89w.js → shell-pknna89w.js} +1 -1
- package/dist/chunks/{instance-fjz5gha3.js → shell-pnzpyq4k.js} +124 -102
- package/dist/chunks/{instance-y0r048qb.js → shell-pw4zabmd.js} +170 -169
- package/dist/chunks/{instance-3mksxvab.js → shell-q41jq0qr.js} +11 -11
- package/dist/chunks/{instance-g6vxq4t7.js → shell-qajney5x.js} +12 -12
- package/dist/chunks/{instance-kp7zea7r.js → shell-qhat5nnc.js} +32 -32
- package/dist/chunks/{instance-qnc92qwc.js → shell-qnc92qwc.js} +1 -1
- package/dist/chunks/{instance-qsdy395h.js → shell-qsdy395h.js} +1 -1
- package/dist/chunks/{instance-a2pz59r9.js → shell-qv079c4h.js} +37 -37
- package/dist/chunks/{instance-sxcaecc0.js → shell-r2z489rp.js} +3 -3
- package/dist/chunks/{instance-50a72dh7.js → shell-r5ndtmnm.js} +1 -1
- package/dist/chunks/{instance-rdw6cm16.js → shell-rdw6cm16.js} +1 -1
- package/dist/chunks/{instance-rert0e01.js → shell-rert0e01.js} +2 -2
- package/dist/chunks/{instance-rj3eygr5.js → shell-rj3eygr5.js} +2 -2
- package/dist/chunks/{instance-vd5a229f.js → shell-rnfredjj.js} +24 -22
- package/dist/chunks/{instance-8mprknbj.js → shell-rw4jj2rk.js} +32 -31
- package/dist/chunks/{instance-ksbyxnj1.js → shell-rxxx7r4k.js} +28 -25
- package/dist/chunks/{instance-1kn978n9.js → shell-s389npg2.js} +96 -162
- package/dist/chunks/{instance-02nrjc1r.js → shell-s8d7rejh.js} +8 -8
- package/dist/chunks/{instance-sa8ekw3f.js → shell-sa8ekw3f.js} +2 -2
- package/dist/chunks/{instance-a7p9m6vg.js → shell-sh0qrkbh.js} +19 -19
- package/dist/chunks/{instance-asvc535p.js → shell-sjtzq83v.js} +11 -11
- package/dist/chunks/{instance-bcmzxatv.js → shell-srmwk7dt.js} +5 -5
- package/dist/chunks/{instance-syv4x271.js → shell-syv4x271.js} +1 -1
- package/dist/chunks/{instance-tazgh4e4.js → shell-tazgh4e4.js} +1 -1
- package/dist/chunks/{instance-vfjhn2wd.js → shell-tb1cafh6.js} +4 -4
- package/dist/chunks/{instance-tdstcens.js → shell-tdstcens.js} +1 -1
- package/dist/chunks/{instance-tm0kqsz3.js → shell-tm0kqsz3.js} +1 -1
- package/dist/chunks/{instance-1ajx6rf5.js → shell-tpw6cwsb.js} +8 -8
- package/dist/chunks/{instance-s4bj6v34.js → shell-tqr4vm00.js} +11 -11
- package/dist/chunks/{instance-c0jw7tng.js → shell-trg827xp.js} +9 -7
- package/dist/chunks/shell-tt8gc4fv.js +59 -0
- package/dist/chunks/{instance-v0es1rhs.js → shell-tx0gtb9m.js} +11 -11
- package/dist/chunks/{instance-tyytaxap.js → shell-tyytaxap.js} +1 -1
- package/dist/chunks/{instance-n7jnsjte.js → shell-v1bmpj3w.js} +27 -27
- package/dist/chunks/{instance-prvmgnqy.js → shell-v6abvp0h.js} +5 -5
- package/dist/chunks/{instance-ngdgjn5a.js → shell-v715hp7c.js} +15 -15
- package/dist/chunks/{instance-v7p4zvkq.js → shell-v7p4zvkq.js} +2 -2
- package/dist/chunks/{instance-0x6zefqk.js → shell-vdaaq34n.js} +4 -4
- package/dist/chunks/{instance-echrm7fx.js → shell-vdwzhxqd.js} +7 -7
- package/dist/chunks/{instance-veqvce7d.js → shell-veqvce7d.js} +1 -1
- package/dist/chunks/{instance-8q7cp091.js → shell-vk2t4k53.js} +12 -12
- package/dist/chunks/{instance-npg16c9q.js → shell-vm9wfeep.js} +46 -28
- package/dist/chunks/{instance-79aanr6n.js → shell-vywzj4qb.js} +12 -12
- package/dist/chunks/{instance-vzs5sf6e.js → shell-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instance-v4640cdb.js → shell-w2swb6sv.js} +326 -322
- package/dist/chunks/{instance-w3wsvvr9.js → shell-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instance-5zbw8dq9.js → shell-w921m42b.js} +24 -24
- package/dist/chunks/{instance-wd87259q.js → shell-wd87259q.js} +1 -1
- package/dist/chunks/{instance-rq74kqrf.js → shell-wfztk8xg.js} +8 -8
- package/dist/chunks/{instance-a450qmf9.js → shell-wjjv5c56.js} +9 -9
- package/dist/chunks/{instance-mn1n5f3s.js → shell-wmxpb99x.js} +3 -3
- package/dist/chunks/{instance-hzzj1pg2.js → shell-wqfheh0m.js} +20 -20
- package/dist/chunks/{instance-bg9pb3hs.js → shell-wrmbd4ct.js} +8 -8
- package/dist/chunks/{instance-f60ec8ph.js → shell-wx13yw6b.js} +9 -9
- package/dist/chunks/{instance-ypne3kk7.js → shell-wyepen03.js} +16 -16
- package/dist/chunks/{instance-hrtybn11.js → shell-x3p3s57s.js} +1 -1
- package/dist/chunks/{instance-xzyvagpz.js → shell-x95qaydz.js} +26 -26
- package/dist/chunks/{instance-pbjcynf2.js → shell-xayeaa42.js} +11 -11
- package/dist/chunks/{instance-57b9ws8p.js → shell-xfkkasph.js} +7 -7
- package/dist/chunks/{instance-saq4k3ef.js → shell-xg9m98z8.js} +34 -34
- package/dist/chunks/{instance-rr384mgp.js → shell-xkmpyy1n.js} +9 -9
- package/dist/chunks/{instance-6pn2td3v.js → shell-xr38e3s7.js} +17 -17
- package/dist/chunks/{instance-xvr6z0ms.js → shell-xv32mmfd.js} +19 -19
- package/dist/chunks/{instance-nj7hqrdc.js → shell-xwkencv2.js} +12 -12
- package/dist/chunks/{instance-mee8ct06.js → shell-y0st3mmr.js} +2 -2
- package/dist/chunks/{instance-y1fvbwt7.js → shell-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instance-dpkg50ah.js → shell-y71avatq.js} +4 -4
- package/dist/chunks/{instance-j5s48rss.js → shell-y8cyz0t7.js} +11 -11
- package/dist/chunks/{instance-pwws2hp2.js → shell-yn5t1h2v.js} +10 -10
- package/dist/chunks/{instance-s7ecmt2f.js → shell-ypg4226y.js} +23 -18
- package/dist/chunks/shell-ypxp1xp8.js +97 -0
- package/dist/chunks/{instance-a0r8rfmp.js → shell-yzkfk5qj.js} +9 -9
- package/dist/chunks/{instance-z0bkrqjs.js → shell-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instance-3fc6dm20.js → shell-z18fegx4.js} +4 -4
- package/dist/chunks/{instance-2vs2nh1n.js → shell-zav06jzw.js} +4 -4
- package/dist/chunks/{instance-hdb1y56n.js → shell-zc34mber.js} +38 -38
- package/dist/chunks/{instance-0fhevdjt.js → shell-zjtrsxny.js} +5 -5
- package/dist/chunks/{instance-s5jrf6ry.js → shell-zk3946p4.js} +11 -11
- package/dist/chunks/{instance-zr2ceqn5.js → shell-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instance-b7n2911q.js → shell-ztk94t9n.js} +22 -22
- package/dist/chunks/{instance-zxq2ej10.js → shell-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +3 -3
- 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 +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -207
- package/dist/config/plugin/compaction.js +155 -154
- package/dist/config/plugin/compatibility.js +135 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +10 -0
- package/dist/config/plugin/skill.js +138 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +86 -83
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -366
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +219 -218
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +106 -106
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +108 -107
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +361 -358
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -355
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +2 -2
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +101 -101
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +10 -0
- package/dist/model.js +100 -100
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +90 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +111 -111
- package/dist/persistent-pty/binary.bun.js +3 -3
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +123 -123
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +132 -132
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +349 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +221 -220
- package/dist/project/schema.js +10 -10
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +93 -93
- 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 +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -137
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -214
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +157 -156
- package/dist/session/history.js +19 -13
- package/dist/session/inbox.js +95 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +89 -86
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +14 -0
- package/dist/session/revert.js +96 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -222
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -4
- package/dist/session/runner/step.js +126 -125
- package/dist/session/runner/to-llm-message.js +14 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +162 -162
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +202 -201
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +215 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -207
- 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 +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +93 -93
- 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 +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +111 -111
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +211 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -212
- package/dist/tool/plugin/todo.js +147 -0
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/types/account/sql.d.ts +3 -3
- package/dist/types/codemode/tool.d.ts +12 -12
- package/dist/types/config/discovery.d.ts +2 -2
- package/dist/types/config/plugin/entry-observer.d.ts +1 -1
- package/dist/types/config/plugin/instruction.d.ts +1 -1
- package/dist/types/config/plugin/skill-scan.d.ts +5 -0
- package/dist/types/config.d.ts +1 -1
- package/dist/types/credential/sql.d.ts +1 -4
- package/dist/types/credential.d.ts +0 -3
- package/dist/types/database/drizzle/effect-sqlite/driver.d.ts +1 -1
- package/dist/types/database/migration/20260805200742_import_legacy_credentials.d.ts +1 -1
- package/dist/types/database/path.d.ts +16 -16
- package/dist/types/database/sqlite.bun.d.ts +1 -1
- package/dist/types/database/sqlite.node.d.ts +1 -1
- package/dist/types/database/sqlite.workerd.d.ts +1 -1
- package/dist/types/effect/websocket-constructor.d.ts +2 -1
- package/dist/types/environment/files.d.ts +1 -1
- package/dist/types/event/sql.d.ts +2 -2
- package/dist/types/file-mutation.d.ts +4 -3
- package/dist/types/filesystem.d.ts +1 -1
- package/dist/types/form.d.ts +55 -55
- package/dist/types/github-copilot/chat/openai-compatible-chat-language-model.d.ts +27 -27
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +80 -80
- package/dist/types/github-copilot/responses/tool/file-search.d.ts +1 -1
- package/dist/types/github-copilot/responses/tool/image-generation.d.ts +5 -5
- package/dist/types/github-copilot/responses/tool/web-search-preview.d.ts +1 -1
- package/dist/types/github-copilot/responses/tool/web-search.d.ts +1 -1
- package/dist/types/image/photon-wasm.workerd.d.ts +1 -1
- package/dist/types/image/photon.d.ts +5 -5
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/integration.d.ts +257 -257
- package/dist/types/kv/sql.d.ts +1 -1
- package/dist/types/managed-policy.d.ts +2 -2
- package/dist/types/mcp/client.d.ts +74 -74
- package/dist/types/mcp/index.d.ts +1 -1
- package/dist/types/mime.d.ts +1 -1
- package/dist/types/model-resolver.d.ts +1 -1
- package/dist/types/model-retry.d.ts +14 -0
- package/dist/types/model.d.ts +76 -73
- package/dist/types/permission/saved.d.ts +26 -1
- package/dist/types/permission/sql.d.ts +1 -1
- package/dist/types/permission.d.ts +1 -1
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -1
- package/dist/types/persistent-pty/binary.node.d.ts +1 -1
- package/dist/types/plugin/command.d.ts +1 -1
- package/dist/types/plugin/host.d.ts +2 -2
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/module.d.ts +7 -7
- package/dist/types/plugin/provider/azure.d.ts +2 -2
- package/dist/types/plugin/provider/chatgpt.d.ts +1 -1
- package/dist/types/plugin/provider/digitalocean.d.ts +1 -1
- package/dist/types/plugin/provider/github-copilot.d.ts +2 -2
- package/dist/types/plugin/provider/gitlab.d.ts +1 -1
- package/dist/types/plugin/provider/lmstudio.d.ts +2 -2
- package/dist/types/plugin/provider/local.d.ts +2 -2
- package/dist/types/plugin/provider/ollama.d.ts +2 -2
- package/dist/types/plugin/provider/opencode.d.ts +1 -1
- package/dist/types/plugin/provider/poe.d.ts +1 -1
- package/dist/types/plugin/provider/snowflake-cortex.d.ts +1 -1
- package/dist/types/plugin/provider/vllm.d.ts +2 -2
- package/dist/types/plugin/supervisor.d.ts +2 -2
- package/dist/types/plugin/websearch/exa.d.ts +1 -1
- package/dist/types/plugin/websearch/firecrawl.d.ts +1 -1
- package/dist/types/plugin/websearch/index.d.ts +1 -1
- package/dist/types/plugin/websearch/parallel.d.ts +1 -1
- package/dist/types/plugin/websearch/tavily.d.ts +1 -1
- package/dist/types/plugin/websearch/tinyfish.d.ts +1 -1
- package/dist/types/project/sql.d.ts +75 -75
- package/dist/types/provider.d.ts +3 -1
- package/dist/types/session/command.d.ts +1 -1
- package/dist/types/session/compaction.d.ts +2 -2
- package/dist/types/session/diff.d.ts +1 -1
- package/dist/types/session/error.d.ts +4 -0
- package/dist/types/session/execution/restart.d.ts +1 -1
- package/dist/types/session/execution.d.ts +2 -2
- package/dist/types/session/generate.d.ts +1 -1
- package/dist/types/session/history.d.ts +389 -1242
- package/dist/types/session/inbox.d.ts +110 -110
- package/dist/types/session/instruction-entry.d.ts +2 -2
- package/dist/types/session/instruction-state.d.ts +7 -3
- package/dist/types/session/model-request.d.ts +1 -1
- package/dist/types/session/prompt.d.ts +7 -7
- package/dist/types/session/recent-text.d.ts +11 -0
- package/dist/types/session/revert.d.ts +1 -1
- package/dist/types/session/runner/index.d.ts +42 -46
- package/dist/types/session/runner/publish-llm-event.d.ts +1 -1
- package/dist/types/session/runner/step.d.ts +86 -96
- package/dist/types/session/session.d.ts +29 -27
- package/dist/types/session/skill.d.ts +1 -1
- package/dist/types/session/sql.d.ts +139 -139
- package/dist/types/session/stats.d.ts +1 -1
- package/dist/types/session/store.d.ts +8 -5
- package/dist/types/session/subagent-completion.d.ts +1 -1
- package/dist/types/session/title.d.ts +1 -1
- package/dist/types/session/transfer.d.ts +31 -81
- package/dist/types/session.d.ts +24 -11
- package/dist/types/shell/result.d.ts +14 -14
- package/dist/types/skill.d.ts +1 -1
- package/dist/types/state.d.ts +1 -1
- package/dist/types/tool/plugin/read.d.ts +2 -2
- package/dist/types/tool/plugin/shell.d.ts +1 -1
- package/dist/types/tool/plugin/skill.d.ts +1 -1
- package/dist/types/tool/plugin/todo.d.ts +29 -0
- package/dist/types/tool/plugin/webfetch.d.ts +1 -1
- package/dist/types/tool/read-filesystem.d.ts +4 -4
- package/dist/types/tool/runtime.d.ts +1 -1
- package/dist/types/util/error.d.ts +36 -32
- package/dist/types/v1/config/agent.d.ts +2 -2
- package/dist/types/v1/config/error.d.ts +51 -46
- package/dist/types/v1/config/migrate.d.ts +14 -14
- package/dist/types/v1/config/permission.d.ts +3 -3
- package/dist/types/wellknown.d.ts +4 -6
- package/dist/types/workspace/sql.d.ts +1 -1
- package/dist/types/worktree/git.d.ts +3 -3
- package/dist/types/worktree/sql.d.ts +1 -1
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- 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 +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +10 -10
- package/dist/chunks/instance-0e3j8fc0.js +0 -257
- package/dist/chunks/instance-3x6psag0.js +0 -73
- package/dist/chunks/instance-4j4tgtq5.js +0 -69
- package/dist/chunks/instance-6hkj46ta.js +0 -26
- package/dist/chunks/instance-em3k6scw.js +0 -95
- package/dist/chunks/instance-rap9a73h.js +0 -18
- package/dist/chunks/instance-zyk1yjk8.js +0 -80
- package/dist/session/provider-context.js +0 -20
- package/dist/types/session/provider-context.d.ts +0 -46
- /package/dist/chunks/{instance-0qkdqm5v.js → shell-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instance-0zkw76rk.js → shell-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instance-17cy0kzp.js → shell-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instance-1cnp2v09.js → shell-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instance-1kg9ymc8.js → shell-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instance-24dcb14g.js → shell-24dcb14g.js} +0 -0
- /package/dist/chunks/{instance-2710q6r3.js → shell-2710q6r3.js} +0 -0
- /package/dist/chunks/{instance-2axfhc9x.js → shell-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instance-2bv980vf.js → shell-2bv980vf.js} +0 -0
- /package/dist/chunks/{instance-2c3vjs8z.js → shell-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instance-359p4xyc.js → shell-359p4xyc.js} +0 -0
- /package/dist/chunks/{instance-3asan66x.js → shell-3asan66x.js} +0 -0
- /package/dist/chunks/{instance-3t0ybcrp.js → shell-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{instance-3v8g72cx.js → shell-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instance-3wcehsnq.js → shell-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instance-43n2bw4t.js → shell-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instance-4knz6hnm.js → shell-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instance-4vcrnpx2.js → shell-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instance-4y7fprxs.js → shell-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instance-53557ph1.js → shell-53557ph1.js} +0 -0
- /package/dist/chunks/{instance-550bvhaj.js → shell-550bvhaj.js} +0 -0
- /package/dist/chunks/{instance-5qd3pb7m.js → shell-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{instance-6prwharc.js → shell-6prwharc.js} +0 -0
- /package/dist/chunks/{instance-6q2bdcd1.js → shell-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instance-7akdwqpd.js → shell-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instance-7m9af43g.js → shell-7m9af43g.js} +0 -0
- /package/dist/chunks/{instance-822emrt2.js → shell-822emrt2.js} +0 -0
- /package/dist/chunks/{instance-84wd9syh.js → shell-84wd9syh.js} +0 -0
- /package/dist/chunks/{instance-88xbtdfr.js → shell-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instance-8n3pysct.js → shell-8n3pysct.js} +0 -0
- /package/dist/chunks/{instance-8wj87zfr.js → shell-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instance-9a4afbnw.js → shell-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instance-9rqn6x4v.js → shell-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instance-a6k6eb26.js → shell-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instance-af5trqkr.js → shell-af5trqkr.js} +0 -0
- /package/dist/chunks/{instance-afrmfg78.js → shell-afrmfg78.js} +0 -0
- /package/dist/chunks/{instance-aqzs7mqg.js → shell-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instance-atq7p7m5.js → shell-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instance-bkyjaxrp.js → shell-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instance-bmr6ed5q.js → shell-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instance-cf4snx6d.js → shell-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instance-cvy3z8tj.js → shell-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instance-d9fn303g.js → shell-d9fn303g.js} +0 -0
- /package/dist/chunks/{instance-d9jj8t3e.js → shell-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instance-dajrwvna.js → shell-dajrwvna.js} +0 -0
- /package/dist/chunks/{instance-dap0rakb.js → shell-dap0rakb.js} +0 -0
- /package/dist/chunks/{instance-df08tz66.js → shell-df08tz66.js} +0 -0
- /package/dist/chunks/{instance-dy18nga0.js → shell-dy18nga0.js} +0 -0
- /package/dist/chunks/{instance-e5kj55wp.js → shell-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instance-e73j6tqm.js → shell-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instance-ec1grn59.js → shell-ec1grn59.js} +0 -0
- /package/dist/chunks/{instance-eh3zwz77.js → shell-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instance-emrn6kk6.js → shell-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instance-f0mxakyp.js → shell-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instance-f6n9ztr4.js → shell-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instance-faypxj3z.js → shell-faypxj3z.js} +0 -0
- /package/dist/chunks/{instance-fd410y7t.js → shell-fd410y7t.js} +0 -0
- /package/dist/chunks/{instance-g4wezp1m.js → shell-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instance-g86h250q.js → shell-g86h250q.js} +0 -0
- /package/dist/chunks/{instance-gebd4c9n.js → shell-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instance-gftt206x.js → shell-gftt206x.js} +0 -0
- /package/dist/chunks/{instance-hcxmzztb.js → shell-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instance-hk9envan.js → shell-hk9envan.js} +0 -0
- /package/dist/chunks/{instance-j2ntwpah.js → shell-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instance-j5zkgpj8.js → shell-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instance-jjkms2e6.js → shell-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instance-jr7sbwjy.js → shell-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instance-jwfs4k6c.js → shell-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instance-jze0r7bz.js → shell-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instance-jzg6c2d5.js → shell-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instance-m18g726c.js → shell-m18g726c.js} +0 -0
- /package/dist/chunks/{instance-mp448xyj.js → shell-mp448xyj.js} +0 -0
- /package/dist/chunks/{instance-msx8hqn2.js → shell-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instance-n05xt0ee.js → shell-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instance-n3j8tn72.js → shell-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instance-njntx4h6.js → shell-njntx4h6.js} +0 -0
- /package/dist/chunks/{instance-pkyv6v7h.js → shell-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{instance-pyv0edze.js → shell-pyv0edze.js} +0 -0
- /package/dist/chunks/{instance-q3sfg36h.js → shell-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instance-q74kybfr.js → shell-q74kybfr.js} +0 -0
- /package/dist/chunks/{instance-qaymkmh1.js → shell-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instance-qb87gjwd.js → shell-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instance-qfa1cgps.js → shell-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instance-qg3g05ea.js → shell-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instance-qrg20bc0.js → shell-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instance-rcb2kzg1.js → shell-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instance-sdp7kfr6.js → shell-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instance-ssg3fenm.js → shell-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instance-ve7vex1e.js → shell-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instance-w803qqfp.js → shell-w803qqfp.js} +0 -0
- /package/dist/chunks/{instance-wc3fc9cn.js → shell-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instance-wer8tq1h.js → shell-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instance-wjj7prxr.js → shell-wjj7prxr.js} +0 -0
- /package/dist/chunks/{instance-wtztk69x.js → shell-wtztk69x.js} +0 -0
- /package/dist/chunks/{instance-x0ckcb58.js → shell-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instance-x61499pn.js → shell-x61499pn.js} +0 -0
- /package/dist/chunks/{instance-y44na4kk.js → shell-y44na4kk.js} +0 -0
- /package/dist/chunks/{instance-y8f7s663.js → shell-y8f7s663.js} +0 -0
- /package/dist/chunks/{instance-ygaqb7jw.js → shell-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instance-ym463w8f.js → shell-ym463w8f.js} +0 -0
- /package/dist/chunks/{instance-z5v4ffb3.js → shell-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instance-z9919s4g.js → shell-z9919s4g.js} +0 -0
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service45,
|
|
3
|
+
node48
|
|
4
|
+
} from "./shell-8bee7htz.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
Key3,
|
|
7
7
|
removed2,
|
|
8
|
-
|
|
8
|
+
make21,
|
|
9
9
|
diffByKey2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./shell-s8d7rejh.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./shell-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/reference/instructions.ts
|
|
16
16
|
var exports_instructions5 = {};
|
|
17
17
|
__export(exports_instructions5, {
|
|
18
18
|
ReferenceInstructions: () => exports_instructions5,
|
|
19
|
-
Service: () =>
|
|
20
|
-
node: () =>
|
|
19
|
+
Service: () => Service34,
|
|
20
|
+
node: () => node37
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
23
23
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -57,19 +57,19 @@ var update = (previous, current) => {
|
|
|
57
57
|
`);
|
|
58
58
|
};
|
|
59
59
|
|
|
60
|
-
class
|
|
60
|
+
class Service34 extends Context.Service()("@opencode/ReferenceInstructions") {
|
|
61
61
|
}
|
|
62
|
-
var layer = Layer.effect(
|
|
63
|
-
const references = yield*
|
|
64
|
-
return
|
|
62
|
+
var layer = Layer.effect(Service34, Effect.gen(function* () {
|
|
63
|
+
const references = yield* Service45;
|
|
64
|
+
return Service34.of({
|
|
65
65
|
load: Effect.fn("ReferenceInstructions.load")(function* () {
|
|
66
66
|
const available = (yield* references.list()).filter((reference) => reference.description !== undefined).map((reference) => ({
|
|
67
67
|
name: reference.name,
|
|
68
68
|
path: reference.path,
|
|
69
69
|
description: reference.description
|
|
70
70
|
})).toSorted((a, b) => a.name.localeCompare(b.name));
|
|
71
|
-
return
|
|
72
|
-
key:
|
|
71
|
+
return make21({
|
|
72
|
+
key: Key3.make("core/reference-guidance"),
|
|
73
73
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
74
74
|
read: Effect.succeed(available.length === 0 ? removed2 : available),
|
|
75
75
|
render: {
|
|
@@ -81,6 +81,6 @@ var layer = Layer.effect(Service37, Effect.gen(function* () {
|
|
|
81
81
|
})
|
|
82
82
|
});
|
|
83
83
|
}));
|
|
84
|
-
var
|
|
84
|
+
var node37 = makeLocationNode({ service: Service34, layer, deps: [node48] });
|
|
85
85
|
|
|
86
|
-
export {
|
|
86
|
+
export { Service34, node37, exports_instructions5 };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID16,
|
|
3
|
+
Service82,
|
|
4
|
+
node86
|
|
5
|
+
} from "./shell-50d2yybn.js";
|
|
6
6
|
import {
|
|
7
7
|
ID8,
|
|
8
8
|
isAISDK2,
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
encoding2,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service64,
|
|
19
|
+
node67
|
|
20
|
+
} from "./shell-5xghjtfa.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
22
|
+
Service54,
|
|
23
|
+
node56
|
|
24
|
+
} from "./shell-9vbreq9z.js";
|
|
25
25
|
import {
|
|
26
26
|
ID7,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref2,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Service63,
|
|
30
|
+
node66,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./shell-3atk1qyf.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./shell-9rqn6x4v.js";
|
|
36
36
|
|
|
37
37
|
// src/model-resolver.ts
|
|
38
38
|
var exports_model_resolver = {};
|
|
@@ -41,15 +41,15 @@ __export(exports_model_resolver, {
|
|
|
41
41
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
42
42
|
ModelInitializationError: () => ModelInitializationError2,
|
|
43
43
|
ModelResolver: () => exports_model_resolver,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service53,
|
|
45
45
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
46
46
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
47
47
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
48
48
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
49
49
|
fromCatalogModel: () => fromCatalogModel2,
|
|
50
50
|
hasPackage: () => hasPackage2,
|
|
51
|
-
layer: () =>
|
|
52
|
-
node: () =>
|
|
51
|
+
layer: () => layer22,
|
|
52
|
+
node: () => node55,
|
|
53
53
|
resolveModel: () => resolveModel2,
|
|
54
54
|
withVariant: () => withVariant2
|
|
55
55
|
});
|
|
@@ -122,7 +122,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
class
|
|
125
|
+
class Service53 extends Context.Service()("@opencode/ModelResolver") {
|
|
126
126
|
}
|
|
127
127
|
var withVariant2 = (model, variantID) => {
|
|
128
128
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -147,16 +147,14 @@ var fromCatalogModel2 = (model, credential, dependencies) => resolveCatalogModel
|
|
|
147
147
|
}));
|
|
148
148
|
var resolveCatalogModel = Effect.fn("ModelResolver.resolveCatalogModel")(function* (model, credential, dependencies) {
|
|
149
149
|
const resolved = prepareRuntimeModel(model);
|
|
150
|
-
const
|
|
151
|
-
const configured = { ...resolved.settings, ...credential?.metadata, ...configuration };
|
|
150
|
+
const configured = { ...resolved.settings, ...credential?.metadata };
|
|
152
151
|
if (isAISDK2(resolved.package)) {
|
|
153
152
|
const loadAISDK = dependencies?.loadAISDK;
|
|
154
153
|
if (!loadAISDK)
|
|
155
154
|
return yield* unsupported(resolved);
|
|
156
155
|
const settings = yield* prepareProviderSettings(resolved, mergeOverlay2(resolved.settings, {
|
|
157
156
|
...nativeCredentialSettings(resolved, resolved.package ?? "", credential),
|
|
158
|
-
...credential?.metadata
|
|
159
|
-
...configuration
|
|
157
|
+
...credential?.metadata
|
|
160
158
|
}) ?? {});
|
|
161
159
|
return yield* loadAISDK({ ...resolved, settings }).pipe(Effect.mapError((error) => initialization(resolved, "init", error.cause)));
|
|
162
160
|
}
|
|
@@ -271,15 +269,15 @@ var causeMessage = (cause) => {
|
|
|
271
269
|
};
|
|
272
270
|
var resolveModel2 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
273
271
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
274
|
-
var
|
|
275
|
-
const providers = yield*
|
|
276
|
-
const models = yield*
|
|
277
|
-
const integrations = yield*
|
|
272
|
+
var layer22 = Layer.effect(Service53, Effect.gen(function* () {
|
|
273
|
+
const providers = yield* Service64;
|
|
274
|
+
const models = yield* Service63;
|
|
275
|
+
const integrations = yield* Service82;
|
|
278
276
|
const npm = yield* Npm.Service;
|
|
279
|
-
const aisdk = yield*
|
|
277
|
+
const aisdk = yield* Service54;
|
|
280
278
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
281
279
|
const provider = yield* providers.get(selected.providerID);
|
|
282
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
280
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID16.make(selected.providerID));
|
|
283
281
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
284
282
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
285
283
|
const runtimeInfo = {
|
|
@@ -306,7 +304,7 @@ var layer25 = Layer.effect(Service62, Effect.gen(function* () {
|
|
|
306
304
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
307
305
|
};
|
|
308
306
|
});
|
|
309
|
-
return
|
|
307
|
+
return Service53.of({
|
|
310
308
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
311
309
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
312
310
|
if (!selected)
|
|
@@ -323,10 +321,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
323
321
|
const name = packageName2(packageName);
|
|
324
322
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
325
323
|
}
|
|
326
|
-
var
|
|
327
|
-
service:
|
|
328
|
-
layer:
|
|
329
|
-
deps: [
|
|
324
|
+
var node55 = makeLocationNode({
|
|
325
|
+
service: Service53,
|
|
326
|
+
layer: layer22,
|
|
327
|
+
deps: [node67, node66, node86, Npm.node, node56]
|
|
330
328
|
});
|
|
331
329
|
|
|
332
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
330
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service53, withVariant2, fromCatalogModel2, resolveModel2, hasPackage2, layer22, node55, exports_model_resolver };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID8,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./shell-5xghjtfa.js";
|
|
5
5
|
import {
|
|
6
6
|
ID7,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info17,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./shell-3atk1qyf.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./shell-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
16
|
var exports_models = {};
|
|
@@ -94,8 +94,8 @@ function limit(value, fallback) {
|
|
|
94
94
|
function build(id, remote, baseURL, previous) {
|
|
95
95
|
const cost = previous?.cost[0];
|
|
96
96
|
const input = previous?.limit.input;
|
|
97
|
-
return
|
|
98
|
-
...
|
|
97
|
+
return Info17.make({
|
|
98
|
+
...Info17.default(providerID, id),
|
|
99
99
|
id,
|
|
100
100
|
modelID: ID7.make(remote.id),
|
|
101
101
|
providerID,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
parseOption2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-8m6m0r52.js";
|
|
4
4
|
import {
|
|
5
5
|
AbsolutePath2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID5,
|
|
9
9
|
Name2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./shell-8rnv749x.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./shell-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/skill-file.ts
|
|
16
16
|
var exports_skill_file = {};
|
|
@@ -62,7 +62,7 @@ function parse2(directory, filepath, content) {
|
|
|
62
62
|
return {
|
|
63
63
|
_tag: "Parsed",
|
|
64
64
|
skill: {
|
|
65
|
-
id:
|
|
65
|
+
id: ID5.make(id),
|
|
66
66
|
name: Name2.make(frontmatter.name ?? id),
|
|
67
67
|
...frontmatter.description === undefined ? {} : { description: frontmatter.description },
|
|
68
68
|
...autoinvoke === undefined ? {} : { autoinvoke },
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./shell-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./shell-tdstcens.js";
|
|
7
7
|
import {
|
|
8
8
|
contentFilterError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./shell-v6abvp0h.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/publish-llm-event.ts
|
|
12
12
|
import { Effect, Fiber, Iterable } from "effect";
|
|
@@ -81,17 +81,17 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
81
81
|
assistantMessageID: yield* startAssistant()
|
|
82
82
|
});
|
|
83
83
|
});
|
|
84
|
-
const
|
|
84
|
+
const native = (metadata) => metadata?.[input.providerMetadataKey];
|
|
85
85
|
const fragments = (name, ended, delta, single = false) => {
|
|
86
86
|
const chunks = new Map;
|
|
87
87
|
let nextOrdinal = 0;
|
|
88
|
-
const start = (id,
|
|
88
|
+
const start = (id, native) => Effect.suspend(() => {
|
|
89
89
|
if (chunks.has(id))
|
|
90
90
|
return Effect.die(new Error(`Duplicate ${name} start: ${id}`));
|
|
91
91
|
if (single && chunks.size > 0)
|
|
92
92
|
return Effect.die(new Error(`${name} start before end: ${id}`));
|
|
93
93
|
const ordinal = nextOrdinal++;
|
|
94
|
-
chunks.set(id, { ordinal, values: [], pending: "",
|
|
94
|
+
chunks.set(id, { ordinal, values: [], pending: "", native });
|
|
95
95
|
return Effect.succeed(ordinal);
|
|
96
96
|
});
|
|
97
97
|
const publishDelta = Effect.fnUntraced(function* (id) {
|
|
@@ -107,15 +107,15 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
107
107
|
yield* delta(id, value, current.ordinal);
|
|
108
108
|
return;
|
|
109
109
|
}, Effect.uninterruptible);
|
|
110
|
-
const append = Effect.fnUntraced(function* (id, value,
|
|
110
|
+
const append = Effect.fnUntraced(function* (id, value, native) {
|
|
111
111
|
const current = chunks.get(id);
|
|
112
112
|
if (!current)
|
|
113
113
|
return yield* Effect.die(new Error(`${name} delta before start: ${id}`));
|
|
114
114
|
current.values.push(value);
|
|
115
115
|
if (delta)
|
|
116
116
|
current.pending += value;
|
|
117
|
-
if (
|
|
118
|
-
current.
|
|
117
|
+
if (native !== undefined)
|
|
118
|
+
current.native = { ...current.native, ...native };
|
|
119
119
|
if (current.pending && !current.timer) {
|
|
120
120
|
current.timer = yield* Effect.gen(function* () {
|
|
121
121
|
while (current.pending) {
|
|
@@ -128,14 +128,14 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
128
128
|
}
|
|
129
129
|
return current.ordinal;
|
|
130
130
|
});
|
|
131
|
-
const end = Effect.fnUntraced(function* (id,
|
|
131
|
+
const end = Effect.fnUntraced(function* (id, native, value) {
|
|
132
132
|
const current = chunks.get(id);
|
|
133
133
|
if (!current)
|
|
134
134
|
return yield* Effect.die(new Error(`${name} end before start: ${id}`));
|
|
135
135
|
if (current.timer)
|
|
136
136
|
yield* Fiber.interrupt(current.timer);
|
|
137
137
|
yield* publishDelta(id);
|
|
138
|
-
yield* ended(id, value ?? current.values.join(""), current.ordinal,
|
|
138
|
+
yield* ended(id, value ?? current.values.join(""), current.ordinal, native === undefined ? current.native : { ...current.native, ...native });
|
|
139
139
|
chunks.delete(id);
|
|
140
140
|
return;
|
|
141
141
|
});
|
|
@@ -152,13 +152,13 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
152
152
|
});
|
|
153
153
|
return { start, append, end, flush, publishPending, has: (id) => chunks.has(id) };
|
|
154
154
|
};
|
|
155
|
-
const text = fragments("text", (_textID, value, ordinal,
|
|
155
|
+
const text = fragments("text", (_textID, value, ordinal, native) => Effect.gen(function* () {
|
|
156
156
|
yield* bus.publish(SessionEvent2.Text.Ended, {
|
|
157
157
|
sessionID: input.sessionID,
|
|
158
158
|
assistantMessageID: yield* currentAssistantMessageID(),
|
|
159
159
|
ordinal,
|
|
160
160
|
text: value,
|
|
161
|
-
|
|
161
|
+
native
|
|
162
162
|
});
|
|
163
163
|
}), (_textID, value, ordinal) => Effect.gen(function* () {
|
|
164
164
|
yield* bus.publish(SessionEvent2.Text.Delta, {
|
|
@@ -168,13 +168,13 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
168
168
|
delta: value
|
|
169
169
|
});
|
|
170
170
|
}), true);
|
|
171
|
-
const reasoning = fragments("reasoning", (_reasoningID, value, ordinal,
|
|
171
|
+
const reasoning = fragments("reasoning", (_reasoningID, value, ordinal, native) => Effect.gen(function* () {
|
|
172
172
|
yield* bus.publish(SessionEvent2.Reasoning.Ended, {
|
|
173
173
|
sessionID: input.sessionID,
|
|
174
174
|
assistantMessageID: yield* currentAssistantMessageID(),
|
|
175
175
|
ordinal,
|
|
176
176
|
text: value,
|
|
177
|
-
|
|
177
|
+
native
|
|
178
178
|
});
|
|
179
179
|
}), (_reasoningID, value, ordinal) => Effect.gen(function* () {
|
|
180
180
|
yield* bus.publish(SessionEvent2.Reasoning.Delta, {
|
|
@@ -305,7 +305,7 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
305
305
|
error: stepFailure,
|
|
306
306
|
finish: stepSettlement?.finish === "content-filter" ? stepSettlement.finish : undefined,
|
|
307
307
|
rawFinish: stepSettlement?.rawFinish,
|
|
308
|
-
|
|
308
|
+
native: stepSettlement?.native,
|
|
309
309
|
...details
|
|
310
310
|
});
|
|
311
311
|
});
|
|
@@ -317,7 +317,7 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
317
317
|
return;
|
|
318
318
|
case "text-start":
|
|
319
319
|
outputStarted = true;
|
|
320
|
-
const startedTextOrdinal = yield* text.start(event.id,
|
|
320
|
+
const startedTextOrdinal = yield* text.start(event.id, native(event.providerMetadata));
|
|
321
321
|
yield* publishPendingDeltas();
|
|
322
322
|
yield* bus.publish(SessionEvent2.Text.Started, {
|
|
323
323
|
sessionID: input.sessionID,
|
|
@@ -326,27 +326,27 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
326
326
|
});
|
|
327
327
|
return;
|
|
328
328
|
case "text-delta":
|
|
329
|
-
yield* text.append(event.id, event.text,
|
|
329
|
+
yield* text.append(event.id, event.text, native(event.providerMetadata));
|
|
330
330
|
return;
|
|
331
331
|
case "text-end":
|
|
332
|
-
yield* text.end(event.id,
|
|
332
|
+
yield* text.end(event.id, native(event.providerMetadata), event.text);
|
|
333
333
|
return;
|
|
334
334
|
case "reasoning-start":
|
|
335
335
|
outputStarted = true;
|
|
336
|
-
const startedReasoningOrdinal = yield* reasoning.start(event.id,
|
|
336
|
+
const startedReasoningOrdinal = yield* reasoning.start(event.id, native(event.providerMetadata));
|
|
337
337
|
yield* publishPendingDeltas();
|
|
338
338
|
yield* bus.publish(SessionEvent2.Reasoning.Started, {
|
|
339
339
|
sessionID: input.sessionID,
|
|
340
340
|
assistantMessageID: yield* startAssistant(),
|
|
341
341
|
ordinal: startedReasoningOrdinal,
|
|
342
|
-
|
|
342
|
+
native: native(event.providerMetadata)
|
|
343
343
|
});
|
|
344
344
|
return;
|
|
345
345
|
case "reasoning-delta":
|
|
346
|
-
yield* reasoning.append(event.id, event.text,
|
|
346
|
+
yield* reasoning.append(event.id, event.text, native(event.providerMetadata));
|
|
347
347
|
return;
|
|
348
348
|
case "reasoning-end":
|
|
349
|
-
yield* reasoning.end(event.id,
|
|
349
|
+
yield* reasoning.end(event.id, native(event.providerMetadata), event.text);
|
|
350
350
|
return;
|
|
351
351
|
case "tool-input-start":
|
|
352
352
|
outputStarted = true;
|
|
@@ -387,7 +387,7 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
387
387
|
id: event.id,
|
|
388
388
|
input: asRecord(event.input),
|
|
389
389
|
executed: tool.providerExecuted,
|
|
390
|
-
|
|
390
|
+
native: native(event.providerMetadata)
|
|
391
391
|
});
|
|
392
392
|
return;
|
|
393
393
|
}
|
|
@@ -404,7 +404,6 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
404
404
|
}
|
|
405
405
|
tool.settled = true;
|
|
406
406
|
const executed = event.providerExecuted === true || tool.providerExecuted;
|
|
407
|
-
const resultState = providerState(event.providerMetadata);
|
|
408
407
|
if (event.result.type === "error") {
|
|
409
408
|
yield* bus.publish(SessionEvent2.Tool.Failed, {
|
|
410
409
|
sessionID: input.sessionID,
|
|
@@ -413,7 +412,7 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
413
412
|
error: { type: "tool.execution", message: stringify(event.result.value) },
|
|
414
413
|
...failureSnapshot(tool),
|
|
415
414
|
executed,
|
|
416
|
-
|
|
415
|
+
native: native(event.providerMetadata)
|
|
417
416
|
});
|
|
418
417
|
return;
|
|
419
418
|
}
|
|
@@ -423,7 +422,7 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
423
422
|
id: event.id,
|
|
424
423
|
content: hostedContent(event.result),
|
|
425
424
|
executed,
|
|
426
|
-
|
|
425
|
+
native: native(event.providerMetadata)
|
|
427
426
|
});
|
|
428
427
|
return;
|
|
429
428
|
}
|
|
@@ -443,7 +442,7 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
443
442
|
error: event.message === `Unknown tool: ${event.name}` ? { type: "tool.unknown", message: event.message } : { type: "tool.execution", message: event.message },
|
|
444
443
|
...failureSnapshot(tool),
|
|
445
444
|
executed: tool.providerExecuted,
|
|
446
|
-
|
|
445
|
+
native: native(event.providerMetadata)
|
|
447
446
|
});
|
|
448
447
|
return;
|
|
449
448
|
}
|
|
@@ -454,7 +453,7 @@ var createLLMEventPublisher2 = (bus, input) => {
|
|
|
454
453
|
stepSettlement = {
|
|
455
454
|
finish: event.reason.normalized,
|
|
456
455
|
rawFinish: event.reason.raw,
|
|
457
|
-
|
|
456
|
+
native: native(event.providerMetadata),
|
|
458
457
|
tokens: tokens2(event.usage)
|
|
459
458
|
};
|
|
460
459
|
if (event.reason.normalized === "content-filter") {
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service59
|
|
3
|
+
} from "./shell-387dpq4s.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service78
|
|
6
|
+
} from "./shell-bj7p7j85.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service58
|
|
9
|
+
} from "./shell-2exgm5zs.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./shell-s8d7rejh.js";
|
|
13
13
|
import {
|
|
14
14
|
File2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service43
|
|
16
|
+
} from "./shell-432psgyy.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./shell-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/instruction.ts
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin43
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -31,17 +31,17 @@ import { sameDirectory } from "@opencode/util/path";
|
|
|
31
31
|
import path, { dirname, join } from "path";
|
|
32
32
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
33
33
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
34
|
-
var
|
|
34
|
+
var Plugin43 = define({
|
|
35
35
|
id: "opencode.config.instruction",
|
|
36
36
|
effect: Effect.fn(function* (ctx) {
|
|
37
|
-
const discovery = yield*
|
|
37
|
+
const discovery = yield* Service43;
|
|
38
38
|
yield* Effect.gen(function* () {
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service58;
|
|
40
40
|
const fs = yield* FSUtil.Service;
|
|
41
41
|
const global = yield* Global.Service;
|
|
42
42
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
43
|
-
const location = yield*
|
|
44
|
-
const watcher = yield*
|
|
43
|
+
const location = yield* Service78;
|
|
44
|
+
const watcher = yield* Service59;
|
|
45
45
|
const changes = yield* PubSub.sliding(1);
|
|
46
46
|
const watches = yield* FiberMap.make();
|
|
47
47
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -66,16 +66,13 @@ var Plugin18 = define({
|
|
|
66
66
|
yield* updates.pipe(Stream.runForEach(publish), Effect.forkScoped({ startImmediately: true }));
|
|
67
67
|
}
|
|
68
68
|
const read = Effect.fn("ConfigInstructionPlugin.read")(function* (filepath) {
|
|
69
|
-
|
|
70
|
-
if (content !== undefined)
|
|
71
|
-
return new File2({ path: filepath, content });
|
|
72
|
-
yield* Effect.logDebug("instruction file skipped", { path: filepath, reason: "unavailable" });
|
|
69
|
+
return yield* fs.readFileString(filepath).pipe(Effect.map((content) => new File2({ path: filepath, content })), Effect.catchIf((error) => error.reason._tag === "NotFound" || FSUtil.isAccessDenied(error), (error) => Effect.logDebug("instruction file skipped", { path: filepath, reason: error.reason._tag }).pipe(Effect.as(error.reason._tag === "NotFound" ? undefined : "denied"))));
|
|
73
70
|
});
|
|
74
71
|
const globalSource = Effect.fn("ConfigInstructionPlugin.globalSource")(function* () {
|
|
75
72
|
if (!discovery.global || !(yield* fs.isFile(globalFile)))
|
|
76
73
|
return [];
|
|
77
74
|
const file = yield* read(globalFile);
|
|
78
|
-
return file ? [file] : [];
|
|
75
|
+
return file instanceof File2 ? [file] : [];
|
|
79
76
|
});
|
|
80
77
|
const projectSource = Effect.fn("ConfigInstructionPlugin.projectSource")(function* () {
|
|
81
78
|
if (!project)
|
|
@@ -85,7 +82,7 @@ var Plugin18 = define({
|
|
|
85
82
|
const files = yield* Effect.forEach(discovered, read, { concurrency: "unbounded" });
|
|
86
83
|
if (files.some((file) => file === undefined))
|
|
87
84
|
return unavailable3;
|
|
88
|
-
return files.filter((file) => file
|
|
85
|
+
return files.filter((file) => file instanceof File2);
|
|
89
86
|
});
|
|
90
87
|
const match = Effect.fn("ConfigInstructionPlugin.match")(function* (source) {
|
|
91
88
|
const expanded = source.startsWith("~/") ? path.join(global.home, source.slice(2)) : source;
|
|
@@ -114,7 +111,7 @@ var Plugin18 = define({
|
|
|
114
111
|
continue;
|
|
115
112
|
watched.add(resolved);
|
|
116
113
|
const file = yield* read(resolved);
|
|
117
|
-
if (file)
|
|
114
|
+
if (file instanceof File2)
|
|
118
115
|
files.push(file);
|
|
119
116
|
}
|
|
120
117
|
}
|
|
@@ -177,4 +174,4 @@ function isUrl(source) {
|
|
|
177
174
|
return URL.canParse(source) && /^https?:$/.test(new URL(source).protocol);
|
|
178
175
|
}
|
|
179
176
|
|
|
180
|
-
export {
|
|
177
|
+
export { Plugin43, exports_instruction };
|