@opencode/core 0.0.0-dev-21225 → 0.0.0-dev-21233
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{location-lifecycle-1r4x6jaa.js → skill-00awx1tb.js} +93 -93
- package/dist/chunks/{location-lifecycle-wh8kvkph.js → skill-00qrbj62.js} +1 -1
- package/dist/chunks/{location-lifecycle-d0mq8tsb.js → skill-06xsmntz.js} +2 -2
- package/dist/chunks/{location-lifecycle-m8zcef18.js → skill-0a54jmae.js} +9 -9
- package/dist/chunks/{location-lifecycle-7dqw4kz8.js → skill-0jwsre1p.js} +5 -5
- package/dist/chunks/{location-lifecycle-cd1hftv2.js → skill-0mshdkct.js} +33 -33
- package/dist/chunks/{location-lifecycle-c9936egs.js → skill-0qer0j0n.js} +10 -10
- package/dist/chunks/{location-lifecycle-g751vwq2.js → skill-0tb1pehm.js} +33 -33
- package/dist/chunks/{location-lifecycle-0vbcp93d.js → skill-0vbcp93d.js} +2 -2
- package/dist/chunks/{location-lifecycle-rw7tcjq0.js → skill-0w1q6v6s.js} +15 -15
- package/dist/chunks/{location-lifecycle-zkbpdh80.js → skill-0w5ft33m.js} +17 -17
- package/dist/chunks/{location-lifecycle-tym65pn8.js → skill-167gessz.js} +18 -18
- package/dist/chunks/{location-lifecycle-1kxs112r.js → skill-1a8spp1r.js} +24 -24
- package/dist/chunks/{location-lifecycle-mqj6hke2.js → skill-1dcff6nc.js} +5 -5
- package/dist/chunks/{location-lifecycle-c9mdeg46.js → skill-1e0fage9.js} +1 -1
- package/dist/chunks/{location-lifecycle-bzeyqsqd.js → skill-1ep4rre3.js} +4 -4
- package/dist/chunks/{location-lifecycle-dda9ms3f.js → skill-1j2x33v7.js} +18 -18
- package/dist/chunks/{location-lifecycle-7p1f4xp8.js → skill-1vnwec3s.js} +15 -15
- package/dist/chunks/{location-lifecycle-9z1tgkt7.js → skill-1wy3a1da.js} +8 -8
- package/dist/chunks/{location-lifecycle-6984ve19.js → skill-1yf4km17.js} +5 -5
- package/dist/chunks/{location-lifecycle-dnywr8gb.js → skill-24s8e1ye.js} +19 -19
- package/dist/chunks/{location-lifecycle-zq2fbahv.js → skill-24ythb25.js} +6 -6
- package/dist/chunks/{location-lifecycle-kc0px9k5.js → skill-2dvjh35y.js} +27 -27
- package/dist/chunks/{location-lifecycle-jq1m8ht5.js → skill-2fkbhf5s.js} +29 -29
- package/dist/chunks/{location-lifecycle-bdtjpmhe.js → skill-2ge34d2j.js} +11 -11
- package/dist/chunks/{location-lifecycle-pnsjedwv.js → skill-2hn0k533.js} +5 -5
- package/dist/chunks/{location-lifecycle-y6mhz57t.js → skill-2k71kv7p.js} +4 -4
- package/dist/chunks/{location-lifecycle-js93qr4h.js → skill-373db230.js} +16 -16
- package/dist/chunks/{location-lifecycle-7j2qha59.js → skill-3cwb9jzf.js} +8 -8
- package/dist/chunks/{location-lifecycle-3fc6dm20.js → skill-3fc6dm20.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hepkmqq.js → skill-3hepkmqq.js} +1 -1
- package/dist/chunks/{location-lifecycle-3hwn7j4h.js → skill-3hwn7j4h.js} +2 -2
- package/dist/chunks/{location-lifecycle-s0rhbd2j.js → skill-3j1wy11z.js} +26 -26
- package/dist/chunks/{location-lifecycle-3smtnn6g.js → skill-3smtnn6g.js} +1 -1
- package/dist/chunks/{location-lifecycle-3tvqynh2.js → skill-3tvqynh2.js} +1 -1
- package/dist/chunks/{location-lifecycle-3zsf4n22.js → skill-3zsf4n22.js} +1 -1
- package/dist/chunks/{location-lifecycle-w8edt1q4.js → skill-407q6sa9.js} +51 -51
- package/dist/chunks/{location-lifecycle-k0a3z2qz.js → skill-44ak30pa.js} +4 -4
- package/dist/chunks/{location-lifecycle-6ebfbtkv.js → skill-4e4ttbd6.js} +4 -4
- package/dist/chunks/{location-lifecycle-d347t65w.js → skill-4gycktp3.js} +13 -13
- package/dist/chunks/{location-lifecycle-zsr4wwhv.js → skill-4j4tgtq5.js} +4 -4
- package/dist/chunks/{location-lifecycle-v8cmy866.js → skill-4rqs6yce.js} +8 -8
- package/dist/chunks/{location-lifecycle-p27rdnkk.js → skill-4ysfff1b.js} +31 -31
- package/dist/chunks/{location-lifecycle-ba86n9wp.js → skill-51fhzrhh.js} +21 -21
- package/dist/chunks/{location-lifecycle-54ma36ye.js → skill-54ma36ye.js} +1 -1
- package/dist/chunks/{location-lifecycle-a7k07a0r.js → skill-5a1a4xxz.js} +29 -29
- package/dist/chunks/{location-lifecycle-4pm2zvx4.js → skill-5cazt80r.js} +39 -39
- package/dist/chunks/{location-lifecycle-7v8jrtq9.js → skill-5hckghy7.js} +24 -24
- package/dist/chunks/{location-lifecycle-5m9w47nd.js → skill-5m9w47nd.js} +1 -1
- package/dist/chunks/{location-lifecycle-jqhmcmeg.js → skill-5n5c97r3.js} +9 -9
- package/dist/chunks/{location-lifecycle-tmtp1pcb.js → skill-5n8ca005.js} +24 -24
- package/dist/chunks/{location-lifecycle-hqck28wd.js → skill-5s0bhjqk.js} +15 -15
- package/dist/chunks/{location-lifecycle-vckptexg.js → skill-63kqh4pp.js} +15 -15
- package/dist/chunks/{location-lifecycle-6827pfxn.js → skill-6827pfxn.js} +1 -1
- package/dist/chunks/{location-lifecycle-g4yc7aag.js → skill-6fq7r47e.js} +5 -5
- package/dist/chunks/{location-lifecycle-2f2t2pv3.js → skill-6x6512f8.js} +14 -14
- package/dist/chunks/{location-lifecycle-6xb47vfp.js → skill-6xb47vfp.js} +1 -1
- package/dist/chunks/{location-lifecycle-8m024czr.js → skill-711r5px4.js} +24 -24
- package/dist/chunks/{location-lifecycle-wxeknpxm.js → skill-721538d5.js} +11 -11
- package/dist/chunks/{location-lifecycle-fk55swpw.js → skill-73wdtct1.js} +4 -4
- package/dist/chunks/{location-lifecycle-2zsw6cww.js → skill-74ntyh7j.js} +32 -32
- package/dist/chunks/{location-lifecycle-775gj3j1.js → skill-775gj3j1.js} +2 -2
- package/dist/chunks/{location-lifecycle-7bmhse3q.js → skill-7bmhse3q.js} +1 -1
- package/dist/chunks/{location-lifecycle-8sze2n9a.js → skill-7fkffz83.js} +8 -8
- package/dist/chunks/{location-lifecycle-bbt6kwxg.js → skill-7y6g135c.js} +23 -23
- package/dist/chunks/{location-lifecycle-84txncab.js → skill-84txncab.js} +1 -1
- package/dist/chunks/{location-lifecycle-tcezcvh9.js → skill-89znhe33.js} +4 -4
- package/dist/chunks/{location-lifecycle-g4az1zet.js → skill-8hk5zr5e.js} +32 -32
- package/dist/chunks/{location-lifecycle-jbzpnqck.js → skill-8hpz99e3.js} +20 -20
- package/dist/chunks/{location-lifecycle-8m6m0r52.js → skill-8m6m0r52.js} +1 -1
- package/dist/chunks/{location-lifecycle-v6ghzfeb.js → skill-8ryk0bb9.js} +5 -5
- package/dist/chunks/{location-lifecycle-1wjncy0c.js → skill-92g1m7we.js} +20 -20
- package/dist/chunks/{location-lifecycle-vsfget0z.js → skill-942ape3s.js} +16 -16
- package/dist/chunks/{location-lifecycle-pa2zdcgf.js → skill-95gd5fnz.js} +8 -8
- package/dist/chunks/skill-961073wv.js +26 -0
- package/dist/chunks/{location-lifecycle-sz15zhhw.js → skill-97aeaand.js} +4 -4
- package/dist/chunks/{location-lifecycle-1afpt04b.js → skill-9cw92fkg.js} +52 -52
- package/dist/chunks/{location-lifecycle-ybrxzqz1.js → skill-9g88hcsg.js} +53 -53
- package/dist/chunks/{location-lifecycle-q0nrsbdj.js → skill-9hg616bm.js} +10 -10
- package/dist/chunks/{location-lifecycle-gj71zhbs.js → skill-9hwaqfsw.js} +5 -5
- package/dist/chunks/{location-lifecycle-bvfjyde5.js → skill-9skj9fwe.js} +32 -32
- package/dist/chunks/{location-lifecycle-wvpm2d85.js → skill-9sspp2kc.js} +21 -21
- package/dist/chunks/{location-lifecycle-d8pkrf5h.js → skill-9tn557k3.js} +3 -3
- package/dist/chunks/{location-lifecycle-89qjhs6t.js → skill-9xnh36ct.js} +29 -29
- package/dist/chunks/{location-lifecycle-vh8ckttc.js → skill-a0wcqrzt.js} +33 -33
- package/dist/chunks/{location-lifecycle-9wxyxwvg.js → skill-a61mcpgr.js} +28 -28
- package/dist/chunks/{location-lifecycle-q9arkc6z.js → skill-acy09t17.js} +1 -1
- package/dist/chunks/{location-lifecycle-8gxqpgph.js → skill-afdssyjb.js} +4 -4
- package/dist/chunks/{location-lifecycle-hg5ffjfb.js → skill-afm93r8m.js} +5 -5
- package/dist/chunks/{location-lifecycle-gr1zjdtk.js → skill-aj2p83by.js} +19 -19
- package/dist/chunks/{location-lifecycle-qs910jka.js → skill-axbdcqfv.js} +11 -11
- package/dist/chunks/{location-lifecycle-rsnhe065.js → skill-azhh6n6p.js} +34 -34
- package/dist/chunks/{location-lifecycle-6we61vct.js → skill-bdjmc03q.js} +22 -22
- package/dist/chunks/{location-lifecycle-wjr9rjd7.js → skill-bjx1sjef.js} +6 -6
- package/dist/chunks/{location-lifecycle-607px8n0.js → skill-bn0s77k4.js} +12 -12
- package/dist/chunks/{location-lifecycle-st816g4q.js → skill-bs5qht20.js} +11 -11
- package/dist/chunks/{location-lifecycle-54qjajwn.js → skill-bykqqmg1.js} +24 -24
- package/dist/chunks/{location-lifecycle-xry37qyv.js → skill-bzjf68bt.js} +32 -32
- package/dist/chunks/{location-lifecycle-es1vcfrp.js → skill-c1fqxshp.js} +3 -3
- package/dist/chunks/{location-lifecycle-781hgxz9.js → skill-c1s4czd4.js} +26 -26
- package/dist/chunks/{location-lifecycle-15btyxjj.js → skill-cbghv35z.js} +14 -14
- package/dist/chunks/{location-lifecycle-n30fntma.js → skill-cddgxm6q.js} +46 -46
- package/dist/chunks/{location-lifecycle-2ryng5r3.js → skill-ch6w3xdz.js} +9 -9
- package/dist/chunks/{location-lifecycle-c0zg8c6f.js → skill-cwjaek22.js} +17 -17
- package/dist/chunks/{location-lifecycle-d1a28jh7.js → skill-d1a28jh7.js} +2 -2
- package/dist/chunks/{location-lifecycle-cj14cmsv.js → skill-d2kvkr0c.js} +13 -13
- package/dist/chunks/{location-lifecycle-mjj2pff8.js → skill-d48v5xqa.js} +9 -9
- package/dist/chunks/{location-lifecycle-s4k5tj5e.js → skill-d7q7g158.js} +7 -7
- package/dist/chunks/{location-lifecycle-zv7t0c96.js → skill-db95amxg.js} +28 -28
- package/dist/chunks/{location-lifecycle-d86m1rj0.js → skill-dbwk15v0.js} +34 -34
- package/dist/chunks/{location-lifecycle-5582nyc3.js → skill-ddzfx2sp.js} +4 -4
- package/dist/chunks/{location-lifecycle-etjx4h4r.js → skill-dg66qqba.js} +17 -17
- package/dist/chunks/{location-lifecycle-af13pbh4.js → skill-dgmheq7x.js} +22 -22
- package/dist/chunks/{location-lifecycle-xj1aydcy.js → skill-dhb2hta4.js} +5 -5
- package/dist/chunks/{location-lifecycle-zhdsm0ct.js → skill-dr27kx24.js} +32 -32
- package/dist/chunks/{location-lifecycle-57myy5jh.js → skill-dssbfrwz.js} +5 -5
- package/dist/chunks/{location-lifecycle-dse8h8s6.js → skill-dv4gwh01.js} +48 -48
- package/dist/chunks/{location-lifecycle-6fmd39tn.js → skill-dzewxd6e.js} +50 -50
- package/dist/chunks/{location-lifecycle-59ez5ny7.js → skill-e4qjwypm.js} +12 -12
- package/dist/chunks/{location-lifecycle-c7zza6wf.js → skill-e80seqcp.js} +3 -3
- package/dist/chunks/{location-lifecycle-rhjbct0v.js → skill-eaj1djv9.js} +8 -8
- package/dist/chunks/{location-lifecycle-4kzt1szv.js → skill-ebwpp9d0.js} +18 -18
- package/dist/chunks/{location-lifecycle-eej6y6fw.js → skill-eej6y6fw.js} +2 -2
- package/dist/chunks/{location-lifecycle-ef5x83kb.js → skill-ef5x83kb.js} +1 -1
- package/dist/chunks/{location-lifecycle-260ykpsb.js → skill-ek42zh69.js} +27 -27
- package/dist/chunks/{location-lifecycle-aq7td031.js → skill-eyvd4r56.js} +19 -19
- package/dist/chunks/{location-lifecycle-d2fh7std.js → skill-f3rjyvb9.js} +35 -35
- package/dist/chunks/{location-lifecycle-30wpx0dj.js → skill-fcdhtk1s.js} +22 -22
- package/dist/chunks/{location-lifecycle-fcy631f0.js → skill-fcy631f0.js} +1 -1
- package/dist/chunks/{location-lifecycle-hwjyn0yt.js → skill-fdms3n6w.js} +9 -9
- package/dist/chunks/{location-lifecycle-tt8gc4fv.js → skill-fn9t717r.js} +6 -6
- package/dist/chunks/{location-lifecycle-5d607bsg.js → skill-ft3hqk2c.js} +9 -9
- package/dist/chunks/{location-lifecycle-hq3c8me3.js → skill-fxaymqdw.js} +4 -4
- package/dist/chunks/{location-lifecycle-fbr293qy.js → skill-g0zzgjed.js} +13 -13
- package/dist/chunks/{location-lifecycle-0396je17.js → skill-g46rkewk.js} +19 -19
- package/dist/chunks/{location-lifecycle-tbdgfpnd.js → skill-g9qy5730.js} +78 -78
- package/dist/chunks/{location-lifecycle-gh2e7mrf.js → skill-gb51gx5j.js} +1 -1
- package/dist/chunks/{location-lifecycle-gd4qta3r.js → skill-gd4qta3r.js} +1 -1
- package/dist/chunks/{location-lifecycle-addxnjmp.js → skill-gqtdsdt7.js} +4 -4
- package/dist/chunks/{location-lifecycle-h6vf3j39.js → skill-h6vf3j39.js} +1 -1
- package/dist/chunks/{location-lifecycle-54tegpm9.js → skill-hcms3ej7.js} +28 -28
- package/dist/chunks/{location-lifecycle-ce3hp9gv.js → skill-hcry4rxa.js} +11 -11
- package/dist/chunks/{location-lifecycle-pdq7q66p.js → skill-hdjck8j7.js} +37 -37
- package/dist/chunks/{location-lifecycle-hgz4x7wa.js → skill-hgz4x7wa.js} +1 -1
- package/dist/chunks/{location-lifecycle-7e65fbvj.js → skill-hh8xd2g7.js} +12 -12
- package/dist/chunks/{location-lifecycle-cf3kp6ja.js → skill-hjkky8wz.js} +4 -4
- package/dist/chunks/{location-lifecycle-5h69s2y5.js → skill-hp8bf08d.js} +11 -11
- package/dist/chunks/{location-lifecycle-sfha69e5.js → skill-hpagwa2c.js} +16 -16
- package/dist/chunks/{location-lifecycle-dxskvh44.js → skill-hpwbz69d.js} +19 -19
- package/dist/chunks/{location-lifecycle-1mvt4qzw.js → skill-hszepbzs.js} +11 -11
- package/dist/chunks/{location-lifecycle-kkmn6qry.js → skill-ht9z38af.js} +7 -7
- package/dist/chunks/{location-lifecycle-p1gbbhxc.js → skill-hv0kjr3z.js} +20 -20
- package/dist/chunks/{location-lifecycle-m2b6v9cc.js → skill-hxbam2w6.js} +11 -11
- package/dist/chunks/{location-lifecycle-j09zfasm.js → skill-j09zfasm.js} +3 -3
- package/dist/chunks/{location-lifecycle-x034mn82.js → skill-j17rh5na.js} +14 -14
- package/dist/chunks/{location-lifecycle-89k3ytm0.js → skill-j2ztd3ax.js} +25 -25
- package/dist/chunks/{location-lifecycle-vq9aavz4.js → skill-j58npq09.js} +11 -11
- package/dist/chunks/{location-lifecycle-kr1vnkd9.js → skill-j5xh64qr.js} +9 -9
- package/dist/chunks/{location-lifecycle-ry7sv2sp.js → skill-j6ktnsbj.js} +12 -12
- package/dist/chunks/{location-lifecycle-kkck9t7z.js → skill-j7qxhh0w.js} +11 -11
- package/dist/chunks/{location-lifecycle-j4zgmpc2.js → skill-jkh8wmvq.js} +14 -14
- package/dist/chunks/skill-jpqp0310.js +257 -0
- package/dist/chunks/{location-lifecycle-f8emv4xh.js → skill-jq9wm7kj.js} +2 -2
- package/dist/chunks/{location-lifecycle-e1gt835v.js → skill-jr0bwz5h.js} +18 -18
- package/dist/chunks/{location-lifecycle-75aqn353.js → skill-jvhzr3z9.js} +45 -45
- package/dist/chunks/{location-lifecycle-jf845d62.js → skill-jybvdwhe.js} +14 -14
- package/dist/chunks/{location-lifecycle-6f9fh71a.js → skill-k1ep3vpw.js} +8 -8
- package/dist/chunks/{location-lifecycle-35xn2gh1.js → skill-k41pdhxj.js} +23 -23
- package/dist/chunks/{location-lifecycle-d216944b.js → skill-k76krqzs.js} +7 -7
- package/dist/chunks/{location-lifecycle-cv8r2mmt.js → skill-k7v4hzhw.js} +14 -14
- package/dist/chunks/{location-lifecycle-m6gwzbg0.js → skill-k8zn6dzp.js} +20 -20
- package/dist/chunks/{location-lifecycle-d06zwh9p.js → skill-kbzdcc1z.js} +35 -35
- package/dist/chunks/{location-lifecycle-kwb1v3vj.js → skill-kwb1v3vj.js} +1 -1
- package/dist/chunks/{location-lifecycle-rk5w8j3b.js → skill-m28477hs.js} +20 -20
- package/dist/chunks/{location-lifecycle-c8xbbqnc.js → skill-m70jk2v7.js} +24 -24
- package/dist/chunks/{location-lifecycle-m0ph700x.js → skill-m7c2pgrj.js} +42 -42
- package/dist/chunks/{location-lifecycle-qe16ck7w.js → skill-m8tc3etm.js} +47 -47
- package/dist/chunks/{location-lifecycle-m9w0rfyh.js → skill-m9w0rfyh.js} +1 -1
- package/dist/chunks/{location-lifecycle-ctqzsr68.js → skill-ma5jzer8.js} +42 -42
- package/dist/chunks/{location-lifecycle-x4mwvgdt.js → skill-ma7sk27v.js} +28 -28
- package/dist/chunks/{location-lifecycle-maspj1v3.js → skill-maspj1v3.js} +1 -1
- package/dist/chunks/{location-lifecycle-ft2jx7b3.js → skill-mfgpt03n.js} +5 -5
- package/dist/chunks/{location-lifecycle-vx3jgdek.js → skill-mtpeagzc.js} +3 -3
- package/dist/chunks/{location-lifecycle-e0fmkkrk.js → skill-mtvcx4kk.js} +11 -11
- package/dist/chunks/{location-lifecycle-afghd5ye.js → skill-mz4wv8nb.js} +13 -13
- package/dist/chunks/{location-lifecycle-r5q76s5y.js → skill-n3wcrd3g.js} +7 -7
- package/dist/chunks/{location-lifecycle-1ghf8zs3.js → skill-n4d3d4w3.js} +11 -11
- package/dist/chunks/{location-lifecycle-npw39rc8.js → skill-n61013np.js} +8 -8
- package/dist/chunks/{location-lifecycle-078jfm9t.js → skill-n8g9f5aw.js} +8 -8
- package/dist/chunks/{location-lifecycle-4cg1k04t.js → skill-n9y44nm0.js} +12 -12
- package/dist/chunks/{location-lifecycle-55p8xrkh.js → skill-nd4tfyg0.js} +9 -9
- package/dist/chunks/{location-lifecycle-0dy8m3zv.js → skill-nm2sbdyw.js} +6 -6
- package/dist/chunks/{location-lifecycle-72ejs4yy.js → skill-p2w0np6h.js} +11 -11
- package/dist/chunks/{location-lifecycle-czfptnv9.js → skill-p37cw4rj.js} +8 -8
- package/dist/chunks/{location-lifecycle-wggznzgf.js → skill-p6zwjtwx.js} +3 -3
- package/dist/chunks/{location-lifecycle-cq56qfwj.js → skill-pc6svy01.js} +10 -10
- package/dist/chunks/{location-lifecycle-4az1a8cs.js → skill-pcf1k9th.js} +6 -6
- package/dist/chunks/{location-lifecycle-s8wsn1ke.js → skill-pea6wjc4.js} +92 -92
- package/dist/chunks/{location-lifecycle-pjvnvgmy.js → skill-pjvnvgmy.js} +1 -1
- package/dist/chunks/{location-lifecycle-pknna89w.js → skill-pknna89w.js} +1 -1
- package/dist/chunks/{location-lifecycle-63dwnky5.js → skill-ps2yhsm3.js} +28 -28
- package/dist/chunks/{location-lifecycle-jrwmj463.js → skill-ptxp58at.js} +13 -13
- package/dist/chunks/{location-lifecycle-ff1xkr9y.js → skill-q6ec7ghb.js} +16 -16
- package/dist/chunks/{location-lifecycle-xq78qv1x.js → skill-q6hmgxfy.js} +32 -32
- package/dist/chunks/{location-lifecycle-qnc92qwc.js → skill-qnc92qwc.js} +1 -1
- package/dist/chunks/{location-lifecycle-xfkkasph.js → skill-qqeeq2t9.js} +7 -7
- package/dist/chunks/{location-lifecycle-qsdy395h.js → skill-qsdy395h.js} +1 -1
- package/dist/chunks/{location-lifecycle-2re0xxhj.js → skill-qx787nm7.js} +15 -15
- package/dist/chunks/{location-lifecycle-dpxmnsbq.js → skill-qygncz6a.js} +35 -35
- package/dist/chunks/{location-lifecycle-4h2r7ygm.js → skill-r3ydk6z5.js} +6 -6
- package/dist/chunks/{location-lifecycle-rdw6cm16.js → skill-rdw6cm16.js} +1 -1
- package/dist/chunks/{location-lifecycle-tkb22qbm.js → skill-rert0e01.js} +2 -2
- package/dist/chunks/{location-lifecycle-yp2x3t23.js → skill-rhraev7y.js} +4 -4
- package/dist/chunks/{location-lifecycle-c41wscbt.js → skill-rj3eygr5.js} +2 -2
- package/dist/chunks/{location-lifecycle-jwe28rce.js → skill-rmpja4kz.js} +22 -22
- package/dist/chunks/{location-lifecycle-wjjn4kzj.js → skill-rmwddm56.js} +20 -20
- package/dist/chunks/{location-lifecycle-q12p87yz.js → skill-ryvyvv32.js} +32 -32
- package/dist/chunks/{location-lifecycle-c8ax2afj.js → skill-sa8ekw3f.js} +2 -2
- package/dist/chunks/{location-lifecycle-695sqb9h.js → skill-sd35z9tw.js} +5 -5
- package/dist/chunks/{location-lifecycle-rfzpkp7g.js → skill-sh4t0w1q.js} +3 -3
- package/dist/chunks/{location-lifecycle-tx68p9ax.js → skill-smjam21t.js} +24 -24
- package/dist/chunks/{location-lifecycle-8k6988sv.js → skill-sv1af74h.js} +20 -20
- package/dist/chunks/{location-lifecycle-ggcvx0ry.js → skill-swdxt3e8.js} +10 -10
- package/dist/chunks/{location-lifecycle-syv4x271.js → skill-syv4x271.js} +1 -1
- package/dist/chunks/{location-lifecycle-se6v5b7p.js → skill-t3mrtpce.js} +13 -13
- package/dist/chunks/{location-lifecycle-tazgh4e4.js → skill-tazgh4e4.js} +1 -1
- package/dist/chunks/{location-lifecycle-tnr8qtc8.js → skill-tdepd04k.js} +14 -14
- package/dist/chunks/{location-lifecycle-tdstcens.js → skill-tdstcens.js} +1 -1
- package/dist/chunks/{location-lifecycle-xcd0eash.js → skill-tegs1ycp.js} +6 -6
- package/dist/chunks/{location-lifecycle-ttvbz5a0.js → skill-tk14ecdn.js} +40 -40
- package/dist/chunks/{location-lifecycle-tm0kqsz3.js → skill-tm0kqsz3.js} +1 -1
- package/dist/chunks/{location-lifecycle-m4f5eap6.js → skill-tmjmhw6b.js} +9 -9
- package/dist/chunks/{location-lifecycle-11tneqnq.js → skill-tswswthy.js} +54 -54
- package/dist/chunks/{location-lifecycle-7s451enq.js → skill-tx9w5tca.js} +8 -8
- package/dist/chunks/{location-lifecycle-tyytaxap.js → skill-tyytaxap.js} +1 -1
- package/dist/chunks/{location-lifecycle-v210v162.js → skill-v210v162.js} +2 -2
- package/dist/chunks/{location-lifecycle-v5db55nh.js → skill-v2bjyqkg.js} +6 -6
- package/dist/chunks/{location-lifecycle-v7p4zvkq.js → skill-v7p4zvkq.js} +2 -2
- package/dist/chunks/{location-lifecycle-tqzajddm.js → skill-vb3m6eyp.js} +25 -25
- package/dist/chunks/{location-lifecycle-emzsebxx.js → skill-vbek984v.js} +8 -8
- package/dist/chunks/{location-lifecycle-h9qe49vr.js → skill-vbhp0dye.js} +45 -45
- package/dist/chunks/{location-lifecycle-veqvce7d.js → skill-veqvce7d.js} +1 -1
- package/dist/chunks/skill-vnkjks7b.js +18 -0
- package/dist/chunks/{location-lifecycle-r0yrfec0.js → skill-vnwacm6t.js} +1 -1
- package/dist/chunks/{location-lifecycle-sd0j03yg.js → skill-vr9br9b3.js} +37 -37
- package/dist/chunks/{location-lifecycle-v4qk44j4.js → skill-vscs4key.js} +9 -9
- package/dist/chunks/{location-lifecycle-fycz597j.js → skill-vwwhsbvp.js} +13 -13
- package/dist/chunks/{location-lifecycle-vzs5sf6e.js → skill-vzs5sf6e.js} +1 -1
- package/dist/chunks/{location-lifecycle-w3wsvvr9.js → skill-w3wsvvr9.js} +1 -1
- package/dist/chunks/{location-lifecycle-akwe29sb.js → skill-w57ms8mt.js} +17 -17
- package/dist/chunks/{location-lifecycle-wd87259q.js → skill-wd87259q.js} +1 -1
- package/dist/chunks/{location-lifecycle-y3kk8hnd.js → skill-wdjfy1sg.js} +4 -4
- package/dist/chunks/{location-lifecycle-02yqz1pf.js → skill-wf494znr.js} +13 -13
- package/dist/chunks/{location-lifecycle-m95e7rsz.js → skill-wknnvmh5.js} +15 -15
- package/dist/chunks/{location-lifecycle-1z7ambyv.js → skill-wwq19wsf.js} +5 -5
- package/dist/chunks/{location-lifecycle-rtm93tmp.js → skill-wzwtd4q2.js} +8 -8
- package/dist/chunks/{location-lifecycle-47g78yad.js → skill-x181wg97.js} +5 -5
- package/dist/chunks/{location-lifecycle-8wcztz1y.js → skill-x4s1hxy4.js} +22 -22
- package/dist/chunks/{location-lifecycle-edfw93ys.js → skill-x96ngv9r.js} +9 -9
- package/dist/chunks/{location-lifecycle-z8a72chb.js → skill-xa8dcf8m.js} +11 -11
- package/dist/chunks/{location-lifecycle-he27pt63.js → skill-xt4njr3s.js} +1 -1
- package/dist/chunks/{location-lifecycle-y1fvbwt7.js → skill-y1fvbwt7.js} +1 -1
- package/dist/chunks/{location-lifecycle-dpkg50ah.js → skill-y71avatq.js} +4 -4
- package/dist/chunks/{location-lifecycle-k1jx8dbv.js → skill-ybq6hy8a.js} +20 -20
- package/dist/chunks/{location-lifecycle-2b0aj9p1.js → skill-ybzr8t0c.js} +19 -19
- package/dist/chunks/skill-yc97vnhp.js +513 -0
- package/dist/chunks/{location-lifecycle-xkg3wtg9.js → skill-ysr3h47w.js} +55 -55
- package/dist/chunks/{location-lifecycle-xbddaxx6.js → skill-ytakhgxz.js} +34 -34
- package/dist/chunks/{location-lifecycle-r6eqserw.js → skill-ytw5y04d.js} +11 -11
- package/dist/chunks/{location-lifecycle-z0bkrqjs.js → skill-z0bkrqjs.js} +1 -1
- package/dist/chunks/{location-lifecycle-z6js6zeq.js → skill-z42dm00v.js} +15 -15
- package/dist/chunks/{location-lifecycle-1azvf0ek.js → skill-z47sjnwy.js} +191 -191
- package/dist/chunks/{location-lifecycle-nnj5ddfb.js → skill-z9dnddtr.js} +33 -33
- package/dist/chunks/{location-lifecycle-fnk67yax.js → skill-zn5qbatk.js} +33 -33
- package/dist/chunks/{location-lifecycle-y8z6zp49.js → skill-zn9jy13z.js} +6 -6
- package/dist/chunks/{location-lifecycle-xqz3gp2k.js → skill-znpdtr75.js} +29 -29
- package/dist/chunks/{location-lifecycle-zr2ceqn5.js → skill-zr2ceqn5.js} +1 -1
- package/dist/chunks/{location-lifecycle-3fsmcja4.js → skill-ztkm05qe.js} +21 -21
- package/dist/chunks/{location-lifecycle-zxq2ej10.js → skill-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +208 -208
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +81 -81
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +367 -367
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +76 -76
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +221 -221
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +106 -106
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +106 -106
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +357 -357
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +88 -88
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +3 -3
- package/dist/persistent-pty/binary.node.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +212 -212
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +331 -331
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +123 -123
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +123 -123
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +123 -123
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +348 -348
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +223 -223
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +82 -82
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +136 -136
- package/dist/session/context.js +155 -155
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +218 -218
- package/dist/session/execution.js +129 -129
- package/dist/session/generate.js +157 -157
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +90 -90
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +10 -10
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +225 -225
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +206 -206
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +159 -159
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +214 -214
- package/dist/session/usage.js +1 -1
- package/dist/session.js +212 -212
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +95 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +211 -211
- package/dist/tool/plugin/skill.js +107 -107
- package/dist/tool/plugin/subagent.js +211 -211
- package/dist/tool/plugin/webfetch.js +110 -110
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/persistent-pty/binary.bun.d.ts +1 -1
- package/dist/types/persistent-pty/binary.node.d.ts +1 -1
- package/dist/types/session/instruction-state.d.ts +6 -2
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +9 -9
- package/dist/chunks/location-lifecycle-ctefx7dc.js +0 -18
- package/dist/chunks/location-lifecycle-jvhcgpqb.js +0 -26
- package/dist/chunks/location-lifecycle-khbb1r3r.js +0 -513
- package/dist/chunks/location-lifecycle-p3r2p6x2.js +0 -257
- /package/dist/chunks/{location-lifecycle-0qkdqm5v.js → skill-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-0zkw76rk.js → skill-0zkw76rk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-17cy0kzp.js → skill-17cy0kzp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1cnp2v09.js → skill-1cnp2v09.js} +0 -0
- /package/dist/chunks/{location-lifecycle-1kg9ymc8.js → skill-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-24dcb14g.js → skill-24dcb14g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2710q6r3.js → skill-2710q6r3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2axfhc9x.js → skill-2axfhc9x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2bv980vf.js → skill-2bv980vf.js} +0 -0
- /package/dist/chunks/{location-lifecycle-2c3vjs8z.js → skill-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-359p4xyc.js → skill-359p4xyc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3asan66x.js → skill-3asan66x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3t0ybcrp.js → skill-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3v8g72cx.js → skill-3v8g72cx.js} +0 -0
- /package/dist/chunks/{location-lifecycle-3wcehsnq.js → skill-3wcehsnq.js} +0 -0
- /package/dist/chunks/{location-lifecycle-43n2bw4t.js → skill-43n2bw4t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4knz6hnm.js → skill-4knz6hnm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4vcrnpx2.js → skill-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-4y7fprxs.js → skill-4y7fprxs.js} +0 -0
- /package/dist/chunks/{location-lifecycle-53557ph1.js → skill-53557ph1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-550bvhaj.js → skill-550bvhaj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-5qd3pb7m.js → skill-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6prwharc.js → skill-6prwharc.js} +0 -0
- /package/dist/chunks/{location-lifecycle-6q2bdcd1.js → skill-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7akdwqpd.js → skill-7akdwqpd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-7m9af43g.js → skill-7m9af43g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-822emrt2.js → skill-822emrt2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-84wd9syh.js → skill-84wd9syh.js} +0 -0
- /package/dist/chunks/{location-lifecycle-88xbtdfr.js → skill-88xbtdfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8n3pysct.js → skill-8n3pysct.js} +0 -0
- /package/dist/chunks/{location-lifecycle-8wj87zfr.js → skill-8wj87zfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9a4afbnw.js → skill-9a4afbnw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-9rqn6x4v.js → skill-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{location-lifecycle-a6k6eb26.js → skill-a6k6eb26.js} +0 -0
- /package/dist/chunks/{location-lifecycle-af5trqkr.js → skill-af5trqkr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-afrmfg78.js → skill-afrmfg78.js} +0 -0
- /package/dist/chunks/{location-lifecycle-aqzs7mqg.js → skill-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{location-lifecycle-atq7p7m5.js → skill-atq7p7m5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bkyjaxrp.js → skill-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-bmr6ed5q.js → skill-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cf4snx6d.js → skill-cf4snx6d.js} +0 -0
- /package/dist/chunks/{location-lifecycle-cvy3z8tj.js → skill-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9fn303g.js → skill-d9fn303g.js} +0 -0
- /package/dist/chunks/{location-lifecycle-d9jj8t3e.js → skill-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dajrwvna.js → skill-dajrwvna.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dap0rakb.js → skill-dap0rakb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-df08tz66.js → skill-df08tz66.js} +0 -0
- /package/dist/chunks/{location-lifecycle-dy18nga0.js → skill-dy18nga0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e5kj55wp.js → skill-e5kj55wp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-e73j6tqm.js → skill-e73j6tqm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ec1grn59.js → skill-ec1grn59.js} +0 -0
- /package/dist/chunks/{location-lifecycle-eh3zwz77.js → skill-eh3zwz77.js} +0 -0
- /package/dist/chunks/{location-lifecycle-emrn6kk6.js → skill-emrn6kk6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f0mxakyp.js → skill-f0mxakyp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-f6n9ztr4.js → skill-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{location-lifecycle-faypxj3z.js → skill-faypxj3z.js} +0 -0
- /package/dist/chunks/{location-lifecycle-fd410y7t.js → skill-fd410y7t.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g4wezp1m.js → skill-g4wezp1m.js} +0 -0
- /package/dist/chunks/{location-lifecycle-g86h250q.js → skill-g86h250q.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gebd4c9n.js → skill-gebd4c9n.js} +0 -0
- /package/dist/chunks/{location-lifecycle-gftt206x.js → skill-gftt206x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hcxmzztb.js → skill-hcxmzztb.js} +0 -0
- /package/dist/chunks/{location-lifecycle-hk9envan.js → skill-hk9envan.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j2ntwpah.js → skill-j2ntwpah.js} +0 -0
- /package/dist/chunks/{location-lifecycle-j5zkgpj8.js → skill-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jjkms2e6.js → skill-jjkms2e6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jr7sbwjy.js → skill-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jwfs4k6c.js → skill-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jze0r7bz.js → skill-jze0r7bz.js} +0 -0
- /package/dist/chunks/{location-lifecycle-jzg6c2d5.js → skill-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{location-lifecycle-m18g726c.js → skill-m18g726c.js} +0 -0
- /package/dist/chunks/{location-lifecycle-mp448xyj.js → skill-mp448xyj.js} +0 -0
- /package/dist/chunks/{location-lifecycle-msx8hqn2.js → skill-msx8hqn2.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n05xt0ee.js → skill-n05xt0ee.js} +0 -0
- /package/dist/chunks/{location-lifecycle-n3j8tn72.js → skill-n3j8tn72.js} +0 -0
- /package/dist/chunks/{location-lifecycle-njntx4h6.js → skill-njntx4h6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-pkyv6v7h.js → skill-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-pyv0edze.js → skill-pyv0edze.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q3sfg36h.js → skill-q3sfg36h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-q74kybfr.js → skill-q74kybfr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qaymkmh1.js → skill-qaymkmh1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qb87gjwd.js → skill-qb87gjwd.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qfa1cgps.js → skill-qfa1cgps.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qg3g05ea.js → skill-qg3g05ea.js} +0 -0
- /package/dist/chunks/{location-lifecycle-qrg20bc0.js → skill-qrg20bc0.js} +0 -0
- /package/dist/chunks/{location-lifecycle-rcb2kzg1.js → skill-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{location-lifecycle-sdp7kfr6.js → skill-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ssg3fenm.js → skill-ssg3fenm.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ve7vex1e.js → skill-ve7vex1e.js} +0 -0
- /package/dist/chunks/{location-lifecycle-w803qqfp.js → skill-w803qqfp.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wc3fc9cn.js → skill-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wer8tq1h.js → skill-wer8tq1h.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wjj7prxr.js → skill-wjj7prxr.js} +0 -0
- /package/dist/chunks/{location-lifecycle-wtztk69x.js → skill-wtztk69x.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x0ckcb58.js → skill-x0ckcb58.js} +0 -0
- /package/dist/chunks/{location-lifecycle-x61499pn.js → skill-x61499pn.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y44na4kk.js → skill-y44na4kk.js} +0 -0
- /package/dist/chunks/{location-lifecycle-y8f7s663.js → skill-y8f7s663.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ygaqb7jw.js → skill-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{location-lifecycle-ym463w8f.js → skill-ym463w8f.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z5v4ffb3.js → skill-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{location-lifecycle-z9919s4g.js → skill-z9919s4g.js} +0 -0
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service85,
|
|
3
|
+
node89
|
|
4
|
+
} from "./skill-q6ec7ghb.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
Event15,
|
|
7
|
+
Service68,
|
|
8
|
+
node72
|
|
9
|
+
} from "./skill-kbzdcc1z.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service37,
|
|
12
|
+
node41
|
|
13
|
+
} from "./skill-dgmheq7x.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./skill-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service82,
|
|
19
|
+
node86
|
|
20
|
+
} from "./skill-hh8xd2g7.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./skill-kwb1v3vj.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./skill-jr0bwz5h.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
28
|
+
names3,
|
|
29
29
|
stripPreferenceMetadata2,
|
|
30
30
|
discover3
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./skill-pc6svy01.js";
|
|
32
32
|
import {
|
|
33
33
|
plan2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./skill-6827pfxn.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
36
|
+
Service49,
|
|
37
|
+
Event9,
|
|
38
|
+
node54
|
|
39
|
+
} from "./skill-ztkm05qe.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./skill-9rqn6x4v.js";
|
|
43
43
|
|
|
44
44
|
// src/config.ts
|
|
45
45
|
var exports_config = {};
|
|
46
46
|
__export(exports_config, {
|
|
47
47
|
Config: () => exports_config,
|
|
48
|
-
Options: () =>
|
|
49
|
-
Service: () =>
|
|
48
|
+
Options: () => Options5,
|
|
49
|
+
Service: () => Service36,
|
|
50
50
|
Test: () => Test2,
|
|
51
|
-
configured: () =>
|
|
51
|
+
configured: () => configured6,
|
|
52
52
|
latest: () => latest2,
|
|
53
|
-
layer: () =>
|
|
54
|
-
node: () =>
|
|
53
|
+
layer: () => layer18,
|
|
54
|
+
node: () => node40,
|
|
55
55
|
testLayer: () => testLayer2
|
|
56
56
|
});
|
|
57
57
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -67,7 +67,7 @@ import { ChildProcess } from "effect/process";
|
|
|
67
67
|
function latest2(entries, key) {
|
|
68
68
|
return entries.findLast((entry) => entry.type === "document" && entry.info[key] !== undefined)?.info[key];
|
|
69
69
|
}
|
|
70
|
-
var
|
|
70
|
+
var Options5 = Schema.Struct({
|
|
71
71
|
project: Schema.optional(Schema.Boolean),
|
|
72
72
|
global: Schema.optional(Schema.Boolean),
|
|
73
73
|
system: Schema.optional(Schema.Union([Schema.Boolean, Schema.String])),
|
|
@@ -76,7 +76,7 @@ var Options7 = Schema.Struct({
|
|
|
76
76
|
content: Schema.optional(Schema.String)
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service36 extends Context.Service()("@opencode/Config") {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -94,16 +94,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
94
94
|
setEntries: (next) => Ref.set(entries, next),
|
|
95
95
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
96
96
|
});
|
|
97
|
-
return Context.empty().pipe(Context.add(
|
|
97
|
+
return Context.empty().pipe(Context.add(Service36, service), Context.add(Test2, service));
|
|
98
98
|
}));
|
|
99
|
-
var
|
|
99
|
+
var layer18 = (options) => Layer.effect(Service36, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
|
-
const location = yield*
|
|
102
|
-
const watcher = yield*
|
|
103
|
-
const bus = yield*
|
|
104
|
-
const credentials = yield*
|
|
101
|
+
const location = yield* Service82;
|
|
102
|
+
const watcher = yield* Service37;
|
|
103
|
+
const bus = yield* Service85;
|
|
104
|
+
const credentials = yield* Service68;
|
|
105
105
|
const globalService = yield* Global.Service;
|
|
106
|
-
const wellknown = yield*
|
|
106
|
+
const wellknown = yield* Service49;
|
|
107
107
|
const processes = yield* AppProcess.Service;
|
|
108
108
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
109
109
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
@@ -186,7 +186,7 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
186
186
|
});
|
|
187
187
|
const loadDirectory = Effect.fnUntraced(function* (directory) {
|
|
188
188
|
return [
|
|
189
|
-
...yield* Effect.forEach(
|
|
189
|
+
...yield* Effect.forEach(names3, (file) => loadFile(path.join(directory, file))).pipe(Effect.map((configs) => configs.filter((config) => config !== undefined))),
|
|
190
190
|
new Directory({ type: "directory", path: directory })
|
|
191
191
|
];
|
|
192
192
|
});
|
|
@@ -254,8 +254,8 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
254
254
|
}, (effect) => reloadLock.withPermit(effect));
|
|
255
255
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
256
256
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
257
|
-
yield* bus.subscribe(
|
|
258
|
-
yield* bus.subscribe(
|
|
257
|
+
yield* bus.subscribe(Event15.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
258
|
+
yield* bus.subscribe(Event9.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
259
259
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
260
260
|
if (!wellknown.snapshot().length)
|
|
261
261
|
return Effect.void;
|
|
@@ -268,7 +268,7 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
268
268
|
yield* reloadLock.withPermit(reconcile(initial));
|
|
269
269
|
const update = Effect.fn("Config.update")(function* (patch) {
|
|
270
270
|
const directory = initial.global ?? AbsolutePath2.make(globalService.config);
|
|
271
|
-
const candidates =
|
|
271
|
+
const candidates = names3.map((name) => path.join(directory, name));
|
|
272
272
|
const filepath = (yield* Effect.filter(candidates, fs.isFile)).at(-1) ?? path.join(directory, "opencode.jsonc");
|
|
273
273
|
const text = (yield* fs.readFileStringSafe(filepath)) ?? `{}
|
|
274
274
|
`;
|
|
@@ -283,7 +283,7 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
283
283
|
`);
|
|
284
284
|
yield* requestReload;
|
|
285
285
|
}, (effect) => updateLock.withPermit(effect));
|
|
286
|
-
return
|
|
286
|
+
return Service36.of({
|
|
287
287
|
entries: Effect.fnUntraced(function* () {
|
|
288
288
|
return configs;
|
|
289
289
|
}),
|
|
@@ -295,22 +295,22 @@ var layer22 = (options) => Layer.effect(Service59, Effect.gen(function* () {
|
|
|
295
295
|
update
|
|
296
296
|
});
|
|
297
297
|
}));
|
|
298
|
-
function
|
|
298
|
+
function configured6(options) {
|
|
299
299
|
return makeLocationNode({
|
|
300
|
-
service:
|
|
301
|
-
layer:
|
|
300
|
+
service: Service36,
|
|
301
|
+
layer: layer18(options),
|
|
302
302
|
deps: [
|
|
303
|
-
|
|
304
|
-
|
|
303
|
+
node41,
|
|
304
|
+
node89,
|
|
305
305
|
FSUtil.node,
|
|
306
306
|
Global.node,
|
|
307
|
-
node84,
|
|
308
307
|
node86,
|
|
309
|
-
|
|
308
|
+
node72,
|
|
309
|
+
node54,
|
|
310
310
|
AppProcess.node
|
|
311
311
|
]
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var node40 = configured6();
|
|
315
315
|
|
|
316
|
-
export { latest2,
|
|
316
|
+
export { latest2, Options5, Service36, Test2, testLayer2, layer18, configured6, node40, exports_config };
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-y71avatq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service85,
|
|
6
|
+
node89
|
|
7
|
+
} from "./skill-q6ec7ghb.js";
|
|
8
|
+
import {
|
|
9
|
+
Event15,
|
|
10
|
+
Service68,
|
|
11
|
+
node72
|
|
12
|
+
} from "./skill-kbzdcc1z.js";
|
|
8
13
|
import {
|
|
9
|
-
Event20,
|
|
10
14
|
Service82,
|
|
11
15
|
node86
|
|
12
|
-
} from "./
|
|
13
|
-
import {
|
|
14
|
-
Service80,
|
|
15
|
-
node84
|
|
16
|
-
} from "./location-lifecycle-7e65fbvj.js";
|
|
16
|
+
} from "./skill-hh8xd2g7.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service46,
|
|
19
|
+
node50
|
|
20
|
+
} from "./skill-bykqqmg1.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID11,
|
|
23
|
+
Service74,
|
|
24
|
+
node78
|
|
25
|
+
} from "./skill-ps2yhsm3.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./skill-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID9,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service67,
|
|
34
|
+
node71
|
|
35
|
+
} from "./skill-0mshdkct.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./skill-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
45
|
-
Options: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError2,
|
|
45
|
+
Options: () => Options3,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service27,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured3,
|
|
56
|
+
layer: () => layer14,
|
|
57
|
+
node: () => node30
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError2 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,21 +103,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service27 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
|
-
var
|
|
108
|
+
var Options3 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
110
110
|
name: Schema.String,
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var
|
|
115
|
-
const location = yield*
|
|
116
|
-
const environment = yield*
|
|
117
|
-
const bus = yield*
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
114
|
+
var layer14 = (options) => Layer.effect(Service27, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service82;
|
|
116
|
+
const environment = yield* Service46;
|
|
117
|
+
const bus = yield* Service85;
|
|
118
|
+
const forms = yield* Service74;
|
|
119
|
+
const integration = yield* Service67;
|
|
120
|
+
const credentials = yield* Service68;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -129,7 +129,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
129
129
|
return;
|
|
130
130
|
const remote = entry.config;
|
|
131
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
132
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID9.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service68, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError2({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service68, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID11.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service46, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -394,7 +394,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event15.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer16 = (options) => Layer.effect(Service39, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service27.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -530,14 +530,14 @@ function mergeCatalogs(catalogs) {
|
|
|
530
530
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
531
531
|
});
|
|
532
532
|
}
|
|
533
|
-
function
|
|
533
|
+
function configured3(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
536
|
-
layer:
|
|
537
|
-
deps: [
|
|
535
|
+
service: Service27,
|
|
536
|
+
layer: layer14(options),
|
|
537
|
+
deps: [node86, node50, node89, node78, node71, node72]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node30 = configured3();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError2, ToolCallError2, Service27, Options3, layer14, configured3, node30, exports_mcp4 };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
match2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-y1fvbwt7.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./skill-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/managed-policy.ts
|
|
9
9
|
var exports_managed_policy = {};
|
|
10
10
|
__export(exports_managed_policy, {
|
|
11
11
|
ManagedPolicy: () => exports_managed_policy,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service40,
|
|
13
13
|
decision: () => decision2,
|
|
14
|
-
layer: () =>
|
|
15
|
-
node: () =>
|
|
14
|
+
layer: () => layer21,
|
|
15
|
+
node: () => node44,
|
|
16
16
|
statements: () => statements2
|
|
17
17
|
});
|
|
18
18
|
import { isDeepStrictEqual } from "node:util";
|
|
19
19
|
import { Context, Effect, Layer, PubSub, Stream } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
|
|
22
|
-
class
|
|
22
|
+
class Service40 extends Context.Service()("@opencode/ManagedPolicy") {
|
|
23
23
|
}
|
|
24
|
-
var
|
|
24
|
+
var layer21 = Layer.effect(Service40, Effect.gen(function* () {
|
|
25
25
|
const changes = yield* PubSub.unbounded();
|
|
26
26
|
const state = { current: { statements: [] } };
|
|
27
|
-
return
|
|
27
|
+
return Service40.of({
|
|
28
28
|
changes: () => Stream.fromPubSub(changes),
|
|
29
29
|
current: () => state.current,
|
|
30
30
|
set: (next) => Effect.gen(function* () {
|
|
@@ -36,7 +36,7 @@ var layer10 = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
36
36
|
})
|
|
37
37
|
});
|
|
38
38
|
}));
|
|
39
|
-
var
|
|
39
|
+
var node44 = makeGlobalNode({ service: Service40, layer: layer21, deps: [] });
|
|
40
40
|
function statements2(entries, organization) {
|
|
41
41
|
return [
|
|
42
42
|
...entries.filter((entry) => entry.type === "document").toReversed().flatMap((entry) => entry.info.policies ?? []).map((policy) => ({ ...policy, message: "Blocked by configuration policy" })),
|
|
@@ -50,4 +50,4 @@ function decision2(policies, action, resource) {
|
|
|
50
50
|
return policies.findLast((policy) => policy.action === action && match2(resource, policy.resource))?.effect ?? "allow";
|
|
51
51
|
}
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service40, layer21, node44, statements2, decision2, exports_managed_policy };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./skill-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./skill-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/provider.ts
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info11,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info11 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -95,4 +95,4 @@ var Info10 = Schema.Struct({
|
|
|
95
95
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
96
96
|
}).annotate({ identifier: "ProviderConfig" });
|
|
97
97
|
|
|
98
|
-
export { ModelStatus2, Model2,
|
|
98
|
+
export { ModelStatus2, Model2, Info11, exports_provider2 };
|
|
@@ -1,72 +1,72 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service46
|
|
3
|
+
} from "./skill-bykqqmg1.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
Service15,
|
|
6
6
|
readText2,
|
|
7
7
|
syncTextBom2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./skill-d2kvkr0c.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service48
|
|
11
|
+
} from "./skill-wknnvmh5.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service75
|
|
14
|
+
} from "./skill-ysr3h47w.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
16
|
+
Service42
|
|
17
|
+
} from "./skill-167gessz.js";
|
|
18
18
|
import {
|
|
19
19
|
fileDiff2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./skill-6prwharc.js";
|
|
21
21
|
import {
|
|
22
22
|
__export
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./skill-9rqn6x4v.js";
|
|
24
24
|
|
|
25
25
|
// src/tool/plugin/write.ts
|
|
26
26
|
var exports_write = {};
|
|
27
27
|
__export(exports_write, {
|
|
28
|
-
Input: () =>
|
|
29
|
-
Output: () =>
|
|
30
|
-
Plugin: () =>
|
|
28
|
+
Input: () => Input8,
|
|
29
|
+
Output: () => Output6,
|
|
30
|
+
Plugin: () => Plugin27,
|
|
31
31
|
WriteTool: () => exports_write,
|
|
32
|
-
name: () =>
|
|
33
|
-
toModelContent: () =>
|
|
32
|
+
name: () => name8,
|
|
33
|
+
toModelContent: () => toModelContent4
|
|
34
34
|
});
|
|
35
35
|
import { ToolFailure } from "@opencode/ai";
|
|
36
36
|
import { Effect, Schema } from "effect";
|
|
37
37
|
import { Bom } from "@opencode/util/bom";
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var name8 = "write";
|
|
39
|
+
var Input8 = Schema.Struct({
|
|
40
40
|
path: Schema.String.annotate({
|
|
41
41
|
description: "Path to the file to write to"
|
|
42
42
|
}),
|
|
43
43
|
content: Schema.String.annotate({ description: "Content to write to the file" })
|
|
44
44
|
});
|
|
45
|
-
var
|
|
45
|
+
var Output6 = Schema.Struct({
|
|
46
46
|
operation: Schema.Literal("write"),
|
|
47
47
|
target: Schema.String,
|
|
48
48
|
resource: Schema.String,
|
|
49
49
|
existed: Schema.Boolean
|
|
50
50
|
});
|
|
51
|
-
var
|
|
52
|
-
var
|
|
51
|
+
var toModelContent4 = (output) => `${output.existed ? "Wrote" : "Created"} file successfully: ${output.resource}`;
|
|
52
|
+
var Plugin27 = {
|
|
53
53
|
id: "opencode.tool.write",
|
|
54
54
|
effect: Effect.fn("WriteTool.Plugin")(function* (ctx) {
|
|
55
|
-
const access = yield*
|
|
56
|
-
const fileMutation = yield*
|
|
57
|
-
const environment = yield*
|
|
58
|
-
const formatter = yield*
|
|
59
|
-
const permission = yield*
|
|
55
|
+
const access = yield* Service42;
|
|
56
|
+
const fileMutation = yield* Service15;
|
|
57
|
+
const environment = yield* Service46;
|
|
58
|
+
const formatter = yield* Service48;
|
|
59
|
+
const permission = yield* Service75;
|
|
60
60
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
61
|
-
name:
|
|
61
|
+
name: name8,
|
|
62
62
|
options: { codemode: false, permission: "edit" },
|
|
63
63
|
description: `Writes a file to the local filesystem, overwriting if one exists.
|
|
64
64
|
|
|
65
65
|
Missing parent directories are created automatically.
|
|
66
66
|
|
|
67
67
|
Use this tool to create new files or overwrite existing files. For partial changes, use the edit tool instead.`,
|
|
68
|
-
input:
|
|
69
|
-
output:
|
|
68
|
+
input: Input8,
|
|
69
|
+
output: Output6,
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
const source = {
|
|
72
72
|
type: "tool",
|
|
@@ -93,9 +93,9 @@ Use this tool to create new files or overwrite existing files. For partial chang
|
|
|
93
93
|
yield* syncTextBom2(environment.files, target.absolute, bom);
|
|
94
94
|
}
|
|
95
95
|
return result;
|
|
96
|
-
}).pipe(Effect.map((output) => ({ output, content:
|
|
96
|
+
}).pipe(Effect.map((output) => ({ output, content: toModelContent4(output) })), Effect.mapError((error) => new ToolFailure({ message: `Unable to write ${input.path}`, error })))
|
|
97
97
|
})).pipe(Effect.orDie);
|
|
98
98
|
})
|
|
99
99
|
};
|
|
100
100
|
|
|
101
|
-
export {
|
|
101
|
+
export { name8, Input8, Output6, toModelContent4, Plugin27, exports_write };
|