@opencode/core 0.0.0-dev-19714 → 0.0.0-dev-19715
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/agent.js +69 -69
- package/dist/aisdk-native.js +72 -72
- package/dist/aisdk.js +77 -77
- package/dist/app.js +9 -9
- package/dist/bus.js +62 -62
- package/dist/chunks/{model-resolver-105491yy.js → model-resolver-018rch66.js} +57 -57
- package/dist/chunks/{model-resolver-ymcr6gjs.js → model-resolver-03ej3xf2.js} +6 -6
- package/dist/chunks/{model-resolver-jkbwdfs8.js → model-resolver-03ya27h5.js} +20 -20
- package/dist/chunks/{model-resolver-fcrkznn8.js → model-resolver-0jwsre1p.js} +4 -4
- package/dist/chunks/{model-resolver-y8s1zs8h.js → model-resolver-0msmke65.js} +12 -12
- package/dist/chunks/{model-resolver-7jjj6fmh.js → model-resolver-0vva8vqn.js} +25 -25
- package/dist/chunks/{model-resolver-n8c291r7.js → model-resolver-0z8vjex2.js} +8 -8
- package/dist/chunks/{model-resolver-0cwrv3rz.js → model-resolver-0zcechvz.js} +23 -23
- package/dist/chunks/model-resolver-12rmxn42.js +26 -0
- package/dist/chunks/{model-resolver-8gnjjt4m.js → model-resolver-13q063b0.js} +6 -6
- package/dist/chunks/{model-resolver-0gzst43f.js → model-resolver-14e3p8es.js} +24 -21
- package/dist/chunks/{model-resolver-y9g5yfg0.js → model-resolver-1627k7qg.js} +26 -26
- package/dist/chunks/{model-resolver-wq0zvr2n.js → model-resolver-163dsem0.js} +22 -22
- package/dist/chunks/{model-resolver-k60bgaqn.js → model-resolver-19sa2dm4.js} +22 -22
- package/dist/chunks/{model-resolver-73tb2d7t.js → model-resolver-1bbkgx8g.js} +2 -2
- package/dist/chunks/{model-resolver-fq77vv66.js → model-resolver-1krsbgzh.js} +10 -10
- package/dist/chunks/{model-resolver-kjexfpn9.js → model-resolver-2e7snx76.js} +12 -12
- package/dist/chunks/{model-resolver-qzhqhqdj.js → model-resolver-2g4qtz8w.js} +93 -93
- package/dist/chunks/{model-resolver-d4h3qc93.js → model-resolver-2hdn0xd5.js} +16 -16
- package/dist/chunks/{model-resolver-s5qg1d5b.js → model-resolver-2jkesbth.js} +4 -4
- package/dist/chunks/{model-resolver-37w67f0s.js → model-resolver-2wnfz5wx.js} +4 -4
- package/dist/chunks/{model-resolver-k2f8e2fb.js → model-resolver-30n129z3.js} +18 -18
- package/dist/chunks/{model-resolver-0wmjfan7.js → model-resolver-37nypx1t.js} +9 -9
- package/dist/chunks/{model-resolver-qqtwvk4z.js → model-resolver-3b1q5j1v.js} +5 -5
- package/dist/chunks/{model-resolver-dvh6e8nq.js → model-resolver-3dwbpzm6.js} +1 -1
- package/dist/chunks/{model-resolver-2qq7qy34.js → model-resolver-3f15rfkp.js} +7 -7
- package/dist/chunks/{model-resolver-xqjcyj9c.js → model-resolver-3h3ebsbh.js} +2 -2
- package/dist/chunks/{model-resolver-fb1pb7ec.js → model-resolver-3hcrnb3w.js} +4 -4
- package/dist/chunks/{model-resolver-6dpxe5wv.js → model-resolver-3n5a2veh.js} +38 -38
- package/dist/chunks/{model-resolver-136t2gc4.js → model-resolver-49ngy6nw.js} +12 -12
- package/dist/chunks/{model-resolver-h6r3nrb9.js → model-resolver-4dgbcxzg.js} +3 -3
- package/dist/chunks/{model-resolver-ps87kzvs.js → model-resolver-4g9kkqcn.js} +28 -28
- package/dist/chunks/{model-resolver-xq5wqvhk.js → model-resolver-4j06sfkj.js} +14 -14
- package/dist/chunks/{model-resolver-xndsvhpx.js → model-resolver-4k5cy1h1.js} +22 -22
- package/dist/chunks/{model-resolver-jsvzcvkq.js → model-resolver-4sqf757v.js} +8 -8
- package/dist/chunks/{model-resolver-dxj72tfx.js → model-resolver-4v7qdvcn.js} +4 -4
- package/dist/chunks/{model-resolver-f2bg7dfe.js → model-resolver-4x0p6wc7.js} +14 -14
- package/dist/chunks/{model-resolver-n7ec94wg.js → model-resolver-4x4qpr1k.js} +20 -20
- package/dist/chunks/{model-resolver-hkbhb5q6.js → model-resolver-53b56yzz.js} +5 -5
- package/dist/chunks/{model-resolver-h0za90c7.js → model-resolver-55xz6a4b.js} +9 -9
- package/dist/chunks/{model-resolver-mfqp6xfm.js → model-resolver-56gdpj1q.js} +4 -4
- package/dist/chunks/{model-resolver-gw1g6bxq.js → model-resolver-5e78k31r.js} +46 -46
- package/dist/chunks/{model-resolver-j7k61pcz.js → model-resolver-5h812224.js} +22 -22
- package/dist/chunks/{model-resolver-cbkyy13e.js → model-resolver-5mrjc4yb.js} +31 -31
- package/dist/chunks/{model-resolver-e3qxr5gk.js → model-resolver-5qd3pb7m.js} +2 -2
- package/dist/chunks/{model-resolver-c8eb5bxh.js → model-resolver-5vb0pc45.js} +24 -24
- package/dist/chunks/{model-resolver-wgyq80v0.js → model-resolver-5zj12wam.js} +6 -6
- package/dist/chunks/{model-resolver-0tj19dxf.js → model-resolver-600jpw1a.js} +37 -37
- package/dist/chunks/{model-resolver-d92zep6j.js → model-resolver-65rp8168.js} +8 -8
- package/dist/chunks/{model-resolver-h2rkx437.js → model-resolver-6c46qrvz.js} +14 -14
- package/dist/chunks/{model-resolver-vmakrqm7.js → model-resolver-6cehp1nk.js} +21 -21
- package/dist/chunks/{model-resolver-t4pxw6gg.js → model-resolver-6d7rtenb.js} +13 -13
- package/dist/chunks/{model-resolver-2eysy4zx.js → model-resolver-6r4v01x8.js} +40 -40
- package/dist/chunks/{model-resolver-4hcdp5hb.js → model-resolver-6vb019bv.js} +13 -13
- package/dist/chunks/{model-resolver-j7bcq5se.js → model-resolver-6yr1acw8.js} +15 -15
- package/dist/chunks/{model-resolver-qnenbneg.js → model-resolver-7h4d0hsa.js} +8 -8
- package/dist/chunks/{model-resolver-4aa2m1a0.js → model-resolver-7m2q8372.js} +11 -11
- package/dist/chunks/{model-resolver-fwmj055g.js → model-resolver-7m2r0vgy.js} +20 -20
- package/dist/chunks/{model-resolver-vzvmv61a.js → model-resolver-7xrtp4yq.js} +42 -42
- package/dist/chunks/{model-resolver-jg86prm2.js → model-resolver-7y8bq3bf.js} +3 -3
- package/dist/chunks/{model-resolver-5pmj86cf.js → model-resolver-80yczg4x.js} +21 -21
- package/dist/chunks/{model-resolver-8xd21chy.js → model-resolver-818pfwc9.js} +5 -5
- package/dist/chunks/{model-resolver-p10e02dr.js → model-resolver-82cncyfr.js} +33 -33
- package/dist/chunks/{model-resolver-tcezcvh9.js → model-resolver-89znhe33.js} +3 -3
- package/dist/chunks/{model-resolver-6a86sy3s.js → model-resolver-8n65eehz.js} +12 -12
- package/dist/chunks/{model-resolver-09kan382.js → model-resolver-8rtyjtxr.js} +24 -24
- package/dist/chunks/{model-resolver-582h4ye8.js → model-resolver-8trbt2et.js} +17 -17
- package/dist/chunks/{model-resolver-7ewmrn6e.js → model-resolver-8z4mzydb.js} +5 -5
- package/dist/chunks/{model-resolver-cvn0pq7m.js → model-resolver-95py5vr5.js} +2 -2
- package/dist/chunks/{model-resolver-5pf115b2.js → model-resolver-96ngbw1f.js} +10 -10
- package/dist/chunks/{model-resolver-z6f2y3jk.js → model-resolver-98mrngdw.js} +33 -33
- package/dist/chunks/{model-resolver-w7wmj8nh.js → model-resolver-9c540yp5.js} +29 -29
- package/dist/chunks/{model-resolver-tsc91ve6.js → model-resolver-9d58krhf.js} +16 -16
- package/dist/chunks/{model-resolver-hg488ry8.js → model-resolver-9y0wa7jp.js} +21 -21
- package/dist/chunks/{model-resolver-5c4hm403.js → model-resolver-a1bz86dw.js} +1 -1
- package/dist/chunks/{model-resolver-y56ehv6b.js → model-resolver-a3ftg8j6.js} +8 -8
- package/dist/chunks/{model-resolver-rd82n06c.js → model-resolver-a3t5n920.js} +4 -4
- package/dist/chunks/{model-resolver-4fqcgg66.js → model-resolver-aaxq2vfe.js} +19 -19
- package/dist/chunks/{model-resolver-54pcgdgx.js → model-resolver-ak0zzeb3.js} +8 -8
- package/dist/chunks/{model-resolver-grkqts8z.js → model-resolver-as67bepm.js} +12 -12
- package/dist/chunks/{model-resolver-sxk5rhme.js → model-resolver-b9zfys3q.js} +47 -47
- package/dist/chunks/{model-resolver-b4scv1je.js → model-resolver-bcft8wmc.js} +7 -7
- package/dist/chunks/{model-resolver-sej7e0cf.js → model-resolver-bjn91642.js} +3 -3
- package/dist/chunks/{model-resolver-8mrgngee.js → model-resolver-bqapkkwx.js} +37 -37
- package/dist/chunks/{model-resolver-g5m51wyg.js → model-resolver-bynfxm7n.js} +6 -6
- package/dist/chunks/{model-resolver-djszqvmq.js → model-resolver-c765mh8b.js} +7 -7
- package/dist/chunks/{model-resolver-mcjy4xdq.js → model-resolver-c808kqea.js} +31 -31
- package/dist/chunks/{model-resolver-mx9vqzsb.js → model-resolver-cdm0dq9n.js} +5 -5
- package/dist/chunks/{model-resolver-07770t2t.js → model-resolver-ceetf7sw.js} +5 -5
- package/dist/chunks/{model-resolver-m0jqrx5p.js → model-resolver-cfpkc3c9.js} +1 -1
- package/dist/chunks/{model-resolver-1g2j4a9r.js → model-resolver-ch5kqfnt.js} +15 -15
- package/dist/chunks/{model-resolver-m879hchs.js → model-resolver-cmq7pf5c.js} +19 -19
- package/dist/chunks/{model-resolver-fab8hzt3.js → model-resolver-cq37gk0t.js} +1 -1
- package/dist/chunks/{model-resolver-tc5jn9f0.js → model-resolver-d109n3v6.js} +22 -22
- package/dist/chunks/{model-resolver-a0p1bqyg.js → model-resolver-d2yvgesw.js} +9 -9
- package/dist/chunks/{model-resolver-vje7zzhn.js → model-resolver-d5czr6p1.js} +3 -3
- package/dist/chunks/{model-resolver-zq6stcrg.js → model-resolver-dwq6ryhm.js} +4 -4
- package/dist/chunks/{model-resolver-q378wj2a.js → model-resolver-dx0v4jym.js} +10 -10
- package/dist/chunks/{model-resolver-h9520sm0.js → model-resolver-e5k77c54.js} +14 -14
- package/dist/chunks/{model-resolver-mvydm7va.js → model-resolver-edw5f9yb.js} +3 -3
- package/dist/chunks/{model-resolver-h3v21342.js → model-resolver-efc3y9qy.js} +24 -24
- package/dist/chunks/{model-resolver-3te71xag.js → model-resolver-encgc94b.js} +13 -13
- package/dist/chunks/{model-resolver-z3pw5915.js → model-resolver-evbgk2k8.js} +3 -3
- package/dist/chunks/{model-resolver-hdnk95c8.js → model-resolver-f828m53h.js} +1 -1
- package/dist/chunks/{model-resolver-scq4khx8.js → model-resolver-fch79rh9.js} +1 -1
- package/dist/chunks/{model-resolver-21v8w307.js → model-resolver-fmf6pfgv.js} +3 -3
- package/dist/chunks/{model-resolver-h96pgs48.js → model-resolver-fn6s2bpw.js} +9 -9
- package/dist/chunks/{model-resolver-n2sfrcvm.js → model-resolver-fpbvkm1j.js} +10 -10
- package/dist/chunks/model-resolver-fq8e80gj.js +478 -0
- package/dist/chunks/{model-resolver-91p1v22t.js → model-resolver-fqhbsnr5.js} +7 -7
- package/dist/chunks/{model-resolver-036p5t1s.js → model-resolver-fwrss4ad.js} +3 -3
- package/dist/chunks/{model-resolver-exbfn0n5.js → model-resolver-fx9zhezm.js} +11 -11
- package/dist/chunks/{model-resolver-s2b6rjy8.js → model-resolver-fy3y9pe0.js} +30 -30
- package/dist/chunks/{model-resolver-akv0dm8z.js → model-resolver-fz4jpxex.js} +14 -14
- package/dist/chunks/{model-resolver-c20khjev.js → model-resolver-g190xswt.js} +18 -18
- package/dist/chunks/{model-resolver-3k1d3fsa.js → model-resolver-g5r1tnmz.js} +27 -27
- package/dist/chunks/{model-resolver-6rgj1aye.js → model-resolver-g757ar9v.js} +4 -4
- package/dist/chunks/{model-resolver-sa4vrjjn.js → model-resolver-ggn5tyje.js} +8 -8
- package/dist/chunks/{model-resolver-w3nq1sqw.js → model-resolver-gr1f03ws.js} +7 -7
- package/dist/chunks/{model-resolver-37med0fv.js → model-resolver-gypa8pv9.js} +3 -3
- package/dist/chunks/{model-resolver-43yktx36.js → model-resolver-h47manga.js} +9 -9
- package/dist/chunks/{model-resolver-kmk2vv10.js → model-resolver-h9h1j1mz.js} +11 -11
- package/dist/chunks/{model-resolver-f4t5cf30.js → model-resolver-hjp5nr78.js} +30 -30
- package/dist/chunks/{model-resolver-avm8jn6n.js → model-resolver-hkfg6fzm.js} +3 -3
- package/dist/chunks/{model-resolver-q5dg9qes.js → model-resolver-j2w7j3x5.js} +26 -26
- package/dist/chunks/{model-resolver-hvxy08g5.js → model-resolver-j3bqg59g.js} +14 -14
- package/dist/chunks/{model-resolver-6p3xqd60.js → model-resolver-j3ev6qnf.js} +1 -1
- package/dist/chunks/{model-resolver-x442ch9z.js → model-resolver-j46cxss4.js} +1 -1
- package/dist/chunks/{model-resolver-a3r4dcrj.js → model-resolver-j699j8bt.js} +1 -1
- package/dist/chunks/{model-resolver-280hqnth.js → model-resolver-j95y1bft.js} +12 -12
- package/dist/chunks/{model-resolver-knddexfq.js → model-resolver-jbryrjhm.js} +10 -10
- package/dist/chunks/{model-resolver-9ae838bd.js → model-resolver-jcbyds1h.js} +5 -5
- package/dist/chunks/{model-resolver-hja6fhvt.js → model-resolver-jharhjnw.js} +20 -20
- package/dist/chunks/{model-resolver-jt63vget.js → model-resolver-jk24q48k.js} +9 -9
- package/dist/chunks/{model-resolver-e9bbt0wn.js → model-resolver-jnjv4swr.js} +152 -152
- package/dist/chunks/{model-resolver-1e3gp6z5.js → model-resolver-jp55f8a2.js} +1 -1
- package/dist/chunks/{model-resolver-797kpq2p.js → model-resolver-jrqpj1rz.js} +9 -9
- package/dist/chunks/{model-resolver-7z4dgn25.js → model-resolver-k4kd387c.js} +10 -10
- package/dist/chunks/{model-resolver-g22wph12.js → model-resolver-k9axbpjs.js} +29 -29
- package/dist/chunks/model-resolver-kpe9p76v.js +252 -0
- package/dist/chunks/{model-resolver-3a7v3mfb.js → model-resolver-kv88q56w.js} +5 -5
- package/dist/chunks/{model-resolver-12x7tyn7.js → model-resolver-kz3etvb1.js} +14 -14
- package/dist/chunks/{model-resolver-p55fzyn7.js → model-resolver-m485abxa.js} +13 -13
- package/dist/chunks/{model-resolver-03j0d1mj.js → model-resolver-m717gk7q.js} +4 -4
- package/dist/chunks/{model-resolver-mae1f2vv.js → model-resolver-ma7aqx0g.js} +29 -29
- package/dist/chunks/{model-resolver-88sz8qcd.js → model-resolver-mfhfdr54.js} +3 -3
- package/dist/chunks/{model-resolver-re1b4xdv.js → model-resolver-mgwx0cg1.js} +18 -18
- package/dist/chunks/{model-resolver-26x0xdfb.js → model-resolver-mjnf20yt.js} +28 -28
- package/dist/chunks/{model-resolver-t96rdxhd.js → model-resolver-mksbb8nz.js} +16 -16
- package/dist/chunks/{model-resolver-er91jp3n.js → model-resolver-mkssaqtm.js} +27 -27
- package/dist/chunks/{model-resolver-b5hby8zf.js → model-resolver-n9e4wkb0.js} +8 -8
- package/dist/chunks/{model-resolver-py5agcrg.js → model-resolver-ncfs2mqg.js} +8 -8
- package/dist/chunks/{model-resolver-8mdv2t2t.js → model-resolver-ncrmpxjj.js} +5 -5
- package/dist/chunks/{model-resolver-tsmnctvy.js → model-resolver-ndccpjjz.js} +17 -17
- package/dist/chunks/{model-resolver-9afpsfvx.js → model-resolver-p4pkk9xt.js} +16 -16
- package/dist/chunks/{model-resolver-g25ey1zv.js → model-resolver-p4y0yfrh.js} +1 -1
- package/dist/chunks/{model-resolver-6706eqrn.js → model-resolver-pa484fme.js} +12 -12
- package/dist/chunks/{model-resolver-tpw6cwsb.js → model-resolver-phstrbs2.js} +7 -7
- package/dist/chunks/{model-resolver-d068vn8b.js → model-resolver-pjjzqhjh.js} +24 -24
- package/dist/chunks/{model-resolver-jexxy024.js → model-resolver-pk2244jm.js} +3 -3
- package/dist/chunks/{model-resolver-gzgc3wej.js → model-resolver-pnja8679.js} +26 -26
- package/dist/chunks/{model-resolver-8m6g92fr.js → model-resolver-pq7ecckh.js} +34 -34
- package/dist/chunks/{model-resolver-w0x80a1d.js → model-resolver-pqx0ybs2.js} +3 -3
- package/dist/chunks/{model-resolver-1v4fec1y.js → model-resolver-q7p04bx4.js} +9 -9
- package/dist/chunks/{model-resolver-xsgfbn57.js → model-resolver-q936sf20.js} +27 -27
- package/dist/chunks/{model-resolver-szrkjaj8.js → model-resolver-qcn7s4dm.js} +13 -13
- package/dist/chunks/{model-resolver-pdqjgxh5.js → model-resolver-qgekj8ca.js} +24 -24
- package/dist/chunks/{model-resolver-57b9ws8p.js → model-resolver-qqeeq2t9.js} +3 -3
- package/dist/chunks/{model-resolver-6cv92x4b.js → model-resolver-qr39vjzw.js} +7 -7
- package/dist/chunks/{model-resolver-fxkmg59r.js → model-resolver-r0cdk6bg.js} +16 -16
- package/dist/chunks/{model-resolver-cs9gs3bj.js → model-resolver-r345bmqf.js} +10 -10
- package/dist/chunks/{model-resolver-4tvste0q.js → model-resolver-r53vwz5c.js} +13 -13
- package/dist/chunks/{model-resolver-qy0qaq8h.js → model-resolver-r5pvgzgj.js} +19 -19
- package/dist/chunks/{model-resolver-mj754nyr.js → model-resolver-r629fsmj.js} +53 -53
- package/dist/chunks/{model-resolver-19x634pp.js → model-resolver-renjvscw.js} +27 -27
- package/dist/chunks/{model-resolver-hbecdtej.js → model-resolver-rhpdx0qt.js} +10 -10
- package/dist/chunks/{model-resolver-kycpm9x6.js → model-resolver-rn0a0t8a.js} +16 -16
- package/dist/chunks/{model-resolver-q3bxgjqn.js → model-resolver-rve0xcj6.js} +1 -1
- package/dist/chunks/{model-resolver-b662eqrs.js → model-resolver-ry53p5f5.js} +41 -41
- package/dist/chunks/{model-resolver-jfqtm2ew.js → model-resolver-ryr25ayn.js} +3 -3
- package/dist/chunks/{model-resolver-g1f3nzyq.js → model-resolver-s4se5etm.js} +12 -12
- package/dist/chunks/{model-resolver-77t38nde.js → model-resolver-s4tv09cy.js} +71 -71
- package/dist/chunks/{model-resolver-32n3v4ks.js → model-resolver-sh9h5wwb.js} +18 -18
- package/dist/chunks/{model-resolver-q38hx1yx.js → model-resolver-shhj53tb.js} +7 -7
- package/dist/chunks/{model-resolver-s8skvdk2.js → model-resolver-st5e36a0.js} +5 -5
- package/dist/chunks/{model-resolver-99qst2hg.js → model-resolver-sttvgref.js} +30 -30
- package/dist/chunks/{model-resolver-ve4pfa0n.js → model-resolver-sx1n432n.js} +3 -3
- package/dist/chunks/{model-resolver-jvf3yq6v.js → model-resolver-t2az9yje.js} +3 -3
- package/dist/chunks/{model-resolver-843r718v.js → model-resolver-t8f302nt.js} +4 -4
- package/dist/chunks/{model-resolver-h90v2x9d.js → model-resolver-tbmac1c7.js} +3 -3
- package/dist/chunks/{model-resolver-4e8vs6eh.js → model-resolver-thjxzeng.js} +7 -7
- package/dist/chunks/{model-resolver-n2q19pyc.js → model-resolver-tjnzpwm8.js} +9 -9
- package/dist/chunks/{model-resolver-4sxejfta.js → model-resolver-ttypvbs3.js} +4 -4
- package/dist/chunks/{model-resolver-gnp856re.js → model-resolver-tvf48a4m.js} +10 -10
- package/dist/chunks/{model-resolver-6j6rjarh.js → model-resolver-tvtfxz4g.js} +6 -6
- package/dist/chunks/{model-resolver-hxd5vk3m.js → model-resolver-tzfanr63.js} +16 -16
- package/dist/chunks/{model-resolver-aeqcmxjy.js → model-resolver-v2cxq5df.js} +6 -6
- package/dist/chunks/{model-resolver-c2qzrg7b.js → model-resolver-v5922aq3.js} +9 -9
- package/dist/chunks/{model-resolver-gpanbyjj.js → model-resolver-vacv9019.js} +5 -5
- package/dist/chunks/{model-resolver-zpb5kyv6.js → model-resolver-vb4gjqtk.js} +12 -12
- package/dist/chunks/{model-resolver-y57wc7ze.js → model-resolver-vf5b43e0.js} +87 -87
- package/dist/chunks/{model-resolver-kewfkj5e.js → model-resolver-vgd6my2m.js} +22 -22
- package/dist/chunks/{model-resolver-dsqfhhxw.js → model-resolver-vq049g7e.js} +4 -4
- package/dist/chunks/{model-resolver-6vcd148b.js → model-resolver-vxjtd25a.js} +35 -35
- package/dist/chunks/{model-resolver-qgwyt9kf.js → model-resolver-vzxxg8zg.js} +20 -20
- package/dist/chunks/{model-resolver-wf37p31v.js → model-resolver-wfcjyhbd.js} +42 -42
- package/dist/chunks/{model-resolver-qwhb49p5.js → model-resolver-x2zthxjy.js} +12 -12
- package/dist/chunks/{model-resolver-rcz1rf0a.js → model-resolver-x8xgg3h0.js} +31 -31
- package/dist/chunks/{model-resolver-bxvw9c4f.js → model-resolver-xfa6k0ew.js} +24 -24
- package/dist/chunks/{model-resolver-t4zcj5pn.js → model-resolver-xrsny83m.js} +7 -7
- package/dist/chunks/model-resolver-xrsqh21y.js +4 -0
- package/dist/chunks/{model-resolver-9p3ceqmc.js → model-resolver-xxn18gh4.js} +6 -6
- package/dist/chunks/{model-resolver-32hhr2bd.js → model-resolver-y396q54h.js} +15 -15
- package/dist/chunks/{model-resolver-dpkg50ah.js → model-resolver-y71avatq.js} +3 -3
- package/dist/chunks/{model-resolver-w7ejeta8.js → model-resolver-y7n7x5e2.js} +23 -23
- package/dist/chunks/{model-resolver-fav965pf.js → model-resolver-yjtbktzn.js} +26 -26
- package/dist/chunks/{model-resolver-s4enseaf.js → model-resolver-yrznvahk.js} +1 -1
- package/dist/chunks/{model-resolver-61bshzb4.js → model-resolver-yt385gn2.js} +19 -19
- package/dist/chunks/{model-resolver-1sr9wk0z.js → model-resolver-yxc7efnj.js} +22 -22
- package/dist/chunks/{model-resolver-29x78va6.js → model-resolver-z63w68vq.js} +4 -4
- package/dist/chunks/{model-resolver-h28m7sc2.js → model-resolver-z8nvkxrw.js} +3 -3
- package/dist/chunks/{model-resolver-a4y05av3.js → model-resolver-z9g8xfyx.js} +50 -50
- package/dist/chunks/{model-resolver-xfdrc2qg.js → model-resolver-zqx8wcya.js} +1 -1
- package/dist/chunks/{model-resolver-qvsy8jwx.js → model-resolver-zrwc20gf.js} +18 -18
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +2 -2
- package/dist/command.js +69 -69
- package/dist/config/discovery.js +69 -69
- package/dist/config/normalize.js +88 -88
- package/dist/config/plugin/agent.js +101 -101
- package/dist/config/plugin/command.js +178 -178
- package/dist/config/plugin/compaction.js +134 -134
- package/dist/config/plugin/compatibility.js +119 -119
- package/dist/config/plugin/formatter.js +102 -102
- package/dist/config/plugin/image.js +101 -101
- package/dist/config/plugin/instruction.js +72 -72
- package/dist/config/plugin/location-watcher.js +103 -103
- package/dist/config/plugin/mcp.js +105 -105
- package/dist/config/plugin/policy.js +101 -101
- package/dist/config/plugin/provider.js +101 -101
- package/dist/config/plugin/reference.js +102 -102
- package/dist/config/plugin/shell.js +103 -103
- package/dist/config/plugin/skill-file.js +82 -82
- package/dist/config/plugin/skill.js +122 -122
- package/dist/config/plugin/snapshot.js +101 -101
- package/dist/config/plugin/source.js +102 -102
- package/dist/config/plugin/tool-output.js +103 -103
- package/dist/config/plugin/websearch.js +102 -102
- package/dist/config/plugin/worktree.js +103 -103
- package/dist/config/variable.js +2 -2
- package/dist/config.js +107 -107
- package/dist/credential.js +70 -70
- package/dist/database/database.js +60 -60
- package/dist/database/drizzle/effect-sqlite/driver.js +10 -10
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +7 -7
- package/dist/database/drizzle/index.js +11 -11
- package/dist/database/drizzle/sqlite-core/effect/db.js +5 -5
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +6 -6
- package/dist/database/drizzle.js +11 -11
- package/dist/database/migration.gen.js +39 -39
- package/dist/database/migration.js +41 -41
- package/dist/database/v1-migration.bun.js +14 -14
- package/dist/effect/app-node-builder.js +237 -237
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/environment/environment.js +74 -74
- package/dist/environment/index.js +76 -76
- package/dist/event-logger.js +14 -14
- package/dist/file-access.js +85 -85
- package/dist/file-mutation.js +75 -75
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +194 -194
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +83 -83
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +14 -14
- package/dist/filesystem.js +86 -86
- package/dist/form.js +73 -73
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +73 -73
- package/dist/generate.js +80 -80
- package/dist/git.js +8 -8
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +3 -3
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +82 -82
- package/dist/github-copilot/responses/openai-responses-language-model.js +6 -6
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +3 -3
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +315 -315
- package/dist/instruction-discovery.js +72 -72
- package/dist/instructions/builtins.js +71 -71
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +66 -66
- package/dist/job.js +67 -67
- package/dist/kv.js +61 -61
- package/dist/location-activity.js +58 -58
- package/dist/location-lifecycle.js +87 -87
- package/dist/location-mutation.js +33 -33
- package/dist/location-service-map.js +71 -71
- package/dist/location-services.js +313 -313
- package/dist/location.js +70 -70
- package/dist/mcp/client.js +19 -19
- package/dist/mcp/index.js +87 -87
- package/dist/mcp/instructions.js +102 -102
- package/dist/mcp/oauth.js +14 -14
- package/dist/mcp/stdio.js +71 -71
- package/dist/modal/models.js +82 -82
- package/dist/model-resolver.js +81 -81
- package/dist/model.js +83 -83
- package/dist/models-dev.js +87 -87
- package/dist/permission/saved.js +70 -70
- package/dist/permission/sql.js +3 -3
- package/dist/permission.js +94 -94
- package/dist/persistent-pty/index.js +72 -72
- package/dist/persistent-pty.js +60 -60
- package/dist/plugin/agent.js +83 -83
- package/dist/plugin/command.js +78 -78
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +185 -185
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +288 -288
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +78 -78
- package/dist/plugin/module.js +3 -3
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +83 -83
- package/dist/plugin/provider/amazon-bedrock.js +73 -73
- package/dist/plugin/provider/azure.js +100 -100
- package/dist/plugin/provider/cloudflare-ai-gateway.js +99 -99
- package/dist/plugin/provider/cloudflare-workers-ai.js +99 -99
- package/dist/plugin/provider/configured.js +98 -98
- package/dist/plugin/provider/digitalocean.js +75 -75
- package/dist/plugin/provider/github-copilot.js +76 -76
- package/dist/plugin/provider/gitlab.js +74 -74
- package/dist/plugin/provider/google-vertex.js +73 -73
- package/dist/plugin/provider/llmgateway.js +63 -63
- package/dist/plugin/provider/lmstudio.js +101 -101
- package/dist/plugin/provider/modal.js +75 -75
- package/dist/plugin/provider/ollama.js +101 -101
- package/dist/plugin/provider/openai.js +74 -74
- package/dist/plugin/provider/opencode.js +75 -75
- package/dist/plugin/provider/openrouter.js +74 -74
- package/dist/plugin/provider/poe.js +63 -63
- package/dist/plugin/provider/prompt-cache-key.js +73 -73
- package/dist/plugin/provider/sap-ai-core.js +73 -73
- package/dist/plugin/provider/snowflake-cortex.js +100 -100
- package/dist/plugin/provider/vercel.js +73 -73
- package/dist/plugin/provider/vllm.js +101 -101
- package/dist/plugin/provider/xai.js +74 -74
- package/dist/plugin/provider.js +133 -133
- package/dist/plugin/sdk.js +65 -65
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +120 -120
- package/dist/plugin/supervisor.js +305 -305
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +70 -70
- package/dist/plugin/vcs/hg.js +70 -70
- package/dist/plugin/warming.js +100 -100
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +5 -5
- package/dist/plugin/websearch/index.js +8 -8
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +5 -5
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +5 -5
- package/dist/plugin.js +196 -196
- package/dist/project/sql.js +2 -2
- package/dist/project.js +71 -71
- package/dist/provider.js +82 -82
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +81 -81
- package/dist/reference/instructions.js +73 -73
- package/dist/reference.js +73 -73
- package/dist/repository-cache.js +67 -67
- package/dist/ripgrep.js +77 -77
- package/dist/rpc.js +71 -71
- package/dist/session/command.js +62 -62
- package/dist/session/compaction.js +110 -110
- package/dist/session/context.js +125 -125
- package/dist/session/diff.js +71 -71
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +6 -6
- package/dist/session/execution/restart.js +123 -123
- package/dist/session/execution.js +105 -105
- package/dist/session/generate.js +124 -124
- package/dist/session/history.js +10 -10
- package/dist/session/inbox.js +73 -73
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +66 -66
- package/dist/session/instruction-state.js +4 -4
- package/dist/session/instructions.js +79 -79
- package/dist/session/model-request.js +98 -98
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +107 -107
- package/dist/session/projector.js +68 -68
- package/dist/session/prompt.js +85 -85
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +73 -73
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +194 -194
- package/dist/session/runner/model.js +81 -81
- package/dist/session/runner/retry.js +94 -94
- package/dist/session/runner/step.js +102 -102
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +144 -144
- package/dist/session/shell.js +112 -112
- package/dist/session/skill.js +84 -84
- package/dist/session/sql.js +3 -3
- package/dist/session/stats.js +12 -12
- package/dist/session/store.js +72 -72
- package/dist/session/subagent-job.js +176 -176
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +126 -126
- package/dist/session/to-session-error.js +91 -91
- package/dist/session/transfer.js +123 -123
- package/dist/session.js +190 -190
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +115 -115
- package/dist/skill/instructions.js +86 -86
- package/dist/skill.js +93 -93
- package/dist/snapshot.js +75 -75
- package/dist/tool/mcp.js +101 -101
- package/dist/tool/plugin/edit.js +92 -92
- package/dist/tool/plugin/glob.js +97 -97
- package/dist/tool/plugin/grep.js +97 -97
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +98 -98
- package/dist/tool/plugin/question.js +82 -82
- package/dist/tool/plugin/read.js +101 -101
- package/dist/tool/plugin/shell.js +184 -184
- package/dist/tool/plugin/skill.js +92 -92
- package/dist/tool/plugin/subagent.js +183 -183
- package/dist/tool/plugin/webfetch.js +90 -90
- package/dist/tool/plugin/websearch.js +93 -93
- package/dist/tool/plugin/write.js +98 -98
- package/dist/tool/read-filesystem.js +80 -80
- package/dist/tool-output.js +5 -5
- package/dist/tool.js +11 -11
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/error.js +3 -3
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +74 -74
- package/dist/v1/config/permission.js +5 -5
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +76 -76
- package/dist/vcs.js +73 -73
- package/dist/websearch.js +68 -68
- package/dist/wellknown/plugin.js +63 -63
- package/dist/wellknown.js +68 -68
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +69 -69
- package/dist/worktree/git.js +7 -7
- package/dist/worktree/sql.js +3 -3
- package/dist/worktree/strategies.js +72 -72
- package/dist/worktree.js +80 -80
- package/package.json +8 -8
- package/dist/chunks/model-resolver-0mesazry.js +0 -4
- package/dist/chunks/model-resolver-aspdhtxw.js +0 -26
- package/dist/chunks/model-resolver-qsj989em.js +0 -478
- package/dist/chunks/model-resolver-tz5bhpr7.js +0 -252
- /package/dist/chunks/{model-resolver-dj2t23y0.js → model-resolver-8p4f9s12.js} +0 -0
- /package/dist/chunks/{model-resolver-e0vtkr8g.js → model-resolver-brp8zeym.js} +0 -0
- /package/dist/chunks/{model-resolver-b29mbqx6.js → model-resolver-ghrzdqqx.js} +0 -0
- /package/dist/chunks/{model-resolver-k3c624dm.js → model-resolver-nzks3jc8.js} +0 -0
- /package/dist/chunks/{model-resolver-wy2za45w.js → model-resolver-paj7g8d0.js} +0 -0
- /package/dist/chunks/{model-resolver-mtc1r9z5.js → model-resolver-tew83jr1.js} +0 -0
|
@@ -5,28 +5,28 @@ import {
|
|
|
5
5
|
RelativePath2
|
|
6
6
|
} from "./model-resolver-922hggd3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./model-resolver-
|
|
8
|
+
Service74
|
|
9
|
+
} from "./model-resolver-r53vwz5c.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-resolver-
|
|
11
|
+
Service68
|
|
12
|
+
} from "./model-resolver-yt385gn2.js";
|
|
13
13
|
import {
|
|
14
14
|
InvalidPatternError2,
|
|
15
|
-
|
|
16
|
-
} from "./model-resolver-
|
|
15
|
+
Service67
|
|
16
|
+
} from "./model-resolver-6yr1acw8.js";
|
|
17
17
|
import {
|
|
18
18
|
DEFAULT_SEARCH_LIMIT2,
|
|
19
19
|
DEFAULT_SEARCH_TIMEOUT_MS2,
|
|
20
20
|
GrepInput2,
|
|
21
|
-
|
|
21
|
+
Entry4,
|
|
22
22
|
Match2
|
|
23
|
-
} from "./model-resolver-
|
|
23
|
+
} from "./model-resolver-4g9kkqcn.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./model-resolver-
|
|
25
|
+
Service54
|
|
26
|
+
} from "./model-resolver-r629fsmj.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./model-resolver-
|
|
28
|
+
Service53
|
|
29
|
+
} from "./model-resolver-mksbb8nz.js";
|
|
30
30
|
import {
|
|
31
31
|
__export
|
|
32
32
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -35,17 +35,17 @@ import {
|
|
|
35
35
|
var exports_grep = {};
|
|
36
36
|
__export(exports_grep, {
|
|
37
37
|
GrepTool: () => exports_grep,
|
|
38
|
-
Input: () =>
|
|
38
|
+
Input: () => Input10,
|
|
39
39
|
Output: () => Output8,
|
|
40
|
-
Plugin: () =>
|
|
41
|
-
name: () =>
|
|
40
|
+
Plugin: () => Plugin11,
|
|
41
|
+
name: () => name10,
|
|
42
42
|
toModelContent: () => toModelContent6
|
|
43
43
|
});
|
|
44
44
|
import { ToolFailure } from "@opencode/ai";
|
|
45
45
|
import { Effect, Schema } from "effect";
|
|
46
46
|
import path from "path";
|
|
47
|
-
var
|
|
48
|
-
var
|
|
47
|
+
var name10 = "grep";
|
|
48
|
+
var Input10 = Schema.Struct({
|
|
49
49
|
pattern: GrepInput2.fields.pattern.check(Schema.isMinLength(1, { message: "Pattern must not be empty" })).annotate({
|
|
50
50
|
description: "Regular expression or literal text to match in file contents."
|
|
51
51
|
}),
|
|
@@ -83,26 +83,26 @@ var toModelContent6 = (matches, truncated = false) => {
|
|
|
83
83
|
return lines.join(`
|
|
84
84
|
`);
|
|
85
85
|
};
|
|
86
|
-
var
|
|
86
|
+
var Plugin11 = {
|
|
87
87
|
id: "opencode.tool.grep",
|
|
88
88
|
effect: Effect.fn("GrepTool.Plugin")(function* (ctx) {
|
|
89
|
-
const environment = yield*
|
|
90
|
-
const ripgrep = yield*
|
|
91
|
-
const location = yield*
|
|
92
|
-
const access = yield*
|
|
93
|
-
const permission = yield*
|
|
89
|
+
const environment = yield* Service68;
|
|
90
|
+
const ripgrep = yield* Service67;
|
|
91
|
+
const location = yield* Service74;
|
|
92
|
+
const access = yield* Service53;
|
|
93
|
+
const permission = yield* Service54;
|
|
94
94
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
95
|
-
name:
|
|
95
|
+
name: name10,
|
|
96
96
|
options: { codemode: false },
|
|
97
97
|
description: "Search file contents using ripgrep's regular expression syntax or literal text matching. Use it to locate specific code, symbols, or text patterns, and narrow searches with `path` or `include`. Returns matching file paths, line numbers, and line previews.",
|
|
98
|
-
input:
|
|
98
|
+
input: Input10,
|
|
99
99
|
output: Output8,
|
|
100
100
|
execute: (input, context) => Effect.gen(function* () {
|
|
101
101
|
const source = { type: "tool", messageID: context.messageID, id: context.id };
|
|
102
102
|
const target = yield* access.resolve({ path: input.path ?? "." });
|
|
103
103
|
yield* access.authorizeExternal([target], context);
|
|
104
104
|
yield* permission.assert({
|
|
105
|
-
action:
|
|
105
|
+
action: name10,
|
|
106
106
|
resources: [input.pattern],
|
|
107
107
|
save: ["*"],
|
|
108
108
|
metadata: {
|
|
@@ -136,7 +136,7 @@ var Plugin45 = {
|
|
|
136
136
|
}))
|
|
137
137
|
}), Effect.map((result) => result.map((match) => Match2.make({
|
|
138
138
|
...match,
|
|
139
|
-
entry:
|
|
139
|
+
entry: Entry4.make({
|
|
140
140
|
...match.entry,
|
|
141
141
|
path: RelativePath2.make(path.relative(location.directory, path.resolve(cwd, match.entry.path)))
|
|
142
142
|
})
|
|
@@ -154,4 +154,4 @@ var Plugin45 = {
|
|
|
154
154
|
})
|
|
155
155
|
};
|
|
156
156
|
|
|
157
|
-
export {
|
|
157
|
+
export { name10, Input10, Output8, toModelContent6, Plugin11, exports_grep };
|
|
@@ -3,15 +3,15 @@ import {
|
|
|
3
3
|
} from "./model-resolver-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
root2
|
|
6
|
-
} from "./model-resolver-
|
|
6
|
+
} from "./model-resolver-1627k7qg.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./model-resolver-
|
|
8
|
+
Service74,
|
|
9
|
+
node78
|
|
10
|
+
} from "./model-resolver-r53vwz5c.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./model-resolver-
|
|
12
|
+
Service54,
|
|
13
|
+
node57
|
|
14
|
+
} from "./model-resolver-r629fsmj.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -22,9 +22,9 @@ __export(exports_file_access, {
|
|
|
22
22
|
FileAccess: () => exports_file_access,
|
|
23
23
|
Kind: () => Kind2,
|
|
24
24
|
ResolveInput: () => ResolveInput2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service53,
|
|
26
26
|
externalDirectoryPermission: () => externalDirectoryPermission2,
|
|
27
|
-
node: () =>
|
|
27
|
+
node: () => node56,
|
|
28
28
|
resolvePath: () => resolvePath2
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -43,7 +43,7 @@ var externalDirectoryPermission2 = (input) => ({
|
|
|
43
43
|
save: [input.save]
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service53 extends Context.Service()("@opencode/FileAccess") {
|
|
47
47
|
}
|
|
48
48
|
var resolvePath2 = (directory, input, home = Global.Path.home) => {
|
|
49
49
|
const normalized = FSUtil.windowsPath(input);
|
|
@@ -55,10 +55,10 @@ var invocation = (context) => ({
|
|
|
55
55
|
agent: context.agent,
|
|
56
56
|
source: { type: "tool", messageID: context.messageID, id: context.id }
|
|
57
57
|
});
|
|
58
|
-
var layer = Layer.effect(
|
|
58
|
+
var layer = Layer.effect(Service53, Effect.gen(function* () {
|
|
59
59
|
const fs = yield* FSUtil.Service;
|
|
60
|
-
const location = yield*
|
|
61
|
-
const permission = yield*
|
|
60
|
+
const location = yield* Service74;
|
|
61
|
+
const permission = yield* Service54;
|
|
62
62
|
const resolve = Effect.fn("FileAccess.resolve")(function* (input) {
|
|
63
63
|
const absolute = AbsolutePath2.make(resolvePath2(location.directory, input.path));
|
|
64
64
|
const worktree = path.resolve(location.project.directory);
|
|
@@ -107,8 +107,8 @@ var layer = Layer.effect(Service24, Effect.gen(function* () {
|
|
|
107
107
|
});
|
|
108
108
|
return target;
|
|
109
109
|
});
|
|
110
|
-
return
|
|
110
|
+
return Service53.of({ resolve, authorizeExternal, authorizeRead });
|
|
111
111
|
}));
|
|
112
|
-
var
|
|
112
|
+
var node56 = makeLocationNode({ service: Service53, layer, deps: [FSUtil.node, node78, node57] });
|
|
113
113
|
|
|
114
|
-
export { Kind2, ResolveInput2, externalDirectoryPermission2,
|
|
114
|
+
export { Kind2, ResolveInput2, externalDirectoryPermission2, Service53, resolvePath2, node56, exports_file_access };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-resolver-
|
|
2
|
+
Service79,
|
|
3
|
+
node83
|
|
4
|
+
} from "./model-resolver-fz4jpxex.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
8
|
} from "./model-resolver-rdw6cm16.js";
|
|
9
9
|
import {
|
|
10
10
|
ID14,
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Service70,
|
|
12
|
+
node74,
|
|
13
13
|
Event18
|
|
14
|
-
} from "./model-resolver-
|
|
14
|
+
} from "./model-resolver-sh9h5wwb.js";
|
|
15
15
|
import {
|
|
16
16
|
key2
|
|
17
|
-
} from "./model-resolver-
|
|
17
|
+
} from "./model-resolver-4dgbcxzg.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./model-resolver-
|
|
19
|
+
Service74,
|
|
20
|
+
node78
|
|
21
|
+
} from "./model-resolver-r53vwz5c.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
24
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -36,13 +36,13 @@ import { Effect as Effect2, Option, Schema as Schema2, Struct as Struct2 } from
|
|
|
36
36
|
var exports_provider3 = {};
|
|
37
37
|
__export(exports_provider3, {
|
|
38
38
|
AISDK_PREFIX: () => AISDK_PREFIX2,
|
|
39
|
-
Event: () =>
|
|
40
|
-
ID: () =>
|
|
41
|
-
Info: () =>
|
|
39
|
+
Event: () => Event16,
|
|
40
|
+
ID: () => ID12,
|
|
41
|
+
Info: () => Info26,
|
|
42
42
|
LoadError: () => LoadError3,
|
|
43
43
|
Provider: () => exports_provider3,
|
|
44
44
|
Request: () => Request3,
|
|
45
|
-
Service: () =>
|
|
45
|
+
Service: () => Service63,
|
|
46
46
|
Settings: () => Settings2,
|
|
47
47
|
aisdk: () => aisdk2,
|
|
48
48
|
isAISDK: () => isAISDK2,
|
|
@@ -50,7 +50,7 @@ __export(exports_provider3, {
|
|
|
50
50
|
mergeHeaders: () => mergeHeaders2,
|
|
51
51
|
mergeOverlay: () => mergeOverlay2,
|
|
52
52
|
nativeSettings: () => nativeSettings2,
|
|
53
|
-
node: () =>
|
|
53
|
+
node: () => node66,
|
|
54
54
|
packageName: () => packageName2
|
|
55
55
|
});
|
|
56
56
|
import { Context, Effect, Layer, Schema, Stream, Struct } from "effect";
|
|
@@ -61,8 +61,8 @@ import { isRecord } from "@opencode/ai/utils/record";
|
|
|
61
61
|
import { importModule, resolveModule } from "@opencode/util/runtime-import";
|
|
62
62
|
import { Credential } from "@opencode/schema/credential";
|
|
63
63
|
import { freeze } from "immer";
|
|
64
|
-
import { Event as
|
|
65
|
-
var
|
|
64
|
+
import { Event as Event16 } from "@opencode/schema/provider";
|
|
65
|
+
var ID12 = Provider.ID;
|
|
66
66
|
var AISDK_PREFIX2 = "aisdk:";
|
|
67
67
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
68
68
|
var aisdk2 = (value) => isAISDK2(value) ? value : `${AISDK_PREFIX2}${value}`;
|
|
@@ -201,9 +201,9 @@ function mergeHeaders2(base, overlay) {
|
|
|
201
201
|
}
|
|
202
202
|
var Request3 = Provider.Request;
|
|
203
203
|
var Settings2 = Provider.Settings;
|
|
204
|
-
var
|
|
204
|
+
var Info26 = Provider.Info;
|
|
205
205
|
|
|
206
|
-
class
|
|
206
|
+
class Service63 extends Context.Service()("@opencode/Provider") {
|
|
207
207
|
}
|
|
208
208
|
var definitions = new WeakMap;
|
|
209
209
|
function index(providerID, models) {
|
|
@@ -216,10 +216,10 @@ function index(providerID, models) {
|
|
|
216
216
|
definitions.set(models, indexes);
|
|
217
217
|
return result;
|
|
218
218
|
}
|
|
219
|
-
var layer = Layer.effect(
|
|
220
|
-
const bus = yield*
|
|
221
|
-
const integrations = yield*
|
|
222
|
-
const location = yield*
|
|
219
|
+
var layer = Layer.effect(Service63, Effect.gen(function* () {
|
|
220
|
+
const bus = yield* Service79;
|
|
221
|
+
const integrations = yield* Service70;
|
|
222
|
+
const location = yield* Service74;
|
|
223
223
|
const state = create3({
|
|
224
224
|
name: "provider",
|
|
225
225
|
initial: () => new Map,
|
|
@@ -230,7 +230,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
230
230
|
const current = records.get(id);
|
|
231
231
|
if (current)
|
|
232
232
|
return current;
|
|
233
|
-
const added = { provider:
|
|
233
|
+
const added = { provider: Info26.empty(id), models: new Map };
|
|
234
234
|
records.set(id, added);
|
|
235
235
|
maps.add(added.models);
|
|
236
236
|
return added;
|
|
@@ -338,7 +338,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
338
338
|
});
|
|
339
339
|
});
|
|
340
340
|
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect.forkScoped({ startImmediately: true }));
|
|
341
|
-
return
|
|
341
|
+
return Service63.of({
|
|
342
342
|
transform: state.transform,
|
|
343
343
|
reload: state.reload,
|
|
344
344
|
get: Effect.fn("Provider.get")((id) => Effect.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -347,7 +347,7 @@ var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
347
347
|
snapshot
|
|
348
348
|
});
|
|
349
349
|
}));
|
|
350
|
-
var
|
|
350
|
+
var node66 = makeLocationNode({ service: Service63, layer, deps: [node83, node74, node78] });
|
|
351
351
|
var importPackage = Effect.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
352
352
|
const module = yield* Effect.tryPromise({
|
|
353
353
|
try: () => {
|
|
@@ -607,4 +607,4 @@ var Legacy = Schema2.StructWithRest(Schema2.Struct({
|
|
|
607
607
|
}), [Schema2.Record(Schema2.String, Schema2.Unknown)]);
|
|
608
608
|
var decode = Schema2.decodeUnknownSync(Legacy);
|
|
609
609
|
|
|
610
|
-
export { rewrite2, native2, exports_aisdk_native,
|
|
610
|
+
export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, loadPackage2, nativeSettings2, mergeOverlay2, mergeHeaders2, Request3, Settings2, Info26, Service63, node66, exports_provider3, Event16 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Ref4
|
|
3
|
-
} from "./model-resolver-
|
|
3
|
+
} from "./model-resolver-r53vwz5c.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -9,9 +9,9 @@ import {
|
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service58,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node61,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service58 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service58, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node61 = LayerNode.unbound(Service58, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service58;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -45,4 +45,4 @@ function canonical3(ref) {
|
|
|
45
45
|
});
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
export {
|
|
48
|
+
export { Service58, node61, reload2, canonical3, exports_location_service_map };
|
|
@@ -18,9 +18,9 @@ __export(exports_tool_output2, {
|
|
|
18
18
|
MAX_BYTES: () => MAX_BYTES2,
|
|
19
19
|
MAX_LINES: () => MAX_LINES2,
|
|
20
20
|
RETENTION: () => RETENTION3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service43,
|
|
22
22
|
ToolOutput: () => exports_tool_output2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node45
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { Context, Duration, Effect, Layer, Schedule } from "effect";
|
|
@@ -32,13 +32,13 @@ var MAX_BYTES2 = 50 * 1024;
|
|
|
32
32
|
var RETENTION3 = Duration.days(7);
|
|
33
33
|
var DIRECTORY3 = "tool-output";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service43 extends Context.Service()("@opencode/ToolOutput") {
|
|
36
36
|
}
|
|
37
37
|
var cleanup = Effect.fn("ToolOutput.cleanup")(function* (fs, directory) {
|
|
38
38
|
const entries = yield* fs.readDirectory(directory).pipe(Effect.map((entries) => entries.filter((entry) => /^tool_[0-9a-f]{12}/.test(entry))), Effect.orElseSucceed(() => []));
|
|
39
39
|
yield* cleanup3(fs, entries.map((entry) => path.join(directory, entry)), RETENTION3);
|
|
40
40
|
});
|
|
41
|
-
var layer = Layer.effect(
|
|
41
|
+
var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const directory = path.join(global.data, DIRECTORY3);
|
|
@@ -122,7 +122,7 @@ var layer = Layer.effect(Service71, Effect.gen(function* () {
|
|
|
122
122
|
metadata: { ...result.metadata, truncated: true, outputPath: file }
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
|
-
return
|
|
125
|
+
return Service43.of({
|
|
126
126
|
transform: state.transform,
|
|
127
127
|
reload: state.reload,
|
|
128
128
|
truncate,
|
|
@@ -139,10 +139,10 @@ var cleanupNode = makeGlobalNode({
|
|
|
139
139
|
layer: cleanupLayer,
|
|
140
140
|
deps: [FSUtil.node, Global.node]
|
|
141
141
|
});
|
|
142
|
-
var
|
|
143
|
-
service:
|
|
142
|
+
var node45 = makeLocationNode({
|
|
143
|
+
service: Service43,
|
|
144
144
|
layer,
|
|
145
145
|
deps: [FSUtil.node, Global.node, cleanupNode]
|
|
146
146
|
});
|
|
147
147
|
|
|
148
|
-
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3,
|
|
148
|
+
export { MAX_LINES2, MAX_BYTES2, RETENTION3, DIRECTORY3, Service43, node45, exports_tool_output2 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./model-resolver-
|
|
3
|
+
} from "./model-resolver-r345bmqf.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./model-resolver-
|
|
6
|
+
} from "./model-resolver-56gdpj1q.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
// src/plugin/websearch/parallel.ts
|
|
12
12
|
var exports_parallel = {};
|
|
13
13
|
__export(exports_parallel, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin37,
|
|
15
15
|
WebSearchParallel: () => exports_parallel,
|
|
16
16
|
endpoint: () => endpoint4
|
|
17
17
|
});
|
|
@@ -47,7 +47,7 @@ var McpOutput = Schema.Struct({
|
|
|
47
47
|
content: Schema.Array(Schema.Struct({ type: Schema.Literal("text"), text: Schema.String })),
|
|
48
48
|
structuredContent: SearchResponse
|
|
49
49
|
});
|
|
50
|
-
var
|
|
50
|
+
var Plugin37 = define({
|
|
51
51
|
id: "opencode.websearch.parallel",
|
|
52
52
|
effect: Effect.fn("WebSearchParallel.Plugin")(function* (ctx) {
|
|
53
53
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -93,4 +93,4 @@ var Plugin22 = define({
|
|
|
93
93
|
})
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
export { endpoint4,
|
|
96
|
+
export { endpoint4, Plugin37, exports_parallel };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./model-resolver-
|
|
2
|
+
Service54
|
|
3
|
+
} from "./model-resolver-r629fsmj.js";
|
|
4
4
|
import {
|
|
5
5
|
MAX_MARKDOWN_BYTES2,
|
|
6
6
|
convertHTMLToMarkdown2
|
|
@@ -16,29 +16,29 @@ import {
|
|
|
16
16
|
var exports_webfetch = {};
|
|
17
17
|
__export(exports_webfetch, {
|
|
18
18
|
DEFAULT_TIMEOUT_SECONDS: () => DEFAULT_TIMEOUT_SECONDS2,
|
|
19
|
-
Input: () =>
|
|
20
|
-
MAX_RESPONSE_BYTES: () =>
|
|
19
|
+
Input: () => Input12,
|
|
20
|
+
MAX_RESPONSE_BYTES: () => MAX_RESPONSE_BYTES2,
|
|
21
21
|
MAX_TIMEOUT_SECONDS: () => MAX_TIMEOUT_SECONDS2,
|
|
22
|
-
Plugin: () =>
|
|
22
|
+
Plugin: () => Plugin13,
|
|
23
23
|
WebFetchTool: () => exports_webfetch,
|
|
24
24
|
convertHTMLToMarkdown: () => convertHTMLToMarkdown2,
|
|
25
25
|
description: () => description5,
|
|
26
26
|
extractTextFromHTML: () => extractTextFromHTML2,
|
|
27
|
-
name: () =>
|
|
27
|
+
name: () => name12
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Duration, Effect, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/unstable/http";
|
|
32
32
|
import { Parser } from "htmlparser2";
|
|
33
|
-
var
|
|
34
|
-
var
|
|
33
|
+
var name12 = "webfetch";
|
|
34
|
+
var MAX_RESPONSE_BYTES2 = MAX_MARKDOWN_BYTES2;
|
|
35
35
|
var DEFAULT_TIMEOUT_SECONDS2 = 30;
|
|
36
36
|
var MAX_TIMEOUT_SECONDS2 = 120;
|
|
37
37
|
var description5 = `Fetch content from an HTTP or HTTPS URL and return it as text, markdown, or HTML. Markdown is the default.
|
|
38
38
|
|
|
39
39
|
Use a more targeted tool when one is available. This tool is read-only. Large text results may be replaced with a preview while the complete output is retained in managed storage.`;
|
|
40
40
|
var Timeout = Schema.Finite.check(Schema.isGreaterThan(0), Schema.isLessThanOrEqualTo(MAX_TIMEOUT_SECONDS2));
|
|
41
|
-
var
|
|
41
|
+
var Input12 = Schema.Struct({
|
|
42
42
|
url: Schema.String.annotate({ description: "The HTTP or HTTPS URL to fetch content from" }),
|
|
43
43
|
format: Schema.Literals(["text", "markdown", "html"]).annotate({ description: "The format to return the content in. Defaults to markdown." }).pipe(Schema.withDecodingDefaultKey(Effect.succeed("markdown"))),
|
|
44
44
|
timeout: Schema.optionalKey(Timeout).annotate({
|
|
@@ -48,7 +48,7 @@ var Input8 = Schema.Struct({
|
|
|
48
48
|
var Output = Schema.Struct({
|
|
49
49
|
url: Schema.String,
|
|
50
50
|
contentType: Schema.String,
|
|
51
|
-
format:
|
|
51
|
+
format: Input12.fields.format,
|
|
52
52
|
output: Schema.String
|
|
53
53
|
});
|
|
54
54
|
var acceptHeader = (format) => {
|
|
@@ -79,7 +79,7 @@ var assertHttpUrl = (url) => {
|
|
|
79
79
|
throw new Error("URL must use http:// or https://");
|
|
80
80
|
};
|
|
81
81
|
var execute = (http, url, format, userAgent = openCodeUserAgent) => http.execute(request(url, format, userAgent)).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk));
|
|
82
|
-
var collectBody = (response) => collectBoundedResponseBody2(response,
|
|
82
|
+
var collectBody = (response) => collectBoundedResponseBody2(response, MAX_RESPONSE_BYTES2, () => new Error(`Response too large (exceeds ${MAX_RESPONSE_BYTES2} byte limit)`));
|
|
83
83
|
var mimeFrom = (contentType) => contentType.split(";", 1)[0]?.trim().toLowerCase() ?? "";
|
|
84
84
|
var isImageAttachment = (mime) => mime.startsWith("image/") && mime !== "image/svg+xml" && mime !== "image/vnd.fastbidsheet";
|
|
85
85
|
var isTextualMime = (mime) => !mime || mime.startsWith("text/") || mime === "application/json" || mime.endsWith("+json") || mime === "application/xml" || mime.endsWith("+xml") || mime === "application/javascript" || mime === "application/x-javascript";
|
|
@@ -92,16 +92,16 @@ var convert = (content, contentType, format) => {
|
|
|
92
92
|
return extractTextFromHTML2(content);
|
|
93
93
|
return content;
|
|
94
94
|
};
|
|
95
|
-
var
|
|
95
|
+
var Plugin13 = {
|
|
96
96
|
id: "opencode.tool.webfetch",
|
|
97
97
|
effect: Effect.fn("WebFetchTool.Plugin")(function* (ctx) {
|
|
98
98
|
const http = yield* HttpClient.HttpClient;
|
|
99
|
-
const permission = yield*
|
|
99
|
+
const permission = yield* Service54;
|
|
100
100
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
101
|
-
name:
|
|
101
|
+
name: name12,
|
|
102
102
|
options: { codemode: false },
|
|
103
103
|
description: description5,
|
|
104
|
-
input:
|
|
104
|
+
input: Input12,
|
|
105
105
|
output: Output,
|
|
106
106
|
execute: (input, context) => Effect.gen(function* () {
|
|
107
107
|
yield* Effect.try({
|
|
@@ -109,7 +109,7 @@ var Plugin40 = {
|
|
|
109
109
|
catch: (error) => error
|
|
110
110
|
});
|
|
111
111
|
yield* permission.assert({
|
|
112
|
-
action:
|
|
112
|
+
action: name12,
|
|
113
113
|
resources: [input.url],
|
|
114
114
|
save: ["*"],
|
|
115
115
|
metadata: input,
|
|
@@ -167,4 +167,4 @@ function extractTextFromHTML2(html) {
|
|
|
167
167
|
parser.end();
|
|
168
168
|
return text.trim();
|
|
169
169
|
}
|
|
170
|
-
export {
|
|
170
|
+
export { name12, MAX_RESPONSE_BYTES2, DEFAULT_TIMEOUT_SECONDS2, MAX_TIMEOUT_SECONDS2, description5, Input12, Plugin13, extractTextFromHTML2, exports_webfetch };
|
|
@@ -11,19 +11,19 @@ import {
|
|
|
11
11
|
// src/shell/select.ts
|
|
12
12
|
var exports_select = {};
|
|
13
13
|
__export(exports_select, {
|
|
14
|
-
Options: () =>
|
|
15
|
-
Service: () =>
|
|
14
|
+
Options: () => Options10,
|
|
15
|
+
Service: () => Service78,
|
|
16
16
|
ShellSelect: () => exports_select,
|
|
17
17
|
args: () => args2,
|
|
18
|
-
configured: () =>
|
|
18
|
+
configured: () => configured11,
|
|
19
19
|
environment: () => environment2,
|
|
20
20
|
gitbash: () => gitbash2,
|
|
21
21
|
list: () => list4,
|
|
22
22
|
login: () => login2,
|
|
23
23
|
name: () => name15,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node82,
|
|
25
25
|
ps: () => ps2,
|
|
26
|
-
resolve: () =>
|
|
26
|
+
resolve: () => resolve4
|
|
27
27
|
});
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { readFile } from "fs/promises";
|
|
@@ -43,11 +43,11 @@ var META = {
|
|
|
43
43
|
sh: { login: true },
|
|
44
44
|
zsh: { login: true }
|
|
45
45
|
};
|
|
46
|
-
var
|
|
46
|
+
var Options10 = Schema.Struct({
|
|
47
47
|
gitbash: Schema.optional(Schema.String)
|
|
48
48
|
});
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service78 extends Context.Service()("@opencode/ShellSelect") {
|
|
51
51
|
}
|
|
52
52
|
function stat(file) {
|
|
53
53
|
return statSync(file, { throwIfNoEntry: false }) ?? undefined;
|
|
@@ -164,7 +164,7 @@ function environment2(bin, filter) {
|
|
|
164
164
|
}
|
|
165
165
|
var defaultConfigured;
|
|
166
166
|
var defaultCompatible;
|
|
167
|
-
function
|
|
167
|
+
function resolve4(input, configShell, options, bin) {
|
|
168
168
|
const filter = input.priority === "compat" ? { compatible: true } : undefined;
|
|
169
169
|
if (configShell)
|
|
170
170
|
return select(configShell, options, filter, bin);
|
|
@@ -180,7 +180,7 @@ function resolve3(input, configShell, options, bin) {
|
|
|
180
180
|
defaultConfigured = { bin, value };
|
|
181
181
|
return value;
|
|
182
182
|
}
|
|
183
|
-
|
|
183
|
+
resolve4.reset = () => {
|
|
184
184
|
defaultConfigured = undefined;
|
|
185
185
|
defaultCompatible = undefined;
|
|
186
186
|
};
|
|
@@ -188,7 +188,7 @@ async function list4(options, bin) {
|
|
|
188
188
|
const shells = process.platform === "win32" ? win(options, bin) : await unix();
|
|
189
189
|
return shells.filter((shell) => executable(shell, options, bin)).map((shell) => info(shell, options, bin));
|
|
190
190
|
}
|
|
191
|
-
var layer = (options) => Layer.effect(
|
|
191
|
+
var layer = (options) => Layer.effect(Service78, Effect.gen(function* () {
|
|
192
192
|
const global = yield* Global.Service;
|
|
193
193
|
const state = create3({
|
|
194
194
|
name: "shell-select",
|
|
@@ -199,16 +199,16 @@ var layer = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
|
199
199
|
}
|
|
200
200
|
})
|
|
201
201
|
});
|
|
202
|
-
return
|
|
202
|
+
return Service78.of({
|
|
203
203
|
transform: state.transform,
|
|
204
204
|
reload: state.reload,
|
|
205
|
-
resolve: (input) => Effect.sync(() =>
|
|
205
|
+
resolve: (input) => Effect.sync(() => resolve4(input, state.get().shell, options, global.bin)),
|
|
206
206
|
list: () => Effect.promise(() => list4(options, global.bin))
|
|
207
207
|
});
|
|
208
208
|
}));
|
|
209
|
-
function
|
|
210
|
-
return makeLocationNode({ service:
|
|
209
|
+
function configured11(options) {
|
|
210
|
+
return makeLocationNode({ service: Service78, layer: layer(options), deps: [Global.node] });
|
|
211
211
|
}
|
|
212
|
-
var
|
|
212
|
+
var node82 = configured11();
|
|
213
213
|
|
|
214
|
-
export {
|
|
214
|
+
export { Options10, Service78, gitbash2, name15, login2, ps2, args2, environment2, resolve4, list4, configured11, node82, exports_select };
|