@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,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./formatter-
|
|
3
|
+
} from "./formatter-1g7m4r41.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./formatter-
|
|
5
|
+
Service72
|
|
6
|
+
} from "./formatter-fy5dbkry.js";
|
|
7
7
|
import {
|
|
8
8
|
PromptsChanged2,
|
|
9
|
-
|
|
10
|
-
} from "./formatter-
|
|
9
|
+
Service29
|
|
10
|
+
} from "./formatter-1ga0n8k4.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
13
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
var exports_command = {};
|
|
17
17
|
__export(exports_command, {
|
|
18
18
|
CommandPlugin: () => exports_command,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin11
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect, Stream } from "effect";
|
|
@@ -193,11 +193,11 @@ If you're uncertain about something and can't verify it with these tools, say "I
|
|
|
193
193
|
`;
|
|
194
194
|
|
|
195
195
|
// src/plugin/command.ts
|
|
196
|
-
var
|
|
196
|
+
var Plugin11 = define({
|
|
197
197
|
id: "opencode.command",
|
|
198
198
|
effect: Effect.fn(function* (ctx) {
|
|
199
|
-
const location = yield*
|
|
200
|
-
const mcp = yield*
|
|
199
|
+
const location = yield* Service72;
|
|
200
|
+
const mcp = yield* Service29;
|
|
201
201
|
const bus = yield* Service79;
|
|
202
202
|
const loaded = { prompts: [] };
|
|
203
203
|
yield* bus.subscribe(PromptsChanged2).pipe(Stream.runForEach(() => mcp.prompts().pipe(Effect.tap((prompts) => Effect.sync(() => loaded.prompts = prompts)), Effect.andThen(ctx.command.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
@@ -280,4 +280,4 @@ function sanitize(value) {
|
|
|
280
280
|
var argsRegex = /(?:\[Image\s+\d+\]|"[^"]*"|'[^']*'|[^\s"']+)/gi;
|
|
281
281
|
var quoteTrimRegex = /^["']|["']$/g;
|
|
282
282
|
|
|
283
|
-
export {
|
|
283
|
+
export { Plugin11, exports_command };
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
node81
|
|
10
|
-
} from "./formatter-y74fwv73.js";
|
|
11
|
-
import {
|
|
12
|
-
Service75,
|
|
8
|
+
Service74,
|
|
13
9
|
node79
|
|
14
|
-
} from "./formatter-
|
|
10
|
+
} from "./formatter-9fwp41vh.js";
|
|
11
|
+
import {
|
|
12
|
+
Service72,
|
|
13
|
+
node77
|
|
14
|
+
} from "./formatter-fy5dbkry.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
17
|
} from "./formatter-kg06axw8.js";
|
|
@@ -22,34 +22,34 @@ import {
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
|
+
ID: () => ID4,
|
|
27
|
+
Service: () => Service45,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
30
|
-
noopLayer: () =>
|
|
29
|
+
node: () => node50,
|
|
30
|
+
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
33
33
|
import path from "path";
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID4 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service45 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service45, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service74;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service72;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID4.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -122,25 +122,25 @@ var layer = Layer.effect(Service65, Effect.gen(function* () {
|
|
|
122
122
|
for (const [file, snapshot] of input.files) {
|
|
123
123
|
const absolute = path.resolve(worktree, file);
|
|
124
124
|
if (!FSUtil.contains(worktree, absolute))
|
|
125
|
-
return yield* new
|
|
125
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
126
126
|
files.set(file, TreeID2.make(snapshot));
|
|
127
127
|
}
|
|
128
128
|
return files;
|
|
129
129
|
});
|
|
130
130
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
131
131
|
if (!enabled())
|
|
132
|
-
return yield* new
|
|
132
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
133
133
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
134
134
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
135
135
|
});
|
|
136
|
-
return
|
|
136
|
+
return Service45.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
137
137
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
138
|
-
var
|
|
139
|
-
service:
|
|
138
|
+
var node50 = makeLocationNode({
|
|
139
|
+
service: Service45,
|
|
140
140
|
layer,
|
|
141
|
-
deps: [FSUtil.node,
|
|
141
|
+
deps: [FSUtil.node, node79, Global.node, node77]
|
|
142
142
|
});
|
|
143
|
-
var
|
|
143
|
+
var noopLayer2 = Layer.succeed(Service45, Service45.of({
|
|
144
144
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
145
145
|
reload: () => Effect.void,
|
|
146
146
|
capture: () => Effect.undefined,
|
|
@@ -149,13 +149,13 @@ var noopLayer3 = Layer.succeed(Service65, Service65.of({
|
|
|
149
149
|
restore: () => Effect.void
|
|
150
150
|
}));
|
|
151
151
|
function failure(operation, cause) {
|
|
152
|
-
if (cause instanceof
|
|
152
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
153
153
|
return cause;
|
|
154
|
-
return new
|
|
154
|
+
return new Error3({
|
|
155
155
|
operation,
|
|
156
156
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
157
157
|
cause
|
|
158
158
|
});
|
|
159
159
|
}
|
|
160
160
|
|
|
161
|
-
export {
|
|
161
|
+
export { ID4, Error3, Service45, node50, noopLayer2, exports_snapshot2 };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./formatter-
|
|
2
|
+
ID16,
|
|
3
|
+
Service76
|
|
4
|
+
} from "./formatter-24g3tesp.js";
|
|
5
5
|
import {
|
|
6
6
|
isAISDK2,
|
|
7
7
|
packageName2
|
|
8
|
-
} from "./formatter-
|
|
8
|
+
} from "./formatter-dt849bc4.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/provider/llmgateway.ts
|
|
11
11
|
import { Effect } from "effect";
|
|
@@ -13,7 +13,7 @@ import { define } from "@opencode/plugin/effect/plugin";
|
|
|
13
13
|
var LLMGatewayPlugin2 = define({
|
|
14
14
|
id: "opencode.provider.llmgateway",
|
|
15
15
|
effect: Effect.fn(function* (ctx) {
|
|
16
|
-
const integrations = yield*
|
|
16
|
+
const integrations = yield* Service76;
|
|
17
17
|
const configured = new Set((yield* integrations.list()).map((integration) => integration.id));
|
|
18
18
|
yield* ctx.catalog.transform((evt) => {
|
|
19
19
|
for (const item of evt.provider.list()) {
|
|
@@ -25,7 +25,7 @@ var LLMGatewayPlugin2 = define({
|
|
|
25
25
|
continue;
|
|
26
26
|
if (item.provider.settings?.baseURL !== "https://api.llmgateway.io/v1")
|
|
27
27
|
continue;
|
|
28
|
-
if (!configured.has(
|
|
28
|
+
if (!configured.has(ID16.make(item.provider.id)))
|
|
29
29
|
continue;
|
|
30
30
|
evt.provider.update(item.provider.id, (provider) => {
|
|
31
31
|
provider.headers = {
|
|
@@ -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
|
+
Service72,
|
|
7
|
+
node77
|
|
8
|
+
} from "./formatter-fy5dbkry.js";
|
|
9
9
|
import {
|
|
10
10
|
reconcile2,
|
|
11
11
|
create3
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info16,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service43,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node48
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info16, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -45,11 +45,11 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service43 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service72;
|
|
53
53
|
const bus = yield* Service79;
|
|
54
54
|
const root = yield* Effect.scope;
|
|
55
55
|
const fork = yield* FiberSet.makeRuntime();
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info16));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -115,7 +115,7 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
115
115
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
116
116
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return Service43.of({
|
|
119
119
|
transform: state.transform,
|
|
120
120
|
reload: state.reload,
|
|
121
121
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -161,10 +161,10 @@ var layer = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
161
161
|
})
|
|
162
162
|
});
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
165
|
-
service:
|
|
164
|
+
var node48 = makeLocationNode({
|
|
165
|
+
service: Service43,
|
|
166
166
|
layer,
|
|
167
|
-
deps: [FSUtil.node,
|
|
167
|
+
deps: [FSUtil.node, node77, node84]
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
export { Base2, BranchList2, FileStatus2,
|
|
170
|
+
export { Base2, BranchList2, FileStatus2, Info16, Mode2, DiffError2, Service43, node48, exports_vcs };
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
var exports_mcp5 = {};
|
|
10
10
|
__export(exports_mcp5, {
|
|
11
11
|
ConfigMCPV1: () => exports_mcp5,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info9,
|
|
13
13
|
Local: () => Local2,
|
|
14
14
|
OAuth: () => OAuth2,
|
|
15
15
|
Remote: () => Remote2
|
|
@@ -64,6 +64,6 @@ var Remote2 = Schema.Struct({
|
|
|
64
64
|
description: "Timeout in ms for MCP server requests. Defaults to 5000 (5 seconds) if not specified."
|
|
65
65
|
})
|
|
66
66
|
}).annotate({ identifier: "McpRemoteConfig" });
|
|
67
|
-
var
|
|
67
|
+
var Info9 = Schema.Union([Local2, Remote2]).annotate({ discriminator: "type" });
|
|
68
68
|
|
|
69
|
-
export { Local2, OAuth2, Remote2,
|
|
69
|
+
export { Local2, OAuth2, Remote2, Info9, exports_mcp5 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./formatter-
|
|
2
|
+
Service70
|
|
3
|
+
} from "./formatter-zetmaeve.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -19,7 +19,7 @@ var FORCE_KILL_AFTER = Duration.seconds(2);
|
|
|
19
19
|
var OUTGOING_CAPACITY = 64;
|
|
20
20
|
var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
21
21
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
22
|
-
const environment = yield*
|
|
22
|
+
const environment = yield* Service70;
|
|
23
23
|
const scope = yield* Effect.scope;
|
|
24
24
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
25
25
|
const buffer = new ReadBuffer;
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./formatter-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./formatter-
|
|
5
|
+
Service72
|
|
6
|
+
} from "./formatter-fy5dbkry.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./formatter-
|
|
8
|
+
Service33
|
|
9
|
+
} from "./formatter-aefq2yfw.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./formatter-
|
|
11
|
+
Service44
|
|
12
|
+
} from "./formatter-63bkm2xc.js";
|
|
13
13
|
import {
|
|
14
14
|
observe2
|
|
15
15
|
} from "./formatter-qsdy395h.js";
|
|
@@ -21,19 +21,19 @@ import {
|
|
|
21
21
|
var exports_worktree = {};
|
|
22
22
|
__export(exports_worktree, {
|
|
23
23
|
ConfigWorktreePlugin: () => exports_worktree,
|
|
24
|
-
Plugin: () =>
|
|
24
|
+
Plugin: () => Plugin27
|
|
25
25
|
});
|
|
26
26
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
27
27
|
import { Effect } from "effect";
|
|
28
28
|
import path from "path";
|
|
29
29
|
import { Global } from "@opencode/util/global";
|
|
30
|
-
var
|
|
30
|
+
var Plugin27 = define({
|
|
31
31
|
id: "opencode.config.worktree",
|
|
32
32
|
effect: Effect.fn(function* (ctx) {
|
|
33
|
-
const config = yield*
|
|
34
|
-
const location = yield*
|
|
33
|
+
const config = yield* Service33;
|
|
34
|
+
const location = yield* Service72;
|
|
35
35
|
const global = yield* Global.Service;
|
|
36
|
-
const worktrees = yield*
|
|
36
|
+
const worktrees = yield* Service44;
|
|
37
37
|
const loaded = yield* observe2(config, ctx.event, worktrees.reload());
|
|
38
38
|
yield* worktrees.transform((editor) => {
|
|
39
39
|
for (const entry of loaded.entries) {
|
|
@@ -48,4 +48,4 @@ var Plugin28 = define({
|
|
|
48
48
|
})
|
|
49
49
|
});
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Plugin27, exports_worktree };
|
|
@@ -1,9 +1,9 @@
|
|
|
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
|
__export
|
|
9
9
|
} from "./formatter-9rqn6x4v.js";
|
|
@@ -12,18 +12,18 @@ import {
|
|
|
12
12
|
var exports_question = {};
|
|
13
13
|
__export(exports_question, {
|
|
14
14
|
CancelledError: () => CancelledError2,
|
|
15
|
-
Input: () =>
|
|
15
|
+
Input: () => Input13,
|
|
16
16
|
Output: () => Output9,
|
|
17
17
|
Plugin: () => Plugin45,
|
|
18
18
|
QuestionTool: () => exports_question,
|
|
19
19
|
description: () => description6,
|
|
20
|
-
name: () =>
|
|
20
|
+
name: () => name13,
|
|
21
21
|
toModelContent: () => toModelContent7
|
|
22
22
|
});
|
|
23
23
|
import { ToolFailure } from "@opencode/ai";
|
|
24
24
|
import { Effect, Schema } from "effect";
|
|
25
25
|
import { Question } from "@opencode/schema/question";
|
|
26
|
-
var
|
|
26
|
+
var name13 = "question";
|
|
27
27
|
var description6 = `Use this tool when you need to ask the user questions during execution. This allows you to:
|
|
28
28
|
1. Gather user preferences or requirements
|
|
29
29
|
2. Clarify ambiguous instructions
|
|
@@ -34,7 +34,7 @@ Usage notes:
|
|
|
34
34
|
- A "Type your own answer" option is added automatically; don't include a separate option for free form answers
|
|
35
35
|
- Set \`multiple: true\` to allow selecting more than one option
|
|
36
36
|
- If you recommend a specific option, make that the first option in the list and add "(Recommended)" at the end of the label`;
|
|
37
|
-
var
|
|
37
|
+
var Input13 = Schema.Struct({
|
|
38
38
|
questions: Schema.Array(Question.Prompt).check(Schema.isNonEmpty()).annotate({ description: "Questions to ask" })
|
|
39
39
|
});
|
|
40
40
|
var Output9 = Schema.Struct({
|
|
@@ -53,13 +53,13 @@ var toModelContent7 = (questions, answers) => {
|
|
|
53
53
|
var Plugin45 = {
|
|
54
54
|
id: "opencode.tool.question",
|
|
55
55
|
effect: Effect.fn("QuestionTool.Plugin")(function* (ctx) {
|
|
56
|
-
const forms = yield*
|
|
57
|
-
const permission = yield*
|
|
56
|
+
const forms = yield* Service78;
|
|
57
|
+
const permission = yield* Service56;
|
|
58
58
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
59
|
-
name:
|
|
59
|
+
name: name13,
|
|
60
60
|
options: { codemode: false },
|
|
61
61
|
description: description6,
|
|
62
|
-
input:
|
|
62
|
+
input: Input13,
|
|
63
63
|
output: Output9,
|
|
64
64
|
execute: (input, context) => permission.assert({
|
|
65
65
|
action: "question",
|
|
@@ -115,4 +115,4 @@ function toField(question, index) {
|
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
117
|
|
|
118
|
-
export {
|
|
118
|
+
export { name13, description6, Input13, Output9, CancelledError2, toModelContent7, Plugin45, exports_question };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
|
-
|
|
4
|
-
} from "./formatter-
|
|
3
|
+
node84
|
|
4
|
+
} from "./formatter-1g7m4r41.js";
|
|
5
5
|
import {
|
|
6
6
|
create3
|
|
7
7
|
} from "./formatter-kg06axw8.js";
|
|
@@ -13,21 +13,21 @@ import {
|
|
|
13
13
|
var exports_command5 = {};
|
|
14
14
|
__export(exports_command5, {
|
|
15
15
|
Command: () => exports_command5,
|
|
16
|
-
Event: () =>
|
|
16
|
+
Event: () => Event14,
|
|
17
17
|
ExecutionError: () => ExecutionError2,
|
|
18
|
-
Info: () =>
|
|
19
|
-
NotFoundError: () =>
|
|
20
|
-
Service: () =>
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
18
|
+
Info: () => Info24,
|
|
19
|
+
NotFoundError: () => NotFoundError8,
|
|
20
|
+
Service: () => Service66,
|
|
21
|
+
layer: () => layer23,
|
|
22
|
+
node: () => node70
|
|
23
23
|
});
|
|
24
24
|
import { Command } from "@opencode/schema/command";
|
|
25
25
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
26
26
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
27
|
-
import { Event as
|
|
28
|
-
var
|
|
27
|
+
import { Event as Event14 } from "@opencode/schema/command";
|
|
28
|
+
var Info24 = Command.Info;
|
|
29
29
|
|
|
30
|
-
class
|
|
30
|
+
class NotFoundError8 extends Schema.TaggedError()("Command.NotFoundError", {
|
|
31
31
|
command: Schema.String,
|
|
32
32
|
message: Schema.String
|
|
33
33
|
}) {
|
|
@@ -39,9 +39,9 @@ class ExecutionError2 extends Schema.TaggedError()("Command.ExecutionError", {
|
|
|
39
39
|
}) {
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
class
|
|
42
|
+
class Service66 extends Context.Service()("@opencode/Command") {
|
|
43
43
|
}
|
|
44
|
-
var
|
|
44
|
+
var layer23 = Layer.effect(Service66, Effect.gen(function* () {
|
|
45
45
|
const bus = yield* Service79;
|
|
46
46
|
const state = create3({
|
|
47
47
|
name: "command",
|
|
@@ -51,11 +51,11 @@ var layer21 = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
51
51
|
}),
|
|
52
52
|
notify: () => bus.publish(Command.Event.Updated, {}).pipe(Effect.asVoid)
|
|
53
53
|
});
|
|
54
|
-
const info = (definition) =>
|
|
54
|
+
const info = (definition) => Info24.make({
|
|
55
55
|
name: definition.name,
|
|
56
56
|
description: definition.description
|
|
57
57
|
});
|
|
58
|
-
return
|
|
58
|
+
return Service66.of({
|
|
59
59
|
reload: state.reload,
|
|
60
60
|
transform: state.transform,
|
|
61
61
|
get: Effect.fn("Command.get")((name) => Effect.sync(() => {
|
|
@@ -66,15 +66,15 @@ var layer21 = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
66
66
|
execute: Effect.fn("Command.execute")(function* (input) {
|
|
67
67
|
const definition = state.get().get(input.name);
|
|
68
68
|
if (!definition)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError8({ command: input.name, message: `Command not found: ${input.name}` });
|
|
70
70
|
return yield* definition.execute(input.invocation).pipe(Effect.tapError((error) => Effect.logError("command execution failed", { command: input.name, error })), Effect.mapError((error) => new ExecutionError2({ command: input.name, message: errorMessage(error) })));
|
|
71
71
|
})
|
|
72
72
|
});
|
|
73
73
|
}));
|
|
74
|
-
var
|
|
75
|
-
service:
|
|
76
|
-
layer:
|
|
77
|
-
deps: [
|
|
74
|
+
var node70 = makeLocationNode({
|
|
75
|
+
service: Service66,
|
|
76
|
+
layer: layer23,
|
|
77
|
+
deps: [node84]
|
|
78
78
|
});
|
|
79
79
|
function errorMessage(error) {
|
|
80
80
|
if (error instanceof Error)
|
|
@@ -86,4 +86,4 @@ function errorMessage(error) {
|
|
|
86
86
|
return "Command execution failed";
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
-
export {
|
|
89
|
+
export { Info24, NotFoundError8, ExecutionError2, Service66, layer23, node70, exports_command5, Event14 };
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./formatter-
|
|
2
|
+
ID8,
|
|
3
|
+
Service59
|
|
4
|
+
} from "./formatter-efcedsnh.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./formatter-
|
|
6
|
+
Service72
|
|
7
|
+
} from "./formatter-fy5dbkry.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./formatter-
|
|
9
|
+
Service33
|
|
10
|
+
} from "./formatter-aefq2yfw.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
Service40,
|
|
13
13
|
args2
|
|
14
|
-
} from "./formatter-
|
|
14
|
+
} from "./formatter-9e77hs8e.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
17
|
-
} from "./formatter-
|
|
16
|
+
Service17
|
|
17
|
+
} from "./formatter-22mjh9ty.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
} from "./formatter-
|
|
19
|
+
make10
|
|
20
|
+
} from "./formatter-tmr90kjh.js";
|
|
21
21
|
import {
|
|
22
22
|
parseOption2
|
|
23
23
|
} from "./formatter-5daktx2q.js";
|
|
@@ -44,7 +44,7 @@ var decodeCommand = Schema.decodeUnknownOption(ConfigCommand.Info);
|
|
|
44
44
|
var Plugin31 = define({
|
|
45
45
|
id: "opencode.config.command",
|
|
46
46
|
effect: Effect.fn(function* (ctx) {
|
|
47
|
-
const config = yield*
|
|
47
|
+
const config = yield* Service33;
|
|
48
48
|
const fs = yield* FSUtil.Service;
|
|
49
49
|
const loadEntry = Effect.fnUntraced(function* (entry) {
|
|
50
50
|
if (entry.type === "document")
|
|
@@ -54,12 +54,12 @@ var Plugin31 = define({
|
|
|
54
54
|
const commands = yield* loadDirectory(fs, entry.path);
|
|
55
55
|
return [{ commands: Object.fromEntries(commands.map((command) => [command.name, command.info])) }];
|
|
56
56
|
});
|
|
57
|
-
const location = yield*
|
|
57
|
+
const location = yield* Service72;
|
|
58
58
|
const processes = yield* AppProcess.Service;
|
|
59
|
-
const shell = yield*
|
|
60
|
-
const sessions = yield*
|
|
61
|
-
const agents = yield*
|
|
62
|
-
const subagents = yield*
|
|
59
|
+
const shell = yield* Service40;
|
|
60
|
+
const sessions = yield* Service17;
|
|
61
|
+
const agents = yield* Service59;
|
|
62
|
+
const subagents = yield* make10;
|
|
63
63
|
const load = Effect.fn("ConfigCommandPlugin.load")(function* () {
|
|
64
64
|
return yield* Effect.forEach(yield* config.entries(), loadEntry).pipe(Effect.map((documents) => documents.flat()));
|
|
65
65
|
});
|
|
@@ -80,7 +80,7 @@ var Plugin31 = define({
|
|
|
80
80
|
name,
|
|
81
81
|
description: command.description,
|
|
82
82
|
execute: (input) => Effect.gen(function* () {
|
|
83
|
-
const agent = command.agent === undefined ? undefined :
|
|
83
|
+
const agent = command.agent === undefined ? undefined : ID8.make(command.agent);
|
|
84
84
|
const commandAgent = agent === undefined ? undefined : (yield* ctx.agent.get({ agentID: agent })).data;
|
|
85
85
|
const model = command.model === undefined ? commandAgent?.model : {
|
|
86
86
|
id: Model.ID.make(command.model.model),
|