@opencode/core 0.0.0-dev-21382 → 0.0.0-dev-21385
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 +71 -71
- package/dist/chunks/{file-mutation-ke9g58qf.js → variant-01133bs8.js} +13 -13
- package/dist/chunks/{file-mutation-av3f13xe.js → variant-039htanw.js} +11 -11
- package/dist/chunks/{file-mutation-hebc8qwk.js → variant-06m78d2n.js} +20 -20
- package/dist/chunks/{file-mutation-gc69w8x5.js → variant-07s4g8t9.js} +50 -50
- package/dist/chunks/{file-mutation-eh6ej367.js → variant-0cg871e2.js} +5 -5
- package/dist/chunks/{file-mutation-3p8nb07v.js → variant-0g42q639.js} +5 -5
- package/dist/chunks/{file-mutation-xmb5688y.js → variant-0kpfwrjz.js} +31 -31
- package/dist/chunks/{file-mutation-d7q21r69.js → variant-0nxkqgg0.js} +9 -9
- package/dist/chunks/{file-mutation-8aaqm6qj.js → variant-0r684n0p.js} +8 -8
- package/dist/chunks/{file-mutation-5e1pzs32.js → variant-0tmgye68.js} +9 -9
- package/dist/chunks/{file-mutation-0vbcp93d.js → variant-0vbcp93d.js} +2 -2
- package/dist/chunks/variant-0x80k0hx.js +26 -0
- package/dist/chunks/{file-mutation-bz5hym84.js → variant-0y3k4c6h.js} +21 -21
- package/dist/chunks/{file-mutation-a9km70y1.js → variant-172eh8jk.js} +5 -5
- package/dist/chunks/{file-mutation-8m71mjfm.js → variant-17hwac7t.js} +5 -5
- package/dist/chunks/{file-mutation-bwpes1j3.js → variant-1jz3qj6p.js} +24 -24
- package/dist/chunks/{file-mutation-56byzq03.js → variant-1v4wbcc5.js} +9 -9
- package/dist/chunks/{file-mutation-khmqacep.js → variant-1w2wqhfv.js} +4 -4
- package/dist/chunks/{file-mutation-bvefa49m.js → variant-1wj6nfaq.js} +18 -18
- package/dist/chunks/{file-mutation-r5z9qnpm.js → variant-25nwtkd9.js} +19 -19
- package/dist/chunks/{file-mutation-anhf8h1n.js → variant-2gmpce6q.js} +3 -3
- package/dist/chunks/{file-mutation-hh1mvxn6.js → variant-2qj989z5.js} +57 -57
- package/dist/chunks/{file-mutation-ea6pkrn3.js → variant-2s32b1pm.js} +2 -2
- package/dist/chunks/{file-mutation-d9a4qpg5.js → variant-2w37rd65.js} +29 -29
- package/dist/chunks/{file-mutation-zz19y5js.js → variant-32gamwqc.js} +17 -17
- package/dist/chunks/{file-mutation-gkm6v4vd.js → variant-35gn8txb.js} +45 -45
- package/dist/chunks/{file-mutation-3hepkmqq.js → variant-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-mutation-3hwn7j4h.js → variant-3hwn7j4h.js} +2 -2
- package/dist/chunks/{file-mutation-7q1btr1k.js → variant-3j5xnwvt.js} +25 -25
- package/dist/chunks/{file-mutation-k2r06wff.js → variant-3sa7tm9a.js} +4 -4
- package/dist/chunks/{file-mutation-3smtnn6g.js → variant-3smtnn6g.js} +1 -1
- package/dist/chunks/{file-mutation-3tvqynh2.js → variant-3tvqynh2.js} +1 -1
- package/dist/chunks/{file-mutation-3zsf4n22.js → variant-3zsf4n22.js} +1 -1
- package/dist/chunks/{file-mutation-v08krjdw.js → variant-41t4yrkv.js} +15 -15
- package/dist/chunks/{file-mutation-pkpp0jng.js → variant-44ksx02e.js} +4 -4
- package/dist/chunks/{file-mutation-4f5ezzxr.js → variant-4fse96mq.js} +8 -8
- package/dist/chunks/{file-mutation-ydjhy7jp.js → variant-4mwbxkt4.js} +4 -4
- package/dist/chunks/{file-mutation-59b3s74c.js → variant-4q6tth2h.js} +11 -11
- package/dist/chunks/{file-mutation-jspydjgs.js → variant-4shp5hvj.js} +9 -9
- package/dist/chunks/{file-mutation-083bb7kr.js → variant-4z5bdeag.js} +1 -1
- package/dist/chunks/{file-mutation-ws0ez784.js → variant-50st65ms.js} +16 -16
- package/dist/chunks/{file-mutation-rrb9pz5a.js → variant-534aq8ke.js} +1 -1
- package/dist/chunks/{file-mutation-54ma36ye.js → variant-54ma36ye.js} +1 -1
- package/dist/chunks/{file-mutation-2ccjc77m.js → variant-56cykqq2.js} +20 -20
- package/dist/chunks/{file-mutation-6k294dg0.js → variant-59ec13pf.js} +15 -15
- package/dist/chunks/{file-mutation-rp8hjwgz.js → variant-5awj5jwe.js} +11 -11
- package/dist/chunks/{file-mutation-gtndzxs8.js → variant-5ffmfybm.js} +6 -6
- package/dist/chunks/{file-mutation-5m9w47nd.js → variant-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-mutation-e3qxr5gk.js → variant-5qd3pb7m.js} +2 -2
- package/dist/chunks/{file-mutation-td1fm6rg.js → variant-5qtxbxmk.js} +21 -21
- package/dist/chunks/{file-mutation-ed1g29hy.js → variant-5rzwp8tz.js} +3 -3
- package/dist/chunks/{file-mutation-xgrstn99.js → variant-675j5d4j.js} +11 -11
- package/dist/chunks/{file-mutation-6827pfxn.js → variant-6827pfxn.js} +1 -1
- package/dist/chunks/{file-mutation-ta0tc5c9.js → variant-6d84m8eq.js} +30 -30
- package/dist/chunks/{file-mutation-fcs05vrx.js → variant-6pcx6jwm.js} +25 -25
- package/dist/chunks/{file-mutation-6xb47vfp.js → variant-6xb47vfp.js} +1 -1
- package/dist/chunks/{file-mutation-9wqkfqmh.js → variant-6xfqa995.js} +61 -61
- package/dist/chunks/{file-mutation-8g01qe2v.js → variant-6yet44e5.js} +21 -21
- package/dist/chunks/{file-mutation-4xfddg59.js → variant-7174g72w.js} +23 -23
- package/dist/chunks/{file-mutation-dqj1zep9.js → variant-71mr81s1.js} +5 -5
- package/dist/chunks/{file-mutation-gnhr360k.js → variant-74mxst5h.js} +10 -10
- package/dist/chunks/{file-mutation-775gj3j1.js → variant-775gj3j1.js} +2 -2
- package/dist/chunks/{file-mutation-7bmhse3q.js → variant-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-mutation-2k8khapm.js → variant-7dqw4kz8.js} +5 -5
- package/dist/chunks/{file-mutation-94apha83.js → variant-7hgt1n33.js} +8 -8
- package/dist/chunks/{file-mutation-zh98cvta.js → variant-7jdm1vab.js} +8 -8
- package/dist/chunks/{file-mutation-3k72abas.js → variant-7nx1mzpm.js} +21 -21
- package/dist/chunks/{file-mutation-kf0ydnx7.js → variant-7rwcep1p.js} +15 -15
- package/dist/chunks/{file-mutation-5yc3gv1m.js → variant-7vfwfg0s.js} +13 -13
- package/dist/chunks/variant-7w5g5nar.js +517 -0
- package/dist/chunks/{file-mutation-cjj3vnjk.js → variant-7x0ybmme.js} +2 -2
- package/dist/chunks/{file-mutation-x6pyv2yz.js → variant-7xyrrtj6.js} +5 -5
- package/dist/chunks/{file-mutation-5tew088c.js → variant-7zj2yvh0.js} +12 -12
- package/dist/chunks/{file-mutation-84txncab.js → variant-84txncab.js} +1 -1
- package/dist/chunks/{file-mutation-s8yypaqy.js → variant-88ttrsfd.js} +46 -46
- package/dist/chunks/{file-mutation-9q2hdfp3.js → variant-8ab3w9a1.js} +24 -24
- package/dist/chunks/{file-mutation-gk5p4syv.js → variant-8aftd3yf.js} +16 -16
- package/dist/chunks/{file-mutation-eftecqvh.js → variant-8apawthn.js} +25 -25
- package/dist/chunks/{file-mutation-x5dktsa5.js → variant-8cqn97gn.js} +23 -23
- package/dist/chunks/{file-mutation-0fn2v7vk.js → variant-8e1b1gzh.js} +6 -6
- package/dist/chunks/{file-mutation-8m6m0r52.js → variant-8m6m0r52.js} +1 -1
- package/dist/chunks/{file-mutation-8mywswrd.js → variant-8mywswrd.js} +1 -1
- package/dist/chunks/{file-mutation-rpnfjj5z.js → variant-8r64qjsw.js} +32 -32
- package/dist/chunks/{file-mutation-jh0cf3gy.js → variant-90prmkr9.js} +18 -18
- package/dist/chunks/variant-928hdk85.js +257 -0
- package/dist/chunks/{file-mutation-ye93bcpk.js → variant-95wgg282.js} +15 -15
- package/dist/chunks/{file-mutation-s5qxm7c2.js → variant-9e5gtvfc.js} +11 -11
- package/dist/chunks/{file-mutation-3179ttex.js → variant-9hvha7ke.js} +14 -14
- package/dist/chunks/{file-mutation-882c6a2f.js → variant-9q9t7af4.js} +24 -24
- package/dist/chunks/{file-mutation-0r2cw8fn.js → variant-9r4dpyf8.js} +8 -8
- package/dist/chunks/{file-mutation-2kjrre30.js → variant-9scmkrsd.js} +20 -20
- package/dist/chunks/{file-mutation-2f26zb5h.js → variant-9x9ct1g1.js} +29 -29
- package/dist/chunks/{file-mutation-a20pjse5.js → variant-a20pjse5.js} +3 -3
- package/dist/chunks/{file-mutation-e27v7yqk.js → variant-af0tgjwm.js} +17 -17
- package/dist/chunks/{file-mutation-x0k3z69x.js → variant-amdqtsez.js} +16 -16
- package/dist/chunks/{file-mutation-addxnjmp.js → variant-azwe5p1w.js} +4 -4
- package/dist/chunks/{file-mutation-b27vhd2z.js → variant-b27vhd2z.js} +1 -1
- package/dist/chunks/{file-mutation-89a6x4zk.js → variant-b55ayt6p.js} +17 -17
- package/dist/chunks/{file-mutation-6614sc7r.js → variant-bjq1rgcd.js} +24 -24
- package/dist/chunks/{file-mutation-7rakk0e1.js → variant-bnpb9r0r.js} +38 -38
- package/dist/chunks/{file-mutation-p4mj4rdp.js → variant-br0tr5aq.js} +8 -8
- package/dist/chunks/{file-mutation-sbr2r95b.js → variant-brmnc5rc.js} +27 -27
- package/dist/chunks/{file-mutation-4mwpykj0.js → variant-bw9zjykr.js} +6 -6
- package/dist/chunks/{file-mutation-1ep4rre3.js → variant-bzeyqsqd.js} +4 -4
- package/dist/chunks/{file-mutation-kz7145yv.js → variant-c17c7gem.js} +6 -6
- package/dist/chunks/{file-mutation-rj3eygr5.js → variant-c41wscbt.js} +2 -2
- package/dist/chunks/{file-mutation-wpys2vyv.js → variant-c60jy55t.js} +5 -5
- package/dist/chunks/{file-mutation-yebssw6b.js → variant-c6j5vg12.js} +3 -3
- package/dist/chunks/{file-mutation-5tnh3egr.js → variant-c7av8b5x.js} +4 -4
- package/dist/chunks/{file-mutation-sa8ekw3f.js → variant-c8ax2afj.js} +2 -2
- package/dist/chunks/{file-mutation-j228j2n8.js → variant-cd12tkte.js} +2 -2
- package/dist/chunks/{file-mutation-5xa5t8mt.js → variant-ck1687dj.js} +20 -20
- package/dist/chunks/{file-mutation-3e2gnrvk.js → variant-cz4fyjvq.js} +24 -24
- package/dist/chunks/{file-mutation-rqbas9ax.js → variant-d1sqbt18.js} +20 -20
- package/dist/chunks/{file-mutation-nn5t8xjm.js → variant-d25qmaxv.js} +42 -42
- package/dist/chunks/{file-mutation-5zbwkh3w.js → variant-d29451tq.js} +6 -6
- package/dist/chunks/{file-mutation-xs3kgst9.js → variant-dedzrhdb.js} +23 -23
- package/dist/chunks/{file-mutation-cwa6csj7.js → variant-djszqvmq.js} +9 -9
- package/dist/chunks/{file-mutation-5e2h11rs.js → variant-dk2cs9kn.js} +4 -4
- package/dist/chunks/{file-mutation-py2d2bhf.js → variant-dnjvpwy6.js} +4 -4
- package/dist/chunks/{file-mutation-xfktpdj6.js → variant-dq407baf.js} +6 -6
- package/dist/chunks/{file-mutation-xfkkasph.js → variant-drwq78ky.js} +4 -4
- package/dist/chunks/{file-mutation-1f7m535t.js → variant-dtj6q9re.js} +12 -12
- package/dist/chunks/{file-mutation-322qbvpa.js → variant-dxm36xet.js} +18 -18
- package/dist/chunks/{file-mutation-967benbv.js → variant-dys7k0s0.js} +11 -11
- package/dist/chunks/{file-mutation-cafkpj5t.js → variant-e0har6f2.js} +27 -27
- package/dist/chunks/{file-mutation-z0hcq1xj.js → variant-e10gzyda.js} +30 -30
- package/dist/chunks/{file-mutation-t550f9t1.js → variant-eaj1djv9.js} +8 -8
- package/dist/chunks/{file-mutation-7k4yx5jm.js → variant-eayadx44.js} +20 -20
- package/dist/chunks/{file-mutation-eej6y6fw.js → variant-eej6y6fw.js} +2 -2
- package/dist/chunks/{file-mutation-ef5x83kb.js → variant-ef5x83kb.js} +1 -1
- package/dist/chunks/{file-mutation-wqabm0nw.js → variant-ejj11w5x.js} +17 -17
- package/dist/chunks/{file-mutation-8b58bdns.js → variant-ervcbcv7.js} +35 -35
- package/dist/chunks/{file-mutation-c1fqxshp.js → variant-es1vcfrp.js} +3 -3
- package/dist/chunks/{file-mutation-5q7ksgvn.js → variant-es5a2c48.js} +10 -10
- package/dist/chunks/{file-mutation-bgc5ggmx.js → variant-espax8zg.js} +4 -4
- package/dist/chunks/{file-mutation-ktb21g4v.js → variant-ez4msjhj.js} +16 -16
- package/dist/chunks/{file-mutation-h7vxqxg2.js → variant-fbp02deq.js} +30 -30
- package/dist/chunks/{file-mutation-fcy631f0.js → variant-fcy631f0.js} +1 -1
- package/dist/chunks/{file-mutation-vt9q9evw.js → variant-fkj43v1r.js} +10 -10
- package/dist/chunks/{file-mutation-szyc73at.js → variant-g7z4v8j3.js} +11 -11
- package/dist/chunks/{file-mutation-gdgy10dy.js → variant-g8barhva.js} +32 -32
- package/dist/chunks/{file-mutation-gd4qta3r.js → variant-gd4qta3r.js} +1 -1
- package/dist/chunks/{file-mutation-t80p7bv8.js → variant-gfn1f735.js} +9 -9
- package/dist/chunks/{file-mutation-phk9d88z.js → variant-ghtkshk3.js} +43 -43
- package/dist/chunks/{file-mutation-70ake3ft.js → variant-gqm71yrs.js} +15 -15
- package/dist/chunks/{file-mutation-pjhesq7k.js → variant-gxgayqbn.js} +11 -11
- package/dist/chunks/{file-mutation-0xz2mzgc.js → variant-gxv082ck.js} +23 -23
- package/dist/chunks/{file-mutation-khcab136.js → variant-h0k6zcwv.js} +21 -21
- package/dist/chunks/{file-mutation-h6vf3j39.js → variant-h6vf3j39.js} +1 -1
- package/dist/chunks/{file-mutation-hgz4x7wa.js → variant-hgz4x7wa.js} +1 -1
- package/dist/chunks/{file-mutation-rqhevtjr.js → variant-hhecb7g7.js} +11 -11
- package/dist/chunks/{file-mutation-h6mg8ssc.js → variant-hpyx0024.js} +7 -7
- package/dist/chunks/{file-mutation-f0y10khq.js → variant-hqqehcc0.js} +25 -25
- package/dist/chunks/{file-mutation-dr99d0ac.js → variant-hz3jevdr.js} +3 -3
- package/dist/chunks/{file-mutation-zak5s96v.js → variant-j933j9sw.js} +4 -4
- package/dist/chunks/{file-mutation-qnq8mqeg.js → variant-jp8717cv.js} +28 -28
- package/dist/chunks/{file-mutation-mwahwpcs.js → variant-k8x2fpjf.js} +22 -22
- package/dist/chunks/{file-mutation-cpewaxbb.js → variant-kbx7rh90.js} +36 -36
- package/dist/chunks/{file-mutation-ac5hykxd.js → variant-kct03rgr.js} +21 -21
- package/dist/chunks/{file-mutation-3hefbbgh.js → variant-kf0h36at.js} +7 -7
- package/dist/chunks/{file-mutation-sadarxxx.js → variant-khthv2ze.js} +35 -35
- package/dist/chunks/{file-mutation-kjdm35cs.js → variant-kjdm35cs.js} +2 -2
- package/dist/chunks/{file-mutation-hry64yvt.js → variant-knhekyq4.js} +17 -17
- package/dist/chunks/{file-mutation-ps2trwbq.js → variant-kqp9qa1j.js} +3 -3
- package/dist/chunks/{file-mutation-kwb1v3vj.js → variant-kwb1v3vj.js} +1 -1
- package/dist/chunks/{file-mutation-n7c99d35.js → variant-ky9wwhcp.js} +14 -14
- package/dist/chunks/{file-mutation-m9w0rfyh.js → variant-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-mutation-ts412n3k.js → variant-m9xnn9r5.js} +37 -37
- package/dist/chunks/{file-mutation-maspj1v3.js → variant-maspj1v3.js} +1 -1
- package/dist/chunks/{file-mutation-0ryx4cv5.js → variant-mb19mnqb.js} +36 -36
- package/dist/chunks/{file-mutation-27p00kw8.js → variant-mc8agtnj.js} +22 -22
- package/dist/chunks/{file-mutation-b8d7xm3m.js → variant-myjtek88.js} +13 -13
- package/dist/chunks/{file-mutation-brdz51fb.js → variant-n3bbh3xq.js} +8 -8
- package/dist/chunks/{file-mutation-gqagkb1x.js → variant-n78k5cgb.js} +11 -11
- package/dist/chunks/{file-mutation-qb9hezfc.js → variant-nh571ch7.js} +15 -15
- package/dist/chunks/{file-mutation-qaf3te0r.js → variant-nhpkjp8j.js} +11 -11
- package/dist/chunks/{file-mutation-21xx9xc6.js → variant-nhzw2ksa.js} +19 -19
- package/dist/chunks/{file-mutation-cmftrgtq.js → variant-nr5642w5.js} +33 -33
- package/dist/chunks/{file-mutation-ctkvxx28.js → variant-nrh2wv08.js} +25 -25
- package/dist/chunks/{file-mutation-5g9pfety.js → variant-nttemcq1.js} +25 -25
- package/dist/chunks/{file-mutation-v13b12ef.js → variant-nz56sr1f.js} +5 -5
- package/dist/chunks/{file-mutation-g18yemqx.js → variant-p092c7br.js} +42 -42
- package/dist/chunks/{file-mutation-92swnv4m.js → variant-pedttwxr.js} +8 -8
- package/dist/chunks/variant-pf31ssb9.js +18 -0
- package/dist/chunks/{file-mutation-9mnf2aaj.js → variant-pfxa3h33.js} +11 -11
- package/dist/chunks/{file-mutation-yr4z1qtt.js → variant-pg3754bv.js} +44 -44
- package/dist/chunks/{file-mutation-y7nndgyc.js → variant-phz50fbd.js} +9 -9
- package/dist/chunks/{file-mutation-pjvnvgmy.js → variant-pjvnvgmy.js} +1 -1
- package/dist/chunks/{file-mutation-pknna89w.js → variant-pknna89w.js} +1 -1
- package/dist/chunks/{file-mutation-fa4te4zq.js → variant-pm8ty30j.js} +29 -29
- package/dist/chunks/{file-mutation-2nb55xn8.js → variant-q15tn0mf.js} +20 -20
- package/dist/chunks/{file-mutation-tbmac1c7.js → variant-qbqbaz6q.js} +4 -4
- package/dist/chunks/{file-mutation-t4bhgeye.js → variant-qbqerjg9.js} +5 -5
- package/dist/chunks/{file-mutation-qxns1yyr.js → variant-qmfsk48t.js} +19 -19
- package/dist/chunks/{file-mutation-qnc92qwc.js → variant-qnc92qwc.js} +1 -1
- package/dist/chunks/{file-mutation-2k9fjx65.js → variant-qne3fa44.js} +5 -5
- package/dist/chunks/{file-mutation-6gbkbwjk.js → variant-qryqqwhy.js} +16 -16
- package/dist/chunks/{file-mutation-qsdy395h.js → variant-qsdy395h.js} +1 -1
- package/dist/chunks/{file-mutation-df9339xm.js → variant-qtk9pe34.js} +10 -10
- package/dist/chunks/{file-mutation-q2j64v3h.js → variant-qv0sc65t.js} +3 -3
- package/dist/chunks/{file-mutation-taz2ghkg.js → variant-qy259e2y.js} +14 -14
- package/dist/chunks/{file-mutation-xcevffwp.js → variant-qy6ss6as.js} +87 -87
- package/dist/chunks/{file-mutation-9vkqjddw.js → variant-r10nvqfv.js} +11 -11
- package/dist/chunks/{file-mutation-wnyvz4dk.js → variant-r13wq28n.js} +43 -43
- package/dist/chunks/{file-mutation-49ma6pwq.js → variant-r70qfazn.js} +19 -19
- package/dist/chunks/{file-mutation-rdw6cm16.js → variant-rdw6cm16.js} +1 -1
- package/dist/chunks/{file-mutation-re4gtx8j.js → variant-rg7a60r1.js} +24 -24
- package/dist/chunks/{file-mutation-mrcqdzkn.js → variant-rga01nkp.js} +14 -14
- package/dist/chunks/{file-mutation-8sze2n9a.js → variant-rkprpv83.js} +6 -6
- package/dist/chunks/{file-mutation-f8fzv2x1.js → variant-rkvys86f.js} +3 -3
- package/dist/chunks/{file-mutation-9qkvvyqp.js → variant-rn69d7hp.js} +34 -34
- package/dist/chunks/{file-mutation-8sq4gyz7.js → variant-rnt9ng2n.js} +7 -7
- package/dist/chunks/{file-mutation-n5sg9n8b.js → variant-rt4gesys.js} +32 -32
- package/dist/chunks/{file-mutation-8xxydye1.js → variant-rvw0c6fm.js} +13 -13
- package/dist/chunks/{file-mutation-cj2gcgr0.js → variant-rz1bd73a.js} +10 -10
- package/dist/chunks/{file-mutation-pzz5tmzm.js → variant-s1rzhg3g.js} +17 -17
- package/dist/chunks/{file-mutation-7tppg67e.js → variant-s761s72c.js} +9 -9
- package/dist/chunks/{file-mutation-94kdqvgb.js → variant-say7vrea.js} +9 -9
- package/dist/chunks/{file-mutation-dtgy4jeb.js → variant-sm0dhwyq.js} +7 -7
- package/dist/chunks/{file-mutation-6p9h6rqd.js → variant-smq3am02.js} +89 -89
- package/dist/chunks/{file-mutation-08rawchj.js → variant-ss358qx3.js} +3 -3
- package/dist/chunks/{file-mutation-syv4x271.js → variant-syv4x271.js} +1 -1
- package/dist/chunks/{file-mutation-7bm0e0dp.js → variant-szkrnbvf.js} +34 -34
- package/dist/chunks/{file-mutation-3xymvwyv.js → variant-t147m43n.js} +10 -10
- package/dist/chunks/{file-mutation-nwsypg2h.js → variant-t5azbf2h.js} +11 -11
- package/dist/chunks/{file-mutation-j8143y8a.js → variant-t9tm1b69.js} +16 -16
- package/dist/chunks/{file-mutation-8rddq889.js → variant-t9tzyksx.js} +21 -21
- package/dist/chunks/{file-mutation-92waa1rm.js → variant-tatecjgj.js} +7 -7
- package/dist/chunks/{file-mutation-tazgh4e4.js → variant-tazgh4e4.js} +1 -1
- package/dist/chunks/{file-mutation-qz0pc5j5.js → variant-tc84sxpf.js} +20 -20
- package/dist/chunks/{file-mutation-tcezcvh9.js → variant-tcezcvh9.js} +1 -1
- package/dist/chunks/{file-mutation-tdstcens.js → variant-tdstcens.js} +1 -1
- package/dist/chunks/{file-mutation-rert0e01.js → variant-tkb22qbm.js} +2 -2
- package/dist/chunks/{file-mutation-w3g2sjny.js → variant-tkjmt9nc.js} +14 -14
- package/dist/chunks/{file-mutation-tm0kqsz3.js → variant-tm0kqsz3.js} +1 -1
- package/dist/chunks/{file-mutation-4yb17086.js → variant-tw3hkfj3.js} +36 -36
- package/dist/chunks/{file-mutation-tyytaxap.js → variant-tyytaxap.js} +1 -1
- package/dist/chunks/{file-mutation-h8bq8y5a.js → variant-v210v162.js} +9 -9
- package/dist/chunks/{file-mutation-0nqg4kny.js → variant-v2hyeyf7.js} +10 -10
- package/dist/chunks/{file-mutation-1rabqv72.js → variant-v3854d8f.js} +21 -21
- package/dist/chunks/{file-mutation-v7p4zvkq.js → variant-v7p4zvkq.js} +2 -2
- package/dist/chunks/{file-mutation-4fm3tq8e.js → variant-vdx8s558.js} +14 -14
- package/dist/chunks/{file-mutation-m1z5ek08.js → variant-ve88pny4.js} +8 -8
- package/dist/chunks/{file-mutation-veqvce7d.js → variant-veqvce7d.js} +1 -1
- package/dist/chunks/{file-mutation-jws504fy.js → variant-vgr8962y.js} +12 -12
- package/dist/chunks/{file-mutation-8f461wgz.js → variant-vj32cyzd.js} +37 -37
- package/dist/chunks/{file-mutation-b6ag07rz.js → variant-vm6z49tp.js} +4 -4
- package/dist/chunks/{file-mutation-y59fqsw4.js → variant-vnvzhrpj.js} +16 -16
- package/dist/chunks/{file-mutation-4b4em5d4.js → variant-vpge477k.js} +31 -31
- package/dist/chunks/{file-mutation-wdasqx75.js → variant-vrr7tc8c.js} +4 -4
- package/dist/chunks/{file-mutation-vzs5sf6e.js → variant-vzs5sf6e.js} +1 -1
- package/dist/chunks/{file-mutation-w3wsvvr9.js → variant-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-mutation-kqv3x6rj.js → variant-waskdk5r.js} +9 -9
- package/dist/chunks/{file-mutation-1rmqtx3n.js → variant-wb7w7em4.js} +14 -14
- package/dist/chunks/{file-mutation-cefkz2r6.js → variant-wcnw1vw1.js} +4 -4
- package/dist/chunks/{file-mutation-wd87259q.js → variant-wd87259q.js} +1 -1
- package/dist/chunks/{file-mutation-h71w788e.js → variant-wjqb2vp5.js} +9 -9
- package/dist/chunks/{file-mutation-mhg37pmq.js → variant-wpz9kdb9.js} +46 -46
- package/dist/chunks/{file-mutation-d06kvh6k.js → variant-wqhaj406.js} +51 -51
- package/dist/chunks/{file-mutation-5gxex9x8.js → variant-wrdz6b4b.js} +8 -8
- package/dist/chunks/{file-mutation-hzm5xem3.js → variant-xamas9nz.js} +22 -22
- package/dist/chunks/{file-mutation-0eymxkpr.js → variant-xf2pv73g.js} +51 -51
- package/dist/chunks/{file-mutation-b4ragnr9.js → variant-xjfe4nsj.js} +17 -17
- package/dist/chunks/{file-mutation-72vb8ye8.js → variant-xywjvjxx.js} +12 -12
- package/dist/chunks/{file-mutation-mrv22f7s.js → variant-y178fjw7.js} +15 -15
- package/dist/chunks/{file-mutation-y1fvbwt7.js → variant-y1fvbwt7.js} +1 -1
- package/dist/chunks/{file-mutation-y71avatq.js → variant-y71avatq.js} +1 -1
- package/dist/chunks/{file-mutation-zcepehk0.js → variant-ycbx61rz.js} +5 -5
- package/dist/chunks/{file-mutation-ywt8jp22.js → variant-ywt8jp22.js} +2 -2
- package/dist/chunks/{file-mutation-zr8t0btn.js → variant-z0910jfv.js} +190 -190
- package/dist/chunks/{file-mutation-z0bkrqjs.js → variant-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-mutation-5g57z1ma.js → variant-z0ydvj27.js} +4 -4
- package/dist/chunks/{file-mutation-dccm8yky.js → variant-z1593v92.js} +11 -11
- package/dist/chunks/{file-mutation-z18fegx4.js → variant-z18fegx4.js} +1 -1
- package/dist/chunks/{file-mutation-xp80041t.js → variant-z2a96fzh.js} +5 -5
- package/dist/chunks/{file-mutation-zcrspsvn.js → variant-zee1rnkq.js} +4 -4
- package/dist/chunks/{file-mutation-a6gf0ppz.js → variant-zhzgznba.js} +3 -3
- package/dist/chunks/{file-mutation-zr2ceqn5.js → variant-zr2ceqn5.js} +1 -1
- package/dist/chunks/{file-mutation-cmkgjnh5.js → variant-zxjbgbap.js} +10 -10
- package/dist/chunks/{file-mutation-zxq2ej10.js → variant-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +85 -85
- 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 +114 -114
- package/dist/config/plugin/command.js +206 -206
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- 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 +123 -123
- 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 +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +113 -113
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- 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 +121 -121
- 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 +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +14 -14
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/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 +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +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 +215 -215
- 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 +106 -106
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +106 -106
- 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 +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 +361 -361
- 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 +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 +155 -155
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +89 -89
- 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 +98 -98
- package/dist/model-retry.js +1 -1
- 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 +86 -86
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +119 -119
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- 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 +4 -4
- 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 +114 -114
- 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 +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- 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 +347 -347
- 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 +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +223 -223
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +89 -89
- 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 +138 -138
- 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 +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +215 -215
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +155 -155
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +97 -97
- 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 +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +223 -223
- 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 -5
- package/dist/session/runner/step.js +126 -126
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- 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 +206 -206
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +153 -153
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +211 -211
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +8 -8
- 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 +130 -130
- 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 +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +126 -126
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +209 -209
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +122 -122
- 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 +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +1 -1
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +2 -2
- 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 +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- 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 +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 +100 -100
- package/package.json +8 -8
- package/dist/chunks/file-mutation-2g1qnqk3.js +0 -257
- package/dist/chunks/file-mutation-7fj5dwt0.js +0 -18
- package/dist/chunks/file-mutation-v1yvzs5v.js +0 -517
- package/dist/chunks/file-mutation-zcrrhp36.js +0 -26
- /package/dist/chunks/{file-mutation-0qkdqm5v.js → variant-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-mutation-0zkw76rk.js → variant-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-mutation-17cy0kzp.js → variant-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-mutation-1cnp2v09.js → variant-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-mutation-1kg9ymc8.js → variant-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{file-mutation-24dcb14g.js → variant-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-mutation-2710q6r3.js → variant-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-mutation-2axfhc9x.js → variant-2axfhc9x.js} +0 -0
- /package/dist/chunks/{file-mutation-2bv980vf.js → variant-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-mutation-2c3vjs8z.js → variant-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-mutation-359p4xyc.js → variant-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-mutation-3asan66x.js → variant-3asan66x.js} +0 -0
- /package/dist/chunks/{file-mutation-3t0ybcrp.js → variant-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{file-mutation-3v8g72cx.js → variant-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-mutation-3wcehsnq.js → variant-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-mutation-43n2bw4t.js → variant-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-mutation-4knz6hnm.js → variant-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-mutation-4vcrnpx2.js → variant-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-mutation-4y7fprxs.js → variant-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-mutation-53557ph1.js → variant-53557ph1.js} +0 -0
- /package/dist/chunks/{file-mutation-550bvhaj.js → variant-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-mutation-6prwharc.js → variant-6prwharc.js} +0 -0
- /package/dist/chunks/{file-mutation-6q2bdcd1.js → variant-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-mutation-7akdwqpd.js → variant-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-mutation-7m9af43g.js → variant-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-mutation-822emrt2.js → variant-822emrt2.js} +0 -0
- /package/dist/chunks/{file-mutation-84wd9syh.js → variant-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-mutation-88xbtdfr.js → variant-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-mutation-8n3pysct.js → variant-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-mutation-8wj87zfr.js → variant-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-mutation-9a4afbnw.js → variant-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-mutation-9rqn6x4v.js → variant-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-mutation-a6k6eb26.js → variant-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-mutation-af5trqkr.js → variant-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-mutation-afrmfg78.js → variant-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-mutation-aqzs7mqg.js → variant-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-mutation-atq7p7m5.js → variant-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-mutation-bkyjaxrp.js → variant-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-mutation-bmr6ed5q.js → variant-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-mutation-cf4snx6d.js → variant-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-mutation-cvy3z8tj.js → variant-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-mutation-d9fn303g.js → variant-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-mutation-d9jj8t3e.js → variant-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-mutation-dajrwvna.js → variant-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-mutation-dap0rakb.js → variant-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-mutation-df08tz66.js → variant-df08tz66.js} +0 -0
- /package/dist/chunks/{file-mutation-dy18nga0.js → variant-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-mutation-e5kj55wp.js → variant-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-mutation-e73j6tqm.js → variant-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-mutation-ec1grn59.js → variant-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-mutation-eh3zwz77.js → variant-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-mutation-emrn6kk6.js → variant-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-mutation-f0mxakyp.js → variant-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-mutation-f6n9ztr4.js → variant-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-mutation-faypxj3z.js → variant-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-mutation-fd410y7t.js → variant-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-mutation-g4wezp1m.js → variant-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-mutation-g86h250q.js → variant-g86h250q.js} +0 -0
- /package/dist/chunks/{file-mutation-gebd4c9n.js → variant-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-mutation-gftt206x.js → variant-gftt206x.js} +0 -0
- /package/dist/chunks/{file-mutation-hcxmzztb.js → variant-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-mutation-hk9envan.js → variant-hk9envan.js} +0 -0
- /package/dist/chunks/{file-mutation-j2ntwpah.js → variant-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-mutation-j5zkgpj8.js → variant-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-mutation-jjkms2e6.js → variant-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-mutation-jr7sbwjy.js → variant-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-mutation-jwfs4k6c.js → variant-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-mutation-jze0r7bz.js → variant-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-mutation-jzg6c2d5.js → variant-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-mutation-m18g726c.js → variant-m18g726c.js} +0 -0
- /package/dist/chunks/{file-mutation-mp448xyj.js → variant-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-mutation-msx8hqn2.js → variant-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-mutation-n05xt0ee.js → variant-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-mutation-n3j8tn72.js → variant-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-mutation-njntx4h6.js → variant-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-mutation-pkyv6v7h.js → variant-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{file-mutation-pyv0edze.js → variant-pyv0edze.js} +0 -0
- /package/dist/chunks/{file-mutation-q3sfg36h.js → variant-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-mutation-q74kybfr.js → variant-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-mutation-qaymkmh1.js → variant-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-mutation-qb87gjwd.js → variant-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-mutation-qfa1cgps.js → variant-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-mutation-qg3g05ea.js → variant-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-mutation-qrg20bc0.js → variant-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-mutation-rcb2kzg1.js → variant-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-mutation-sdp7kfr6.js → variant-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-mutation-ssg3fenm.js → variant-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-mutation-ve7vex1e.js → variant-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-mutation-w803qqfp.js → variant-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-mutation-wc3fc9cn.js → variant-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-mutation-wer8tq1h.js → variant-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-mutation-wjj7prxr.js → variant-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-mutation-wtztk69x.js → variant-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-mutation-x0ckcb58.js → variant-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-mutation-x61499pn.js → variant-x61499pn.js} +0 -0
- /package/dist/chunks/{file-mutation-y44na4kk.js → variant-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-mutation-y8f7s663.js → variant-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-mutation-ygaqb7jw.js → variant-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-mutation-ym463w8f.js → variant-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-mutation-z5v4ffb3.js → variant-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-mutation-z9919s4g.js → variant-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./variant-dnjvpwy6.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service27,
|
|
7
|
+
node30
|
|
8
|
+
} from "./variant-xf2pv73g.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service77,
|
|
11
|
+
node81
|
|
12
|
+
} from "./variant-2qj989z5.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service43,
|
|
15
|
+
node47
|
|
16
|
+
} from "./variant-rg7a60r1.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./variant-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/tool/mcp.ts
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
26
|
-
layer: () =>
|
|
25
|
+
Service: () => Service22,
|
|
26
|
+
layer: () => layer10,
|
|
27
27
|
name: () => name14,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node26
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -35,13 +35,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
36
|
var name14 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service22 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer10 = Layer.effect(Service22, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service27;
|
|
42
|
+
const tools = yield* Service43;
|
|
43
43
|
const bus = yield* Service85;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service77;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -118,12 +118,12 @@ var layer13 = Layer.effect(Service35, Effect.gen(function* () {
|
|
|
118
118
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
119
119
|
const updates = yield* PubSub.subscribe(changes);
|
|
120
120
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
121
|
-
return
|
|
121
|
+
return Service22.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
122
122
|
}));
|
|
123
|
-
var
|
|
124
|
-
service:
|
|
125
|
-
layer:
|
|
126
|
-
deps: [
|
|
123
|
+
var node26 = makeLocationNode({
|
|
124
|
+
service: Service22,
|
|
125
|
+
layer: layer10,
|
|
126
|
+
deps: [node47, node30, node89, node81]
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
export { namespace2, name14,
|
|
129
|
+
export { namespace2, name14, Service22, layer10, node26, exports_mcp3 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
tokens2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-tdstcens.js";
|
|
7
7
|
import {
|
|
8
8
|
contentFilterError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./variant-qbqerjg9.js";
|
|
10
10
|
|
|
11
11
|
// src/session/runner/publish-llm-event.ts
|
|
12
12
|
import { Effect, Fiber, Iterable } from "effect";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLocalProviderPlugin2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-rga01nkp.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/ollama.ts
|
|
6
6
|
import { Effect, Schema } from "effect";
|
|
@@ -34,7 +34,7 @@ var ShowResponse = Schema.Struct({
|
|
|
34
34
|
model_info: Schema.Record(Schema.String, Schema.Unknown).pipe(Schema.optional)
|
|
35
35
|
});
|
|
36
36
|
var shows = new Map;
|
|
37
|
-
var
|
|
37
|
+
var make8 = createLocalProviderPlugin2({
|
|
38
38
|
id: "opencode.provider.ollama",
|
|
39
39
|
providerID: "ollama",
|
|
40
40
|
name: "Ollama",
|
|
@@ -67,6 +67,6 @@ var make6 = createLocalProviderPlugin2({
|
|
|
67
67
|
context: Object.entries(item.show.model_info ?? {}).flatMap(([key, value]) => key.endsWith(".context_length") && typeof value === "number" && value > 0 ? [value] : [])[0]
|
|
68
68
|
})
|
|
69
69
|
});
|
|
70
|
-
var OllamaPlugin2 =
|
|
70
|
+
var OllamaPlugin2 = make8();
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { make8, OllamaPlugin2 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Failed2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-hgz4x7wa.js";
|
|
4
4
|
import {
|
|
5
5
|
execDefaults2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-eej6y6fw.js";
|
|
7
7
|
import {
|
|
8
8
|
Service86,
|
|
9
9
|
node90
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./variant-c6j5vg12.js";
|
|
11
11
|
import {
|
|
12
12
|
makeUnsafe2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./variant-y71avatq.js";
|
|
14
14
|
import {
|
|
15
15
|
Binding2,
|
|
16
16
|
RegistryService2,
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
node61
|
|
18
|
+
} from "./variant-8e1b1gzh.js";
|
|
19
19
|
import {
|
|
20
20
|
WorkspaceTable2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./variant-faypxj3z.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./variant-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/workspace.ts
|
|
27
27
|
var exports_workspace = {};
|
|
28
28
|
__export(exports_workspace, {
|
|
29
29
|
CreateConflict: () => CreateConflict2,
|
|
30
|
-
ID: () =>
|
|
31
|
-
Info: () =>
|
|
30
|
+
ID: () => ID7,
|
|
31
|
+
Info: () => Info11,
|
|
32
32
|
NotFound: () => NotFound2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service56,
|
|
34
34
|
Workspace: () => exports_workspace,
|
|
35
|
-
configured: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
configured: () => configured8,
|
|
36
|
+
node: () => node60
|
|
37
37
|
});
|
|
38
38
|
import { Workspace } from "@opencode/schema/workspace";
|
|
39
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
@@ -41,10 +41,10 @@ import { eq } from "drizzle-orm";
|
|
|
41
41
|
import { Clock, Context, Deferred, Duration, Effect, Exit, FiberSet, Layer, Ref, Schedule, Schema, Scope } from "effect";
|
|
42
42
|
import { systemError } from "effect/PlatformError";
|
|
43
43
|
import { make } from "effect/process/ChildProcessSpawner";
|
|
44
|
-
var
|
|
44
|
+
var ID7 = Workspace.ID;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info11 extends Schema.Class("Workspace.Info")({
|
|
47
|
+
id: ID7,
|
|
48
48
|
provider: Schema.String,
|
|
49
49
|
binding: Binding2,
|
|
50
50
|
createdAt: Schema.Number,
|
|
@@ -52,24 +52,24 @@ class Info20 extends Schema.Class("Workspace.Info")({
|
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID:
|
|
55
|
+
class NotFound2 extends Schema.TaggedError()("Workspace.NotFound", { workspaceID: ID7 }) {
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
class CreateConflict2 extends Schema.TaggedError()("Workspace.CreateConflict", {
|
|
59
|
-
workspaceID:
|
|
59
|
+
workspaceID: ID7,
|
|
60
60
|
provider: Schema.String,
|
|
61
61
|
existingProvider: Schema.String
|
|
62
62
|
}) {
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
-
class
|
|
65
|
+
class Service56 extends Context.Service()("@opencode/Workspace") {
|
|
66
66
|
}
|
|
67
|
-
var
|
|
68
|
-
service:
|
|
67
|
+
var configured8 = (options = {}) => makeGlobalNode({
|
|
68
|
+
service: Service56,
|
|
69
69
|
layer: layer(options),
|
|
70
|
-
deps: [node90,
|
|
70
|
+
deps: [node90, node61]
|
|
71
71
|
});
|
|
72
|
-
var layer = (options) => Layer.effect(
|
|
72
|
+
var layer = (options) => Layer.effect(Service56, Effect.gen(function* () {
|
|
73
73
|
const db = (yield* Service86).db;
|
|
74
74
|
const registry = yield* RegistryService2;
|
|
75
75
|
const lifetime = yield* Scope.Scope;
|
|
@@ -86,7 +86,7 @@ var layer = (options) => Layer.effect(Service72, Effect.gen(function* () {
|
|
|
86
86
|
return row;
|
|
87
87
|
});
|
|
88
88
|
const saveBinding = (workspaceID, binding) => db.update(WorkspaceTable2).set({ binding }).where(eq(WorkspaceTable2.id, workspaceID)).run().pipe(Effect.orDie);
|
|
89
|
-
const info = (row, binding) => new
|
|
89
|
+
const info = (row, binding) => new Info11({
|
|
90
90
|
id: row.id,
|
|
91
91
|
provider: row.provider,
|
|
92
92
|
binding,
|
|
@@ -164,9 +164,9 @@ var layer = (options) => Layer.effect(Service72, Effect.gen(function* () {
|
|
|
164
164
|
yield* Scope.close(connection.scope, Exit.void);
|
|
165
165
|
}).pipe(Effect.catchCause((cause) => Effect.logError("workspace idle suspension failed", cause)))), { concurrency: "unbounded", discard: true });
|
|
166
166
|
}).pipe(Effect.repeat(Schedule.spaced(options.pollInterval ?? Duration.minutes(1))), Effect.forkScoped);
|
|
167
|
-
return
|
|
167
|
+
return Service56.of({
|
|
168
168
|
create: Effect.fn("Workspace.create")(function* (input) {
|
|
169
|
-
const workspaceID = input.id ??
|
|
169
|
+
const workspaceID = input.id ?? ID7.create();
|
|
170
170
|
const existing = yield* db.select({ provider: WorkspaceTable2.provider }).from(WorkspaceTable2).where(eq(WorkspaceTable2.id, workspaceID)).get().pipe(Effect.orDie);
|
|
171
171
|
if (existing) {
|
|
172
172
|
if (existing.provider === input.provider)
|
|
@@ -242,6 +242,6 @@ var layer = (options) => Layer.effect(Service72, Effect.gen(function* () {
|
|
|
242
242
|
})
|
|
243
243
|
});
|
|
244
244
|
}));
|
|
245
|
-
var
|
|
245
|
+
var node60 = configured8();
|
|
246
246
|
|
|
247
|
-
export {
|
|
247
|
+
export { ID7, Info11, NotFound2, CreateConflict2, Service56, configured8, node60, exports_workspace };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
which2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-qaymkmh1.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./variant-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
|
-
Options: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Options: () => Options7,
|
|
15
|
+
Service: () => Service57,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured9,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
|
-
list: () =>
|
|
21
|
+
list: () => list3,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name16,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node62,
|
|
25
25
|
ps: () => ps2,
|
|
26
|
-
resolve: () =>
|
|
26
|
+
resolve: () => resolve3
|
|
27
27
|
});
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { readFile } from "fs/promises";
|
|
@@ -43,11 +43,11 @@ var META = {
|
|
|
43
43
|
sh: { login: true },
|
|
44
44
|
zsh: { login: true }
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var Options7 = Schema.Struct({
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service57 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
|
|
|
164
164
|
}
|
|
165
165
|
var defaultConfigured;
|
|
166
166
|
var defaultCompatible;
|
|
167
|
-
function
|
|
167
|
+
function resolve3(input, configShell, options, bin) {
|
|
168
168
|
const filter = input.priority === "compat" ? { compatible: true } : undefined;
|
|
169
169
|
if (configShell)
|
|
170
170
|
return select(configShell, options, filter, bin);
|
|
@@ -180,15 +180,15 @@ function resolve2(input, configShell, options, bin) {
|
|
|
180
180
|
defaultConfigured = { bin, value };
|
|
181
181
|
return value;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
resolve3.reset = () => {
|
|
184
184
|
defaultConfigured = undefined;
|
|
185
185
|
defaultCompatible = undefined;
|
|
186
186
|
};
|
|
187
|
-
async function
|
|
187
|
+
async function list3(options, bin) {
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service57, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service49, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service57.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
|
-
resolve: (input) => Effect.sync(() =>
|
|
206
|
-
list: () => Effect.promise(() =>
|
|
205
|
+
resolve: (input) => Effect.sync(() => resolve3(input, state.get().shell, options, global.bin)),
|
|
206
|
+
list: () => Effect.promise(() => list3(options, global.bin))
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
return makeLocationNode({ service:
|
|
209
|
+
function configured9(options) {
|
|
210
|
+
return makeLocationNode({ service: Service57, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node62 = configured9();
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Options7, Service57, gitbash2, name16, login2, ps2, args2, environment2, resolve3, list3, configured9, node62, exports_select };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-azwe5p1w.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-dnjvpwy6.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event16
|
|
10
|
+
} from "./variant-e10gzyda.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID10,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./variant-6d84m8eq.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID9,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service71
|
|
20
|
+
} from "./variant-8r64qjsw.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID8
|
|
23
|
+
} from "./variant-vpge477k.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
load2,
|
|
26
|
+
derive2
|
|
27
|
+
} from "./variant-mc8agtnj.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./variant-g7z4v8j3.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID15
|
|
33
|
+
} from "./variant-8ab3w9a1.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./variant-54ma36ye.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { Effect, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -65,7 +65,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
65
65
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
66
66
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
67
67
|
var oauth = (app) => ({
|
|
68
|
-
integrationID:
|
|
68
|
+
integrationID: ID10.make("github-copilot"),
|
|
69
69
|
method: {
|
|
70
70
|
id: methodID,
|
|
71
71
|
type: "oauth",
|
|
@@ -163,7 +163,7 @@ var oauth = (app) => ({
|
|
|
163
163
|
var GithubCopilotPlugin2 = define({
|
|
164
164
|
id: "opencode.provider.github.copilot",
|
|
165
165
|
effect: Effect.fn(function* (ctx) {
|
|
166
|
-
const providers = yield*
|
|
166
|
+
const providers = yield* Service71;
|
|
167
167
|
const bus = yield* Service85;
|
|
168
168
|
const loading = Semaphore.makeUnsafe(1);
|
|
169
169
|
const loaded = {};
|
|
@@ -180,9 +180,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
182
|
const url = copilotBaseURL2(credential.metadata) ?? baseURL();
|
|
183
|
-
const provider = yield* providers.get(
|
|
183
|
+
const provider = yield* providers.get(ID9.githubCopilot);
|
|
184
184
|
const remote = yield* Effect.tryPromise({
|
|
185
|
-
try: () =>
|
|
185
|
+
try: () => load2(url, {
|
|
186
186
|
...provider?.headers,
|
|
187
187
|
Authorization: `Bearer ${credential.refresh}`,
|
|
188
188
|
"User-Agent": useragent2(ctx.app),
|
|
@@ -202,13 +202,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
202
202
|
editor.method.update(oauth(ctx.app));
|
|
203
203
|
});
|
|
204
204
|
yield* ctx.provider.transform((evt) => {
|
|
205
|
-
const item = evt.get(
|
|
205
|
+
const item = evt.get(ID9.githubCopilot);
|
|
206
206
|
if (!item)
|
|
207
207
|
return;
|
|
208
208
|
if (loaded.models) {
|
|
209
209
|
evt.add({
|
|
210
210
|
info: item.provider,
|
|
211
|
-
models: Array.from(
|
|
211
|
+
models: Array.from(derive2(loaded.baseURL ?? baseURL(), loaded.models, Array.from(item.models.values())).values()),
|
|
212
212
|
sourceConnection: loaded.connection
|
|
213
213
|
});
|
|
214
214
|
return;
|
|
@@ -230,17 +230,17 @@ var GithubCopilotPlugin2 = define({
|
|
|
230
230
|
}
|
|
231
231
|
});
|
|
232
232
|
yield* ctx.model.transform((models) => {
|
|
233
|
-
if (models.get(
|
|
234
|
-
models.update(
|
|
233
|
+
if (models.get(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"))) {
|
|
234
|
+
models.update(ID9.githubCopilot, ID8.make("gpt-5-chat-latest"), (model) => {
|
|
235
235
|
model.enabled = false;
|
|
236
236
|
});
|
|
237
237
|
}
|
|
238
238
|
});
|
|
239
239
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
240
|
-
yield* bus.subscribe(
|
|
240
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID10.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
241
241
|
yield* refresh().pipe(Effect.forkScoped);
|
|
242
242
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
243
|
-
if (evt.model.providerID !==
|
|
243
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
244
244
|
return;
|
|
245
245
|
if (evt.package !== "@ai-sdk/github-copilot")
|
|
246
246
|
return;
|
|
@@ -249,7 +249,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
249
249
|
evt.sdk = mod.createOpenaiCompatible(evt.options);
|
|
250
250
|
}));
|
|
251
251
|
yield* ctx.session.hook("model.request", (evt) => Effect.gen(function* () {
|
|
252
|
-
if (evt.model.providerID !==
|
|
252
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
253
253
|
return;
|
|
254
254
|
const session = yield* ctx.session.get({ sessionID: evt.sessionID }).pipe(Effect.orElseSucceed(() => {
|
|
255
255
|
return;
|
|
@@ -259,13 +259,13 @@ var GithubCopilotPlugin2 = define({
|
|
|
259
259
|
evt.headers["X-Interaction-Id"] = session ? get5(session) : evt.sessionID;
|
|
260
260
|
if (interaction !== "conversation-agent")
|
|
261
261
|
evt.headers["x-initiator"] = "agent";
|
|
262
|
-
}), { providerID:
|
|
262
|
+
}), { providerID: ID9.githubCopilot });
|
|
263
263
|
yield* ctx.session.hook("title", (evt) => Effect.gen(function* () {
|
|
264
|
-
if (evt.model.providerID !==
|
|
264
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
265
265
|
return;
|
|
266
266
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
267
267
|
return;
|
|
268
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
268
|
+
const agent = yield* ctx.agent.get({ agentID: ID15.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
269
269
|
return;
|
|
270
270
|
}));
|
|
271
271
|
if (agent?.data.model)
|
|
@@ -276,9 +276,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
276
276
|
evt.result = yield* utilityTitle2({ baseURL: loaded.baseURL, token: loaded.token, model, app: ctx.app }, evt).pipe(Effect.tapError((cause) => Effect.logDebug("Copilot utility title failed", { model, cause })), Effect.orElseSucceed(() => {
|
|
277
277
|
return;
|
|
278
278
|
}));
|
|
279
|
-
}), { providerID:
|
|
279
|
+
}), { providerID: ID9.githubCopilot });
|
|
280
280
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
281
|
-
if (evt.model.providerID !==
|
|
281
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
282
282
|
return;
|
|
283
283
|
const token = evt.request.headers.get("x-api-key");
|
|
284
284
|
if (!token)
|
|
@@ -286,9 +286,9 @@ var GithubCopilotPlugin2 = define({
|
|
|
286
286
|
const text = yield* Effect.promise(() => evt.request.clone().text());
|
|
287
287
|
const body = Option.getOrUndefined(decodeBody(text));
|
|
288
288
|
applyHeaders(evt.request.headers, token, ctx.app, requestMetadata(evt.request.url, body), true);
|
|
289
|
-
}), { providerID:
|
|
289
|
+
}), { providerID: ID9.githubCopilot });
|
|
290
290
|
yield* ctx.aisdk.hook("language", Effect.fn(function* (evt) {
|
|
291
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID9.githubCopilot)
|
|
292
292
|
return;
|
|
293
293
|
if (evt.sdk.responses === undefined && evt.sdk.chat === undefined) {
|
|
294
294
|
evt.language = evt.sdk.languageModel(evt.model.modelID ?? evt.model.id);
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./variant-g7z4v8j3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./variant-dnjvpwy6.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event16,
|
|
10
|
+
Service73
|
|
11
|
+
} from "./variant-e10gzyda.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID10,
|
|
14
14
|
MethodID2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./variant-6d84m8eq.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID9,
|
|
18
18
|
mergeOverlay2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./variant-8r64qjsw.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
21
|
+
ID8,
|
|
22
22
|
VariantID2,
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
23
|
+
Info18
|
|
24
|
+
} from "./variant-vpge477k.js";
|
|
25
25
|
import {
|
|
26
26
|
success2,
|
|
27
27
|
error2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./variant-pjvnvgmy.js";
|
|
29
29
|
import {
|
|
30
30
|
get5
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./variant-54ma36ye.js";
|
|
32
32
|
import {
|
|
33
33
|
configuredSettings2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./variant-d29451tq.js";
|
|
35
35
|
|
|
36
36
|
// src/plugin/provider/chatgpt.ts
|
|
37
37
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -43,8 +43,8 @@ var issuer = "https://auth.openai.com";
|
|
|
43
43
|
var tokenURL = `${issuer}/api/accounts/oauth/token`;
|
|
44
44
|
var resource = "https://api.openai.com/v1";
|
|
45
45
|
var tokenSharingScope = "chatgpt.tokens.use.direct";
|
|
46
|
-
var providerID =
|
|
47
|
-
var integrationID =
|
|
46
|
+
var providerID = ID9.openai;
|
|
47
|
+
var integrationID = ID10.make("openai");
|
|
48
48
|
var methodID = MethodID2.make("chatgpt-token-sharing");
|
|
49
49
|
var modelCacheKey = (clientID) => `models:${clientID}`;
|
|
50
50
|
var fallbackModels = new Set([
|
|
@@ -180,7 +180,7 @@ var ChatGPTPlugin2 = define({
|
|
|
180
180
|
id: "opencode.provider.chatgpt",
|
|
181
181
|
effect: Effect.fn(function* (ctx) {
|
|
182
182
|
const bus = yield* Service85;
|
|
183
|
-
const credentials = yield*
|
|
183
|
+
const credentials = yield* Service73;
|
|
184
184
|
const loading = Semaphore.makeUnsafe(1);
|
|
185
185
|
let chatgpt;
|
|
186
186
|
let source;
|
|
@@ -195,7 +195,7 @@ var ChatGPTPlugin2 = define({
|
|
|
195
195
|
yield* ctx.integration.transform((editor) => {
|
|
196
196
|
editor.method.update(signIn(ctx.app, () => Option.getOrUndefined(decodeMetadata(chatgpt?.metadata))?.clientID, ctx.storage));
|
|
197
197
|
});
|
|
198
|
-
yield* Effect.forEach(yield* credentials.list(
|
|
198
|
+
yield* Effect.forEach(yield* credentials.list(ID10.make("openai")), (entry) => {
|
|
199
199
|
const value = entry.value;
|
|
200
200
|
if (value.type !== "oauth" || value.methodID !== MethodID2.make("chatgpt-browser"))
|
|
201
201
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var ChatGPTPlugin2 = define({
|
|
|
268
268
|
}
|
|
269
269
|
});
|
|
270
270
|
const reload = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
271
|
-
yield* bus.subscribe(
|
|
271
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(reload), Effect.forkScoped({ startImmediately: true }));
|
|
272
272
|
})
|
|
273
273
|
});
|
|
274
274
|
function headers(app) {
|
|
@@ -325,7 +325,7 @@ function deriveModels2(remote, existing) {
|
|
|
325
325
|
const found = byID.get(model.modelID);
|
|
326
326
|
return found ? [deriveModel(found, model)] : [];
|
|
327
327
|
}),
|
|
328
|
-
...remote.filter((model) => !known.has(
|
|
328
|
+
...remote.filter((model) => !known.has(ID8.make(model.slug))).map((model) => deriveModel(model, Info18.default(ID9.openai, ID8.make(model.slug))))
|
|
329
329
|
];
|
|
330
330
|
}
|
|
331
331
|
function deriveModel(remote, previous) {
|