@opencode/core 0.0.0-dev-20488 → 0.0.0-dev-20495
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +7 -7
- package/dist/bus.js +73 -73
- package/dist/chunks/{instruction-discovery-rqm8rmge.js → agent-05qm76tv.js} +5 -5
- package/dist/chunks/{instruction-discovery-x8zyqsnc.js → agent-06extccp.js} +3 -3
- package/dist/chunks/{instruction-discovery-j0qwk3p8.js → agent-0969ms2e.js} +22 -22
- package/dist/chunks/{instruction-discovery-h4vfkhfc.js → agent-0b54nqfq.js} +6 -6
- package/dist/chunks/{instruction-discovery-n9mcnjvb.js → agent-0ee9cpen.js} +20 -20
- package/dist/chunks/{instruction-discovery-0vbcp93d.js → agent-0emb60td.js} +2 -2
- package/dist/chunks/{instruction-discovery-xd9vdtda.js → agent-0fmjwecz.js} +5 -5
- package/dist/chunks/{instruction-discovery-q0xm7vwc.js → agent-0j77ygfz.js} +6 -6
- package/dist/chunks/{instruction-discovery-bpnyhyfj.js → agent-0keq86b3.js} +3 -3
- package/dist/chunks/{instruction-discovery-0paq2nw3.js → agent-0paq2nw3.js} +1 -1
- package/dist/chunks/{instruction-discovery-64hcb429.js → agent-0tcn2edf.js} +16 -16
- package/dist/chunks/{instruction-discovery-vdcnzv66.js → agent-0vyq000p.js} +10 -10
- package/dist/chunks/{instruction-discovery-9tdkd6vr.js → agent-1225krvv.js} +48 -48
- package/dist/chunks/{instruction-discovery-m8y9xexq.js → agent-15zv1stq.js} +3 -3
- package/dist/chunks/{instruction-discovery-3q1z0jfz.js → agent-180kw0bq.js} +14 -14
- package/dist/chunks/{instruction-discovery-1acjjqhc.js → agent-1acjjqhc.js} +1 -1
- package/dist/chunks/{instruction-discovery-1dazxqgg.js → agent-1dazxqgg.js} +2 -2
- package/dist/chunks/{instruction-discovery-dma9gyvt.js → agent-1egsrvyz.js} +12 -12
- package/dist/chunks/{instruction-discovery-mbwvgf1x.js → agent-1pk6jmbv.js} +5 -5
- package/dist/chunks/{instruction-discovery-asf9fbg3.js → agent-1wjt2sv4.js} +2 -2
- package/dist/chunks/{instruction-discovery-wmkjrt6y.js → agent-281yg8g7.js} +4 -4
- package/dist/chunks/{instruction-discovery-2a5m3afh.js → agent-2a5m3afh.js} +1 -1
- package/dist/chunks/{instruction-discovery-4ts7tf6z.js → agent-2ccvkpx1.js} +2 -2
- package/dist/chunks/{instruction-discovery-zjh1mmzv.js → agent-2ejavyye.js} +26 -26
- package/dist/chunks/{instruction-discovery-2k8khapm.js → agent-2k8khapm.js} +1 -1
- package/dist/chunks/{instruction-discovery-234nbg4f.js → agent-2r2egdr4.js} +13 -13
- package/dist/chunks/{instruction-discovery-rbkz5k6g.js → agent-2tfjmdh5.js} +2 -2
- package/dist/chunks/{instruction-discovery-a2qe2ev9.js → agent-30846h32.js} +8 -8
- package/dist/chunks/{instruction-discovery-h3e5tqcb.js → agent-3adj5p0b.js} +5 -5
- package/dist/chunks/{instruction-discovery-3cegwx68.js → agent-3cegwx68.js} +2 -2
- package/dist/chunks/{instruction-discovery-a78fw167.js → agent-3e0m7cwy.js} +34 -34
- package/dist/chunks/{instruction-discovery-3fc6dm20.js → agent-3fc6dm20.js} +1 -1
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → agent-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-3smtnn6g.js → agent-3smtnn6g.js} +1 -1
- package/dist/chunks/{instruction-discovery-3tvqynh2.js → agent-3tvqynh2.js} +1 -1
- package/dist/chunks/{instruction-discovery-c75vb053.js → agent-3wd3ybnr.js} +40 -40
- package/dist/chunks/{instruction-discovery-eda12k7e.js → agent-3ynasgj1.js} +3 -3
- package/dist/chunks/{instruction-discovery-3zsf4n22.js → agent-3zsf4n22.js} +1 -1
- package/dist/chunks/{instruction-discovery-4jrrtpc9.js → agent-50c2qfar.js} +16 -16
- package/dist/chunks/{instruction-discovery-r94pvvab.js → agent-54ma36ye.js} +4 -4
- package/dist/chunks/{instruction-discovery-mfqp6xfm.js → agent-56gdpj1q.js} +6 -6
- package/dist/chunks/{instruction-discovery-4mc7mr7m.js → agent-56wxwffs.js} +10 -10
- package/dist/chunks/{instruction-discovery-61wngfpk.js → agent-56zcmy0x.js} +46 -46
- package/dist/chunks/{instruction-discovery-6vwe9kp6.js → agent-5ctfgyhd.js} +11 -11
- package/dist/chunks/{instruction-discovery-5daktx2q.js → agent-5daktx2q.js} +1 -1
- package/dist/chunks/{instruction-discovery-gw7cjrad.js → agent-5dkn69vz.js} +4 -4
- package/dist/chunks/{instruction-discovery-x10r85z8.js → agent-5manh0gh.js} +51 -51
- package/dist/chunks/{instruction-discovery-9taqfd41.js → agent-5mde3jdk.js} +13 -13
- package/dist/chunks/{instruction-discovery-5t3nmthw.js → agent-5t3nmthw.js} +2 -2
- package/dist/chunks/{instruction-discovery-cavr175a.js → agent-5wtwrezn.js} +21 -21
- package/dist/chunks/{instruction-discovery-3trkeaa7.js → agent-5zfe1hs5.js} +25 -25
- package/dist/chunks/agent-619r8v3y.js +18 -0
- package/dist/chunks/{instruction-discovery-669tq793.js → agent-669tq793.js} +1 -1
- package/dist/chunks/{instruction-discovery-57am6r6d.js → agent-6b2kn43a.js} +6 -6
- package/dist/chunks/{instruction-discovery-jf7a66sb.js → agent-6gvmk3q1.js} +12 -12
- package/dist/chunks/{instruction-discovery-7x76hv1h.js → agent-6jsnjtd7.js} +29 -29
- package/dist/chunks/{instruction-discovery-nz9wwjtp.js → agent-71y1mzkm.js} +8 -8
- package/dist/chunks/{instruction-discovery-zmwj70rk.js → agent-7379n787.js} +34 -34
- package/dist/chunks/{instruction-discovery-7zdg2jq8.js → agent-78qt3sj1.js} +12 -12
- package/dist/chunks/{instruction-discovery-6q181wvc.js → agent-79db117c.js} +23 -23
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → agent-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-9tv16z90.js → agent-7fxnnqbh.js} +5 -5
- package/dist/chunks/{instruction-discovery-x1sw2jt5.js → agent-7j08c9r1.js} +13 -13
- package/dist/chunks/{instruction-discovery-zqbymf7j.js → agent-7mtf2ng8.js} +23 -23
- package/dist/chunks/{instruction-discovery-4xr7br1c.js → agent-7mwqrr0g.js} +3 -3
- package/dist/chunks/{instruction-discovery-y72zmemf.js → agent-7s2tn799.js} +8 -8
- package/dist/chunks/{instruction-discovery-tbezpxf3.js → agent-81q1psws.js} +14 -14
- package/dist/chunks/{instruction-discovery-84h8c373.js → agent-84h8c373.js} +2 -2
- package/dist/chunks/{instruction-discovery-w1eejvng.js → agent-84txncab.js} +5 -5
- package/dist/chunks/{instruction-discovery-6xs26ss7.js → agent-8bjjjscb.js} +30 -30
- package/dist/chunks/{instruction-discovery-8d7r5vzw.js → agent-8d7r5vzw.js} +1 -1
- package/dist/chunks/{instruction-discovery-43nas8ga.js → agent-8gccp9jq.js} +47 -47
- package/dist/chunks/{instruction-discovery-atwnmxpf.js → agent-8jpf4asr.js} +20 -20
- package/dist/chunks/{instruction-discovery-n549q8gq.js → agent-8n04mb3d.js} +21 -21
- package/dist/chunks/{instruction-discovery-zewtftjh.js → agent-8percxtt.js} +10 -10
- package/dist/chunks/{instruction-discovery-y6mhz57t.js → agent-8tsdq50x.js} +4 -4
- package/dist/chunks/{instruction-discovery-1f7sha8m.js → agent-8y3049xf.js} +20 -20
- package/dist/chunks/{instruction-discovery-cgesad6j.js → agent-90kkfwkk.js} +19 -19
- package/dist/chunks/{instruction-discovery-zr4jefnj.js → agent-961aaqfq.js} +45 -45
- package/dist/chunks/{instruction-discovery-maq9famm.js → agent-9f7pkh13.js} +11 -11
- package/dist/chunks/{instruction-discovery-09w819ma.js → agent-9jb08jxh.js} +13 -13
- package/dist/chunks/{instruction-discovery-rgb6bxvk.js → agent-9mwv3506.js} +29 -29
- package/dist/chunks/{instruction-discovery-t4sf8wv4.js → agent-9qkyr202.js} +92 -92
- package/dist/chunks/{instruction-discovery-yk1234b4.js → agent-9sb0gsac.js} +32 -32
- package/dist/chunks/{instruction-discovery-n42msxhh.js → agent-9tgqm29x.js} +17 -17
- package/dist/chunks/{instruction-discovery-gxhzym33.js → agent-a04xb9v5.js} +23 -23
- package/dist/chunks/{instruction-discovery-cp937pt4.js → agent-a2rpfkac.js} +4 -4
- package/dist/chunks/{instruction-discovery-aaet6srn.js → agent-aaet6srn.js} +2 -2
- package/dist/chunks/{instruction-discovery-gqtdsdt7.js → agent-addxnjmp.js} +4 -4
- package/dist/chunks/{instruction-discovery-hn4y6d17.js → agent-am625cf0.js} +29 -29
- package/dist/chunks/{instruction-discovery-qcprstc3.js → agent-aq1vxrpg.js} +4 -4
- package/dist/chunks/{instruction-discovery-xxgwgp89.js → agent-assaykk3.js} +11 -11
- package/dist/chunks/{instruction-discovery-y0dt3xqy.js → agent-aw71md39.js} +47 -47
- package/dist/chunks/{instruction-discovery-nyqx1cb3.js → agent-axs6pdy0.js} +5 -5
- package/dist/chunks/{instruction-discovery-scgrse2b.js → agent-b3f8fkhc.js} +5 -5
- package/dist/chunks/{instruction-discovery-257nxyp3.js → agent-b3wt4537.js} +18 -18
- package/dist/chunks/{instruction-discovery-cfsekr6v.js → agent-b4twkq7r.js} +6 -6
- package/dist/chunks/{instruction-discovery-b6gygkdw.js → agent-b6gygkdw.js} +2 -2
- package/dist/chunks/{instruction-discovery-we2v2aqd.js → agent-bgwt1ext.js} +8 -8
- package/dist/chunks/{instruction-discovery-w8djw5a7.js → agent-bkxyw0dr.js} +9 -9
- package/dist/chunks/{instruction-discovery-xf8k9j4s.js → agent-bsn5q6aq.js} +44 -44
- package/dist/chunks/{instruction-discovery-n5a0bm5f.js → agent-bsytyf4b.js} +11 -11
- package/dist/chunks/{instruction-discovery-5c3yvawb.js → agent-bw7n94es.js} +175 -175
- package/dist/chunks/{instruction-discovery-h2ac09zz.js → agent-c4hxtsjn.js} +22 -22
- package/dist/chunks/agent-c4ns4q6k.js +507 -0
- package/dist/chunks/{instruction-discovery-534enda7.js → agent-c50maqbp.js} +5 -5
- package/dist/chunks/{instruction-discovery-6vq97qmv.js → agent-c5c0bz0t.js} +5 -5
- package/dist/chunks/{instruction-discovery-gn31e51v.js → agent-c60ns7m9.js} +11 -11
- package/dist/chunks/{instruction-discovery-xxndcd6m.js → agent-c651xxjb.js} +4 -4
- package/dist/chunks/{instruction-discovery-sk3qaz4a.js → agent-c7tg5ahm.js} +58 -20
- package/dist/chunks/{instruction-discovery-bgdwj0fa.js → agent-cb44h7a0.js} +26 -26
- package/dist/chunks/{instruction-discovery-0ws6ajg2.js → agent-cdnk6ftw.js} +13 -13
- package/dist/chunks/{instruction-discovery-k6qg2bky.js → agent-cey1m555.js} +11 -11
- package/dist/chunks/{instruction-discovery-89qmb68j.js → agent-chhwftq5.js} +36 -36
- package/dist/chunks/{instruction-discovery-dm6xa1w8.js → agent-ct17t7wc.js} +16 -16
- package/dist/chunks/{instruction-discovery-6nkyp4bj.js → agent-cv7vxd11.js} +11 -11
- package/dist/chunks/{instruction-discovery-g17kg1qe.js → agent-d7hcd0ym.js} +11 -11
- package/dist/chunks/{instruction-discovery-4egf5287.js → agent-dcr03msm.js} +23 -23
- package/dist/chunks/{instruction-discovery-dmqcgk4z.js → agent-dmqcgk4z.js} +2 -2
- package/dist/chunks/{instruction-discovery-nxm207yx.js → agent-dpkg50ah.js} +4 -4
- package/dist/chunks/{instruction-discovery-63db42yp.js → agent-drnf6xwf.js} +2 -2
- package/dist/chunks/{instruction-discovery-hsewmz24.js → agent-dtz9s4b3.js} +6 -6
- package/dist/chunks/{instruction-discovery-tt2v6w0g.js → agent-dw4v8saq.js} +14 -14
- package/dist/chunks/{instruction-discovery-5qd3pb7m.js → agent-e3qxr5gk.js} +2 -2
- package/dist/chunks/{instruction-discovery-92f202f2.js → agent-e8y5teeb.js} +30 -30
- package/dist/chunks/{instruction-discovery-49hrmjvb.js → agent-ee7hath9.js} +15 -15
- package/dist/chunks/{instruction-discovery-0m47ftre.js → agent-eejvp2f2.js} +24 -24
- package/dist/chunks/{instruction-discovery-ef5x83kb.js → agent-ef5x83kb.js} +1 -1
- package/dist/chunks/{instruction-discovery-e35g93k6.js → agent-enbxprp7.js} +7 -7
- package/dist/chunks/{instruction-discovery-a1gpj94z.js → agent-eq1pz5kg.js} +3 -3
- package/dist/chunks/{instruction-discovery-wead7aht.js → agent-er7bzzx2.js} +5 -5
- package/dist/chunks/{instruction-discovery-7jawp51c.js → agent-es3gwfzz.js} +30 -30
- package/dist/chunks/{instruction-discovery-etq0c3wd.js → agent-etq0c3wd.js} +1 -1
- package/dist/chunks/{instruction-discovery-5zyqsw7g.js → agent-etzmzv32.js} +9 -9
- package/dist/chunks/{instruction-discovery-czfptnv9.js → agent-eys57y9b.js} +8 -8
- package/dist/chunks/{instruction-discovery-cg2k9t5z.js → agent-f0wzsm6w.js} +18 -18
- package/dist/chunks/{instruction-discovery-zha7grgq.js → agent-f3g7k472.js} +30 -32
- package/dist/chunks/{instruction-discovery-gg2r8a4c.js → agent-f4ydgy3z.js} +11 -11
- package/dist/chunks/{instruction-discovery-7a0fz05z.js → agent-f5a9xnpw.js} +12 -12
- package/dist/chunks/{instruction-discovery-5q13c62c.js → agent-f5gy8qwh.js} +8 -8
- package/dist/chunks/{instruction-discovery-0me0fk48.js → agent-f6b7e72t.js} +4 -4
- package/dist/chunks/{instruction-discovery-grvhawas.js → agent-f717gdek.js} +12 -12
- package/dist/chunks/{instruction-discovery-f75zav2x.js → agent-f75zav2x.js} +2 -2
- package/dist/chunks/{instruction-discovery-we4kaebg.js → agent-f7jtcmdh.js} +22 -22
- package/dist/chunks/{instruction-discovery-x08kk3pc.js → agent-fe7h0mm2.js} +11 -11
- package/dist/chunks/{instruction-discovery-6zh6wxqg.js → agent-fje83gfw.js} +30 -30
- package/dist/chunks/{instruction-discovery-9w97dca2.js → agent-fkcqrwcb.js} +7 -7
- package/dist/chunks/{instruction-discovery-rf7k241v.js → agent-fmpajtcd.js} +17 -17
- package/dist/chunks/{instruction-discovery-8ca5gf6d.js → agent-frfw21hw.js} +15 -15
- package/dist/chunks/{instruction-discovery-g5w8qwbj.js → agent-g5w8qwbj.js} +1 -1
- package/dist/chunks/{instruction-discovery-p4dv011m.js → agent-g74z9j9z.js} +15 -15
- package/dist/chunks/{instruction-discovery-gd4qta3r.js → agent-gd4qta3r.js} +1 -1
- package/dist/chunks/{instruction-discovery-h4g9p4f2.js → agent-ghq8k3p0.js} +3 -3
- package/dist/chunks/{instruction-discovery-gcw3aq97.js → agent-gnes5cxx.js} +9 -9
- package/dist/chunks/{instruction-discovery-c4x5783g.js → agent-gnvs0enq.js} +5 -5
- package/dist/chunks/{instruction-discovery-zsh647e0.js → agent-gx8qcdc6.js} +5 -5
- package/dist/chunks/{instruction-discovery-s3jjtrcx.js → agent-h1c96afk.js} +11 -11
- package/dist/chunks/{instruction-discovery-wxyynt4w.js → agent-h5w29vws.js} +1 -1
- package/dist/chunks/{instruction-discovery-h6vf3j39.js → agent-h6vf3j39.js} +1 -1
- package/dist/chunks/{instruction-discovery-99c1fcab.js → agent-harr5xv8.js} +32 -32
- package/dist/chunks/{instruction-discovery-rn4p5jba.js → agent-hcf0s5h1.js} +11 -11
- package/dist/chunks/{instruction-discovery-mvdg29ky.js → agent-hqhgbs2g.js} +3 -3
- package/dist/chunks/{instruction-discovery-67x749rj.js → agent-hvcgaqb3.js} +22 -22
- package/dist/chunks/{instruction-discovery-en9mxp96.js → agent-j245gaa0.js} +9 -9
- package/dist/chunks/{instruction-discovery-j56e64zr.js → agent-j56e64zr.js} +1 -1
- package/dist/chunks/{instruction-discovery-2gsqsx3d.js → agent-jgpg880r.js} +24 -24
- package/dist/chunks/{instruction-discovery-vjh434ps.js → agent-jjjc0chz.js} +33 -33
- package/dist/chunks/{instruction-discovery-3a7dge26.js → agent-jvp7p798.js} +21 -21
- package/dist/chunks/{instruction-discovery-mq2tvvhp.js → agent-jwtynxd2.js} +6 -6
- package/dist/chunks/{instruction-discovery-3y4fpz99.js → agent-jzsegfhb.js} +4 -4
- package/dist/chunks/{instruction-discovery-mcwfras5.js → agent-k6geg3g4.js} +7 -7
- package/dist/chunks/{instruction-discovery-kb9j3d72.js → agent-kb9j3d72.js} +3 -3
- package/dist/chunks/{instruction-discovery-rxmvmgfa.js → agent-kbkg0dr4.js} +20 -20
- package/dist/chunks/{instruction-discovery-2w5dyyz8.js → agent-kjfdeayr.js} +8 -8
- package/dist/chunks/{instruction-discovery-tc0tejgn.js → agent-kjyqzbch.js} +28 -28
- package/dist/chunks/{instruction-discovery-zvt5dnpc.js → agent-kne8f3cn.js} +4 -4
- package/dist/chunks/{instruction-discovery-xb2vsd53.js → agent-kxtv85c3.js} +22 -22
- package/dist/chunks/{instruction-discovery-m3fdjcah.js → agent-m3fdjcah.js} +1 -1
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → agent-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-anye7z91.js → agent-ma9td961.js} +37 -37
- package/dist/chunks/{instruction-discovery-hwbe8hjp.js → agent-mmqb0ckj.js} +8 -8
- package/dist/chunks/{instruction-discovery-2a6rn6yr.js → agent-mx9vqzsb.js} +6 -6
- package/dist/chunks/{instruction-discovery-ss358qx3.js → agent-my4zabxr.js} +3 -3
- package/dist/chunks/{instruction-discovery-5jx484x5.js → agent-myymb6xt.js} +11 -11
- package/dist/chunks/{instruction-discovery-hwfxa3cw.js → agent-n1mmzv0t.js} +10 -10
- package/dist/chunks/{instruction-discovery-8hdaq0f1.js → agent-n94yfme4.js} +9 -9
- package/dist/chunks/{instruction-discovery-2fqj34yx.js → agent-nf0836sh.js} +23 -23
- package/dist/chunks/{instruction-discovery-j07gkf3t.js → agent-nnegx4ye.js} +34 -34
- package/dist/chunks/{instruction-discovery-zbmj01pq.js → agent-nq59jwz9.js} +19 -19
- package/dist/chunks/{instruction-discovery-0wxkqsx5.js → agent-p52b6053.js} +11 -11
- package/dist/chunks/{instruction-discovery-b1dewbpn.js → agent-pevp0vkc.js} +22 -22
- package/dist/chunks/{instruction-discovery-pjvnvgmy.js → agent-pjvnvgmy.js} +1 -1
- package/dist/chunks/{instruction-discovery-pknna89w.js → agent-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-4t523vn3.js → agent-pm3rvpnw.js} +11 -11
- package/dist/chunks/{instruction-discovery-j3q689wm.js → agent-pnhxssdf.js} +1 -1
- package/dist/chunks/{instruction-discovery-zdnf9v5q.js → agent-pvax30d3.js} +47 -47
- package/dist/chunks/{instruction-discovery-vpmjnhk9.js → agent-pwbc1eft.js} +33 -33
- package/dist/chunks/{instruction-discovery-4epjg9n3.js → agent-pydjced1.js} +10 -10
- package/dist/chunks/{instruction-discovery-47jkzegy.js → agent-pzjh1fyp.js} +5 -5
- package/dist/chunks/{instruction-discovery-qchxrxbp.js → agent-q1c6gfm2.js} +19 -19
- package/dist/chunks/{instruction-discovery-z2qvtray.js → agent-q3ersh05.js} +6 -6
- package/dist/chunks/{instruction-discovery-nc4b9ezq.js → agent-q3hqp1sp.js} +11 -11
- package/dist/chunks/{instruction-discovery-ratrq7cm.js → agent-qa3qhgw8.js} +4 -4
- package/dist/chunks/{instruction-discovery-e96qe5tn.js → agent-qc1xg33w.js} +24 -24
- package/dist/chunks/{instruction-discovery-dhzm9p0q.js → agent-qhsygc0r.js} +5 -5
- package/dist/chunks/{instruction-discovery-qnc92qwc.js → agent-qnc92qwc.js} +1 -1
- package/dist/chunks/{instruction-discovery-khyjcraz.js → agent-qp7thzpe.js} +11 -11
- package/dist/chunks/{instruction-discovery-qsdy395h.js → agent-qsdy395h.js} +1 -1
- package/dist/chunks/{instruction-discovery-fxs0yy90.js → agent-qx178q0k.js} +13 -13
- package/dist/chunks/{instruction-discovery-r2m716tb.js → agent-r2m716tb.js} +2 -2
- package/dist/chunks/{instruction-discovery-yr715y08.js → agent-r9w3djhf.js} +2 -2
- package/dist/chunks/{instruction-discovery-rdw6cm16.js → agent-rdw6cm16.js} +1 -1
- package/dist/chunks/{instruction-discovery-v2hz81kc.js → agent-rfrf17aw.js} +12 -12
- package/dist/chunks/{instruction-discovery-dgzr8r92.js → agent-rg23r00q.js} +31 -31
- package/dist/chunks/{instruction-discovery-wv396vej.js → agent-rhjbct0v.js} +8 -8
- package/dist/chunks/{instruction-discovery-1dwkpgwq.js → agent-rmbj2ecd.js} +27 -27
- package/dist/chunks/{instruction-discovery-890j4q8g.js → agent-rmr3r19k.js} +4 -4
- package/dist/chunks/{instruction-discovery-xqrhmb6a.js → agent-rmrqxqxb.js} +23 -23
- package/dist/chunks/{instruction-discovery-csp7vt80.js → agent-rmvpnps6.js} +31 -31
- package/dist/chunks/{instruction-discovery-53mskn80.js → agent-rmwzrvg6.js} +10 -10
- package/dist/chunks/{instruction-discovery-c7ycb71c.js → agent-rvxarf9v.js} +4 -4
- package/dist/chunks/{instruction-discovery-9pefrk9y.js → agent-rwb52vrc.js} +60 -60
- package/dist/chunks/{instruction-discovery-e8vwfchq.js → agent-ry082wg0.js} +9 -9
- package/dist/chunks/{instruction-discovery-w16jkc0m.js → agent-s4v9x9re.js} +30 -30
- package/dist/chunks/{instruction-discovery-5n5bh537.js → agent-sb3bqbj6.js} +9 -9
- package/dist/chunks/{instruction-discovery-y68tptm5.js → agent-snw8yyk6.js} +33 -33
- package/dist/chunks/{instruction-discovery-69zvy5zj.js → agent-spx8c6ms.js} +6 -6
- package/dist/chunks/{instruction-discovery-3dvt8w09.js → agent-sv2c0njk.js} +20 -20
- package/dist/chunks/{instruction-discovery-knwj7e2t.js → agent-sw2s00mc.js} +16 -16
- package/dist/chunks/{instruction-discovery-5rqkpza8.js → agent-t0d6zw4z.js} +9 -9
- package/dist/chunks/{instruction-discovery-tazgh4e4.js → agent-tazgh4e4.js} +1 -1
- package/dist/chunks/{instruction-discovery-tcezcvh9.js → agent-tcezcvh9.js} +1 -1
- package/dist/chunks/{instruction-discovery-tdstcens.js → agent-tdstcens.js} +1 -1
- package/dist/chunks/{instruction-discovery-7sk8ve6j.js → agent-tt3j5xxe.js} +23 -23
- package/dist/chunks/{instruction-discovery-0yjgx9tf.js → agent-v1wz7cyc.js} +21 -21
- package/dist/chunks/{instruction-discovery-tqwt26jr.js → agent-vaatkb7m.js} +15 -15
- package/dist/chunks/agent-vbqmraq8.js +253 -0
- package/dist/chunks/{instruction-discovery-zt8sfb0h.js → agent-vdd4vb6q.js} +39 -39
- package/dist/chunks/{instruction-discovery-dv1bcy32.js → agent-vdeedkq6.js} +11 -11
- package/dist/chunks/{instruction-discovery-fbr3nfbw.js → agent-ve4zfcma.js} +22 -22
- package/dist/chunks/{instruction-discovery-veqvce7d.js → agent-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-vzcthcp8.js → agent-vzcthcp8.js} +1 -1
- package/dist/chunks/{instruction-discovery-vzs5sf6e.js → agent-vzs5sf6e.js} +1 -1
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → agent-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-0whds7zr.js → agent-w47smtgf.js} +32 -32
- package/dist/chunks/{instruction-discovery-aqxydgd6.js → agent-w7fnhhq6.js} +18 -18
- package/dist/chunks/{instruction-discovery-w7s3shsg.js → agent-wb2syegf.js} +29 -29
- package/dist/chunks/{instruction-discovery-wd87259q.js → agent-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-2a8nq3m5.js → agent-wv8a670q.js} +77 -77
- package/dist/chunks/{instruction-discovery-198btxyk.js → agent-wzkdy7pq.js} +9 -9
- package/dist/chunks/{instruction-discovery-x1ezjp6w.js → agent-x1ezjp6w.js} +1 -1
- package/dist/chunks/{instruction-discovery-10pgvwje.js → agent-x2h9s1mq.js} +35 -35
- package/dist/chunks/{instruction-discovery-8ftpwjsb.js → agent-x2n4r1b6.js} +15 -15
- package/dist/chunks/{instruction-discovery-3zbwexce.js → agent-x75ma0cf.js} +11 -11
- package/dist/chunks/{instruction-discovery-6nxh550w.js → agent-x8qwh5yk.js} +1 -1
- package/dist/chunks/{instruction-discovery-v0es1rhs.js → agent-xecxzrdp.js} +2 -2
- package/dist/chunks/{instruction-discovery-77jt29wt.js → agent-xgrk1snk.js} +26 -26
- package/dist/chunks/{instruction-discovery-4tw3n1rs.js → agent-xjphdyj0.js} +5 -5
- package/dist/chunks/{instruction-discovery-9mqbw0dd.js → agent-xmbvsbqy.js} +11 -11
- package/dist/chunks/{instruction-discovery-mvyst4k3.js → agent-xmsh8y1f.js} +39 -39
- package/dist/chunks/{instruction-discovery-bzcbjd9t.js → agent-xpf13hnw.js} +29 -29
- package/dist/chunks/{instruction-discovery-qxjc9qry.js → agent-xyafkbt0.js} +3 -3
- package/dist/chunks/{instruction-discovery-p4587dg3.js → agent-xyzvdesr.js} +9 -9
- package/dist/chunks/{instruction-discovery-y1fvbwt7.js → agent-y1fvbwt7.js} +1 -1
- package/dist/chunks/{instruction-discovery-chfzcee1.js → agent-y218q3m0.js} +14 -14
- package/dist/chunks/{instruction-discovery-j5fbqtdd.js → agent-y9e856tf.js} +33 -33
- package/dist/chunks/{instruction-discovery-2151whcr.js → agent-y9t2v59g.js} +13 -13
- package/dist/chunks/{instruction-discovery-kgd31h0f.js → agent-ya7p2kne.js} +25 -25
- package/dist/chunks/{instruction-discovery-28vg5v99.js → agent-ydxjpy93.js} +19 -19
- package/dist/chunks/{instruction-discovery-g6yfr6ja.js → agent-yebk9b1k.js} +5 -5
- package/dist/chunks/{instruction-discovery-yrhqyw5v.js → agent-yrhqyw5v.js} +1 -1
- package/dist/chunks/{instruction-discovery-njg6ebp9.js → agent-ywrxzmrq.js} +24 -24
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → agent-z0bkrqjs.js} +1 -1
- package/dist/chunks/agent-z2gne1tr.js +26 -0
- package/dist/chunks/{instruction-discovery-exmq4wqv.js → agent-zm5gxt3d.js} +17 -17
- package/dist/chunks/{instruction-discovery-zr2ceqn5.js → agent-zr2ceqn5.js} +1 -1
- package/dist/chunks/{instruction-discovery-x8anjrbb.js → agent-zwywmq97.js} +14 -14
- package/dist/chunks/{instruction-discovery-zxq2ej10.js → agent-zxq2ej10.js} +1 -1
- package/dist/chunks/{instruction-discovery-sxjnac8t.js → agent-zxxvxyna.js} +12 -12
- package/dist/chunks/{instruction-discovery-3ty6e2kw.js → agent-zykjx2tp.js} +87 -87
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +99 -99
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +137 -137
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +113 -113
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +117 -117
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +70 -70
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +363 -363
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +214 -214
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +102 -102
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +101 -101
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +355 -355
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +87 -87
- package/dist/instructions/index.js +5 -5
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +76 -76
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +134 -134
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +352 -352
- package/dist/location.js +81 -81
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +91 -91
- package/dist/mcp/index.js +105 -105
- package/dist/mcp/instructions.js +127 -127
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -102
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +117 -117
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +102 -102
- package/dist/plugin/command.js +100 -100
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +327 -327
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +102 -102
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +115 -115
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +115 -115
- package/dist/plugin/provider/openai.js +95 -95
- package/dist/plugin/provider/opencode.js +96 -96
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +115 -115
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +156 -156
- package/dist/plugin/sdk.js +74 -74
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +342 -342
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +2 -2
- package/dist/plugin/vcs/git.js +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +80 -80
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +89 -89
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +95 -95
- package/dist/rpc.js +86 -86
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +7 -7
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +217 -217
- package/dist/session/execution.js +125 -125
- package/dist/session/generate.js +152 -152
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +82 -82
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +93 -93
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +129 -129
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +113 -113
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +203 -203
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +155 -155
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +213 -213
- package/dist/session/usage.js +1 -1
- package/dist/session.js +209 -209
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +210 -210
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +212 -212
- package/dist/tool/plugin/webfetch.js +108 -108
- package/dist/tool/plugin/websearch.js +112 -112
- package/dist/tool/plugin/write.js +120 -120
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/persistent-pty/daemon.d.ts +4 -4
- package/dist/types/persistent-pty/index.d.ts +2 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +4 -4
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +82 -82
- package/dist/wellknown/plugin.js +74 -74
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +89 -89
- package/dist/worktree.js +96 -96
- package/package.json +10 -10
- package/dist/chunks/instruction-discovery-695my56f.js +0 -26
- package/dist/chunks/instruction-discovery-f81tjggh.js +0 -18
- package/dist/chunks/instruction-discovery-nae5rbdw.js +0 -253
- package/dist/chunks/instruction-discovery-wgjdrefs.js +0 -507
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → agent-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → agent-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → agent-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → agent-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1kg9ymc8.js → agent-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → agent-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → agent-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2axfhc9x.js → agent-2axfhc9x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → agent-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-34c7v6d4.js → agent-34c7v6d4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → agent-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → agent-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → agent-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3w5fmr99.js → agent-3w5fmr99.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → agent-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → agent-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → agent-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → agent-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → agent-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → agent-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → agent-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → agent-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → agent-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → agent-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → agent-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → agent-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → agent-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → agent-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → agent-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → agent-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → agent-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → agent-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → agent-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → agent-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → agent-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → agent-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → agent-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → agent-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → agent-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → agent-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → agent-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → agent-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → agent-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → agent-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → agent-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → agent-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → agent-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → agent-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → agent-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → agent-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → agent-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → agent-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → agent-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → agent-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fxgpk5d8.js → agent-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → agent-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → agent-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → agent-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → agent-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hjbc5kem.js → agent-hjbc5kem.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → agent-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → agent-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → agent-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → agent-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → agent-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → agent-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → agent-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → agent-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → agent-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → agent-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → agent-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → agent-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → agent-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → agent-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → agent-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → agent-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → agent-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → agent-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → agent-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → agent-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → agent-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → agent-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → agent-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → agent-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → agent-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → agent-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → agent-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → agent-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → agent-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8cydn3q.js → agent-y8cydn3q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → agent-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → agent-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → agent-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → agent-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → agent-z9919s4g.js} +0 -0
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
NotFound2,
|
|
3
3
|
WrongKind2,
|
|
4
4
|
Failed2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./agent-2a5m3afh.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./agent-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/environment/memory.ts
|
|
11
11
|
var exports_memory = {};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/integration/connection.ts
|
|
6
6
|
var exports_connection = {};
|
|
7
7
|
__export(exports_connection, {
|
|
8
8
|
CredentialInfo: () => CredentialInfo2,
|
|
9
9
|
EnvInfo: () => EnvInfo2,
|
|
10
|
-
Info: () =>
|
|
10
|
+
Info: () => Info24,
|
|
11
11
|
IntegrationConnection: () => exports_connection,
|
|
12
12
|
Status: () => Status3,
|
|
13
13
|
key: () => key2
|
|
@@ -15,7 +15,7 @@ __export(exports_connection, {
|
|
|
15
15
|
import { Connection } from "@opencode/schema/connection";
|
|
16
16
|
var CredentialInfo2 = Connection.CredentialInfo;
|
|
17
17
|
var EnvInfo2 = Connection.EnvInfo;
|
|
18
|
-
var
|
|
18
|
+
var Info24 = Connection.Info;
|
|
19
19
|
var Status3 = Connection.Status;
|
|
20
20
|
function key2(connection) {
|
|
21
21
|
if (!connection)
|
|
@@ -23,4 +23,4 @@ function key2(connection) {
|
|
|
23
23
|
return connection.type === "credential" ? `credential:${connection.id}` : `env:${connection.name}`;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
export { CredentialInfo2, EnvInfo2,
|
|
26
|
+
export { CredentialInfo2, EnvInfo2, Info24, Status3, key2, exports_connection };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./agent-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service82,
|
|
9
|
+
node86
|
|
10
|
+
} from "./agent-rfrf17aw.js";
|
|
11
11
|
import {
|
|
12
12
|
Service80,
|
|
13
13
|
node84
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./agent-2tfjmdh5.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./agent-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./agent-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error4,
|
|
26
|
+
ID: () => ID7,
|
|
27
|
+
Service: () => Service58,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node61,
|
|
30
30
|
noopLayer: () => noopLayer3
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,20 +34,20 @@ 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 ID7 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error4 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 Service58 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service58, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service82;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
52
|
const location = yield* Service80;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service48, 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 Error4({ 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(Service48, 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 Error4({ 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(Service48, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID7.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service48, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error4({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error4({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service58.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node61 = makeLocationNode({
|
|
144
|
+
service: Service58,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node86, Global.node, node84]
|
|
147
147
|
});
|
|
148
|
-
var noopLayer3 = Layer.succeed(
|
|
148
|
+
var noopLayer3 = Layer.succeed(Service58, Service58.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer3 = Layer.succeed(Service48, Service48.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error4 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error4({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID7, Error4, Service58, node61, noopLayer3, exports_snapshot2 };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
openaiFailedResponseHandler2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-550bvhaj.js";
|
|
4
4
|
import {
|
|
5
5
|
convertToOpenAIResponsesInput2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-j5zkgpj8.js";
|
|
7
7
|
import {
|
|
8
8
|
mapOpenAIResponseFinishReason2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./agent-3asan66x.js";
|
|
10
10
|
import {
|
|
11
11
|
prepareResponsesTools2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./agent-c5c0bz0t.js";
|
|
13
13
|
|
|
14
14
|
// src/github-copilot/responses/openai-responses-language-model.ts
|
|
15
15
|
import {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service63
|
|
4
|
+
} from "./agent-xmsh8y1f.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service65
|
|
7
|
+
} from "./agent-c60ns7m9.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./agent-qsdy395h.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./agent-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/tool-output.ts
|
|
16
16
|
var exports_tool_output = {};
|
|
17
17
|
__export(exports_tool_output, {
|
|
18
18
|
ConfigToolOutputPlugin: () => exports_tool_output,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin19
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin19 = define({
|
|
24
24
|
id: "opencode.config.tool-output",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const output = yield*
|
|
26
|
+
const config = yield* Service63;
|
|
27
|
+
const output = yield* Service65;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, output.reload());
|
|
29
29
|
yield* output.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "tool_output");
|
|
@@ -38,4 +38,4 @@ var Plugin11 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin19, exports_tool_output };
|
|
@@ -1,47 +1,47 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service83,
|
|
6
|
+
node87
|
|
7
|
+
} from "./agent-0tcn2edf.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
9
|
+
Event20,
|
|
10
|
+
Service79,
|
|
11
|
+
node83
|
|
12
|
+
} from "./agent-x2h9s1mq.js";
|
|
13
13
|
import {
|
|
14
14
|
Service80,
|
|
15
15
|
node84
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./agent-2tfjmdh5.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service69,
|
|
19
|
+
node72
|
|
20
|
+
} from "./agent-8n04mb3d.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
22
|
+
ID15,
|
|
23
|
+
Service78,
|
|
24
|
+
node82
|
|
25
|
+
} from "./agent-xpf13hnw.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./agent-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID14,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service77,
|
|
34
|
+
node81
|
|
35
|
+
} from "./agent-jjjc0chz.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./agent-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
|
-
NotFoundError: () =>
|
|
44
|
+
NotFoundError: () => NotFoundError4,
|
|
45
45
|
Options: () => Options5,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
@@ -49,12 +49,12 @@ __export(exports_mcp4, {
|
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service32,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
55
|
configured: () => configured5,
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
56
|
+
layer: () => layer14,
|
|
57
|
+
node: () => node35
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -72,7 +72,7 @@ var ResourceTemplate2 = Mcp.ResourceTemplate;
|
|
|
72
72
|
var ResourceCatalog2 = Mcp.ResourceCatalog;
|
|
73
73
|
var ResourceContent2 = Mcp.ResourceContent;
|
|
74
74
|
|
|
75
|
-
class
|
|
75
|
+
class NotFoundError4 extends Schema.TaggedError()("MCP.NotFoundError", {
|
|
76
76
|
server: ServerName2
|
|
77
77
|
}) {
|
|
78
78
|
get message() {
|
|
@@ -103,7 +103,7 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
103
103
|
var endpointLoads = makeUnsafe2();
|
|
104
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
105
105
|
|
|
106
|
-
class
|
|
106
|
+
class Service32 extends Context.Service()("@opencode/MCP") {
|
|
107
107
|
}
|
|
108
108
|
var Options5 = Schema.Struct({
|
|
109
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -111,13 +111,13 @@ var Options5 = Schema.Struct({
|
|
|
111
111
|
version: Schema.String
|
|
112
112
|
}))
|
|
113
113
|
});
|
|
114
|
-
var
|
|
114
|
+
var layer14 = (options) => Layer.effect(Service32, Effect.gen(function* () {
|
|
115
115
|
const location = yield* Service80;
|
|
116
|
-
const environment = yield*
|
|
117
|
-
const bus = yield*
|
|
118
|
-
const forms = yield*
|
|
119
|
-
const integration = yield*
|
|
120
|
-
const credentials = yield*
|
|
116
|
+
const environment = yield* Service69;
|
|
117
|
+
const bus = yield* Service83;
|
|
118
|
+
const forms = yield* Service78;
|
|
119
|
+
const integration = yield* Service77;
|
|
120
|
+
const credentials = yield* Service79;
|
|
121
121
|
const root = yield* Effect.scope;
|
|
122
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
123
123
|
const entries = new Map;
|
|
@@ -129,7 +129,7 @@ var layer16 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
129
129
|
return;
|
|
130
130
|
const remote = entry.config;
|
|
131
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
132
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID14.make(suffix);
|
|
133
133
|
entry.integrationID = integrationID;
|
|
134
134
|
owned.add(integrationID);
|
|
135
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -145,7 +145,7 @@ var layer16 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
145
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
146
146
|
authorize: () => Effect.gen(function* () {
|
|
147
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
148
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service79, credentials));
|
|
149
149
|
})
|
|
150
150
|
});
|
|
151
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -154,19 +154,19 @@ var layer16 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
154
154
|
const name = ServerName2.make(server);
|
|
155
155
|
const entry = entries.get(name);
|
|
156
156
|
if (!entry)
|
|
157
|
-
return yield* new
|
|
157
|
+
return yield* new NotFoundError4({ server: name });
|
|
158
158
|
return { name, entry };
|
|
159
159
|
});
|
|
160
160
|
const connectProvider = Effect.fnUntraced(function* (entry) {
|
|
161
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
162
162
|
return;
|
|
163
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
164
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service79, credentials));
|
|
165
165
|
});
|
|
166
166
|
const elicitation = {
|
|
167
167
|
create: (input) => Effect.gen(function* () {
|
|
168
168
|
if (input.params.mode === "url") {
|
|
169
|
-
const formID =
|
|
169
|
+
const formID = ID15.create();
|
|
170
170
|
const elicitationID = input.params.elicitationId;
|
|
171
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
172
172
|
if (key)
|
|
@@ -269,7 +269,7 @@ var layer16 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
269
269
|
entry.scope = scope;
|
|
270
270
|
const authProvider = yield* connectProvider(entry);
|
|
271
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
272
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service69, environment), Scope.provide(scope));
|
|
273
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
274
274
|
if (Exit.isSuccess(result)) {
|
|
275
275
|
entry.client = result.value.connection;
|
|
@@ -394,7 +394,7 @@ var layer16 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
394
394
|
yield* startServer(name, entry);
|
|
395
395
|
}).pipe(locks.withLock(name));
|
|
396
396
|
});
|
|
397
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event20.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
398
398
|
const state = create3({
|
|
399
399
|
name: "mcp",
|
|
400
400
|
initial: () => ({
|
|
@@ -420,7 +420,7 @@ var layer16 = (options) => Layer.effect(Service42, Effect.gen(function* () {
|
|
|
420
420
|
}),
|
|
421
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
422
422
|
});
|
|
423
|
-
return
|
|
423
|
+
return Service32.of({
|
|
424
424
|
transform: state.transform,
|
|
425
425
|
reload: state.reload,
|
|
426
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -532,12 +532,12 @@ function mergeCatalogs(catalogs) {
|
|
|
532
532
|
}
|
|
533
533
|
function configured5(options) {
|
|
534
534
|
return makeLocationNode({
|
|
535
|
-
service:
|
|
536
|
-
layer:
|
|
537
|
-
deps: [node84,
|
|
535
|
+
service: Service32,
|
|
536
|
+
layer: layer14(options),
|
|
537
|
+
deps: [node84, node72, node87, node82, node81, node83]
|
|
538
538
|
});
|
|
539
539
|
}
|
|
540
|
-
var
|
|
540
|
+
var node35 = configured5();
|
|
541
541
|
function toElicitationField(key, property, required) {
|
|
542
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
543
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -588,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
588
588
|
}
|
|
589
589
|
}
|
|
590
590
|
|
|
591
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError4, ToolCallError2, Service32, Options5, layer14, configured5, node35, exports_mcp4 };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definition2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-3w5fmr99.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/tool-input-repair.ts
|
|
9
9
|
var exports_tool_input_repair = {};
|
|
10
10
|
__export(exports_tool_input_repair, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin43,
|
|
12
12
|
ToolInputRepairPlugin: () => exports_tool_input_repair
|
|
13
13
|
});
|
|
14
14
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
15
15
|
import { Effect, Option, Predicate, Schema } from "effect";
|
|
16
16
|
var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
|
|
17
17
|
var maxDepth = 6;
|
|
18
|
-
var
|
|
18
|
+
var Plugin43 = define({
|
|
19
19
|
id: "opencode.tool.input.repair",
|
|
20
20
|
effect: (ctx) => ctx.tool.hook("execute.before", (event) => Effect.gen(function* () {
|
|
21
21
|
if (event.tool === "execute")
|
|
@@ -120,4 +120,4 @@ function repairArray(value, schema, root, depth) {
|
|
|
120
120
|
return compatible ? [repaired] : value;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
-
export {
|
|
123
|
+
export { Plugin43, exports_tool_input_repair };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SessionEvent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-ec1grn59.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./agent-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/session/runner/retry.ts
|
|
9
9
|
var exports_retry = {};
|
|
10
10
|
__export(exports_retry, {
|
|
11
11
|
SessionRunnerRetry: () => exports_retry,
|
|
12
12
|
isRetryable: () => isRetryable2,
|
|
13
|
-
make: () =>
|
|
13
|
+
make: () => make10,
|
|
14
14
|
policy: () => policy2
|
|
15
15
|
});
|
|
16
16
|
import { isRetryable as isRetryable2 } from "@opencode/ai";
|
|
@@ -60,7 +60,7 @@ var policy2 = (sessionID) => Effect.gen(function* () {
|
|
|
60
60
|
return { retry: true, attempt, delay: normalized };
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
|
-
var
|
|
63
|
+
var make10 = (bus, sessionID) => Effect.gen(function* () {
|
|
64
64
|
const decide = yield* policy2(sessionID);
|
|
65
65
|
const wait = (input) => Effect.gen(function* () {
|
|
66
66
|
const scheduled = yield* Clock.currentTimeMillis;
|
|
@@ -77,4 +77,4 @@ var make9 = (bus, sessionID) => Effect.gen(function* () {
|
|
|
77
77
|
return { decide, wait };
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export { isRetryable2, policy2,
|
|
80
|
+
export { isRetryable2, policy2, make10, exports_retry };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./agent-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
7
|
-
import {
|
|
8
|
-
Info12
|
|
9
|
-
} from "./instruction-discovery-3zbwexce.js";
|
|
6
|
+
} from "./agent-5wtwrezn.js";
|
|
10
7
|
import {
|
|
11
8
|
Info15
|
|
12
|
-
} from "./
|
|
9
|
+
} from "./agent-x75ma0cf.js";
|
|
10
|
+
import {
|
|
11
|
+
Info14
|
|
12
|
+
} from "./agent-qa3qhgw8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info16
|
|
15
|
+
} from "./agent-yebk9b1k.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./agent-2k8khapm.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info18
|
|
21
|
+
} from "./agent-pzjh1fyp.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
migrateMcp2,
|
|
28
28
|
migrateProvider2,
|
|
29
29
|
providerID2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./agent-rmr3r19k.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./agent-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/config/normalize.ts
|
|
36
36
|
var exports_normalize = {};
|
|
@@ -97,12 +97,12 @@ function normalize2(input) {
|
|
|
97
97
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
98
98
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
99
99
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
100
|
-
const legacyCommands = decodeMap(input.command,
|
|
100
|
+
const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
|
|
101
101
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
102
102
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
103
103
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
104
104
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
105
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
105
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info15, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
106
106
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
107
107
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
108
108
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -116,7 +116,7 @@ function normalize2(input) {
|
|
|
116
116
|
model: migratedSmallModel,
|
|
117
117
|
...legacyAgents.title
|
|
118
118
|
};
|
|
119
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
119
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info15, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
120
120
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
121
121
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
122
122
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -217,7 +217,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
217
217
|
normalizeMcpTimeout(value, timeout, path, diagnostics);
|
|
218
218
|
return;
|
|
219
219
|
}
|
|
220
|
-
const server = decodeValue(
|
|
220
|
+
const server = decodeValue(Info16, value, path, diagnostics);
|
|
221
221
|
if (server !== undefined)
|
|
222
222
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
223
223
|
});
|
|
@@ -413,7 +413,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
413
413
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
414
414
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
415
415
|
return [];
|
|
416
|
-
const provider = decodeValue(
|
|
416
|
+
const provider = decodeValue(Info18, raw, path, diagnostics);
|
|
417
417
|
if (provider === undefined)
|
|
418
418
|
return [];
|
|
419
419
|
const destination = providerID2(name);
|