@opencode/core 0.0.0-dev-87 → 0.0.0-dev-91
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 +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +79 -79
- package/dist/chunks/tool-00ve6mdn.js +18 -0
- package/dist/chunks/{generate-2azy8kv6.js → tool-0ahs07zn.js} +4 -4
- package/dist/chunks/{generate-p2tkcgx5.js → tool-0c8f71n7.js} +19 -19
- package/dist/chunks/{generate-hf1hr246.js → tool-0fwfag3t.js} +9 -9
- package/dist/chunks/{generate-e828w2e7.js → tool-0j4991a9.js} +17 -17
- package/dist/chunks/{generate-yd4fy85j.js → tool-0j8sypb1.js} +29 -29
- package/dist/chunks/{generate-818gekyj.js → tool-0qbg5y1h.js} +85 -85
- package/dist/chunks/{generate-mhdbmyw1.js → tool-0ryed6y5.js} +17 -17
- package/dist/chunks/{generate-x8nvjgx0.js → tool-11hfp36g.js} +4 -4
- package/dist/chunks/{generate-yr7x8ded.js → tool-14g07qkw.js} +25 -25
- package/dist/chunks/{generate-r55wb87a.js → tool-1cp227ey.js} +17 -17
- package/dist/chunks/{generate-0tmz53w6.js → tool-1ftdw7h3.js} +20 -20
- package/dist/chunks/{generate-gnrr882k.js → tool-1gbxvym9.js} +8 -8
- package/dist/chunks/{generate-t32ymm9y.js → tool-1ggxchhs.js} +16 -16
- package/dist/chunks/{generate-1kn6jdkn.js → tool-1kn6jdkn.js} +1 -1
- package/dist/chunks/{generate-jd96tgqq.js → tool-1pnwdb4n.js} +32 -32
- package/dist/chunks/{generate-b46zkj5d.js → tool-1q93rhva.js} +13 -13
- package/dist/chunks/{generate-btwfb7t4.js → tool-1svbn1jm.js} +4 -4
- package/dist/chunks/{generate-d1k9066s.js → tool-1t618e4c.js} +51 -51
- package/dist/chunks/{generate-1x2knyw4.js → tool-1x2knyw4.js} +1 -1
- package/dist/chunks/{generate-5zrxpy3q.js → tool-1yq9hg58.js} +5 -5
- package/dist/chunks/{generate-16y4e4a2.js → tool-1zfa644b.js} +35 -35
- package/dist/chunks/{generate-204s3925.js → tool-204s3925.js} +1 -1
- package/dist/chunks/{generate-cqe6vd9h.js → tool-230veacn.js} +12 -12
- package/dist/chunks/{generate-1ep2p91f.js → tool-27w5k9zf.js} +2 -2
- package/dist/chunks/{generate-wyh1p29c.js → tool-28v09jk4.js} +9 -9
- package/dist/chunks/{generate-s7kyse9r.js → tool-2kg89srt.js} +4 -4
- package/dist/chunks/{generate-2pkq6szf.js → tool-2kxyfk53.js} +1 -1
- package/dist/chunks/{generate-nmyhvz06.js → tool-2rvkjrha.js} +8 -8
- package/dist/chunks/{generate-z4vzxt5p.js → tool-2x2ke6ta.js} +20 -20
- package/dist/chunks/{generate-vg0erq9k.js → tool-2zp5a6yg.js} +3 -3
- package/dist/chunks/{generate-1c8y2w1q.js → tool-305xqwqt.js} +28 -33
- package/dist/chunks/{generate-sznyev98.js → tool-38adaqc0.js} +5 -5
- package/dist/chunks/{generate-0jzmh3a6.js → tool-3a164vj7.js} +16 -16
- package/dist/chunks/{generate-ayjs7tqn.js → tool-3cbjf1nt.js} +2 -2
- package/dist/chunks/{generate-qts7zgd1.js → tool-3dqda9j1.js} +56 -56
- package/dist/chunks/{generate-991qk5jk.js → tool-3e3jqjep.js} +7 -7
- package/dist/chunks/{generate-3hepkmqq.js → tool-3hepkmqq.js} +1 -1
- package/dist/chunks/{generate-3nnrz6f6.js → tool-3nnrz6f6.js} +1 -1
- package/dist/chunks/{generate-v3pw954j.js → tool-3ran0gcz.js} +4 -4
- package/dist/chunks/{generate-89abfd8b.js → tool-3vschx9t.js} +4 -4
- package/dist/chunks/{generate-rzpt8mef.js → tool-3xf4gmea.js} +33 -33
- package/dist/chunks/{generate-w2eysc6j.js → tool-40za9wsf.js} +9 -9
- package/dist/chunks/{generate-78y6m8dk.js → tool-46hcmk88.js} +88 -88
- package/dist/chunks/{generate-j159kvx1.js → tool-4h4e17dv.js} +42 -42
- package/dist/chunks/{generate-fzkz23w5.js → tool-4jxvx69e.js} +3 -3
- package/dist/chunks/{generate-7x8jfkmr.js → tool-4mfe4fpk.js} +3 -3
- package/dist/chunks/{generate-4pyp9zr9.js → tool-4pyp9zr9.js} +1 -1
- package/dist/chunks/{generate-4v008n1t.js → tool-4v008n1t.js} +1 -1
- package/dist/chunks/{generate-4drphn98.js → tool-4xer52tg.js} +9 -9
- package/dist/chunks/{generate-0dpxnw4q.js → tool-517jtzaa.js} +6 -6
- package/dist/chunks/{generate-2g20sybe.js → tool-52b9nvdb.js} +13 -13
- package/dist/chunks/{generate-rkjz549p.js → tool-5571esjp.js} +23 -23
- package/dist/chunks/{generate-hc2ycws5.js → tool-5849hgw0.js} +17 -17
- package/dist/chunks/{generate-9gdvrvfc.js → tool-5fn6dbwx.js} +5 -5
- package/dist/chunks/{generate-rfak1rzh.js → tool-5k73ne16.js} +21 -21
- package/dist/chunks/{generate-5m9w47nd.js → tool-5m9w47nd.js} +1 -1
- package/dist/chunks/{generate-zwz3fy33.js → tool-5phnv3yb.js} +6 -6
- package/dist/chunks/{generate-67vtrwg2.js → tool-5wj60p4s.js} +11 -11
- package/dist/chunks/{generate-64zkmzsq.js → tool-5y20gt8q.js} +3 -3
- package/dist/chunks/{generate-bjhzkqyk.js → tool-61ennm6n.js} +4 -4
- package/dist/chunks/{generate-59193z7h.js → tool-61q2c8gp.js} +2 -2
- package/dist/chunks/{generate-6kgtq8xg.js → tool-68x0q3w1.js} +31 -31
- package/dist/chunks/{generate-f82ew3ak.js → tool-698qh926.js} +11 -11
- package/dist/chunks/{generate-fjk0zdw3.js → tool-69xqjxg7.js} +8 -8
- package/dist/chunks/{generate-86q398xn.js → tool-6b8745b8.js} +15 -15
- package/dist/chunks/{generate-6esdw8yj.js → tool-6esdw8yj.js} +1 -1
- package/dist/chunks/{generate-qamv2m5k.js → tool-6fx7ap1b.js} +19 -19
- package/dist/chunks/{generate-rjh02mhk.js → tool-6g0tafez.js} +18 -18
- package/dist/chunks/{generate-3sd2gr1e.js → tool-6khygjy4.js} +22 -22
- package/dist/chunks/{generate-zwy5xyev.js → tool-6wkw62dq.js} +18 -18
- package/dist/chunks/{generate-2hqf8r92.js → tool-72nd48f3.js} +16 -16
- package/dist/chunks/{generate-yjerzzbx.js → tool-74zhyzb7.js} +6 -6
- package/dist/chunks/{generate-d7vsngc8.js → tool-75c6t5n2.js} +43 -43
- package/dist/chunks/{generate-76cb1hcw.js → tool-76cb1hcw.js} +1 -1
- package/dist/chunks/{generate-770pw0s1.js → tool-770pw0s1.js} +1 -1
- package/dist/chunks/{generate-c455t25p.js → tool-7aawz9ta.js} +11 -11
- package/dist/chunks/{generate-tbeb6h6m.js → tool-7aerd0dr.js} +7 -7
- package/dist/chunks/{generate-mhvba134.js → tool-7aq6rx75.js} +50 -50
- package/dist/chunks/{generate-7bmhse3q.js → tool-7bmhse3q.js} +1 -1
- package/dist/chunks/{generate-vnhacxac.js → tool-7ddp8ank.js} +22 -22
- package/dist/chunks/{generate-arh45t57.js → tool-7enbyk8v.js} +15 -15
- package/dist/chunks/{generate-gm5dcth4.js → tool-7ez3gjeb.js} +15 -15
- package/dist/chunks/{generate-fmqd5ezs.js → tool-7heva7vf.js} +15 -15
- package/dist/chunks/{generate-sngd0g0b.js → tool-7jz89kf0.js} +5 -5
- package/dist/chunks/{generate-bqrtctjr.js → tool-7mjr8a8n.js} +48 -48
- package/dist/chunks/{generate-7pj4wqt5.js → tool-7nbypc4n.js} +10 -10
- package/dist/chunks/{generate-s0pffs2s.js → tool-7spmdhhv.js} +12 -12
- package/dist/chunks/{generate-h3y9bj94.js → tool-7t6vbzys.js} +29 -29
- package/dist/chunks/{generate-fwkt2j9j.js → tool-7w0d3x1p.js} +35 -35
- package/dist/chunks/{generate-7w2ypzdf.js → tool-7w2ypzdf.js} +1 -1
- package/dist/chunks/{generate-4v04ms9s.js → tool-852b9zb5.js} +26 -26
- package/dist/chunks/{generate-p2thmtjd.js → tool-860bwv8p.js} +10 -10
- package/dist/chunks/{generate-absbpnym.js → tool-8vdz7xys.js} +11 -11
- package/dist/chunks/{generate-kqsaryg6.js → tool-8wdz4h3x.js} +26 -26
- package/dist/chunks/{generate-8wtp7s3z.js → tool-8wtp7s3z.js} +1 -1
- package/dist/chunks/{generate-90zstvax.js → tool-90zstvax.js} +1 -1
- package/dist/chunks/{generate-k47s3wnw.js → tool-91gn8tjy.js} +14 -14
- package/dist/chunks/{generate-t9ybhp1q.js → tool-9ctmy678.js} +35 -35
- package/dist/chunks/{generate-0xme6znc.js → tool-9pneywy4.js} +8 -8
- package/dist/chunks/{generate-61c8yr0p.js → tool-9qcg53ez.js} +9 -9
- package/dist/chunks/{generate-m4qbnc51.js → tool-9w4n3zkz.js} +6 -6
- package/dist/chunks/{generate-jf5akgkh.js → tool-9yr7e8hg.js} +17 -17
- package/dist/chunks/{generate-034tev2y.js → tool-aj7mw0zk.js} +2 -2
- package/dist/chunks/{generate-k5g3zbfj.js → tool-av2yj9c6.js} +11 -11
- package/dist/chunks/{generate-36zfs5jy.js → tool-awnpzmr9.js} +15 -15
- package/dist/chunks/tool-axtqa2m2.js +26 -0
- package/dist/chunks/{generate-x4swjz8b.js → tool-axy5ptv8.js} +14 -17
- package/dist/chunks/{generate-b6vsg801.js → tool-b6vsg801.js} +2 -2
- package/dist/chunks/{generate-cbbd8wae.js → tool-ba26w197.js} +2 -2
- package/dist/chunks/{generate-3ec56k2d.js → tool-beyjcx72.js} +2 -2
- package/dist/chunks/{generate-wm4h87ch.js → tool-bq6jjxqp.js} +27 -27
- package/dist/chunks/{generate-xd9cc171.js → tool-bstexjd6.js} +5 -5
- package/dist/chunks/{generate-6bwjnpkg.js → tool-bw4r357a.js} +6 -6
- package/dist/chunks/{generate-30q4jaxv.js → tool-by8ezbee.js} +7 -7
- package/dist/chunks/{generate-kgn3zbqp.js → tool-c4x8pk91.js} +3 -3
- package/dist/chunks/{generate-4cge8fea.js → tool-c50m1jnq.js} +18 -18
- package/dist/chunks/{generate-ts45p5da.js → tool-c9c3vcvh.js} +6 -6
- package/dist/chunks/{generate-8rgb2cvr.js → tool-cmwydw43.js} +9 -9
- package/dist/chunks/{generate-940k53ws.js → tool-cqw9ekvn.js} +9 -9
- package/dist/chunks/{generate-j5g81aj1.js → tool-cs175ng9.js} +36 -36
- package/dist/chunks/{generate-9me4kjev.js → tool-ct12tdge.js} +77 -77
- package/dist/chunks/{generate-cwrgdav8.js → tool-cwrgdav8.js} +2 -2
- package/dist/chunks/{generate-2w5fjxjh.js → tool-d05zg70t.js} +24 -24
- package/dist/chunks/{generate-srjr8tp2.js → tool-d24g109n.js} +4 -4
- package/dist/chunks/{generate-d4v9tmah.js → tool-d4v9tmah.js} +2 -2
- package/dist/chunks/{generate-zmg6vytx.js → tool-dcanc5rs.js} +11 -11
- package/dist/chunks/{generate-7w0hvkcz.js → tool-dp2cvfdy.js} +31 -31
- package/dist/chunks/{generate-s3hnj3sh.js → tool-draeheqz.js} +12 -12
- package/dist/chunks/{generate-p7f9amnf.js → tool-drvbhkez.js} +6 -6
- package/dist/chunks/{generate-f01y088k.js → tool-ds7r37yp.js} +5 -5
- package/dist/chunks/{generate-dt77769w.js → tool-dt77769w.js} +1 -1
- package/dist/chunks/{generate-rehf1aas.js → tool-e1mb4rnk.js} +6 -6
- package/dist/chunks/{generate-e834z07m.js → tool-e834z07m.js} +1 -1
- package/dist/chunks/{generate-b8dj6a54.js → tool-ee45cksz.js} +14 -14
- package/dist/chunks/{generate-mpck3vvq.js → tool-emmmyxzw.js} +22 -22
- package/dist/chunks/{generate-gg8p9cgs.js → tool-ep59zg61.js} +3 -3
- package/dist/chunks/{generate-3sx2qntx.js → tool-ep9ghbrk.js} +11 -11
- package/dist/chunks/{generate-y3nv4ez5.js → tool-ex547tfp.js} +24 -24
- package/dist/chunks/{generate-88mc9j9w.js → tool-f3yfea70.js} +1 -1
- package/dist/chunks/{generate-8xhzaz53.js → tool-f97eyc81.js} +5 -5
- package/dist/chunks/{generate-wd4z6ete.js → tool-fcdhbwna.js} +11 -13
- package/dist/chunks/{generate-fffv3p7h.js → tool-fffv3p7h.js} +1 -1
- package/dist/chunks/{generate-fg9p65nk.js → tool-fg9p65nk.js} +2 -2
- package/dist/chunks/{generate-fr7md461.js → tool-fhq3mczf.js} +17 -17
- package/dist/chunks/{generate-w687dnns.js → tool-fznmdakp.js} +4 -4
- package/dist/chunks/{generate-qkggpte4.js → tool-gbzp4egg.js} +18 -18
- package/dist/chunks/{generate-8nc8rjna.js → tool-gcmr6tz2.js} +25 -25
- package/dist/chunks/{generate-5a1mkymt.js → tool-gk277ckk.js} +2 -2
- package/dist/chunks/{generate-j42fhrkd.js → tool-gn34jygc.js} +21 -21
- package/dist/chunks/{generate-6wz31r82.js → tool-gp067yzn.js} +11 -11
- package/dist/chunks/{generate-q7fhnth2.js → tool-gr5kqd9r.js} +25 -25
- package/dist/chunks/{generate-4tqs0jzk.js → tool-h3b857xk.js} +4 -4
- package/dist/chunks/{generate-9b9797hz.js → tool-h57pbter.js} +13 -13
- package/dist/chunks/{generate-hdfrs5mg.js → tool-hdfrs5mg.js} +2 -2
- package/dist/chunks/{generate-j2j8je9q.js → tool-hed2thzz.js} +13 -13
- package/dist/chunks/{generate-hfgk9wzg.js → tool-hfgk9wzg.js} +1 -1
- package/dist/chunks/{generate-hf19evcz.js → tool-hghxj8gh.js} +26 -26
- package/dist/chunks/{generate-5x26af84.js → tool-hj8dv2fv.js} +4 -4
- package/dist/chunks/tool-hknrdqqs.js +257 -0
- package/dist/chunks/{generate-rvk59cr0.js → tool-hn0gtwg2.js} +5 -5
- package/dist/chunks/{generate-hpg1pkwy.js → tool-hpg1pkwy.js} +1 -1
- package/dist/chunks/{generate-f7d0b8ry.js → tool-hq4hw89f.js} +22 -22
- package/dist/chunks/{generate-w0rj9p92.js → tool-hqz3v7ac.js} +6 -6
- package/dist/chunks/{generate-zzaj8j6e.js → tool-hvb7rpxf.js} +15 -15
- package/dist/chunks/{generate-5yz609yq.js → tool-hwp1rwn1.js} +16 -16
- package/dist/chunks/{generate-52sy2wcq.js → tool-j1568g2c.js} +9 -9
- package/dist/chunks/{generate-m82x15zv.js → tool-j5cqker3.js} +4 -4
- package/dist/chunks/{generate-ztph5cdk.js → tool-j8rqras6.js} +7 -7
- package/dist/chunks/{generate-7xy7a1h3.js → tool-j9z4bav5.js} +36 -36
- package/dist/chunks/{generate-n6v2b7cw.js → tool-ja63h2sr.js} +5 -5
- package/dist/chunks/{generate-cvp0wny2.js → tool-jem635sa.js} +7 -7
- package/dist/chunks/{generate-jfaecv01.js → tool-jfaecv01.js} +1 -1
- package/dist/chunks/{generate-8ap1sysz.js → tool-jh6e5x5q.js} +24 -24
- package/dist/chunks/{generate-qt1tmgng.js → tool-jtj22pb2.js} +15 -15
- package/dist/chunks/{generate-jtnps1zs.js → tool-jtnps1zs.js} +2 -2
- package/dist/chunks/{generate-dh7hd762.js → tool-jx64hzqx.js} +17 -17
- package/dist/chunks/{generate-pbp9p02f.js → tool-k65b2vst.js} +27 -27
- package/dist/chunks/{generate-k814nvkf.js → tool-k814nvkf.js} +1 -1
- package/dist/chunks/{generate-z6nazckk.js → tool-k86ss76b.js} +14 -14
- package/dist/chunks/{generate-dc3k7rmc.js → tool-k8dvdjfn.js} +4 -4
- package/dist/chunks/{generate-gmp42p7z.js → tool-k91y97gc.js} +14 -14
- package/dist/chunks/{generate-e07q2w5p.js → tool-k9zkdd2y.js} +4 -4
- package/dist/chunks/{generate-0rvj68xf.js → tool-kfjnvpza.js} +2 -2
- package/dist/chunks/{generate-83y8w05q.js → tool-kpm58pge.js} +27 -27
- package/dist/chunks/{generate-jcrvejfm.js → tool-krv0p5sn.js} +11 -11
- package/dist/chunks/{generate-7yect7x1.js → tool-ks317rcp.js} +2 -2
- package/dist/chunks/{generate-kt3bjfbg.js → tool-kt3bjfbg.js} +1 -1
- package/dist/chunks/{generate-c710zz1y.js → tool-kx5zbgb5.js} +18 -18
- package/dist/chunks/{generate-7zkkbwvc.js → tool-m0jwy07f.js} +30 -30
- package/dist/chunks/{generate-m1714858.js → tool-m1714858.js} +1 -1
- package/dist/chunks/{generate-9e0cpdz3.js → tool-m6s8mxr7.js} +10 -10
- package/dist/chunks/{generate-m9w0rfyh.js → tool-m9w0rfyh.js} +1 -1
- package/dist/chunks/{generate-qvt710z0.js → tool-ma572n1c.js} +5 -5
- package/dist/chunks/{generate-dvbbkw5b.js → tool-mfvvktb5.js} +36 -71
- package/dist/chunks/{generate-hejbcmkq.js → tool-mkxa71wh.js} +25 -25
- package/dist/chunks/{generate-wgvnftve.js → tool-mpe6qr53.js} +8 -8
- package/dist/chunks/{generate-4rmhy327.js → tool-mwg5k7zj.js} +30 -30
- package/dist/chunks/{generate-ewr5k9wg.js → tool-n3bkb5q1.js} +8 -8
- package/dist/chunks/{generate-a20trqj4.js → tool-n3eppyw3.js} +28 -28
- package/dist/chunks/{generate-nj2tkpbg.js → tool-nad4mkqt.js} +8 -8
- package/dist/chunks/{generate-d78wxmc5.js → tool-ndtrv5vn.js} +32 -32
- package/dist/chunks/{generate-czrgpaxw.js → tool-ngbav3vd.js} +39 -39
- package/dist/chunks/{generate-hqskcfk9.js → tool-njyr3yz2.js} +152 -152
- package/dist/chunks/{generate-37b1yngk.js → tool-nk68y23q.js} +1 -1
- package/dist/chunks/{generate-p015t6z3.js → tool-p015t6z3.js} +2 -2
- package/dist/chunks/{generate-qt4dfm0j.js → tool-pg5ky8fn.js} +6 -6
- package/dist/chunks/{generate-7g6x95rm.js → tool-pjzajrbc.js} +54 -54
- package/dist/chunks/{generate-pknna89w.js → tool-pknna89w.js} +1 -1
- package/dist/chunks/{generate-26m29gst.js → tool-pqyr85nv.js} +30 -30
- package/dist/chunks/{generate-jhf76er4.js → tool-pvjefvaz.js} +19 -19
- package/dist/chunks/{generate-py366xq1.js → tool-py366xq1.js} +3 -3
- package/dist/chunks/{generate-pqymy2f2.js → tool-q2j9e0vw.js} +33 -33
- package/dist/chunks/{generate-vgt7797x.js → tool-q3v7sg8t.js} +16 -16
- package/dist/chunks/{generate-h9dnh5h3.js → tool-q3xtnt1c.js} +11 -11
- package/dist/chunks/{generate-e8d90cjd.js → tool-q4vfmnms.js} +29 -29
- package/dist/chunks/{generate-8c3av2v0.js → tool-q8fk1046.js} +32 -32
- package/dist/chunks/{generate-kejwhkvj.js → tool-q9z0p7gh.js} +18 -18
- package/dist/chunks/{generate-vd6hx57c.js → tool-qb7a72fd.js} +13 -13
- package/dist/chunks/{generate-qk9496nf.js → tool-qg14jn6v.js} +21 -21
- package/dist/chunks/{generate-xcypbb09.js → tool-qgtqwdmb.js} +12 -12
- package/dist/chunks/{generate-yara3q77.js → tool-qkw2jr9b.js} +2 -2
- package/dist/chunks/{generate-qp7r0hxv.js → tool-qp7r0hxv.js} +1 -1
- package/dist/chunks/{generate-r0yr0wbs.js → tool-r0yr0wbs.js} +1 -1
- package/dist/chunks/{generate-r542h3bh.js → tool-r542h3bh.js} +1 -1
- package/dist/chunks/{generate-ra34yqmw.js → tool-ra34yqmw.js} +1 -1
- package/dist/chunks/{generate-rb9dy4dg.js → tool-rb9dy4dg.js} +1 -1
- package/dist/chunks/{generate-wpwj3xyb.js → tool-rj977cyr.js} +23 -23
- package/dist/chunks/{generate-rt5dr6hb.js → tool-rt5dr6hb.js} +1 -1
- package/dist/chunks/{generate-tjjeexw4.js → tool-s36045k5.js} +26 -26
- package/dist/chunks/{generate-1xp23f31.js → tool-s4g3e7mz.js} +26 -26
- package/dist/chunks/{generate-sbvcw7gr.js → tool-s631gf5j.js} +24 -24
- package/dist/chunks/{generate-h1vdv31k.js → tool-s8gnseh8.js} +323 -329
- package/dist/chunks/{generate-sa3fpqfw.js → tool-sa3fpqfw.js} +2 -2
- package/dist/chunks/{generate-j581asrx.js → tool-sar0kh51.js} +16 -16
- package/dist/chunks/{generate-ggf6q6xq.js → tool-scjxmssc.js} +11 -11
- package/dist/chunks/{generate-sqjzf8x2.js → tool-sqjzf8x2.js} +1 -1
- package/dist/chunks/{generate-ssfehs1z.js → tool-ssfehs1z.js} +1 -1
- package/dist/chunks/{generate-svcy3p9a.js → tool-svcy3p9a.js} +1 -1
- package/dist/chunks/{generate-5q7eqyw1.js → tool-sweqe2a6.js} +13 -13
- package/dist/chunks/{generate-tczq8hjw.js → tool-tczq8hjw.js} +1 -1
- package/dist/chunks/{generate-dj0ndjwf.js → tool-tn29j0fz.js} +8 -8
- package/dist/chunks/{generate-twssxy5n.js → tool-twssxy5n.js} +2 -2
- package/dist/chunks/{generate-0syn0ek0.js → tool-tzr3pa0w.js} +9 -9
- package/dist/chunks/{generate-v2r1d0zg.js → tool-v2r1d0zg.js} +1 -1
- package/dist/chunks/{generate-g6y6gxmp.js → tool-v8t9vyt9.js} +30 -30
- package/dist/chunks/{generate-wevr71gn.js → tool-v9m2ypfg.js} +14 -14
- package/dist/chunks/{generate-fyxqncs3.js → tool-vaq1yek0.js} +6 -6
- package/dist/chunks/{generate-veqvce7d.js → tool-veqvce7d.js} +1 -1
- package/dist/chunks/{generate-dyn968e0.js → tool-vkd92t59.js} +38 -38
- package/dist/chunks/{generate-jm2sbvr9.js → tool-vnxqy2jq.js} +26 -26
- package/dist/chunks/{generate-bgm817xr.js → tool-vrcsa8qx.js} +9 -9
- package/dist/chunks/{generate-vpm8vpz0.js → tool-vtgxp655.js} +2 -2
- package/dist/chunks/{generate-c201zrjy.js → tool-vz02t2s9.js} +41 -41
- package/dist/chunks/{generate-w3wsvvr9.js → tool-w3wsvvr9.js} +1 -1
- package/dist/chunks/{generate-zfnetmcr.js → tool-w5w2ye0s.js} +3 -3
- package/dist/chunks/{generate-wakvkjy4.js → tool-wakvkjy4.js} +1 -1
- package/dist/chunks/{generate-wd87259q.js → tool-wd87259q.js} +1 -1
- package/dist/chunks/{generate-wd88qh38.js → tool-wm8ps0kb.js} +22 -22
- package/dist/chunks/{generate-wnhgecwx.js → tool-wnhgecwx.js} +1 -1
- package/dist/chunks/{generate-5q37s2hn.js → tool-wtjwwyta.js} +12 -12
- package/dist/chunks/{generate-6gbxzgzx.js → tool-wxf92x0x.js} +1 -1
- package/dist/chunks/{generate-y8evj2ev.js → tool-wzcyht23.js} +44 -44
- package/dist/chunks/{generate-8eady601.js → tool-wzdbde40.js} +26 -26
- package/dist/chunks/{generate-7pe3f7pj.js → tool-x0fjpjwd.js} +24 -24
- package/dist/chunks/{generate-8p48baww.js → tool-x1a7cwfg.js} +7 -7
- package/dist/chunks/{generate-et5g250t.js → tool-x1wax2tm.js} +5 -5
- package/dist/chunks/{generate-62gytg6z.js → tool-x5xx62h0.js} +14 -14
- package/dist/chunks/{generate-s7ctmszj.js → tool-xrzs0xn3.js} +8 -8
- package/dist/chunks/{generate-0yg1zctd.js → tool-xstj61st.js} +14 -14
- package/dist/chunks/{generate-yb20nhc3.js → tool-yb20nhc3.js} +1 -1
- package/dist/chunks/{generate-asmrtfxn.js → tool-yc35554n.js} +4 -4
- package/dist/chunks/{generate-zyq2yvn6.js → tool-yc9w3422.js} +13 -13
- package/dist/chunks/{generate-ydsespw1.js → tool-ydsespw1.js} +1 -1
- package/dist/chunks/tool-ymz7p2c9.js +31 -0
- package/dist/chunks/{generate-tnjzcqkq.js → tool-yqdh10qg.js} +10 -10
- package/dist/chunks/{generate-m6s56nmp.js → tool-ysxqaady.js} +23 -23
- package/dist/chunks/{generate-z0bkrqjs.js → tool-z0bkrqjs.js} +1 -1
- package/dist/chunks/{generate-qrfynh1r.js → tool-z2e75qjb.js} +18 -18
- package/dist/chunks/{generate-z38nccrw.js → tool-z38nccrw.js} +1 -1
- package/dist/chunks/{generate-2qdh4yh9.js → tool-z56aywt7.js} +16 -16
- package/dist/chunks/{generate-yzqrvcme.js → tool-zbqcyxaa.js} +19 -19
- package/dist/chunks/{generate-e5htnxnn.js → tool-zg3zhf3v.js} +28 -28
- package/dist/chunks/{generate-9z9tayqc.js → tool-zgd8t41s.js} +9 -9
- package/dist/chunks/{generate-zgkm4kzm.js → tool-zgkm4kzm.js} +3 -3
- package/dist/chunks/{generate-6n0gdry0.js → tool-zkmce7rg.js} +11 -11
- package/dist/chunks/{generate-kc6p9w6d.js → tool-zpdhy3rs.js} +23 -23
- package/dist/chunks/{generate-yqveydy6.js → tool-ztf6n3de.js} +4 -4
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- 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 +90 -90
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +121 -121
- package/dist/config/plugin/mcp.js +130 -130
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +121 -121
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +145 -145
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +120 -120
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +126 -126
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +78 -78
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +98 -98
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +375 -376
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -101
- 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 +80 -80
- package/dist/file-access.js +148 -148
- package/dist/file-mutation.js +102 -102
- 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/file-watch.js +86 -86
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +108 -108
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +115 -115
- package/dist/git.js +11 -11
- 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 +107 -107
- 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-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +1 -1
- package/dist/instance.js +368 -369
- package/dist/instruction-discovery.js +88 -88
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +84 -84
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +166 -166
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +369 -370
- package/dist/location.js +93 -93
- package/dist/managed-policy.js +5 -11
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +166 -166
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +107 -107
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +108 -108
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +110 -110
- 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 +143 -143
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +96 -96
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +342 -343
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +121 -121
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +123 -123
- package/dist/plugin/provider/opencode.js +124 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +175 -178
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +357 -358
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- 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 +6 -6
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +232 -232
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +105 -105
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +92 -92
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -103
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +164 -164
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +231 -231
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +190 -190
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +136 -136
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +81 -81
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +228 -228
- package/dist/session/usage.js +1 -1
- package/dist/session.js +221 -221
- 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 +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +141 -141
- package/dist/skill.js +148 -148
- package/dist/snapshot.js +99 -99
- 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 +167 -167
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +156 -156
- package/dist/tool/plugin/question.js +140 -140
- package/dist/tool/plugin/read.js +161 -161
- package/dist/tool/plugin/shell.js +222 -222
- package/dist/tool/plugin/skill.js +149 -149
- package/dist/tool/plugin/subagent.js +226 -226
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +149 -149
- package/dist/tool/plugin/websearch.js +145 -145
- package/dist/tool/plugin/write.js +154 -154
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/config/plugin/policy.d.ts +1 -2
- package/dist/types/managed-policy.d.ts +2 -20
- package/dist/types/plugin/internal.d.ts +2 -3
- package/dist/types/plugin/module.d.ts +1 -2
- package/dist/types/plugin/provider/opencode.d.ts +1 -2
- package/dist/usage-limits.js +95 -95
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +3 -3
- 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 +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +86 -86
- package/dist/websearch.js +92 -92
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +106 -106
- package/package.json +8 -8
- package/dist/chunks/generate-6zjm2phc.js +0 -18
- package/dist/chunks/generate-a933qt5h.js +0 -257
- package/dist/chunks/generate-bq741ffa.js +0 -171
- package/dist/chunks/generate-yjkqh27f.js +0 -26
- package/dist/chunks/generate-zk2jkd91.js +0 -59
- package/dist/plugin/provider/opencode-legacy.js +0 -119
- package/dist/types/plugin/provider/opencode-legacy.d.ts +0 -69
- /package/dist/chunks/{generate-0qkdqm5v.js → tool-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{generate-0zkw76rk.js → tool-0zkw76rk.js} +0 -0
- /package/dist/chunks/{generate-17cy0kzp.js → tool-17cy0kzp.js} +0 -0
- /package/dist/chunks/{generate-1cnp2v09.js → tool-1cnp2v09.js} +0 -0
- /package/dist/chunks/{generate-1jakw16s.js → tool-1jakw16s.js} +0 -0
- /package/dist/chunks/{generate-24dcb14g.js → tool-24dcb14g.js} +0 -0
- /package/dist/chunks/{generate-2710q6r3.js → tool-2710q6r3.js} +0 -0
- /package/dist/chunks/{generate-2bv980vf.js → tool-2bv980vf.js} +0 -0
- /package/dist/chunks/{generate-2c3vjs8z.js → tool-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{generate-359p4xyc.js → tool-359p4xyc.js} +0 -0
- /package/dist/chunks/{generate-3asan66x.js → tool-3asan66x.js} +0 -0
- /package/dist/chunks/{generate-3v8g72cx.js → tool-3v8g72cx.js} +0 -0
- /package/dist/chunks/{generate-3wcehsnq.js → tool-3wcehsnq.js} +0 -0
- /package/dist/chunks/{generate-43n2bw4t.js → tool-43n2bw4t.js} +0 -0
- /package/dist/chunks/{generate-4knz6hnm.js → tool-4knz6hnm.js} +0 -0
- /package/dist/chunks/{generate-4m86bj6y.js → tool-4m86bj6y.js} +0 -0
- /package/dist/chunks/{generate-4vcrnpx2.js → tool-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{generate-4y7fprxs.js → tool-4y7fprxs.js} +0 -0
- /package/dist/chunks/{generate-53557ph1.js → tool-53557ph1.js} +0 -0
- /package/dist/chunks/{generate-550bvhaj.js → tool-550bvhaj.js} +0 -0
- /package/dist/chunks/{generate-5w3e23ze.js → tool-5w3e23ze.js} +0 -0
- /package/dist/chunks/{generate-6prwharc.js → tool-6prwharc.js} +0 -0
- /package/dist/chunks/{generate-6q2bdcd1.js → tool-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{generate-7akdwqpd.js → tool-7akdwqpd.js} +0 -0
- /package/dist/chunks/{generate-7m9af43g.js → tool-7m9af43g.js} +0 -0
- /package/dist/chunks/{generate-822emrt2.js → tool-822emrt2.js} +0 -0
- /package/dist/chunks/{generate-84wd9syh.js → tool-84wd9syh.js} +0 -0
- /package/dist/chunks/{generate-88xbtdfr.js → tool-88xbtdfr.js} +0 -0
- /package/dist/chunks/{generate-8n3pysct.js → tool-8n3pysct.js} +0 -0
- /package/dist/chunks/{generate-8wj87zfr.js → tool-8wj87zfr.js} +0 -0
- /package/dist/chunks/{generate-9a4afbnw.js → tool-9a4afbnw.js} +0 -0
- /package/dist/chunks/{generate-9rqn6x4v.js → tool-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{generate-a058387c.js → tool-a058387c.js} +0 -0
- /package/dist/chunks/{generate-a6k6eb26.js → tool-a6k6eb26.js} +0 -0
- /package/dist/chunks/{generate-af5trqkr.js → tool-af5trqkr.js} +0 -0
- /package/dist/chunks/{generate-afrmfg78.js → tool-afrmfg78.js} +0 -0
- /package/dist/chunks/{generate-aqzs7mqg.js → tool-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{generate-atq7p7m5.js → tool-atq7p7m5.js} +0 -0
- /package/dist/chunks/{generate-beh6qq61.js → tool-beh6qq61.js} +0 -0
- /package/dist/chunks/{generate-bkyjaxrp.js → tool-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{generate-bmr6ed5q.js → tool-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{generate-cf4snx6d.js → tool-cf4snx6d.js} +0 -0
- /package/dist/chunks/{generate-cqv5kn06.js → tool-cqv5kn06.js} +0 -0
- /package/dist/chunks/{generate-cvy3z8tj.js → tool-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{generate-d9fn303g.js → tool-d9fn303g.js} +0 -0
- /package/dist/chunks/{generate-d9jj8t3e.js → tool-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{generate-dajrwvna.js → tool-dajrwvna.js} +0 -0
- /package/dist/chunks/{generate-dap0rakb.js → tool-dap0rakb.js} +0 -0
- /package/dist/chunks/{generate-df08tz66.js → tool-df08tz66.js} +0 -0
- /package/dist/chunks/{generate-dy18nga0.js → tool-dy18nga0.js} +0 -0
- /package/dist/chunks/{generate-e5kj55wp.js → tool-e5kj55wp.js} +0 -0
- /package/dist/chunks/{generate-e73j6tqm.js → tool-e73j6tqm.js} +0 -0
- /package/dist/chunks/{generate-ec1grn59.js → tool-ec1grn59.js} +0 -0
- /package/dist/chunks/{generate-eh3zwz77.js → tool-eh3zwz77.js} +0 -0
- /package/dist/chunks/{generate-emrn6kk6.js → tool-emrn6kk6.js} +0 -0
- /package/dist/chunks/{generate-f0mxakyp.js → tool-f0mxakyp.js} +0 -0
- /package/dist/chunks/{generate-f6n9ztr4.js → tool-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{generate-faypxj3z.js → tool-faypxj3z.js} +0 -0
- /package/dist/chunks/{generate-fd410y7t.js → tool-fd410y7t.js} +0 -0
- /package/dist/chunks/{generate-fkpq3x5p.js → tool-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{generate-g4wezp1m.js → tool-g4wezp1m.js} +0 -0
- /package/dist/chunks/{generate-g86h250q.js → tool-g86h250q.js} +0 -0
- /package/dist/chunks/{generate-gebd4c9n.js → tool-gebd4c9n.js} +0 -0
- /package/dist/chunks/{generate-gftt206x.js → tool-gftt206x.js} +0 -0
- /package/dist/chunks/{generate-hcxmzztb.js → tool-hcxmzztb.js} +0 -0
- /package/dist/chunks/{generate-hk9envan.js → tool-hk9envan.js} +0 -0
- /package/dist/chunks/{generate-j2ntwpah.js → tool-j2ntwpah.js} +0 -0
- /package/dist/chunks/{generate-j5zkgpj8.js → tool-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{generate-jjkms2e6.js → tool-jjkms2e6.js} +0 -0
- /package/dist/chunks/{generate-jr7sbwjy.js → tool-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{generate-jwfs4k6c.js → tool-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{generate-jwr30sdr.js → tool-jwr30sdr.js} +0 -0
- /package/dist/chunks/{generate-jze0r7bz.js → tool-jze0r7bz.js} +0 -0
- /package/dist/chunks/{generate-jzg6c2d5.js → tool-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{generate-m18g726c.js → tool-m18g726c.js} +0 -0
- /package/dist/chunks/{generate-mp448xyj.js → tool-mp448xyj.js} +0 -0
- /package/dist/chunks/{generate-msx8hqn2.js → tool-msx8hqn2.js} +0 -0
- /package/dist/chunks/{generate-n05xt0ee.js → tool-n05xt0ee.js} +0 -0
- /package/dist/chunks/{generate-n3j8tn72.js → tool-n3j8tn72.js} +0 -0
- /package/dist/chunks/{generate-ncqqe42p.js → tool-ncqqe42p.js} +0 -0
- /package/dist/chunks/{generate-njntx4h6.js → tool-njntx4h6.js} +0 -0
- /package/dist/chunks/{generate-p71gwv9c.js → tool-p71gwv9c.js} +0 -0
- /package/dist/chunks/{generate-q3sfg36h.js → tool-q3sfg36h.js} +0 -0
- /package/dist/chunks/{generate-q74kybfr.js → tool-q74kybfr.js} +0 -0
- /package/dist/chunks/{generate-qaymkmh1.js → tool-qaymkmh1.js} +0 -0
- /package/dist/chunks/{generate-qb87gjwd.js → tool-qb87gjwd.js} +0 -0
- /package/dist/chunks/{generate-qfa1cgps.js → tool-qfa1cgps.js} +0 -0
- /package/dist/chunks/{generate-qg3g05ea.js → tool-qg3g05ea.js} +0 -0
- /package/dist/chunks/{generate-qrg20bc0.js → tool-qrg20bc0.js} +0 -0
- /package/dist/chunks/{generate-rcb2kzg1.js → tool-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{generate-sdp7kfr6.js → tool-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{generate-ssg3fenm.js → tool-ssg3fenm.js} +0 -0
- /package/dist/chunks/{generate-ve7vex1e.js → tool-ve7vex1e.js} +0 -0
- /package/dist/chunks/{generate-w803qqfp.js → tool-w803qqfp.js} +0 -0
- /package/dist/chunks/{generate-wc3fc9cn.js → tool-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{generate-wer8tq1h.js → tool-wer8tq1h.js} +0 -0
- /package/dist/chunks/{generate-wtztk69x.js → tool-wtztk69x.js} +0 -0
- /package/dist/chunks/{generate-x0ckcb58.js → tool-x0ckcb58.js} +0 -0
- /package/dist/chunks/{generate-x61499pn.js → tool-x61499pn.js} +0 -0
- /package/dist/chunks/{generate-y44na4kk.js → tool-y44na4kk.js} +0 -0
- /package/dist/chunks/{generate-y8f7s663.js → tool-y8f7s663.js} +0 -0
- /package/dist/chunks/{generate-ygaqb7jw.js → tool-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{generate-ym463w8f.js → tool-ym463w8f.js} +0 -0
- /package/dist/chunks/{generate-z5v4ffb3.js → tool-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{generate-z9919s4g.js → tool-z9919s4g.js} +0 -0
|
@@ -1,71 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-scjxmssc.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./tool-sar0kh51.js";
|
|
7
7
|
import {
|
|
8
8
|
ID14,
|
|
9
9
|
OAuth3,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Event18
|
|
11
|
+
} from "./tool-0j8sypb1.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./tool-61ennm6n.js";
|
|
15
15
|
import {
|
|
16
16
|
ID13,
|
|
17
17
|
MethodID2,
|
|
18
18
|
AuthorizationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./tool-s36045k5.js";
|
|
20
20
|
import {
|
|
21
21
|
ID12
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./tool-q4vfmnms.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service72
|
|
25
|
+
} from "./tool-7aq6rx75.js";
|
|
26
26
|
import {
|
|
27
27
|
Remote2,
|
|
28
28
|
Document2,
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
29
|
+
make11
|
|
30
|
+
} from "./tool-k9zkdd2y.js";
|
|
31
31
|
import {
|
|
32
32
|
integrate2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./tool-draeheqz.js";
|
|
34
34
|
import {
|
|
35
35
|
defaultServer2,
|
|
36
36
|
server2,
|
|
37
37
|
headers2
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./tool-kt3bjfbg.js";
|
|
39
39
|
import {
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Input15,
|
|
45
|
-
Response3
|
|
46
|
-
} from "./generate-7w0hvkcz.js";
|
|
47
|
-
import {
|
|
48
|
-
Response2,
|
|
49
|
-
make9,
|
|
50
|
-
statements2,
|
|
51
|
-
providerIDs2,
|
|
52
|
-
register3
|
|
53
|
-
} from "./generate-bq741ffa.js";
|
|
40
|
+
ID4,
|
|
41
|
+
Input14,
|
|
42
|
+
Response2
|
|
43
|
+
} from "./tool-dp2cvfdy.js";
|
|
54
44
|
|
|
55
45
|
// src/plugin/provider/opencode.ts
|
|
56
|
-
import {
|
|
57
|
-
Clock,
|
|
58
|
-
Duration,
|
|
59
|
-
Effect,
|
|
60
|
-
Equal,
|
|
61
|
-
FiberHandle,
|
|
62
|
-
Option,
|
|
63
|
-
Predicate,
|
|
64
|
-
Schema,
|
|
65
|
-
Scope,
|
|
66
|
-
Semaphore,
|
|
67
|
-
Stream
|
|
68
|
-
} from "effect";
|
|
46
|
+
import { Clock, Duration, Effect, Equal, FiberHandle, Option, Schema, Scope, Semaphore, Stream } from "effect";
|
|
69
47
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
70
48
|
import { FetchHttpClient, HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
71
49
|
var clientID = "opencode-cli";
|
|
@@ -178,11 +156,10 @@ var OpencodePlugin2 = define({
|
|
|
178
156
|
id: "opencode.provider.opencode",
|
|
179
157
|
effect: Effect.fn(function* (ctx) {
|
|
180
158
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
181
|
-
const bus = yield*
|
|
159
|
+
const bus = yield* Service85;
|
|
182
160
|
const client = yield* HttpClient.HttpClient;
|
|
183
161
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
184
|
-
const
|
|
185
|
-
const config = yield* Service62;
|
|
162
|
+
const config = yield* Service72;
|
|
186
163
|
const scope = yield* Scope.Scope;
|
|
187
164
|
const loading = Semaphore.makeUnsafe(1);
|
|
188
165
|
let snapshot = { remote: undefined, connection: undefined, organization: undefined };
|
|
@@ -204,7 +181,7 @@ var OpencodePlugin2 = define({
|
|
|
204
181
|
if (!credential || credential.type === "external")
|
|
205
182
|
return Effect.succeed({ remote: undefined, connection, organization: undefined });
|
|
206
183
|
return fetchConfig(http, credential).pipe(Effect.map((remote) => ({
|
|
207
|
-
remote
|
|
184
|
+
remote,
|
|
208
185
|
connection,
|
|
209
186
|
organization: organizationName(credential)
|
|
210
187
|
})));
|
|
@@ -222,22 +199,12 @@ var OpencodePlugin2 = define({
|
|
|
222
199
|
integrated = (yield* config.entries()).find((entry) => entry instanceof Document2 && entry.integrationID === ID13.make("opencode"));
|
|
223
200
|
});
|
|
224
201
|
const publish = Effect.fnUntraced(function* (next) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
organization: next.organization,
|
|
232
|
-
info: next.remote.info
|
|
233
|
-
}));
|
|
234
|
-
case "legacy":
|
|
235
|
-
yield* managed.set({ statements: statements2(next.remote), organization: next.organization });
|
|
236
|
-
return yield* integrate(undefined);
|
|
237
|
-
default:
|
|
238
|
-
yield* managed.set({ statements: [], organization: next.organization });
|
|
239
|
-
return yield* integrate(undefined);
|
|
240
|
-
}
|
|
202
|
+
yield* integrate(next.remote && next.connection && make11({
|
|
203
|
+
integrationID: ID13.make("opencode"),
|
|
204
|
+
connection: next.connection.type === "credential" ? { ...next.connection, id: ID14.make(next.connection.id) } : next.connection,
|
|
205
|
+
organization: next.organization,
|
|
206
|
+
info: next.remote
|
|
207
|
+
}));
|
|
241
208
|
});
|
|
242
209
|
const search = (providerID, connection) => ({
|
|
243
210
|
id: providerID,
|
|
@@ -254,11 +221,11 @@ var OpencodePlugin2 = define({
|
|
|
254
221
|
const orgID = typeof metadata?.orgID === "string" ? metadata.orgID : undefined;
|
|
255
222
|
const token = credential.type === "oauth" ? credential.access : credential.key;
|
|
256
223
|
const server = yield* normalizeServer(server2(credential));
|
|
257
|
-
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(
|
|
224
|
+
const request = yield* HttpClientRequest.post(`${server}/api/websearch`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(token), HttpClientRequest.setHeaders(orgID ? { "x-org-id": orgID } : {}), HttpClientRequest.schemaBodyJson(Input14)({
|
|
258
225
|
query: input.query,
|
|
259
226
|
providerID
|
|
260
227
|
}));
|
|
261
|
-
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "error" }), Effect.flatMap(HttpClientResponse.schemaBodyJson(
|
|
228
|
+
const response = yield* HttpClient.withScope(HttpClient.filterStatusOk(http)).execute(request).pipe(Effect.provideService(FetchHttpClient.RequestInit, { redirect: "error" }), Effect.flatMap(HttpClientResponse.schemaBodyJson(Response2)), Effect.scoped, Effect.timeoutOrElse({
|
|
262
229
|
duration: Duration.seconds(25),
|
|
263
230
|
orElse: () => Effect.fail(new Error("OpenCode web search request timed out"))
|
|
264
231
|
}));
|
|
@@ -277,7 +244,6 @@ var OpencodePlugin2 = define({
|
|
|
277
244
|
});
|
|
278
245
|
snapshot = yield* load();
|
|
279
246
|
yield* publish(snapshot);
|
|
280
|
-
yield* register3(ctx, () => snapshot, search);
|
|
281
247
|
yield* ctx.provider.transform((providers) => {
|
|
282
248
|
if (integrated)
|
|
283
249
|
integrate2(providers, integrated);
|
|
@@ -310,8 +276,9 @@ var OpencodePlugin2 = define({
|
|
|
310
276
|
}
|
|
311
277
|
});
|
|
312
278
|
yield* ctx.websearch.transform((editor) => {
|
|
313
|
-
|
|
314
|
-
|
|
279
|
+
const provider = ID4.make("opencode");
|
|
280
|
+
if (snapshot.remote?.websearch && snapshot.remote.websearch.provider === provider && snapshot.connection)
|
|
281
|
+
editor.add(search(provider, snapshot.connection));
|
|
315
282
|
});
|
|
316
283
|
const apply = Effect.fn("OpencodePlugin.apply")(function* (next) {
|
|
317
284
|
snapshot = next;
|
|
@@ -349,7 +316,7 @@ var OpencodePlugin2 = define({
|
|
|
349
316
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
350
317
|
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
351
318
|
ID12.opencode,
|
|
352
|
-
...
|
|
319
|
+
...Object.keys(next.remote?.providers ?? {})
|
|
353
320
|
]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
354
321
|
});
|
|
355
322
|
yield* guard(snapshot);
|
|
@@ -361,7 +328,7 @@ var OpencodePlugin2 = define({
|
|
|
361
328
|
onlyIfMissing: true
|
|
362
329
|
});
|
|
363
330
|
});
|
|
364
|
-
yield* bus.subscribe(
|
|
331
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("opencode")), Stream.runForEach(() => refresh().pipe(Effect.andThen(poll()))), Effect.forkScoped({ startImmediately: true }));
|
|
365
332
|
yield* poll();
|
|
366
333
|
})
|
|
367
334
|
});
|
|
@@ -383,9 +350,7 @@ function fetchConfig(http, value) {
|
|
|
383
350
|
});
|
|
384
351
|
}
|
|
385
352
|
const body = yield* HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap((ok) => ok.json));
|
|
386
|
-
|
|
387
|
-
return { type: "config", info: yield* Schema.decodeUnknownEffect(Remote2)(body) };
|
|
388
|
-
return { type: "legacy", response: yield* Schema.decodeUnknownEffect(Response2)(body) };
|
|
353
|
+
return yield* Schema.decodeUnknownEffect(Remote2)(body);
|
|
389
354
|
})), Effect.scoped);
|
|
390
355
|
}
|
|
391
356
|
function ssoUrl(server, connectionID) {
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
RelativePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service82,
|
|
6
|
+
node86
|
|
7
|
+
} from "./tool-v9m2ypfg.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service51,
|
|
10
|
+
node54
|
|
11
|
+
} from "./tool-xstj61st.js";
|
|
12
12
|
import {
|
|
13
13
|
isHome2,
|
|
14
14
|
names3
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-76cb1hcw.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/filesystem/search.ts
|
|
21
21
|
var exports_search = {};
|
|
22
22
|
__export(exports_search, {
|
|
23
23
|
FileSystemSearch: () => exports_search,
|
|
24
|
-
Service: () =>
|
|
25
|
-
configured: () =>
|
|
24
|
+
Service: () => Service42,
|
|
25
|
+
configured: () => configured6,
|
|
26
26
|
fffLayer: () => fffLayer2,
|
|
27
27
|
makeFffLayer: () => makeFffLayer2,
|
|
28
|
-
node: () =>
|
|
28
|
+
node: () => node45
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
31
31
|
import path from "path";
|
|
@@ -33,7 +33,7 @@ import { Clock, Context, Deferred, Duration, Effect, Layer, Scope } from "effect
|
|
|
33
33
|
import { Fff } from "#fff";
|
|
34
34
|
import fuzzysort from "fuzzysort";
|
|
35
35
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
36
|
-
class
|
|
36
|
+
class Service42 extends Context.Service()("@opencode/FileSystem/Search") {
|
|
37
37
|
}
|
|
38
38
|
var REFRESH_INTERVAL = Duration.toMillis("10 seconds");
|
|
39
39
|
function emptyIndex() {
|
|
@@ -52,9 +52,9 @@ function search(index, input) {
|
|
|
52
52
|
});
|
|
53
53
|
});
|
|
54
54
|
}
|
|
55
|
-
var ripgrepLayer = Layer.effect(
|
|
56
|
-
const location = yield*
|
|
57
|
-
const ripgrep = yield*
|
|
55
|
+
var ripgrepLayer = Layer.effect(Service42, Effect.gen(function* () {
|
|
56
|
+
const location = yield* Service82;
|
|
57
|
+
const ripgrep = yield* Service51;
|
|
58
58
|
const scope = yield* Scope.Scope;
|
|
59
59
|
const clock = yield* Clock.Clock;
|
|
60
60
|
const home = isHome2(location.directory);
|
|
@@ -99,7 +99,7 @@ var ripgrepLayer = Layer.effect(Service49, Effect.gen(function* () {
|
|
|
99
99
|
Deferred.doneUnsafe(attempt, exit);
|
|
100
100
|
})), Effect.forkIn(scope), Effect.flatMap(() => initialized ? Effect.void : Deferred.await(attempt)));
|
|
101
101
|
});
|
|
102
|
-
return
|
|
102
|
+
return Service42.of({
|
|
103
103
|
find: (input) => Effect.gen(function* () {
|
|
104
104
|
yield* refresh;
|
|
105
105
|
return search(index, input);
|
|
@@ -119,8 +119,8 @@ function createPicker(create, directory) {
|
|
|
119
119
|
return { ok: false, error };
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
|
-
var makeFffLayer2 = (create) => Layer.effect(
|
|
123
|
-
const location = yield*
|
|
122
|
+
var makeFffLayer2 = (create) => Layer.effect(Service42, Effect.gen(function* () {
|
|
123
|
+
const location = yield* Service82;
|
|
124
124
|
let state;
|
|
125
125
|
yield* Effect.addFinalizer(() => Effect.sync(() => {
|
|
126
126
|
if (typeof state === "object" && state.result.ok)
|
|
@@ -152,7 +152,7 @@ var makeFffLayer2 = (create) => Layer.effect(Service49, Effect.gen(function* ()
|
|
|
152
152
|
}
|
|
153
153
|
return current.result.value;
|
|
154
154
|
});
|
|
155
|
-
return
|
|
155
|
+
return Service42.of({
|
|
156
156
|
find: (input) => Effect.gen(function* () {
|
|
157
157
|
const finder = yield* picker;
|
|
158
158
|
if (!finder)
|
|
@@ -200,16 +200,16 @@ var makeFffLayer2 = (create) => Layer.effect(Service49, Effect.gen(function* ()
|
|
|
200
200
|
}));
|
|
201
201
|
var fffLayer2 = makeFffLayer2(Fff.create);
|
|
202
202
|
var layer = (options) => Layer.unwrap(Effect.gen(function* () {
|
|
203
|
-
const location = yield*
|
|
203
|
+
const location = yield* Service82;
|
|
204
204
|
if (location.workspaceID)
|
|
205
205
|
return ripgrepLayer;
|
|
206
206
|
if (options?.fff === false || options?.fff === undefined && process.platform === "win32" || !Fff.available())
|
|
207
207
|
return ripgrepLayer;
|
|
208
208
|
return location.vcs && !isHome2(location.directory) ? fffLayer2 : ripgrepLayer;
|
|
209
209
|
}));
|
|
210
|
-
function
|
|
211
|
-
return makeLocationNode({ service:
|
|
210
|
+
function configured6(options) {
|
|
211
|
+
return makeLocationNode({ service: Service42, layer: layer(options), deps: [node86, node54] });
|
|
212
212
|
}
|
|
213
|
-
var
|
|
213
|
+
var node45 = configured6();
|
|
214
214
|
|
|
215
|
-
export {
|
|
215
|
+
export { Service42, makeFffLayer2, fffLayer2, configured6, node45, exports_search };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/environment.ts
|
|
6
6
|
var exports_environment = {};
|
|
7
7
|
__export(exports_environment, {
|
|
8
|
-
Service: () =>
|
|
8
|
+
Service: () => Service66,
|
|
9
9
|
SessionEnvironment: () => exports_environment,
|
|
10
|
-
node: () =>
|
|
10
|
+
node: () => node69
|
|
11
11
|
});
|
|
12
12
|
import { Context, Effect, Layer } from "effect";
|
|
13
13
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service66 extends Context.Service()("@opencode/SessionEnvironment") {
|
|
16
16
|
}
|
|
17
|
-
var layer = Layer.sync(
|
|
17
|
+
var layer = Layer.sync(Service66, () => {
|
|
18
18
|
const environments = new Map;
|
|
19
|
-
return
|
|
19
|
+
return Service66.of({
|
|
20
20
|
get: (sessionID) => Effect.sync(() => environments.get(sessionID)),
|
|
21
21
|
set: (sessionID, variables) => Effect.sync(() => {
|
|
22
22
|
environments.set(sessionID, { ...variables });
|
|
@@ -26,6 +26,6 @@ var layer = Layer.sync(Service40, () => {
|
|
|
26
26
|
})
|
|
27
27
|
});
|
|
28
28
|
});
|
|
29
|
-
var
|
|
29
|
+
var node69 = makeGlobalNode({ service: Service66, layer, deps: [] });
|
|
30
30
|
|
|
31
|
-
export {
|
|
31
|
+
export { Service66, node69, exports_environment };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestExecutor2,
|
|
3
3
|
llmClient2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./tool-p015t6z3.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service76,
|
|
7
|
+
node80
|
|
8
|
+
} from "./tool-v8t9vyt9.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service55,
|
|
11
|
+
node58
|
|
12
|
+
} from "./tool-n3eppyw3.js";
|
|
13
13
|
import {
|
|
14
14
|
retryOneShot2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./tool-wnhgecwx.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./tool-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/generate.ts
|
|
21
|
-
var
|
|
22
|
-
__export(
|
|
23
|
-
Generate: () =>
|
|
21
|
+
var exports_generate = {};
|
|
22
|
+
__export(exports_generate, {
|
|
23
|
+
Generate: () => exports_generate,
|
|
24
24
|
InvalidRequestError: () => InvalidRequestError3,
|
|
25
25
|
ModelNotFoundError: () => ModelNotFoundError2,
|
|
26
26
|
ProviderFailure: () => ProviderFailure2,
|
|
27
27
|
ProviderRequestError: () => ProviderRequestError2,
|
|
28
|
-
Service: () =>
|
|
29
|
-
UnavailableError: () =>
|
|
28
|
+
Service: () => Service20,
|
|
29
|
+
UnavailableError: () => UnavailableError4,
|
|
30
30
|
UnsupportedModelError: () => UnsupportedModelError2,
|
|
31
|
-
layer: () =>
|
|
32
|
-
node: () =>
|
|
31
|
+
layer: () => layer12,
|
|
32
|
+
node: () => node23
|
|
33
33
|
});
|
|
34
34
|
import { Decision, DecisionClient, Image, ImageClient, LLM, LLMClient, Media } from "@opencode/ai/effect";
|
|
35
35
|
import { Money } from "@opencode/schema/money";
|
|
@@ -37,7 +37,7 @@ import { SessionID } from "@opencode/schema/session-id";
|
|
|
37
37
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
38
38
|
import { RequestExecutor } from "@opencode/ai/route";
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
|
-
class
|
|
40
|
+
class UnavailableError4 extends Schema.TaggedError()("Generate.UnavailableError", {
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
service: Schema.optional(Schema.String)
|
|
43
43
|
}) {
|
|
@@ -81,12 +81,12 @@ class ProviderRequestError2 extends Schema.TaggedError()("Generate.ProviderReque
|
|
|
81
81
|
}) {
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
class
|
|
84
|
+
class Service20 extends Context.Service()("@opencode/Generate") {
|
|
85
85
|
}
|
|
86
|
-
var
|
|
86
|
+
var layer12 = Layer.effect(Service20, Effect.gen(function* () {
|
|
87
87
|
const llm = yield* LLMClient.Service;
|
|
88
|
-
const resolver = yield*
|
|
89
|
-
const models = yield*
|
|
88
|
+
const resolver = yield* Service55;
|
|
89
|
+
const models = yield* Service76;
|
|
90
90
|
const executor = yield* RequestExecutor.Service;
|
|
91
91
|
const images = yield* ImageClient.Service;
|
|
92
92
|
const decisionClient = yield* DecisionClient.Service;
|
|
@@ -98,11 +98,11 @@ var layer26 = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
98
98
|
"SessionRunnerModel.ModelInitializationError",
|
|
99
99
|
"SessionRunnerModel.UnresolvedProviderVariablesError",
|
|
100
100
|
"SessionRunnerModel.UnsupportedCompactionError"
|
|
101
|
-
], (error) => Effect.fail(input.model ? resolutionError(input.model, "chat", error) : new
|
|
101
|
+
], (error) => Effect.fail(input.model ? resolutionError(input.model, "chat", error) : new UnavailableError4({ message: error.message, service: error.providerID }))));
|
|
102
102
|
if (!resolved && input.model)
|
|
103
103
|
return yield* missing(input.model, "chat");
|
|
104
104
|
if (!resolved)
|
|
105
|
-
return yield* new
|
|
105
|
+
return yield* new UnavailableError4({ message: "No model specified and no supported model is available" });
|
|
106
106
|
const response = yield* llm.generate(LLM.request({
|
|
107
107
|
model: resolved.model,
|
|
108
108
|
prompt: input.prompt,
|
|
@@ -162,8 +162,8 @@ var layer26 = Layer.effect(Service70, Effect.gen(function* () {
|
|
|
162
162
|
...response.providerMetadata ? { native: plainJson(response.providerMetadata) } : {}
|
|
163
163
|
};
|
|
164
164
|
});
|
|
165
|
-
const credentials = (effect) => effect.pipe(Effect.catchTag("Integration.Authorization", () => new
|
|
166
|
-
return
|
|
165
|
+
const credentials = (effect) => effect.pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError4({ message: "Generation credentials are unavailable" })));
|
|
166
|
+
return Service20.of({
|
|
167
167
|
text: (input) => credentials(runText(input)),
|
|
168
168
|
image: (input) => credentials(image(input)),
|
|
169
169
|
decisions: (input) => credentials(decisions(input))
|
|
@@ -215,10 +215,10 @@ function failureReason(tag, status) {
|
|
|
215
215
|
return "overloaded";
|
|
216
216
|
return "provider";
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
service:
|
|
220
|
-
layer:
|
|
221
|
-
deps: [
|
|
218
|
+
var node23 = makeLocationNode({
|
|
219
|
+
service: Service20,
|
|
220
|
+
layer: layer12,
|
|
221
|
+
deps: [node58, node80, llmClient2, requestExecutor2]
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
export {
|
|
224
|
+
export { UnavailableError4, ModelNotFoundError2, UnsupportedModelError2, InvalidRequestError3, ProviderFailure2, ProviderRequestError2, Service20, layer12, node23, exports_generate };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./tool-40za9wsf.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./tool-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin4,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint2
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint2 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin4 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin35 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint2);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint2, Plugin4, exports_exa };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ID13,
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
3
|
+
Service78,
|
|
4
|
+
node82
|
|
5
|
+
} from "./tool-s36045k5.js";
|
|
6
6
|
import {
|
|
7
7
|
ID12,
|
|
8
8
|
isAISDK2,
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
encoding2,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service77,
|
|
19
|
+
node81
|
|
20
|
+
} from "./tool-q4vfmnms.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
22
|
+
Service56,
|
|
23
|
+
node59
|
|
24
|
+
} from "./tool-m6s8mxr7.js";
|
|
25
25
|
import {
|
|
26
26
|
ID11,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref3,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Service76,
|
|
30
|
+
node80,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./tool-v8t9vyt9.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./tool-9rqn6x4v.js";
|
|
36
36
|
|
|
37
37
|
// src/model-resolver.ts
|
|
38
38
|
var exports_model_resolver = {};
|
|
@@ -41,15 +41,15 @@ __export(exports_model_resolver, {
|
|
|
41
41
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
42
42
|
ModelInitializationError: () => ModelInitializationError2,
|
|
43
43
|
ModelResolver: () => exports_model_resolver,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service55,
|
|
45
45
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
46
46
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
47
47
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
48
48
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
49
49
|
fromCatalogModel: () => fromCatalogModel2,
|
|
50
50
|
hasPackage: () => hasPackage2,
|
|
51
|
-
layer: () =>
|
|
52
|
-
node: () =>
|
|
51
|
+
layer: () => layer24,
|
|
52
|
+
node: () => node58,
|
|
53
53
|
resolveModel: () => resolveModel3,
|
|
54
54
|
withVariant: () => withVariant2
|
|
55
55
|
});
|
|
@@ -130,7 +130,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
130
130
|
}
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
class
|
|
133
|
+
class Service55 extends Context.Service()("@opencode/ModelResolver") {
|
|
134
134
|
}
|
|
135
135
|
var withVariant2 = (model, variantID) => {
|
|
136
136
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -300,12 +300,12 @@ var causeMessage = (cause) => {
|
|
|
300
300
|
};
|
|
301
301
|
var resolveModel3 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
302
302
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
303
|
-
var
|
|
304
|
-
const providers = yield*
|
|
305
|
-
const models = yield*
|
|
306
|
-
const integrations = yield*
|
|
303
|
+
var layer24 = Layer.effect(Service55, Effect.gen(function* () {
|
|
304
|
+
const providers = yield* Service77;
|
|
305
|
+
const models = yield* Service76;
|
|
306
|
+
const integrations = yield* Service78;
|
|
307
307
|
const npm = yield* Npm.Service;
|
|
308
|
-
const aisdk = yield*
|
|
308
|
+
const aisdk = yield* Service56;
|
|
309
309
|
const dependencies = {
|
|
310
310
|
loadPackage: (specifier) => loadPackage2(specifier, npm),
|
|
311
311
|
loadAISDK: (model) => aisdk.model(model)
|
|
@@ -348,7 +348,7 @@ var layer27 = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
348
348
|
const { credential, runtimeInfo } = yield* prepare(info, ref.variant);
|
|
349
349
|
return yield* fromCatalogMedia(runtimeInfo, is, credential, dependencies);
|
|
350
350
|
});
|
|
351
|
-
return
|
|
351
|
+
return Service55.of({
|
|
352
352
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
353
353
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
354
354
|
if (!selected)
|
|
@@ -371,10 +371,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
371
371
|
const name = packageName2(packageName);
|
|
372
372
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
373
373
|
}
|
|
374
|
-
var
|
|
375
|
-
service:
|
|
376
|
-
layer:
|
|
377
|
-
deps: [
|
|
374
|
+
var node58 = makeLocationNode({
|
|
375
|
+
service: Service55,
|
|
376
|
+
layer: layer24,
|
|
377
|
+
deps: [node81, node80, node82, Npm.node, node59]
|
|
378
378
|
});
|
|
379
379
|
|
|
380
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
380
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service55, withVariant2, fromCatalogModel2, resolveModel3, hasPackage2, layer24, node58, exports_model_resolver };
|