@opencode/core 0.0.0-dev-1293 → 0.0.0-dev-1294
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 +94 -94
- package/dist/aisdk-native.js +1 -1
- package/dist/aisdk.js +109 -109
- package/dist/app.js +11 -11
- package/dist/artifact.js +250 -250
- package/dist/bus.js +80 -80
- package/dist/chunks/{command-034tev2y.js → formatter-034tev2y.js} +2 -2
- package/dist/chunks/{command-6w30sr0w.js → formatter-09cv1hcq.js} +16 -16
- package/dist/chunks/{command-zk1cryvj.js → formatter-0b9dpcqh.js} +18 -18
- package/dist/chunks/{command-c9v165g9.js → formatter-0f98ft02.js} +36 -36
- package/dist/chunks/{command-0fvxehme.js → formatter-0fvxehme.js} +2 -2
- package/dist/chunks/{command-ymh2zpye.js → formatter-0jk88157.js} +16 -16
- package/dist/chunks/{command-dc4t5msd.js → formatter-0p8fz9ey.js} +23 -23
- package/dist/chunks/{command-vxcqyea6.js → formatter-0r5j1y1x.js} +10 -10
- package/dist/chunks/{command-m6b1y2sf.js → formatter-0rdrv6c4.js} +9 -9
- package/dist/chunks/{command-yrt2j6wb.js → formatter-1065azbp.js} +8 -8
- package/dist/chunks/{command-48t0pb5g.js → formatter-107n4kdg.js} +37 -37
- package/dist/chunks/{command-5tf32vej.js → formatter-10veb3z3.js} +5 -5
- package/dist/chunks/{command-q99548g1.js → formatter-18w9amv2.js} +4 -4
- package/dist/chunks/{command-c5vx1zac.js → formatter-19ah3epb.js} +5 -5
- package/dist/chunks/{command-6tdwsadc.js → formatter-19cz2mh9.js} +31 -31
- package/dist/chunks/{command-2km60gbx.js → formatter-1afk09fq.js} +11 -11
- package/dist/chunks/{command-1aqsckx4.js → formatter-1aqsckx4.js} +1 -1
- package/dist/chunks/{command-4d1f1c7e.js → formatter-1cnk63hp.js} +11 -11
- package/dist/chunks/{command-1ep2p91f.js → formatter-1ep2p91f.js} +2 -2
- package/dist/chunks/{command-bsycervj.js → formatter-1m5xsna8.js} +24 -24
- package/dist/chunks/{command-vz7cb8rc.js → formatter-1rtj8tn6.js} +5 -5
- package/dist/chunks/{command-w69q6psg.js → formatter-1twmh811.js} +17 -17
- package/dist/chunks/{command-1x2knyw4.js → formatter-1x2knyw4.js} +1 -1
- package/dist/chunks/{command-epap8xr2.js → formatter-1y4446k4.js} +45 -45
- package/dist/chunks/{command-p7vhpwh8.js → formatter-1yq9hg58.js} +5 -5
- package/dist/chunks/{command-hbjxspw9.js → formatter-26g5dw0a.js} +15 -15
- package/dist/chunks/{command-00vb7kby.js → formatter-284qbwak.js} +41 -41
- package/dist/chunks/{command-dt6tsz7x.js → formatter-2bvj0tyw.js} +23 -23
- package/dist/chunks/{command-2fc7eemy.js → formatter-2fc7eemy.js} +1 -1
- package/dist/chunks/{command-h7d4rbrg.js → formatter-2kg89srt.js} +4 -4
- package/dist/chunks/{command-2prt43t7.js → formatter-2prt43t7.js} +1 -1
- package/dist/chunks/{command-vdcc3vzr.js → formatter-2q7w2n5y.js} +20 -20
- package/dist/chunks/{command-djcm10vk.js → formatter-2t6bt9cz.js} +23 -23
- package/dist/chunks/{command-vw17p9nj.js → formatter-2yn2tdym.js} +65 -65
- package/dist/chunks/{command-s47rahr7.js → formatter-2ytp0tvq.js} +4 -4
- package/dist/chunks/{command-wqeff9d1.js → formatter-2z7m33tr.js} +6 -6
- package/dist/chunks/{command-z2kxm34f.js → formatter-367yzc22.js} +370 -370
- package/dist/chunks/{command-mk9nde4r.js → formatter-36veeb2h.js} +13 -13
- package/dist/chunks/{command-8kxf49yw.js → formatter-3aystt2y.js} +4 -4
- package/dist/chunks/{command-3hepkmqq.js → formatter-3hepkmqq.js} +1 -1
- package/dist/chunks/{command-s6q3xz50.js → formatter-3k1xqshc.js} +5 -5
- package/dist/chunks/{command-45gvefkm.js → formatter-3m4fz3hb.js} +10 -10
- package/dist/chunks/{command-3nnrz6f6.js → formatter-3nnrz6f6.js} +1 -1
- package/dist/chunks/{command-7a2bwsmz.js → formatter-3p57dcxh.js} +4 -4
- package/dist/chunks/{command-xtyr0vxr.js → formatter-3qhreq2y.js} +4 -4
- package/dist/chunks/{command-br0kkpnn.js → formatter-3ryz99p0.js} +7 -7
- package/dist/chunks/{command-40y6dtc2.js → formatter-40y6dtc2.js} +1 -1
- package/dist/chunks/{command-qa4hpnzm.js → formatter-472kcb6j.js} +4 -4
- package/dist/chunks/{command-m4p4r8nc.js → formatter-4dfqsw0d.js} +4 -4
- package/dist/chunks/{command-4dx1dgte.js → formatter-4dx1dgte.js} +1 -1
- package/dist/chunks/{command-4f25tdd0.js → formatter-4f25tdd0.js} +1 -1
- package/dist/chunks/{command-z2wzp662.js → formatter-4nr20r5b.js} +34 -34
- package/dist/chunks/{command-545mfvbm.js → formatter-4r37kn7a.js} +32 -32
- package/dist/chunks/{command-mvp1qzcv.js → formatter-4rz36ceb.js} +20 -20
- package/dist/chunks/{command-4v008n1t.js → formatter-4v008n1t.js} +1 -1
- package/dist/chunks/{command-4yw3xa9p.js → formatter-514vvw19.js} +1 -1
- package/dist/chunks/{command-d4qb2rc3.js → formatter-5c0ay57s.js} +4 -4
- package/dist/chunks/{command-5m9w47nd.js → formatter-5m9w47nd.js} +1 -1
- package/dist/chunks/{command-1f32vgp3.js → formatter-5nvn3v8n.js} +16 -15
- package/dist/chunks/{command-b7tcf9j8.js → formatter-5tda77qk.js} +17 -17
- package/dist/chunks/{command-msd2a3qm.js → formatter-5wyjxme5.js} +7 -7
- package/dist/chunks/{command-2bjvbgsm.js → formatter-5xbqvg7k.js} +19 -19
- package/dist/chunks/{command-rcxa3fp6.js → formatter-633zrvc0.js} +9 -9
- package/dist/chunks/{command-5m3xrn1j.js → formatter-66r11b12.js} +9 -9
- package/dist/chunks/{command-anetphez.js → formatter-67s9kfqp.js} +31 -31
- package/dist/chunks/{command-hdr5hne2.js → formatter-681reqgc.js} +8 -8
- package/dist/chunks/{command-kj9n5bvh.js → formatter-69rarv6g.js} +4 -4
- package/dist/chunks/{command-pmxhedey.js → formatter-6d0ke9pc.js} +11 -11
- package/dist/chunks/{command-zfjmf10w.js → formatter-6ftp030z.js} +20 -20
- package/dist/chunks/{command-e8fm7yqv.js → formatter-6mqmmy5j.js} +37 -37
- package/dist/chunks/{command-kxrn7gky.js → formatter-6phyd5m2.js} +15 -15
- package/dist/chunks/{command-9tg5000s.js → formatter-6s29sep7.js} +22 -22
- package/dist/chunks/{command-3scav9bn.js → formatter-6s9a3p6j.js} +20 -20
- package/dist/chunks/{command-c51p6570.js → formatter-6sg7v011.js} +2 -2
- package/dist/chunks/{command-vwcz1f45.js → formatter-6y2b864j.js} +7 -7
- package/dist/chunks/{command-dbatw319.js → formatter-73ff1310.js} +3 -3
- package/dist/chunks/{command-vkz3ha21.js → formatter-75a2gs08.js} +1 -1
- package/dist/chunks/{command-t1xbeg12.js → formatter-75nm06f1.js} +60 -66
- package/dist/chunks/{command-7bmhse3q.js → formatter-7bmhse3q.js} +1 -1
- package/dist/chunks/{command-xrayc9jg.js → formatter-7ha2pc0m.js} +21 -21
- package/dist/chunks/{command-7tx5zndv.js → formatter-7tx5zndv.js} +2 -2
- package/dist/chunks/{command-7w2ypzdf.js → formatter-7w2ypzdf.js} +1 -1
- package/dist/chunks/{command-7weczvnd.js → formatter-7weczvnd.js} +1 -1
- package/dist/chunks/{command-hkf8spj2.js → formatter-7zs4mqwf.js} +5 -5
- package/dist/chunks/{command-775hqbnd.js → formatter-80mg3ag8.js} +3 -3
- package/dist/chunks/{command-80pdk984.js → formatter-80pdk984.js} +1 -1
- package/dist/chunks/{command-85jq8dht.js → formatter-85jq8dht.js} +1 -1
- package/dist/chunks/{command-gjqpkb49.js → formatter-875etveh.js} +7 -7
- package/dist/chunks/{command-bf0m000r.js → formatter-87yq9eva.js} +25 -25
- package/dist/chunks/{command-j5c22pgh.js → formatter-88vzj3a4.js} +3 -3
- package/dist/chunks/{command-rxp2smpj.js → formatter-89wqeg04.js} +6 -6
- package/dist/chunks/{command-8b3vzgkx.js → formatter-8b3vzgkx.js} +1 -1
- package/dist/chunks/{command-exkmrkyq.js → formatter-8er0ykh9.js} +40 -40
- package/dist/chunks/{command-0jgcgtm3.js → formatter-8faq9twa.js} +16 -16
- package/dist/chunks/{command-bs7vr8qa.js → formatter-8frvfs4e.js} +44 -44
- package/dist/chunks/{command-trs7a2qk.js → formatter-8gc9kz7m.js} +33 -33
- package/dist/chunks/{command-8kjyvwy5.js → formatter-8kjyvwy5.js} +1 -1
- package/dist/chunks/{command-3dygp556.js → formatter-8p9429cg.js} +35 -35
- package/dist/chunks/{command-8sxe6kv8.js → formatter-8sxe6kv8.js} +2 -2
- package/dist/chunks/{command-wnqev3np.js → formatter-8vnqf0b3.js} +19 -19
- package/dist/chunks/{command-6rwp9k3d.js → formatter-8wdnmp4h.js} +37 -37
- package/dist/chunks/{command-8wtp7s3z.js → formatter-8wtp7s3z.js} +1 -1
- package/dist/chunks/{command-9mg2j4gp.js → formatter-8ye65hwy.js} +15 -15
- package/dist/chunks/{command-8zv0xmg5.js → formatter-8zv0xmg5.js} +1 -1
- package/dist/chunks/{command-shs0bj48.js → formatter-90fyndgx.js} +28 -28
- package/dist/chunks/{command-ptqtsqsq.js → formatter-97yxev1x.js} +7 -7
- package/dist/chunks/{command-6bhge99a.js → formatter-98m3s5a8.js} +22 -22
- package/dist/chunks/{command-kvq9h0sm.js → formatter-999eq5wg.js} +7 -7
- package/dist/chunks/{command-9fbvv04g.js → formatter-9efj75yn.js} +42 -42
- package/dist/chunks/{command-d5z7929f.js → formatter-9gdt4sfh.js} +18 -18
- package/dist/chunks/{command-x443n8rt.js → formatter-9j79xsdn.js} +6 -6
- package/dist/chunks/{command-ez7z3q9e.js → formatter-9kkht3bz.js} +35 -35
- package/dist/chunks/{command-nvnvd5wa.js → formatter-9mz9bkgy.js} +9 -9
- package/dist/chunks/{command-atz1w742.js → formatter-9zfcngb4.js} +3 -3
- package/dist/chunks/{command-1mfn2wbd.js → formatter-a0rh3gnp.js} +16 -16
- package/dist/chunks/{command-g3k34n04.js → formatter-a18qm98g.js} +18 -18
- package/dist/chunks/{command-4p9g6gya.js → formatter-a6f3a7w7.js} +12 -12
- package/dist/chunks/{command-npte79n3.js → formatter-a9770cg9.js} +22 -22
- package/dist/chunks/{command-jhbk36e1.js → formatter-astymy2y.js} +22 -22
- package/dist/chunks/{command-ayjs7tqn.js → formatter-ayjs7tqn.js} +2 -2
- package/dist/chunks/{command-xvn8mnch.js → formatter-azqdag7d.js} +4 -4
- package/dist/chunks/{command-6nw0se4n.js → formatter-b1t3h42q.js} +28 -28
- package/dist/chunks/formatter-b5696b0c.js +26 -0
- package/dist/chunks/{command-qxvrvs93.js → formatter-b9t4mw29.js} +18 -18
- package/dist/chunks/{command-741va2xm.js → formatter-bc6vcyc2.js} +20 -20
- package/dist/chunks/{command-ybxm74q5.js → formatter-be3cmm3y.js} +59 -59
- package/dist/chunks/{command-ad3ej1v4.js → formatter-bes4ktrd.js} +5 -5
- package/dist/chunks/{command-njb58ya1.js → formatter-bkfnmamh.js} +25 -25
- package/dist/chunks/{command-hyq0mm5d.js → formatter-bm49bgmn.js} +25 -25
- package/dist/chunks/{command-kc4ez2ea.js → formatter-bmw1c1w2.js} +8 -8
- package/dist/chunks/{command-xksw6ev0.js → formatter-brv6mkyx.js} +4 -4
- package/dist/chunks/{command-bstexjd6.js → formatter-bstexjd6.js} +1 -1
- package/dist/chunks/{command-sch203vp.js → formatter-c09jwrv7.js} +8 -8
- package/dist/chunks/{command-tb2mrvc9.js → formatter-c0fe0nyt.js} +4 -4
- package/dist/chunks/{command-emq6awqh.js → formatter-c5kjsz6q.js} +4 -4
- package/dist/chunks/{command-e4b4cbc2.js → formatter-c8g1f16z.js} +17 -17
- package/dist/chunks/{command-r2rgtba5.js → formatter-c98n4vdv.js} +9 -9
- package/dist/chunks/{command-73gcsqdp.js → formatter-crke0hy6.js} +13 -13
- package/dist/chunks/{command-cwrgdav8.js → formatter-cwrgdav8.js} +2 -2
- package/dist/chunks/{command-3y4zhc2n.js → formatter-cwws9yn6.js} +22 -22
- package/dist/chunks/{command-nkzb5f1v.js → formatter-d34c0f98.js} +8 -8
- package/dist/chunks/{command-1wmzbjb1.js → formatter-d49t3rb6.js} +21 -21
- package/dist/chunks/{command-d4v9tmah.js → formatter-d4v9tmah.js} +2 -2
- package/dist/chunks/{command-7wkcwtpg.js → formatter-d58gm13w.js} +15 -15
- package/dist/chunks/{command-d7dn0zx2.js → formatter-d66h0vnz.js} +11 -11
- package/dist/chunks/{command-3zfajawq.js → formatter-dchba5z5.js} +21 -21
- package/dist/chunks/{command-evjv4h7n.js → formatter-dft9bp6v.js} +16 -16
- package/dist/chunks/{command-vhjhcx68.js → formatter-dgjqzpns.js} +5 -5
- package/dist/chunks/{command-1byp4d39.js → formatter-dj4g1h0v.js} +23 -23
- package/dist/chunks/{command-dt77769w.js → formatter-dt77769w.js} +1 -1
- package/dist/chunks/{command-ywwk2jyx.js → formatter-dxvykrw7.js} +10 -10
- package/dist/chunks/{command-05qmkqxc.js → formatter-e3jrxgpp.js} +20 -20
- package/dist/chunks/{command-a84t9kh6.js → formatter-e5rky726.js} +26 -26
- package/dist/chunks/{command-n1r126yv.js → formatter-e6rgf6z7.js} +23 -23
- package/dist/chunks/{command-k62xrt9q.js → formatter-ebhg4tc3.js} +86 -86
- package/dist/chunks/{command-p7xq7ysq.js → formatter-ee62m3wg.js} +17 -17
- package/dist/chunks/{command-5ej7n8k1.js → formatter-eeytvfr7.js} +2 -2
- package/dist/chunks/{command-7hyftc6b.js → formatter-ejv3gkck.js} +4 -4
- package/dist/chunks/{command-tg1vr1qt.js → formatter-enkpkfwx.js} +8 -8
- package/dist/chunks/{command-qk5sk9d1.js → formatter-ep6pe98a.js} +5 -5
- package/dist/chunks/{command-eqw4pqj1.js → formatter-eqw4pqj1.js} +2 -2
- package/dist/chunks/{command-amjjh717.js → formatter-f2zjpyt5.js} +5 -5
- package/dist/chunks/{command-0k0e3yqn.js → formatter-f3ptgqzf.js} +8 -8
- package/dist/chunks/{command-w75qynz4.js → formatter-f80thpwy.js} +6 -6
- package/dist/chunks/{command-6zxqzzmm.js → formatter-f9tc5me5.js} +6 -6
- package/dist/chunks/{command-n9tv4x9v.js → formatter-fck1fraj.js} +8 -8
- package/dist/chunks/{command-fg9p65nk.js → formatter-fg9p65nk.js} +2 -2
- package/dist/chunks/{command-9ahpzkmc.js → formatter-fhwbhm4t.js} +4 -4
- package/dist/chunks/{command-b9qgv8m5.js → formatter-fj2fxy38.js} +8 -8
- package/dist/chunks/{command-mnj5jjmx.js → formatter-fjfab1hg.js} +13 -13
- package/dist/chunks/{command-fnrhryqq.js → formatter-fnrhryqq.js} +1 -1
- package/dist/chunks/{command-32kdnsac.js → formatter-fnyetkmc.js} +7 -7
- package/dist/chunks/{command-z8mdwd44.js → formatter-fpzzg31c.js} +10 -10
- package/dist/chunks/{command-fh8am5dj.js → formatter-fs0w54hj.js} +11 -11
- package/dist/chunks/{command-69b8verm.js → formatter-ftbc3n7f.js} +25 -25
- package/dist/chunks/{command-g5bf500w.js → formatter-ftmc7284.js} +4 -4
- package/dist/chunks/{command-4z0vtj0c.js → formatter-fwh96pc6.js} +43 -43
- package/dist/chunks/{command-e9actfxe.js → formatter-fyef4kah.js} +17 -17
- package/dist/chunks/{command-k9ev0kgm.js → formatter-g1b5nzek.js} +5 -5
- package/dist/chunks/{command-fmbhv8wq.js → formatter-g25zmjdc.js} +11 -11
- package/dist/chunks/{command-b26ddj6h.js → formatter-g4txs7zc.js} +4 -4
- package/dist/chunks/{command-3kcm45zc.js → formatter-g88qm316.js} +10 -10
- package/dist/chunks/{command-gbjdnr5j.js → formatter-gbjdnr5j.js} +2 -2
- package/dist/chunks/{command-ghrv1g9c.js → formatter-ghrv1g9c.js} +1 -1
- package/dist/chunks/{command-wdn6va0d.js → formatter-gs70f3rg.js} +6 -6
- package/dist/chunks/{command-2vqjzyt6.js → formatter-gwh4e7sy.js} +23 -23
- package/dist/chunks/{command-gxnp7ekr.js → formatter-gz50ktfn.js} +14 -14
- package/dist/chunks/{command-j76kcwy4.js → formatter-h1hvzfh9.js} +30 -29
- package/dist/chunks/{command-pxszmvbt.js → formatter-h9cw37xw.js} +13 -13
- package/dist/chunks/{command-gam3p8fy.js → formatter-h9rpx784.js} +29 -29
- package/dist/chunks/{command-8k2mn50d.js → formatter-haksh1nm.js} +12 -12
- package/dist/chunks/{command-hgzwgvze.js → formatter-hgzwgvze.js} +2 -2
- package/dist/chunks/{command-hj0xet7m.js → formatter-hj0xet7m.js} +2 -2
- package/dist/chunks/{command-561wfhxt.js → formatter-hsqbp4e3.js} +21 -21
- package/dist/chunks/{command-9cbnrx2n.js → formatter-hvvf9qw8.js} +6 -6
- package/dist/chunks/{command-6g985hjc.js → formatter-hw7r6q9t.js} +17 -17
- package/dist/chunks/{command-tr8x705m.js → formatter-j376ae4e.js} +5 -5
- package/dist/chunks/{command-9ajzb2kh.js → formatter-j6q8d4x2.js} +8 -8
- package/dist/chunks/{command-rj7j5fvs.js → formatter-jbca85dn.js} +4 -4
- package/dist/chunks/{command-nrvnrvd9.js → formatter-jbgt7846.js} +9 -9
- package/dist/chunks/{command-nc5gqs0z.js → formatter-jj1w0njq.js} +8 -8
- package/dist/chunks/{command-fhgvdm1j.js → formatter-jjp0376k.js} +44 -44
- package/dist/chunks/{command-jm70asfg.js → formatter-jm70asfg.js} +1 -1
- package/dist/chunks/{command-v4gq67p5.js → formatter-jxaybbka.js} +5 -5
- package/dist/chunks/{command-44pmzq9c.js → formatter-jxd6f16v.js} +2 -2
- package/dist/chunks/{command-61dc3kjz.js → formatter-k0e8skg7.js} +27 -27
- package/dist/chunks/{command-4kmavamd.js → formatter-k15h447b.js} +28 -28
- package/dist/chunks/{command-29xnk67d.js → formatter-kfjk2j2t.js} +15 -15
- package/dist/chunks/{command-88n83f38.js → formatter-kjpcdd93.js} +6 -6
- package/dist/chunks/{command-kw06wevc.js → formatter-kmnfk4kb.js} +3 -3
- package/dist/chunks/{command-8ar0836h.js → formatter-knp4g8v8.js} +11 -11
- package/dist/chunks/{command-s0z62q3x.js → formatter-kph8mjwn.js} +11 -11
- package/dist/chunks/{command-kt3bjfbg.js → formatter-kt3bjfbg.js} +1 -1
- package/dist/chunks/{command-zxd2y8y4.js → formatter-kw0j7zdf.js} +3 -3
- package/dist/chunks/{command-psy9mywm.js → formatter-kw4np9ag.js} +2 -2
- package/dist/chunks/{command-qe6954ph.js → formatter-kxfy12sm.js} +20 -20
- package/dist/chunks/{command-b15xysde.js → formatter-kybpnnhk.js} +15 -15
- package/dist/chunks/{command-kzczzf4v.js → formatter-kzczzf4v.js} +1 -1
- package/dist/chunks/{command-m1714858.js → formatter-m1714858.js} +1 -1
- package/dist/chunks/{command-m90tx7mw.js → formatter-m90tx7mw.js} +1 -1
- package/dist/chunks/{command-m9w0rfyh.js → formatter-m9w0rfyh.js} +1 -1
- package/dist/chunks/{command-mb7mbhnz.js → formatter-mb7mbhnz.js} +3 -3
- package/dist/chunks/{command-chgkwb0j.js → formatter-mfcckmmr.js} +14 -14
- package/dist/chunks/{command-mwnxvxbk.js → formatter-mwnxvxbk.js} +1 -1
- package/dist/chunks/{command-7gqnzgav.js → formatter-n1jv3hnp.js} +19 -19
- package/dist/chunks/{command-03vgrdy6.js → formatter-n4b81h20.js} +4 -4
- package/dist/chunks/{command-6fp9hgrk.js → formatter-n61xnajd.js} +3 -3
- package/dist/chunks/{command-1kresdfv.js → formatter-n6nqkh8e.js} +33 -33
- package/dist/chunks/{command-avrmj142.js → formatter-n6y2yx69.js} +15 -15
- package/dist/chunks/{command-bhfd478d.js → formatter-njx9gg5k.js} +4 -4
- package/dist/chunks/{command-gzkxc65a.js → formatter-nsza2hwd.js} +13 -13
- package/dist/chunks/formatter-nyxvepra.js +35 -0
- package/dist/chunks/{command-66jzz31a.js → formatter-p1qy27ja.js} +55 -55
- package/dist/chunks/{command-ed2rhd70.js → formatter-p2vw66gn.js} +13 -13
- package/dist/chunks/{command-mrc8gdh0.js → formatter-p4s9564z.js} +31 -31
- package/dist/chunks/{command-72n513kv.js → formatter-p9dwe2ys.js} +6 -6
- package/dist/chunks/{command-a84cszaf.js → formatter-pde3h8sb.js} +34 -34
- package/dist/chunks/{command-x4pvyz3p.js → formatter-pevw1m5g.js} +14 -14
- package/dist/chunks/{command-j7hqze2t.js → formatter-pfc82750.js} +10 -10
- package/dist/chunks/{command-jb4gpq25.js → formatter-phkzaw91.js} +6 -6
- package/dist/chunks/{command-pknna89w.js → formatter-pknna89w.js} +1 -1
- package/dist/chunks/{command-8xd8xvh0.js → formatter-pn8p7g5s.js} +30 -30
- package/dist/chunks/{command-h83e0t1m.js → formatter-ppk2ta81.js} +50 -50
- package/dist/chunks/{command-s349q7p5.js → formatter-ppvn17ey.js} +9 -9
- package/dist/chunks/{command-gs317ewe.js → formatter-pt2ev3mw.js} +10 -10
- package/dist/chunks/{command-7a35fjb6.js → formatter-pxfvz1hx.js} +8 -8
- package/dist/chunks/{command-rjdz0je4.js → formatter-pz2ne4az.js} +15 -15
- package/dist/chunks/{command-grmaj3s8.js → formatter-q08apbdq.js} +16 -16
- package/dist/chunks/{command-4e22apbf.js → formatter-q929d8mh.js} +6 -6
- package/dist/chunks/{command-pdn7768w.js → formatter-q963thn8.js} +4 -4
- package/dist/chunks/{command-gx70bdw1.js → formatter-qbqg5kvw.js} +22 -22
- package/dist/chunks/{command-8esf06c6.js → formatter-qfdvj3xm.js} +11 -11
- package/dist/chunks/{command-qq8nxmq8.js → formatter-qkn1vdbd.js} +5 -5
- package/dist/chunks/{command-qp7r0hxv.js → formatter-qp7r0hxv.js} +1 -1
- package/dist/chunks/{command-3nxcgjv6.js → formatter-qrjwc0ab.js} +30 -30
- package/dist/chunks/{command-qy94z0q3.js → formatter-qy94z0q3.js} +3 -3
- package/dist/chunks/{command-3em2z4he.js → formatter-qycm87ym.js} +5 -5
- package/dist/chunks/{command-rb9dy4dg.js → formatter-rb9dy4dg.js} +1 -1
- package/dist/chunks/{command-55bcys5k.js → formatter-rbvnf4ks.js} +23 -23
- package/dist/chunks/{command-c65w1jkd.js → formatter-re955109.js} +7 -7
- package/dist/chunks/{command-rgc9cx3e.js → formatter-rgc9cx3e.js} +2 -2
- package/dist/chunks/formatter-rnatn0se.js +273 -0
- package/dist/chunks/{command-br85n61x.js → formatter-rp6t20zc.js} +9 -9
- package/dist/chunks/{command-prnegb22.js → formatter-rvy75j9f.js} +8 -8
- package/dist/chunks/{command-99x81fn2.js → formatter-rwt90xdw.js} +17 -22
- package/dist/chunks/{command-mcabtfgp.js → formatter-rxptv60e.js} +5 -5
- package/dist/chunks/{command-90ct6wq4.js → formatter-rzg6y5rp.js} +4 -4
- package/dist/chunks/{command-2p60zmnr.js → formatter-s1ba0vj0.js} +2 -2
- package/dist/chunks/{command-38hffzgp.js → formatter-s31xv9rs.js} +40 -40
- package/dist/chunks/{command-wfpw9855.js → formatter-s5m9z68j.js} +25 -25
- package/dist/chunks/{command-jz1q4zsd.js → formatter-s9mjx3f0.js} +21 -21
- package/dist/chunks/{command-1p4vhnrh.js → formatter-saqprc7x.js} +5 -5
- package/dist/chunks/{command-sbya78hr.js → formatter-sbya78hr.js} +1 -1
- package/dist/chunks/{command-491c9q92.js → formatter-smwgzt6b.js} +4 -4
- package/dist/chunks/{command-v12yjajt.js → formatter-ssjd5cby.js} +13 -13
- package/dist/chunks/{command-svcy3p9a.js → formatter-svcy3p9a.js} +1 -1
- package/dist/chunks/{command-gx76kxxn.js → formatter-swaacjqy.js} +11 -11
- package/dist/chunks/{command-scmk72rv.js → formatter-t8erkws8.js} +5 -5
- package/dist/chunks/{command-hdsvjrkq.js → formatter-tay08eyj.js} +12 -12
- package/dist/chunks/{command-tbpn7jtk.js → formatter-tbpn7jtk.js} +1 -1
- package/dist/chunks/{command-tczq8hjw.js → formatter-tczq8hjw.js} +1 -1
- package/dist/chunks/{command-j63q17en.js → formatter-te4ym9cz.js} +41 -41
- package/dist/chunks/{command-tg7s7b5t.js → formatter-tg7s7b5t.js} +1 -1
- package/dist/chunks/{command-29avq3cp.js → formatter-tmxr2s7a.js} +8 -8
- package/dist/chunks/{command-g6cytcga.js → formatter-tpjmrfc6.js} +16 -16
- package/dist/chunks/{command-q5db7jz2.js → formatter-tsm0w78m.js} +11 -11
- package/dist/chunks/{command-tvtps2q9.js → formatter-tvtps2q9.js} +1 -1
- package/dist/chunks/{command-twssxy5n.js → formatter-twssxy5n.js} +2 -2
- package/dist/chunks/{command-ntyam5cy.js → formatter-v02hya04.js} +26 -26
- package/dist/chunks/{command-v2r1d0zg.js → formatter-v2r1d0zg.js} +1 -1
- package/dist/chunks/{command-88vr49vm.js → formatter-v37bc009.js} +3 -3
- package/dist/chunks/{command-wbwc7xrx.js → formatter-v3c2n8v6.js} +25 -25
- package/dist/chunks/{command-dfz60nj9.js → formatter-v62q6mjx.js} +18 -18
- package/dist/chunks/{command-p1ea0emk.js → formatter-v840bdta.js} +6 -6
- package/dist/chunks/{command-2m935wwe.js → formatter-vfrym1mm.js} +36 -36
- package/dist/chunks/{command-b1bejxds.js → formatter-vg2ks647.js} +13 -13
- package/dist/chunks/{command-z4z67x7v.js → formatter-vh2m3kqm.js} +36 -36
- package/dist/chunks/{command-5c8k4hxw.js → formatter-vhe13esa.js} +30 -30
- package/dist/chunks/{command-vjf35v1f.js → formatter-vjf35v1f.js} +1 -1
- package/dist/chunks/{command-maqcfgk7.js → formatter-vm5ant4y.js} +19 -19
- package/dist/chunks/{command-xn4a5x1q.js → formatter-vpa8zgt8.js} +31 -31
- package/dist/chunks/{command-4dwjnmct.js → formatter-vsb4jc51.js} +11 -11
- package/dist/chunks/{command-x7de2wha.js → formatter-vt4r9rmy.js} +9 -9
- package/dist/chunks/{command-hs4st8jg.js → formatter-vwjkfnk2.js} +5 -5
- package/dist/chunks/{command-w2eysc6j.js → formatter-w2eysc6j.js} +2 -2
- package/dist/chunks/{command-w3wsvvr9.js → formatter-w3wsvvr9.js} +1 -1
- package/dist/chunks/{command-wakvkjy4.js → formatter-wakvkjy4.js} +1 -1
- package/dist/chunks/{command-wd87259q.js → formatter-wd87259q.js} +1 -1
- package/dist/chunks/{command-wegkxhrn.js → formatter-wegkxhrn.js} +2 -2
- package/dist/chunks/{command-n2ah2rkn.js → formatter-wp9rabm0.js} +13 -13
- package/dist/chunks/{command-w687dnns.js → formatter-wr3re1en.js} +4 -4
- package/dist/chunks/{command-wf5xbgyh.js → formatter-wx6nv8fq.js} +7 -7
- package/dist/chunks/{command-vntcsxyj.js → formatter-x061st40.js} +10 -10
- package/dist/chunks/{command-jgvrj005.js → formatter-x1rh6vcx.js} +5 -5
- package/dist/chunks/{command-jb6z6a30.js → formatter-x2w3vhab.js} +10 -10
- package/dist/chunks/{command-4gatbntd.js → formatter-xd7ffwxg.js} +12 -12
- package/dist/chunks/{command-x713kxbr.js → formatter-xe53826y.js} +13 -13
- package/dist/chunks/{command-4xzzce0f.js → formatter-xpr07rag.js} +29 -29
- package/dist/chunks/{command-xxschbft.js → formatter-xxschbft.js} +1 -1
- package/dist/chunks/{command-2z6qaazc.js → formatter-xy9mx054.js} +44 -44
- package/dist/chunks/{command-mb36n99k.js → formatter-xyc15gmq.js} +49 -49
- package/dist/chunks/{command-kmekj7m2.js → formatter-xz07m27x.js} +4 -4
- package/dist/chunks/{command-9zc2sd1y.js → formatter-ya6jhd7d.js} +26 -26
- package/dist/chunks/{command-yb20nhc3.js → formatter-yb20nhc3.js} +1 -1
- package/dist/chunks/{command-akvkwv3r.js → formatter-ymhcxh1d.js} +93 -93
- package/dist/chunks/{command-yr705xyq.js → formatter-yr705xyq.js} +1 -1
- package/dist/chunks/{command-yvtc2x31.js → formatter-yvtc2x31.js} +1 -1
- package/dist/chunks/{command-z0wbgq7s.js → formatter-z0wbgq7s.js} +1 -1
- package/dist/chunks/formatter-z7bdqmx5.js +18 -0
- package/dist/chunks/{command-jvc6ajf5.js → formatter-z8adrwbe.js} +4 -4
- package/dist/chunks/{command-vspq6nrc.js → formatter-zb0mnwnv.js} +83 -83
- package/dist/chunks/{command-gab8rwnv.js → formatter-zbj23qj9.js} +11 -11
- package/dist/chunks/{command-j9nxzz3g.js → formatter-ze75qvmd.js} +3 -3
- package/dist/chunks/{command-wsqqgvdy.js → formatter-zhh3ssa0.js} +7 -7
- package/dist/chunks/{command-s2rmzza2.js → formatter-zjks91hc.js} +24 -24
- package/dist/chunks/{command-epnvf3pb.js → formatter-zpkeqzrx.js} +20 -20
- package/dist/chunks/{command-7y2jw3ee.js → formatter-zpw8n7tm.js} +12 -12
- package/dist/chunks/{command-jd3pkr7r.js → formatter-zqp0bxw0.js} +16 -16
- package/dist/chunks/{command-d44wfkmg.js → formatter-zqzpkhyt.js} +15 -15
- package/dist/chunks/{command-s9kd1pfb.js → formatter-zr79126c.js} +32 -32
- package/dist/chunks/{command-ee2b5eh8.js → formatter-ztbesdks.js} +198 -198
- package/dist/chunks/{command-fyfcjg2j.js → formatter-ztwsqh7x.js} +9 -9
- package/dist/chunks/{command-angwvatz.js → formatter-zv324z0d.js} +8 -8
- package/dist/chunks/{command-0ht5pcpg.js → formatter-zwmrnfgc.js} +22 -22
- package/dist/chunks/{command-963hk181.js → formatter-zyfhsknv.js} +9 -9
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +150 -150
- package/dist/codemode/instructions.js +10 -10
- package/dist/codemode/tool.js +157 -157
- package/dist/command.js +96 -96
- package/dist/config/discovery.js +95 -95
- package/dist/config/integration.js +3 -3
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +113 -113
- package/dist/config/plugin/agent.js +132 -132
- package/dist/config/plugin/command.js +247 -247
- package/dist/config/plugin/compaction.js +175 -175
- package/dist/config/plugin/compatibility.js +155 -155
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +132 -132
- package/dist/config/plugin/image.js +131 -131
- package/dist/config/plugin/instruction.js +132 -132
- package/dist/config/plugin/location-watcher.js +131 -131
- package/dist/config/plugin/mcp.js +146 -146
- package/dist/config/plugin/policy.js +131 -131
- package/dist/config/plugin/provider.js +131 -131
- package/dist/config/plugin/reference.js +133 -133
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +151 -151
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +156 -156
- package/dist/config/plugin/snapshot.js +129 -129
- package/dist/config/plugin/source.js +133 -133
- package/dist/config/plugin/tool-output.js +132 -132
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +133 -133
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +136 -136
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +94 -94
- package/dist/database/batch.js +1 -1
- package/dist/database/database.js +77 -77
- 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/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration/20261030054400_job.js +1 -1
- package/dist/database/migration.gen.js +60 -60
- package/dist/database/migration.js +76 -76
- 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/v1-migration.bun.js +105 -105
- package/dist/effect/app-node-builder.js +450 -450
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/client-tls/client-tls.bun.js +1 -1
- package/dist/effect/client-tls/client-tls.node.js +1 -1
- package/dist/effect/client-tls/client-tls.workerd.js +1 -1
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +107 -107
- 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 +81 -81
- package/dist/file-access.js +162 -162
- package/dist/file-mutation.js +108 -108
- package/dist/file-retention.js +1 -1
- package/dist/file-write.js +166 -166
- 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/file-watch.js +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +260 -260
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +111 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +114 -114
- package/dist/flag.js +132 -132
- package/dist/form.js +93 -93
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +115 -115
- package/dist/git.js +7 -7
- package/dist/github-copilot/models.js +105 -105
- package/dist/image/notice.js +1 -1
- package/dist/image/photon-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +441 -441
- package/dist/instruction-discovery.js +96 -96
- package/dist/instructions/builtins.js +101 -101
- package/dist/instructions/index.js +4 -4
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +102 -102
- package/dist/job/list.js +5 -5
- package/dist/job/recovery.js +2 -2
- package/dist/job/sql.js +2 -2
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +84 -84
- package/dist/location-activity.js +187 -187
- package/dist/location-lifecycle.js +155 -155
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +438 -438
- package/dist/location.js +102 -102
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +161 -161
- package/dist/mcp/connection.js +106 -106
- package/dist/mcp/event-errors.js +1 -1
- package/dist/mcp/index.js +153 -153
- package/dist/mcp/instructions.js +192 -192
- package/dist/mcp/oauth.js +90 -90
- package/dist/mcp/pool.js +112 -112
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +161 -161
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +105 -105
- package/dist/model-resolver.js +111 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +114 -114
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +122 -122
- package/dist/oauth/page.js +1 -1
- package/dist/oauth/redirect.js +1 -1
- package/dist/permission/saved.js +93 -93
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +158 -158
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +101 -101
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +85 -85
- package/dist/plugin/command.js +146 -146
- package/dist/plugin/fork-notice.js +3 -3
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +251 -251
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +418 -418
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +111 -111
- package/dist/plugin/module.js +130 -130
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +151 -151
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +107 -107
- package/dist/plugin/provider/azure.js +134 -134
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +135 -135
- package/dist/plugin/provider/claude-agent/aisdk.js +118 -118
- package/dist/plugin/provider/claude-agent/claude/fork.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/io.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/probe.js +2 -2
- package/dist/plugin/provider/claude-agent/claude/query-options.js +4 -4
- package/dist/plugin/provider/claude-agent/claude/sdk.js +3 -3
- package/dist/plugin/provider/claude-agent/claude/session.js +6 -6
- package/dist/plugin/provider/claude-agent/claude/sessions.js +16 -16
- package/dist/plugin/provider/claude-agent/claude/status.js +9 -9
- package/dist/plugin/provider/claude-agent/index.js +149 -149
- package/dist/plugin/provider/claude-agent/instructions.js +115 -115
- package/dist/plugin/provider/claude-agent/integration.js +114 -114
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-error.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/claude-agent-language-model.js +7 -7
- package/dist/plugin/provider/claude-agent/language-model/convert-claude-stream.js +6 -6
- package/dist/plugin/provider/claude-agent/language-model/convert-to-claude-message.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/request-kind.js +1 -1
- package/dist/plugin/provider/claude-agent/language-model/system-prompt.js +3 -3
- package/dist/plugin/provider/claude-agent/language-model/usage.js +3 -3
- package/dist/plugin/provider/claude-agent/provider.js +109 -109
- package/dist/plugin/provider/claude-agent/session.js +113 -113
- package/dist/plugin/provider/claude-agent/sync/catch-up.js +3 -3
- package/dist/plugin/provider/claude-agent/sync/checkpoints.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/decide.js +2 -2
- package/dist/plugin/provider/claude-agent/sync/fingerprint.js +1 -1
- package/dist/plugin/provider/claude-agent/sync/record.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/hooks.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/names.js +1 -1
- package/dist/plugin/provider/claude-agent/tools/pending.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/result.js +3 -3
- package/dist/plugin/provider/claude-agent/tools/server.js +4 -4
- package/dist/plugin/provider/cloudflare-ai-gateway.js +131 -131
- package/dist/plugin/provider/cloudflare-workers-ai.js +131 -131
- package/dist/plugin/provider/configured.js +127 -127
- package/dist/plugin/provider/credential-settings.js +88 -88
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +110 -110
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +112 -112
- package/dist/plugin/provider/gitlab.js +111 -111
- package/dist/plugin/provider/google-vertex.js +128 -128
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +144 -144
- package/dist/plugin/provider/local.js +141 -141
- package/dist/plugin/provider/modal.js +109 -109
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +144 -144
- package/dist/plugin/provider/openai-context-caps.js +107 -107
- package/dist/plugin/provider/openai.js +135 -135
- package/dist/plugin/provider/opencode-watches.js +4 -4
- package/dist/plugin/provider/opencode.js +163 -163
- package/dist/plugin/provider/openrouter.js +105 -105
- package/dist/plugin/provider/poe.js +91 -91
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/refresh.js +89 -89
- package/dist/plugin/provider/sap-ai-core.js +105 -105
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +133 -133
- package/dist/plugin/provider/vllm.js +144 -144
- package/dist/plugin/provider/xai.js +105 -105
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +242 -242
- package/dist/plugin/sdk.js +89 -89
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +152 -152
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +430 -430
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +99 -99
- package/dist/plugin/vcs/hg.js +99 -99
- package/dist/plugin/verbosity.js +107 -107
- package/dist/plugin/warming.js +131 -131
- package/dist/plugin/websearch/exa.js +4 -4
- package/dist/plugin/websearch/firecrawl.js +9 -9
- package/dist/plugin/websearch/index.js +10 -10
- package/dist/plugin/websearch/mcp.js +2 -2
- package/dist/plugin/websearch/parallel.js +9 -9
- package/dist/plugin/websearch/provider.js +1 -1
- package/dist/plugin/websearch/tavily.js +7 -7
- package/dist/plugin/websearch/tinyfish.js +9 -9
- package/dist/plugin.js +260 -260
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +103 -103
- package/dist/provider.js +113 -113
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +111 -111
- package/dist/reference/instructions.js +100 -100
- package/dist/reference.js +103 -103
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +97 -97
- package/dist/schedule/check.js +256 -256
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +264 -264
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +3 -3
- package/dist/session/blob.js +133 -133
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +175 -175
- package/dist/session/context.js +208 -208
- package/dist/session/diff.js +101 -101
- 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 +272 -272
- package/dist/session/execution/subagent-report.js +145 -145
- package/dist/session/execution.js +170 -170
- package/dist/session/generate.js +208 -208
- package/dist/session/history.js +141 -141
- package/dist/session/inbox.js +148 -148
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +91 -91
- package/dist/session/instruction-state.js +9 -9
- package/dist/session/instructions.js +148 -148
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +173 -173
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +176 -176
- package/dist/session/projector.js +148 -148
- package/dist/session/prompt.js +153 -153
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +144 -144
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +263 -263
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +115 -115
- package/dist/session/runner/publish-llm-event.js +155 -155
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +168 -168
- package/dist/session/runner/to-llm-message.js +142 -142
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +194 -194
- package/dist/session/shell.js +149 -149
- package/dist/session/skill.js +152 -152
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +85 -85
- package/dist/session/store.js +147 -147
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +175 -175
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +212 -212
- package/dist/session/to-session-error.js +154 -154
- package/dist/session/transfer.js +257 -257
- package/dist/session/usage.js +1 -1
- package/dist/session.js +251 -251
- package/dist/shared-cache.js +5 -5
- 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 +151 -151
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +156 -156
- package/dist/skill.js +163 -163
- package/dist/snapshot.js +104 -104
- 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 +191 -191
- package/dist/tool/plugin/artifact.js +246 -246
- package/dist/tool/plugin/edit.js +172 -172
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +174 -174
- package/dist/tool/plugin/grep.js +175 -175
- package/dist/tool/plugin/image-generate.js +257 -257
- package/dist/tool/plugin/mcp-events.js +168 -168
- package/dist/tool/plugin/mcp-resource.js +172 -172
- package/dist/tool/plugin/opencode.js +168 -168
- package/dist/tool/plugin/patch.js +165 -165
- package/dist/tool/plugin/question.js +151 -151
- package/dist/tool/plugin/read.js +177 -177
- package/dist/tool/plugin/schedule.js +262 -262
- package/dist/tool/plugin/shell.js +247 -247
- package/dist/tool/plugin/skill.js +160 -160
- package/dist/tool/plugin/subagent.js +253 -253
- package/dist/tool/plugin/todo.js +158 -158
- package/dist/tool/plugin/webfetch.js +160 -160
- package/dist/tool/plugin/websearch.js +154 -154
- package/dist/tool/plugin/write.js +169 -169
- package/dist/tool/read-filesystem.js +114 -114
- package/dist/tool/runtime.js +1 -1
- package/dist/tool/search.js +109 -109
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +165 -165
- package/dist/usage-limits.js +100 -100
- package/dist/util/canonical-json.js +1 -1
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- 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 +5 -5
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +106 -106
- 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 +2 -2
- package/dist/variant.js +107 -107
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +102 -102
- package/dist/voice.js +97 -97
- package/dist/websearch.js +95 -95
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +90 -90
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +93 -93
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +111 -111
- package/package.json +8 -8
- package/dist/chunks/command-4spk3jf8.js +0 -273
- package/dist/chunks/command-69588b63.js +0 -35
- package/dist/chunks/command-ezna1kdx.js +0 -18
- package/dist/chunks/command-f2dgq8fn.js +0 -26
- /package/dist/chunks/{command-0qkdqm5v.js → formatter-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{command-0zkw76rk.js → formatter-0zkw76rk.js} +0 -0
- /package/dist/chunks/{command-17cy0kzp.js → formatter-17cy0kzp.js} +0 -0
- /package/dist/chunks/{command-1cnp2v09.js → formatter-1cnp2v09.js} +0 -0
- /package/dist/chunks/{command-1kah00gy.js → formatter-1kah00gy.js} +0 -0
- /package/dist/chunks/{command-24dcb14g.js → formatter-24dcb14g.js} +0 -0
- /package/dist/chunks/{command-2710q6r3.js → formatter-2710q6r3.js} +0 -0
- /package/dist/chunks/{command-2c3vjs8z.js → formatter-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{command-359p4xyc.js → formatter-359p4xyc.js} +0 -0
- /package/dist/chunks/{command-3v8g72cx.js → formatter-3v8g72cx.js} +0 -0
- /package/dist/chunks/{command-43n2bw4t.js → formatter-43n2bw4t.js} +0 -0
- /package/dist/chunks/{command-4knz6hnm.js → formatter-4knz6hnm.js} +0 -0
- /package/dist/chunks/{command-4qk9sjk2.js → formatter-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{command-53557ph1.js → formatter-53557ph1.js} +0 -0
- /package/dist/chunks/{command-5w3e23ze.js → formatter-5w3e23ze.js} +0 -0
- /package/dist/chunks/{command-6agm2x70.js → formatter-6agm2x70.js} +0 -0
- /package/dist/chunks/{command-6prwharc.js → formatter-6prwharc.js} +0 -0
- /package/dist/chunks/{command-6q2bdcd1.js → formatter-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{command-7akdwqpd.js → formatter-7akdwqpd.js} +0 -0
- /package/dist/chunks/{command-7m9af43g.js → formatter-7m9af43g.js} +0 -0
- /package/dist/chunks/{command-7rvsyqjv.js → formatter-7rvsyqjv.js} +0 -0
- /package/dist/chunks/{command-822emrt2.js → formatter-822emrt2.js} +0 -0
- /package/dist/chunks/{command-84wd9syh.js → formatter-84wd9syh.js} +0 -0
- /package/dist/chunks/{command-88xbtdfr.js → formatter-88xbtdfr.js} +0 -0
- /package/dist/chunks/{command-8n3pysct.js → formatter-8n3pysct.js} +0 -0
- /package/dist/chunks/{command-8wj87zfr.js → formatter-8wj87zfr.js} +0 -0
- /package/dist/chunks/{command-9a4afbnw.js → formatter-9a4afbnw.js} +0 -0
- /package/dist/chunks/{command-9ceax7yg.js → formatter-9ceax7yg.js} +0 -0
- /package/dist/chunks/{command-9rqn6x4v.js → formatter-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{command-ade8csyh.js → formatter-ade8csyh.js} +0 -0
- /package/dist/chunks/{command-aqzs7mqg.js → formatter-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{command-atq7p7m5.js → formatter-atq7p7m5.js} +0 -0
- /package/dist/chunks/{command-beh6qq61.js → formatter-beh6qq61.js} +0 -0
- /package/dist/chunks/{command-bkyjaxrp.js → formatter-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{command-bmr6ed5q.js → formatter-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{command-cf4snx6d.js → formatter-cf4snx6d.js} +0 -0
- /package/dist/chunks/{command-cqv5kn06.js → formatter-cqv5kn06.js} +0 -0
- /package/dist/chunks/{command-cvy3z8tj.js → formatter-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{command-d9fn303g.js → formatter-d9fn303g.js} +0 -0
- /package/dist/chunks/{command-d9jj8t3e.js → formatter-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{command-df08tz66.js → formatter-df08tz66.js} +0 -0
- /package/dist/chunks/{command-dy18nga0.js → formatter-dy18nga0.js} +0 -0
- /package/dist/chunks/{command-e5kj55wp.js → formatter-e5kj55wp.js} +0 -0
- /package/dist/chunks/{command-ean2d8b5.js → formatter-ean2d8b5.js} +0 -0
- /package/dist/chunks/{command-ec1grn59.js → formatter-ec1grn59.js} +0 -0
- /package/dist/chunks/{command-emrn6kk6.js → formatter-emrn6kk6.js} +0 -0
- /package/dist/chunks/{command-f0mxakyp.js → formatter-f0mxakyp.js} +0 -0
- /package/dist/chunks/{command-f6n9ztr4.js → formatter-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{command-faypxj3z.js → formatter-faypxj3z.js} +0 -0
- /package/dist/chunks/{command-fd410y7t.js → formatter-fd410y7t.js} +0 -0
- /package/dist/chunks/{command-fkpq3x5p.js → formatter-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{command-g86h250q.js → formatter-g86h250q.js} +0 -0
- /package/dist/chunks/{command-gebd4c9n.js → formatter-gebd4c9n.js} +0 -0
- /package/dist/chunks/{command-gftt206x.js → formatter-gftt206x.js} +0 -0
- /package/dist/chunks/{command-hcxmzztb.js → formatter-hcxmzztb.js} +0 -0
- /package/dist/chunks/{command-hk9envan.js → formatter-hk9envan.js} +0 -0
- /package/dist/chunks/{command-j2ntwpah.js → formatter-j2ntwpah.js} +0 -0
- /package/dist/chunks/{command-jjkms2e6.js → formatter-jjkms2e6.js} +0 -0
- /package/dist/chunks/{command-jr7sbwjy.js → formatter-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{command-jwfs4k6c.js → formatter-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{command-jwr30sdr.js → formatter-jwr30sdr.js} +0 -0
- /package/dist/chunks/{command-jzg6c2d5.js → formatter-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{command-m18g726c.js → formatter-m18g726c.js} +0 -0
- /package/dist/chunks/{command-mp448xyj.js → formatter-mp448xyj.js} +0 -0
- /package/dist/chunks/{command-msx8hqn2.js → formatter-msx8hqn2.js} +0 -0
- /package/dist/chunks/{command-n05xt0ee.js → formatter-n05xt0ee.js} +0 -0
- /package/dist/chunks/{command-n3j8tn72.js → formatter-n3j8tn72.js} +0 -0
- /package/dist/chunks/{command-nh4v3znn.js → formatter-nh4v3znn.js} +0 -0
- /package/dist/chunks/{command-njntx4h6.js → formatter-njntx4h6.js} +0 -0
- /package/dist/chunks/{command-p71gwv9c.js → formatter-p71gwv9c.js} +0 -0
- /package/dist/chunks/{command-q3sfg36h.js → formatter-q3sfg36h.js} +0 -0
- /package/dist/chunks/{command-q74kybfr.js → formatter-q74kybfr.js} +0 -0
- /package/dist/chunks/{command-qb87gjwd.js → formatter-qb87gjwd.js} +0 -0
- /package/dist/chunks/{command-qfa1cgps.js → formatter-qfa1cgps.js} +0 -0
- /package/dist/chunks/{command-qg3g05ea.js → formatter-qg3g05ea.js} +0 -0
- /package/dist/chunks/{command-qrg20bc0.js → formatter-qrg20bc0.js} +0 -0
- /package/dist/chunks/{command-rcb2kzg1.js → formatter-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{command-sdp7kfr6.js → formatter-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{command-ssg3fenm.js → formatter-ssg3fenm.js} +0 -0
- /package/dist/chunks/{command-syrav9an.js → formatter-syrav9an.js} +0 -0
- /package/dist/chunks/{command-t03h4f5z.js → formatter-t03h4f5z.js} +0 -0
- /package/dist/chunks/{command-ty7weeps.js → formatter-ty7weeps.js} +0 -0
- /package/dist/chunks/{command-v2dnd5dt.js → formatter-v2dnd5dt.js} +0 -0
- /package/dist/chunks/{command-ve7vex1e.js → formatter-ve7vex1e.js} +0 -0
- /package/dist/chunks/{command-vtarvj67.js → formatter-vtarvj67.js} +0 -0
- /package/dist/chunks/{command-w803qqfp.js → formatter-w803qqfp.js} +0 -0
- /package/dist/chunks/{command-wc3fc9cn.js → formatter-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{command-wer8tq1h.js → formatter-wer8tq1h.js} +0 -0
- /package/dist/chunks/{command-wtztk69x.js → formatter-wtztk69x.js} +0 -0
- /package/dist/chunks/{command-x4th4bpe.js → formatter-x4th4bpe.js} +0 -0
- /package/dist/chunks/{command-y44na4kk.js → formatter-y44na4kk.js} +0 -0
- /package/dist/chunks/{command-y8f7s663.js → formatter-y8f7s663.js} +0 -0
- /package/dist/chunks/{command-ygaqb7jw.js → formatter-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{command-z5v4ffb3.js → formatter-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{command-z9919s4g.js → formatter-z9919s4g.js} +0 -0
- /package/dist/chunks/{command-zxpyjp51.js → formatter-zxpyjp51.js} +0 -0
- /package/dist/chunks/{command-zz5vv3aq.js → formatter-zz5vv3aq.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service40
|
|
3
|
+
} from "./formatter-hvvf9qw8.js";
|
|
4
4
|
import {
|
|
5
5
|
awaitActivation2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./formatter-z7bdqmx5.js";
|
|
7
7
|
import {
|
|
8
8
|
SkillNotFoundError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./formatter-f9tc5me5.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service35
|
|
12
|
+
} from "./formatter-bm49bgmn.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./formatter-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/session/skill.ts
|
|
18
18
|
var exports_skill4 = {};
|
|
@@ -22,8 +22,8 @@ __export(exports_skill4, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Effect } from "effect";
|
|
24
24
|
var get4 = Effect.fn("SessionSkill.get")(function* (input) {
|
|
25
|
-
const instances = yield*
|
|
26
|
-
const skills = yield* awaitActivation2.pipe(Effect.andThen(
|
|
25
|
+
const instances = yield* Service40;
|
|
26
|
+
const skills = yield* awaitActivation2.pipe(Effect.andThen(Service35), instances.provide(input.session));
|
|
27
27
|
const skill = yield* skills.get(input.skill);
|
|
28
28
|
if (!skill)
|
|
29
29
|
return yield* new SkillNotFoundError2({ skill: input.skill });
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID17
|
|
3
|
+
} from "./formatter-67s9kfqp.js";
|
|
4
4
|
import {
|
|
5
5
|
credentialSettings2,
|
|
6
6
|
metadataSettings2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./formatter-p9dwe2ys.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/provider/amazon-bedrock.ts
|
|
10
10
|
import { Effect } from "effect";
|
|
@@ -39,15 +39,15 @@ var AmazonBedrockPlugin2 = define({
|
|
|
39
39
|
})))).filter(Boolean).toSorted();
|
|
40
40
|
yield* ctx.integration.transform((editor) => {
|
|
41
41
|
editor.method.update({
|
|
42
|
-
integrationID:
|
|
42
|
+
integrationID: ID17.amazonBedrock,
|
|
43
43
|
method: { type: "env", names: ["AWS_BEARER_TOKEN_BEDROCK"] }
|
|
44
44
|
});
|
|
45
45
|
editor.method.update({
|
|
46
|
-
integrationID:
|
|
46
|
+
integrationID: ID17.amazonBedrock,
|
|
47
47
|
method: { type: "key", label: "Bedrock API key" }
|
|
48
48
|
});
|
|
49
49
|
editor.method.update({
|
|
50
|
-
integrationID:
|
|
50
|
+
integrationID: ID17.amazonBedrock,
|
|
51
51
|
method: {
|
|
52
52
|
id: "aws-profile",
|
|
53
53
|
type: "external",
|
|
@@ -69,7 +69,7 @@ var AmazonBedrockPlugin2 = define({
|
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
71
|
});
|
|
72
|
-
const login = yield* credentialSettings2(ctx,
|
|
72
|
+
const login = yield* credentialSettings2(ctx, ID17.amazonBedrock, (value) => value.type === "external" && value.methodID === "aws-profile" ? metadataSettings2(value.metadata, ["profile"]) : {});
|
|
73
73
|
yield* ctx.provider.transform((evt) => {
|
|
74
74
|
for (const item of evt.list()) {
|
|
75
75
|
if (!isBedrock(item.provider))
|
|
@@ -77,7 +77,7 @@ var AmazonBedrockPlugin2 = define({
|
|
|
77
77
|
evt.update(item.provider.id, (provider) => {
|
|
78
78
|
const settings = {
|
|
79
79
|
...provider.settings,
|
|
80
|
-
...(provider.integrationID ?? provider.id) ===
|
|
80
|
+
...(provider.integrationID ?? provider.id) === ID17.amazonBedrock ? login.settings : {}
|
|
81
81
|
};
|
|
82
82
|
const chain = typeof settings.profile === "string" || CHAIN_ENV.some((name) => process.env[name]);
|
|
83
83
|
if (chain && provider.activation === "auto")
|
|
@@ -1,73 +1,73 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./formatter-nyxvepra.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID21,
|
|
6
6
|
OAuth3
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./formatter-k15h447b.js";
|
|
8
8
|
import {
|
|
9
9
|
AbsolutePath2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./formatter-z5v4ffb3.js";
|
|
11
11
|
import {
|
|
12
12
|
key3
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./formatter-azqdag7d.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
15
|
+
ID20,
|
|
16
16
|
MethodID2,
|
|
17
17
|
AuthorizationError2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./formatter-vpa8zgt8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
ID17
|
|
21
|
+
} from "./formatter-67s9kfqp.js";
|
|
22
22
|
import {
|
|
23
23
|
Remote3,
|
|
24
24
|
Document3,
|
|
25
25
|
make35
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./formatter-7zs4mqwf.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./
|
|
28
|
+
Service74
|
|
29
|
+
} from "./formatter-ppk2ta81.js";
|
|
30
30
|
import {
|
|
31
31
|
integrate2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./formatter-n6y2yx69.js";
|
|
33
33
|
import {
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
34
|
+
Service72
|
|
35
|
+
} from "./formatter-zwmrnfgc.js";
|
|
36
36
|
import {
|
|
37
37
|
uri2,
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
38
|
+
Service35
|
|
39
|
+
} from "./formatter-bm49bgmn.js";
|
|
40
40
|
import {
|
|
41
41
|
parse2
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./formatter-2z7m33tr.js";
|
|
43
43
|
import {
|
|
44
44
|
defaultServer2,
|
|
45
45
|
server2,
|
|
46
46
|
headers2
|
|
47
|
-
} from "./
|
|
47
|
+
} from "./formatter-kt3bjfbg.js";
|
|
48
48
|
import {
|
|
49
49
|
File2,
|
|
50
|
-
|
|
51
|
-
} from "./
|
|
50
|
+
Service36
|
|
51
|
+
} from "./formatter-2bvj0tyw.js";
|
|
52
52
|
import {
|
|
53
|
-
|
|
54
|
-
} from "./
|
|
53
|
+
Service46
|
|
54
|
+
} from "./formatter-tmxr2s7a.js";
|
|
55
55
|
import {
|
|
56
56
|
isSafeSegment2,
|
|
57
57
|
isSafeRelativePath2
|
|
58
|
-
} from "./
|
|
58
|
+
} from "./formatter-rp6t20zc.js";
|
|
59
59
|
import {
|
|
60
|
-
|
|
60
|
+
ID8,
|
|
61
61
|
Input16,
|
|
62
62
|
Response2
|
|
63
|
-
} from "./
|
|
63
|
+
} from "./formatter-ya6jhd7d.js";
|
|
64
64
|
import {
|
|
65
65
|
header2,
|
|
66
|
-
|
|
67
|
-
} from "./
|
|
66
|
+
make19
|
|
67
|
+
} from "./formatter-qycm87ym.js";
|
|
68
68
|
import {
|
|
69
69
|
onSwitch2
|
|
70
|
-
} from "./
|
|
70
|
+
} from "./formatter-3m4fz3hb.js";
|
|
71
71
|
|
|
72
72
|
// src/plugin/provider/opencode.ts
|
|
73
73
|
import { isDeepStrictEqual } from "node:util";
|
|
@@ -136,7 +136,7 @@ class SignedOutError extends Schema.TaggedError()("OpencodeConsole.SignedOut", {
|
|
|
136
136
|
}
|
|
137
137
|
function oauth(http) {
|
|
138
138
|
return {
|
|
139
|
-
integrationID:
|
|
139
|
+
integrationID: ID20.make("opencode"),
|
|
140
140
|
method: {
|
|
141
141
|
id: methodID,
|
|
142
142
|
type: "oauth",
|
|
@@ -203,11 +203,11 @@ var OpencodePlugin2 = define({
|
|
|
203
203
|
const disableFree = ["1", "true"].includes(process.env.OPENCODE_DISABLE_FREE_MODELS?.toLowerCase() ?? "");
|
|
204
204
|
const client = yield* HttpClient.HttpClient;
|
|
205
205
|
const http = HttpClient.mapRequest(client, HttpClientRequest.setHeader("User-Agent", useragent2(ctx.app)));
|
|
206
|
-
const config = yield*
|
|
207
|
-
const flags = yield*
|
|
208
|
-
const discovery = yield*
|
|
209
|
-
const skills = yield*
|
|
210
|
-
const cache = yield*
|
|
206
|
+
const config = yield* Service74;
|
|
207
|
+
const flags = yield* Service72;
|
|
208
|
+
const discovery = yield* Service36;
|
|
209
|
+
const skills = yield* Service35;
|
|
210
|
+
const cache = yield* Service46;
|
|
211
211
|
const scope = yield* Scope.Scope;
|
|
212
212
|
const loading = Semaphore.makeUnsafe(1);
|
|
213
213
|
let snapshot = { remote: undefined, connection: undefined, organization: undefined };
|
|
@@ -217,7 +217,7 @@ var OpencodePlugin2 = define({
|
|
|
217
217
|
const skillDownload = yield* FiberHandle.make();
|
|
218
218
|
let reported;
|
|
219
219
|
let explainers = [];
|
|
220
|
-
const watches = yield*
|
|
220
|
+
const watches = yield* make19(ctx, http);
|
|
221
221
|
const load = Effect.fn("OpencodePlugin.load")(function* (maxAge = Duration.minutes(1)) {
|
|
222
222
|
const connection = yield* ctx.integration.connection.active("opencode");
|
|
223
223
|
if (!connection) {
|
|
@@ -255,13 +255,13 @@ var OpencodePlugin2 = define({
|
|
|
255
255
|
});
|
|
256
256
|
let integrated;
|
|
257
257
|
const integrate = Effect.fnUntraced(function* (document) {
|
|
258
|
-
yield* config.integration?.(
|
|
259
|
-
integrated = (yield* config.entries()).find((entry) => entry instanceof Document3 && entry.integrationID ===
|
|
258
|
+
yield* config.integration?.(ID20.make("opencode"), document) ?? Effect.void;
|
|
259
|
+
integrated = (yield* config.entries()).find((entry) => entry instanceof Document3 && entry.integrationID === ID20.make("opencode"));
|
|
260
260
|
});
|
|
261
261
|
const publish = Effect.fnUntraced(function* (next) {
|
|
262
262
|
const document = next.remote && next.connection && make35({
|
|
263
|
-
integrationID:
|
|
264
|
-
connection: next.connection.type === "credential" ? { ...next.connection, id:
|
|
263
|
+
integrationID: ID20.make("opencode"),
|
|
264
|
+
connection: next.connection.type === "credential" ? { ...next.connection, id: ID21.make(next.connection.id) } : next.connection,
|
|
265
265
|
organization: next.organization,
|
|
266
266
|
info: next.remote
|
|
267
267
|
});
|
|
@@ -353,7 +353,7 @@ var OpencodePlugin2 = define({
|
|
|
353
353
|
integrate2(providers, integrated);
|
|
354
354
|
});
|
|
355
355
|
yield* ctx.provider.transform((providers) => {
|
|
356
|
-
const item = providers.get(
|
|
356
|
+
const item = providers.get(ID17.opencode);
|
|
357
357
|
if (!item)
|
|
358
358
|
return;
|
|
359
359
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey);
|
|
@@ -365,7 +365,7 @@ var OpencodePlugin2 = define({
|
|
|
365
365
|
});
|
|
366
366
|
});
|
|
367
367
|
yield* ctx.model.transform((models) => {
|
|
368
|
-
const item = models.provider.get(
|
|
368
|
+
const item = models.provider.get(ID17.opencode);
|
|
369
369
|
if (!item)
|
|
370
370
|
return;
|
|
371
371
|
const hasKey = Boolean(process.env.OPENCODE_API_KEY || snapshot.connection || item.provider.settings?.apiKey && item.provider.settings.apiKey !== "public");
|
|
@@ -380,7 +380,7 @@ var OpencodePlugin2 = define({
|
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
yield* ctx.websearch.transform((editor) => {
|
|
383
|
-
const provider =
|
|
383
|
+
const provider = ID8.make("opencode");
|
|
384
384
|
if (snapshot.remote?.websearch && snapshot.remote.websearch.provider === provider && snapshot.connection)
|
|
385
385
|
editor.add(search(provider, snapshot.connection));
|
|
386
386
|
});
|
|
@@ -419,7 +419,7 @@ var OpencodePlugin2 = define({
|
|
|
419
419
|
});
|
|
420
420
|
const guard = Effect.fn("OpencodePlugin.guard")(function* (next) {
|
|
421
421
|
yield* Effect.forEach(explainers, (registration) => registration.dispose, { discard: true });
|
|
422
|
-
explainers = yield* Effect.forEach(next.connection ? new Set([
|
|
422
|
+
explainers = yield* Effect.forEach(next.connection ? new Set([ID17.opencode, ...Object.keys(next.remote?.providers ?? {})]) : [], (providerID) => ctx.session.hook("http.response", explain, { providerID }).pipe(Scope.provide(scope)));
|
|
423
423
|
});
|
|
424
424
|
yield* guard(snapshot);
|
|
425
425
|
const polling = yield* FiberHandle.make();
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
definition2,
|
|
3
3
|
normalizeContent2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./formatter-7rvsyqjv.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./formatter-9rqn6x4v.js";
|
|
8
8
|
|
|
9
9
|
// src/plugin/tool-input-repair.ts
|
|
10
10
|
var exports_tool_input_repair = {};
|
|
11
11
|
__export(exports_tool_input_repair, {
|
|
12
|
-
Plugin: () =>
|
|
12
|
+
Plugin: () => Plugin53,
|
|
13
13
|
ToolInputRepairPlugin: () => exports_tool_input_repair
|
|
14
14
|
});
|
|
15
15
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
@@ -18,7 +18,7 @@ import { Effect, Option, Predicate, Schema } from "effect";
|
|
|
18
18
|
var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown));
|
|
19
19
|
var maxDepth = 6;
|
|
20
20
|
var aliases = new Map([["bash", "shell"]]);
|
|
21
|
-
var
|
|
21
|
+
var Plugin53 = define({
|
|
22
22
|
id: "opencode.tool.input.repair",
|
|
23
23
|
effect: (ctx) => Effect.gen(function* () {
|
|
24
24
|
const aliased = new Map;
|
|
@@ -153,4 +153,4 @@ function repairArray(value, schema, root, depth) {
|
|
|
153
153
|
return compatible ? [repaired] : value;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
-
export {
|
|
156
|
+
export { Plugin53, exports_tool_input_repair };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
server2,
|
|
3
3
|
headers2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./formatter-kt3bjfbg.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
ID20,
|
|
7
|
+
Service89,
|
|
8
|
+
node91
|
|
9
|
+
} from "./formatter-vpa8zgt8.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./formatter-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/usage-limits.ts
|
|
15
15
|
var exports_usage_limits = {};
|
|
16
16
|
__export(exports_usage_limits, {
|
|
17
|
-
Info: () =>
|
|
18
|
-
Service: () =>
|
|
19
|
-
UnavailableError: () =>
|
|
17
|
+
Info: () => Info23,
|
|
18
|
+
Service: () => Service79,
|
|
19
|
+
UnavailableError: () => UnavailableError4,
|
|
20
20
|
UsageLimits: () => exports_usage_limits,
|
|
21
|
-
layer: () =>
|
|
22
|
-
node: () =>
|
|
21
|
+
layer: () => layer27,
|
|
22
|
+
node: () => node81
|
|
23
23
|
});
|
|
24
24
|
import { Model } from "@opencode/schema/model";
|
|
25
25
|
import { Money } from "@opencode/schema/money";
|
|
@@ -29,23 +29,23 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
29
29
|
import { httpClient } from "@opencode/util/effect/app-node-platform";
|
|
30
30
|
import { Context, Duration, Effect, Layer, Schema } from "effect";
|
|
31
31
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
|
-
var
|
|
32
|
+
var Info23 = UsageLimits.Info;
|
|
33
33
|
|
|
34
|
-
class
|
|
34
|
+
class UnavailableError4 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
|
|
35
35
|
message: Schema.String
|
|
36
36
|
}) {
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
class
|
|
39
|
+
class Service79 extends Context.Service()("@opencode/UsageLimits") {
|
|
40
40
|
}
|
|
41
|
-
var
|
|
42
|
-
const integrations = yield*
|
|
41
|
+
var layer27 = Layer.effect(Service79, Effect.gen(function* () {
|
|
42
|
+
const integrations = yield* Service89;
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
44
44
|
const get = Effect.fn("UsageLimits.get")(function* () {
|
|
45
|
-
const connection = yield* integrations.connection.active(
|
|
45
|
+
const connection = yield* integrations.connection.active(ID20.make("opencode"));
|
|
46
46
|
if (!connection)
|
|
47
47
|
return;
|
|
48
|
-
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new
|
|
48
|
+
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError4({ message: error.message })));
|
|
49
49
|
if (!credential || credential.type === "external")
|
|
50
50
|
return;
|
|
51
51
|
const workspaceID = credential.metadata?.orgID;
|
|
@@ -54,7 +54,7 @@ var layer10 = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
54
54
|
const server = server2(credential);
|
|
55
55
|
const [budgets, go] = yield* Effect.all([readBudgets(http, server, credential), readGo(http, server, credential, workspaceID)], { concurrency: 2 }).pipe(Effect.timeoutOrElse({
|
|
56
56
|
duration: Duration.seconds(15),
|
|
57
|
-
orElse: () => Effect.fail(new
|
|
57
|
+
orElse: () => Effect.fail(new UnavailableError4({ message: "OpenCode Console usage limits timed out" }))
|
|
58
58
|
}));
|
|
59
59
|
return {
|
|
60
60
|
workspace: {
|
|
@@ -66,12 +66,12 @@ var layer10 = Layer.effect(Service13, Effect.gen(function* () {
|
|
|
66
66
|
budgets
|
|
67
67
|
};
|
|
68
68
|
});
|
|
69
|
-
return
|
|
69
|
+
return Service79.of({ get });
|
|
70
70
|
}));
|
|
71
|
-
var
|
|
72
|
-
service:
|
|
73
|
-
layer:
|
|
74
|
-
deps: [
|
|
71
|
+
var node81 = makeLocationNode({
|
|
72
|
+
service: Service79,
|
|
73
|
+
layer: layer27,
|
|
74
|
+
deps: [node91, httpClient]
|
|
75
75
|
});
|
|
76
76
|
var ConsoleBudget = Schema.Struct({
|
|
77
77
|
ruleID: Schema.String,
|
|
@@ -117,17 +117,17 @@ function readBudgets(http, server, credential) {
|
|
|
117
117
|
picked: budget.picked,
|
|
118
118
|
shared: budget.shared,
|
|
119
119
|
resetsAt: budget.resetsAt.getTime()
|
|
120
|
-
}))))), Effect.scoped, Effect.mapError((error) => new
|
|
120
|
+
}))))), Effect.scoped, Effect.mapError((error) => new UnavailableError4({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
|
|
121
121
|
}
|
|
122
122
|
function readGo(http, server, credential, workspaceID) {
|
|
123
123
|
return HttpClient.withScope(http).execute(HttpClientRequest.get(`${new URL(server).origin}/zen/go/v1/usage`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(credential.type === "oauth" ? credential.access : credential.key), HttpClientRequest.setHeader("x-opencode-org-id", workspaceID))).pipe(Effect.flatMap((response) => response.status === 403 ? Effect.succeed(undefined) : HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(GoUsage)), Effect.map((body) => ({
|
|
124
124
|
rolling: meter(body.usage.rolling),
|
|
125
125
|
weekly: meter(body.usage.weekly),
|
|
126
126
|
monthly: meter(body.usage.monthly)
|
|
127
|
-
})))), Effect.scoped, Effect.mapError((error) => new
|
|
127
|
+
})))), Effect.scoped, Effect.mapError((error) => new UnavailableError4({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
|
|
128
128
|
}
|
|
129
129
|
function meter(value) {
|
|
130
130
|
return { percent: value.percent, limited: value.status === "rate-limited", resetsAt: value.resetsAt.getTime() };
|
|
131
131
|
}
|
|
132
132
|
|
|
133
|
-
export {
|
|
133
|
+
export { Info23, UnavailableError4, Service79, layer27, node81, exports_usage_limits };
|
|
@@ -1,35 +1,35 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service94,
|
|
3
3
|
node96
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./formatter-fhwbhm4t.js";
|
|
5
5
|
import {
|
|
6
6
|
Service93,
|
|
7
7
|
node95
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./formatter-18w9amv2.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./formatter-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./formatter-m1714858.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./formatter-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event20,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID21,
|
|
26
|
+
Info: () => Info31,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service90,
|
|
30
30
|
Value: () => Value2,
|
|
31
31
|
expiring: () => expiring2,
|
|
32
|
-
node: () =>
|
|
32
|
+
node: () => node92
|
|
33
33
|
});
|
|
34
34
|
import { asc, desc, eq } from "drizzle-orm";
|
|
35
35
|
import { Cause, Clock, Context, Duration, Effect, Fiber, Layer, Schema } from "effect";
|
|
@@ -38,25 +38,25 @@ import { CredentialLegacy } from "@opencode/schema/credential-legacy";
|
|
|
38
38
|
import { Integration } from "@opencode/schema/integration";
|
|
39
39
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
40
40
|
import { EffectFlock } from "@opencode/util/effect-flock";
|
|
41
|
-
var
|
|
41
|
+
var ID21 = Credential.ID;
|
|
42
42
|
var OAuth3 = Credential.OAuth;
|
|
43
43
|
var Key4 = Credential.Key;
|
|
44
44
|
var External2 = Credential.External;
|
|
45
45
|
var Value2 = Credential.Value;
|
|
46
|
-
var
|
|
46
|
+
var Event20 = Credential.Event;
|
|
47
47
|
var expiring2 = (value, now, margin = Duration.minutes(5)) => value.expires !== 0 && value.expires <= now + Duration.toMillis(margin);
|
|
48
48
|
|
|
49
|
-
class
|
|
50
|
-
id:
|
|
49
|
+
class Info31 extends Schema.Class("Credential.Info")({
|
|
50
|
+
id: ID21,
|
|
51
51
|
integrationID: Integration.ID,
|
|
52
52
|
label: Schema.String,
|
|
53
53
|
value: Value2
|
|
54
54
|
}) {
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
-
class
|
|
57
|
+
class Service90 extends Context.Service()("@opencode/Credential") {
|
|
58
58
|
}
|
|
59
|
-
var layer = Layer.effect(
|
|
59
|
+
var layer = Layer.effect(Service90, Effect.gen(function* () {
|
|
60
60
|
const db = (yield* Service94).db;
|
|
61
61
|
const bus = yield* Service93;
|
|
62
62
|
const flock = yield* EffectFlock.Service;
|
|
@@ -66,7 +66,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
66
66
|
const stored = (row) => {
|
|
67
67
|
if (!row.integration_id)
|
|
68
68
|
return;
|
|
69
|
-
return new
|
|
69
|
+
return new Info31({
|
|
70
70
|
id: row.id,
|
|
71
71
|
integrationID: row.integration_id,
|
|
72
72
|
label: row.label,
|
|
@@ -93,7 +93,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
93
93
|
pending.set(id, fiber);
|
|
94
94
|
return yield* restore(Fiber.join(fiber));
|
|
95
95
|
}));
|
|
96
|
-
const service =
|
|
96
|
+
const service = Service90.of({
|
|
97
97
|
refresh: Effect.fn("Credential.refresh")((id, input) => lock(id, Effect.gen(function* () {
|
|
98
98
|
const current = yield* service.get(id);
|
|
99
99
|
if (current?.value.type !== "oauth")
|
|
@@ -123,8 +123,8 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
123
123
|
return row ? stored(row) : undefined;
|
|
124
124
|
}),
|
|
125
125
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
126
|
-
const credential = new
|
|
127
|
-
id: input.id ??
|
|
126
|
+
const credential = new Info31({
|
|
127
|
+
id: input.id ?? ID21.create(),
|
|
128
128
|
integrationID: input.integrationID,
|
|
129
129
|
label: input.label ?? "default",
|
|
130
130
|
value: input.value
|
|
@@ -154,9 +154,9 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
154
154
|
type: credential.value.type,
|
|
155
155
|
active: activated
|
|
156
156
|
});
|
|
157
|
-
yield* bus.publish(
|
|
157
|
+
yield* bus.publish(Event20.Updated, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
158
158
|
if (activated)
|
|
159
|
-
yield* bus.publish(
|
|
159
|
+
yield* bus.publish(Event20.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
160
160
|
return credential;
|
|
161
161
|
}),
|
|
162
162
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -172,7 +172,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
172
172
|
})).pipe(logFailure("credential activate failed", { credentialID: id }));
|
|
173
173
|
if (integrationID) {
|
|
174
174
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
175
|
-
yield* bus.publish(
|
|
175
|
+
yield* bus.publish(Event20.Switched, { integrationID, credentialID: id }, { global: true });
|
|
176
176
|
}
|
|
177
177
|
}),
|
|
178
178
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -197,7 +197,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
197
197
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
198
198
|
});
|
|
199
199
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
200
|
-
yield* bus.publish(
|
|
200
|
+
yield* bus.publish(Event20.Updated, { integrationID: credential.integrationID, credentialID: id }, { global: true });
|
|
201
201
|
}),
|
|
202
202
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
203
203
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -226,13 +226,13 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
226
226
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
227
227
|
});
|
|
228
228
|
if (removed.integrationID)
|
|
229
|
-
yield* bus.publish(
|
|
229
|
+
yield* bus.publish(Event20.Updated, { integrationID: removed.integrationID, credentialID: id }, { global: true });
|
|
230
230
|
if (removed.switched)
|
|
231
|
-
yield* bus.publish(
|
|
231
|
+
yield* bus.publish(Event20.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
232
232
|
})
|
|
233
233
|
});
|
|
234
234
|
return service;
|
|
235
235
|
}));
|
|
236
|
-
var
|
|
236
|
+
var node92 = makeGlobalNode({ service: Service90, layer, deps: [node96, node95, EffectFlock.node] });
|
|
237
237
|
|
|
238
|
-
export {
|
|
238
|
+
export { ID21, OAuth3, Key4, External2, Value2, Event20, expiring2, Info31, Service90, node92, exports_credential };
|