@opencode/core 2.0.29 → 2.0.31
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/{websearch-ddypr82j.js → location-0226ecw2.js} +8 -8
- package/dist/chunks/{websearch-s8d7rejh.js → location-02nrjc1r.js} +8 -8
- package/dist/chunks/{websearch-0wmc8652.js → location-08mhz53j.js} +11 -11
- package/dist/chunks/{websearch-tf2nhjex.js → location-0bx9ftm6.js} +20 -20
- package/dist/chunks/{websearch-g37mjr4e.js → location-0d5fgvs9.js} +15 -15
- package/dist/chunks/{websearch-jneafm26.js → location-0dnxk7rk.js} +7 -7
- package/dist/chunks/{websearch-k10p7qps.js → location-0gn2wfg7.js} +4 -4
- package/dist/chunks/{websearch-gwj41vyz.js → location-0gwx0s3y.js} +7 -7
- package/dist/chunks/{websearch-2yb0fdev.js → location-0k8emadn.js} +54 -54
- package/dist/chunks/{websearch-w4zft92x.js → location-0ngbj78w.js} +11 -11
- package/dist/chunks/{websearch-gjk5m4qa.js → location-0p4tcy8x.js} +60 -13
- package/dist/chunks/{websearch-0vbcp93d.js → location-0vbcp93d.js} +2 -2
- package/dist/chunks/{websearch-yp2x3t23.js → location-1acjjqhc.js} +4 -4
- package/dist/chunks/{websearch-bjx1sjef.js → location-1ffvrpkg.js} +6 -6
- package/dist/chunks/{websearch-pb47hwpg.js → location-1gb4csdk.js} +34 -17
- package/dist/chunks/{websearch-nkndh8r8.js → location-1hws7hxk.js} +15 -15
- package/dist/chunks/{websearch-7hpzdccj.js → location-1qeeh34f.js} +8 -8
- package/dist/chunks/{websearch-rgxvqbqk.js → location-2ajwk0j6.js} +33 -33
- package/dist/chunks/{websearch-ay2x71k1.js → location-2k9gth8v.js} +9 -9
- package/dist/chunks/{websearch-a2647qfq.js → location-2s0kcc7y.js} +187 -187
- package/dist/chunks/{websearch-ay3jh19j.js → location-2svw76rs.js} +20 -20
- package/dist/chunks/{websearch-v1kmxtyj.js → location-30z8dtpn.js} +10 -10
- package/dist/chunks/{websearch-kkkrbyg1.js → location-31sbk34f.js} +11 -11
- package/dist/chunks/{websearch-1y335d10.js → location-32g64bfd.js} +4 -4
- package/dist/chunks/{websearch-k9mnbpyw.js → location-332p2pj5.js} +63 -63
- package/dist/chunks/{websearch-xrb85mgg.js → location-37dgakmz.js} +26 -26
- package/dist/chunks/{websearch-3fc6dm20.js → location-3fc6dm20.js} +1 -1
- package/dist/chunks/{websearch-3hepkmqq.js → location-3hepkmqq.js} +1 -1
- package/dist/chunks/{websearch-3hwn7j4h.js → location-3hwn7j4h.js} +2 -2
- package/dist/chunks/{websearch-we87z89c.js → location-3k46pnes.js} +13 -13
- package/dist/chunks/{websearch-a4h58p2q.js → location-3kxs742t.js} +6 -6
- package/dist/chunks/{websearch-3smtnn6g.js → location-3smtnn6g.js} +1 -1
- package/dist/chunks/{websearch-3tvqynh2.js → location-3tvqynh2.js} +1 -1
- package/dist/chunks/{websearch-kqn4kc20.js → location-3vpfcmec.js} +17 -17
- package/dist/chunks/{websearch-3zsf4n22.js → location-3zsf4n22.js} +1 -1
- package/dist/chunks/{websearch-7xrzajz9.js → location-4826d3mm.js} +21 -21
- package/dist/chunks/{websearch-dhb2hta4.js → location-4ekscj25.js} +5 -5
- package/dist/chunks/{websearch-x5h28p89.js → location-4pqc6r0s.js} +21 -21
- package/dist/chunks/{websearch-ztcw2cka.js → location-4vkzjfz1.js} +16 -16
- package/dist/chunks/{websearch-6yz0wx8n.js → location-4xpgt2w9.js} +5 -5
- package/dist/chunks/{websearch-30n06459.js → location-54ekx5ae.js} +30 -30
- package/dist/chunks/{websearch-54ma36ye.js → location-54ma36ye.js} +1 -1
- package/dist/chunks/{websearch-m5yraf7v.js → location-55m3mq6h.js} +29 -32
- package/dist/chunks/{websearch-rp432f9z.js → location-5a4fa56b.js} +33 -33
- package/dist/chunks/{websearch-wazcrk27.js → location-5kmwyhcc.js} +11 -11
- package/dist/chunks/{websearch-5m9w47nd.js → location-5m9w47nd.js} +1 -1
- package/dist/chunks/{websearch-e3qxr5gk.js → location-5qd3pb7m.js} +2 -2
- package/dist/chunks/{websearch-88wazn9e.js → location-5r0e9r43.js} +34 -34
- package/dist/chunks/{websearch-hhd9bfcx.js → location-5r0sd97x.js} +14 -14
- package/dist/chunks/{websearch-v0es1rhs.js → location-5v0crexd.js} +9 -9
- package/dist/chunks/{websearch-9hn6k4tm.js → location-5xtgfte3.js} +8 -8
- package/dist/chunks/{websearch-pghxh1nh.js → location-604zh56d.js} +11 -11
- package/dist/chunks/{websearch-6hjx5zpb.js → location-6fatt4mk.js} +9 -9
- package/dist/chunks/{websearch-zkf2w606.js → location-6je2rgp2.js} +21 -22
- package/dist/chunks/{websearch-8sze2n9a.js → location-6pc27hjz.js} +2 -2
- package/dist/chunks/{websearch-v7z2bvyd.js → location-6rm5yzkt.js} +4 -4
- package/dist/chunks/{websearch-6xb47vfp.js → location-6xb47vfp.js} +1 -1
- package/dist/chunks/{websearch-efjjmtnj.js → location-725z4hsd.js} +26 -26
- package/dist/chunks/{websearch-775gj3j1.js → location-775gj3j1.js} +2 -2
- package/dist/chunks/{websearch-phepkm1d.js → location-7b3a7ss3.js} +12 -12
- package/dist/chunks/{websearch-ja06ey8y.js → location-7b4crnna.js} +15 -15
- package/dist/chunks/{websearch-7bmhse3q.js → location-7bmhse3q.js} +1 -1
- package/dist/chunks/{websearch-mj7h6rjn.js → location-7c6xqexj.js} +19 -19
- package/dist/chunks/{websearch-0zmxjhgt.js → location-7fpfrasm.js} +27 -26
- package/dist/chunks/{websearch-gfhhve88.js → location-7r0r50e5.js} +5 -5
- package/dist/chunks/{websearch-84txncab.js → location-84txncab.js} +1 -1
- package/dist/chunks/{websearch-71434wjh.js → location-8945desn.js} +14 -14
- package/dist/chunks/{websearch-qwjmgwmn.js → location-8ank75fn.js} +8 -8
- package/dist/chunks/{websearch-3yzh7hr7.js → location-8ekd6vxm.js} +27 -27
- package/dist/chunks/{websearch-8m6m0r52.js → location-8m6m0r52.js} +1 -1
- package/dist/chunks/{websearch-rww43xzx.js → location-8n3txx1w.js} +5 -5
- package/dist/chunks/{websearch-qp956b5j.js → location-922zmdzk.js} +11 -11
- package/dist/chunks/{websearch-w46jqsvm.js → location-98tg60b9.js} +22 -22
- package/dist/chunks/{websearch-c7gbd1xe.js → location-98vn5e4g.js} +16 -16
- package/dist/chunks/{websearch-hx6kv5hf.js → location-9emww0n5.js} +42 -42
- package/dist/chunks/{websearch-9c3np669.js → location-9ex8f1cq.js} +8 -8
- package/dist/chunks/{websearch-mq0qga5n.js → location-a08hwrr8.js} +28 -28
- package/dist/chunks/{websearch-1p799z25.js → location-a3kydf8v.js} +16 -16
- package/dist/chunks/{websearch-rhbc2745.js → location-ac3w4tg1.js} +11 -11
- package/dist/chunks/location-ad2byham.js +180 -0
- package/dist/chunks/{websearch-qr9hjn0s.js → location-agk9a7ht.js} +9 -9
- package/dist/chunks/location-ankyagqv.js +123 -0
- package/dist/chunks/{websearch-ztvjr4k5.js → location-aqjemj7v.js} +21 -21
- package/dist/chunks/{websearch-scgrse2b.js → location-b3f8fkhc.js} +5 -5
- package/dist/chunks/{websearch-n33ezsnm.js → location-b476w8hy.js} +46 -32
- package/dist/chunks/location-b49nb10p.js +253 -0
- package/dist/chunks/{websearch-nytcpyw5.js → location-b5t06xk9.js} +44 -44
- package/dist/chunks/{websearch-0fz4623t.js → location-bczx5ry5.js} +1 -1
- package/dist/chunks/{websearch-gqkzrhj2.js → location-bdva7wc0.js} +14 -14
- package/dist/chunks/{websearch-s5dq0fh7.js → location-bfwybkmg.js} +32 -32
- package/dist/chunks/{websearch-tt87ktex.js → location-bv75eenn.js} +18 -18
- package/dist/chunks/{websearch-w4y2mxn4.js → location-byhrkmnv.js} +23 -23
- package/dist/chunks/{websearch-c1fqxshp.js → location-c1fqxshp.js} +3 -3
- package/dist/chunks/{websearch-hkffa77z.js → location-c9wbyant.js} +4 -4
- package/dist/chunks/{websearch-9zfhyfhf.js → location-chbmk58x.js} +3 -3
- package/dist/chunks/{websearch-e0dbc2qq.js → location-cneqc13g.js} +4 -4
- package/dist/chunks/{websearch-c765mh8b.js → location-cwa6csj7.js} +9 -9
- package/dist/chunks/{websearch-5pffn7jv.js → location-d08c6kge.js} +30 -30
- package/dist/chunks/{websearch-tcay1cqt.js → location-d0k1g5nx.js} +6 -6
- package/dist/chunks/{websearch-5z3y5rqa.js → location-d2gxvrjz.js} +50 -50
- package/dist/chunks/{websearch-z938xz10.js → location-d2kjhx1e.js} +51 -51
- package/dist/chunks/{websearch-5e1pzs32.js → location-d43tgzm4.js} +9 -9
- package/dist/chunks/{websearch-rh5yy33f.js → location-d5am0rpv.js} +41 -41
- package/dist/chunks/{websearch-d883s65k.js → location-dn4cq3jj.js} +23 -23
- package/dist/chunks/{websearch-dqxsqydv.js → location-dqxsqydv.js} +1 -1
- package/dist/chunks/{websearch-xfkkasph.js → location-drwq78ky.js} +4 -4
- package/dist/chunks/{websearch-25xd1pye.js → location-dwtdh34y.js} +11 -7
- package/dist/chunks/location-dxj72tfx.js +18 -0
- package/dist/chunks/{websearch-btgkzwpb.js → location-dyava1km.js} +13 -13
- package/dist/chunks/{websearch-hhyv66vq.js → location-e21ryx48.js} +5 -5
- package/dist/chunks/{websearch-crt9038w.js → location-e3h2tv5m.js} +38 -37
- package/dist/chunks/{websearch-kb7wnz6t.js → location-e6hpsnvb.js} +33 -33
- package/dist/chunks/{websearch-8wjeg5tw.js → location-ed777npe.js} +11 -11
- package/dist/chunks/{websearch-fm2qvscf.js → location-edrmdtr5.js} +7 -7
- package/dist/chunks/{websearch-eej6y6fw.js → location-eej6y6fw.js} +2 -2
- package/dist/chunks/{websearch-ef5x83kb.js → location-ef5x83kb.js} +1 -1
- package/dist/chunks/{websearch-arkfezfn.js → location-ef6w4cys.js} +25 -25
- package/dist/chunks/{websearch-z7m47ewa.js → location-egeseaw5.js} +8 -8
- package/dist/chunks/{websearch-xg4371px.js → location-egy7b75h.js} +35 -35
- package/dist/chunks/{websearch-d8qsn68y.js → location-eykbxn2n.js} +17 -17
- package/dist/chunks/{websearch-t8n1383z.js → location-f4pp2f84.js} +37 -37
- package/dist/chunks/{websearch-97j7w773.js → location-f6v6e9jj.js} +47 -37
- package/dist/chunks/{websearch-stv64172.js → location-fak546jh.js} +24 -24
- package/dist/chunks/{websearch-fcrkznn8.js → location-fcrkznn8.js} +1 -1
- package/dist/chunks/{websearch-3c656pdg.js → location-fgamwy3d.js} +11 -11
- package/dist/chunks/{websearch-k2grd0fw.js → location-fv1pwmey.js} +3 -3
- package/dist/chunks/{websearch-73ndx0kt.js → location-fykrrrct.js} +9 -9
- package/dist/chunks/{websearch-y7nndgyc.js → location-g686f6pq.js} +9 -9
- package/dist/chunks/{websearch-gd4qta3r.js → location-gd4qta3r.js} +1 -1
- package/dist/chunks/{websearch-q8fpdxtt.js → location-gdmbfffs.js} +45 -45
- package/dist/chunks/location-gjy4e9va.js +513 -0
- package/dist/chunks/{websearch-mp6nn8em.js → location-gkv0m4je.js} +3 -3
- package/dist/chunks/{websearch-n3dj4p5b.js → location-gp4grenw.js} +46 -46
- package/dist/chunks/{websearch-r2k8chwn.js → location-gwf59qdk.js} +42 -42
- package/dist/chunks/{websearch-h6vf3j39.js → location-h6vf3j39.js} +1 -1
- package/dist/chunks/{websearch-31xfzrxg.js → location-h7s7r6s9.js} +5 -5
- package/dist/chunks/{websearch-7qq3ahcc.js → location-had4kgfk.js} +6 -6
- package/dist/chunks/{websearch-tmfxf5e7.js → location-hcv80w8f.js} +11 -11
- package/dist/chunks/{websearch-ec2vep54.js → location-hdyh3agd.js} +19 -19
- package/dist/chunks/{websearch-hgz4x7wa.js → location-hgz4x7wa.js} +1 -1
- package/dist/chunks/{websearch-gspy0ysg.js → location-hhkvbeez.js} +4 -4
- package/dist/chunks/{websearch-pzwg7x8a.js → location-hm3bk0p8.js} +32 -32
- package/dist/chunks/{websearch-vrc1bnre.js → location-htx0x9rj.js} +30 -30
- package/dist/chunks/{websearch-91qna3x0.js → location-j09zfasm.js} +3 -3
- package/dist/chunks/{websearch-d2wa1q6j.js → location-j0p2n9y3.js} +25 -25
- package/dist/chunks/{websearch-cyakegjg.js → location-jdj7c2dh.js} +11 -11
- package/dist/chunks/{websearch-6xt5eqb0.js → location-jf14n6qf.js} +6 -6
- package/dist/chunks/{websearch-t41sszjr.js → location-jr70j6bk.js} +22 -22
- package/dist/chunks/{websearch-aa567zw8.js → location-jv6mm5r1.js} +6 -6
- package/dist/chunks/{websearch-addxnjmp.js → location-k22b66k8.js} +4 -4
- package/dist/chunks/{websearch-avae2qkj.js → location-k2a504bc.js} +14 -14
- package/dist/chunks/location-k2w6m327.js +26 -0
- package/dist/chunks/{websearch-zd7wpxs7.js → location-k6t9754k.js} +2 -2
- package/dist/chunks/{websearch-m2xy2q1r.js → location-k9axst5t.js} +10 -10
- package/dist/chunks/{websearch-vywg70mg.js → location-kavz8ev8.js} +18 -18
- package/dist/chunks/{websearch-4xzdjh1a.js → location-kdv1w5tp.js} +10 -10
- package/dist/chunks/{websearch-ng1gee1q.js → location-kfspy82a.js} +5 -5
- package/dist/chunks/{websearch-hq3c8me3.js → location-khmqacep.js} +4 -4
- package/dist/chunks/{websearch-346y6mfm.js → location-kje2jy7e.js} +3 -3
- package/dist/chunks/{websearch-hrg4krg0.js → location-kkhv8ffc.js} +9 -9
- package/dist/chunks/{websearch-97zq4prq.js → location-kkv8xsc6.js} +11 -11
- package/dist/chunks/{websearch-2ccvkpx1.js → location-kwb1v3vj.js} +19 -17
- package/dist/chunks/{websearch-5hft8km6.js → location-m464tetq.js} +30 -30
- package/dist/chunks/{websearch-m9w0rfyh.js → location-m9w0rfyh.js} +1 -1
- package/dist/chunks/{websearch-maspj1v3.js → location-maspj1v3.js} +1 -1
- package/dist/chunks/{websearch-1pekzpef.js → location-mgnytpvb.js} +24 -24
- package/dist/chunks/{websearch-07vcyzex.js → location-n207hqvt.js} +25 -25
- package/dist/chunks/{websearch-4ft0y05w.js → location-n75tjgph.js} +26 -26
- package/dist/chunks/{websearch-espep7zj.js → location-n7zsrb9m.js} +5 -5
- package/dist/chunks/{websearch-3dmcmtv3.js → location-nc34fnv7.js} +18 -18
- package/dist/chunks/{websearch-e8peznf1.js → location-ndxmvpwy.js} +24 -24
- package/dist/chunks/{websearch-a73a6c6h.js → location-nmrzdgqa.js} +13 -13
- package/dist/chunks/{websearch-tx4eqkkw.js → location-nxwbzm2s.js} +24 -24
- package/dist/chunks/{websearch-jehjq15e.js → location-p0b32wnx.js} +14 -14
- package/dist/chunks/{websearch-dxzfr4ve.js → location-p59fwf97.js} +7 -7
- package/dist/chunks/{websearch-am1tmpj5.js → location-pba85c1x.js} +10 -10
- package/dist/chunks/{websearch-p2w45j0v.js → location-pey7n3za.js} +21 -21
- package/dist/chunks/{websearch-pjvnvgmy.js → location-pjvnvgmy.js} +1 -1
- package/dist/chunks/{websearch-pknna89w.js → location-pknna89w.js} +1 -1
- package/dist/chunks/{websearch-7cmmjc66.js → location-ps53sfwy.js} +8 -8
- package/dist/chunks/{websearch-x5wkbpg0.js → location-ptefqdz6.js} +45 -45
- package/dist/chunks/{websearch-pxwwnbaf.js → location-ptva3pym.js} +45 -44
- package/dist/chunks/{websearch-bwd5tn72.js → location-pyv4m8ny.js} +3 -3
- package/dist/chunks/{websearch-44gjh96b.js → location-pzq6k8vz.js} +84 -84
- package/dist/chunks/{websearch-etc2b570.js → location-q02nkz8q.js} +15 -15
- package/dist/chunks/{websearch-ynreg67e.js → location-q22hcgwy.js} +4 -4
- package/dist/chunks/{websearch-hkkd4pm1.js → location-q4ht2jz5.js} +9 -9
- package/dist/chunks/{websearch-4gq7ecwc.js → location-q66bexh6.js} +18 -18
- package/dist/chunks/{websearch-kfxbay1b.js → location-q89amkt5.js} +13 -13
- package/dist/chunks/{websearch-8t7fzwbd.js → location-qfav9mb9.js} +20 -20
- package/dist/chunks/{websearch-sjh1dprn.js → location-qfqwar9z.js} +25 -25
- package/dist/chunks/{websearch-dyd0ex0t.js → location-qjmwhgd5.js} +18 -18
- package/dist/chunks/{websearch-5r3x27sy.js → location-qkefedax.js} +20 -20
- package/dist/chunks/{websearch-qnc92qwc.js → location-qnc92qwc.js} +1 -1
- package/dist/chunks/{websearch-qsdy395h.js → location-qsdy395h.js} +1 -1
- package/dist/chunks/{websearch-103sg1x0.js → location-qvbvh2j1.js} +30 -30
- package/dist/chunks/{websearch-e80seqcp.js → location-r2z489rp.js} +3 -3
- package/dist/chunks/{websearch-r8x9drbh.js → location-rbdhhdfw.js} +5 -5
- package/dist/chunks/{websearch-pqwxz2b0.js → location-rda1ncrk.js} +5 -5
- package/dist/chunks/{websearch-rdw6cm16.js → location-rdw6cm16.js} +1 -1
- package/dist/chunks/{websearch-rert0e01.js → location-rert0e01.js} +2 -2
- package/dist/chunks/{websearch-hrgbrncq.js → location-rexbarkw.js} +14 -14
- package/dist/chunks/{websearch-rj3eygr5.js → location-rj3eygr5.js} +2 -2
- package/dist/chunks/{websearch-dhmh7aw6.js → location-rpg9c19m.js} +4 -4
- package/dist/chunks/{websearch-r2710ff6.js → location-rx3mvgkr.js} +25 -25
- package/dist/chunks/{websearch-xxxym934.js → location-s26hbv8p.js} +4 -4
- package/dist/chunks/{websearch-9h5qj14f.js → location-s42x7kbt.js} +5 -5
- package/dist/chunks/{websearch-866agajq.js → location-s8efh3qt.js} +18 -18
- package/dist/chunks/{websearch-sa8ekw3f.js → location-sa8ekw3f.js} +2 -2
- package/dist/chunks/{websearch-g6vmwyfr.js → location-sk8ngeq0.js} +15 -15
- package/dist/chunks/{websearch-eawvaaey.js → location-sp3e7rwb.js} +52 -52
- package/dist/chunks/{websearch-hhtxcv9s.js → location-sp6sqjr9.js} +32 -32
- package/dist/chunks/{websearch-1b4m0bzf.js → location-syf57q56.js} +4 -4
- package/dist/chunks/{websearch-syv4x271.js → location-syv4x271.js} +1 -1
- package/dist/chunks/{websearch-krdzrw7f.js → location-t3nfadhs.js} +77 -77
- package/dist/chunks/{websearch-5aq1sray.js → location-t57002t3.js} +17 -17
- package/dist/chunks/{websearch-tazgh4e4.js → location-tazgh4e4.js} +1 -1
- package/dist/chunks/{websearch-tcezcvh9.js → location-tcezcvh9.js} +1 -1
- package/dist/chunks/{websearch-tdstcens.js → location-tdstcens.js} +1 -1
- package/dist/chunks/{websearch-tm0kqsz3.js → location-tm0kqsz3.js} +1 -1
- package/dist/chunks/{websearch-kjm8yh2d.js → location-twaq3jzm.js} +22 -22
- package/dist/chunks/{websearch-pkj8hqbd.js → location-txm3e8qz.js} +9 -9
- package/dist/chunks/{websearch-tyytaxap.js → location-tyytaxap.js} +1 -1
- package/dist/chunks/{websearch-aqa98z50.js → location-v23zj4w8.js} +16 -16
- package/dist/chunks/{websearch-jhxrt86x.js → location-v2hqmhsj.js} +28 -28
- package/dist/chunks/{websearch-92m1j5rh.js → location-v41ydkwg.js} +17 -17
- package/dist/chunks/{websearch-wgdke5pv.js → location-v5asjnvt.js} +10 -10
- package/dist/chunks/{websearch-55nka2g1.js → location-v5v0w1v9.js} +4 -4
- package/dist/chunks/{websearch-v7p4zvkq.js → location-v7p4zvkq.js} +2 -2
- package/dist/chunks/{websearch-gdbb1day.js → location-vafycr3d.js} +1 -1
- package/dist/chunks/{websearch-veqvce7d.js → location-veqvce7d.js} +1 -1
- package/dist/chunks/{websearch-nkt96xeg.js → location-vmz83zrx.js} +3 -3
- package/dist/chunks/{websearch-1k6qkxqp.js → location-vtv85xx9.js} +4 -4
- package/dist/chunks/{websearch-vzs5sf6e.js → location-vzs5sf6e.js} +1 -1
- package/dist/chunks/{websearch-w3wsvvr9.js → location-w3wsvvr9.js} +1 -1
- package/dist/chunks/{websearch-663z1agk.js → location-w8s3ffgw.js} +30 -30
- package/dist/chunks/{websearch-xkhfjrgz.js → location-w8yd89gy.js} +3 -3
- package/dist/chunks/{websearch-g5x1q65a.js → location-wapmwjpk.js} +4 -4
- package/dist/chunks/{websearch-r9m9gn5p.js → location-wcgwrd3j.js} +29 -20
- package/dist/chunks/{websearch-wd87259q.js → location-wd87259q.js} +1 -1
- package/dist/chunks/{websearch-x0fnqmv0.js → location-wdwn1xw9.js} +15 -15
- package/dist/chunks/{websearch-p97g2b6e.js → location-wgkt74tw.js} +8 -8
- package/dist/chunks/{websearch-f7ayr8mx.js → location-wmx2yec4.js} +24 -24
- package/dist/chunks/{websearch-qfx9w7bq.js → location-wnqm0cgw.js} +14 -8
- package/dist/chunks/{websearch-7gra0nqm.js → location-wpw4fxj8.js} +12 -12
- package/dist/chunks/{websearch-9vkn4ng5.js → location-x4zxggeh.js} +31 -31
- package/dist/chunks/{websearch-tdhdpjpk.js → location-x72tgrkt.js} +10 -10
- package/dist/chunks/{websearch-ada5kfrj.js → location-xc3gbc81.js} +10 -10
- package/dist/chunks/{websearch-da8gdpq5.js → location-xdyvfy69.js} +9 -9
- package/dist/chunks/{websearch-caa8k32f.js → location-xg3acd94.js} +74 -52
- package/dist/chunks/{websearch-kev8d4bj.js → location-xjqbcb23.js} +26 -26
- package/dist/chunks/{websearch-p08b6fdv.js → location-xshzrn6p.js} +18 -18
- package/dist/chunks/{websearch-6wc34s84.js → location-xx6gh137.js} +11 -11
- package/dist/chunks/{websearch-8wkxae25.js → location-xxbhqfv7.js} +13 -13
- package/dist/chunks/{websearch-3m7syb4v.js → location-xz5ete57.js} +17 -17
- package/dist/chunks/{websearch-8p3ctfjr.js → location-y01krfzx.js} +11 -11
- package/dist/chunks/{websearch-y1fvbwt7.js → location-y1fvbwt7.js} +1 -1
- package/dist/chunks/{websearch-y71avatq.js → location-y71avatq.js} +1 -1
- package/dist/chunks/{websearch-qcs9fwqv.js → location-y8asngre.js} +11 -11
- package/dist/chunks/{websearch-1cegxmx6.js → location-y8jdt19h.js} +3 -3
- package/dist/chunks/{websearch-p2aadfsr.js → location-yeaxfmem.js} +18 -18
- package/dist/chunks/{websearch-zmr78fwr.js → location-ygdna4kr.js} +5 -5
- package/dist/chunks/{websearch-52xjsfcv.js → location-yhntedeb.js} +9 -9
- package/dist/chunks/{websearch-6560wqgx.js → location-ykfvkqah.js} +3 -3
- package/dist/chunks/{websearch-br0hqn3c.js → location-ynrbdj0p.js} +25 -25
- package/dist/chunks/{websearch-yfy85faz.js → location-yz9xngpq.js} +5 -5
- package/dist/chunks/{websearch-z0bkrqjs.js → location-z0bkrqjs.js} +1 -1
- package/dist/chunks/{websearch-1tehwsrg.js → location-z0pkcfr2.js} +26 -26
- package/dist/chunks/{websearch-haa4cca0.js → location-z41z05dk.js} +6 -6
- package/dist/chunks/{websearch-m3chcn87.js → location-zbax6w3t.js} +19 -19
- package/dist/chunks/{websearch-nvgev6qc.js → location-zewj3pg6.js} +15 -15
- package/dist/chunks/{websearch-dk6ncfcg.js → location-zg9mg9xh.js} +6 -6
- package/dist/chunks/{websearch-3p5nkzgw.js → location-zqkh3haf.js} +16 -16
- package/dist/chunks/{websearch-zr2ceqn5.js → location-zr2ceqn5.js} +1 -1
- package/dist/chunks/{websearch-aq92k1t1.js → location-zrjxanbe.js} +36 -26
- package/dist/chunks/{websearch-tax3fkaf.js → location-zvn35tm5.js} +1 -1
- package/dist/chunks/{websearch-zxq2ej10.js → location-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 +87 -87
- 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 +116 -118
- package/dist/config/plugin/command.js +205 -207
- package/dist/config/plugin/compaction.js +154 -156
- package/dist/config/plugin/compatibility.js +132 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -119
- package/dist/config/plugin/image.js +116 -118
- package/dist/config/plugin/instruction.js +116 -92
- package/dist/config/plugin/location-watcher.js +116 -118
- package/dist/config/plugin/mcp.js +123 -125
- package/dist/config/plugin/policy.js +117 -119
- package/dist/config/plugin/provider.js +116 -118
- package/dist/config/plugin/reference.js +118 -120
- package/dist/config/plugin/shell.js +118 -120
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +137 -139
- package/dist/config/plugin/snapshot.js +116 -118
- package/dist/config/plugin/source.js +117 -119
- package/dist/config/plugin/tool-output.js +117 -119
- package/dist/config/plugin/websearch.js +117 -119
- package/dist/config/plugin/worktree.js +118 -120
- package/dist/config/variable.js +1 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -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 +366 -368
- 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 +97 -97
- 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 +92 -92
- 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 +214 -216
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +104 -104
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +357 -359
- package/dist/instruction-discovery.js +86 -87
- package/dist/instructions/builtins.js +87 -87
- 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 +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +354 -356
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +107 -99
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +131 -131
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model.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 +86 -86
- 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 +211 -213
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +329 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -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 +116 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -116
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -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 +113 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -127
- package/dist/plugin/provider/local.js +122 -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 +125 -127
- package/dist/plugin/provider/openai.js +116 -118
- package/dist/plugin/provider/opencode.js +100 -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 +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 -117
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -127
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -169
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -350
- 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 -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 +218 -220
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +105 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +95 -95
- package/dist/reference/instructions.js +87 -87
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +133 -133
- 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 +214 -216
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +90 -90
- 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 +120 -118
- package/dist/session/model-transport.js +5 -5
- 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 +224 -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 +127 -127
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -166
- package/dist/session/shell.js +130 -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 +205 -207
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +214 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -211
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +130 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +95 -95
- 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 +124 -124
- 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 +107 -107
- package/dist/tool/plugin/read.js +121 -121
- package/dist/tool/plugin/shell.js +210 -212
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +210 -212
- package/dist/tool/plugin/webfetch.js +114 -114
- 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 +14 -14
- package/dist/types/config/discovery.d.ts +1 -0
- package/dist/types/config/plugin/instruction.d.ts +3 -1
- package/dist/types/config/variable.d.ts +1 -44
- package/dist/types/config.d.ts +1 -0
- package/dist/types/github-copilot/chat/openai-compatible-chat-language-model.d.ts +1 -1
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +2 -2
- package/dist/types/instruction-discovery.d.ts +2 -3
- package/dist/types/model.d.ts +3 -0
- package/dist/types/provider.d.ts +2 -0
- package/dist/types/session/model-request.d.ts +2 -0
- package/dist/types/v1/config/migrate.d.ts +7 -0
- package/dist/types/variant.d.ts +3 -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 +5 -5
- package/dist/v1/config/error.js +24 -6
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +96 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +96 -94
- 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/websearch-0j77ygfz.js +0 -25
- package/dist/chunks/websearch-4se3h60w.js +0 -76
- package/dist/chunks/websearch-4wb4djvq.js +0 -253
- package/dist/chunks/websearch-d08ezc3t.js +0 -26
- package/dist/chunks/websearch-geq2zx23.js +0 -513
- package/dist/chunks/websearch-rap9a73h.js +0 -18
- package/dist/chunks/websearch-t3nt8dwz.js +0 -118
- /package/dist/chunks/{websearch-0qkdqm5v.js → location-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{websearch-0zkw76rk.js → location-0zkw76rk.js} +0 -0
- /package/dist/chunks/{websearch-17cy0kzp.js → location-17cy0kzp.js} +0 -0
- /package/dist/chunks/{websearch-1cnp2v09.js → location-1cnp2v09.js} +0 -0
- /package/dist/chunks/{websearch-1kg9ymc8.js → location-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{websearch-24dcb14g.js → location-24dcb14g.js} +0 -0
- /package/dist/chunks/{websearch-2710q6r3.js → location-2710q6r3.js} +0 -0
- /package/dist/chunks/{websearch-2axfhc9x.js → location-2axfhc9x.js} +0 -0
- /package/dist/chunks/{websearch-2bv980vf.js → location-2bv980vf.js} +0 -0
- /package/dist/chunks/{websearch-2c3vjs8z.js → location-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{websearch-359p4xyc.js → location-359p4xyc.js} +0 -0
- /package/dist/chunks/{websearch-3asan66x.js → location-3asan66x.js} +0 -0
- /package/dist/chunks/{websearch-3t0ybcrp.js → location-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{websearch-3v8g72cx.js → location-3v8g72cx.js} +0 -0
- /package/dist/chunks/{websearch-3wcehsnq.js → location-3wcehsnq.js} +0 -0
- /package/dist/chunks/{websearch-43n2bw4t.js → location-43n2bw4t.js} +0 -0
- /package/dist/chunks/{websearch-4knz6hnm.js → location-4knz6hnm.js} +0 -0
- /package/dist/chunks/{websearch-4vcrnpx2.js → location-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{websearch-4y7fprxs.js → location-4y7fprxs.js} +0 -0
- /package/dist/chunks/{websearch-53557ph1.js → location-53557ph1.js} +0 -0
- /package/dist/chunks/{websearch-550bvhaj.js → location-550bvhaj.js} +0 -0
- /package/dist/chunks/{websearch-6prwharc.js → location-6prwharc.js} +0 -0
- /package/dist/chunks/{websearch-6q2bdcd1.js → location-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{websearch-7akdwqpd.js → location-7akdwqpd.js} +0 -0
- /package/dist/chunks/{websearch-7m9af43g.js → location-7m9af43g.js} +0 -0
- /package/dist/chunks/{websearch-822emrt2.js → location-822emrt2.js} +0 -0
- /package/dist/chunks/{websearch-84wd9syh.js → location-84wd9syh.js} +0 -0
- /package/dist/chunks/{websearch-88xbtdfr.js → location-88xbtdfr.js} +0 -0
- /package/dist/chunks/{websearch-8n3pysct.js → location-8n3pysct.js} +0 -0
- /package/dist/chunks/{websearch-8wj87zfr.js → location-8wj87zfr.js} +0 -0
- /package/dist/chunks/{websearch-9a4afbnw.js → location-9a4afbnw.js} +0 -0
- /package/dist/chunks/{websearch-9rqn6x4v.js → location-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{websearch-a6k6eb26.js → location-a6k6eb26.js} +0 -0
- /package/dist/chunks/{websearch-af5trqkr.js → location-af5trqkr.js} +0 -0
- /package/dist/chunks/{websearch-afrmfg78.js → location-afrmfg78.js} +0 -0
- /package/dist/chunks/{websearch-aqzs7mqg.js → location-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{websearch-atq7p7m5.js → location-atq7p7m5.js} +0 -0
- /package/dist/chunks/{websearch-bkyjaxrp.js → location-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{websearch-bmr6ed5q.js → location-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{websearch-cf4snx6d.js → location-cf4snx6d.js} +0 -0
- /package/dist/chunks/{websearch-cvy3z8tj.js → location-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{websearch-d9fn303g.js → location-d9fn303g.js} +0 -0
- /package/dist/chunks/{websearch-d9jj8t3e.js → location-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{websearch-dajrwvna.js → location-dajrwvna.js} +0 -0
- /package/dist/chunks/{websearch-dap0rakb.js → location-dap0rakb.js} +0 -0
- /package/dist/chunks/{websearch-df08tz66.js → location-df08tz66.js} +0 -0
- /package/dist/chunks/{websearch-dy18nga0.js → location-dy18nga0.js} +0 -0
- /package/dist/chunks/{websearch-e5kj55wp.js → location-e5kj55wp.js} +0 -0
- /package/dist/chunks/{websearch-e73j6tqm.js → location-e73j6tqm.js} +0 -0
- /package/dist/chunks/{websearch-ec1grn59.js → location-ec1grn59.js} +0 -0
- /package/dist/chunks/{websearch-eh3zwz77.js → location-eh3zwz77.js} +0 -0
- /package/dist/chunks/{websearch-emrn6kk6.js → location-emrn6kk6.js} +0 -0
- /package/dist/chunks/{websearch-f0mxakyp.js → location-f0mxakyp.js} +0 -0
- /package/dist/chunks/{websearch-f6n9ztr4.js → location-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{websearch-faypxj3z.js → location-faypxj3z.js} +0 -0
- /package/dist/chunks/{websearch-fd410y7t.js → location-fd410y7t.js} +0 -0
- /package/dist/chunks/{websearch-g4wezp1m.js → location-g4wezp1m.js} +0 -0
- /package/dist/chunks/{websearch-g86h250q.js → location-g86h250q.js} +0 -0
- /package/dist/chunks/{websearch-gebd4c9n.js → location-gebd4c9n.js} +0 -0
- /package/dist/chunks/{websearch-gftt206x.js → location-gftt206x.js} +0 -0
- /package/dist/chunks/{websearch-hcxmzztb.js → location-hcxmzztb.js} +0 -0
- /package/dist/chunks/{websearch-hk9envan.js → location-hk9envan.js} +0 -0
- /package/dist/chunks/{websearch-j2ntwpah.js → location-j2ntwpah.js} +0 -0
- /package/dist/chunks/{websearch-j5zkgpj8.js → location-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{websearch-jjkms2e6.js → location-jjkms2e6.js} +0 -0
- /package/dist/chunks/{websearch-jr7sbwjy.js → location-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{websearch-jwfs4k6c.js → location-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{websearch-jze0r7bz.js → location-jze0r7bz.js} +0 -0
- /package/dist/chunks/{websearch-jzg6c2d5.js → location-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{websearch-m18g726c.js → location-m18g726c.js} +0 -0
- /package/dist/chunks/{websearch-mp448xyj.js → location-mp448xyj.js} +0 -0
- /package/dist/chunks/{websearch-msx8hqn2.js → location-msx8hqn2.js} +0 -0
- /package/dist/chunks/{websearch-n05xt0ee.js → location-n05xt0ee.js} +0 -0
- /package/dist/chunks/{websearch-n3j8tn72.js → location-n3j8tn72.js} +0 -0
- /package/dist/chunks/{websearch-njntx4h6.js → location-njntx4h6.js} +0 -0
- /package/dist/chunks/{websearch-pkyv6v7h.js → location-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{websearch-pyv0edze.js → location-pyv0edze.js} +0 -0
- /package/dist/chunks/{websearch-q3sfg36h.js → location-q3sfg36h.js} +0 -0
- /package/dist/chunks/{websearch-q74kybfr.js → location-q74kybfr.js} +0 -0
- /package/dist/chunks/{websearch-qaymkmh1.js → location-qaymkmh1.js} +0 -0
- /package/dist/chunks/{websearch-qb87gjwd.js → location-qb87gjwd.js} +0 -0
- /package/dist/chunks/{websearch-qfa1cgps.js → location-qfa1cgps.js} +0 -0
- /package/dist/chunks/{websearch-qg3g05ea.js → location-qg3g05ea.js} +0 -0
- /package/dist/chunks/{websearch-qrg20bc0.js → location-qrg20bc0.js} +0 -0
- /package/dist/chunks/{websearch-rcb2kzg1.js → location-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{websearch-sdp7kfr6.js → location-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{websearch-ssg3fenm.js → location-ssg3fenm.js} +0 -0
- /package/dist/chunks/{websearch-ve7vex1e.js → location-ve7vex1e.js} +0 -0
- /package/dist/chunks/{websearch-w803qqfp.js → location-w803qqfp.js} +0 -0
- /package/dist/chunks/{websearch-wc3fc9cn.js → location-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{websearch-wer8tq1h.js → location-wer8tq1h.js} +0 -0
- /package/dist/chunks/{websearch-wjj7prxr.js → location-wjj7prxr.js} +0 -0
- /package/dist/chunks/{websearch-wtztk69x.js → location-wtztk69x.js} +0 -0
- /package/dist/chunks/{websearch-x0ckcb58.js → location-x0ckcb58.js} +0 -0
- /package/dist/chunks/{websearch-x61499pn.js → location-x61499pn.js} +0 -0
- /package/dist/chunks/{websearch-y44na4kk.js → location-y44na4kk.js} +0 -0
- /package/dist/chunks/{websearch-y8f7s663.js → location-y8f7s663.js} +0 -0
- /package/dist/chunks/{websearch-ygaqb7jw.js → location-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{websearch-ym463w8f.js → location-ym463w8f.js} +0 -0
- /package/dist/chunks/{websearch-z5v4ffb3.js → location-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{websearch-z9919s4g.js → location-z9919s4g.js} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID5
|
|
3
|
+
} from "./location-b476w8hy.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/openrouter.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -21,7 +21,7 @@ var OpenRouterPlugin2 = define({
|
|
|
21
21
|
for (const item of models.provider.list()) {
|
|
22
22
|
if (item.provider.package !== "@opencode/ai/providers/openrouter")
|
|
23
23
|
continue;
|
|
24
|
-
for (const modelID of [
|
|
24
|
+
for (const modelID of [ID5.make("gpt-5-chat-latest"), ID5.make("openai/gpt-5-chat")]) {
|
|
25
25
|
if (!models.get(item.provider.id, modelID))
|
|
26
26
|
continue;
|
|
27
27
|
models.update(item.provider.id, modelID, (model) => {
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85,
|
|
6
6
|
node89
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./location-pyv4m8ny.js";
|
|
8
8
|
import {
|
|
9
9
|
Service84,
|
|
10
10
|
node88
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./location-wapmwjpk.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service78,
|
|
14
|
+
node81
|
|
15
|
+
} from "./location-wpw4fxj8.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID15,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info26,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event18,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-5v0crexd.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./location-rj3eygr5.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./location-sa8ekw3f.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./location-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID14,
|
|
40
|
+
Info: () => Info25,
|
|
41
|
+
NotFoundError: () => NotFoundError10,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service77,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node80,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID14 = ID15;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info25 = Info26;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError10 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID14
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service77 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,9 +98,9 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service78;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
105
|
const bus = yield* Service84;
|
|
106
106
|
const db = (yield* Service85).db;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event18.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID14.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
174
|
+
return yield* new NotFoundError10({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event18.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event18.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID14.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID14.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID14.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID14.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -248,7 +248,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
248
248
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
249
249
|
return {
|
|
250
250
|
previous,
|
|
251
|
-
id: id ??
|
|
251
|
+
id: id ?? ID14.global,
|
|
252
252
|
directory: worktree,
|
|
253
253
|
vcs: { type: "hg", store }
|
|
254
254
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* persist({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID14.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* persist({
|
|
282
|
-
id:
|
|
282
|
+
id: ID14.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID14.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service82, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event18.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service77.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node80 = makeGlobalNode({
|
|
310
|
+
service: Service77,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [node88, node89, FSUtil.node,
|
|
312
|
+
deps: [node88, node89, FSUtil.node, node81, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service77;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node80]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID14, Vcs2, Current2, Info25, UpdateInput3, NotFoundError10, root2, Service77, node80, sweepNode2, exports_project };
|
|
@@ -1,51 +1,51 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
ID17,
|
|
3
|
+
Service81
|
|
4
|
+
} from "./location-wmx2yec4.js";
|
|
5
5
|
import {
|
|
6
6
|
Ref2,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
Service65
|
|
8
|
+
} from "./location-b476w8hy.js";
|
|
9
9
|
import {
|
|
10
10
|
latest2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service62
|
|
12
|
+
} from "./location-ptva3pym.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionSchema2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./location-w8yd89gy.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./
|
|
17
|
+
Service56
|
|
18
|
+
} from "./location-98vn5e4g.js";
|
|
19
19
|
import {
|
|
20
20
|
evaluate2,
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
Service71
|
|
22
|
+
} from "./location-0k8emadn.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service25
|
|
25
|
+
} from "./location-pzq6k8vz.js";
|
|
26
26
|
import {
|
|
27
27
|
NO_TEXT2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./location-6xb47vfp.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
30
|
+
Service11
|
|
31
|
+
} from "./location-7c6xqexj.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./location-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/tool/plugin/subagent.ts
|
|
37
37
|
var exports_subagent = {};
|
|
38
38
|
__export(exports_subagent, {
|
|
39
|
-
Input: () =>
|
|
40
|
-
Output: () =>
|
|
41
|
-
Plugin: () =>
|
|
39
|
+
Input: () => Input7,
|
|
40
|
+
Output: () => Output5,
|
|
41
|
+
Plugin: () => Plugin10,
|
|
42
42
|
SubagentTool: () => exports_subagent,
|
|
43
43
|
description: () => description3,
|
|
44
|
-
name: () =>
|
|
44
|
+
name: () => name7
|
|
45
45
|
});
|
|
46
46
|
import { ToolFailure } from "@opencode/ai";
|
|
47
47
|
import { Effect, Predicate, Schema } from "effect";
|
|
48
|
-
var
|
|
48
|
+
var name7 = "subagent";
|
|
49
49
|
var backgroundResult = (sessionID) => ({
|
|
50
50
|
sessionID,
|
|
51
51
|
status: "running",
|
|
@@ -56,7 +56,7 @@ var backgroundResult = (sessionID) => ({
|
|
|
56
56
|
].join(`
|
|
57
57
|
`)
|
|
58
58
|
});
|
|
59
|
-
var
|
|
59
|
+
var Input7 = Schema.Struct({
|
|
60
60
|
agent: Schema.String.annotate({
|
|
61
61
|
description: "The type of specialized agent to use for this task. If the user asks for a subagent by a name that is not one of the available subagents, they most likely mean a model: pick a suitable agent and pass the name through the model parameter instead."
|
|
62
62
|
}),
|
|
@@ -72,7 +72,7 @@ var Input8 = Schema.Struct({
|
|
|
72
72
|
description: "Run the subagent in the background and return immediately. You will be notified when it completes. DO NOT sleep, poll, or proactively check on its progress."
|
|
73
73
|
})
|
|
74
74
|
});
|
|
75
|
-
var
|
|
75
|
+
var Output5 = Schema.Struct({
|
|
76
76
|
sessionID: SessionSchema2.ID,
|
|
77
77
|
status: Schema.Literals(["completed", "running"]),
|
|
78
78
|
output: Schema.String
|
|
@@ -86,16 +86,16 @@ var description3 = [
|
|
|
86
86
|
"Use background only for independent work that can run while you continue elsewhere."
|
|
87
87
|
].join(`
|
|
88
88
|
`);
|
|
89
|
-
var
|
|
89
|
+
var Plugin10 = {
|
|
90
90
|
id: "opencode.tool.subagent",
|
|
91
91
|
effect: Effect.fn("SubagentTool.Plugin")(function* (ctx) {
|
|
92
|
-
const sessions = yield*
|
|
93
|
-
const jobs = yield*
|
|
94
|
-
const agents = yield*
|
|
95
|
-
const config = yield*
|
|
96
|
-
const permission = yield*
|
|
97
|
-
const models = yield*
|
|
98
|
-
const subagents = yield*
|
|
92
|
+
const sessions = yield* Service25;
|
|
93
|
+
const jobs = yield* Service56;
|
|
94
|
+
const agents = yield* Service81;
|
|
95
|
+
const config = yield* Service62;
|
|
96
|
+
const permission = yield* Service71;
|
|
97
|
+
const models = yield* Service65;
|
|
98
|
+
const subagents = yield* Service11;
|
|
99
99
|
const resolveModel = Effect.fn("SubagentTool.resolveModel")(function* (input) {
|
|
100
100
|
const ref = yield* Effect.try({
|
|
101
101
|
try: () => Ref2.parse(input),
|
|
@@ -115,11 +115,11 @@ var Plugin45 = {
|
|
|
115
115
|
return ref;
|
|
116
116
|
});
|
|
117
117
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
118
|
-
name:
|
|
118
|
+
name: name7,
|
|
119
119
|
options: { codemode: false },
|
|
120
120
|
description: description3,
|
|
121
|
-
input:
|
|
122
|
-
output:
|
|
121
|
+
input: Input7,
|
|
122
|
+
output: Output5,
|
|
123
123
|
execute: (input, context) => Effect.gen(function* () {
|
|
124
124
|
const parent = yield* sessions.get(context.sessionID).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error })));
|
|
125
125
|
let current = parent;
|
|
@@ -139,7 +139,7 @@ var Plugin45 = {
|
|
|
139
139
|
if (agent.mode === "primary")
|
|
140
140
|
return yield* new ToolFailure({ message: `Agent ${input.agent} cannot run as a subagent` });
|
|
141
141
|
yield* permission.assert({
|
|
142
|
-
action:
|
|
142
|
+
action: name7,
|
|
143
143
|
resources: [agent.id],
|
|
144
144
|
save: [agent.id],
|
|
145
145
|
sessionID: context.sessionID,
|
|
@@ -168,7 +168,7 @@ var Plugin45 = {
|
|
|
168
168
|
const child = existing ?? (yield* sessions.create({
|
|
169
169
|
parentID: context.sessionID,
|
|
170
170
|
title: input.description,
|
|
171
|
-
agent:
|
|
171
|
+
agent: ID17.make(input.agent),
|
|
172
172
|
model
|
|
173
173
|
}).pipe(Effect.mapError((error) => new ToolFailure({ message: `Parent session not found: ${context.sessionID}`, error }))));
|
|
174
174
|
const background = input.background === true;
|
|
@@ -218,7 +218,7 @@ ${output.output}
|
|
|
218
218
|
})))
|
|
219
219
|
})).pipe(Effect.orDie);
|
|
220
220
|
yield* ctx.tool.hook("execute.before", (event) => Effect.sync(() => {
|
|
221
|
-
if (event.tool !==
|
|
221
|
+
if (event.tool !== name7 || !Predicate.isObject(event.input))
|
|
222
222
|
return;
|
|
223
223
|
if (event.input.model !== "" && event.input.sessionID !== "")
|
|
224
224
|
return;
|
|
@@ -230,13 +230,13 @@ ${output.output}
|
|
|
230
230
|
event.input = input;
|
|
231
231
|
}));
|
|
232
232
|
const hook = (event) => Effect.gen(function* () {
|
|
233
|
-
const tool = event.tools[
|
|
233
|
+
const tool = event.tools[name7];
|
|
234
234
|
if (!tool)
|
|
235
235
|
return;
|
|
236
236
|
const selected = yield* agents.resolve(event.agent);
|
|
237
237
|
if (!selected)
|
|
238
238
|
return;
|
|
239
|
-
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(
|
|
239
|
+
const available = (yield* agents.list()).filter((agent) => agent.mode !== "primary" && !agent.hidden && evaluate2(name7, agent.id, selected.permissions).effect !== "deny").toSorted((a, b) => a.id.localeCompare(b.id));
|
|
240
240
|
if (available.length === 0)
|
|
241
241
|
return;
|
|
242
242
|
tool.description = [
|
|
@@ -253,4 +253,4 @@ ${output.output}
|
|
|
253
253
|
})
|
|
254
254
|
};
|
|
255
255
|
|
|
256
|
-
export {
|
|
256
|
+
export { name7, Input7, Output5, description3, Plugin10, exports_subagent };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionMessage2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/message-updater.ts
|
|
9
9
|
var exports_message_updater = {};
|
|
10
10
|
__export(exports_message_updater, {
|
|
11
11
|
SessionMessageUpdater: () => exports_message_updater,
|
|
12
|
-
update: () =>
|
|
12
|
+
update: () => update2
|
|
13
13
|
});
|
|
14
14
|
import { castDraft, produce } from "immer";
|
|
15
15
|
import { DateTime, Effect, Match, pipe, Schema } from "effect";
|
|
@@ -21,7 +21,7 @@ var projectTerminalSnapshot = (draft, event) => {
|
|
|
21
21
|
files: event.data.files ? Array.from(event.data.files) : undefined
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
-
function
|
|
24
|
+
function update2(adapter, event) {
|
|
25
25
|
const created = DateTime.makeUnsafe(event.created);
|
|
26
26
|
const latestTool = (assistant, id) => assistant.content.findLast((item) => item.type === "tool" && item.id === id);
|
|
27
27
|
const latestText = (assistant) => assistant.content.findLast((item) => item.type === "text");
|
|
@@ -403,4 +403,4 @@ function update3(adapter, event) {
|
|
|
403
403
|
return project(event);
|
|
404
404
|
}
|
|
405
405
|
|
|
406
|
-
export {
|
|
406
|
+
export { update2, exports_message_updater };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make21,
|
|
14
|
+
node: () => node84,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make21 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node84 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error5, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make21, RegistryService2, registry2, registryNode2, node84, exports_driver };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Entries2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Info12
|
|
7
|
+
} from "./location-txm3e8qz.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./location-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/v1/config/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
ConfigAgentV1: () =>
|
|
16
|
-
Info: () =>
|
|
13
|
+
var exports_agent3 = {};
|
|
14
|
+
__export(exports_agent3, {
|
|
15
|
+
ConfigAgentV1: () => exports_agent3,
|
|
16
|
+
Info: () => Info11
|
|
17
17
|
});
|
|
18
18
|
import { Schema, SchemaGetter } from "effect";
|
|
19
19
|
var Color = Schema.Union([
|
|
@@ -45,7 +45,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
45
45
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
46
46
|
}),
|
|
47
47
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
48
|
-
permission: Schema.optional(
|
|
48
|
+
permission: Schema.optional(Info12)
|
|
49
49
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
50
50
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
51
51
|
var normalize = (agent) => {
|
|
@@ -64,9 +64,9 @@ var normalize = (agent) => {
|
|
|
64
64
|
const steps = agent.steps ?? agent.maxSteps;
|
|
65
65
|
return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
|
|
66
66
|
};
|
|
67
|
-
var
|
|
67
|
+
var Info11 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
|
|
68
68
|
decode: SchemaGetter.transform(normalize),
|
|
69
69
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
70
70
|
})).annotate({ identifier: "AgentConfig" });
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { Info11, exports_agent3 };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./location-08mhz53j.js";
|
|
4
4
|
import {
|
|
5
5
|
Service84
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./location-wapmwjpk.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event14
|
|
10
|
+
} from "./location-54ekx5ae.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID7,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./location-m464tetq.js";
|
|
15
15
|
import {
|
|
16
16
|
success2,
|
|
17
17
|
error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./location-pjvnvgmy.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
20
|
+
ID6,
|
|
21
21
|
mergeOverlay2,
|
|
22
22
|
mergeHeaders2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./location-xg3acd94.js";
|
|
24
24
|
import {
|
|
25
25
|
get5
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./location-54ma36ye.js";
|
|
27
27
|
import {
|
|
28
28
|
configuredSettings2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./location-zg9mg9xh.js";
|
|
30
30
|
|
|
31
31
|
// src/plugin/provider/openai.ts
|
|
32
32
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -50,7 +50,7 @@ var Claims = Schema.fromJsonString(Schema.Struct({
|
|
|
50
50
|
}));
|
|
51
51
|
var decodeClaims = Schema.decodeUnknownOption(Claims);
|
|
52
52
|
var browser = (app) => ({
|
|
53
|
-
integrationID:
|
|
53
|
+
integrationID: ID7.make("openai"),
|
|
54
54
|
method: {
|
|
55
55
|
id: browserMethodID,
|
|
56
56
|
type: "oauth",
|
|
@@ -123,7 +123,7 @@ function addressInUse(error) {
|
|
|
123
123
|
return "code" in error && error.code === "EADDRINUSE";
|
|
124
124
|
}
|
|
125
125
|
var headless = (app) => ({
|
|
126
|
-
integrationID:
|
|
126
|
+
integrationID: ID7.make("openai"),
|
|
127
127
|
method: {
|
|
128
128
|
id: headlessMethodID,
|
|
129
129
|
type: "oauth",
|
|
@@ -183,9 +183,9 @@ var OpenAIPlugin3 = define({
|
|
|
183
183
|
editor.method.update(headless(ctx.app));
|
|
184
184
|
});
|
|
185
185
|
yield* load();
|
|
186
|
-
const configured = yield* configuredSettings2(
|
|
186
|
+
const configured = yield* configuredSettings2(ID6.openai);
|
|
187
187
|
yield* ctx.provider.transform((providers) => {
|
|
188
|
-
const item = providers.get(
|
|
188
|
+
const item = providers.get(ID6.openai);
|
|
189
189
|
if (!item)
|
|
190
190
|
return;
|
|
191
191
|
const account = chatgpt?.metadata?.accountID;
|
|
@@ -205,7 +205,7 @@ var OpenAIPlugin3 = define({
|
|
|
205
205
|
});
|
|
206
206
|
});
|
|
207
207
|
yield* ctx.model.transform((models) => {
|
|
208
|
-
for (const model of models.list(
|
|
208
|
+
for (const model of models.list(ID6.openai)) {
|
|
209
209
|
models.update(model.providerID, model.id, (draft) => {
|
|
210
210
|
if (!chatgpt)
|
|
211
211
|
return;
|
|
@@ -236,14 +236,14 @@ var OpenAIPlugin3 = define({
|
|
|
236
236
|
}));
|
|
237
237
|
evt.headers.originator = "opencode";
|
|
238
238
|
evt.headers["session-id"] = session ? get5(session) : evt.sessionID;
|
|
239
|
-
}), { providerID:
|
|
239
|
+
}), { providerID: ID6.openai });
|
|
240
240
|
const omitOutputLimit = (evt) => Effect.sync(() => {
|
|
241
241
|
delete evt.options.maxTokens;
|
|
242
242
|
});
|
|
243
243
|
for (const name of ["context", "compaction"])
|
|
244
|
-
yield* ctx.session.hook(name, omitOutputLimit, { providerID:
|
|
244
|
+
yield* ctx.session.hook(name, omitOutputLimit, { providerID: ID6.openai });
|
|
245
245
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
246
|
-
yield* bus.subscribe(
|
|
246
|
+
yield* bus.subscribe(Event14.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID7.make("openai")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
247
247
|
})
|
|
248
248
|
});
|
|
249
249
|
function headers(contentType, app) {
|