@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
|
@@ -4,31 +4,31 @@ import {
|
|
|
4
4
|
} from "./model-resolver-922hggd3.js";
|
|
5
5
|
import {
|
|
6
6
|
Info16
|
|
7
|
-
} from "./model-resolver-
|
|
7
|
+
} from "./model-resolver-g190xswt.js";
|
|
8
8
|
import {
|
|
9
9
|
Info15
|
|
10
|
-
} from "./model-resolver-
|
|
10
|
+
} from "./model-resolver-818pfwc9.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./model-resolver-
|
|
12
|
+
Info13
|
|
13
|
+
} from "./model-resolver-evbgk2k8.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./model-resolver-
|
|
15
|
+
Info11
|
|
16
|
+
} from "./model-resolver-ryr25ayn.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
} from "./model-resolver-
|
|
18
|
+
Info18
|
|
19
|
+
} from "./model-resolver-0z8vjex2.js";
|
|
20
20
|
import {
|
|
21
21
|
Layout2
|
|
22
22
|
} from "./model-resolver-21r38tys.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./model-resolver-
|
|
24
|
+
Info14
|
|
25
|
+
} from "./model-resolver-3b1q5j1v.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./model-resolver-
|
|
27
|
+
Info12
|
|
28
|
+
} from "./model-resolver-hkfg6fzm.js";
|
|
29
29
|
import {
|
|
30
30
|
Spec2
|
|
31
|
-
} from "./model-resolver-
|
|
31
|
+
} from "./model-resolver-0jwsre1p.js";
|
|
32
32
|
import {
|
|
33
33
|
Info17
|
|
34
34
|
} from "./model-resolver-510m7gjw.js";
|
|
@@ -36,8 +36,8 @@ import {
|
|
|
36
36
|
Server2
|
|
37
37
|
} from "./model-resolver-zeh9ct20.js";
|
|
38
38
|
import {
|
|
39
|
-
|
|
40
|
-
} from "./model-resolver-
|
|
39
|
+
Info10
|
|
40
|
+
} from "./model-resolver-sx1n432n.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
43
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
var exports_config2 = {};
|
|
47
47
|
__export(exports_config2, {
|
|
48
48
|
ConfigV1: () => exports_config2,
|
|
49
|
-
Info: () =>
|
|
49
|
+
Info: () => Info9,
|
|
50
50
|
WellKnown: () => WellKnown2
|
|
51
51
|
});
|
|
52
52
|
import { Schema } from "effect";
|
|
@@ -59,7 +59,7 @@ var LogLevelRef = Schema.Literals(["DEBUG", "INFO", "WARN", "ERROR"]).annotate({
|
|
|
59
59
|
identifier: "LogLevel",
|
|
60
60
|
description: "Log level"
|
|
61
61
|
});
|
|
62
|
-
var
|
|
62
|
+
var Info9 = Schema.Struct({
|
|
63
63
|
$schema: Schema.optional(Schema.String).annotate({
|
|
64
64
|
description: "JSON schema reference for configuration validation"
|
|
65
65
|
}),
|
|
@@ -68,10 +68,10 @@ var Info14 = Schema.Struct({
|
|
|
68
68
|
server: Schema.optional(Server2).annotate({
|
|
69
69
|
description: "Server configuration for opencode serve and web commands"
|
|
70
70
|
}),
|
|
71
|
-
command: Schema.optional(Schema.Record(Schema.String,
|
|
71
|
+
command: Schema.optional(Schema.Record(Schema.String, Info11)).annotate({
|
|
72
72
|
description: "Command configuration, see https://opencode.ai/docs/commands"
|
|
73
73
|
}),
|
|
74
|
-
skills: Schema.optional(
|
|
74
|
+
skills: Schema.optional(Info10).annotate({ description: "Additional skill folder paths" }),
|
|
75
75
|
references: Schema.optional(ConfigReference.Info).annotate({
|
|
76
76
|
description: "Named git or local directory references"
|
|
77
77
|
}),
|
|
@@ -126,11 +126,11 @@ var Info14 = Schema.Struct({
|
|
|
126
126
|
provider: Schema.optional(Schema.Record(Schema.String, Info17)).annotate({
|
|
127
127
|
description: "Custom provider configurations and model overrides"
|
|
128
128
|
}),
|
|
129
|
-
mcp: Schema.optional(Schema.Record(Schema.String, Schema.Union([
|
|
130
|
-
formatter: Schema.optional(
|
|
129
|
+
mcp: Schema.optional(Schema.Record(Schema.String, Schema.Union([Info12, Schema.Struct({ enabled: Schema.Boolean })]))).annotate({ description: "MCP (Model Context Protocol) server configurations" }),
|
|
130
|
+
formatter: Schema.optional(Info18).annotate({
|
|
131
131
|
description: "Enable or configure formatters. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides."
|
|
132
132
|
}),
|
|
133
|
-
lsp: Schema.optional(
|
|
133
|
+
lsp: Schema.optional(Info14).annotate({
|
|
134
134
|
description: "Enable or configure LSP servers. Omit or set to false to disable, true to enable built-ins, or an object to enable built-ins with overrides."
|
|
135
135
|
}),
|
|
136
136
|
instructions: Schema.optional(Schema.mutable(Schema.Array(Schema.String))).annotate({
|
|
@@ -139,7 +139,7 @@ var Info14 = Schema.Struct({
|
|
|
139
139
|
layout: Schema.optional(Layout2).annotate({ description: "@deprecated Always uses stretch layout." }),
|
|
140
140
|
permission: Schema.optional(Info16),
|
|
141
141
|
tools: Schema.optional(Schema.Record(Schema.String, Schema.Boolean)),
|
|
142
|
-
attachment: Schema.optional(
|
|
142
|
+
attachment: Schema.optional(Info13).annotate({
|
|
143
143
|
description: "Attachment processing configuration, including image size limits and resizing behavior"
|
|
144
144
|
}),
|
|
145
145
|
enterprise: Schema.optional(Schema.Struct({ url: Schema.optional(Schema.String).annotate({ description: "Enterprise URL" }) })),
|
|
@@ -191,4 +191,4 @@ var Info14 = Schema.Struct({
|
|
|
191
191
|
}))
|
|
192
192
|
}).annotate({ identifier: "Config" });
|
|
193
193
|
|
|
194
|
-
export { WellKnown2,
|
|
194
|
+
export { WellKnown2, Info9, exports_config2 };
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
9
|
+
make: () => make13,
|
|
10
10
|
render: () => render2
|
|
11
11
|
});
|
|
12
12
|
|
|
@@ -29,7 +29,7 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
29
29
|
`;
|
|
30
30
|
|
|
31
31
|
// src/session/system-prompt.ts
|
|
32
|
-
function
|
|
32
|
+
function make13(tools) {
|
|
33
33
|
return render2(system_default, tools);
|
|
34
34
|
}
|
|
35
35
|
function render2(prompt, tools) {
|
|
@@ -47,4 +47,4 @@ function render2(prompt, tools) {
|
|
|
47
47
|
`));
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export {
|
|
50
|
+
export { make13, render2, exports_system_prompt };
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
gitExecutable2
|
|
10
10
|
} from "./model-resolver-ef5x83kb.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./model-resolver-
|
|
12
|
+
Service74
|
|
13
|
+
} from "./model-resolver-r53vwz5c.js";
|
|
14
14
|
import {
|
|
15
15
|
DiffError2
|
|
16
|
-
} from "./model-resolver-
|
|
16
|
+
} from "./model-resolver-vzxxg8zg.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -21,17 +21,17 @@ import {
|
|
|
21
21
|
// src/plugin/vcs/git.ts
|
|
22
22
|
var exports_git = {};
|
|
23
23
|
__export(exports_git, {
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin33,
|
|
25
25
|
VcsGitPlugin: () => exports_git
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { Effect } from "effect";
|
|
29
29
|
import { ChildProcess } from "effect/unstable/process";
|
|
30
30
|
import { AppProcess } from "@opencode/util/process";
|
|
31
|
-
var
|
|
31
|
+
var Plugin33 = define({
|
|
32
32
|
id: "opencode.vcs.git",
|
|
33
33
|
effect: Effect.fn("VcsGitPlugin")(function* (ctx) {
|
|
34
|
-
const location = yield*
|
|
34
|
+
const location = yield* Service74;
|
|
35
35
|
if (location.vcs?.type !== "git")
|
|
36
36
|
return;
|
|
37
37
|
const processes = yield* AppProcess.Service;
|
|
@@ -470,4 +470,4 @@ var track = Effect.fnUntraced(function* (ctx, ref, options) {
|
|
|
470
470
|
return yield* diffAgainstRef(ctx, ref, options);
|
|
471
471
|
});
|
|
472
472
|
|
|
473
|
-
export {
|
|
473
|
+
export { Plugin33, exports_git };
|
|
@@ -3,28 +3,28 @@ import {
|
|
|
3
3
|
} from "./model-resolver-922hggd3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./model-resolver-
|
|
6
|
+
} from "./model-resolver-g190xswt.js";
|
|
7
7
|
import {
|
|
8
8
|
Info15
|
|
9
|
-
} from "./model-resolver-
|
|
9
|
+
} from "./model-resolver-818pfwc9.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./model-resolver-
|
|
11
|
+
Info13
|
|
12
|
+
} from "./model-resolver-evbgk2k8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./model-resolver-
|
|
14
|
+
Info11
|
|
15
|
+
} from "./model-resolver-ryr25ayn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
} from "./model-resolver-
|
|
17
|
+
Info12
|
|
18
|
+
} from "./model-resolver-hkfg6fzm.js";
|
|
19
19
|
import {
|
|
20
20
|
Spec2
|
|
21
|
-
} from "./model-resolver-
|
|
21
|
+
} from "./model-resolver-0jwsre1p.js";
|
|
22
22
|
import {
|
|
23
23
|
Info17
|
|
24
24
|
} from "./model-resolver-510m7gjw.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./model-resolver-
|
|
26
|
+
Info9
|
|
27
|
+
} from "./model-resolver-qgekj8ca.js";
|
|
28
28
|
import {
|
|
29
29
|
migrate2,
|
|
30
30
|
normalizeAction2,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
migrateMcp2,
|
|
34
34
|
migrateProvider2,
|
|
35
35
|
providerID2
|
|
36
|
-
} from "./model-resolver-
|
|
36
|
+
} from "./model-resolver-95py5vr5.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
39
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -84,10 +84,10 @@ function normalize2(input) {
|
|
|
84
84
|
const encoded = {};
|
|
85
85
|
unsupportedTopLevel.forEach((key) => unsupportedIfPresent(input, key, [key], diagnostics));
|
|
86
86
|
const legacySnapshots = own(input, "snapshot") ? decodeEncoded(Schema.Boolean, input.snapshot, ["snapshot"], diagnostics) : undefined;
|
|
87
|
-
const legacyUpdate = own(input, "autoupdate") ? decodeValue(
|
|
87
|
+
const legacyUpdate = own(input, "autoupdate") ? decodeValue(Info9.fields.autoupdate, input.autoupdate, ["autoupdate"], diagnostics) : undefined;
|
|
88
88
|
const nativeUpdate = own(input, "update") ? decodeEncoded(Info.fields.update, input.update, ["update"], diagnostics) : undefined;
|
|
89
89
|
const legacyShare = own(input, "autoshare") ? decodeValue(Schema.Boolean, input.autoshare, ["autoshare"], diagnostics) === true ? "auto" : undefined : undefined;
|
|
90
|
-
const legacyMedia = own(input, "attachment") ? decodeValue(
|
|
90
|
+
const legacyMedia = own(input, "attachment") ? decodeValue(Info13, input.attachment, ["attachment"], diagnostics) : undefined;
|
|
91
91
|
if (legacyMedia !== undefined) {
|
|
92
92
|
const migrated = migrate2({ attachment: legacyMedia }).media;
|
|
93
93
|
if (migrated !== undefined)
|
|
@@ -104,7 +104,7 @@ function normalize2(input) {
|
|
|
104
104
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
105
105
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
106
106
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
107
|
-
const legacyCommands = decodeMap(input.command,
|
|
107
|
+
const legacyCommands = decodeMap(input.command, Info11, ["command"], diagnostics, decodeValue);
|
|
108
108
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
109
109
|
const migratedCommands = mapValues(legacyCommands, (value) => {
|
|
110
110
|
const migrated = commands2({ value })?.value;
|
|
@@ -225,7 +225,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
225
225
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
226
226
|
return;
|
|
227
227
|
}
|
|
228
|
-
const server = decodeValue(
|
|
228
|
+
const server = decodeValue(Info12, value, path, diagnostics);
|
|
229
229
|
if (server !== undefined)
|
|
230
230
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
231
231
|
});
|
|
@@ -7,18 +7,18 @@ var exports_app = {};
|
|
|
7
7
|
__export(exports_app, {
|
|
8
8
|
App: () => exports_app,
|
|
9
9
|
Metadata: () => Metadata2,
|
|
10
|
-
configured: () =>
|
|
11
|
-
layer: () =>
|
|
12
|
-
make: () =>
|
|
13
|
-
node: () =>
|
|
10
|
+
configured: () => configured5,
|
|
11
|
+
layer: () => layer19,
|
|
12
|
+
make: () => make18,
|
|
13
|
+
node: () => node46,
|
|
14
14
|
useragent: () => useragent2
|
|
15
15
|
});
|
|
16
16
|
import { Context, Layer } from "effect";
|
|
17
17
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
18
18
|
var Metadata2 = Context.Reference("@opencode/App", {
|
|
19
|
-
defaultValue: () =>
|
|
19
|
+
defaultValue: () => make18()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make18(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make19(input = {}) {
|
|
|
28
28
|
function useragent2(app) {
|
|
29
29
|
return `opencode/${app.channel}/${app.version}/${app.name}`;
|
|
30
30
|
}
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
31
|
+
var layer19 = (input) => Layer.succeed(Metadata2, make18(input));
|
|
32
|
+
var configured5 = (input) => makeGlobalNode({ service: Metadata2, layer: layer19(input), deps: [] });
|
|
33
|
+
var node46 = configured5();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make18, useragent2, layer19, configured5, node46, exports_app };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-resolver-
|
|
2
|
+
Service75,
|
|
3
|
+
node79
|
|
4
|
+
} from "./model-resolver-1627k7qg.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./model-resolver-9rqn6x4v.js";
|
|
@@ -12,22 +12,22 @@ __export(exports_location, {
|
|
|
12
12
|
Info: () => Info32,
|
|
13
13
|
Location: () => exports_location,
|
|
14
14
|
Ref: () => Ref4,
|
|
15
|
-
Service: () =>
|
|
15
|
+
Service: () => Service74,
|
|
16
16
|
boundNode: () => boundNode2,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node78,
|
|
18
18
|
response: () => response2
|
|
19
19
|
});
|
|
20
20
|
import { Context, Effect, Layer } from "effect";
|
|
21
21
|
import { Info as Info32, Ref as Ref4, response as response2 } from "@opencode/schema/location";
|
|
22
22
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
23
23
|
import { makeLocationNode, tags } from "@opencode/util/effect/app-node";
|
|
24
|
-
class
|
|
24
|
+
class Service74 extends Context.Service()("@opencode/Location") {
|
|
25
25
|
}
|
|
26
|
-
var
|
|
27
|
-
var layer = (ref, options) => Layer.effect(
|
|
28
|
-
const project = yield*
|
|
26
|
+
var node78 = LayerNode.unbound(Service74, tags.values.location);
|
|
27
|
+
var layer = (ref, options) => Layer.effect(Service74, Effect.gen(function* () {
|
|
28
|
+
const project = yield* Service75;
|
|
29
29
|
const resolved = yield* project.resolve(ref.directory, options);
|
|
30
|
-
return
|
|
30
|
+
return Service74.of({
|
|
31
31
|
directory: ref.directory,
|
|
32
32
|
workspaceID: ref.workspaceID,
|
|
33
33
|
project: { id: resolved.id, directory: resolved.directory, canonical: resolved.canonical },
|
|
@@ -35,9 +35,9 @@ var layer = (ref, options) => Layer.effect(Service79, Effect.gen(function* () {
|
|
|
35
35
|
});
|
|
36
36
|
}));
|
|
37
37
|
var boundNode2 = (ref, options) => makeLocationNode({
|
|
38
|
-
service:
|
|
38
|
+
service: Service74,
|
|
39
39
|
layer: layer(ref, options),
|
|
40
|
-
deps: [
|
|
40
|
+
deps: [node79]
|
|
41
41
|
});
|
|
42
42
|
|
|
43
|
-
export { Info32, Ref4, response2,
|
|
43
|
+
export { Info32, Ref4, response2, Service74, node78, boundNode2, exports_location };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./model-resolver-
|
|
2
|
+
Service79,
|
|
3
|
+
node83
|
|
4
|
+
} from "./model-resolver-fz4jpxex.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./model-resolver-rdw6cm16.js";
|
|
@@ -10,36 +10,36 @@ import {
|
|
|
10
10
|
} from "./model-resolver-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/agent.ts
|
|
13
|
-
var
|
|
14
|
-
__export(
|
|
15
|
-
Agent: () =>
|
|
13
|
+
var exports_agent4 = {};
|
|
14
|
+
__export(exports_agent4, {
|
|
15
|
+
Agent: () => exports_agent4,
|
|
16
16
|
Color: () => Color2,
|
|
17
|
-
Event: () =>
|
|
17
|
+
Event: () => Event13,
|
|
18
18
|
ID: () => ID9,
|
|
19
|
-
Info: () =>
|
|
19
|
+
Info: () => Info23,
|
|
20
20
|
Name: () => Name3,
|
|
21
|
-
Service: () =>
|
|
21
|
+
Service: () => Service57,
|
|
22
22
|
defaultID: () => defaultID2,
|
|
23
|
-
node: () =>
|
|
23
|
+
node: () => node60
|
|
24
24
|
});
|
|
25
25
|
import path from "path";
|
|
26
26
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { Array, Context, Effect, Layer } from "effect";
|
|
28
28
|
import { Agent } from "@opencode/schema/agent";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
import { Event as
|
|
30
|
+
import { Event as Event13 } from "@opencode/schema/agent";
|
|
31
31
|
var SHELL_OUTPUT_GLOB = (data) => path.join(data, "shell", "*", "*");
|
|
32
32
|
var TOOL_OUTPUT_GLOB = (data) => path.join(data, "tool-output", "*");
|
|
33
33
|
var ID9 = Agent.ID;
|
|
34
34
|
var Name3 = Agent.Name;
|
|
35
35
|
var defaultID2 = ID9.make("build");
|
|
36
36
|
var Color2 = Agent.Color;
|
|
37
|
-
var
|
|
37
|
+
var Info23 = Agent.Info;
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service57 extends Context.Service()("@opencode/Agent") {
|
|
40
40
|
}
|
|
41
|
-
var layer = Layer.effect(
|
|
42
|
-
const bus = yield*
|
|
41
|
+
var layer = Layer.effect(Service57, Effect.gen(function* () {
|
|
42
|
+
const bus = yield* Service79;
|
|
43
43
|
const global = yield* Global.Service;
|
|
44
44
|
const permissions = [
|
|
45
45
|
{ action: "external_directory", resource: SHELL_OUTPUT_GLOB(global.data), effect: "allow" },
|
|
@@ -57,7 +57,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
57
57
|
editor.default = id;
|
|
58
58
|
},
|
|
59
59
|
update: (id, fn) => {
|
|
60
|
-
const defaults =
|
|
60
|
+
const defaults = Info23.default(id);
|
|
61
61
|
const current = editor.agents.get(id) ?? {
|
|
62
62
|
...defaults,
|
|
63
63
|
permissions: [...defaults.permissions, ...permissions]
|
|
@@ -88,7 +88,7 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
88
88
|
return fallback;
|
|
89
89
|
}
|
|
90
90
|
};
|
|
91
|
-
return
|
|
91
|
+
return Service57.of({
|
|
92
92
|
transform: state.transform,
|
|
93
93
|
reload: state.reload,
|
|
94
94
|
get: Effect.fn("Agent.get")(function* (id) {
|
|
@@ -116,6 +116,6 @@ var layer = Layer.effect(Service55, Effect.gen(function* () {
|
|
|
116
116
|
})
|
|
117
117
|
});
|
|
118
118
|
}));
|
|
119
|
-
var
|
|
119
|
+
var node60 = makeLocationNode({ service: Service57, layer, deps: [node83, Global.node] });
|
|
120
120
|
|
|
121
|
-
export { ID9, Name3, defaultID2, Color2,
|
|
121
|
+
export { ID9, Name3, defaultID2, Color2, Info23, Service57, node60, exports_agent4, Event13 };
|
|
@@ -1,70 +1,70 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Service82,
|
|
3
|
-
node86
|
|
4
|
-
} from "./model-resolver-akv0dm8z.js";
|
|
5
1
|
import {
|
|
6
2
|
Service79,
|
|
7
3
|
node83
|
|
8
|
-
} from "./model-resolver-
|
|
4
|
+
} from "./model-resolver-fz4jpxex.js";
|
|
5
|
+
import {
|
|
6
|
+
Service74,
|
|
7
|
+
node78
|
|
8
|
+
} from "./model-resolver-r53vwz5c.js";
|
|
9
9
|
import {
|
|
10
10
|
ID9,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./model-resolver-
|
|
11
|
+
Service57,
|
|
12
|
+
node60
|
|
13
|
+
} from "./model-resolver-r5pvgzgj.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./model-resolver-
|
|
15
|
+
NotFoundError6
|
|
16
|
+
} from "./model-resolver-3f15rfkp.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./model-resolver-
|
|
18
|
+
Service55,
|
|
19
|
+
node58
|
|
20
|
+
} from "./model-resolver-30n129z3.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
23
|
} from "./model-resolver-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./model-resolver-
|
|
25
|
+
Service56,
|
|
26
|
+
node59
|
|
27
|
+
} from "./model-resolver-cmq7pf5c.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./model-resolver-
|
|
29
|
+
Service83,
|
|
30
|
+
node87
|
|
31
|
+
} from "./model-resolver-thjxzeng.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
34
|
} from "./model-resolver-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
|
-
var
|
|
38
|
-
__export(
|
|
37
|
+
var exports_permission2 = {};
|
|
38
|
+
__export(exports_permission2, {
|
|
39
39
|
AskResult: () => AskResult2,
|
|
40
40
|
AssertInput: () => AssertInput2,
|
|
41
41
|
BlockedError: () => BlockedError2,
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
46
|
-
ID: () =>
|
|
47
|
-
NotFoundError: () =>
|
|
48
|
-
Permission: () =>
|
|
45
|
+
Event: () => Event12,
|
|
46
|
+
ID: () => ID6,
|
|
47
|
+
NotFoundError: () => NotFoundError5,
|
|
48
|
+
Permission: () => exports_permission2,
|
|
49
49
|
Reply: () => Reply2,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
51
|
Request: () => Request2,
|
|
52
|
-
Rule: () =>
|
|
52
|
+
Rule: () => Rule3,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service54,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node57
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
|
-
import { Rule as
|
|
64
|
-
import { Event as
|
|
63
|
+
import { Rule as Rule3, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
+
import { Event as Event12 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
|
-
var
|
|
67
|
+
var ID6 = Permission.ID;
|
|
68
68
|
var Source5 = Permission.Source;
|
|
69
69
|
var RequestFields = {
|
|
70
70
|
sessionID: Permission.Request.fields.sessionID,
|
|
@@ -77,17 +77,17 @@ var RequestFields = {
|
|
|
77
77
|
var Request2 = Permission.Request;
|
|
78
78
|
var Reply2 = Permission.Reply;
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
|
-
id:
|
|
80
|
+
id: ID6.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
82
|
agent: ID9.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
|
-
requestID:
|
|
85
|
+
requestID: ID6,
|
|
86
86
|
reply: Reply2,
|
|
87
87
|
message: Schema.String.pipe(Schema.optional)
|
|
88
88
|
}).annotate({ identifier: "Permission.ReplyInput" });
|
|
89
89
|
var AskResult2 = Schema.Struct({
|
|
90
|
-
id:
|
|
90
|
+
id: ID6,
|
|
91
91
|
effect: Permission.Effect
|
|
92
92
|
}).annotate({ identifier: "Permission.AskResult" });
|
|
93
93
|
|
|
@@ -110,8 +110,8 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
114
|
-
requestID:
|
|
113
|
+
class NotFoundError5 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
|
+
requestID: ID6
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
117
117
|
function evaluate2(action, resource, ...rulesets) {
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service54 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
131
|
-
const bus = yield*
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
130
|
+
var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
131
|
+
const bus = yield* Service79;
|
|
132
|
+
const location = yield* Service74;
|
|
133
|
+
const agents = yield* Service57;
|
|
134
|
+
const sessions = yield* Service55;
|
|
135
|
+
const saved = yield* Service56;
|
|
136
|
+
const hooks = yield* Service83;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
156
156
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
157
157
|
const session = yield* sessions.get(sessionID);
|
|
158
158
|
if (!session)
|
|
159
|
-
return yield* new
|
|
159
|
+
return yield* new NotFoundError6({ sessionID });
|
|
160
160
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
161
161
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
162
162
|
});
|
|
@@ -186,7 +186,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
function request(input, message) {
|
|
188
188
|
return {
|
|
189
|
-
id: input.id ??
|
|
189
|
+
id: input.id ?? ID6.create(),
|
|
190
190
|
sessionID: input.sessionID,
|
|
191
191
|
action: input.action,
|
|
192
192
|
resources: input.resources,
|
|
@@ -211,7 +211,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
211
211
|
}));
|
|
212
212
|
const ask = Effect.fn("Permission.ask")(function* (input) {
|
|
213
213
|
if (closed)
|
|
214
|
-
return { id: input.id ??
|
|
214
|
+
return { id: input.id ?? ID6.create(), effect: "deny" };
|
|
215
215
|
const result = yield* evaluateInput(input);
|
|
216
216
|
const value = request(input, result.message);
|
|
217
217
|
if (result.effect === "ask")
|
|
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
242
242
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
243
243
|
const existing = pending.get(input.requestID);
|
|
244
244
|
if (!existing)
|
|
245
|
-
return yield* new
|
|
245
|
+
return yield* new NotFoundError5({ requestID: input.requestID });
|
|
246
246
|
yield* bus.publish(Permission.Event.Replied, {
|
|
247
247
|
sessionID: existing.request.sessionID,
|
|
248
248
|
requestID: existing.request.id,
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
297
297
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
298
298
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service54.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node57 = makeLocationNode({
|
|
303
|
+
service: Service54,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [
|
|
305
|
+
deps: [node83, node78, node60, node58, node59, node87]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect,
|
|
308
|
+
export { PermissionEffect, ID6, Source5, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError5, evaluate2, merge2, Service54, node57, exports_permission2, Rule3, Ruleset2, Event12 };
|