@opencode/core 0.0.0-dev-21756 → 0.0.0-dev-21761
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 +92 -91
- package/dist/aisdk.js +94 -93
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{websearch-00ve6mdn.js → aisdk-00ve6mdn.js} +1 -1
- package/dist/chunks/{websearch-ddj2qmc2.js → aisdk-00xj84pr.js} +7 -7
- package/dist/chunks/{websearch-nqaab5fx.js → aisdk-01xkvnr3.js} +8 -8
- package/dist/chunks/{websearch-034tev2y.js → aisdk-034tev2y.js} +2 -2
- package/dist/chunks/{websearch-zsgey489.js → aisdk-049c72zv.js} +5 -5
- package/dist/chunks/{websearch-vq142dc8.js → aisdk-04sye11p.js} +5 -5
- package/dist/chunks/{websearch-d1dxzg06.js → aisdk-05y9e0hf.js} +2 -2
- package/dist/chunks/{websearch-mvx17366.js → aisdk-0a71s41t.js} +11 -11
- package/dist/chunks/{websearch-fznmdakp.js → aisdk-0h8y3ex8.js} +4 -4
- package/dist/chunks/{websearch-q5ksxkha.js → aisdk-0p25w9ph.js} +6 -6
- package/dist/chunks/{websearch-zkgq49d1.js → aisdk-0p88zpcm.js} +4 -4
- package/dist/chunks/{websearch-gnk1ngs3.js → aisdk-0teydma5.js} +15 -15
- package/dist/chunks/{websearch-negnaxrt.js → aisdk-12nb02t2.js} +18 -18
- package/dist/chunks/{websearch-1ep2p91f.js → aisdk-1ep2p91f.js} +2 -2
- package/dist/chunks/{websearch-zzfxyc91.js → aisdk-1ja24dq6.js} +28 -28
- package/dist/chunks/{websearch-mzw1ndaz.js → aisdk-1qcedexj.js} +87 -87
- package/dist/chunks/{websearch-1x2knyw4.js → aisdk-1x2knyw4.js} +1 -1
- package/dist/chunks/{websearch-4hjg18t3.js → aisdk-220mdhzb.js} +4 -4
- package/dist/chunks/{websearch-pyg2ad4d.js → aisdk-26j25cha.js} +56 -56
- package/dist/chunks/{websearch-68k8pcn2.js → aisdk-29hrpqng.js} +19 -19
- package/dist/chunks/{websearch-bc0ymgk0.js → aisdk-2wdrvq6a.js} +47 -47
- package/dist/chunks/{websearch-shnwrs1k.js → aisdk-2y7eyeza.js} +33 -33
- package/dist/chunks/{websearch-2z1j29yd.js → aisdk-2z1j29yd.js} +1 -1
- package/dist/chunks/{websearch-xrc3640n.js → aisdk-3416qbwy.js} +8 -8
- package/dist/chunks/{websearch-bxfrdttp.js → aisdk-35fwsjrv.js} +28 -28
- package/dist/chunks/{websearch-tnqzh63d.js → aisdk-36qx82yz.js} +17 -7
- package/dist/chunks/{websearch-pvn3retk.js → aisdk-37geb7z3.js} +17 -17
- package/dist/chunks/{websearch-dhww0s6x.js → aisdk-38shjhjm.js} +1 -1
- package/dist/chunks/{websearch-3rgj9tjs.js → aisdk-3d48af3m.js} +30 -30
- package/dist/chunks/{websearch-3hepkmqq.js → aisdk-3hepkmqq.js} +1 -1
- package/dist/chunks/{websearch-3nnrz6f6.js → aisdk-3nnrz6f6.js} +1 -1
- package/dist/chunks/{websearch-39kss88q.js → aisdk-3p1jq0np.js} +9 -9
- package/dist/chunks/{websearch-8rf240hq.js → aisdk-3x08tjx8.js} +9 -9
- package/dist/chunks/{websearch-vz1a888q.js → aisdk-3x857x5x.js} +172 -172
- package/dist/chunks/{websearch-b5yc11pg.js → aisdk-3zycr9qn.js} +20 -20
- package/dist/chunks/{websearch-eraf7cqm.js → aisdk-4bnk94p6.js} +32 -32
- package/dist/chunks/{websearch-b868c8d8.js → aisdk-4cq5g4wa.js} +38 -38
- package/dist/chunks/{websearch-vy9rjjkt.js → aisdk-4e2nnt3c.js} +22 -22
- package/dist/chunks/{websearch-qvswfh9d.js → aisdk-4fwdgzfb.js} +23 -23
- package/dist/chunks/{websearch-ejgxm2nm.js → aisdk-4gyktcna.js} +19 -19
- package/dist/chunks/{websearch-4v008n1t.js → aisdk-4v008n1t.js} +1 -1
- package/dist/chunks/{websearch-4xvmh7wp.js → aisdk-4xvmh7wp.js} +3 -3
- package/dist/chunks/{websearch-j6a70pje.js → aisdk-55ry4qzj.js} +50 -50
- package/dist/chunks/{websearch-befe4cf3.js → aisdk-587x5jpz.js} +4 -4
- package/dist/chunks/{websearch-rjbe0a9e.js → aisdk-5avxzg1d.js} +3 -3
- package/dist/chunks/{websearch-sc8entjg.js → aisdk-5cs07f0d.js} +9 -9
- package/dist/chunks/{websearch-8emm9fy9.js → aisdk-5d8bg0wt.js} +4 -4
- package/dist/chunks/{websearch-40za9wsf.js → aisdk-5enarcya.js} +6 -6
- package/dist/chunks/{websearch-3z074cxn.js → aisdk-5kg1rr73.js} +7 -7
- package/dist/chunks/{websearch-5m9w47nd.js → aisdk-5m9w47nd.js} +1 -1
- package/dist/chunks/{websearch-yydqqga9.js → aisdk-5w1mdqt7.js} +4 -4
- package/dist/chunks/{websearch-y22e2amb.js → aisdk-5zr4pxbw.js} +18 -18
- package/dist/chunks/{websearch-6zrr0fnw.js → aisdk-65xt1b15.js} +33 -33
- package/dist/chunks/{websearch-gyz3azbf.js → aisdk-6673z0jd.js} +12 -12
- package/dist/chunks/{websearch-6esdw8yj.js → aisdk-6esdw8yj.js} +1 -1
- package/dist/chunks/{websearch-85sv36r4.js → aisdk-6gveg3af.js} +22 -22
- package/dist/chunks/{websearch-c6r66q4n.js → aisdk-6gvhtv45.js} +2 -2
- package/dist/chunks/{websearch-rwf9r3m0.js → aisdk-6k4nvbs0.js} +32 -32
- package/dist/chunks/{websearch-5fjdabgp.js → aisdk-6nw7xe5v.js} +11 -11
- package/dist/chunks/{websearch-6pjqjmy2.js → aisdk-6pjqjmy2.js} +1 -1
- package/dist/chunks/{websearch-m8gc8z80.js → aisdk-6v1bxwq1.js} +15 -15
- package/dist/chunks/{websearch-neyf1ckr.js → aisdk-77j7mfrn.js} +15 -15
- package/dist/chunks/{websearch-nq3mvejp.js → aisdk-78qdxz5c.js} +10 -10
- package/dist/chunks/{websearch-7bmhse3q.js → aisdk-7bmhse3q.js} +1 -1
- package/dist/chunks/{websearch-xfbpcgb3.js → aisdk-7gv8tktv.js} +23 -23
- package/dist/chunks/{websearch-pbjsg7m1.js → aisdk-7tnvyfx2.js} +21 -21
- package/dist/chunks/{websearch-7w2ypzdf.js → aisdk-7w2ypzdf.js} +1 -1
- package/dist/chunks/{websearch-rv7ddw0n.js → aisdk-7wxtqqfa.js} +27 -27
- package/dist/chunks/{websearch-afmnpta1.js → aisdk-7xg2jm5b.js} +5 -5
- package/dist/chunks/{websearch-4jv1qxwj.js → aisdk-7z013g1v.js} +5 -5
- package/dist/chunks/{websearch-pk0v2zct.js → aisdk-80sbmjz5.js} +13 -13
- package/dist/chunks/{websearch-fz7prppb.js → aisdk-87j4n1tv.js} +17 -17
- package/dist/chunks/{websearch-zxxqm14y.js → aisdk-88gdvb0f.js} +14 -14
- package/dist/chunks/{websearch-pc1v25hk.js → aisdk-8bc2ahr8.js} +3 -3
- package/dist/chunks/{websearch-qjgzc4b4.js → aisdk-8jztxfpf.js} +4 -4
- package/dist/chunks/{websearch-ygqqsqxe.js → aisdk-8kyn5d4c.js} +5 -5
- package/dist/chunks/{websearch-0jst9dmz.js → aisdk-8mb6a7e8.js} +21 -21
- package/dist/chunks/{websearch-vbymnfc5.js → aisdk-8pme5eag.js} +14 -14
- package/dist/chunks/{websearch-8wtp7s3z.js → aisdk-8wtp7s3z.js} +1 -1
- package/dist/chunks/{websearch-fv6att8a.js → aisdk-8wxdtvx4.js} +12 -12
- package/dist/chunks/{websearch-n7hthk3p.js → aisdk-8x10f120.js} +23 -23
- package/dist/chunks/{websearch-sfkj0ta1.js → aisdk-8y31xnqm.js} +5 -5
- package/dist/chunks/{websearch-91rj84md.js → aisdk-91rj84md.js} +1 -1
- package/dist/chunks/{websearch-998yhzzq.js → aisdk-998yhzzq.js} +3 -3
- package/dist/chunks/{websearch-shvrd9z9.js → aisdk-9a91xz6j.js} +28 -28
- package/dist/chunks/{websearch-4c9adx7x.js → aisdk-9c04767k.js} +12 -12
- package/dist/chunks/{websearch-q6bn7qw5.js → aisdk-9cbnrx2n.js} +6 -6
- package/dist/chunks/aisdk-9dkfkrqe.js +257 -0
- package/dist/chunks/{websearch-hvwvq3df.js → aisdk-9grvd76r.js} +8 -8
- package/dist/chunks/{websearch-kp0e8qdv.js → aisdk-9zz0xvdb.js} +21 -21
- package/dist/chunks/{websearch-czcebxpq.js → aisdk-a4c7tjfz.js} +68 -68
- package/dist/chunks/{websearch-vnntc3sm.js → aisdk-a60wbeh3.js} +35 -35
- package/dist/chunks/{websearch-53xcczwb.js → aisdk-a9eckmg9.js} +13 -13
- package/dist/chunks/{websearch-1v0n44x7.js → aisdk-abr9m9q2.js} +16 -16
- package/dist/chunks/aisdk-ag1sebv8.js +111 -0
- package/dist/chunks/{websearch-1yf62w26.js → aisdk-ajz4j5wg.js} +1 -1
- package/dist/chunks/{websearch-0421tmwc.js → aisdk-apd5jra7.js} +9 -9
- package/dist/chunks/{websearch-hzrfc1p4.js → aisdk-arz7hw7x.js} +3 -3
- package/dist/chunks/{websearch-54mwpwnj.js → aisdk-ax2hm835.js} +46 -46
- package/dist/chunks/{websearch-etj7xr5r.js → aisdk-axmgkvat.js} +26 -26
- package/dist/chunks/{websearch-sy9xwmw1.js → aisdk-aybq7ad1.js} +8 -8
- package/dist/chunks/{websearch-ayjs7tqn.js → aisdk-ayjs7tqn.js} +2 -2
- package/dist/chunks/{websearch-b0mv4wxm.js → aisdk-b0mv4wxm.js} +2 -2
- package/dist/chunks/{websearch-d7qtxm9r.js → aisdk-b0v3gy1q.js} +10 -10
- package/dist/chunks/{websearch-b6vsg801.js → aisdk-b6vsg801.js} +2 -2
- package/dist/chunks/{websearch-nzcs0wzz.js → aisdk-b9zkcqt6.js} +8 -8
- package/dist/chunks/{websearch-35myeakn.js → aisdk-bkc2tac9.js} +11 -11
- package/dist/chunks/{websearch-z41z05dk.js → aisdk-br70t734.js} +6 -6
- package/dist/chunks/{websearch-bstexjd6.js → aisdk-bstexjd6.js} +1 -1
- package/dist/chunks/{websearch-dkcjkp08.js → aisdk-bsym7w2k.js} +6 -6
- package/dist/chunks/{websearch-fmnjzv27.js → aisdk-c3f7s1z4.js} +5 -5
- package/dist/chunks/{websearch-4p8v6gf7.js → aisdk-c84xww2z.js} +3 -3
- package/dist/chunks/{websearch-61m88qqz.js → aisdk-cd1mybd7.js} +33 -33
- package/dist/chunks/{websearch-syvntbhr.js → aisdk-ckpcc1p6.js} +16 -16
- package/dist/chunks/{websearch-wfewkgqg.js → aisdk-cq35sb18.js} +42 -42
- package/dist/chunks/{websearch-qtmq7hg9.js → aisdk-csbefy86.js} +41 -41
- package/dist/chunks/{websearch-efz7hhzt.js → aisdk-d0a8twh9.js} +12 -12
- package/dist/chunks/{websearch-d4v9tmah.js → aisdk-d4v9tmah.js} +2 -2
- package/dist/chunks/{websearch-hy8c1z76.js → aisdk-ddvn7d3w.js} +8 -8
- package/dist/chunks/{websearch-53b428tw.js → aisdk-dg7jpt9k.js} +18 -18
- package/dist/chunks/{websearch-e4k6zsy1.js → aisdk-dgyr5e3n.js} +30 -23
- package/dist/chunks/{websearch-a7hcemwv.js → aisdk-djwtgbda.js} +8 -8
- package/dist/chunks/{websearch-4a126rg5.js → aisdk-dpaznkka.js} +27 -27
- package/dist/chunks/{websearch-cv8jg5mf.js → aisdk-dzz03wkf.js} +11 -11
- package/dist/chunks/{websearch-jneg3k74.js → aisdk-e5dqjz6v.js} +4 -4
- package/dist/chunks/{websearch-2bcte980.js → aisdk-e7f9c5nc.js} +1 -1
- package/dist/chunks/{websearch-e834z07m.js → aisdk-e834z07m.js} +1 -1
- package/dist/chunks/{websearch-5pr32gd7.js → aisdk-ebzzn2wv.js} +48 -48
- package/dist/chunks/{websearch-1y0wdj51.js → aisdk-eg2ky145.js} +4 -4
- package/dist/chunks/{websearch-0kajrgn5.js → aisdk-eg4538tj.js} +8 -8
- package/dist/chunks/{websearch-fvc4bqe2.js → aisdk-eq3fc1qc.js} +5 -5
- package/dist/chunks/{websearch-6rg7kjpy.js → aisdk-er6r66k3.js} +28 -28
- package/dist/chunks/{websearch-hswty8r3.js → aisdk-ewvn0npq.js} +22 -22
- package/dist/chunks/{websearch-bn7kdvhq.js → aisdk-f2h28766.js} +11 -11
- package/dist/chunks/{websearch-g6wnqzhb.js → aisdk-f3esefgg.js} +17 -17
- package/dist/chunks/{websearch-9hj5qrya.js → aisdk-f6nndrrh.js} +24 -24
- package/dist/chunks/aisdk-fffr9x0a.js +26 -0
- package/dist/chunks/{websearch-fffv3p7h.js → aisdk-fffv3p7h.js} +1 -1
- package/dist/chunks/{websearch-26ye1a0h.js → aisdk-fs61zt0f.js} +43 -43
- package/dist/chunks/{websearch-5mmnsyp9.js → aisdk-fsgf2sts.js} +13 -13
- package/dist/chunks/{websearch-w9gfj7y9.js → aisdk-fvh2vv9m.js} +24 -24
- package/dist/chunks/{websearch-qfw0te7b.js → aisdk-g0ca4n64.js} +15 -15
- package/dist/chunks/{websearch-g5h9c0rr.js → aisdk-g5h9c0rr.js} +2 -2
- package/dist/chunks/{websearch-6twykydk.js → aisdk-gcjdgkn2.js} +9 -9
- package/dist/chunks/{websearch-qcf9sep0.js → aisdk-gfk8shh2.js} +7 -7
- package/dist/chunks/{websearch-xqqxjzgs.js → aisdk-gggmd2rh.js} +18 -18
- package/dist/chunks/{websearch-tn5rj4h4.js → aisdk-grnky8r7.js} +21 -21
- package/dist/chunks/{websearch-eb0nfaz4.js → aisdk-gy7s430a.js} +11 -11
- package/dist/chunks/{websearch-9yt3qsdq.js → aisdk-h6vh40gh.js} +22 -22
- package/dist/chunks/{websearch-mptby4ra.js → aisdk-h7pdcx31.js} +42 -42
- package/dist/chunks/{websearch-876de6v3.js → aisdk-h83fqc2v.js} +23 -23
- package/dist/chunks/{websearch-rxrz6b15.js → aisdk-hhafapa0.js} +2 -2
- package/dist/chunks/{websearch-j82mhg5v.js → aisdk-hpdmknzn.js} +13 -13
- package/dist/chunks/{websearch-ceeb7cqk.js → aisdk-hv6j6j2x.js} +11 -11
- package/dist/chunks/{websearch-99v8e8rn.js → aisdk-hvssq0y7.js} +2 -2
- package/dist/chunks/{websearch-j113cymg.js → aisdk-j113cymg.js} +1 -1
- package/dist/chunks/{websearch-3aw6bcdd.js → aisdk-j2t5kkxj.js} +29 -29
- package/dist/chunks/{websearch-r5q4n18f.js → aisdk-j43965rx.js} +9 -9
- package/dist/chunks/{websearch-qyrktak0.js → aisdk-j461w920.js} +32 -32
- package/dist/chunks/{websearch-3qn9w17a.js → aisdk-j61vbze9.js} +11 -11
- package/dist/chunks/{websearch-35sav4w0.js → aisdk-jawg49hk.js} +11 -11
- package/dist/chunks/{websearch-3g41ey7s.js → aisdk-jtpvmkzs.js} +11 -11
- package/dist/chunks/{websearch-t2c8c6tj.js → aisdk-k3a9bzeg.js} +14 -14
- package/dist/chunks/{websearch-dswfp19d.js → aisdk-k63vy0cm.js} +3 -3
- package/dist/chunks/{websearch-k814nvkf.js → aisdk-k814nvkf.js} +1 -1
- package/dist/chunks/{websearch-7vftsjfj.js → aisdk-kcp9cvk2.js} +26 -26
- package/dist/chunks/{websearch-ezdmt8g7.js → aisdk-kfwzpye5.js} +5 -5
- package/dist/chunks/{websearch-mfwfc967.js → aisdk-kgwvpfhe.js} +16 -16
- package/dist/chunks/{websearch-2fkrhbg9.js → aisdk-kpx1d59m.js} +23 -23
- package/dist/chunks/{websearch-74m3x80w.js → aisdk-kwfd8efh.js} +10 -10
- package/dist/chunks/{websearch-m1714858.js → aisdk-m1714858.js} +1 -1
- package/dist/chunks/{websearch-m9w0rfyh.js → aisdk-m9w0rfyh.js} +1 -1
- package/dist/chunks/{websearch-maspj1v3.js → aisdk-maspj1v3.js} +1 -1
- package/dist/chunks/{websearch-601m2pka.js → aisdk-mb36f359.js} +22 -22
- package/dist/chunks/{websearch-c3cfh5w6.js → aisdk-mmkbt6v3.js} +9 -9
- package/dist/chunks/{websearch-e14ep8c2.js → aisdk-mqzq7ps5.js} +8 -8
- package/dist/chunks/{websearch-d2887f8n.js → aisdk-mtkfycnh.js} +4 -4
- package/dist/chunks/{websearch-n0p0277s.js → aisdk-n0p0277s.js} +1 -1
- package/dist/chunks/{websearch-4snbakks.js → aisdk-n3y3wd5f.js} +4 -4
- package/dist/chunks/{websearch-aamv54pf.js → aisdk-n8da7heg.js} +29 -29
- package/dist/chunks/{websearch-770pw0s1.js → aisdk-nah043kf.js} +4 -4
- package/dist/chunks/{websearch-e1g8z5n0.js → aisdk-nefstypy.js} +14 -14
- package/dist/chunks/{websearch-090ayew8.js → aisdk-nnp54cts.js} +16 -16
- package/dist/chunks/{websearch-p015t6z3.js → aisdk-p015t6z3.js} +2 -2
- package/dist/chunks/{websearch-3bp5jjvw.js → aisdk-p7pnaddp.js} +6 -6
- package/dist/chunks/{websearch-hwyh2kpq.js → aisdk-pdfka3qf.js} +11 -11
- package/dist/chunks/{websearch-nbv85aqk.js → aisdk-pft6njjq.js} +21 -21
- package/dist/chunks/{websearch-sepw9312.js → aisdk-pgh89q3r.js} +9 -9
- package/dist/chunks/{websearch-da9th9a0.js → aisdk-pj44ejs4.js} +21 -21
- package/dist/chunks/{websearch-pknna89w.js → aisdk-pknna89w.js} +1 -1
- package/dist/chunks/{websearch-ztf6n3de.js → aisdk-prd8gnhb.js} +4 -4
- package/dist/chunks/{websearch-ve5gzmd5.js → aisdk-q1z4kk8n.js} +4 -4
- package/dist/chunks/{websearch-ezejdjmf.js → aisdk-q3drqv0m.js} +10 -10
- package/dist/chunks/{websearch-yg7ytxzr.js → aisdk-q409csbg.js} +11 -11
- package/dist/chunks/{websearch-qhsybjre.js → aisdk-q5ewbhp3.js} +12 -12
- package/dist/chunks/{websearch-kndc5src.js → aisdk-q7ke1em1.js} +1 -1
- package/dist/chunks/{websearch-zzhs96fs.js → aisdk-q9aq9fqv.js} +15 -15
- package/dist/chunks/{websearch-60ndzxv8.js → aisdk-q9epxj2b.js} +37 -37
- package/dist/chunks/{websearch-gjw9pjem.js → aisdk-qacamjxb.js} +18 -18
- package/dist/chunks/{websearch-6bqp8z2s.js → aisdk-qm80d3sz.js} +18 -18
- package/dist/chunks/{websearch-ahjrynj8.js → aisdk-qsqxvd8d.js} +16 -16
- package/dist/chunks/{websearch-tgsxr5er.js → aisdk-qx09r870.js} +14 -14
- package/dist/chunks/{websearch-adcxthm4.js → aisdk-qyrdhqaa.js} +35 -35
- package/dist/chunks/{websearch-ga92ybw9.js → aisdk-r0td1pez.js} +14 -14
- package/dist/chunks/{websearch-r0yr0wbs.js → aisdk-r0yr0wbs.js} +1 -1
- package/dist/chunks/{websearch-mjxc5aj5.js → aisdk-r892vp5m.js} +43 -43
- package/dist/chunks/{websearch-rb9dy4dg.js → aisdk-rb9dy4dg.js} +1 -1
- package/dist/chunks/{websearch-mmqtdvrn.js → aisdk-rfd5kqhk.js} +4 -4
- package/dist/chunks/{websearch-1v3m6w2k.js → aisdk-rmezgp6m.js} +335 -335
- package/dist/chunks/{websearch-bjhzkqyk.js → aisdk-rrad2nt9.js} +4 -4
- package/dist/chunks/{websearch-vgr3c4a7.js → aisdk-rrfmzwpm.js} +4 -4
- package/dist/chunks/{websearch-rt5dr6hb.js → aisdk-rt5dr6hb.js} +1 -1
- package/dist/chunks/{websearch-4x7cszc9.js → aisdk-rytxqrsr.js} +20 -20
- package/dist/chunks/{websearch-t0h12fke.js → aisdk-s2p0a5nx.js} +14 -14
- package/dist/chunks/{websearch-hch4wa3n.js → aisdk-s99p9jh6.js} +8 -6
- package/dist/chunks/aisdk-sa3fpqfw.js +46 -0
- package/dist/chunks/{websearch-8t9b736e.js → aisdk-sa8jxy57.js} +15 -15
- package/dist/chunks/{websearch-kbjsyctr.js → aisdk-sc3bsvgm.js} +18 -18
- package/dist/chunks/{websearch-a6959n1g.js → aisdk-shn52zna.js} +10 -10
- package/dist/chunks/{websearch-sqjzf8x2.js → aisdk-sqjzf8x2.js} +1 -1
- package/dist/chunks/{websearch-67gksmdf.js → aisdk-srazx2b7.js} +30 -30
- package/dist/chunks/{websearch-z7w4m9jf.js → aisdk-ss04k2gg.js} +29 -29
- package/dist/chunks/{websearch-7jz0dh2k.js → aisdk-syjzf9mk.js} +19 -19
- package/dist/chunks/{websearch-fq91yvwf.js → aisdk-szkfmpq9.js} +17 -17
- package/dist/chunks/{websearch-pd0633z0.js → aisdk-szxd9w50.js} +30 -30
- package/dist/chunks/{websearch-cz1vwcws.js → aisdk-t60595ww.js} +2 -2
- package/dist/chunks/{websearch-4r4bnvcy.js → aisdk-t9yxd4g7.js} +4 -4
- package/dist/chunks/{websearch-tczq8hjw.js → aisdk-tczq8hjw.js} +1 -1
- package/dist/chunks/{websearch-rsdttbp5.js → aisdk-tq0qt55e.js} +15 -15
- package/dist/chunks/{websearch-b87x680z.js → aisdk-tsgcpws0.js} +20 -20
- package/dist/chunks/{websearch-tw8zr1ps.js → aisdk-tw8zr1ps.js} +1 -1
- package/dist/chunks/{websearch-twv2r8f4.js → aisdk-twv2r8f4.js} +2 -2
- package/dist/chunks/{websearch-584q6htd.js → aisdk-tz9bjn7r.js} +3 -3
- package/dist/chunks/{websearch-0ty15b8r.js → aisdk-v2e82ypn.js} +13 -13
- package/dist/chunks/{websearch-v2r1d0zg.js → aisdk-v2r1d0zg.js} +1 -1
- package/dist/chunks/{websearch-q3bgpfy7.js → aisdk-v2ywx7d9.js} +17 -17
- package/dist/chunks/{websearch-2f6dwfym.js → aisdk-v9b1jn8p.js} +21 -21
- package/dist/chunks/{websearch-sf4dycwn.js → aisdk-v9esy932.js} +11 -11
- package/dist/chunks/{websearch-p7vhpwh8.js → aisdk-v9ez2kgh.js} +5 -5
- package/dist/chunks/{websearch-n7wnam13.js → aisdk-vbhy04yp.js} +8 -8
- package/dist/chunks/{websearch-vd3b3yk9.js → aisdk-vd3b3yk9.js} +1 -1
- package/dist/chunks/{websearch-g4fsskpn.js → aisdk-ve5z042r.js} +27 -27
- package/dist/chunks/{websearch-veqvce7d.js → aisdk-veqvce7d.js} +1 -1
- package/dist/chunks/{websearch-b65mwzbx.js → aisdk-vf2v61ts.js} +28 -28
- package/dist/chunks/{websearch-tdpgt7wh.js → aisdk-vh0jeg5q.js} +20 -20
- package/dist/chunks/{websearch-eqmd2tfz.js → aisdk-vmfhgzt5.js} +7 -7
- package/dist/chunks/{websearch-0hxcp4e6.js → aisdk-vspp8v6d.js} +6 -6
- package/dist/chunks/{websearch-yhta6zhb.js → aisdk-vzarcnq3.js} +16 -16
- package/dist/chunks/{websearch-w3wsvvr9.js → aisdk-w3wsvvr9.js} +1 -1
- package/dist/chunks/{websearch-d0ctn9ee.js → aisdk-w4c0j6zg.js} +24 -24
- package/dist/chunks/{websearch-w8qtt4th.js → aisdk-w8qtt4th.js} +1 -1
- package/dist/chunks/{websearch-wakvkjy4.js → aisdk-wakvkjy4.js} +1 -1
- package/dist/chunks/{websearch-wd87259q.js → aisdk-wd87259q.js} +1 -1
- package/dist/chunks/{websearch-c3b0e464.js → aisdk-wezhzhbw.js} +20 -20
- package/dist/chunks/{websearch-q3vt6pnc.js → aisdk-whhz53d6.js} +14 -14
- package/dist/chunks/{websearch-kb4gstwj.js → aisdk-wp4rg1a9.js} +5 -5
- package/dist/chunks/{websearch-c9erfsw0.js → aisdk-ws84jjae.js} +46 -46
- package/dist/chunks/{websearch-0r7sceh0.js → aisdk-x0v1qxj5.js} +18 -18
- package/dist/chunks/{websearch-tez9md4y.js → aisdk-x4r9ezkk.js} +6 -6
- package/dist/chunks/{websearch-pv4tdx85.js → aisdk-x7vk9p31.js} +11 -11
- package/dist/chunks/{websearch-dmk8nbcm.js → aisdk-x8n50tyc.js} +11 -11
- package/dist/chunks/{websearch-mt3ysty9.js → aisdk-xkympmbz.js} +6 -6
- package/dist/chunks/{websearch-2axrbrmc.js → aisdk-xrwhez4s.js} +7 -7
- package/dist/chunks/{websearch-6jm1rnt9.js → aisdk-xvdmjtkf.js} +87 -87
- package/dist/chunks/{websearch-y4kbxhdq.js → aisdk-xwbr60jz.js} +8 -8
- package/dist/chunks/{websearch-v2aqy3r9.js → aisdk-y1tjw70v.js} +11 -11
- package/dist/chunks/{websearch-wkpxpnd1.js → aisdk-y89skamq.js} +35 -35
- package/dist/chunks/{websearch-yb20nhc3.js → aisdk-yb20nhc3.js} +1 -1
- package/dist/chunks/{websearch-b6ft8j34.js → aisdk-yjwcb63e.js} +9 -9
- package/dist/chunks/{websearch-bne87zw5.js → aisdk-yk9hzv9x.js} +19 -19
- package/dist/chunks/{websearch-xazjtzbh.js → aisdk-ypr958tt.js} +15 -15
- package/dist/chunks/{websearch-an558sqv.js → aisdk-yr1nt44v.js} +7 -7
- package/dist/chunks/{websearch-y605yc6m.js → aisdk-yyb821fg.js} +25 -25
- package/dist/chunks/{websearch-z0bkrqjs.js → aisdk-z0bkrqjs.js} +1 -1
- package/dist/chunks/{websearch-6dbnd2pd.js → aisdk-z0dwwj88.js} +24 -24
- package/dist/chunks/{websearch-z38nccrw.js → aisdk-z38nccrw.js} +1 -1
- package/dist/chunks/{websearch-zkg84ctx.js → aisdk-zkg84ctx.js} +1 -1
- package/dist/chunks/{websearch-vs6d5gmb.js → aisdk-zmr7x0ed.js} +2 -2
- package/dist/chunks/{websearch-77mes9hg.js → aisdk-zp2rbezs.js} +13 -13
- package/dist/chunks/{websearch-zpe8k49a.js → aisdk-zyzsrgv4.js} +9 -9
- package/dist/chunks/{websearch-vnmgdpj6.js → aisdk-zzwtngp7.js} +5 -5
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +85 -84
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +102 -101
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +105 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +95 -94
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- 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 +96 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +98 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +107 -106
- package/dist/file-mutation.js +97 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +225 -225
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +102 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +105 -104
- package/dist/form.js +84 -84
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +90 -89
- package/dist/generate.js +106 -105
- package/dist/git.js +11 -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 +102 -101
- 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 +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +90 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +156 -156
- package/dist/location-lifecycle.js +110 -109
- package/dist/location-service-map.js +89 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +92 -91
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +94 -93
- package/dist/mcp/index.js +104 -103
- package/dist/mcp/instructions.js +141 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +93 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +102 -101
- package/dist/model-resolver.js +104 -103
- package/dist/model-retry.js +1 -1
- package/dist/model.js +97 -96
- package/dist/models-dev.js +104 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +110 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +105 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +5 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +99 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +5 -3
- package/dist/plugin/plan.js +105 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +93 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +96 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +98 -97
- package/dist/plugin/provider/gitlab.js +96 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +95 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai-context-caps.js +93 -92
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +101 -100
- package/dist/plugin/provider/openrouter.js +94 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +94 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +93 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +94 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +1 -1
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +351 -351
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +89 -88
- package/dist/plugin/vcs/hg.js +89 -88
- package/dist/plugin/verbosity.js +96 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +221 -221
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -92
- package/dist/provider.js +96 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +91 -91
- package/dist/reference/instructions.js +92 -91
- package/dist/reference.js +92 -91
- package/dist/repository-cache.js +84 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +100 -99
- package/dist/rpc.js +89 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +139 -138
- package/dist/session/context.js +165 -164
- package/dist/session/diff.js +91 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +131 -130
- package/dist/session/generate.js +165 -164
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +100 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +123 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +133 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +108 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +97 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +103 -102
- package/dist/session/runner/publish-llm-event.js +117 -116
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +129 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +163 -163
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +106 -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 +212 -212
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +169 -168
- package/dist/session/to-session-error.js +115 -114
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +15 -15
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +110 -109
- package/dist/skill.js +113 -112
- package/dist/snapshot.js +96 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +140 -139
- package/dist/tool/plugin/edit.js +123 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +127 -126
- package/dist/tool/plugin/grep.js +125 -124
- package/dist/tool/plugin/mcp-resource.js +127 -126
- package/dist/tool/plugin/opencode.js +112 -111
- package/dist/tool/plugin/patch.js +123 -122
- package/dist/tool/plugin/question.js +106 -105
- package/dist/tool/plugin/read.js +128 -127
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +116 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +114 -113
- package/dist/tool/plugin/websearch.js +117 -116
- package/dist/tool/plugin/write.js +123 -122
- package/dist/tool/read-filesystem.js +103 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/plugin/optimize.d.ts +26 -0
- package/dist/types/util/git-executable.d.ts +6 -2
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +5 -2
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +95 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +94 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +92 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +92 -91
- package/dist/worktree.js +99 -98
- package/package.json +8 -8
- package/dist/chunks/websearch-ef5x83kb.js +0 -15
- package/dist/chunks/websearch-gecnmrws.js +0 -26
- package/dist/chunks/websearch-gnqtsnxp.js +0 -82
- package/dist/chunks/websearch-ms1v96r1.js +0 -257
- /package/dist/chunks/{websearch-0qkdqm5v.js → aisdk-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{websearch-0zkw76rk.js → aisdk-0zkw76rk.js} +0 -0
- /package/dist/chunks/{websearch-17cy0kzp.js → aisdk-17cy0kzp.js} +0 -0
- /package/dist/chunks/{websearch-1cnp2v09.js → aisdk-1cnp2v09.js} +0 -0
- /package/dist/chunks/{websearch-24dcb14g.js → aisdk-24dcb14g.js} +0 -0
- /package/dist/chunks/{websearch-2710q6r3.js → aisdk-2710q6r3.js} +0 -0
- /package/dist/chunks/{websearch-2bv980vf.js → aisdk-2bv980vf.js} +0 -0
- /package/dist/chunks/{websearch-2c3vjs8z.js → aisdk-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{websearch-359p4xyc.js → aisdk-359p4xyc.js} +0 -0
- /package/dist/chunks/{websearch-3asan66x.js → aisdk-3asan66x.js} +0 -0
- /package/dist/chunks/{websearch-3v8g72cx.js → aisdk-3v8g72cx.js} +0 -0
- /package/dist/chunks/{websearch-3wcehsnq.js → aisdk-3wcehsnq.js} +0 -0
- /package/dist/chunks/{websearch-43n2bw4t.js → aisdk-43n2bw4t.js} +0 -0
- /package/dist/chunks/{websearch-4knz6hnm.js → aisdk-4knz6hnm.js} +0 -0
- /package/dist/chunks/{websearch-4vcrnpx2.js → aisdk-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{websearch-4y7fprxs.js → aisdk-4y7fprxs.js} +0 -0
- /package/dist/chunks/{websearch-53557ph1.js → aisdk-53557ph1.js} +0 -0
- /package/dist/chunks/{websearch-550bvhaj.js → aisdk-550bvhaj.js} +0 -0
- /package/dist/chunks/{websearch-5fjb7ams.js → aisdk-5fjb7ams.js} +0 -0
- /package/dist/chunks/{websearch-5qd3pb7m.js → aisdk-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{websearch-6prwharc.js → aisdk-6prwharc.js} +0 -0
- /package/dist/chunks/{websearch-6q2bdcd1.js → aisdk-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{websearch-7akdwqpd.js → aisdk-7akdwqpd.js} +0 -0
- /package/dist/chunks/{websearch-7m9af43g.js → aisdk-7m9af43g.js} +0 -0
- /package/dist/chunks/{websearch-822emrt2.js → aisdk-822emrt2.js} +0 -0
- /package/dist/chunks/{websearch-84wd9syh.js → aisdk-84wd9syh.js} +0 -0
- /package/dist/chunks/{websearch-88xbtdfr.js → aisdk-88xbtdfr.js} +0 -0
- /package/dist/chunks/{websearch-8n3pysct.js → aisdk-8n3pysct.js} +0 -0
- /package/dist/chunks/{websearch-8wj87zfr.js → aisdk-8wj87zfr.js} +0 -0
- /package/dist/chunks/{websearch-9a4afbnw.js → aisdk-9a4afbnw.js} +0 -0
- /package/dist/chunks/{websearch-9rqn6x4v.js → aisdk-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{websearch-a058387c.js → aisdk-a058387c.js} +0 -0
- /package/dist/chunks/{websearch-a6k6eb26.js → aisdk-a6k6eb26.js} +0 -0
- /package/dist/chunks/{websearch-af5trqkr.js → aisdk-af5trqkr.js} +0 -0
- /package/dist/chunks/{websearch-afrmfg78.js → aisdk-afrmfg78.js} +0 -0
- /package/dist/chunks/{websearch-aqzs7mqg.js → aisdk-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{websearch-atq7p7m5.js → aisdk-atq7p7m5.js} +0 -0
- /package/dist/chunks/{websearch-bkyjaxrp.js → aisdk-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{websearch-bmr6ed5q.js → aisdk-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{websearch-cf4snx6d.js → aisdk-cf4snx6d.js} +0 -0
- /package/dist/chunks/{websearch-cvy3z8tj.js → aisdk-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{websearch-d9fn303g.js → aisdk-d9fn303g.js} +0 -0
- /package/dist/chunks/{websearch-d9jj8t3e.js → aisdk-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{websearch-dajrwvna.js → aisdk-dajrwvna.js} +0 -0
- /package/dist/chunks/{websearch-dap0rakb.js → aisdk-dap0rakb.js} +0 -0
- /package/dist/chunks/{websearch-df08tz66.js → aisdk-df08tz66.js} +0 -0
- /package/dist/chunks/{websearch-dy18nga0.js → aisdk-dy18nga0.js} +0 -0
- /package/dist/chunks/{websearch-e5kj55wp.js → aisdk-e5kj55wp.js} +0 -0
- /package/dist/chunks/{websearch-e73j6tqm.js → aisdk-e73j6tqm.js} +0 -0
- /package/dist/chunks/{websearch-ec1grn59.js → aisdk-ec1grn59.js} +0 -0
- /package/dist/chunks/{websearch-eh3zwz77.js → aisdk-eh3zwz77.js} +0 -0
- /package/dist/chunks/{websearch-emrn6kk6.js → aisdk-emrn6kk6.js} +0 -0
- /package/dist/chunks/{websearch-f0mxakyp.js → aisdk-f0mxakyp.js} +0 -0
- /package/dist/chunks/{websearch-f6n9ztr4.js → aisdk-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{websearch-faypxj3z.js → aisdk-faypxj3z.js} +0 -0
- /package/dist/chunks/{websearch-fd410y7t.js → aisdk-fd410y7t.js} +0 -0
- /package/dist/chunks/{websearch-g4wezp1m.js → aisdk-g4wezp1m.js} +0 -0
- /package/dist/chunks/{websearch-g86h250q.js → aisdk-g86h250q.js} +0 -0
- /package/dist/chunks/{websearch-gebd4c9n.js → aisdk-gebd4c9n.js} +0 -0
- /package/dist/chunks/{websearch-gftt206x.js → aisdk-gftt206x.js} +0 -0
- /package/dist/chunks/{websearch-hcxmzztb.js → aisdk-hcxmzztb.js} +0 -0
- /package/dist/chunks/{websearch-hk9envan.js → aisdk-hk9envan.js} +0 -0
- /package/dist/chunks/{websearch-j2ntwpah.js → aisdk-j2ntwpah.js} +0 -0
- /package/dist/chunks/{websearch-j5zkgpj8.js → aisdk-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{websearch-jjkms2e6.js → aisdk-jjkms2e6.js} +0 -0
- /package/dist/chunks/{websearch-jr7sbwjy.js → aisdk-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{websearch-jwfs4k6c.js → aisdk-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{websearch-jze0r7bz.js → aisdk-jze0r7bz.js} +0 -0
- /package/dist/chunks/{websearch-jzg6c2d5.js → aisdk-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{websearch-m18g726c.js → aisdk-m18g726c.js} +0 -0
- /package/dist/chunks/{websearch-mp448xyj.js → aisdk-mp448xyj.js} +0 -0
- /package/dist/chunks/{websearch-msx8hqn2.js → aisdk-msx8hqn2.js} +0 -0
- /package/dist/chunks/{websearch-n05xt0ee.js → aisdk-n05xt0ee.js} +0 -0
- /package/dist/chunks/{websearch-n3j8tn72.js → aisdk-n3j8tn72.js} +0 -0
- /package/dist/chunks/{websearch-njntx4h6.js → aisdk-njntx4h6.js} +0 -0
- /package/dist/chunks/{websearch-pkyv6v7h.js → aisdk-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{websearch-q3sfg36h.js → aisdk-q3sfg36h.js} +0 -0
- /package/dist/chunks/{websearch-q74kybfr.js → aisdk-q74kybfr.js} +0 -0
- /package/dist/chunks/{websearch-qaymkmh1.js → aisdk-qaymkmh1.js} +0 -0
- /package/dist/chunks/{websearch-qb87gjwd.js → aisdk-qb87gjwd.js} +0 -0
- /package/dist/chunks/{websearch-qfa1cgps.js → aisdk-qfa1cgps.js} +0 -0
- /package/dist/chunks/{websearch-qg3g05ea.js → aisdk-qg3g05ea.js} +0 -0
- /package/dist/chunks/{websearch-qrg20bc0.js → aisdk-qrg20bc0.js} +0 -0
- /package/dist/chunks/{websearch-rcb2kzg1.js → aisdk-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{websearch-sdp7kfr6.js → aisdk-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{websearch-ssg3fenm.js → aisdk-ssg3fenm.js} +0 -0
- /package/dist/chunks/{websearch-ve7vex1e.js → aisdk-ve7vex1e.js} +0 -0
- /package/dist/chunks/{websearch-w803qqfp.js → aisdk-w803qqfp.js} +0 -0
- /package/dist/chunks/{websearch-wc3fc9cn.js → aisdk-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{websearch-wer8tq1h.js → aisdk-wer8tq1h.js} +0 -0
- /package/dist/chunks/{websearch-wjj7prxr.js → aisdk-wjj7prxr.js} +0 -0
- /package/dist/chunks/{websearch-wtztk69x.js → aisdk-wtztk69x.js} +0 -0
- /package/dist/chunks/{websearch-x0ckcb58.js → aisdk-x0ckcb58.js} +0 -0
- /package/dist/chunks/{websearch-x61499pn.js → aisdk-x61499pn.js} +0 -0
- /package/dist/chunks/{websearch-y44na4kk.js → aisdk-y44na4kk.js} +0 -0
- /package/dist/chunks/{websearch-y8f7s663.js → aisdk-y8f7s663.js} +0 -0
- /package/dist/chunks/{websearch-ygaqb7jw.js → aisdk-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{websearch-ym463w8f.js → aisdk-ym463w8f.js} +0 -0
- /package/dist/chunks/{websearch-z5v4ffb3.js → aisdk-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{websearch-z9919s4g.js → aisdk-z9919s4g.js} +0 -0
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./aisdk-rrfmzwpm.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service32,
|
|
7
|
+
node35
|
|
8
|
+
} from "./aisdk-r892vp5m.js";
|
|
9
9
|
import {
|
|
10
10
|
isTextual2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-2z1j29yd.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service63,
|
|
14
|
+
node67
|
|
15
|
+
} from "./aisdk-h7pdcx31.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service48,
|
|
18
|
+
node50
|
|
19
|
+
} from "./aisdk-z0dwwj88.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service58,
|
|
22
|
+
node61
|
|
23
|
+
} from "./aisdk-0a71s41t.js";
|
|
24
24
|
import {
|
|
25
25
|
MEDIA_MIMES2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./aisdk-6v1bxwq1.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/tool/mcp.ts
|
|
32
32
|
var exports_mcp3 = {};
|
|
33
33
|
__export(exports_mcp3, {
|
|
34
34
|
McpTool: () => exports_mcp3,
|
|
35
|
-
Service: () =>
|
|
36
|
-
layer: () =>
|
|
37
|
-
name: () =>
|
|
35
|
+
Service: () => Service30,
|
|
36
|
+
layer: () => layer14,
|
|
37
|
+
name: () => name15,
|
|
38
38
|
namespace: () => namespace2,
|
|
39
|
-
node: () =>
|
|
39
|
+
node: () => node33
|
|
40
40
|
});
|
|
41
41
|
import { ToolFailure } from "@opencode/ai";
|
|
42
42
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -45,16 +45,16 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
45
45
|
import { extension } from "mime-types";
|
|
46
46
|
var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
|
|
47
47
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
48
|
-
var
|
|
48
|
+
var name15 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service30 extends Context.Service()("@opencode/McpTool") {
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
const mcp = yield*
|
|
54
|
-
const tools = yield*
|
|
52
|
+
var layer14 = Layer.effect(Service30, Effect.gen(function* () {
|
|
53
|
+
const mcp = yield* Service32;
|
|
54
|
+
const tools = yield* Service48;
|
|
55
55
|
const bus = yield* Service85;
|
|
56
|
-
const permission = yield*
|
|
57
|
-
const toolOutput = yield*
|
|
56
|
+
const permission = yield* Service63;
|
|
57
|
+
const toolOutput = yield* Service58;
|
|
58
58
|
const lock = Semaphore.makeUnsafe(1);
|
|
59
59
|
let discovered = [];
|
|
60
60
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -69,7 +69,7 @@ var layer12 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
69
69
|
output: tool.outputSchema ?? {},
|
|
70
70
|
execute: (input, context) => Effect.gen(function* () {
|
|
71
71
|
yield* permission.assert({
|
|
72
|
-
action:
|
|
72
|
+
action: name15(tool.server, tool.name),
|
|
73
73
|
resources: ["*"],
|
|
74
74
|
save: ["*"],
|
|
75
75
|
metadata: { input: input ?? {} },
|
|
@@ -111,7 +111,7 @@ var layer12 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
111
111
|
output: output(),
|
|
112
112
|
...content.length === 0 ? {} : { content }
|
|
113
113
|
};
|
|
114
|
-
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${
|
|
114
|
+
}).pipe(Effect.mapError((error) => error instanceof ToolFailure ? error : new ToolFailure({ message: `Unable to execute ${name15(tool.server, tool.name)}` })))
|
|
115
115
|
});
|
|
116
116
|
}
|
|
117
117
|
});
|
|
@@ -124,7 +124,7 @@ var layer12 = Layer.effect(Service23, Effect.gen(function* () {
|
|
|
124
124
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
125
125
|
const updates = yield* PubSub.subscribe(changes);
|
|
126
126
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
127
|
-
return
|
|
127
|
+
return Service30.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
128
128
|
}));
|
|
129
129
|
var toContent = Effect.fnUntraced(function* (part, toolOutput) {
|
|
130
130
|
if (part.type === "text")
|
|
@@ -144,10 +144,10 @@ ${bytes.toString("utf8")}` };
|
|
|
144
144
|
text: `[Binary resource ${label} (${part.mimeType}, ${bytes.byteLength} bytes) saved to ${file}]`
|
|
145
145
|
};
|
|
146
146
|
});
|
|
147
|
-
var
|
|
148
|
-
service:
|
|
149
|
-
layer:
|
|
150
|
-
deps: [
|
|
147
|
+
var node33 = makeLocationNode({
|
|
148
|
+
service: Service30,
|
|
149
|
+
layer: layer14,
|
|
150
|
+
deps: [node50, node35, node89, node67, node61]
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
export { namespace2,
|
|
153
|
+
export { namespace2, name15, Service30, layer14, node33, exports_mcp3 };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service42
|
|
3
|
+
} from "./aisdk-ws84jjae.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service32
|
|
6
|
+
} from "./aisdk-r892vp5m.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/plugin/mcp.ts
|
|
12
|
-
var
|
|
13
|
-
__export(
|
|
14
|
-
ConfigMcpPlugin: () =>
|
|
15
|
-
Plugin: () =>
|
|
12
|
+
var exports_mcp = {};
|
|
13
|
+
__export(exports_mcp, {
|
|
14
|
+
ConfigMcpPlugin: () => exports_mcp,
|
|
15
|
+
Plugin: () => Plugin9,
|
|
16
16
|
register: () => register2
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Stream } from "effect";
|
|
20
|
-
var
|
|
20
|
+
var Plugin9 = define({
|
|
21
21
|
id: "opencode.config.mcp",
|
|
22
22
|
effect: Effect.fn(function* (ctx) {
|
|
23
23
|
yield* register2(ctx.event.subscribe());
|
|
24
24
|
})
|
|
25
25
|
});
|
|
26
26
|
var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
27
|
-
const config = yield*
|
|
28
|
-
const mcp = yield*
|
|
27
|
+
const config = yield* Service42;
|
|
28
|
+
const mcp = yield* Service32;
|
|
29
29
|
const loaded = { entries: [] };
|
|
30
30
|
yield* events.pipe(Stream.filter((event) => event.type === "config.updated"), Stream.runForEach(() => config.entries().pipe(Effect.tap((entries) => Effect.sync(() => loaded.entries = entries)), Effect.andThen(mcp.reload()), Effect.catchCause((cause) => Effect.logError("failed to reload MCP config", { cause })))), Effect.ignore, Effect.forkScoped({ startImmediately: true }));
|
|
31
31
|
loaded.entries = yield* config.entries();
|
|
@@ -46,4 +46,4 @@ var register2 = Effect.fn("ConfigMCPPlugin.register")(function* (events) {
|
|
|
46
46
|
});
|
|
47
47
|
});
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { Plugin9, register2, exports_mcp };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service78,
|
|
3
|
+
node82
|
|
4
|
+
} from "./aisdk-v2ywx7d9.js";
|
|
5
5
|
import {
|
|
6
6
|
Key3,
|
|
7
|
-
|
|
7
|
+
make20,
|
|
8
8
|
combine2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./aisdk-e5dqjz6v.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/instructions/builtins.ts
|
|
15
15
|
var exports_builtins = {};
|
|
16
16
|
__export(exports_builtins, {
|
|
17
17
|
InstructionBuiltIns: () => exports_builtins,
|
|
18
|
-
Service: () =>
|
|
19
|
-
node: () =>
|
|
18
|
+
Service: () => Service27,
|
|
19
|
+
node: () => node31
|
|
20
20
|
});
|
|
21
21
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
22
22
|
import { Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
23
23
|
import { Global } from "@opencode/util/global";
|
|
24
|
-
class
|
|
24
|
+
class Service27 extends Context.Service()("@opencode/InstructionBuiltIns") {
|
|
25
25
|
}
|
|
26
|
-
var layer = Layer.effect(
|
|
26
|
+
var layer = Layer.effect(Service27, Effect.gen(function* () {
|
|
27
27
|
const global = yield* Global.Service;
|
|
28
|
-
const location = yield*
|
|
29
|
-
return
|
|
28
|
+
const location = yield* Service78;
|
|
29
|
+
return Service27.of({
|
|
30
30
|
load: () => Effect.succeed(combine2([
|
|
31
|
-
|
|
31
|
+
make20({
|
|
32
32
|
key: Key3.make("core/date"),
|
|
33
33
|
codec: Schema.toCodecJson(Schema.String),
|
|
34
34
|
read: DateTime.nowAsDate.pipe(Effect.map((date) => date.toDateString())),
|
|
@@ -37,7 +37,7 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
37
37
|
changed: (_previous, date) => `Today's date is now: ${date}`
|
|
38
38
|
}
|
|
39
39
|
}),
|
|
40
|
-
|
|
40
|
+
make20({
|
|
41
41
|
key: Key3.make("core/environment"),
|
|
42
42
|
codec: Schema.toCodecJson(Schema.String),
|
|
43
43
|
read: Effect.sync(() => [
|
|
@@ -60,6 +60,6 @@ var layer = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
60
60
|
]))
|
|
61
61
|
});
|
|
62
62
|
}));
|
|
63
|
-
var
|
|
63
|
+
var node31 = makeLocationNode({ service: Service27, layer, deps: [Global.node, node82] });
|
|
64
64
|
|
|
65
|
-
export {
|
|
65
|
+
export { Service27, node31, exports_builtins };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import {
|
|
2
|
+
requestExecutor2
|
|
3
|
+
} from "./aisdk-p015t6z3.js";
|
|
4
|
+
import {
|
|
5
|
+
ID16,
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./aisdk-9a91xz6j.js";
|
|
9
|
+
import {
|
|
10
|
+
__export
|
|
11
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
12
|
+
|
|
13
|
+
// src/voice.ts
|
|
14
|
+
var exports_voice = {};
|
|
15
|
+
__export(exports_voice, {
|
|
16
|
+
InvalidRequestError: () => InvalidRequestError2,
|
|
17
|
+
Service: () => Service81,
|
|
18
|
+
UnavailableError: () => UnavailableError4,
|
|
19
|
+
Voice: () => exports_voice,
|
|
20
|
+
layer: () => layer26,
|
|
21
|
+
node: () => node85
|
|
22
|
+
});
|
|
23
|
+
import {
|
|
24
|
+
Realtime
|
|
25
|
+
} from "@opencode/ai/experimental";
|
|
26
|
+
import { RequestExecutor } from "@opencode/ai/route";
|
|
27
|
+
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
28
|
+
import { Context, Effect, Layer, Redacted, Schema } from "effect";
|
|
29
|
+
class InvalidRequestError2 extends Schema.TaggedError()("Voice.InvalidRequestError", {
|
|
30
|
+
message: Schema.String
|
|
31
|
+
}) {
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
class UnavailableError4 extends Schema.TaggedError()("Voice.UnavailableError", {
|
|
35
|
+
message: Schema.String,
|
|
36
|
+
service: Schema.optional(Schema.String)
|
|
37
|
+
}) {
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
class Service81 extends Context.Service()("@opencode/Voice") {
|
|
41
|
+
}
|
|
42
|
+
var layer26 = Layer.effect(Service81, Effect.gen(function* () {
|
|
43
|
+
const executor = yield* RequestExecutor.Service;
|
|
44
|
+
const integrations = yield* Service82;
|
|
45
|
+
const findConnection = (provider, methods = ["key"]) => integrations.get(ID16.make(provider)).pipe(Effect.map((info) => info?.connections.find((item) => item.type === "env" || methods.includes(item.method))));
|
|
46
|
+
const source = Effect.fnUntraced(function* (engine) {
|
|
47
|
+
const connection = yield* findConnection(engine.provider);
|
|
48
|
+
if (connection)
|
|
49
|
+
return { provider: engine.provider, connection };
|
|
50
|
+
if (engine.id !== "openai-live")
|
|
51
|
+
return;
|
|
52
|
+
const hosted = yield* findConnection(openCodeLive.provider, ["key", "oauth"]);
|
|
53
|
+
return hosted && { provider: openCodeLive.provider, connection: hosted };
|
|
54
|
+
});
|
|
55
|
+
const models = Effect.fn("Voice.models")(function* () {
|
|
56
|
+
const list = yield* Effect.forEach(Realtime.engines, (engine) => source(engine).pipe(Effect.map((found) => ({
|
|
57
|
+
model: engine.model,
|
|
58
|
+
provider: found?.provider ?? engine.provider,
|
|
59
|
+
transports: engine.transports,
|
|
60
|
+
available: found !== undefined
|
|
61
|
+
}))));
|
|
62
|
+
const first = list.find((item) => item.available)?.model;
|
|
63
|
+
return first ? { models: list, default: first } : { models: list };
|
|
64
|
+
});
|
|
65
|
+
const session = Effect.fn("Voice.session")(function* (input) {
|
|
66
|
+
const engine = Realtime.engine(input.model);
|
|
67
|
+
if (!engine)
|
|
68
|
+
return yield* new InvalidRequestError2({ message: `Unsupported voice model: ${input.model}` });
|
|
69
|
+
const found = yield* source(engine);
|
|
70
|
+
const credential = found ? yield* integrations.connection.resolve(found.connection).pipe(Effect.mapError((error) => new UnavailableError4({ service: found.provider, message: error.message }))) : undefined;
|
|
71
|
+
const access = found && credential && sessionAccess(found.provider, credential);
|
|
72
|
+
if (found === undefined || access === undefined)
|
|
73
|
+
return yield* new UnavailableError4({
|
|
74
|
+
service: engine.provider,
|
|
75
|
+
message: engine.id === "openai-live" ? missingLiveKeyMessage : missingKeyMessage[engine.provider]
|
|
76
|
+
});
|
|
77
|
+
return yield* Realtime.connect({
|
|
78
|
+
model: input.model,
|
|
79
|
+
session: input.session,
|
|
80
|
+
transport: input.transport,
|
|
81
|
+
...access
|
|
82
|
+
}).pipe(Effect.provideService(RequestExecutor.Service, executor), Effect.mapError((error) => error.reason._tag === "InvalidRequest" || error.reason._tag === "UnsupportedOperation" ? new InvalidRequestError2({ message: error.message }) : new UnavailableError4({ message: error.message, service: found.provider })));
|
|
83
|
+
});
|
|
84
|
+
return Service81.of({ models, session });
|
|
85
|
+
}));
|
|
86
|
+
var node85 = makeLocationNode({
|
|
87
|
+
service: Service81,
|
|
88
|
+
layer: layer26,
|
|
89
|
+
deps: [node86, requestExecutor2]
|
|
90
|
+
});
|
|
91
|
+
var openCodeLive = { provider: "opencode", baseURL: "https://opencode.ai/inference/openai/v1" };
|
|
92
|
+
var sessionAccess = (provider, credential) => {
|
|
93
|
+
if (provider !== openCodeLive.provider)
|
|
94
|
+
return credential.type === "key" ? { apiKey: Redacted.make(credential.key) } : undefined;
|
|
95
|
+
if (credential.type === "external")
|
|
96
|
+
return;
|
|
97
|
+
const orgID = credential.metadata?.orgID;
|
|
98
|
+
return {
|
|
99
|
+
apiKey: Redacted.make(credential.type === "oauth" ? credential.access : credential.key),
|
|
100
|
+
baseURL: openCodeLive.baseURL,
|
|
101
|
+
...typeof orgID === "string" ? { headers: { "x-opencode-org-id": orgID } } : {}
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
var missingLiveKeyMessage = "GPT-Live needs an OpenAI API key (a stored key or OPENAI_API_KEY) or an OpenCode Console connection on the server. ChatGPT sign-in can't start voice sessions.";
|
|
105
|
+
var missingKeyMessage = {
|
|
106
|
+
openai: "Voice needs an OpenAI API key on the server (a stored key or OPENAI_API_KEY). ChatGPT sign-in can't start voice sessions.",
|
|
107
|
+
xai: "Voice needs an xAI API key on the server (a stored key or XAI_API_KEY).",
|
|
108
|
+
google: "Voice needs a Google API key on the server (a stored key, GEMINI_API_KEY, GOOGLE_GENERATIVE_AI_API_KEY, or GOOGLE_API_KEY)."
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
export { InvalidRequestError2, UnavailableError4, Service81, layer26, node85, exports_voice };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-vd3b3yk9.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
10
10
|
__export(exports_location_watcher_policy, {
|
|
11
11
|
LocationWatcherPolicy: () => exports_location_watcher_policy,
|
|
12
|
-
Service: () =>
|
|
13
|
-
node: () =>
|
|
12
|
+
Service: () => Service6,
|
|
13
|
+
node: () => node8
|
|
14
14
|
});
|
|
15
15
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
16
16
|
import { Context, Effect, Layer, Scope } from "effect";
|
|
17
|
-
class
|
|
17
|
+
class Service6 extends Context.Service()("@opencode/LocationWatcherPolicy") {
|
|
18
18
|
}
|
|
19
|
-
var layer = Layer.effect(
|
|
19
|
+
var layer = Layer.effect(Service6, Effect.gen(function* () {
|
|
20
20
|
const listeners = new Set;
|
|
21
21
|
const state = create3({
|
|
22
22
|
name: "location-watcher-policy",
|
|
@@ -41,13 +41,13 @@ var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
41
41
|
yield* Scope.addFinalizer(scope, dispose);
|
|
42
42
|
return { dispose };
|
|
43
43
|
});
|
|
44
|
-
return
|
|
44
|
+
return Service6.of({
|
|
45
45
|
transform: state.transform,
|
|
46
46
|
reload: state.reload,
|
|
47
47
|
current,
|
|
48
48
|
observe
|
|
49
49
|
});
|
|
50
50
|
}));
|
|
51
|
-
var
|
|
51
|
+
var node8 = makeLocationNode({ service: Service6, layer, deps: [] });
|
|
52
52
|
|
|
53
|
-
export {
|
|
53
|
+
export { Service6, node8, exports_location_watcher_policy };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var ID11 = Session.ID;
|
|
5
|
+
var Info19 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID11, Info19, SessionSchema2 };
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./aisdk-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./aisdk-c84xww2z.js";
|
|
8
8
|
import {
|
|
9
9
|
Service85,
|
|
10
10
|
node89
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./aisdk-rrfmzwpm.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service80,
|
|
14
|
+
node84
|
|
15
|
+
} from "./aisdk-kgwvpfhe.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID15,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info25,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event17,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./aisdk-mmkbt6v3.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./aisdk-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./aisdk-ayjs7tqn.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./aisdk-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID14,
|
|
40
|
+
Info: () => Info24,
|
|
41
|
+
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service79,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node83,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID14 = ID15;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info24 = Info25;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID14
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service79 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,9 +98,9 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service80;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
105
|
const bus = yield* Service85;
|
|
106
106
|
const db = (yield* Service86).db;
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event17.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID14.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
174
|
+
return yield* new NotFoundError11({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event17.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event17.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID14.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID14.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID14.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID14.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -247,7 +247,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
247
247
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
248
248
|
return {
|
|
249
249
|
previous,
|
|
250
|
-
id: id ??
|
|
250
|
+
id: id ?? ID14.global,
|
|
251
251
|
directory: worktree,
|
|
252
252
|
vcs: { type: "hg", store: dotHg }
|
|
253
253
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* save({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID14.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* save({
|
|
282
|
-
id:
|
|
282
|
+
id: ID14.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID14.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event17.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service79.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node83 = makeGlobalNode({
|
|
310
|
+
service: Service79,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [node89, node90, FSUtil.node,
|
|
312
|
+
deps: [node89, node90, FSUtil.node, node84, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service79;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node83]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID14, Vcs2, Current2, Info24, UpdateInput3, NotFoundError11, root2, Service79, node83, sweepNode2, exports_project };
|