@opencode/core 0.0.0-dev-393 → 0.0.0-dev-398
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 +88 -88
- package/dist/aisdk-native.js +102 -102
- package/dist/aisdk.js +108 -108
- package/dist/app.js +9 -9
- package/dist/artifact.js +232 -232
- package/dist/bus.js +80 -80
- package/dist/chunks/{state-vbssec1d.js → repository-00qfdy27.js} +29 -29
- package/dist/chunks/{state-73gkfqd7.js → repository-00r8q0yt.js} +29 -29
- package/dist/chunks/{state-48m0p4qs.js → repository-0160n4e9.js} +6 -6
- package/dist/chunks/{state-034tev2y.js → repository-034tev2y.js} +2 -2
- package/dist/chunks/{state-vknx7eh1.js → repository-03h4ymk6.js} +4 -4
- package/dist/chunks/{state-rm34t0fx.js → repository-07nbfc86.js} +3 -3
- package/dist/chunks/{state-hvyxpd0d.js → repository-0anx5598.js} +21 -21
- package/dist/chunks/{state-0j7gp832.js → repository-0j7gp832.js} +1 -1
- package/dist/chunks/{state-1m0e4qdv.js → repository-0qn50e8a.js} +9 -9
- package/dist/chunks/{state-bzr3b510.js → repository-12vj2b1h.js} +13 -13
- package/dist/chunks/{state-px9xmdpy.js → repository-12w3gwbs.js} +9 -9
- package/dist/chunks/{state-wewpmm4b.js → repository-163d9n7a.js} +12 -12
- package/dist/chunks/{state-trx7nt34.js → repository-17f8cxnn.js} +15 -15
- package/dist/chunks/{state-1aqsckx4.js → repository-1aqsckx4.js} +1 -1
- package/dist/chunks/{state-1ep2p91f.js → repository-1ep2p91f.js} +2 -2
- package/dist/chunks/{state-kta770dd.js → repository-1f75kze0.js} +21 -21
- package/dist/chunks/{state-7pj2069b.js → repository-1mnq2rn5.js} +5 -5
- package/dist/chunks/{state-sf8nbxbe.js → repository-1vnt2h24.js} +19 -19
- package/dist/chunks/{state-641q1vjj.js → repository-1ww1rpnf.js} +59 -59
- package/dist/chunks/{state-1x2knyw4.js → repository-1x2knyw4.js} +1 -1
- package/dist/chunks/{state-yhfwd5gc.js → repository-1xpbhcsv.js} +35 -35
- package/dist/chunks/{state-1yq9hg58.js → repository-1yq9hg58.js} +1 -1
- package/dist/chunks/{state-b0573t9j.js → repository-1zy208v1.js} +13 -13
- package/dist/chunks/{state-7jen3kst.js → repository-20cae54x.js} +9 -9
- package/dist/chunks/{state-px7qpgcn.js → repository-229tvxdn.js} +4 -4
- package/dist/chunks/{state-qax8vj9h.js → repository-2fgrey3x.js} +11 -11
- package/dist/chunks/{state-bwfkpp7v.js → repository-2gw36y1w.js} +19 -19
- package/dist/chunks/{state-0smt5b1y.js → repository-2kkw9hyz.js} +6 -6
- package/dist/chunks/{state-2p60zmnr.js → repository-2p60zmnr.js} +2 -2
- package/dist/chunks/{state-np1324p3.js → repository-2pc2x7h5.js} +33 -33
- package/dist/chunks/{state-bthfbq8f.js → repository-2t113hd6.js} +6 -6
- package/dist/chunks/{state-31avdb49.js → repository-31avdb49.js} +3 -3
- package/dist/chunks/{state-nkkeh327.js → repository-38yzze0k.js} +12 -12
- package/dist/chunks/{state-19d303gc.js → repository-3cj3n7a2.js} +11 -11
- package/dist/chunks/{state-h8n75vy4.js → repository-3d3pvmxz.js} +12 -12
- package/dist/chunks/{state-vg3bhdbp.js → repository-3gfpnfqk.js} +1 -1
- package/dist/chunks/{state-3hepkmqq.js → repository-3hepkmqq.js} +1 -1
- package/dist/chunks/{state-rsjg3dzm.js → repository-3jf1xmra.js} +26 -26
- package/dist/chunks/{state-3nnrz6f6.js → repository-3nnrz6f6.js} +1 -1
- package/dist/chunks/{state-xz097ptw.js → repository-3rnx49f9.js} +8 -5
- package/dist/chunks/{state-d2k1f648.js → repository-3xx0nvzn.js} +5 -5
- package/dist/chunks/{state-40y6dtc2.js → repository-40y6dtc2.js} +1 -1
- package/dist/chunks/{state-qvg3z4qx.js → repository-42yrh4ar.js} +30 -30
- package/dist/chunks/{state-pmy97759.js → repository-43517qt4.js} +9 -9
- package/dist/chunks/{state-n15nns0h.js → repository-43ax85f5.js} +14 -14
- package/dist/chunks/{state-4k0twk1c.js → repository-43t800eb.js} +7 -7
- package/dist/chunks/{state-44pmzq9c.js → repository-44pmzq9c.js} +2 -2
- package/dist/chunks/{state-56ddg3xh.js → repository-4bh8py8c.js} +5 -5
- package/dist/chunks/{state-4dx1dgte.js → repository-4dx1dgte.js} +1 -1
- package/dist/chunks/{state-mdvtz8t2.js → repository-4ez1xyss.js} +27 -27
- package/dist/chunks/{state-4f25tdd0.js → repository-4f25tdd0.js} +1 -1
- package/dist/chunks/{state-gahey6n0.js → repository-4fs1ttzm.js} +35 -35
- package/dist/chunks/{state-4pyp9zr9.js → repository-4pyp9zr9.js} +1 -1
- package/dist/chunks/{state-g7jaz8th.js → repository-4sd5nkp5.js} +28 -28
- package/dist/chunks/{state-4v008n1t.js → repository-4v008n1t.js} +1 -1
- package/dist/chunks/{state-kcsn6986.js → repository-4wg58wk0.js} +13 -13
- package/dist/chunks/{state-rqysqgs5.js → repository-4wzs20xx.js} +3 -3
- package/dist/chunks/{state-7rn2tgva.js → repository-4zeh2781.js} +23 -23
- package/dist/chunks/{state-jc512s3p.js → repository-53qrs49z.js} +8 -8
- package/dist/chunks/{state-3n03ejdw.js → repository-53rrm9sf.js} +10 -10
- package/dist/chunks/{state-jrxc3jgt.js → repository-57q76zcw.js} +5 -5
- package/dist/chunks/{state-996qv2g3.js → repository-5e13b2kr.js} +1 -1
- package/dist/chunks/{state-5m9w47nd.js → repository-5m9w47nd.js} +1 -1
- package/dist/chunks/{state-byd6yge4.js → repository-5rp489bd.js} +11 -11
- package/dist/chunks/{state-5ngvdyzg.js → repository-5rsxnmrp.js} +16 -16
- package/dist/chunks/{state-jjk0b4sp.js → repository-5sph470p.js} +11 -11
- package/dist/chunks/{state-8mw53c6m.js → repository-5zsangy9.js} +23 -23
- package/dist/chunks/{state-rf1cvd9q.js → repository-67xca3db.js} +7 -7
- package/dist/chunks/{state-zwgy8ndz.js → repository-687hq225.js} +53 -53
- package/dist/chunks/{state-5v42y69a.js → repository-6aekme1e.js} +5 -5
- package/dist/chunks/{state-6esdw8yj.js → repository-6esdw8yj.js} +1 -1
- package/dist/chunks/{state-fynmzd3d.js → repository-6gyvhx5a.js} +8 -8
- package/dist/chunks/{state-gv8f8cne.js → repository-6gzr7cf8.js} +24 -24
- package/dist/chunks/{state-s4sm4tqg.js → repository-6j0xgcj1.js} +5 -5
- package/dist/chunks/{state-47s8f065.js → repository-6j8sp8g6.js} +49 -49
- package/dist/chunks/{state-vnjc296t.js → repository-6q8jj3zs.js} +2 -2
- package/dist/chunks/{state-6m3cdbvc.js → repository-715ez6py.js} +26 -26
- package/dist/chunks/{state-vv26esct.js → repository-7389kptq.js} +11 -11
- package/dist/chunks/{state-3rz1gwbg.js → repository-73mp86fw.js} +10 -10
- package/dist/chunks/{state-e4sxjejc.js → repository-75t7768k.js} +18 -18
- package/dist/chunks/{state-w8qtt4th.js → repository-76cb1hcw.js} +4 -4
- package/dist/chunks/{state-b2kx2yqz.js → repository-79scnwzb.js} +10 -10
- package/dist/chunks/{state-7bmhse3q.js → repository-7bmhse3q.js} +1 -1
- package/dist/chunks/{state-kke5d6vq.js → repository-7d4wtrr4.js} +13 -13
- package/dist/chunks/{state-h7wqn8vn.js → repository-7g7rhba8.js} +4 -4
- package/dist/chunks/{state-7kr66rt3.js → repository-7kr66rt3.js} +1 -1
- package/dist/chunks/{state-q75c6g3b.js → repository-7mefzhmg.js} +9 -9
- package/dist/chunks/{state-a5fx33f2.js → repository-7nqkf5r1.js} +6 -6
- package/dist/chunks/{state-g6277kmk.js → repository-7qt7d24k.js} +1 -1
- package/dist/chunks/{state-0dct8czz.js → repository-7vk054hd.js} +12 -12
- package/dist/chunks/{state-7w2ypzdf.js → repository-7w2ypzdf.js} +1 -1
- package/dist/chunks/{state-ffy3twbs.js → repository-7xt82jmj.js} +18 -18
- package/dist/chunks/{state-ws94v0ha.js → repository-80j5eryf.js} +19 -19
- package/dist/chunks/{state-80mg3ag8.js → repository-80mg3ag8.js} +3 -3
- package/dist/chunks/{state-hb8y0qq0.js → repository-86ng5cw0.js} +4 -4
- package/dist/chunks/{state-89287pr7.js → repository-89287pr7.js} +1 -1
- package/dist/chunks/{state-8b3vzgkx.js → repository-8b3vzgkx.js} +1 -1
- package/dist/chunks/{state-4d2dtj2f.js → repository-8cg7mtm3.js} +4 -4
- package/dist/chunks/{state-v80n1jgs.js → repository-8jw5dp9j.js} +6 -6
- package/dist/chunks/{state-2kykchgf.js → repository-8p90nvs2.js} +15 -15
- package/dist/chunks/{state-wfs84ra6.js → repository-8t99kr38.js} +4 -4
- package/dist/chunks/{state-r58d8wgj.js → repository-8vm714rn.js} +34 -32
- package/dist/chunks/{state-8wtp7s3z.js → repository-8wtp7s3z.js} +1 -1
- package/dist/chunks/{state-90zstvax.js → repository-90zstvax.js} +1 -1
- package/dist/chunks/{state-zyfhsknv.js → repository-963hk181.js} +9 -9
- package/dist/chunks/{state-h3gs7wxb.js → repository-9e28vbjj.js} +36 -36
- package/dist/chunks/{state-t614117q.js → repository-9ed90ky0.js} +32 -32
- package/dist/chunks/{state-h4k0743s.js → repository-9myj1rt3.js} +2 -2
- package/dist/chunks/{state-hbjv2bz0.js → repository-a0d132hd.js} +12 -12
- package/dist/chunks/{state-w9bn5hmw.js → repository-a1qwck5h.js} +8 -8
- package/dist/chunks/{state-9wer7rt0.js → repository-a3a17e1e.js} +35 -35
- package/dist/chunks/{state-rte4cdn2.js → repository-a3tva24r.js} +21 -21
- package/dist/chunks/{state-hw7nk7v4.js → repository-a59kc8m4.js} +11 -11
- package/dist/chunks/{state-fe1ga2fx.js → repository-a5hf8tf4.js} +13 -13
- package/dist/chunks/{state-7c1acd8m.js → repository-ac1j90m4.js} +18 -18
- package/dist/chunks/{state-e2sg7jdv.js → repository-ad10dq2h.js} +26 -26
- package/dist/chunks/{state-an6hzmd3.js → repository-ak9xvm0n.js} +11 -11
- package/dist/chunks/{state-rs34vge8.js → repository-akc4t9gv.js} +30 -30
- package/dist/chunks/{state-mcz497rw.js → repository-an7p6n0m.js} +14 -14
- package/dist/chunks/{state-dcxawmaj.js → repository-ankbfx9c.js} +17 -17
- package/dist/chunks/{state-hdhewkmr.js → repository-axtwz132.js} +4 -4
- package/dist/chunks/{state-ayjs7tqn.js → repository-ayjs7tqn.js} +2 -2
- package/dist/chunks/{state-hvbybzt7.js → repository-b2ht1kmm.js} +14 -14
- package/dist/chunks/{state-hkkf7yjp.js → repository-b4z90bz3.js} +32 -32
- package/dist/chunks/{state-5nnwax6m.js → repository-b6vsg801.js} +5 -5
- package/dist/chunks/{state-7b0yxgp4.js → repository-b73pa457.js} +11 -11
- package/dist/chunks/{state-vmxsyvj6.js → repository-bhfd478d.js} +4 -4
- package/dist/chunks/{state-0a20qbkp.js → repository-bkycdrpd.js} +24 -24
- package/dist/chunks/{state-bnzx9dwt.js → repository-bnzx9dwt.js} +2 -2
- package/dist/chunks/{state-8g90eqn0.js → repository-bt7vp3wg.js} +7 -7
- package/dist/chunks/{state-qzm6zhs2.js → repository-bv5k4tct.js} +31 -31
- package/dist/chunks/{state-n4r92pqm.js → repository-bz9e4xwq.js} +30 -30
- package/dist/chunks/{state-0t098hqn.js → repository-ce5fknq2.js} +5 -5
- package/dist/chunks/{state-yetjgbjc.js → repository-cfq471k7.js} +37 -37
- package/dist/chunks/repository-cn9xv7mh.js +26 -0
- package/dist/chunks/{state-y6rtrkcm.js → repository-cqx1a29r.js} +18 -18
- package/dist/chunks/{state-mzfc5fp5.js → repository-csmjcn1q.js} +16 -16
- package/dist/chunks/{state-cwrgdav8.js → repository-cwrgdav8.js} +2 -2
- package/dist/chunks/{state-e2wtfr6s.js → repository-cxpktaf3.js} +2 -2
- package/dist/chunks/{state-t9pdq77j.js → repository-d1bq990r.js} +6 -6
- package/dist/chunks/{state-d4v9tmah.js → repository-d4v9tmah.js} +2 -2
- package/dist/chunks/{state-e3k523fc.js → repository-d5v2xrz0.js} +8 -8
- package/dist/chunks/{state-vjm7mjrg.js → repository-d6hk4npf.js} +84 -84
- package/dist/chunks/{state-qsn63thd.js → repository-dg3tysff.js} +6 -6
- package/dist/chunks/{state-7sysqgzb.js → repository-dmakv3jz.js} +4 -4
- package/dist/chunks/{state-sfn12v13.js → repository-dpraxfyb.js} +2 -2
- package/dist/chunks/{state-qf93q27e.js → repository-dqddngz4.js} +10 -10
- package/dist/chunks/{state-dt77769w.js → repository-dt77769w.js} +1 -1
- package/dist/chunks/{state-9sy1j1hj.js → repository-dv96216k.js} +4 -4
- package/dist/chunks/{state-3h8z8wz5.js → repository-dwrmbyqf.js} +4 -4
- package/dist/chunks/{state-36k98q34.js → repository-e7pmcp40.js} +11 -11
- package/dist/chunks/{state-e834z07m.js → repository-e834z07m.js} +1 -1
- package/dist/chunks/{state-6srxf2b1.js → repository-ecrcxjkp.js} +5 -5
- package/dist/chunks/{state-y4narh25.js → repository-egsrr66v.js} +8 -8
- package/dist/chunks/{state-85f9c9n5.js → repository-epxyk7zg.js} +13 -13
- package/dist/chunks/{state-xnyrm20a.js → repository-eqktjn3r.js} +7 -7
- package/dist/chunks/{state-eqw4pqj1.js → repository-eqw4pqj1.js} +2 -2
- package/dist/chunks/{state-m4yf5w44.js → repository-est5w5t7.js} +4 -4
- package/dist/chunks/repository-ev660z6k.js +18 -0
- package/dist/chunks/{state-bkd2snnm.js → repository-evxxbf4w.js} +22 -22
- package/dist/chunks/{state-jfmt1g8q.js → repository-ex7m7qe1.js} +8 -8
- package/dist/chunks/{state-sv909n4y.js → repository-f341sazs.js} +3 -3
- package/dist/chunks/{state-m3np4vj9.js → repository-fb1sejwy.js} +21 -21
- package/dist/chunks/{state-t0nz5sn8.js → repository-fbaygqc2.js} +18 -18
- package/dist/chunks/{state-fjrrbk94.js → repository-fbjqxkhq.js} +5 -5
- package/dist/chunks/{state-pwwe1nns.js → repository-fcwk9vhw.js} +17 -17
- package/dist/chunks/{state-fffv3p7h.js → repository-fffv3p7h.js} +1 -1
- package/dist/chunks/{state-fde7s928.js → repository-fhahebde.js} +4 -4
- package/dist/chunks/{state-jg9csdcz.js → repository-fsevz08s.js} +28 -28
- package/dist/chunks/{state-21tb34h2.js → repository-g1jn7dpj.js} +6 -6
- package/dist/chunks/{state-htep8p36.js → repository-g4f6ps2a.js} +9 -9
- package/dist/chunks/{state-90ct6wq4.js → repository-g5ajqn12.js} +4 -4
- package/dist/chunks/{state-gbjdnr5j.js → repository-gbjdnr5j.js} +2 -2
- package/dist/chunks/{state-frzebw3v.js → repository-gbkyg869.js} +36 -36
- package/dist/chunks/{state-aqxk7krm.js → repository-gfy59a16.js} +32 -32
- package/dist/chunks/{state-gmemj5zs.js → repository-gmemj5zs.js} +1 -1
- package/dist/chunks/{state-p3w2d4be.js → repository-gmqag8rw.js} +3 -3
- package/dist/chunks/{state-4wt7fhby.js → repository-h4z7h7ag.js} +8 -8
- package/dist/chunks/{state-zqsp8fck.js → repository-h78gmwm8.js} +7 -7
- package/dist/chunks/{state-zc7avgqx.js → repository-hfdx7xtc.js} +15 -15
- package/dist/chunks/{state-j2xdm5pc.js → repository-hg8tt10n.js} +48 -48
- package/dist/chunks/{state-hh7kjqtw.js → repository-hh7kjqtw.js} +1 -1
- package/dist/chunks/{state-hpg1pkwy.js → repository-hpg1pkwy.js} +1 -1
- package/dist/chunks/{state-hbnjngs9.js → repository-hppgwy0r.js} +162 -162
- package/dist/chunks/{state-agz3tzmp.js → repository-hva0766z.js} +46 -46
- package/dist/chunks/{state-hy8c1z76.js → repository-hw621kav.js} +8 -8
- package/dist/chunks/{state-pb811aet.js → repository-j6k5nchf.js} +3 -3
- package/dist/chunks/{state-7k20sj52.js → repository-j7vcdfrp.js} +7 -7
- package/dist/chunks/{state-452tx3w1.js → repository-jhq8j8y9.js} +11 -11
- package/dist/chunks/{state-an1qcwxm.js → repository-jjv3ebv6.js} +7 -7
- package/dist/chunks/{state-9hxvq81s.js → repository-jqgqc1vf.js} +18 -18
- package/dist/chunks/{state-jtnps1zs.js → repository-jtnps1zs.js} +2 -2
- package/dist/chunks/{state-c37n0erx.js → repository-k207nqnc.js} +13 -13
- package/dist/chunks/{state-wfdx5ztx.js → repository-k3cx6fhe.js} +4 -4
- package/dist/chunks/{state-1v3j17r1.js → repository-kd06wgjj.js} +17 -17
- package/dist/chunks/{state-qjrsxg5x.js → repository-kdtfz1k3.js} +21 -21
- package/dist/chunks/{state-c2dbbhpx.js → repository-kf43d1eq.js} +16 -16
- package/dist/chunks/{state-qfz6bxfd.js → repository-kj9n5bvh.js} +4 -4
- package/dist/chunks/{state-kt3bjfbg.js → repository-kt3bjfbg.js} +1 -1
- package/dist/chunks/{state-539dw32x.js → repository-ky55b5b1.js} +4 -4
- package/dist/chunks/{state-kzczzf4v.js → repository-kzczzf4v.js} +1 -1
- package/dist/chunks/{state-m1714858.js → repository-m1714858.js} +1 -1
- package/dist/chunks/{state-xay38q9g.js → repository-m2c0tfws.js} +28 -28
- package/dist/chunks/{state-a4h8tact.js → repository-m6cfdtf3.js} +4 -4
- package/dist/chunks/{state-faqpyehj.js → repository-m6erdz7g.js} +25 -25
- package/dist/chunks/{state-m9w0rfyh.js → repository-m9w0rfyh.js} +1 -1
- package/dist/chunks/{state-mb7mbhnz.js → repository-mb7mbhnz.js} +3 -3
- package/dist/chunks/{state-tjw6pmwz.js → repository-mjvy5yzf.js} +45 -45
- package/dist/chunks/{state-ehmn5k6t.js → repository-mpd288r4.js} +23 -23
- package/dist/chunks/{state-hktgtfdh.js → repository-mq45sd29.js} +28 -28
- package/dist/chunks/{state-1v2g13eq.js → repository-msd2a3qm.js} +4 -4
- package/dist/chunks/{state-kp4j94c3.js → repository-mtbbaj7x.js} +6 -6
- package/dist/chunks/{state-gfqgkchk.js → repository-mvg5jam3.js} +28 -28
- package/dist/chunks/{state-e255q57e.js → repository-mx6f7k3w.js} +31 -31
- package/dist/chunks/{state-9z88th0c.js → repository-n0026tak.js} +6 -6
- package/dist/chunks/{state-dd8xfryb.js → repository-n1yy3t2x.js} +69 -69
- package/dist/chunks/{state-h8xga5q6.js → repository-n5c9sy2r.js} +18 -18
- package/dist/chunks/{state-gcjdgkn2.js → repository-n7bnkb3p.js} +9 -9
- package/dist/chunks/{state-nah043kf.js → repository-nah043kf.js} +1 -1
- package/dist/chunks/{state-g3hn69cm.js → repository-nbh8p6ww.js} +28 -28
- package/dist/chunks/{state-qyf7yaea.js → repository-nbvp3f9m.js} +24 -24
- package/dist/chunks/{state-728a2w8f.js → repository-nf6qbft0.js} +32 -32
- package/dist/chunks/{state-9tjhwdqk.js → repository-nvh9azrc.js} +9 -9
- package/dist/chunks/{state-p015t6z3.js → repository-p015t6z3.js} +2 -2
- package/dist/chunks/{state-gr1m0gby.js → repository-p212j8y1.js} +15 -15
- package/dist/chunks/{state-qkc3z5ds.js → repository-p76me67c.js} +4 -4
- package/dist/chunks/{state-f4w02zpr.js → repository-pa3fs051.js} +9 -9
- package/dist/chunks/{state-s0ny4jqw.js → repository-pahg8g4d.js} +9 -9
- package/dist/chunks/{state-egfzd81v.js → repository-pbdkmj6p.js} +17 -17
- package/dist/chunks/{state-a0g2880y.js → repository-pgj56wr2.js} +17 -17
- package/dist/chunks/{state-kght8exf.js → repository-pjnewz4h.js} +15 -15
- package/dist/chunks/{state-pknna89w.js → repository-pknna89w.js} +1 -1
- package/dist/chunks/{state-fg9p65nk.js → repository-prq7xxp2.js} +6 -6
- package/dist/chunks/{state-9w88qcrs.js → repository-q315ntxc.js} +3 -3
- package/dist/chunks/{state-67kb74bv.js → repository-q52p8ber.js} +10 -10
- package/dist/chunks/{state-056p44da.js → repository-q58ddcyg.js} +18 -18
- package/dist/chunks/{state-p2zgsc1h.js → repository-qaxfcnsv.js} +11 -11
- package/dist/chunks/{state-sng0s06c.js → repository-qb2784ew.js} +13 -13
- package/dist/chunks/{state-kzdam8c6.js → repository-qk5sk9d1.js} +7 -7
- package/dist/chunks/{state-r3851nav.js → repository-qm58qbvp.js} +9 -9
- package/dist/chunks/{state-qp7r0hxv.js → repository-qp7r0hxv.js} +1 -1
- package/dist/chunks/{state-3ryz99p0.js → repository-qqg9c0kv.js} +4 -4
- package/dist/chunks/{state-qqvy8y24.js → repository-qqvy8y24.js} +1 -1
- package/dist/chunks/{state-rmv7fhs4.js → repository-qw2t3dzn.js} +6 -6
- package/dist/chunks/{state-r2sbm81b.js → repository-qwrwand2.js} +36 -36
- package/dist/chunks/{state-5d9nbz4j.js → repository-r7tfzb8e.js} +8 -8
- package/dist/chunks/{state-rb9dy4dg.js → repository-rb9dy4dg.js} +1 -1
- package/dist/chunks/{state-w8m2qkq0.js → repository-re3hbd1p.js} +8 -8
- package/dist/chunks/{state-t2jtqtvw.js → repository-rh83epcf.js} +38 -38
- package/dist/chunks/{state-apsxpycy.js → repository-rk9mn8f7.js} +21 -21
- package/dist/chunks/{state-rt5dr6hb.js → repository-rt5dr6hb.js} +1 -1
- package/dist/chunks/{state-a4bbeqg1.js → repository-rw8wdfk3.js} +10 -10
- package/dist/chunks/repository-s251z23y.js +261 -0
- package/dist/chunks/{state-mzm8bzzq.js → repository-s6h2s3rz.js} +4 -4
- package/dist/chunks/{state-w3yh1k6j.js → repository-s8tccdec.js} +4 -4
- package/dist/chunks/{state-sa3fpqfw.js → repository-sa3fpqfw.js} +2 -2
- package/dist/chunks/{state-j9dm8chg.js → repository-sa4ztjn1.js} +5 -5
- package/dist/chunks/{state-sbya78hr.js → repository-sbya78hr.js} +1 -1
- package/dist/chunks/{state-61qraad9.js → repository-scmk72rv.js} +5 -5
- package/dist/chunks/{state-eavcrtrz.js → repository-sdn2zcx3.js} +2 -2
- package/dist/chunks/{state-cy49dps4.js → repository-smhhrjeq.js} +24 -24
- package/dist/chunks/{state-svcy3p9a.js → repository-svcy3p9a.js} +1 -1
- package/dist/chunks/{state-szwm4crx.js → repository-szwm4crx.js} +4 -4
- package/dist/chunks/{state-bcyyfzcr.js → repository-t2ce5xch.js} +12 -12
- package/dist/chunks/{state-xzr21tmy.js → repository-t7q1s4jf.js} +40 -40
- package/dist/chunks/{state-mq52ddsp.js → repository-t9kr4kfh.js} +11 -11
- package/dist/chunks/{state-bnhkbqse.js → repository-tay525vg.js} +12 -12
- package/dist/chunks/{state-4mk899yb.js → repository-tcb8d6wv.js} +15 -15
- package/dist/chunks/{state-tczq8hjw.js → repository-tczq8hjw.js} +1 -1
- package/dist/chunks/{state-gxs71cxp.js → repository-tg7s7b5t.js} +4 -4
- package/dist/chunks/{state-j626ddfa.js → repository-tpx7g6md.js} +32 -32
- package/dist/chunks/{state-tr8x705m.js → repository-tr8x705m.js} +1 -1
- package/dist/chunks/{state-twssxy5n.js → repository-twssxy5n.js} +2 -2
- package/dist/chunks/{state-v0t96s7a.js → repository-v0t96s7a.js} +1 -1
- package/dist/chunks/{state-0csbgeh2.js → repository-v2gedntn.js} +9 -9
- package/dist/chunks/{state-v2r1d0zg.js → repository-v2r1d0zg.js} +1 -1
- package/dist/chunks/{state-nrtv0tdb.js → repository-v5da91pb.js} +10 -10
- package/dist/chunks/{state-f27d80qk.js → repository-v8bad55c.js} +17 -17
- package/dist/chunks/{state-r6a1wz6v.js → repository-vaaw7kac.js} +50 -50
- package/dist/chunks/{state-qvne8qvj.js → repository-vcrsdn8r.js} +14 -14
- package/dist/chunks/{state-8pjtyw4w.js → repository-vd9yn8w3.js} +21 -21
- package/dist/chunks/{state-y6n1sdeh.js → repository-vekvn0ce.js} +75 -75
- package/dist/chunks/{state-vjf35v1f.js → repository-vjf35v1f.js} +1 -1
- package/dist/chunks/{state-xxav5nwt.js → repository-vpdytt8w.js} +3 -3
- package/dist/chunks/{state-kac21e5p.js → repository-vsx6z3ef.js} +18 -18
- package/dist/chunks/{state-9rne3ehg.js → repository-vw0zhxcn.js} +15 -15
- package/dist/chunks/{state-76aqqymw.js → repository-vx6zbweh.js} +24 -24
- package/dist/chunks/{state-40za9wsf.js → repository-w2eysc6j.js} +9 -9
- package/dist/chunks/{state-w3wsvvr9.js → repository-w3wsvvr9.js} +1 -1
- package/dist/chunks/{state-nge6p6vt.js → repository-w52d91kq.js} +12 -12
- package/dist/chunks/{state-fznmdakp.js → repository-w687dnns.js} +4 -4
- package/dist/chunks/{state-ndnbjp53.js → repository-w7qzbdzf.js} +17 -17
- package/dist/chunks/{state-wakvkjy4.js → repository-wakvkjy4.js} +1 -1
- package/dist/chunks/{state-wd87259q.js → repository-wd87259q.js} +1 -1
- package/dist/chunks/{state-wegkxhrn.js → repository-wegkxhrn.js} +2 -2
- package/dist/chunks/repository-werwhw8f.js +549 -0
- package/dist/chunks/{state-5xemk3sw.js → repository-wexf2k6a.js} +14 -14
- package/dist/chunks/{state-pxhs3dky.js → repository-wh1wjwqr.js} +9 -9
- package/dist/chunks/{state-5pg8y8w0.js → repository-wn6m9687.js} +15 -15
- package/dist/chunks/{state-wnhgecwx.js → repository-wnhgecwx.js} +1 -1
- package/dist/chunks/{state-q1y1sb9f.js → repository-wsfx1sg6.js} +13 -13
- package/dist/chunks/{state-wvr8xscb.js → repository-wvr8xscb.js} +1 -1
- package/dist/chunks/{state-hdreqhvr.js → repository-ww2p0375.js} +3 -3
- package/dist/chunks/{state-05mm50vf.js → repository-wy9m61br.js} +9 -9
- package/dist/chunks/{state-n7m4s8k6.js → repository-x4edsjm2.js} +19 -19
- package/dist/chunks/{state-teav1bzy.js → repository-x7de2wha.js} +9 -9
- package/dist/chunks/{state-1afv7ask.js → repository-xa91xadg.js} +11 -11
- package/dist/chunks/{state-bstexjd6.js → repository-xd9cc171.js} +5 -5
- package/dist/chunks/{state-7g5zg8tv.js → repository-xdjqbh1q.js} +13 -13
- package/dist/chunks/{state-5m4ecct2.js → repository-xj1s8g0g.js} +27 -27
- package/dist/chunks/{state-3v0spw5n.js → repository-xp4s1g3x.js} +18 -18
- package/dist/chunks/{state-be10j6na.js → repository-xrhq19gq.js} +4 -4
- package/dist/chunks/{state-58rf0bjp.js → repository-xv0kd9hc.js} +16 -16
- package/dist/chunks/{state-kmrkjxcg.js → repository-y52vf7zr.js} +21 -21
- package/dist/chunks/{state-yara3q77.js → repository-yara3q77.js} +2 -2
- package/dist/chunks/{state-yb20nhc3.js → repository-yb20nhc3.js} +1 -1
- package/dist/chunks/{state-42qdq8te.js → repository-ygkrqd61.js} +16 -16
- package/dist/chunks/{state-sbz71ybr.js → repository-yjjyz0e3.js} +3 -3
- package/dist/chunks/{state-yr705xyq.js → repository-yr705xyq.js} +1 -1
- package/dist/chunks/{state-67wwskyb.js → repository-yts2a8qm.js} +4 -4
- package/dist/chunks/{state-x1vk2575.js → repository-yv39fqry.js} +9 -9
- package/dist/chunks/{state-yn2kpmvn.js → repository-zad8kfsb.js} +19 -19
- package/dist/chunks/{state-zfyb5tr4.js → repository-zdat2xwq.js} +4 -4
- package/dist/chunks/{state-ze75qvmd.js → repository-ze75qvmd.js} +3 -3
- package/dist/chunks/{state-zzsw4thw.js → repository-zftnqq30.js} +19 -19
- package/dist/chunks/{state-tjc4negf.js → repository-zfv1ake6.js} +21 -21
- package/dist/chunks/{state-e8c43dd8.js → repository-zfvn3r5d.js} +35 -35
- package/dist/chunks/{state-n1gmb7dt.js → repository-zqbtnvm2.js} +29 -29
- package/dist/chunks/{state-cfzf4vym.js → repository-zrmnbdg0.js} +28 -28
- package/dist/chunks/{state-dqhj5fe3.js → repository-zswszhjj.js} +13 -13
- package/dist/chunks/{state-5vvgeqy8.js → repository-zw2cn8hf.js} +8 -8
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/execution.js +3 -3
- package/dist/codemode/fetch.js +145 -145
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +151 -151
- package/dist/command.js +94 -94
- package/dist/config/discovery.js +97 -97
- 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 +112 -112
- package/dist/config/plugin/agent.js +132 -132
- package/dist/config/plugin/command.js +231 -231
- package/dist/config/plugin/compaction.js +171 -171
- package/dist/config/plugin/compatibility.js +150 -150
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +131 -131
- package/dist/config/plugin/image.js +130 -130
- package/dist/config/plugin/instruction.js +130 -130
- package/dist/config/plugin/location-watcher.js +130 -130
- package/dist/config/plugin/mcp.js +141 -141
- package/dist/config/plugin/policy.js +130 -130
- package/dist/config/plugin/provider.js +130 -130
- package/dist/config/plugin/reference.js +132 -132
- package/dist/config/plugin/shell.js +130 -130
- package/dist/config/plugin/skill-file.js +146 -146
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +153 -153
- package/dist/config/plugin/snapshot.js +130 -130
- package/dist/config/plugin/source.js +133 -133
- package/dist/config/plugin/tool-output.js +131 -131
- package/dist/config/plugin/websearch.js +129 -129
- package/dist/config/plugin/worktree.js +132 -132
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +133 -133
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +94 -94
- 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 +62 -62
- 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 +105 -105
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +428 -428
- 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 +106 -106
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +106 -106
- 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 +156 -156
- package/dist/file-mutation.js +107 -107
- 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/file-watch.js +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +243 -243
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +112 -112
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +117 -117
- package/dist/form.js +93 -93
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +100 -100
- package/dist/generate.js +116 -116
- package/dist/git.js +11 -11
- 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 +112 -112
- 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/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 +419 -419
- package/dist/instruction-discovery.js +91 -91
- package/dist/instructions/builtins.js +100 -100
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +100 -100
- 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 +172 -172
- package/dist/location-lifecycle.js +150 -150
- package/dist/location-service-map.js +99 -99
- package/dist/location-services.js +416 -416
- package/dist/location.js +102 -102
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +104 -104
- package/dist/mcp/index.js +120 -120
- package/dist/mcp/instructions.js +181 -181
- package/dist/mcp/oauth.js +89 -89
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +103 -103
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +112 -112
- package/dist/model-resolver.js +112 -112
- package/dist/model-retry.js +1 -1
- package/dist/model.js +107 -107
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +121 -121
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +89 -89
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +151 -151
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +91 -91
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +86 -86
- package/dist/plugin/agent.js +87 -87
- package/dist/plugin/command.js +115 -115
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +236 -236
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +395 -395
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +110 -110
- package/dist/plugin/module.js +129 -129
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +146 -146
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +104 -104
- package/dist/plugin/provider/azure.js +130 -130
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +130 -130
- package/dist/plugin/provider/claude-agent/aisdk.js +117 -117
- 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 +1 -1
- package/dist/plugin/provider/claude-agent/claude/session.js +4 -4
- 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 +145 -145
- package/dist/plugin/provider/claude-agent/instructions.js +112 -112
- package/dist/plugin/provider/claude-agent/integration.js +113 -113
- 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 +1 -1
- package/dist/plugin/provider/claude-agent/provider.js +110 -110
- package/dist/plugin/provider/claude-agent/session.js +112 -112
- 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 +3 -3
- 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 +128 -128
- package/dist/plugin/provider/cloudflare-workers-ai.js +128 -128
- package/dist/plugin/provider/configured.js +126 -126
- package/dist/plugin/provider/credential-settings.js +85 -85
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +106 -106
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +108 -108
- package/dist/plugin/provider/gitlab.js +107 -107
- package/dist/plugin/provider/google-vertex.js +127 -127
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +89 -89
- package/dist/plugin/provider/lmstudio.js +139 -139
- package/dist/plugin/provider/local.js +136 -136
- package/dist/plugin/provider/modal.js +105 -105
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +139 -139
- package/dist/plugin/provider/openai-context-caps.js +103 -103
- package/dist/plugin/provider/openai.js +132 -132
- package/dist/plugin/provider/opencode.js +132 -132
- package/dist/plugin/provider/openrouter.js +104 -104
- package/dist/plugin/provider/poe.js +90 -90
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +104 -104
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +129 -129
- package/dist/plugin/provider/vllm.js +137 -137
- package/dist/plugin/provider/xai.js +104 -104
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +210 -210
- package/dist/plugin/sdk.js +87 -87
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +149 -149
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +405 -405
- 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 +106 -106
- package/dist/plugin/warming.js +128 -128
- package/dist/plugin/websearch/exa.js +5 -5
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +243 -243
- 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 +104 -104
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +103 -103
- package/dist/reference/instructions.js +101 -101
- package/dist/reference.js +103 -103
- package/dist/repository-cache.js +93 -93
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +108 -108
- package/dist/rpc.js +99 -99
- package/dist/schedule/check.js +241 -241
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +247 -247
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +129 -129
- package/dist/session/command.js +85 -85
- package/dist/session/compaction.js +167 -167
- package/dist/session/context.js +196 -196
- package/dist/session/diff.js +101 -101
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +239 -239
- package/dist/session/execution.js +161 -161
- package/dist/session/generate.js +198 -198
- package/dist/session/history.js +136 -136
- package/dist/session/inbox.js +145 -145
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +88 -88
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +141 -141
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +168 -168
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +165 -165
- package/dist/session/projector.js +143 -143
- package/dist/session/prompt.js +148 -148
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +139 -139
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +250 -250
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +113 -113
- package/dist/session/runner/publish-llm-event.js +149 -149
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +163 -163
- package/dist/session/runner/to-llm-message.js +137 -137
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +181 -181
- package/dist/session/shell.js +144 -144
- package/dist/session/skill.js +147 -147
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +84 -84
- package/dist/session/store.js +142 -142
- package/dist/session/stored.js +4 -4
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +229 -229
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +202 -202
- package/dist/session/to-session-error.js +148 -148
- package/dist/session/transfer.js +235 -235
- package/dist/session/usage.js +1 -1
- package/dist/session.js +229 -229
- 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 +146 -146
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +147 -147
- package/dist/skill.js +156 -156
- package/dist/snapshot.js +102 -102
- 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 +178 -178
- package/dist/tool/plugin/artifact.js +228 -228
- package/dist/tool/plugin/edit.js +164 -164
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +168 -168
- package/dist/tool/plugin/grep.js +168 -168
- package/dist/tool/plugin/image-generate.js +239 -239
- package/dist/tool/plugin/mcp-resource.js +162 -162
- package/dist/tool/plugin/opencode.js +161 -161
- package/dist/tool/plugin/patch.js +162 -162
- package/dist/tool/plugin/question.js +144 -144
- package/dist/tool/plugin/read.js +167 -167
- package/dist/tool/plugin/schedule.js +247 -247
- package/dist/tool/plugin/shell.js +233 -233
- package/dist/tool/plugin/skill.js +157 -157
- package/dist/tool/plugin/subagent.js +234 -234
- package/dist/tool/plugin/todo.js +153 -153
- package/dist/tool/plugin/webfetch.js +153 -153
- package/dist/tool/plugin/websearch.js +153 -153
- package/dist/tool/plugin/write.js +166 -166
- package/dist/tool/read-filesystem.js +113 -113
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +159 -159
- package/dist/types/session/compaction.d.ts +2 -2
- package/dist/usage-limits.js +98 -98
- 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 +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +105 -105
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +104 -104
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +100 -100
- package/dist/voice.js +97 -97
- package/dist/websearch.js +99 -99
- package/dist/wellknown/plugin.js +87 -87
- package/dist/wellknown.js +88 -88
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +91 -91
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +9 -9
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +102 -102
- package/dist/worktree.js +105 -105
- package/package.json +8 -8
- package/dist/chunks/state-exkwt65j.js +0 -549
- package/dist/chunks/state-qmh7vbk2.js +0 -18
- package/dist/chunks/state-t27kz4yw.js +0 -261
- package/dist/chunks/state-wck9qmcv.js +0 -26
- /package/dist/chunks/{state-0qkdqm5v.js → repository-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{state-0zkw76rk.js → repository-0zkw76rk.js} +0 -0
- /package/dist/chunks/{state-17cy0kzp.js → repository-17cy0kzp.js} +0 -0
- /package/dist/chunks/{state-1cnp2v09.js → repository-1cnp2v09.js} +0 -0
- /package/dist/chunks/{state-1kah00gy.js → repository-1kah00gy.js} +0 -0
- /package/dist/chunks/{state-1pevy3nx.js → repository-1pevy3nx.js} +0 -0
- /package/dist/chunks/{state-24dcb14g.js → repository-24dcb14g.js} +0 -0
- /package/dist/chunks/{state-2710q6r3.js → repository-2710q6r3.js} +0 -0
- /package/dist/chunks/{state-2bv980vf.js → repository-2bv980vf.js} +0 -0
- /package/dist/chunks/{state-2c3vjs8z.js → repository-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{state-359p4xyc.js → repository-359p4xyc.js} +0 -0
- /package/dist/chunks/{state-3asan66x.js → repository-3asan66x.js} +0 -0
- /package/dist/chunks/{state-3v8g72cx.js → repository-3v8g72cx.js} +0 -0
- /package/dist/chunks/{state-3wcehsnq.js → repository-3wcehsnq.js} +0 -0
- /package/dist/chunks/{state-43n2bw4t.js → repository-43n2bw4t.js} +0 -0
- /package/dist/chunks/{state-4knz6hnm.js → repository-4knz6hnm.js} +0 -0
- /package/dist/chunks/{state-4qk9sjk2.js → repository-4qk9sjk2.js} +0 -0
- /package/dist/chunks/{state-4vcrnpx2.js → repository-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{state-4y7fprxs.js → repository-4y7fprxs.js} +0 -0
- /package/dist/chunks/{state-53557ph1.js → repository-53557ph1.js} +0 -0
- /package/dist/chunks/{state-550bvhaj.js → repository-550bvhaj.js} +0 -0
- /package/dist/chunks/{state-5w3e23ze.js → repository-5w3e23ze.js} +0 -0
- /package/dist/chunks/{state-6agm2x70.js → repository-6agm2x70.js} +0 -0
- /package/dist/chunks/{state-6prwharc.js → repository-6prwharc.js} +0 -0
- /package/dist/chunks/{state-6q2bdcd1.js → repository-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{state-7akdwqpd.js → repository-7akdwqpd.js} +0 -0
- /package/dist/chunks/{state-7m9af43g.js → repository-7m9af43g.js} +0 -0
- /package/dist/chunks/{state-7stb81gk.js → repository-7stb81gk.js} +0 -0
- /package/dist/chunks/{state-822emrt2.js → repository-822emrt2.js} +0 -0
- /package/dist/chunks/{state-84wd9syh.js → repository-84wd9syh.js} +0 -0
- /package/dist/chunks/{state-88xbtdfr.js → repository-88xbtdfr.js} +0 -0
- /package/dist/chunks/{state-8n3pysct.js → repository-8n3pysct.js} +0 -0
- /package/dist/chunks/{state-8wj87zfr.js → repository-8wj87zfr.js} +0 -0
- /package/dist/chunks/{state-9a4afbnw.js → repository-9a4afbnw.js} +0 -0
- /package/dist/chunks/{state-9rqn6x4v.js → repository-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{state-a6k6eb26.js → repository-a6k6eb26.js} +0 -0
- /package/dist/chunks/{state-af5trqkr.js → repository-af5trqkr.js} +0 -0
- /package/dist/chunks/{state-afrmfg78.js → repository-afrmfg78.js} +0 -0
- /package/dist/chunks/{state-aqzs7mqg.js → repository-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{state-atq7p7m5.js → repository-atq7p7m5.js} +0 -0
- /package/dist/chunks/{state-beh6qq61.js → repository-beh6qq61.js} +0 -0
- /package/dist/chunks/{state-bkyjaxrp.js → repository-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{state-bmr6ed5q.js → repository-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{state-cf4snx6d.js → repository-cf4snx6d.js} +0 -0
- /package/dist/chunks/{state-cqv5kn06.js → repository-cqv5kn06.js} +0 -0
- /package/dist/chunks/{state-cvy3z8tj.js → repository-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{state-d9fn303g.js → repository-d9fn303g.js} +0 -0
- /package/dist/chunks/{state-d9jj8t3e.js → repository-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{state-dap0rakb.js → repository-dap0rakb.js} +0 -0
- /package/dist/chunks/{state-df08tz66.js → repository-df08tz66.js} +0 -0
- /package/dist/chunks/{state-dy18nga0.js → repository-dy18nga0.js} +0 -0
- /package/dist/chunks/{state-e5kj55wp.js → repository-e5kj55wp.js} +0 -0
- /package/dist/chunks/{state-e73j6tqm.js → repository-e73j6tqm.js} +0 -0
- /package/dist/chunks/{state-ean2d8b5.js → repository-ean2d8b5.js} +0 -0
- /package/dist/chunks/{state-ec1grn59.js → repository-ec1grn59.js} +0 -0
- /package/dist/chunks/{state-eh3zwz77.js → repository-eh3zwz77.js} +0 -0
- /package/dist/chunks/{state-emrn6kk6.js → repository-emrn6kk6.js} +0 -0
- /package/dist/chunks/{state-f0mxakyp.js → repository-f0mxakyp.js} +0 -0
- /package/dist/chunks/{state-f6n9ztr4.js → repository-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{state-faypxj3z.js → repository-faypxj3z.js} +0 -0
- /package/dist/chunks/{state-fd410y7t.js → repository-fd410y7t.js} +0 -0
- /package/dist/chunks/{state-fkpq3x5p.js → repository-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{state-g4wezp1m.js → repository-g4wezp1m.js} +0 -0
- /package/dist/chunks/{state-g86h250q.js → repository-g86h250q.js} +0 -0
- /package/dist/chunks/{state-gebd4c9n.js → repository-gebd4c9n.js} +0 -0
- /package/dist/chunks/{state-gftt206x.js → repository-gftt206x.js} +0 -0
- /package/dist/chunks/{state-hcxmzztb.js → repository-hcxmzztb.js} +0 -0
- /package/dist/chunks/{state-hk9envan.js → repository-hk9envan.js} +0 -0
- /package/dist/chunks/{state-j2ntwpah.js → repository-j2ntwpah.js} +0 -0
- /package/dist/chunks/{state-j5zkgpj8.js → repository-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{state-jjkms2e6.js → repository-jjkms2e6.js} +0 -0
- /package/dist/chunks/{state-jr7sbwjy.js → repository-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{state-jwfs4k6c.js → repository-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{state-jwr30sdr.js → repository-jwr30sdr.js} +0 -0
- /package/dist/chunks/{state-jze0r7bz.js → repository-jze0r7bz.js} +0 -0
- /package/dist/chunks/{state-jzg6c2d5.js → repository-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{state-m18g726c.js → repository-m18g726c.js} +0 -0
- /package/dist/chunks/{state-mp448xyj.js → repository-mp448xyj.js} +0 -0
- /package/dist/chunks/{state-msx8hqn2.js → repository-msx8hqn2.js} +0 -0
- /package/dist/chunks/{state-n05xt0ee.js → repository-n05xt0ee.js} +0 -0
- /package/dist/chunks/{state-n3j8tn72.js → repository-n3j8tn72.js} +0 -0
- /package/dist/chunks/{state-nh4v3znn.js → repository-nh4v3znn.js} +0 -0
- /package/dist/chunks/{state-njntx4h6.js → repository-njntx4h6.js} +0 -0
- /package/dist/chunks/{state-p71gwv9c.js → repository-p71gwv9c.js} +0 -0
- /package/dist/chunks/{state-q3sfg36h.js → repository-q3sfg36h.js} +0 -0
- /package/dist/chunks/{state-q74kybfr.js → repository-q74kybfr.js} +0 -0
- /package/dist/chunks/{state-qaymkmh1.js → repository-qaymkmh1.js} +0 -0
- /package/dist/chunks/{state-qb87gjwd.js → repository-qb87gjwd.js} +0 -0
- /package/dist/chunks/{state-qfa1cgps.js → repository-qfa1cgps.js} +0 -0
- /package/dist/chunks/{state-qg3g05ea.js → repository-qg3g05ea.js} +0 -0
- /package/dist/chunks/{state-qrg20bc0.js → repository-qrg20bc0.js} +0 -0
- /package/dist/chunks/{state-rcb2kzg1.js → repository-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{state-sdp7kfr6.js → repository-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{state-ssg3fenm.js → repository-ssg3fenm.js} +0 -0
- /package/dist/chunks/{state-t03h4f5z.js → repository-t03h4f5z.js} +0 -0
- /package/dist/chunks/{state-ty7weeps.js → repository-ty7weeps.js} +0 -0
- /package/dist/chunks/{state-ve7vex1e.js → repository-ve7vex1e.js} +0 -0
- /package/dist/chunks/{state-vtarvj67.js → repository-vtarvj67.js} +0 -0
- /package/dist/chunks/{state-w803qqfp.js → repository-w803qqfp.js} +0 -0
- /package/dist/chunks/{state-wc3fc9cn.js → repository-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{state-wer8tq1h.js → repository-wer8tq1h.js} +0 -0
- /package/dist/chunks/{state-wtztk69x.js → repository-wtztk69x.js} +0 -0
- /package/dist/chunks/{state-x0ckcb58.js → repository-x0ckcb58.js} +0 -0
- /package/dist/chunks/{state-x61499pn.js → repository-x61499pn.js} +0 -0
- /package/dist/chunks/{state-y44na4kk.js → repository-y44na4kk.js} +0 -0
- /package/dist/chunks/{state-y8f7s663.js → repository-y8f7s663.js} +0 -0
- /package/dist/chunks/{state-ygaqb7jw.js → repository-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{state-z5v4ffb3.js → repository-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{state-z9919s4g.js → repository-z9919s4g.js} +0 -0
|
@@ -1,44 +1,44 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service88,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-7g7rhba8.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service37,
|
|
7
|
+
node41
|
|
8
|
+
} from "./repository-6j8sp8g6.js";
|
|
9
9
|
import {
|
|
10
10
|
isTextual2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-4pyp9zr9.js";
|
|
12
12
|
import {
|
|
13
13
|
CorrectedError2,
|
|
14
14
|
BlockedError2,
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
15
|
+
Service55,
|
|
16
|
+
node56
|
|
17
|
+
} from "./repository-cfq471k7.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service45,
|
|
20
|
+
node48
|
|
21
|
+
} from "./repository-zrmnbdg0.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
Service68,
|
|
24
|
+
node70
|
|
25
|
+
} from "./repository-qaxfcnsv.js";
|
|
26
26
|
import {
|
|
27
27
|
MEDIA_MIMES2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./repository-v8bad55c.js";
|
|
29
29
|
import {
|
|
30
30
|
__export
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./repository-9rqn6x4v.js";
|
|
32
32
|
|
|
33
33
|
// src/tool/mcp.ts
|
|
34
34
|
var exports_mcp3 = {};
|
|
35
35
|
__export(exports_mcp3, {
|
|
36
36
|
McpTool: () => exports_mcp3,
|
|
37
|
-
Service: () =>
|
|
38
|
-
layer: () =>
|
|
37
|
+
Service: () => Service35,
|
|
38
|
+
layer: () => layer14,
|
|
39
39
|
name: () => name15,
|
|
40
40
|
namespace: () => namespace2,
|
|
41
|
-
node: () =>
|
|
41
|
+
node: () => node39
|
|
42
42
|
});
|
|
43
43
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
44
44
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -49,14 +49,14 @@ var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown
|
|
|
49
49
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
50
50
|
var name15 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
51
51
|
|
|
52
|
-
class
|
|
52
|
+
class Service35 extends Context.Service()("@opencode/McpTool") {
|
|
53
53
|
}
|
|
54
|
-
var
|
|
55
|
-
const mcp = yield*
|
|
56
|
-
const tools = yield*
|
|
54
|
+
var layer14 = Layer.effect(Service35, Effect.gen(function* () {
|
|
55
|
+
const mcp = yield* Service37;
|
|
56
|
+
const tools = yield* Service45;
|
|
57
57
|
const bus = yield* Service88;
|
|
58
|
-
const permission = yield*
|
|
59
|
-
const toolOutput = yield*
|
|
58
|
+
const permission = yield* Service55;
|
|
59
|
+
const toolOutput = yield* Service68;
|
|
60
60
|
const lock = Semaphore.makeUnsafe(1);
|
|
61
61
|
let discovered = [];
|
|
62
62
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -134,7 +134,7 @@ var layer15 = Layer.effect(Service34, Effect.gen(function* () {
|
|
|
134
134
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
135
135
|
const updates = yield* PubSub.subscribe(changes);
|
|
136
136
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
137
|
-
return
|
|
137
|
+
return Service35.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
138
138
|
}));
|
|
139
139
|
var toContent = Effect.fnUntraced(function* (part, toolOutput) {
|
|
140
140
|
if (part.type === "text")
|
|
@@ -154,10 +154,10 @@ ${bytes.toString("utf8")}` };
|
|
|
154
154
|
text: `[Binary resource ${label} (${part.mimeType}, ${bytes.byteLength} bytes) saved to ${file}]`
|
|
155
155
|
};
|
|
156
156
|
});
|
|
157
|
-
var
|
|
158
|
-
service:
|
|
159
|
-
layer:
|
|
160
|
-
deps: [
|
|
157
|
+
var node39 = makeLocationNode({
|
|
158
|
+
service: Service35,
|
|
159
|
+
layer: layer14,
|
|
160
|
+
deps: [node48, node41, node91, node56, node70]
|
|
161
161
|
});
|
|
162
162
|
|
|
163
|
-
export { namespace2, name15,
|
|
163
|
+
export { namespace2, name15, Service35, layer14, node39, exports_mcp3 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-eqktjn3r.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-7qt7d24k.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -20,7 +20,7 @@ class EffectSQLiteDatabase2 extends SQLiteEffectDatabase2 {
|
|
|
20
20
|
static [entityKind] = "EffectSQLiteDatabase";
|
|
21
21
|
}
|
|
22
22
|
var DefaultServices2 = Layer.merge(EffectCache.Default, EffectLogger.Default);
|
|
23
|
-
var
|
|
23
|
+
var make33 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
24
24
|
const client = yield* SqlClient;
|
|
25
25
|
const cache = yield* EffectCache;
|
|
26
26
|
const logger = yield* EffectLogger;
|
|
@@ -37,6 +37,6 @@ var make34 = Effect.fn("SQLiteDrizzle.make")(function* (config = {}) {
|
|
|
37
37
|
db.$cache.invalidate = cache.onMutate;
|
|
38
38
|
return db;
|
|
39
39
|
});
|
|
40
|
-
var makeWithDefaults2 = (config = {}) =>
|
|
40
|
+
var makeWithDefaults2 = (config = {}) => make33(config).pipe(Effect.provide(DefaultServices2));
|
|
41
41
|
|
|
42
|
-
export { EffectSQLiteDatabase2, DefaultServices2,
|
|
42
|
+
export { EffectSQLiteDatabase2, DefaultServices2, make33, makeWithDefaults2 };
|
|
@@ -1,112 +1,112 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service89,
|
|
3
3
|
node92
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-07nbfc86.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service85,
|
|
7
|
+
node88
|
|
8
|
+
} from "./repository-pgj56wr2.js";
|
|
9
9
|
import {
|
|
10
10
|
VariantID2,
|
|
11
11
|
Ref3,
|
|
12
12
|
Service74,
|
|
13
13
|
node76
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-pjnewz4h.js";
|
|
15
15
|
import {
|
|
16
16
|
ID13,
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service65,
|
|
18
|
+
node67
|
|
19
|
+
} from "./repository-7d4wtrr4.js";
|
|
20
20
|
import {
|
|
21
21
|
AgentNotFoundError2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./repository-ww2p0375.js";
|
|
23
23
|
import {
|
|
24
24
|
combine2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./repository-dv96216k.js";
|
|
26
26
|
import {
|
|
27
27
|
entriesForRunner2
|
|
28
|
-
} from "./
|
|
28
|
+
} from "./repository-yv39fqry.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} from "./
|
|
30
|
+
Service57,
|
|
31
|
+
node58
|
|
32
|
+
} from "./repository-3d3pvmxz.js";
|
|
33
33
|
import {
|
|
34
34
|
merge2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./repository-cfq471k7.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./
|
|
37
|
+
make24
|
|
38
|
+
} from "./repository-wexf2k6a.js";
|
|
39
39
|
import {
|
|
40
40
|
Service62,
|
|
41
41
|
node64
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./repository-zad8kfsb.js";
|
|
43
43
|
import {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
} from "./
|
|
44
|
+
Service32,
|
|
45
|
+
node36
|
|
46
|
+
} from "./repository-xv0kd9hc.js";
|
|
47
47
|
import {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} from "./
|
|
48
|
+
Service54,
|
|
49
|
+
node55
|
|
50
|
+
} from "./repository-fcwk9vhw.js";
|
|
51
51
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./
|
|
52
|
+
Service45,
|
|
53
|
+
node48
|
|
54
|
+
} from "./repository-zrmnbdg0.js";
|
|
55
|
+
import {
|
|
56
|
+
Service35,
|
|
57
|
+
node39
|
|
58
|
+
} from "./repository-mx6f7k3w.js";
|
|
55
59
|
import {
|
|
56
60
|
Service34,
|
|
57
|
-
|
|
58
|
-
} from "./
|
|
61
|
+
node38
|
|
62
|
+
} from "./repository-a3tva24r.js";
|
|
59
63
|
import {
|
|
60
|
-
|
|
64
|
+
Service31,
|
|
61
65
|
node35
|
|
62
|
-
} from "./
|
|
63
|
-
import {
|
|
64
|
-
Service36,
|
|
65
|
-
node39
|
|
66
|
-
} from "./state-e4sxjejc.js";
|
|
66
|
+
} from "./repository-75t7768k.js";
|
|
67
67
|
import {
|
|
68
68
|
Service33,
|
|
69
|
-
|
|
70
|
-
} from "./
|
|
71
|
-
import {
|
|
72
|
-
Service39,
|
|
73
|
-
node42
|
|
74
|
-
} from "./state-fe1ga2fx.js";
|
|
69
|
+
node37
|
|
70
|
+
} from "./repository-k207nqnc.js";
|
|
75
71
|
import {
|
|
76
|
-
|
|
72
|
+
Service40,
|
|
77
73
|
node44
|
|
78
|
-
} from "./
|
|
74
|
+
} from "./repository-a5hf8tf4.js";
|
|
75
|
+
import {
|
|
76
|
+
Service38,
|
|
77
|
+
node42
|
|
78
|
+
} from "./repository-00qfdy27.js";
|
|
79
79
|
import {
|
|
80
80
|
__export
|
|
81
|
-
} from "./
|
|
81
|
+
} from "./repository-9rqn6x4v.js";
|
|
82
82
|
|
|
83
83
|
// src/session/context.ts
|
|
84
84
|
var exports_context = {};
|
|
85
85
|
__export(exports_context, {
|
|
86
86
|
Service: () => Service30,
|
|
87
87
|
SessionContext: () => exports_context,
|
|
88
|
-
node: () =>
|
|
88
|
+
node: () => node34
|
|
89
89
|
});
|
|
90
90
|
import { Context, Effect, Layer } from "effect";
|
|
91
91
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
92
92
|
class Service30 extends Context.Service()("@opencode/SessionContext") {
|
|
93
93
|
}
|
|
94
94
|
var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
95
|
-
const agents = yield*
|
|
96
|
-
const builtins = yield*
|
|
95
|
+
const agents = yield* Service65;
|
|
96
|
+
const builtins = yield* Service32;
|
|
97
97
|
const model = yield* Service74;
|
|
98
98
|
const db = (yield* Service89).db;
|
|
99
99
|
const discovery = yield* Service62;
|
|
100
|
-
const entries = yield*
|
|
101
|
-
const location = yield*
|
|
102
|
-
const mcpInstructions = yield*
|
|
103
|
-
const mcpTools = yield*
|
|
104
|
-
const models = yield*
|
|
105
|
-
const request = yield*
|
|
106
|
-
const referenceInstructions = yield*
|
|
100
|
+
const entries = yield* Service40;
|
|
101
|
+
const location = yield* Service85;
|
|
102
|
+
const mcpInstructions = yield* Service34;
|
|
103
|
+
const mcpTools = yield* Service35;
|
|
104
|
+
const models = yield* Service54;
|
|
105
|
+
const request = yield* Service38;
|
|
106
|
+
const referenceInstructions = yield* Service31;
|
|
107
107
|
const skillInstructions = yield* Service33;
|
|
108
|
-
const store = yield*
|
|
109
|
-
const registry = yield*
|
|
108
|
+
const store = yield* Service57;
|
|
109
|
+
const registry = yield* Service45;
|
|
110
110
|
const resolveModel = (session) => models.resolve(session, model.available);
|
|
111
111
|
const selectTitle = Effect.fn("SessionContext.selectTitle")(function* (session) {
|
|
112
112
|
const agent = yield* agents.get(ID13.make("title"));
|
|
@@ -168,7 +168,7 @@ var layer = Layer.effect(Service30, Effect.gen(function* () {
|
|
|
168
168
|
session,
|
|
169
169
|
agent: { ...agent, info: agent.info },
|
|
170
170
|
instructions: combine2([
|
|
171
|
-
|
|
171
|
+
make24(loaded.tools.codeModeCatalog),
|
|
172
172
|
loaded.mcp,
|
|
173
173
|
loaded.references,
|
|
174
174
|
loaded.skills,
|
|
@@ -199,26 +199,26 @@ var lowerVariant = (info, selected) => {
|
|
|
199
199
|
const rank = (id) => info.variants.findIndex((item) => item.id === id);
|
|
200
200
|
return MINIMAL_REASONING_VARIANTS.find((id) => rank(id) !== -1 && (id !== "low" || rank(id) < rank(selected)));
|
|
201
201
|
};
|
|
202
|
-
var
|
|
202
|
+
var node34 = makeLocationNode({
|
|
203
203
|
service: Service30,
|
|
204
204
|
layer,
|
|
205
205
|
deps: [
|
|
206
|
-
|
|
206
|
+
node67,
|
|
207
207
|
node76,
|
|
208
208
|
node92,
|
|
209
|
-
|
|
209
|
+
node36,
|
|
210
210
|
node64,
|
|
211
|
-
|
|
212
|
-
|
|
211
|
+
node44,
|
|
212
|
+
node88,
|
|
213
|
+
node38,
|
|
214
|
+
node39,
|
|
213
215
|
node35,
|
|
216
|
+
node55,
|
|
217
|
+
node42,
|
|
218
|
+
node58,
|
|
214
219
|
node37,
|
|
215
|
-
|
|
216
|
-
node61,
|
|
217
|
-
node44,
|
|
218
|
-
node68,
|
|
219
|
-
node36,
|
|
220
|
-
node54
|
|
220
|
+
node48
|
|
221
221
|
]
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
export { Service30,
|
|
224
|
+
export { Service30, node34, exports_context };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service88
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-7g7rhba8.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service48
|
|
6
|
+
} from "./repository-6gzr7cf8.js";
|
|
7
7
|
import {
|
|
8
8
|
StepFailedError2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./repository-ww2p0375.js";
|
|
10
10
|
import {
|
|
11
11
|
SessionEvent2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./repository-ec1grn59.js";
|
|
13
13
|
import {
|
|
14
14
|
toSessionError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./repository-6j0xgcj1.js";
|
|
16
16
|
import {
|
|
17
17
|
Error2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./repository-zrmnbdg0.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Service68
|
|
21
|
+
} from "./repository-qaxfcnsv.js";
|
|
22
22
|
import {
|
|
23
23
|
record2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./repository-4f25tdd0.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./repository-4wzs20xx.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./repository-qw2t3dzn.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./repository-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/runner/step.ts
|
|
36
36
|
var exports_step = {};
|
|
37
37
|
__export(exports_step, {
|
|
38
38
|
Outcome: () => Outcome2,
|
|
39
39
|
SessionStep: () => exports_step,
|
|
40
|
-
make: () =>
|
|
40
|
+
make: () => make19
|
|
41
41
|
});
|
|
42
42
|
import {
|
|
43
43
|
AIError,
|
|
@@ -51,11 +51,11 @@ var Outcome2 = Data.taggedEnum();
|
|
|
51
51
|
var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
|
|
52
52
|
var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
|
|
53
53
|
var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
|
|
54
|
-
var
|
|
54
|
+
var make19 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service88;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service48;
|
|
58
|
+
const toolOutput = yield* Service68;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const pendingStartSnapshot = yield* snapshots.capture().pipe(Effect.forkScoped);
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -223,4 +223,4 @@ var classifyToolExits = (settled, runs) => {
|
|
|
223
223
|
return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
export { Outcome2,
|
|
226
|
+
export { Outcome2, make19, exports_step };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./repository-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./repository-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/skill/discovery.ts
|
|
9
9
|
var exports_discovery = {};
|
|
10
10
|
__export(exports_discovery, {
|
|
11
|
-
Service: () =>
|
|
11
|
+
Service: () => Service5,
|
|
12
12
|
SkillDiscovery: () => exports_discovery,
|
|
13
|
-
node: () =>
|
|
13
|
+
node: () => node6
|
|
14
14
|
});
|
|
15
15
|
import path from "path";
|
|
16
16
|
import { Context, Effect, Layer, Schedule, Schema } from "effect";
|
|
@@ -48,9 +48,9 @@ class Index extends Schema.Class("SkillDiscovery.Index")({
|
|
|
48
48
|
}) {
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
class
|
|
51
|
+
class Service5 extends Context.Service()("@opencode/SkillDiscovery") {
|
|
52
52
|
}
|
|
53
|
-
var layer = Layer.effect(
|
|
53
|
+
var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
54
54
|
const fs = yield* FSUtil.Service;
|
|
55
55
|
const global = yield* Global.Service;
|
|
56
56
|
const http = (yield* HttpClient.HttpClient).pipe(HttpClient.retryTransient({
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
63
63
|
return true;
|
|
64
64
|
return yield* HttpClientRequest.get(url).pipe(http.execute, Effect.flatMap((response) => response.arrayBuffer), Effect.flatMap((body) => fs.writeWithDirs(destination, new Uint8Array(body))), Effect.as(true), Effect.catch((error) => Effect.logError("failed to download skill file", { url, error }).pipe(Effect.as(false))));
|
|
65
65
|
});
|
|
66
|
-
return
|
|
66
|
+
return Service5.of({
|
|
67
67
|
pull: Effect.fn("SkillDiscovery.pull")(function* (url) {
|
|
68
68
|
const base = url.endsWith("/") ? url : `${url}/`;
|
|
69
69
|
const source = new URL(base);
|
|
@@ -150,6 +150,6 @@ var layer = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
150
150
|
})
|
|
151
151
|
});
|
|
152
152
|
}));
|
|
153
|
-
var
|
|
153
|
+
var node6 = makeGlobalNode({ service: Service5, layer, deps: [httpClient, FSUtil.node, Global.node] });
|
|
154
154
|
|
|
155
|
-
export {
|
|
155
|
+
export { Service5, node6, exports_discovery };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service89,
|
|
3
3
|
node92
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./repository-07nbfc86.js";
|
|
5
5
|
import {
|
|
6
6
|
Service88,
|
|
7
7
|
node91
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./repository-7g7rhba8.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./repository-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./repository-m1714858.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./repository-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: () => Event18,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID18,
|
|
26
|
+
Info: () => Info26,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service77,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node79
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Fiber, Layer, Schema } from "effect";
|
|
@@ -37,24 +37,24 @@ import { CredentialLegacy } from "@opencode/schema/credential-legacy";
|
|
|
37
37
|
import { Integration } from "@opencode/schema/integration";
|
|
38
38
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { EffectFlock } from "@opencode/util/effect-flock";
|
|
40
|
-
var
|
|
40
|
+
var ID18 = Credential.ID;
|
|
41
41
|
var OAuth3 = Credential.OAuth;
|
|
42
42
|
var Key4 = Credential.Key;
|
|
43
43
|
var External2 = Credential.External;
|
|
44
44
|
var Value2 = Credential.Value;
|
|
45
|
-
var
|
|
45
|
+
var Event18 = Credential.Event;
|
|
46
46
|
|
|
47
|
-
class
|
|
48
|
-
id:
|
|
47
|
+
class Info26 extends Schema.Class("Credential.Info")({
|
|
48
|
+
id: ID18,
|
|
49
49
|
integrationID: Integration.ID,
|
|
50
50
|
label: Schema.String,
|
|
51
51
|
value: Value2
|
|
52
52
|
}) {
|
|
53
53
|
}
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class Service77 extends Context.Service()("@opencode/Credential") {
|
|
56
56
|
}
|
|
57
|
-
var layer = Layer.effect(
|
|
57
|
+
var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
58
58
|
const db = (yield* Service89).db;
|
|
59
59
|
const bus = yield* Service88;
|
|
60
60
|
const flock = yield* EffectFlock.Service;
|
|
@@ -64,7 +64,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
64
64
|
const stored = (row) => {
|
|
65
65
|
if (!row.integration_id)
|
|
66
66
|
return;
|
|
67
|
-
return new
|
|
67
|
+
return new Info26({
|
|
68
68
|
id: row.id,
|
|
69
69
|
integrationID: row.integration_id,
|
|
70
70
|
label: row.label,
|
|
@@ -75,7 +75,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
75
75
|
const credential = stored(row);
|
|
76
76
|
return credential ? [credential] : [];
|
|
77
77
|
});
|
|
78
|
-
return
|
|
78
|
+
return Service77.of({
|
|
79
79
|
lock: Effect.fn("Credential.lock")((id, operation) => Effect.uninterruptibleMask((restore) => Effect.gen(function* () {
|
|
80
80
|
const current = pending.get(id);
|
|
81
81
|
if (current)
|
|
@@ -91,8 +91,8 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
91
91
|
return row ? stored(row) : undefined;
|
|
92
92
|
}),
|
|
93
93
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
94
|
-
const credential = new
|
|
95
|
-
id: input.id ??
|
|
94
|
+
const credential = new Info26({
|
|
95
|
+
id: input.id ?? ID18.create(),
|
|
96
96
|
integrationID: input.integrationID,
|
|
97
97
|
label: input.label ?? "default",
|
|
98
98
|
value: input.value
|
|
@@ -123,9 +123,9 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
123
123
|
type: credential.value.type,
|
|
124
124
|
active: activated
|
|
125
125
|
});
|
|
126
|
-
yield* bus.publish(
|
|
126
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
127
127
|
if (activated)
|
|
128
|
-
yield* bus.publish(
|
|
128
|
+
yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
129
129
|
return credential;
|
|
130
130
|
}),
|
|
131
131
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -145,7 +145,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
145
145
|
})), Effect.orDie);
|
|
146
146
|
if (integrationID) {
|
|
147
147
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
148
|
-
yield* bus.publish(
|
|
148
|
+
yield* bus.publish(Event18.Switched, { integrationID, credentialID: id }, { global: true });
|
|
149
149
|
}
|
|
150
150
|
}),
|
|
151
151
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -177,7 +177,7 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
177
177
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
178
178
|
});
|
|
179
179
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
180
|
-
yield* bus.publish(
|
|
180
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
181
181
|
}),
|
|
182
182
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
183
183
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -210,12 +210,12 @@ var layer = Layer.effect(Service86, Effect.gen(function* () {
|
|
|
210
210
|
active: removed.switched,
|
|
211
211
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
212
212
|
});
|
|
213
|
-
yield* bus.publish(
|
|
213
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
214
214
|
if (removed.switched)
|
|
215
|
-
yield* bus.publish(
|
|
215
|
+
yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
216
216
|
})
|
|
217
217
|
});
|
|
218
218
|
}));
|
|
219
|
-
var
|
|
219
|
+
var node79 = makeGlobalNode({ service: Service77, layer, deps: [node92, node91, EffectFlock.node] });
|
|
220
220
|
|
|
221
|
-
export {
|
|
221
|
+
export { ID18, OAuth3, Key4, External2, Value2, Event18, Info26, Service77, node79, exports_credential };
|