@opencode/core 0.0.0-dev-19439 → 0.0.0-dev-19442
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 +65 -65
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +57 -57
- package/dist/catalog.js +67 -67
- package/dist/chunks/{formatter-eq20ba7x.js → formatter-07770t2t.js} +5 -5
- package/dist/chunks/{formatter-2jvn1219.js → formatter-07g5132y.js} +16 -16
- package/dist/chunks/{formatter-9zswys26.js → formatter-0996nyz8.js} +7 -7
- package/dist/chunks/{formatter-dtqv72tr.js → formatter-0gegznas.js} +19 -19
- package/dist/chunks/{formatter-gp9htv6t.js → formatter-0hc60vqt.js} +3 -3
- package/dist/chunks/{formatter-2k8khapm.js → formatter-0jwsre1p.js} +4 -4
- package/dist/chunks/formatter-0mesazry.js +4 -0
- package/dist/chunks/{formatter-72yrt324.js → formatter-0t7gmehk.js} +15 -15
- package/dist/chunks/{formatter-2msj1ncg.js → formatter-0z4ganrk.js} +161 -161
- package/dist/chunks/{formatter-0sz3434e.js → formatter-14s5dwzm.js} +20 -20
- package/dist/chunks/{formatter-1j6vcx8p.js → formatter-17exey95.js} +19 -19
- package/dist/chunks/{formatter-x4hnyy7a.js → formatter-1e1eh5br.js} +9 -9
- package/dist/chunks/{formatter-qmr73083.js → formatter-1fa9ans5.js} +1 -1
- package/dist/chunks/{formatter-s3fk1mhb.js → formatter-1g7m4r41.js} +8 -8
- package/dist/chunks/{formatter-ctck25gh.js → formatter-1ga0n8k4.js} +47 -47
- package/dist/chunks/{formatter-619r8v3y.js → formatter-1x11rq2a.js} +4 -4
- package/dist/chunks/{formatter-33w4ejhs.js → formatter-1ygqh575.js} +4 -4
- package/dist/chunks/{formatter-0ghbvpbq.js → formatter-1z802faq.js} +4 -4
- package/dist/chunks/{formatter-2qnv7z47.js → formatter-22mjh9ty.js} +82 -82
- package/dist/chunks/{formatter-zemgttac.js → formatter-24g3tesp.js} +24 -24
- package/dist/chunks/{formatter-wmsepf1h.js → formatter-27cvmr0a.js} +7 -7
- package/dist/chunks/{formatter-1ah30sey.js → formatter-2ee8pmxs.js} +1 -1
- package/dist/chunks/{formatter-dyrkrqpz.js → formatter-2fepy6kp.js} +29 -29
- package/dist/chunks/{formatter-nbqjn8b8.js → formatter-2j72yz8b.js} +9 -9
- package/dist/chunks/{formatter-8kpvhf1n.js → formatter-2jxkcfxh.js} +26 -26
- package/dist/chunks/formatter-2ma3xmgy.js +247 -0
- package/dist/chunks/{formatter-nszmkgp8.js → formatter-2p4d45ss.js} +34 -34
- package/dist/chunks/{formatter-5ztyb0s9.js → formatter-2qbzv385.js} +11 -11
- package/dist/chunks/{formatter-fbj83e1y.js → formatter-2xp9zh4w.js} +11 -11
- package/dist/chunks/{formatter-2pm4epw0.js → formatter-2ye3w4c6.js} +4 -4
- package/dist/chunks/{formatter-8n2resjc.js → formatter-35ybfb31.js} +24 -24
- package/dist/chunks/{formatter-y88dd9am.js → formatter-3a3nm9ck.js} +29 -29
- package/dist/chunks/{formatter-w4arg62q.js → formatter-3k6sfp50.js} +5 -5
- package/dist/chunks/{formatter-3hf7z3yq.js → formatter-3sztcym1.js} +10 -10
- package/dist/chunks/{formatter-ybhbtxjg.js → formatter-3x8gcmrs.js} +4 -4
- package/dist/chunks/{formatter-s0esgemt.js → formatter-3ythc6yv.js} +3 -3
- package/dist/chunks/{formatter-8dnxqjce.js → formatter-41f61ev5.js} +9 -9
- package/dist/chunks/{formatter-dh76dsr9.js → formatter-4a4wm3fd.js} +9 -9
- package/dist/chunks/{formatter-30txw56n.js → formatter-4gyv9dcq.js} +28 -28
- package/dist/chunks/{formatter-668nd1zd.js → formatter-4k602d3g.js} +16 -16
- package/dist/chunks/{formatter-gkx770bk.js → formatter-4nc4g32g.js} +10 -10
- package/dist/chunks/{formatter-7swy916s.js → formatter-4r64zwvk.js} +18 -18
- package/dist/chunks/{formatter-9gk1gqp3.js → formatter-51pnjp32.js} +8 -8
- package/dist/chunks/{formatter-285areat.js → formatter-5686k794.js} +6 -6
- package/dist/chunks/{formatter-3vd6qc07.js → formatter-5730y88m.js} +6 -6
- package/dist/chunks/{formatter-f81hbz6h.js → formatter-5mpmxcn3.js} +7 -7
- package/dist/chunks/{formatter-e07ezkqg.js → formatter-5zn8m59m.js} +22 -22
- package/dist/chunks/{formatter-pf1rkfgd.js → formatter-63bkm2xc.js} +32 -32
- package/dist/chunks/{formatter-f1yt1w90.js → formatter-66gmdr70.js} +24 -24
- package/dist/chunks/{formatter-5507e9e8.js → formatter-68mqsjbx.js} +39 -39
- package/dist/chunks/{formatter-p1wf2k30.js → formatter-6ck2t1rv.js} +7 -7
- package/dist/chunks/{formatter-sv9bpgvh.js → formatter-6jex2xta.js} +1 -1
- package/dist/chunks/{formatter-crc3g98t.js → formatter-743vzpe1.js} +8 -8
- package/dist/chunks/{formatter-pcfzsj1n.js → formatter-76n9k95k.js} +14 -14
- package/dist/chunks/{formatter-qpxqmgt2.js → formatter-77nagcj1.js} +3 -3
- package/dist/chunks/{formatter-3cfzdc8e.js → formatter-78v47nsk.js} +3 -3
- package/dist/chunks/{formatter-c3w3adeh.js → formatter-79renbpq.js} +1 -1
- package/dist/chunks/{formatter-31dz7cp4.js → formatter-7s02b6me.js} +1 -1
- package/dist/chunks/{formatter-4jwp497k.js → formatter-7stj2g6t.js} +7 -7
- package/dist/chunks/{formatter-hjny2139.js → formatter-7zph4ccs.js} +24 -24
- package/dist/chunks/{formatter-skxg4786.js → formatter-8014eh36.js} +39 -39
- package/dist/chunks/{formatter-mmwejawh.js → formatter-83jsjxge.js} +34 -34
- package/dist/chunks/{formatter-9bzc32ne.js → formatter-844q5q2y.js} +9 -9
- package/dist/chunks/{formatter-1cf11pks.js → formatter-86cj3c8h.js} +22 -22
- package/dist/chunks/{formatter-tcezcvh9.js → formatter-89znhe33.js} +3 -3
- package/dist/chunks/{formatter-pd5ra043.js → formatter-8d321qp1.js} +25 -25
- package/dist/chunks/{formatter-9dafp5sw.js → formatter-8gbdh1kt.js} +21 -21
- package/dist/chunks/{formatter-7j2qha59.js → formatter-8ppq07x6.js} +7 -7
- package/dist/chunks/{formatter-zkae56be.js → formatter-8zy8t8gf.js} +62 -62
- package/dist/chunks/{formatter-bkqv14q1.js → formatter-9cetqcc0.js} +4 -4
- package/dist/chunks/{formatter-d3cg80ds.js → formatter-9e77hs8e.js} +18 -18
- package/dist/chunks/{formatter-y74fwv73.js → formatter-9fwp41vh.js} +7 -7
- package/dist/chunks/{formatter-q0b5npqy.js → formatter-9tjnx8ba.js} +8 -8
- package/dist/chunks/{formatter-py4eyt8z.js → formatter-9v9evep5.js} +12 -12
- package/dist/chunks/{formatter-4swyx596.js → formatter-9yp3h48g.js} +16 -16
- package/dist/chunks/{formatter-6zjp47af.js → formatter-acsnj85b.js} +3 -3
- package/dist/chunks/{formatter-r6mys28c.js → formatter-aefq2yfw.js} +41 -41
- package/dist/chunks/{formatter-t1vfcksq.js → formatter-amm4215g.js} +10 -10
- package/dist/chunks/{formatter-j8zzr2am.js → formatter-b0awdqvx.js} +8 -8
- package/dist/chunks/{formatter-cct3q0a5.js → formatter-b42np7pe.js} +30 -30
- package/dist/chunks/{formatter-0vr1v3xt.js → formatter-b6r1f5rm.js} +9 -9
- package/dist/chunks/{formatter-zc49taxq.js → formatter-b95h3j77.js} +12 -12
- package/dist/chunks/{formatter-s0sr0rvp.js → formatter-bfajmyfy.js} +10 -10
- package/dist/chunks/{formatter-reya8m0q.js → formatter-bmb9q18h.js} +21 -21
- package/dist/chunks/{formatter-ndn3zy2s.js → formatter-bwatdc02.js} +10 -10
- package/dist/chunks/{formatter-5afqb7wg.js → formatter-cfdfryy5.js} +30 -30
- package/dist/chunks/{formatter-j0bxhyf1.js → formatter-cj7ef3kd.js} +6 -6
- package/dist/chunks/{formatter-a7xpxmvw.js → formatter-cn9ts38g.js} +18 -18
- package/dist/chunks/{formatter-yt0fqk68.js → formatter-cr07tj7n.js} +3 -3
- package/dist/chunks/{formatter-fbb40q07.js → formatter-cyqm2h3q.js} +3 -3
- package/dist/chunks/{formatter-4j6h5n25.js → formatter-d07z2d7y.js} +12 -12
- package/dist/chunks/{formatter-85rv8zbb.js → formatter-d8sdrn5j.js} +13 -13
- package/dist/chunks/{formatter-7azxt0pz.js → formatter-d8vv29gg.js} +21 -21
- package/dist/chunks/{formatter-ea17m5x7.js → formatter-dg40m71b.js} +20 -20
- package/dist/chunks/{formatter-9z5mp38j.js → formatter-dge3x2p3.js} +14 -14
- package/dist/chunks/{formatter-a4exdnt3.js → formatter-dghgjkkt.js} +2 -2
- package/dist/chunks/{formatter-4b0yvbnv.js → formatter-dkfqzx94.js} +8 -8
- package/dist/chunks/{formatter-t56rre3z.js → formatter-dr3wacvp.js} +12 -12
- package/dist/chunks/{formatter-2d6j2h4j.js → formatter-dt849bc4.js} +3 -3
- package/dist/chunks/{formatter-v4hmzr0r.js → formatter-dv1qgsyq.js} +7 -7
- package/dist/chunks/{formatter-krdddzze.js → formatter-ebk5sng0.js} +8 -8
- package/dist/chunks/{formatter-021h0nrt.js → formatter-eecr541e.js} +4 -4
- package/dist/chunks/{formatter-7s0w6q3c.js → formatter-efcedsnh.js} +20 -20
- package/dist/chunks/{formatter-yjptyezs.js → formatter-eq23s0y6.js} +3 -3
- package/dist/chunks/{formatter-66g4p5h5.js → formatter-f2rbzmx2.js} +6 -6
- package/dist/chunks/{formatter-80e0yyk8.js → formatter-fban3jjy.js} +4 -4
- package/dist/chunks/{formatter-edrmdtr5.js → formatter-fdv30zvt.js} +3 -3
- package/dist/chunks/{formatter-6jnybvqn.js → formatter-fhs97t90.js} +7 -7
- package/dist/chunks/{formatter-18cztcj7.js → formatter-fmmn8x74.js} +1 -1
- package/dist/chunks/{formatter-1trm2ftq.js → formatter-fy5dbkry.js} +16 -16
- package/dist/chunks/{formatter-90p59b3a.js → formatter-g2y161wv.js} +7 -7
- package/dist/chunks/formatter-gkc9xmpb.js +22 -0
- package/dist/chunks/{formatter-m4b8n7qx.js → formatter-gwf61436.js} +25 -25
- package/dist/chunks/{formatter-w6jjpet8.js → formatter-gxr5v7wk.js} +5 -5
- package/dist/chunks/{formatter-nx7dmtbq.js → formatter-gzbxtshv.js} +89 -89
- package/dist/chunks/{formatter-4e4zhwn8.js → formatter-hdgeqy3n.js} +24 -24
- package/dist/chunks/{formatter-p1kh2k2v.js → formatter-hef2fv9c.js} +18 -18
- package/dist/chunks/{formatter-5jtdmvnp.js → formatter-hf8cnsjw.js} +1 -1
- package/dist/chunks/{formatter-ggdbhyt9.js → formatter-hp5e6fgb.js} +10 -10
- package/dist/chunks/{formatter-2syw43ez.js → formatter-hrmdcqyf.js} +9 -9
- package/dist/chunks/{formatter-4yg7xpeb.js → formatter-hv4dbmz4.js} +1 -1
- package/dist/chunks/{formatter-x1msyfgj.js → formatter-j5hcmc17.js} +7 -7
- package/dist/chunks/{formatter-s54pw8rz.js → formatter-j6qbcxka.js} +5 -5
- package/dist/chunks/{formatter-4c2c4z0k.js → formatter-jbtsx043.js} +30 -30
- package/dist/chunks/{formatter-0nm12y21.js → formatter-jfkc9b5n.js} +1 -1
- package/dist/chunks/{formatter-9hmhmwp5.js → formatter-jm6wy66x.js} +296 -296
- package/dist/chunks/{formatter-g9yjs11r.js → formatter-jnjr1yzt.js} +22 -22
- package/dist/chunks/{formatter-dv1d3m2q.js → formatter-kfw23kb1.js} +35 -35
- package/dist/chunks/{formatter-hk4vbwmw.js → formatter-kgwny488.js} +1 -1
- package/dist/chunks/{formatter-bpvz3mp1.js → formatter-knaweb83.js} +14 -14
- package/dist/chunks/{formatter-y0m5vzhp.js → formatter-kq1kcxwx.js} +54 -54
- package/dist/chunks/{formatter-8z17e00v.js → formatter-kyrbgmgz.js} +1 -1
- package/dist/chunks/{formatter-2dcw9sq7.js → formatter-m31d5xjk.js} +27 -27
- package/dist/chunks/{formatter-8g8qrqs2.js → formatter-m3ts4v0j.js} +13 -13
- package/dist/chunks/{formatter-3pb5g2zf.js → formatter-mjxbdjmk.js} +4 -4
- package/dist/chunks/{formatter-cavr175a.js → formatter-mjymc32g.js} +3 -3
- package/dist/chunks/{formatter-9adx019p.js → formatter-mq24hmwn.js} +28 -28
- package/dist/chunks/{formatter-rsdf2nvv.js → formatter-msq0jde0.js} +3 -3
- package/dist/chunks/{formatter-w0psxf7y.js → formatter-mzzxvvcj.js} +16 -16
- package/dist/chunks/{formatter-w4vfbj5y.js → formatter-n07qvca3.js} +9 -9
- package/dist/chunks/{formatter-fp08gjcx.js → formatter-n3me71ma.js} +20 -20
- package/dist/chunks/{formatter-hdbh06sf.js → formatter-n5jxhyy6.js} +24 -24
- package/dist/chunks/{formatter-f9bavhm2.js → formatter-n5zjdcc0.js} +1 -1
- package/dist/chunks/{formatter-mdjvh03d.js → formatter-n7epfj1e.js} +3 -3
- package/dist/chunks/{formatter-617j0ppb.js → formatter-nbcf758j.js} +12 -12
- package/dist/chunks/{formatter-8z52dtec.js → formatter-nf8etk0h.js} +14 -14
- package/dist/chunks/{formatter-hjt4xg1x.js → formatter-nhy5jxhy.js} +3 -3
- package/dist/chunks/{formatter-cbf23dhs.js → formatter-npfjnfyw.js} +14 -14
- package/dist/chunks/{formatter-xbtmma79.js → formatter-nt0xtg2m.js} +19 -19
- package/dist/chunks/{formatter-wx9wy1qm.js → formatter-p33ejz0k.js} +1 -1
- package/dist/chunks/{formatter-00nm36c8.js → formatter-p688bkc5.js} +8 -8
- package/dist/chunks/{formatter-2d97fjv4.js → formatter-pd900gms.js} +18 -18
- package/dist/chunks/{formatter-81k6gtxt.js → formatter-phasdpa1.js} +16 -16
- package/dist/chunks/{formatter-t3ev4bbs.js → formatter-phhzch1s.js} +4 -4
- package/dist/chunks/{formatter-vncycja5.js → formatter-pmr4s4kc.js} +3 -3
- package/dist/chunks/{formatter-gw0b7z6j.js → formatter-pypsba0w.js} +46 -46
- package/dist/chunks/{formatter-kabm8qet.js → formatter-pys7r5ft.js} +16 -16
- package/dist/chunks/{formatter-wnhwz1p5.js → formatter-q542kxb4.js} +9 -9
- package/dist/chunks/{formatter-vdnmb5h5.js → formatter-qba6esk9.js} +7 -7
- package/dist/chunks/{formatter-5yjc0kdb.js → formatter-qfnbjkve.js} +9 -9
- package/dist/chunks/{formatter-v8ch97zc.js → formatter-qssq5wvh.js} +1 -1
- package/dist/chunks/{formatter-dbmntw5q.js → formatter-qyj995fp.js} +9 -9
- package/dist/chunks/{formatter-c92gkee6.js → formatter-r1p8h42q.js} +7 -7
- package/dist/chunks/{formatter-yddgxcp4.js → formatter-r1wdcgzk.js} +3 -3
- package/dist/chunks/{formatter-r94jn7mf.js → formatter-r78rzmsw.js} +14 -14
- package/dist/chunks/{formatter-7be57pfy.js → formatter-ran1x3dp.js} +15 -15
- package/dist/chunks/{formatter-6ad8zjmg.js → formatter-rbp9pwyt.js} +22 -22
- package/dist/chunks/{formatter-9pv0dm11.js → formatter-rk0rec3h.js} +7 -7
- package/dist/chunks/{formatter-mssymtw4.js → formatter-rra39r6b.js} +18 -18
- package/dist/chunks/{formatter-9ht5y0bp.js → formatter-rtfynwzt.js} +51 -51
- package/dist/chunks/{formatter-y9nhn27x.js → formatter-rx5z47at.js} +31 -31
- package/dist/chunks/{formatter-bdhtzght.js → formatter-syd2ek2m.js} +20 -20
- package/dist/chunks/{formatter-fghqpq1c.js → formatter-szy17rma.js} +1 -1
- package/dist/chunks/{formatter-jy16bfac.js → formatter-t1bhcjx3.js} +1 -1
- package/dist/chunks/{formatter-n5d2spsf.js → formatter-tcent856.js} +17 -17
- package/dist/chunks/{formatter-g8jasmdt.js → formatter-tdhe5xga.js} +6 -6
- package/dist/chunks/{formatter-0t42w751.js → formatter-tjv8j3ty.js} +15 -15
- package/dist/chunks/{formatter-a5mbhza4.js → formatter-tkd28t9z.js} +9 -9
- package/dist/chunks/{formatter-re8aperj.js → formatter-tmr90kjh.js} +9 -9
- package/dist/chunks/{formatter-0vb1f5pm.js → formatter-tvejcd1c.js} +20 -20
- package/dist/chunks/{formatter-j06bdbff.js → formatter-tyq6zn03.js} +42 -42
- package/dist/chunks/{formatter-qr27hz8v.js → formatter-v6kh18tr.js} +2 -2
- package/dist/chunks/{formatter-hatqt65p.js → formatter-v9btxpfp.js} +2 -2
- package/dist/chunks/{formatter-8t5w0ytw.js → formatter-vak1nh3a.js} +6 -6
- package/dist/chunks/{formatter-0ped3br2.js → formatter-vfbvz2sn.js} +9 -9
- package/dist/chunks/{formatter-6rdehx4s.js → formatter-vh2brwev.js} +8 -8
- package/dist/chunks/{formatter-5mbh52c5.js → formatter-vjtcf3cg.js} +26 -26
- package/dist/chunks/{formatter-dam1xtkf.js → formatter-vwc53vnk.js} +13 -13
- package/dist/chunks/{formatter-0mckgfc3.js → formatter-w19rq0qz.js} +30 -30
- package/dist/chunks/{formatter-ve6nm2s5.js → formatter-w9nng7hv.js} +5 -5
- package/dist/chunks/{formatter-gmwb692f.js → formatter-wf6rfhw9.js} +11 -11
- package/dist/chunks/{formatter-h2zbnnby.js → formatter-wkkxymjz.js} +14 -14
- package/dist/chunks/{formatter-5n6j4vsj.js → formatter-wndmtb1p.js} +7 -7
- package/dist/chunks/{formatter-gab2tx2v.js → formatter-wvx822mk.js} +30 -30
- package/dist/chunks/{formatter-hvdm4zjc.js → formatter-x0wwt8km.js} +14 -14
- package/dist/chunks/{formatter-ptaftxqm.js → formatter-x4j2hrja.js} +5 -5
- package/dist/chunks/{formatter-5syt3tya.js → formatter-x93xphn0.js} +26 -26
- package/dist/chunks/{formatter-ts6jc9rr.js → formatter-xejpdtff.js} +39 -39
- package/dist/chunks/{formatter-esv2341e.js → formatter-xh0q5d19.js} +33 -33
- package/dist/chunks/{formatter-9mxd4efq.js → formatter-xx38zygr.js} +12 -12
- package/dist/chunks/{formatter-bz38aey9.js → formatter-xypf59mt.js} +1 -1
- package/dist/chunks/{formatter-edqrezaz.js → formatter-xz285jew.js} +3 -3
- package/dist/chunks/{formatter-wmpm68aq.js → formatter-xz9wm8d3.js} +6 -6
- package/dist/chunks/{formatter-tcgf8zsh.js → formatter-y20mwvjq.js} +1 -1
- package/dist/chunks/{formatter-jexxy024.js → formatter-y6f0p4jw.js} +3 -3
- package/dist/chunks/{formatter-ttgj08hp.js → formatter-ya3pk50a.js} +4 -4
- package/dist/chunks/{formatter-vcx64ysh.js → formatter-yjgtw0qv.js} +42 -42
- package/dist/chunks/{formatter-qa1nr178.js → formatter-ymyxwevk.js} +12 -12
- package/dist/chunks/{formatter-f3bjm0g3.js → formatter-yvxd7hem.js} +16 -16
- package/dist/chunks/{formatter-4mxshjsa.js → formatter-z5249fh5.js} +16 -16
- package/dist/chunks/{formatter-y5eyw352.js → formatter-z7nszk6n.js} +7 -7
- package/dist/chunks/{formatter-68yeam9s.js → formatter-z8vercf0.js} +8 -8
- package/dist/chunks/{formatter-vadmf725.js → formatter-z9bbcn2s.js} +16 -16
- package/dist/chunks/{formatter-5jgkwf9z.js → formatter-zae39fg2.js} +8 -8
- package/dist/chunks/{formatter-2vs2nh1n.js → formatter-zav06jzw.js} +3 -3
- package/dist/chunks/{formatter-5w7tckb9.js → formatter-zcjdhcyr.js} +11 -11
- package/dist/chunks/{formatter-9rzgchqg.js → formatter-zetmaeve.js} +19 -19
- package/dist/chunks/{formatter-0t1gcbnc.js → formatter-zm73fw82.js} +10 -10
- package/dist/chunks/{formatter-095yekjx.js → formatter-zwwmew6a.js} +7 -7
- package/dist/codemode/instructions.js +7 -7
- package/dist/command.js +67 -67
- package/dist/config/discovery.js +60 -60
- package/dist/config/normalize.js +16 -16
- package/dist/config/plugin/agent.js +85 -85
- package/dist/config/plugin/command.js +164 -164
- package/dist/config/plugin/compaction.js +118 -118
- package/dist/config/plugin/formatter.js +86 -86
- package/dist/config/plugin/image.js +85 -85
- package/dist/config/plugin/instruction.js +63 -63
- package/dist/config/plugin/location-watcher.js +83 -83
- package/dist/config/plugin/mcp.js +91 -91
- package/dist/config/plugin/policy.js +84 -84
- package/dist/config/plugin/provider.js +83 -83
- package/dist/config/plugin/reference.js +86 -86
- package/dist/config/plugin/shell.js +87 -87
- package/dist/config/plugin/skill-file.js +71 -71
- package/dist/config/plugin/skill.js +101 -101
- package/dist/config/plugin/snapshot.js +85 -85
- package/dist/config/plugin/source.js +87 -87
- package/dist/config/plugin/tool-output.js +86 -86
- package/dist/config/plugin/websearch.js +85 -85
- package/dist/config/plugin/worktree.js +88 -88
- package/dist/config.js +90 -90
- package/dist/credential.js +63 -63
- package/dist/database/database.js +57 -57
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +6 -6
- package/dist/database/drizzle/effect-sqlite/session.js +6 -6
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +4 -4
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +5 -5
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +34 -34
- package/dist/database/migration.js +36 -36
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +230 -230
- package/dist/environment/environment.js +65 -65
- package/dist/environment/index.js +67 -67
- package/dist/event-logger.js +11 -11
- package/dist/file-access.js +74 -74
- package/dist/file-mutation.js +66 -66
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +176 -176
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +75 -75
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +78 -78
- package/dist/form.js +70 -70
- package/dist/formatter.js +65 -65
- package/dist/generate.js +73 -73
- package/dist/git.js +5 -5
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +4 -4
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +3 -3
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +306 -306
- package/dist/instruction-discovery.js +65 -65
- package/dist/instructions/builtins.js +62 -62
- package/dist/integration.js +70 -70
- package/dist/job.js +61 -61
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +52 -52
- package/dist/location-mutation.js +28 -28
- package/dist/location-service-map.js +62 -62
- package/dist/location-services.js +304 -304
- package/dist/location.js +65 -65
- package/dist/mcp/client.js +17 -17
- package/dist/mcp/index.js +79 -79
- package/dist/mcp/instructions.js +88 -88
- package/dist/mcp/stdio.js +62 -62
- package/dist/modal/models.js +3 -3
- package/dist/model-resolver.js +70 -70
- package/dist/model.js +4 -4
- package/dist/models-dev.js +62 -62
- package/dist/permission/saved.js +62 -62
- package/dist/permission.js +81 -81
- package/dist/persistent-pty/index.js +68 -68
- package/dist/persistent-pty.js +56 -56
- package/dist/plugin/agent.js +72 -72
- package/dist/plugin/command.js +70 -70
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +173 -173
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +278 -278
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +59 -59
- package/dist/plugin/module.js +4 -4
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +72 -72
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +87 -87
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +87 -87
- package/dist/plugin/provider/cloudflare-workers-ai.js +87 -87
- package/dist/plugin/provider/configured.js +85 -85
- package/dist/plugin/provider/digitalocean.js +62 -62
- package/dist/plugin/provider/github-copilot.js +64 -64
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +60 -60
- package/dist/plugin/provider/lmstudio.js +88 -88
- package/dist/plugin/provider/modal.js +63 -63
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +88 -88
- package/dist/plugin/provider/openai.js +61 -61
- package/dist/plugin/provider/opencode.js +62 -62
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/poe.js +59 -59
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +87 -87
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +88 -88
- package/dist/plugin/provider/xai.js +61 -61
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +123 -123
- package/dist/plugin/sdk.js +60 -60
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +99 -99
- package/dist/plugin/supervisor.js +295 -295
- package/dist/plugin/update.js +5 -5
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +62 -62
- package/dist/plugin/vcs/hg.js +62 -62
- package/dist/plugin/warming.js +83 -83
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +184 -184
- package/dist/project/schema.js +7 -7
- package/dist/project.js +66 -66
- package/dist/provider.js +3 -3
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +71 -71
- package/dist/reference/instructions.js +66 -66
- package/dist/reference.js +66 -66
- package/dist/repository-cache.js +59 -59
- package/dist/ripgrep.js +69 -69
- package/dist/rpc.js +62 -62
- package/dist/session/command.js +58 -58
- package/dist/session/compaction.js +95 -95
- package/dist/session/context.js +112 -112
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +114 -114
- package/dist/session/execution.js +97 -97
- package/dist/session/generate.js +113 -113
- package/dist/session/history.js +4 -4
- package/dist/session/inbox.js +67 -67
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +58 -58
- package/dist/session/instructions.js +68 -68
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +84 -84
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +99 -99
- package/dist/session/projector.js +60 -60
- package/dist/session/prompt.js +75 -75
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +63 -63
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +181 -181
- package/dist/session/runner/model.js +70 -70
- package/dist/session/runner/retry.js +84 -84
- package/dist/session/runner/step.js +91 -91
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +129 -129
- package/dist/session/shell.js +96 -96
- package/dist/session/skill.js +73 -73
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +164 -164
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +115 -115
- package/dist/session/to-session-error.js +81 -81
- package/dist/session/transfer.js +112 -112
- package/dist/session.js +174 -174
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +77 -77
- package/dist/skill.js +80 -80
- package/dist/snapshot.js +69 -69
- package/dist/tool/mcp.js +89 -89
- package/dist/tool/plugin/edit.js +85 -85
- package/dist/tool/plugin/glob.js +91 -91
- package/dist/tool/plugin/grep.js +91 -91
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +87 -87
- package/dist/tool/plugin/question.js +75 -75
- package/dist/tool/plugin/read.js +92 -92
- package/dist/tool/plugin/shell.js +172 -172
- package/dist/tool/plugin/skill.js +83 -83
- package/dist/tool/plugin/subagent.js +173 -173
- package/dist/tool/plugin/webfetch.js +80 -80
- package/dist/tool/plugin/websearch.js +84 -84
- package/dist/tool/plugin/write.js +87 -87
- package/dist/tool/read-filesystem.js +72 -72
- package/dist/tool-output.js +6 -6
- 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/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 +3 -3
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +65 -65
- package/dist/websearch.js +66 -66
- package/dist/wellknown/plugin.js +58 -58
- package/dist/wellknown.js +63 -63
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +64 -64
- package/dist/worktree/git.js +4 -4
- package/dist/worktree/refresh.js +292 -292
- package/dist/worktree.js +70 -70
- package/package.json +8 -8
- package/dist/chunks/formatter-35kzsz4m.js +0 -22
- package/dist/chunks/formatter-qapv375x.js +0 -4
- package/dist/chunks/formatter-tkmn4y3s.js +0 -247
- /package/dist/chunks/{formatter-d7r387ef.js → formatter-g97k7hqe.js} +0 -0
- /package/dist/chunks/{formatter-qa5ynrpv.js → formatter-jtbqtm0k.js} +0 -0
- /package/dist/chunks/{formatter-3pkm5zsv.js → formatter-kwk5x0cs.js} +0 -0
- /package/dist/chunks/{formatter-rmk2c50f.js → formatter-wr7ps67x.js} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
|
-
|
|
4
|
-
} from "./formatter-
|
|
3
|
+
node84
|
|
4
|
+
} from "./formatter-1g7m4r41.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./formatter-
|
|
6
|
+
Service65,
|
|
7
|
+
node69
|
|
8
|
+
} from "./formatter-q542kxb4.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
11
|
} from "./formatter-kg06axw8.js";
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
var exports_websearch3 = {};
|
|
18
18
|
__export(exports_websearch3, {
|
|
19
19
|
DisabledError: () => DisabledError2,
|
|
20
|
-
Event: () =>
|
|
21
|
-
ID: () =>
|
|
22
|
-
Input: () =>
|
|
20
|
+
Event: () => Event13,
|
|
21
|
+
ID: () => ID9,
|
|
22
|
+
Input: () => Input14,
|
|
23
23
|
Provider: () => Provider2,
|
|
24
24
|
ProviderKey: () => ProviderKey2,
|
|
25
25
|
ProviderNotFoundError: () => ProviderNotFoundError2,
|
|
@@ -28,29 +28,29 @@ __export(exports_websearch3, {
|
|
|
28
28
|
Response: () => Response2,
|
|
29
29
|
Result: () => Result2,
|
|
30
30
|
Selection: () => Selection2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service61,
|
|
32
32
|
WebSearch: () => exports_websearch3,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node65
|
|
34
34
|
});
|
|
35
35
|
import { WebSearch } from "@opencode/schema/websearch";
|
|
36
36
|
import { SessionEvent } from "@opencode/schema/session-event";
|
|
37
37
|
import { Clock, Context, Effect, Layer, Option, Schema, Stream } from "effect";
|
|
38
38
|
import { HttpClientError } from "effect/unstable/http";
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
|
-
import { Event as
|
|
41
|
-
var
|
|
40
|
+
import { Event as Event13 } from "@opencode/schema/websearch";
|
|
41
|
+
var ID9 = WebSearch.ID;
|
|
42
42
|
var Provider2 = WebSearch.Provider;
|
|
43
|
-
var
|
|
43
|
+
var Input14 = WebSearch.Input;
|
|
44
44
|
var Result2 = WebSearch.Result;
|
|
45
45
|
var Response2 = WebSearch.Response;
|
|
46
46
|
var ProviderKey2 = "websearch:provider";
|
|
47
|
-
var Selection2 = Schema.Union([
|
|
47
|
+
var Selection2 = Schema.Union([ID9, Schema.Literal("random"), Schema.Literal(false)]);
|
|
48
48
|
|
|
49
49
|
class ProviderRequiredError2 extends Schema.TaggedError()("WebSearch.ProviderRequired", {}) {
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
class ProviderNotFoundError2 extends Schema.TaggedError()("WebSearch.ProviderNotFound", {
|
|
53
|
-
providerID:
|
|
53
|
+
providerID: ID9
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
@@ -58,16 +58,16 @@ class DisabledError2 extends Schema.TaggedError()("WebSearch.Disabled", {}) {
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
class RequestError2 extends Schema.TaggedError()("WebSearch.Request", {
|
|
61
|
-
providerID:
|
|
61
|
+
providerID: ID9,
|
|
62
62
|
cause: Schema.Defect()
|
|
63
63
|
}) {
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
-
class
|
|
66
|
+
class Service61 extends Context.Service()("@opencode/WebSearch") {
|
|
67
67
|
}
|
|
68
|
-
var layer = Layer.effect(
|
|
68
|
+
var layer = Layer.effect(Service61, Effect.gen(function* () {
|
|
69
69
|
const bus = yield* Service79;
|
|
70
|
-
const kv = yield*
|
|
70
|
+
const kv = yield* Service65;
|
|
71
71
|
const decodeResults = Schema.decodeUnknownEffect(Schema.Array(Result2));
|
|
72
72
|
const cooldowns = new Map;
|
|
73
73
|
const preferred = new Map;
|
|
@@ -124,7 +124,7 @@ var layer = Layer.effect(Service17, Effect.gen(function* () {
|
|
|
124
124
|
}
|
|
125
125
|
return choice ? state.get().providers.get(choice) : undefined;
|
|
126
126
|
});
|
|
127
|
-
return
|
|
127
|
+
return Service61.of({
|
|
128
128
|
transform: state.transform,
|
|
129
129
|
reload: state.reload,
|
|
130
130
|
providers: Effect.fn("WebSearch.providers")(function* () {
|
|
@@ -184,10 +184,10 @@ function cooldownMillis(value, now) {
|
|
|
184
184
|
const date = Date.parse(value);
|
|
185
185
|
return Number.isFinite(date) ? Math.max(0, date - now) : 60000;
|
|
186
186
|
}
|
|
187
|
-
var
|
|
188
|
-
service:
|
|
187
|
+
var node65 = makeLocationNode({
|
|
188
|
+
service: Service61,
|
|
189
189
|
layer,
|
|
190
|
-
deps: [
|
|
190
|
+
deps: [node84, node69]
|
|
191
191
|
});
|
|
192
192
|
|
|
193
|
-
export {
|
|
193
|
+
export { ID9, Provider2, Input14, Result2, Response2, ProviderKey2, Selection2, ProviderRequiredError2, ProviderNotFoundError2, DisabledError2, RequestError2, Service61, node65, exports_websearch3, Event13 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
|
-
|
|
4
|
-
} from "./formatter-
|
|
3
|
+
node84
|
|
4
|
+
} from "./formatter-1g7m4r41.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./formatter-
|
|
9
|
-
import {
|
|
10
|
-
Service67,
|
|
11
|
-
node70
|
|
12
|
-
} from "./formatter-9ht5y0bp.js";
|
|
6
|
+
Service29,
|
|
7
|
+
node33
|
|
8
|
+
} from "./formatter-1ga0n8k4.js";
|
|
13
9
|
import {
|
|
14
10
|
Service56,
|
|
15
|
-
|
|
16
|
-
} from "./formatter-
|
|
11
|
+
node60
|
|
12
|
+
} from "./formatter-rtfynwzt.js";
|
|
13
|
+
import {
|
|
14
|
+
Service30,
|
|
15
|
+
node34
|
|
16
|
+
} from "./formatter-tvejcd1c.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
19
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -22,26 +22,26 @@ import {
|
|
|
22
22
|
var exports_mcp3 = {};
|
|
23
23
|
__export(exports_mcp3, {
|
|
24
24
|
McpTool: () => exports_mcp3,
|
|
25
|
-
Service: () =>
|
|
26
|
-
layer: () =>
|
|
27
|
-
name: () =>
|
|
25
|
+
Service: () => Service28,
|
|
26
|
+
layer: () => layer12,
|
|
27
|
+
name: () => name14,
|
|
28
28
|
namespace: () => namespace2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node32
|
|
30
30
|
});
|
|
31
31
|
import { ToolFailure } from "@opencode/ai";
|
|
32
32
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
33
33
|
import { Context, Effect, Fiber, Layer, PubSub, Semaphore, Stream } from "effect";
|
|
34
34
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
35
35
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
36
|
-
var
|
|
36
|
+
var name14 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service28 extends Context.Service()("@opencode/McpTool") {
|
|
39
39
|
}
|
|
40
|
-
var
|
|
41
|
-
const mcp = yield*
|
|
42
|
-
const tools = yield*
|
|
40
|
+
var layer12 = Layer.effect(Service28, Effect.gen(function* () {
|
|
41
|
+
const mcp = yield* Service29;
|
|
42
|
+
const tools = yield* Service30;
|
|
43
43
|
const bus = yield* Service79;
|
|
44
|
-
const permission = yield*
|
|
44
|
+
const permission = yield* Service56;
|
|
45
45
|
const lock = Semaphore.makeUnsafe(1);
|
|
46
46
|
let discovered = [];
|
|
47
47
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -62,7 +62,7 @@ var layer13 = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
62
62
|
output: tool.outputSchema ?? {},
|
|
63
63
|
execute: (input, context) => Effect.gen(function* () {
|
|
64
64
|
yield* permission.assert({
|
|
65
|
-
action:
|
|
65
|
+
action: name14(tool.server, tool.name),
|
|
66
66
|
resources: ["*"],
|
|
67
67
|
save: ["*"],
|
|
68
68
|
metadata: {},
|
|
@@ -99,7 +99,7 @@ var layer13 = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
99
99
|
output: result.structured ?? (text === "" ? null : text),
|
|
100
100
|
...content.length === 0 ? {} : { content }
|
|
101
101
|
};
|
|
102
|
-
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${
|
|
102
|
+
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${name14(tool.server, tool.name)}` })))
|
|
103
103
|
});
|
|
104
104
|
}
|
|
105
105
|
});
|
|
@@ -112,12 +112,12 @@ var layer13 = Layer.effect(Service33, Effect.gen(function* () {
|
|
|
112
112
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
113
113
|
const updates = yield* PubSub.subscribe(changes);
|
|
114
114
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
115
|
-
return
|
|
115
|
+
return Service28.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
116
116
|
}));
|
|
117
|
-
var
|
|
118
|
-
service:
|
|
119
|
-
layer:
|
|
120
|
-
deps: [
|
|
117
|
+
var node32 = makeLocationNode({
|
|
118
|
+
service: Service28,
|
|
119
|
+
layer: layer12,
|
|
120
|
+
deps: [node34, node33, node84, node60]
|
|
121
121
|
});
|
|
122
122
|
|
|
123
|
-
export { namespace2,
|
|
123
|
+
export { namespace2, name14, Service28, layer12, node32, exports_mcp3 };
|
|
@@ -7,8 +7,8 @@ var exports_lsp = {};
|
|
|
7
7
|
__export(exports_lsp, {
|
|
8
8
|
ConfigLSPV1: () => exports_lsp,
|
|
9
9
|
Disabled: () => Disabled2,
|
|
10
|
-
Entry: () =>
|
|
11
|
-
Info: () =>
|
|
10
|
+
Entry: () => Entry2,
|
|
11
|
+
Info: () => Info8,
|
|
12
12
|
builtinServerIds: () => builtinServerIds2,
|
|
13
13
|
requiresExtensionsForCustomServers: () => requiresExtensionsForCustomServers2
|
|
14
14
|
});
|
|
@@ -16,7 +16,7 @@ import { Schema } from "effect";
|
|
|
16
16
|
var Disabled2 = Schema.Struct({
|
|
17
17
|
disabled: Schema.Literal(true)
|
|
18
18
|
});
|
|
19
|
-
var
|
|
19
|
+
var Entry2 = Schema.Union([
|
|
20
20
|
Disabled2,
|
|
21
21
|
Schema.Struct({
|
|
22
22
|
command: Schema.mutable(Schema.Array(Schema.String)),
|
|
@@ -79,6 +79,6 @@ var requiresExtensionsForCustomServers2 = Schema.makeFilter((data) => {
|
|
|
79
79
|
});
|
|
80
80
|
return ok ? undefined : "For custom LSP servers, 'extensions' array is required.";
|
|
81
81
|
});
|
|
82
|
-
var
|
|
82
|
+
var Info8 = Schema.Union([Schema.Boolean, Schema.Record(Schema.String, Entry2)]).check(requiresExtensionsForCustomServers2);
|
|
83
83
|
|
|
84
|
-
export { Disabled2,
|
|
84
|
+
export { Disabled2, Entry2, builtinServerIds2, requiresExtensionsForCustomServers2, Info8, exports_lsp };
|
|
@@ -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: () => configured8,
|
|
11
|
+
layer: () => layer18,
|
|
12
|
+
make: () => make15,
|
|
13
|
+
node: () => node45,
|
|
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: () => make15()
|
|
20
20
|
});
|
|
21
|
-
function
|
|
21
|
+
function make15(input = {}) {
|
|
22
22
|
return {
|
|
23
23
|
name: input.name ?? "opencode",
|
|
24
24
|
version: input.version ?? "unknown",
|
|
@@ -28,8 +28,8 @@ function make23(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 layer18 = (input) => Layer.succeed(Metadata2, make15(input));
|
|
32
|
+
var configured8 = (input) => makeGlobalNode({ service: Metadata2, layer: layer18(input), deps: [] });
|
|
33
|
+
var node45 = configured8();
|
|
34
34
|
|
|
35
|
-
export { Metadata2,
|
|
35
|
+
export { Metadata2, make15, useragent2, layer18, configured8, node45, exports_app };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./formatter-gftt206x.js";
|
|
4
4
|
import {
|
|
5
5
|
SessionSchema2
|
|
6
|
-
} from "./formatter-
|
|
6
|
+
} from "./formatter-y6f0p4jw.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -19,7 +19,7 @@ __export(exports_error2, {
|
|
|
19
19
|
InboxConflictError: () => InboxConflictError2,
|
|
20
20
|
MessageDecodeError: () => MessageDecodeError2,
|
|
21
21
|
MessageNotFoundError: () => MessageNotFoundError2,
|
|
22
|
-
NotFoundError: () =>
|
|
22
|
+
NotFoundError: () => NotFoundError7,
|
|
23
23
|
PromptConflictError: () => PromptConflictError2,
|
|
24
24
|
SessionErrors: () => exports_error2,
|
|
25
25
|
SkillNotFoundError: () => SkillNotFoundError2,
|
|
@@ -32,7 +32,7 @@ import { Agent } from "@opencode/schema/agent";
|
|
|
32
32
|
import { Skill } from "@opencode/schema/skill";
|
|
33
33
|
import { SessionError } from "@opencode/schema/session-error";
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class NotFoundError7 extends Schema.TaggedError()("Session.NotFoundError", {
|
|
36
36
|
sessionID: SessionSchema2.ID
|
|
37
37
|
}) {
|
|
38
38
|
}
|
|
@@ -123,4 +123,4 @@ class SkillNotFoundError2 extends Schema.TaggedError()("Session.SkillNotFoundErr
|
|
|
123
123
|
}) {
|
|
124
124
|
}
|
|
125
125
|
|
|
126
|
-
export {
|
|
126
|
+
export { NotFoundError7, MessageNotFoundError2, ForkEmptyError2, MessageDecodeError2, AgentNotFoundError2, StepFailedError2, UserInterruptedError2, PromptConflictError2, SyntheticConflictError2, AttachmentError2, CompactionConflictError2, BusyError2, InboxConflictError2, SkillNotFoundError2, exports_error2 };
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
var exports_mcp_codemode_exclusion = {};
|
|
7
7
|
__export(exports_mcp_codemode_exclusion, {
|
|
8
8
|
McpCodeModeExclusionPlugin: () => exports_mcp_codemode_exclusion,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin13
|
|
10
10
|
});
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
var urls = [/^https:\/\/executor\.sh\/[^/]+\/mcp$/];
|
|
14
|
-
var
|
|
14
|
+
var Plugin13 = define({
|
|
15
15
|
id: "opencode.mcp.codemode.exclusion",
|
|
16
16
|
effect: Effect.fn(function* (ctx) {
|
|
17
17
|
yield* ctx.mcp.transform((editor) => {
|
|
@@ -34,4 +34,4 @@ var Plugin22 = define({
|
|
|
34
34
|
})
|
|
35
35
|
});
|
|
36
36
|
|
|
37
|
-
export {
|
|
37
|
+
export { Plugin13, exports_mcp_codemode_exclusion };
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
// src/session/model-transport.ts
|
|
9
9
|
var exports_model_transport = {};
|
|
10
10
|
__export(exports_model_transport, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service24,
|
|
12
12
|
SessionModelTransport: () => exports_model_transport,
|
|
13
|
-
layer: () =>
|
|
13
|
+
layer: () => layer11,
|
|
14
14
|
makeLayer: () => makeLayer2,
|
|
15
|
-
node: () =>
|
|
15
|
+
node: () => node28
|
|
16
16
|
});
|
|
17
17
|
import {
|
|
18
18
|
WebSocketTransport
|
|
@@ -32,7 +32,7 @@ var events = Metric.counter("opencode_session_websocket_events_total", {
|
|
|
32
32
|
});
|
|
33
33
|
var metric = (event, attributes = {}) => Metric.update(events.pipe(Metric.withAttributes({ event, ...attributes })), 1);
|
|
34
34
|
|
|
35
|
-
class
|
|
35
|
+
class Service24 extends Context.Service()("@opencode/SessionModelTransport") {
|
|
36
36
|
}
|
|
37
37
|
var transportError = (message, input) => new AIError({
|
|
38
38
|
reason: new TransportError({ message, transport: "websocket", ...input })
|
|
@@ -56,7 +56,7 @@ var observationFrame = (observation) => {
|
|
|
56
56
|
return Effect.fail(observation.error);
|
|
57
57
|
};
|
|
58
58
|
var observationTerminal = (observation) => observation.type !== "frame";
|
|
59
|
-
var makeLayer2 = (connector) => Layer.effect(
|
|
59
|
+
var makeLayer2 = (connector) => Layer.effect(Service24, Effect.gen(function* () {
|
|
60
60
|
const scope = yield* Scope.Scope;
|
|
61
61
|
const states = new Map;
|
|
62
62
|
const state = (sessionID) => {
|
|
@@ -356,11 +356,11 @@ var makeLayer2 = (connector) => Layer.effect(Service38, Effect.gen(function* ()
|
|
|
356
356
|
}, { discard: true });
|
|
357
357
|
});
|
|
358
358
|
yield* Effect.addFinalizer(() => closeAll);
|
|
359
|
-
return
|
|
359
|
+
return Service24.of({ bind, close, closeAll });
|
|
360
360
|
}));
|
|
361
|
-
var
|
|
361
|
+
var layer11 = Layer.unwrap(Effect.map(Socket.WebSocketConstructor, (constructor) => makeLayer2({
|
|
362
362
|
open: (input) => WebSocketTransport.open(input).pipe(Effect.provideService(Socket.WebSocketConstructor, constructor))
|
|
363
363
|
})));
|
|
364
|
-
var
|
|
364
|
+
var node28 = makeGlobalNode({ service: Service24, layer: layer11, deps: [webSocketConstructor2] });
|
|
365
365
|
|
|
366
|
-
export {
|
|
366
|
+
export { Service24, makeLayer2, layer11, node28, exports_model_transport };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./formatter-
|
|
2
|
+
Ref2
|
|
3
|
+
} from "./formatter-fy5dbkry.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -9,26 +9,26 @@ import {
|
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service52,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node56
|
|
15
15
|
});
|
|
16
16
|
import { Context, Effect, Layer } from "effect";
|
|
17
17
|
import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
18
18
|
import { Node } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
20
20
|
import path from "path";
|
|
21
|
-
class
|
|
21
|
+
class Service52 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
22
22
|
static get(ref) {
|
|
23
|
-
return Layer.unwrap(Effect.map(
|
|
23
|
+
return Layer.unwrap(Effect.map(Service52, (locations) => locations.get(ref)));
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
var
|
|
26
|
+
var node56 = LayerNode.unbound(Service52, Node.tags.values.global);
|
|
27
27
|
function canonical3(ref) {
|
|
28
|
-
return
|
|
28
|
+
return Ref2.make({
|
|
29
29
|
directory: AbsolutePath.make(process.platform === "win32" ? path.normalize(ref.directory) : ref.directory),
|
|
30
30
|
workspaceID: ref.workspaceID
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
|
|
34
|
-
export {
|
|
34
|
+
export { Service52, node56, canonical3, exports_location_service_map };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./formatter-
|
|
2
|
+
Service78
|
|
3
|
+
} from "./formatter-x93xphn0.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./formatter-
|
|
5
|
+
Service56
|
|
6
|
+
} from "./formatter-rtfynwzt.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID9,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError2,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./formatter-
|
|
13
|
+
Service61
|
|
14
|
+
} from "./formatter-35ybfb31.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
17
|
} from "./formatter-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch2 = {};
|
|
21
|
+
__export(exports_websearch2, {
|
|
22
|
+
Input: () => Input6,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin38,
|
|
25
|
+
WebSearchTool: () => exports_websearch2,
|
|
26
|
+
description: () => description2,
|
|
27
|
+
name: () => name6
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/unstable/http";
|
|
32
|
-
var
|
|
32
|
+
var name6 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description2 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input6 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID9,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin38 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
53
|
-
const forms = yield*
|
|
54
|
-
const websearch = yield*
|
|
52
|
+
const permission = yield* Service56;
|
|
53
|
+
const forms = yield* Service78;
|
|
54
|
+
const websearch = yield* Service61;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name6,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description2,
|
|
59
|
+
input: Input6,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name6,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,9 +176,9 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
yield* ctx.session.hook("context", (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name6];
|
|
180
180
|
}));
|
|
181
181
|
})
|
|
182
182
|
};
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { name6, NO_RESULTS2, description2, Input6, Plugin38, exports_websearch2 };
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./formatter-
|
|
2
|
+
Service72,
|
|
3
|
+
node77
|
|
4
|
+
} from "./formatter-fy5dbkry.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./formatter-
|
|
6
|
+
Service27
|
|
7
|
+
} from "./formatter-1x11rq2a.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./formatter-
|
|
9
|
+
Service44,
|
|
10
|
+
node49
|
|
11
|
+
} from "./formatter-63bkm2xc.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./formatter-
|
|
13
|
+
node20
|
|
14
|
+
} from "./formatter-rra39r6b.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./formatter-
|
|
16
|
+
node4
|
|
17
|
+
} from "./formatter-tyq6zn03.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
20
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -28,9 +28,9 @@ __export(exports_refresh, {
|
|
|
28
28
|
import { Effect, Layer } from "effect";
|
|
29
29
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
30
30
|
var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
31
|
-
const location = yield*
|
|
32
|
-
const plugins = yield*
|
|
33
|
-
const worktrees = yield*
|
|
31
|
+
const location = yield* Service72;
|
|
32
|
+
const plugins = yield* Service27;
|
|
33
|
+
const worktrees = yield* Service44;
|
|
34
34
|
if (location.workspaceID)
|
|
35
35
|
return;
|
|
36
36
|
yield* plugins.awaitActivation.pipe(Effect.andThen(worktrees.refresh()), Effect.catchCause((cause) => Effect.logWarning("worktree refresh failed", { cause })), Effect.forkScoped);
|
|
@@ -38,7 +38,7 @@ var layer = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
38
38
|
var node3 = makeLocationNode({
|
|
39
39
|
name: "worktree-refresh",
|
|
40
40
|
layer,
|
|
41
|
-
deps: [
|
|
41
|
+
deps: [node49, node77, node20, node4]
|
|
42
42
|
});
|
|
43
43
|
|
|
44
44
|
export { node3, exports_refresh };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service79,
|
|
4
|
-
|
|
5
|
-
} from "./formatter-
|
|
4
|
+
node84
|
|
5
|
+
} from "./formatter-1g7m4r41.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
8
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -11,28 +11,28 @@ import {
|
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service5,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
|
-
layer: () =>
|
|
17
|
-
node: () =>
|
|
16
|
+
layer: () => layer4,
|
|
17
|
+
node: () => node7
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service5 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var
|
|
25
|
+
var layer4 = Layer.effect(Service5, Effect.gen(function* () {
|
|
26
26
|
const bus = yield* Service79;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service5.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {})), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node7 = makeGlobalNode({ service: Service5, layer: layer4, deps: [node84] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service5, layer4, node7, exports_sdk };
|