@opencode/core 0.0.0-dev-20847 → 0.0.0-dev-20850
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{instruction-discovery-b6syrwy2.js → command-00832hy7.js} +8 -8
- package/dist/chunks/{instruction-discovery-sm4j4wt5.js → command-00v3p02c.js} +12 -12
- package/dist/chunks/{instruction-discovery-zp551mt7.js → command-03eecatj.js} +32 -32
- package/dist/chunks/{instruction-discovery-yeyrdzm0.js → command-0651g2m8.js} +26 -26
- package/dist/chunks/{instruction-discovery-ne89875c.js → command-0f74e6s6.js} +16 -16
- package/dist/chunks/{instruction-discovery-fqp3mcfq.js → command-0g7cgnx9.js} +1 -1
- package/dist/chunks/{instruction-discovery-8tzwp5sx.js → command-0r9t40ws.js} +16 -16
- package/dist/chunks/{instruction-discovery-0vbcp93d.js → command-0vbcp93d.js} +2 -2
- package/dist/chunks/{instruction-discovery-5pbz2dd0.js → command-0yz1bb5z.js} +4 -4
- package/dist/chunks/{instruction-discovery-ggsp0fny.js → command-1078m2ze.js} +11 -11
- package/dist/chunks/{instruction-discovery-0qwsa8cf.js → command-125b2gjd.js} +16 -16
- package/dist/chunks/{instruction-discovery-ezzmrcry.js → command-141ztcwb.js} +30 -30
- package/dist/chunks/{instruction-discovery-ssgq4v3h.js → command-1ake5xtc.js} +19 -19
- package/dist/chunks/{instruction-discovery-99rzeaw0.js → command-1e7j80nv.js} +18 -18
- package/dist/chunks/{instruction-discovery-njm3x30h.js → command-1tc9ms7v.js} +90 -90
- package/dist/chunks/{instruction-discovery-q17sgkmf.js → command-1xfjfm5k.js} +18 -18
- package/dist/chunks/{instruction-discovery-18tb8vc6.js → command-266f832d.js} +22 -22
- package/dist/chunks/{instruction-discovery-1j9vsfxy.js → command-2ej7p5df.js} +17 -17
- package/dist/chunks/{instruction-discovery-xyc3y5xg.js → command-2vn9a9m5.js} +13 -13
- package/dist/chunks/{instruction-discovery-2vvh33eb.js → command-2vvh33eb.js} +2 -2
- package/dist/chunks/{instruction-discovery-qms70dv9.js → command-2w85jf91.js} +3 -3
- package/dist/chunks/{instruction-discovery-7yw2sx3r.js → command-2x98hj2d.js} +6 -6
- package/dist/chunks/{instruction-discovery-yztevfhp.js → command-2ztj38qe.js} +20 -20
- package/dist/chunks/{instruction-discovery-h7s7r6s9.js → command-31xfzrxg.js} +5 -5
- package/dist/chunks/{instruction-discovery-hw2yy5aw.js → command-3b7e2402.js} +11 -11
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → command-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-ksek9mqj.js → command-3ggbdzvf.js} +38 -38
- package/dist/chunks/{instruction-discovery-afz809yg.js → command-3grbmg3s.js} +17 -17
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → command-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hwn7j4h.js → command-3hwn7j4h.js} +2 -2
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → command-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-hay4m1s6.js → command-3t1dcsxj.js} +50 -50
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → command-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-nvakrpsp.js → command-3xr281qj.js} +12 -12
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → command-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-byr661vw.js → command-43b4ysp3.js} +13 -13
- package/dist/chunks/{instruction-discovery-arz7hw7x.js → command-48kw51zw.js} +3 -3
- package/dist/chunks/{instruction-discovery-vrzt526f.js → command-4ekscj25.js} +5 -5
- package/dist/chunks/{instruction-discovery-5fa8zajf.js → command-4h0vb0gq.js} +15 -15
- package/dist/chunks/{instruction-discovery-988cxgr8.js → command-4jw9kfxa.js} +10 -10
- package/dist/chunks/{instruction-discovery-4w7gm2tt.js → command-4n4sjte8.js} +20 -20
- package/dist/chunks/{instruction-discovery-e0pxcnmw.js → command-4s7sr0a4.js} +8 -8
- package/dist/chunks/{instruction-discovery-2ccvkpx1.js → command-4ts7tf6z.js} +2 -2
- package/dist/chunks/command-4v7qdvcn.js +18 -0
- package/dist/chunks/{instruction-discovery-ewk422xx.js → command-50waebaf.js} +14 -14
- package/dist/chunks/{instruction-discovery-h4y0jjzh.js → command-51p4tjed.js} +20 -20
- package/dist/chunks/{instruction-discovery-x7bx6zs0.js → command-524nwbbt.js} +10 -10
- package/dist/chunks/{instruction-discovery-janq1scx.js → command-54e5rmax.js} +4 -4
- package/dist/chunks/{instruction-discovery-54ma36ye.js → command-54ma36ye.js} +1 -1
- package/dist/chunks/{instruction-discovery-xqt608y9.js → command-5faj6gpx.js} +30 -30
- package/dist/chunks/{instruction-discovery-5m9w47nd.js → command-5m9w47nd.js} +1 -1
- package/dist/chunks/{instruction-discovery-b9srm8rz.js → command-5mgptwxw.js} +11 -11
- package/dist/chunks/{instruction-discovery-e3qxr5gk.js → command-5qd3pb7m.js} +2 -2
- package/dist/chunks/{instruction-discovery-ts8qfj50.js → command-5t3310k6.js} +4 -4
- package/dist/chunks/{instruction-discovery-pwpq1fb6.js → command-5ytdfek8.js} +20 -20
- package/dist/chunks/{instruction-discovery-y1qj9qp6.js → command-6674vnd9.js} +28 -28
- package/dist/chunks/{instruction-discovery-97y7hxer.js → command-684z2rkg.js} +14 -12
- package/dist/chunks/{instruction-discovery-548fqp7q.js → command-6qrtx4s9.js} +8 -8
- package/dist/chunks/{instruction-discovery-tqenhx9q.js → command-6rv30qxe.js} +6 -6
- package/dist/chunks/{instruction-discovery-vezvtjyv.js → command-6v23mrsw.js} +11 -11
- package/dist/chunks/{instruction-discovery-myrhaa8e.js → command-6w6dyk7v.js} +9 -9
- package/dist/chunks/{instruction-discovery-6xb47vfp.js → command-6xb47vfp.js} +1 -1
- package/dist/chunks/{instruction-discovery-38mem431.js → command-70az54m3.js} +31 -31
- package/dist/chunks/{instruction-discovery-kppw7hr6.js → command-754hrxp0.js} +26 -26
- package/dist/chunks/{instruction-discovery-7nazv9sg.js → command-7ad1qpnj.js} +20 -20
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → command-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-2k8khapm.js → command-7dqw4kz8.js} +5 -5
- package/dist/chunks/{instruction-discovery-2san2fa0.js → command-7ffperky.js} +25 -25
- package/dist/chunks/{instruction-discovery-g678yp76.js → command-7fqkjd9x.js} +33 -33
- package/dist/chunks/{instruction-discovery-zkskjjqs.js → command-7qskwz89.js} +18 -18
- package/dist/chunks/{instruction-discovery-wby3r2te.js → command-7rce4ag1.js} +11 -11
- package/dist/chunks/{instruction-discovery-84txncab.js → command-84txncab.js} +1 -1
- package/dist/chunks/{instruction-discovery-xk3qqngr.js → command-886t639t.js} +11 -11
- package/dist/chunks/{instruction-discovery-svysebdv.js → command-8akyxt9x.js} +180 -180
- package/dist/chunks/{instruction-discovery-vhjwdtv8.js → command-8c2fejh3.js} +45 -45
- package/dist/chunks/{instruction-discovery-d15wnv4q.js → command-8dmft94a.js} +16 -16
- package/dist/chunks/{instruction-discovery-zamq423t.js → command-8k7cnv0y.js} +1 -1
- package/dist/chunks/{instruction-discovery-8m6m0r52.js → command-8m6m0r52.js} +1 -1
- package/dist/chunks/{instruction-discovery-gjqhxvm8.js → command-8nehyppj.js} +18 -18
- package/dist/chunks/{instruction-discovery-91qna3x0.js → command-91qna3x0.js} +3 -3
- package/dist/chunks/{instruction-discovery-4r59zyn6.js → command-99tgmy8e.js} +36 -36
- package/dist/chunks/{instruction-discovery-terdh6tz.js → command-9a3p6fm2.js} +46 -46
- package/dist/chunks/{instruction-discovery-yc7106p4.js → command-9gz7rpcg.js} +20 -20
- package/dist/chunks/{instruction-discovery-9jcxats4.js → command-9my8cp47.js} +43 -43
- package/dist/chunks/{instruction-discovery-j9ysnh0t.js → command-9rcsrpay.js} +26 -26
- package/dist/chunks/{instruction-discovery-j6a2evck.js → command-9xnzsa35.js} +18 -18
- package/dist/chunks/{instruction-discovery-85z0h67f.js → command-9ygwj23r.js} +16 -16
- package/dist/chunks/{instruction-discovery-4a0nv7mx.js → command-a2qe2ev9.js} +8 -8
- package/dist/chunks/{instruction-discovery-ph842b28.js → command-a89e0tac.js} +4 -4
- package/dist/chunks/{instruction-discovery-wf98qgyv.js → command-apj6cajm.js} +15 -15
- package/dist/chunks/{instruction-discovery-xkfm5vcm.js → command-b1nzd013.js} +2 -2
- package/dist/chunks/{instruction-discovery-wpemy600.js → command-b3d0s7yq.js} +7 -7
- package/dist/chunks/{instruction-discovery-5r4v0xwy.js → command-b4fmh4gz.js} +11 -11
- package/dist/chunks/{instruction-discovery-c5w8pbd1.js → command-bep02zpa.js} +14 -14
- package/dist/chunks/{instruction-discovery-yh9g6p3v.js → command-bz4h3gj4.js} +40 -40
- package/dist/chunks/{instruction-discovery-7dpqhkm4.js → command-c10fq8yw.js} +73 -73
- package/dist/chunks/{instruction-discovery-0bs9zzzx.js → command-c1p4wns8.js} +11 -11
- package/dist/chunks/{instruction-discovery-048wpaqz.js → command-c41h4f8s.js} +3 -3
- package/dist/chunks/{instruction-discovery-c41wscbt.js → command-c41wscbt.js} +2 -2
- package/dist/chunks/{instruction-discovery-djszqvmq.js → command-c765mh8b.js} +9 -9
- package/dist/chunks/{instruction-discovery-c8ax2afj.js → command-c8ax2afj.js} +2 -2
- package/dist/chunks/{instruction-discovery-nbyj5sqq.js → command-cccett8t.js} +91 -91
- package/dist/chunks/{instruction-discovery-gcqzh3f4.js → command-d331akc0.js} +24 -24
- package/dist/chunks/{instruction-discovery-vz2yvhh5.js → command-d8npn8xg.js} +18 -18
- package/dist/chunks/{instruction-discovery-addxnjmp.js → command-db2wf4at.js} +4 -4
- package/dist/chunks/{instruction-discovery-9hy8acjf.js → command-ded7ed65.js} +13 -13
- package/dist/chunks/{instruction-discovery-1th27d95.js → command-dehk00jt.js} +18 -18
- package/dist/chunks/{instruction-discovery-57b9ws8p.js → command-drwq78ky.js} +5 -5
- package/dist/chunks/{instruction-discovery-d0ak8zy9.js → command-dtpvhdth.js} +7 -7
- package/dist/chunks/{instruction-discovery-x5wrmng7.js → command-dys7k0s0.js} +11 -11
- package/dist/chunks/{instruction-discovery-58ytqwj2.js → command-e3mqmg8e.js} +7 -7
- package/dist/chunks/{instruction-discovery-r2a2vjc6.js → command-e53ktggx.js} +45 -45
- package/dist/chunks/{instruction-discovery-qgezrw5d.js → command-e87zkmfq.js} +22 -22
- package/dist/chunks/{instruction-discovery-z5hqtv59.js → command-eaeq0sye.js} +7 -7
- package/dist/chunks/{instruction-discovery-rhjbct0v.js → command-eaj1djv9.js} +8 -8
- package/dist/chunks/{instruction-discovery-e80seqcp.js → command-ed1g29hy.js} +3 -3
- package/dist/chunks/{instruction-discovery-y8ptd9jv.js → command-ee1byx1z.js} +28 -28
- package/dist/chunks/{instruction-discovery-eej6y6fw.js → command-eej6y6fw.js} +2 -2
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → command-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-9w9w77gc.js → command-emhev80g.js} +28 -28
- package/dist/chunks/{instruction-discovery-bt2dtkh7.js → command-eq3njjjt.js} +29 -29
- package/dist/chunks/{instruction-discovery-p097c2sx.js → command-erj4chxm.js} +14 -14
- package/dist/chunks/{instruction-discovery-es1vcfrp.js → command-es1vcfrp.js} +3 -3
- package/dist/chunks/{instruction-discovery-5dkn69vz.js → command-f29mbr7f.js} +4 -4
- package/dist/chunks/{instruction-discovery-wp8sj255.js → command-f4ej5vtm.js} +24 -24
- package/dist/chunks/{instruction-discovery-qhm1kmbp.js → command-f5rky6pw.js} +30 -30
- package/dist/chunks/{instruction-discovery-3dytr8s2.js → command-f6zrmd8m.js} +20 -20
- package/dist/chunks/{instruction-discovery-xz5716ww.js → command-fcs8jd9f.js} +31 -31
- package/dist/chunks/{instruction-discovery-r70na3yp.js → command-g686f6pq.js} +9 -9
- package/dist/chunks/{instruction-discovery-7np5bmja.js → command-gbst0gvm.js} +44 -44
- package/dist/chunks/{instruction-discovery-nzbbc5k0.js → command-gcxv3h2c.js} +10 -10
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → command-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-z6c3x22d.js → command-gj71zhbs.js} +5 -5
- package/dist/chunks/{instruction-discovery-tppqj79j.js → command-gj7khvz3.js} +13 -13
- package/dist/chunks/{instruction-discovery-gk8qb678.js → command-gk8qb678.js} +1 -1
- package/dist/chunks/{instruction-discovery-350x23wf.js → command-gnqwsg0j.js} +9 -9
- package/dist/chunks/{instruction-discovery-71dzwqxr.js → command-gsnj80d9.js} +47 -98
- package/dist/chunks/{instruction-discovery-rtbh45rc.js → command-gvxf58ty.js} +13 -13
- package/dist/chunks/command-gzksc6e4.js +26 -0
- package/dist/chunks/{instruction-discovery-5hj7q0js.js → command-h3k0sdzw.js} +9 -9
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → command-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-b4s8ej7r.js → command-h71w788e.js} +9 -9
- package/dist/chunks/{instruction-discovery-ky9vbweg.js → command-hatca7p1.js} +25 -25
- package/dist/chunks/{instruction-discovery-scgrse2b.js → command-hdkng2sj.js} +5 -5
- package/dist/chunks/{instruction-discovery-h04zhhvt.js → command-hes1j7ga.js} +9 -9
- package/dist/chunks/{instruction-discovery-hgz4x7wa.js → command-hgz4x7wa.js} +1 -1
- package/dist/chunks/{instruction-discovery-rwbpmje9.js → command-hqb6mdaz.js} +26 -26
- package/dist/chunks/{instruction-discovery-ykmz0d95.js → command-hrvrjbe0.js} +5 -5
- package/dist/chunks/{instruction-discovery-y147vcw1.js → command-hvtsap7v.js} +17 -17
- package/dist/chunks/{instruction-discovery-2vr7dket.js → command-hy8hfmse.js} +5 -5
- package/dist/chunks/{instruction-discovery-k2xcv0kf.js → command-hyzzdb65.js} +12 -12
- package/dist/chunks/{instruction-discovery-1qs5jxd8.js → command-hzs77mdg.js} +16 -16
- package/dist/chunks/{instruction-discovery-j56e64zr.js → command-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-vky023fh.js → command-ja2a058e.js} +4 -4
- package/dist/chunks/{instruction-discovery-2ryng5r3.js → command-jdz4qjxc.js} +4 -4
- package/dist/chunks/{instruction-discovery-c8ses4bc.js → command-jnyt3wvk.js} +13 -13
- package/dist/chunks/{instruction-discovery-dzdcg5g9.js → command-k085ax4w.js} +11 -11
- package/dist/chunks/{instruction-discovery-r75v65gt.js → command-k3cg02ta.js} +5 -5
- package/dist/chunks/{instruction-discovery-r8kkzarz.js → command-ke0v1s51.js} +41 -41
- package/dist/chunks/{instruction-discovery-khmqacep.js → command-khmqacep.js} +1 -1
- package/dist/chunks/{instruction-discovery-mnv9vkrs.js → command-kwbgkw7p.js} +3 -3
- package/dist/chunks/{instruction-discovery-dtqg9ce1.js → command-kzdcqyn1.js} +5 -5
- package/dist/chunks/{instruction-discovery-jgbvdr9r.js → command-m1q8be4e.js} +4 -4
- package/dist/chunks/{instruction-discovery-j47qf441.js → command-m7jak9xg.js} +20 -20
- package/dist/chunks/{instruction-discovery-zest4r3s.js → command-m9r522wj.js} +23 -23
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → command-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-sp61bypy.js → command-mm236w6k.js} +17 -17
- package/dist/chunks/{instruction-discovery-ereph1h9.js → command-mq9nb5yf.js} +17 -17
- package/dist/chunks/{instruction-discovery-b6qa6035.js → command-mxv0ahxn.js} +31 -31
- package/dist/chunks/{instruction-discovery-dhhqcq64.js → command-mzydhjeg.js} +11 -11
- package/dist/chunks/{instruction-discovery-8gxqpgph.js → command-n4r3xatb.js} +4 -4
- package/dist/chunks/{instruction-discovery-0n8a0ffz.js → command-n7syarbg.js} +6 -6
- package/dist/chunks/{instruction-discovery-h4ps1sgr.js → command-n8cj0r05.js} +3 -3
- package/dist/chunks/{instruction-discovery-ketq9gmb.js → command-n94jt7k6.js} +11 -11
- package/dist/chunks/{instruction-discovery-na4dcjrg.js → command-ngkkqbqm.js} +26 -26
- package/dist/chunks/{instruction-discovery-ge2q9s3y.js → command-njrwvgpc.js} +11 -11
- package/dist/chunks/{instruction-discovery-adejxgct.js → command-npvtjmwq.js} +15 -15
- package/dist/chunks/{instruction-discovery-eefd4g5w.js → command-nr7p0et9.js} +5 -5
- package/dist/chunks/{instruction-discovery-n3aya5hh.js → command-nrxc3w5k.js} +32 -32
- package/dist/chunks/{instruction-discovery-h11z96pq.js → command-nt0mjwaw.js} +11 -11
- package/dist/chunks/{instruction-discovery-qyjj4w9t.js → command-nz5tb3mz.js} +13 -13
- package/dist/chunks/{instruction-discovery-vt28d6rb.js → command-p267qznr.js} +32 -32
- package/dist/chunks/{instruction-discovery-cmwkp3r5.js → command-p42hj8p8.js} +8 -8
- package/dist/chunks/{instruction-discovery-ch67yd34.js → command-p51cfpkz.js} +11 -11
- package/dist/chunks/{instruction-discovery-sddgd5f8.js → command-p6dnv1qh.js} +20 -20
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → command-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → command-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-4swz1dz7.js → command-pv5w45yn.js} +11 -11
- package/dist/chunks/{instruction-discovery-wnk72qpq.js → command-pz0ytm9k.js} +5 -5
- package/dist/chunks/{instruction-discovery-0j77ygfz.js → command-q0xm7vwc.js} +6 -6
- package/dist/chunks/{instruction-discovery-jhdf29st.js → command-q5e7cmwt.js} +1 -1
- package/dist/chunks/{instruction-discovery-q78nszrx.js → command-qkb6y1tc.js} +30 -30
- package/dist/chunks/{instruction-discovery-26n2nh92.js → command-qmwxrq4q.js} +3 -3
- package/dist/chunks/{instruction-discovery-qnc92qwc.js → command-qnc92qwc.js} +1 -1
- package/dist/chunks/{instruction-discovery-qsdy395h.js → command-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-8evda89h.js → command-r0p853b9.js} +29 -29
- package/dist/chunks/command-r5tpv63y.js +513 -0
- package/dist/chunks/{instruction-discovery-2ewrd21j.js → command-r6a4azr4.js} +11 -11
- package/dist/chunks/{instruction-discovery-yp2x3t23.js → command-r8xr0va3.js} +4 -4
- package/dist/chunks/{instruction-discovery-88qvqy1e.js → command-r9vebypt.js} +17 -17
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → command-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-v8pa3zp8.js → command-reevcg95.js} +18 -18
- package/dist/chunks/{instruction-discovery-69enf89f.js → command-rg90hx5t.js} +24 -24
- package/dist/chunks/{instruction-discovery-z4dcjezs.js → command-rhv7vgb3.js} +11 -11
- package/dist/chunks/{instruction-discovery-1p07q0wb.js → command-rkprpv83.js} +4 -4
- package/dist/chunks/{instruction-discovery-gq58s3m0.js → command-rmpnsk58.js} +25 -25
- package/dist/chunks/{instruction-discovery-nqxj0yn4.js → command-rqa1jxse.js} +2 -2
- package/dist/chunks/{instruction-discovery-fng9jkm1.js → command-rvea9875.js} +9 -9
- package/dist/chunks/{instruction-discovery-qa3qhgw8.js → command-ryr25ayn.js} +4 -4
- package/dist/chunks/{instruction-discovery-tym1zfxs.js → command-s5phpar0.js} +9 -9
- package/dist/chunks/{instruction-discovery-204e7tx6.js → command-s98w7xaq.js} +13 -13
- package/dist/chunks/{instruction-discovery-2jtaszgg.js → command-sd66kwnn.js} +8 -8
- package/dist/chunks/{instruction-discovery-xzdfrpe2.js → command-sefmw985.js} +26 -26
- package/dist/chunks/{instruction-discovery-wvej1134.js → command-sf0yp864.js} +6 -6
- package/dist/chunks/{instruction-discovery-7vsab7jg.js → command-sf6256ff.js} +4 -4
- package/dist/chunks/{instruction-discovery-yng1p9nw.js → command-sg56rmc9.js} +9 -9
- package/dist/chunks/{instruction-discovery-5qec7rge.js → command-sgfee8yb.js} +5 -5
- package/dist/chunks/{instruction-discovery-mf2nfva2.js → command-snnejgvy.js} +17 -17
- package/dist/chunks/{instruction-discovery-xacpwdh9.js → command-svcw9x3w.js} +8 -8
- package/dist/chunks/{instruction-discovery-vw6bdczd.js → command-sx7mvmwx.js} +5 -5
- package/dist/chunks/{instruction-discovery-syv4x271.js → command-syv4x271.js} +1 -1
- package/dist/chunks/{instruction-discovery-j4c2xja6.js → command-t4g07myj.js} +13 -13
- package/dist/chunks/{instruction-discovery-2hqksm5k.js → command-t5mnyv20.js} +3 -3
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → command-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → command-tcezcvh9.js} +1 -1
- package/dist/chunks/{instruction-discovery-2j1vbg91.js → command-tdcm2knz.js} +31 -31
- package/dist/chunks/{instruction-discovery-tdstcens.js → command-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-tkb22qbm.js → command-tkb22qbm.js} +2 -2
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → command-tm0kqsz3.js} +26 -2
- package/dist/chunks/{instruction-discovery-mkkx2xvk.js → command-trs4csaq.js} +29 -29
- package/dist/chunks/{instruction-discovery-2c7hjkzv.js → command-ts860kc8.js} +17 -17
- package/dist/chunks/{instruction-discovery-tyytaxap.js → command-tyytaxap.js} +1 -1
- package/dist/chunks/{instruction-discovery-v0es1rhs.js → command-v0es1rhs.js} +2 -2
- package/dist/chunks/{instruction-discovery-v7p4zvkq.js → command-v7p4zvkq.js} +2 -2
- package/dist/chunks/{instruction-discovery-s9bfrye6.js → command-vdwvtvgk.js} +56 -56
- package/dist/chunks/{instruction-discovery-0cz3jc0p.js → command-vea3bt9n.js} +8 -8
- package/dist/chunks/{instruction-discovery-veqvce7d.js → command-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-5a9zf81m.js → command-vy8bzexn.js} +22 -22
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → command-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → command-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-1j6m29mr.js → command-waskdk5r.js} +9 -9
- package/dist/chunks/{instruction-discovery-wd87259q.js → command-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-g0z1em0w.js → command-wggd68j5.js} +4 -4
- package/dist/chunks/{instruction-discovery-aahhmcvt.js → command-wh1armcy.js} +32 -32
- package/dist/chunks/{instruction-discovery-4xpgt2w9.js → command-wh6zw745.js} +5 -5
- package/dist/chunks/{instruction-discovery-bjx1sjef.js → command-wjr9rjd7.js} +6 -6
- package/dist/chunks/{instruction-discovery-mbkrq27a.js → command-wkrrhx1g.js} +18 -18
- package/dist/chunks/{instruction-discovery-81gd8ewx.js → command-wtkbvwtp.js} +25 -25
- package/dist/chunks/{instruction-discovery-tvmrjeqd.js → command-wymw8b6n.js} +12 -12
- package/dist/chunks/{instruction-discovery-ksqr7yfe.js → command-x4e9fr25.js} +7 -7
- package/dist/chunks/{instruction-discovery-n3jw88fx.js → command-x7m2pq7s.js} +9 -9
- package/dist/chunks/{instruction-discovery-1sc6p60b.js → command-x7q2mydz.js} +6 -6
- package/dist/chunks/command-x8196b4w.js +253 -0
- package/dist/chunks/{instruction-discovery-fz79ktw5.js → command-xmmcf9bt.js} +5 -5
- package/dist/chunks/{instruction-discovery-d9kdwp41.js → command-xpgsdcx2.js} +8 -8
- package/dist/chunks/{instruction-discovery-d3sk2mbt.js → command-xxc15cb4.js} +17 -17
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → command-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-jwcy2c2z.js → command-y71avatq.js} +4 -4
- package/dist/chunks/{instruction-discovery-d5fxhgcy.js → command-y7ppa9zv.js} +11 -11
- package/dist/chunks/{instruction-discovery-wr0v3f2s.js → command-y9y6emgs.js} +36 -36
- package/dist/chunks/{instruction-discovery-pw6jj9n3.js → command-yabdq57b.js} +15 -15
- package/dist/chunks/{instruction-discovery-xcd0eash.js → command-ycjb11n5.js} +6 -6
- package/dist/chunks/{instruction-discovery-jpen4qdf.js → command-yk0w1sxf.js} +5 -5
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → command-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-rb0m5pb6.js → command-z463bfa6.js} +22 -22
- package/dist/chunks/{instruction-discovery-zmbx7t07.js → command-z4zmw5wd.js} +47 -47
- package/dist/chunks/{instruction-discovery-dx2h6xhc.js → command-z65krm0a.js} +18 -18
- package/dist/chunks/{instruction-discovery-171zjyze.js → command-zc7432er.js} +31 -31
- package/dist/chunks/{instruction-discovery-pznx5chc.js → command-zkgp92a0.js} +19 -19
- package/dist/chunks/{instruction-discovery-w96a8yrh.js → command-zmekajch.js} +19 -19
- package/dist/chunks/{instruction-discovery-wt4s349c.js → command-zq51jzx2.js} +22 -22
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → command-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-z2qawcf3.js → command-zryp2me0.js} +23 -23
- package/dist/chunks/{instruction-discovery-2jb6nwe1.js → command-ztm4jwfz.js} +4 -4
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → command-zxq2ej10.js} +1 -1
- package/dist/chunks/{instruction-discovery-j34bs4nz.js → command-zy43x3f1.js} +4 -4
- package/dist/chunks/{instruction-discovery-wwyp4jt6.js → command-zyfyd078.js} +8 -8
- package/dist/chunks/{instruction-discovery-jvx148y3.js → command-zynkq0bw.js} +11 -11
- package/dist/chunks/{instruction-discovery-prhrtzb1.js → command-zzqs5kr4.js} +55 -55
- 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 +84 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +120 -120
- package/dist/config/plugin/command.js +209 -209
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +92 -92
- package/dist/config/plugin/location-watcher.js +120 -120
- package/dist/config/plugin/mcp.js +127 -127
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +74 -74
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +368 -368
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +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 +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- 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 +222 -222
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +108 -108
- package/dist/form.js +76 -76
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +105 -105
- package/dist/git.js +8 -8
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +359 -359
- package/dist/instruction-discovery.js +85 -85
- 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 +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +356 -356
- package/dist/location.js +85 -85
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- 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 +101 -101
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- 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 +213 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +119 -119
- 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 +118 -119
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +96 -96
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +116 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- 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 +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- 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 +127 -127
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +99 -99
- 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 +92 -92
- 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 +117 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +169 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +116 -116
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +220 -220
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +84 -84
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +93 -93
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +135 -135
- 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 +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +92 -92
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +226 -226
- 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 +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +132 -132
- 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 +207 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +212 -212
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- 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 +11 -11
- package/dist/shell.js +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +110 -110
- 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 +130 -130
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +122 -122
- 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 +107 -107
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +214 -214
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- 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 +16 -16
- package/dist/types/plugin/provider/azure.d.ts +2 -3
- package/dist/types/v1/config/migrate.d.ts +9 -3
- package/dist/types/v1/config/provider-options.d.ts +8 -0
- 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/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +3 -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/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +96 -96
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-34hyh64q.js +0 -253
- package/dist/chunks/instruction-discovery-6xgwma86.js +0 -26
- package/dist/chunks/instruction-discovery-jqh9b0xq.js +0 -18
- package/dist/chunks/instruction-discovery-p1z95xa2.js +0 -513
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → command-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → command-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → command-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → command-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → command-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → command-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → command-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → command-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2bv980vf.js → command-2bv980vf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → command-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → command-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → command-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3t0ybcrp.js → command-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → command-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → command-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → command-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → command-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → command-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → command-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → command-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → command-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → command-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → command-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → command-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → command-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → command-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-84wd9syh.js → command-84wd9syh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → command-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → command-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → command-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → command-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → command-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → command-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → command-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → command-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → command-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → command-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → command-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → command-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bw78ga2c.js → command-bw78ga2c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → command-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → command-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → command-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → command-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → command-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → command-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → command-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → command-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → command-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → command-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → command-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → command-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → command-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → command-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → command-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → command-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → command-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → command-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → command-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → command-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → command-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → command-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → command-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → command-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → command-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → command-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → command-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jze0r7bz.js → command-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → command-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-m18g726c.js → command-m18g726c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → command-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → command-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → command-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → command-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → command-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-pkyv6v7h.js → command-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-pyv0edze.js → command-pyv0edze.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → command-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → command-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → command-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → command-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → command-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → command-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → command-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → command-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → command-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → command-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ve7vex1e.js → command-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → command-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → command-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → command-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → command-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → command-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → command-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → command-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → command-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → command-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → command-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → command-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → command-z9919s4g.js} +0 -0
|
@@ -1,47 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-7rce4ag1.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-b4fmh4gz.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
8
|
+
ID11,
|
|
9
|
+
Event16,
|
|
10
|
+
Service70
|
|
11
|
+
} from "./command-wh1armcy.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./command-db2wf4at.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID10,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./command-zc7432er.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./command-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
ID9,
|
|
24
|
+
Service68
|
|
25
|
+
} from "./command-70az54m3.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
29
|
-
import {
|
|
30
|
-
iife2
|
|
31
|
-
} from "./instruction-discovery-1kg9ymc8.js";
|
|
27
|
+
ID8
|
|
28
|
+
} from "./command-trs4csaq.js";
|
|
32
29
|
import {
|
|
33
30
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
31
|
+
} from "./command-x7q2mydz.js";
|
|
35
32
|
|
|
36
33
|
// src/plugin/provider/azure.ts
|
|
37
34
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
38
35
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
39
36
|
import { ChildProcess } from "effect/process";
|
|
40
|
-
import path from "node:path";
|
|
41
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
42
38
|
import { Form } from "@opencode/schema/form";
|
|
43
|
-
import { FSUtil } from "@opencode/util/fs-util";
|
|
44
|
-
import { Global } from "@opencode/util/global";
|
|
45
39
|
import { AppProcess } from "@opencode/util/process";
|
|
46
40
|
var cognitiveScope = "https://cognitiveservices.azure.com/.default";
|
|
47
41
|
var foundryScope = "https://ai.azure.com/.default";
|
|
@@ -67,27 +61,20 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
|
|
|
67
61
|
provisioningState: Schema.String
|
|
68
62
|
})
|
|
69
63
|
}));
|
|
70
|
-
var ResourceQuery = Schema.Struct({
|
|
71
|
-
query: Schema.String,
|
|
72
|
-
options: Schema.optional(Schema.Struct({ $top: Schema.Number }))
|
|
73
|
-
});
|
|
64
|
+
var ResourceQuery = Schema.Struct({ query: Schema.String });
|
|
74
65
|
var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
|
|
75
|
-
|
|
76
|
-
var decodeProfile = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Struct({ subscriptions: Schema.NonEmptyArray(Schema.Unknown) })));
|
|
77
|
-
var decodeResourceListing = Schema.decodeUnknownOption(Schema.Struct({ resourceName: Schema.NonEmptyString, resourceGroup: Schema.String, location: Schema.String }));
|
|
78
|
-
function make7(endpoints = {
|
|
66
|
+
function make9(endpoints = {
|
|
79
67
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
80
68
|
management: "https://management.azure.com"
|
|
81
69
|
}) {
|
|
82
70
|
return define({
|
|
83
71
|
id: "opencode.provider.azure",
|
|
84
72
|
effect: Effect.fn(function* (ctx) {
|
|
85
|
-
const configured = yield* configuredSettings2(
|
|
73
|
+
const configured = yield* configuredSettings2(ID9.azure);
|
|
86
74
|
const processes = yield* AppProcess.Service;
|
|
87
|
-
const fs = yield* FSUtil.Service;
|
|
88
75
|
const bus = yield* Service84;
|
|
89
|
-
const credentials = yield*
|
|
90
|
-
const providers = yield*
|
|
76
|
+
const credentials = yield* Service70;
|
|
77
|
+
const providers = yield* Service68;
|
|
91
78
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
92
79
|
const tokens = new Map;
|
|
93
80
|
const resourceIDs = new Map;
|
|
@@ -111,14 +98,13 @@ function make7(endpoints = {
|
|
|
111
98
|
const management = (request) => token(managementScope).pipe(Effect.flatMap((current) => http.execute(request.pipe(HttpClientRequest.bearerToken(current.access), HttpClientRequest.acceptJson, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app))))));
|
|
112
99
|
const available = Boolean(which2("az"));
|
|
113
100
|
const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
|
|
114
|
-
const listing = {};
|
|
115
101
|
yield* ctx.integration.transform((editor) => {
|
|
116
102
|
editor.method.update({
|
|
117
|
-
integrationID:
|
|
103
|
+
integrationID: ID9.azure,
|
|
118
104
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
119
105
|
});
|
|
120
106
|
editor.method.update({
|
|
121
|
-
integrationID:
|
|
107
|
+
integrationID: ID9.azure,
|
|
122
108
|
method: {
|
|
123
109
|
type: "key",
|
|
124
110
|
label: "API key",
|
|
@@ -136,7 +122,7 @@ function make7(endpoints = {
|
|
|
136
122
|
if (!available)
|
|
137
123
|
return;
|
|
138
124
|
editor.method.update({
|
|
139
|
-
integrationID:
|
|
125
|
+
integrationID: ID9.azure,
|
|
140
126
|
method: {
|
|
141
127
|
id: methodID,
|
|
142
128
|
type: "external",
|
|
@@ -149,23 +135,15 @@ function make7(endpoints = {
|
|
|
149
135
|
placeholder: "e.g. my-models",
|
|
150
136
|
required: true,
|
|
151
137
|
pattern: resourcePattern.source,
|
|
152
|
-
|
|
153
|
-
if (!listing.resources)
|
|
154
|
-
return { description: "Requests use your `az login` session." };
|
|
155
|
-
if (listing.resources.length === 0)
|
|
156
|
-
return {
|
|
157
|
-
description: "No Azure OpenAI or AI Services resources found for your `az login` account."
|
|
158
|
-
};
|
|
159
|
-
return { custom: true, options: listing.resources };
|
|
160
|
-
})
|
|
138
|
+
description: "Enter the name of your Azure OpenAI or AI Services resource."
|
|
161
139
|
}
|
|
162
140
|
])
|
|
163
141
|
}
|
|
164
142
|
});
|
|
165
143
|
});
|
|
166
144
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
167
|
-
const connection = yield* ctx.integration.connection.active(
|
|
168
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
145
|
+
const connection = yield* ctx.integration.connection.active(ID9.azure);
|
|
146
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID11.make(connection.id)) : undefined;
|
|
169
147
|
return { connection, resource: credentialResource(stored?.value) };
|
|
170
148
|
});
|
|
171
149
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -204,7 +182,7 @@ function make7(endpoints = {
|
|
|
204
182
|
}));
|
|
205
183
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
206
184
|
const connection = loaded.connection;
|
|
207
|
-
const settings = (yield* providers.get(
|
|
185
|
+
const settings = (yield* providers.get(ID9.azure))?.settings;
|
|
208
186
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
209
187
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
210
188
|
if (loaded.connection !== connection)
|
|
@@ -226,11 +204,11 @@ function make7(endpoints = {
|
|
|
226
204
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
227
205
|
if (!found)
|
|
228
206
|
return;
|
|
229
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
207
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID9.azure)))
|
|
230
208
|
return;
|
|
231
209
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
232
210
|
return;
|
|
233
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
211
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID9.azure)?.models.keys() ?? [], (id) => [
|
|
234
212
|
id.toLowerCase(),
|
|
235
213
|
id
|
|
236
214
|
]));
|
|
@@ -243,32 +221,11 @@ function make7(endpoints = {
|
|
|
243
221
|
yield* ctx.model.reload();
|
|
244
222
|
});
|
|
245
223
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
246
|
-
const resourceFor = (provider) => provider.id ===
|
|
224
|
+
const resourceFor = (provider) => provider.id === ID9.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
247
225
|
Object.assign(loaded, yield* load());
|
|
248
|
-
const listResources = Effect.fn("AzurePlugin.listResources")(function* () {
|
|
249
|
-
const profile = yield* fs.readFileStringSafe(path.join(process.env.AZURE_CONFIG_DIR ?? path.join(Global.Path.home, ".azure"), "azureProfile.json"));
|
|
250
|
-
if (Option.isNone(decodeProfile(profile?.replace(/^\uFEFF/, ""))))
|
|
251
|
-
return;
|
|
252
|
-
const response = yield* HttpClientRequest.post(`${endpoints.management}/providers/Microsoft.ResourceGraph/resources?api-version=2022-10-01`).pipe(HttpClientRequest.schemaBodyJson(ResourceQuery)({ query: resourceListQuery, options: { $top: 1000 } }), Effect.flatMap(management), Effect.flatMap(HttpClientResponse.schemaBodyJson(ResourceListing)), Effect.timeout("10 seconds"));
|
|
253
|
-
listing.resources = response.data.flatMap((raw) => {
|
|
254
|
-
const item = Option.getOrUndefined(decodeResourceListing(raw));
|
|
255
|
-
if (!item || !resourcePattern.test(item.resourceName))
|
|
256
|
-
return [];
|
|
257
|
-
return [
|
|
258
|
-
{
|
|
259
|
-
value: item.resourceName,
|
|
260
|
-
label: item.resourceName,
|
|
261
|
-
description: `${item.resourceGroup} · ${item.location}`
|
|
262
|
-
}
|
|
263
|
-
];
|
|
264
|
-
});
|
|
265
|
-
yield* ctx.integration.reload();
|
|
266
|
-
});
|
|
267
|
-
if (available && !configuredResource)
|
|
268
|
-
yield* listResources().pipe(Effect.catch((cause) => Effect.logDebug("failed to list Azure resources", { cause })), Effect.forkScoped);
|
|
269
226
|
yield* ctx.provider.transform((evt) => {
|
|
270
227
|
for (const item of evt.list()) {
|
|
271
|
-
if (item.provider.id !==
|
|
228
|
+
if (item.provider.id !== ID9.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
272
229
|
continue;
|
|
273
230
|
const resourceName = resourceFor(item.provider);
|
|
274
231
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -283,7 +240,7 @@ function make7(endpoints = {
|
|
|
283
240
|
};
|
|
284
241
|
});
|
|
285
242
|
}
|
|
286
|
-
const item = evt.get(
|
|
243
|
+
const item = evt.get(ID9.azure);
|
|
287
244
|
if (!item)
|
|
288
245
|
return;
|
|
289
246
|
evt.add({
|
|
@@ -294,7 +251,7 @@ function make7(endpoints = {
|
|
|
294
251
|
});
|
|
295
252
|
yield* ctx.model.transform((models) => {
|
|
296
253
|
for (const item of models.provider.list()) {
|
|
297
|
-
if (item.provider.id !==
|
|
254
|
+
if (item.provider.id !== ID9.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
298
255
|
continue;
|
|
299
256
|
const resourceName = resourceFor(item.provider);
|
|
300
257
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -306,20 +263,20 @@ function make7(endpoints = {
|
|
|
306
263
|
}
|
|
307
264
|
if (!loaded.deployments)
|
|
308
265
|
return;
|
|
309
|
-
const catalog = models.list(
|
|
266
|
+
const catalog = models.list(ID9.azure);
|
|
310
267
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
311
268
|
for (const model of catalog) {
|
|
312
269
|
if (!deployed.has(model.id))
|
|
313
|
-
models.remove(
|
|
270
|
+
models.remove(ID9.azure, model.id);
|
|
314
271
|
}
|
|
315
272
|
for (const [id, model] of deployed) {
|
|
316
|
-
models.update(
|
|
273
|
+
models.update(ID9.azure, id, (draft) => Object.assign(draft, model));
|
|
317
274
|
}
|
|
318
275
|
});
|
|
319
|
-
yield* bus.subscribe(
|
|
276
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
320
277
|
yield* refresh().pipe(Effect.forkScoped);
|
|
321
278
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
322
|
-
const connection = yield* ctx.integration.connection.active(
|
|
279
|
+
const connection = yield* ctx.integration.connection.active(ID9.azure);
|
|
323
280
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
324
281
|
return;
|
|
325
282
|
})) : undefined;
|
|
@@ -331,7 +288,7 @@ function make7(endpoints = {
|
|
|
331
288
|
return `Bearer ${current.access}`;
|
|
332
289
|
});
|
|
333
290
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
334
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID9.azure)
|
|
335
292
|
return;
|
|
336
293
|
const authorization = yield* bearer(evt.request.url);
|
|
337
294
|
if (!authorization)
|
|
@@ -340,9 +297,9 @@ function make7(endpoints = {
|
|
|
340
297
|
evt.request.headers.delete("x-api-key");
|
|
341
298
|
evt.request.headers.set("authorization", authorization);
|
|
342
299
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
343
|
-
}), { providerID:
|
|
300
|
+
}), { providerID: ID9.azure });
|
|
344
301
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
345
|
-
if (evt.model.providerID !==
|
|
302
|
+
if (evt.model.providerID !== ID9.azure)
|
|
346
303
|
return;
|
|
347
304
|
const authorization = yield* bearer(evt.url);
|
|
348
305
|
if (!authorization)
|
|
@@ -351,11 +308,11 @@ function make7(endpoints = {
|
|
|
351
308
|
delete evt.headers["x-api-key"];
|
|
352
309
|
evt.headers.authorization = authorization;
|
|
353
310
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
354
|
-
}), { providerID:
|
|
311
|
+
}), { providerID: ID9.azure });
|
|
355
312
|
})
|
|
356
313
|
});
|
|
357
314
|
}
|
|
358
|
-
var AzurePlugin2 =
|
|
315
|
+
var AzurePlugin2 = make9();
|
|
359
316
|
function resolveResourceName(settings, fallback) {
|
|
360
317
|
const configured = settings?.resourceName;
|
|
361
318
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -369,14 +326,6 @@ function credentialResource(credential) {
|
|
|
369
326
|
const resource = credential?.type === "key" ? credential.configuration?.resourceName ?? credential.metadata?.resourceName : credential?.type === "external" && credential.methodID === methodID ? credential.metadata?.resourceName : undefined;
|
|
370
327
|
return typeof resource === "string" && resource.trim() !== "" ? resource : undefined;
|
|
371
328
|
}
|
|
372
|
-
var resourceListQuery = [
|
|
373
|
-
"resources",
|
|
374
|
-
"| where type =~ 'microsoft.cognitiveservices/accounts' and kind in~ ('AIServices', 'OpenAI')",
|
|
375
|
-
"| extend resourceName = tostring(properties.customSubDomainName)",
|
|
376
|
-
"| where isnotempty(resourceName)",
|
|
377
|
-
"| project resourceName, resourceGroup, location",
|
|
378
|
-
"| order by resourceName asc"
|
|
379
|
-
].join(" ");
|
|
380
329
|
function resourceQuery(resource) {
|
|
381
330
|
return [
|
|
382
331
|
"resources",
|
|
@@ -393,11 +342,11 @@ function deployedModels(deployments, catalog) {
|
|
|
393
342
|
const model = catalogModel(models, deployment);
|
|
394
343
|
if (!model)
|
|
395
344
|
return [];
|
|
396
|
-
const id =
|
|
345
|
+
const id = ID8.make(deployment.name.toLowerCase());
|
|
397
346
|
const info = {
|
|
398
347
|
...structuredClone(model),
|
|
399
348
|
id,
|
|
400
|
-
modelID:
|
|
349
|
+
modelID: ID8.make(deployment.name),
|
|
401
350
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
402
351
|
};
|
|
403
352
|
return [[id, info]];
|
|
@@ -419,4 +368,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
419
368
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
420
369
|
}
|
|
421
370
|
|
|
422
|
-
export {
|
|
371
|
+
export { make9, AzurePlugin2 };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service64,
|
|
3
|
+
node68
|
|
4
|
+
} from "./command-8c2fejh3.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionSchema2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./command-48kw51zw.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./command-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/session/runner/model.ts
|
|
13
13
|
var exports_model = {};
|
|
14
14
|
__export(exports_model, {
|
|
15
15
|
ModelNotSelectedError: () => ModelNotSelectedError2,
|
|
16
16
|
ModelUnavailableError: () => ModelUnavailableError2,
|
|
17
|
-
Service: () =>
|
|
17
|
+
Service: () => Service62,
|
|
18
18
|
SessionRunnerModel: () => exports_model,
|
|
19
|
-
node: () =>
|
|
19
|
+
node: () => node66,
|
|
20
20
|
resolved: () => resolved2
|
|
21
21
|
});
|
|
22
22
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -39,7 +39,7 @@ class ModelUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.Mo
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service62 extends Context.Service()("@opencode/SessionRunnerModel") {
|
|
43
43
|
}
|
|
44
44
|
var resolved2 = (model, options) => ({
|
|
45
45
|
model,
|
|
@@ -54,9 +54,9 @@ var resolved2 = (model, options) => ({
|
|
|
54
54
|
compaction: options.compaction,
|
|
55
55
|
transport: options.transport
|
|
56
56
|
});
|
|
57
|
-
var layer = Layer.effect(
|
|
58
|
-
const resolver = yield*
|
|
59
|
-
return
|
|
57
|
+
var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
58
|
+
const resolver = yield* Service64;
|
|
59
|
+
return Service62.of({
|
|
60
60
|
resolve: Effect.fn("SessionRunnerModel.resolve")(function* (session, available) {
|
|
61
61
|
if (!session.model) {
|
|
62
62
|
const resolved = yield* resolver.resolve();
|
|
@@ -74,6 +74,6 @@ var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
74
74
|
})
|
|
75
75
|
});
|
|
76
76
|
}));
|
|
77
|
-
var
|
|
77
|
+
var node66 = makeLocationNode({ service: Service62, layer, deps: [node68] });
|
|
78
78
|
|
|
79
|
-
export { ModelNotSelectedError2, ModelUnavailableError2,
|
|
79
|
+
export { ModelNotSelectedError2, ModelUnavailableError2, Service62, resolved2, node66, exports_model };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Plugin24
|
|
3
|
+
} from "./command-pz0ytm9k.js";
|
|
4
|
+
import {
|
|
5
|
+
Plugin21
|
|
6
|
+
} from "./command-rvea9875.js";
|
|
7
|
+
import {
|
|
8
|
+
Plugin22
|
|
9
|
+
} from "./command-x7m2pq7s.js";
|
|
10
|
+
import {
|
|
11
|
+
Plugin20
|
|
12
|
+
} from "./command-xpgsdcx2.js";
|
|
13
|
+
import {
|
|
14
|
+
Plugin23
|
|
15
|
+
} from "./command-6w6dyk7v.js";
|
|
16
|
+
|
|
17
|
+
// src/plugin/websearch/index.ts
|
|
18
|
+
var WebSearchPlugins2 = [
|
|
19
|
+
Plugin24,
|
|
20
|
+
Plugin21,
|
|
21
|
+
Plugin22,
|
|
22
|
+
Plugin20,
|
|
23
|
+
Plugin23
|
|
24
|
+
];
|
|
25
|
+
|
|
26
|
+
export { WebSearchPlugins2 };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-48kw51zw.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./command-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/session/error.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
12
|
+
var exports_error2 = {};
|
|
13
|
+
__export(exports_error2, {
|
|
14
14
|
AgentNotFoundError: () => AgentNotFoundError2,
|
|
15
15
|
AttachmentError: () => AttachmentError2,
|
|
16
16
|
BusyError: () => BusyError2,
|
|
@@ -19,9 +19,9 @@ __export(exports_error, {
|
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
20
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
21
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
|
-
NotFoundError: () =>
|
|
22
|
+
NotFoundError: () => NotFoundError9,
|
|
23
23
|
PromptConflictError: () => PromptConflictError2,
|
|
24
|
-
SessionErrors: () =>
|
|
24
|
+
SessionErrors: () => exports_error2,
|
|
25
25
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
26
26
|
StepFailedError: () => StepFailedError2,
|
|
27
27
|
SyntheticConflictError: () => SyntheticConflictError2
|
|
@@ -31,7 +31,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
31
31
|
import { Skill } from "@opencode/schema/skill";
|
|
32
32
|
import { SessionError } from "@opencode/schema/session-error";
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class NotFoundError9 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
35
35
|
sessionID: SessionSchema2.ID
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
@@ -116,4 +116,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
116
116
|
}) {
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
export {
|
|
119
|
+
export { NotFoundError9, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error2 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-y71avatq.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/update.ts
|
|
9
9
|
var exports_update = {};
|
|
10
10
|
__export(exports_update, {
|
|
11
11
|
PluginUpdate: () => exports_update,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service6,
|
|
13
|
+
node: () => node8
|
|
14
14
|
});
|
|
15
15
|
import { Clock, Context, Effect, Exit, Layer, Option, PubSub, Stream } from "effect";
|
|
16
16
|
import { Npm } from "@opencode/util/npm";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var interval = 24 * 60 * 60 * 1000;
|
|
19
19
|
|
|
20
|
-
class
|
|
20
|
+
class Service6 extends Context.Service()("@opencode/PluginUpdate") {
|
|
21
21
|
}
|
|
22
|
-
var layer = Layer.effect(
|
|
22
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
23
23
|
const npm = yield* Npm.Service;
|
|
24
24
|
const locks = makeUnsafe2();
|
|
25
25
|
const status = new Map;
|
|
26
26
|
const changes = yield* PubSub.unbounded();
|
|
27
|
-
return
|
|
27
|
+
return Service6.of({
|
|
28
28
|
check: (target, options) => locks.withLock(target)(Effect.gen(function* () {
|
|
29
29
|
const checkedAt = yield* Clock.currentTimeMillis;
|
|
30
30
|
const current = status.get(target);
|
|
@@ -49,6 +49,6 @@ var layer = Layer.effect(Service4, Effect.gen(function* () {
|
|
|
49
49
|
changes: () => Stream.fromPubSub(changes)
|
|
50
50
|
});
|
|
51
51
|
}));
|
|
52
|
-
var
|
|
52
|
+
var node8 = makeGlobalNode({ service: Service6, layer, deps: [Npm.node] });
|
|
53
53
|
|
|
54
|
-
export {
|
|
54
|
+
export { Service6, node8, exports_update };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service55,
|
|
3
|
+
node59
|
|
4
|
+
} from "./command-f4ej5vtm.js";
|
|
5
5
|
import {
|
|
6
6
|
Service81,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
node85
|
|
8
|
+
} from "./command-x4e9fr25.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service54,
|
|
11
|
+
node58
|
|
12
|
+
} from "./command-bz4h3gj4.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./command-zxq2ej10.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./command-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/source.ts
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service4,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer5,
|
|
28
|
+
node: () => node6
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,11 +33,11 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service4 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer5 = Layer.effect(Service4, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service54;
|
|
40
|
+
const watcher = yield* Service55;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
42
|
const location = yield* Service81;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
@@ -58,7 +58,7 @@ var layer6 = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service4.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer6 = Layer.effect(Service6, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node6 = makeLocationNode({
|
|
74
|
+
service: Service4,
|
|
75
|
+
layer: layer5,
|
|
76
|
+
deps: [node58, FSUtil.node, node59, node85]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service4,
|
|
80
|
+
layer: Layer.succeed(Service4, Service4.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service4, layer5, node6, empty2, exports_source };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./command-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./command-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/retry.ts
|
|
9
9
|
var exports_retry = {};
|
|
10
10
|
__export(exports_retry, {
|
|
11
11
|
SessionRunnerRetry: () => exports_retry,
|
|
12
12
|
isRetryable: () => isRetryable2,
|
|
13
|
-
make: () =>
|
|
13
|
+
make: () => make6,
|
|
14
14
|
policy: () => policy2
|
|
15
15
|
});
|
|
16
16
|
import { isRetryable as isRetryable2 } from "@opencode/ai";
|
|
@@ -60,7 +60,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
|
|
|
60
60
|
return { retry: true, attempt, delay: normalized };
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
var
|
|
63
|
+
var make6 = (bus, sessionID) => Effect.gen(function* () {
|
|
64
64
|
const decide = yield* policy2(sessionID);
|
|
65
65
|
const wait = (input) => Effect.gen(function* () {
|
|
66
66
|
const scheduled = yield* Clock.currentTimeMillis;
|
|
@@ -77,4 +77,4 @@ var make9 = (bus, sessionID) => Effect.gen(function* () {
|
|
|
77
77
|
return { decide, wait };
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export { isRetryable2, policy2,
|
|
80
|
+
export { isRetryable2, policy2, make6, exports_retry };
|