@opencode/core 0.0.0-dev-21793 → 0.0.0-dev-21795
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +94 -94
- package/dist/aisdk.js +100 -100
- package/dist/app.js +9 -9
- package/dist/bus.js +73 -73
- package/dist/chunks/{file-mutation-034tev2y.js → managed-policy-034tev2y.js} +2 -2
- package/dist/chunks/{file-mutation-qvzyn69b.js → managed-policy-0myb0hv8.js} +7 -7
- package/dist/chunks/{file-mutation-9na97aeg.js → managed-policy-0t0ezgkn.js} +23 -23
- package/dist/chunks/{file-mutation-cppvt4zp.js → managed-policy-0xn02ny1.js} +3 -3
- package/dist/chunks/{file-mutation-20nwq5j7.js → managed-policy-0zq9v72r.js} +10 -10
- package/dist/chunks/{file-mutation-htgm1bds.js → managed-policy-14txj3e5.js} +3 -3
- package/dist/chunks/{file-mutation-nnra64kg.js → managed-policy-15cyj2pd.js} +52 -52
- package/dist/chunks/{file-mutation-bgm817xr.js → managed-policy-18g90bpv.js} +9 -9
- package/dist/chunks/{file-mutation-s0a3xd7q.js → managed-policy-18mmfe1f.js} +11 -11
- package/dist/chunks/{file-mutation-1ep2p91f.js → managed-policy-1ep2p91f.js} +2 -2
- package/dist/chunks/{file-mutation-mppte30v.js → managed-policy-1mpbznjz.js} +32 -32
- package/dist/chunks/{file-mutation-sqgyj4gx.js → managed-policy-1n4z0p15.js} +55 -55
- package/dist/chunks/{file-mutation-4rwjg7ym.js → managed-policy-1pfp6hjn.js} +14 -14
- package/dist/chunks/{file-mutation-xn4rg1bt.js → managed-policy-1wyv5fds.js} +36 -36
- package/dist/chunks/{file-mutation-1x2knyw4.js → managed-policy-1x2knyw4.js} +1 -1
- package/dist/chunks/{file-mutation-1y0wdj51.js → managed-policy-1y0wdj51.js} +1 -1
- package/dist/chunks/{file-mutation-fzw3ggbd.js → managed-policy-1yv6gjd4.js} +5 -5
- package/dist/chunks/{file-mutation-qye7m5mc.js → managed-policy-25ngw1b7.js} +15 -15
- package/dist/chunks/{file-mutation-42c08vbd.js → managed-policy-27jk1en4.js} +12 -12
- package/dist/chunks/{file-mutation-mt039edz.js → managed-policy-29525h7k.js} +34 -34
- package/dist/chunks/{file-mutation-mpw1k9ag.js → managed-policy-2bshgvsd.js} +3 -3
- package/dist/chunks/{file-mutation-j9gv32p7.js → managed-policy-2ffq6khn.js} +24 -24
- package/dist/chunks/{file-mutation-emq6awqh.js → managed-policy-2m2g9ynh.js} +4 -4
- package/dist/chunks/{file-mutation-hvnmtape.js → managed-policy-2rrayadd.js} +30 -30
- package/dist/chunks/{file-mutation-tdaksa41.js → managed-policy-2sde7pdr.js} +24 -24
- package/dist/chunks/{file-mutation-hvjpqjdc.js → managed-policy-2tfzkff6.js} +16 -16
- package/dist/chunks/{file-mutation-zx6dx56d.js → managed-policy-2tst3b9e.js} +9 -9
- package/dist/chunks/{file-mutation-2z1j29yd.js → managed-policy-2z1j29yd.js} +1 -1
- package/dist/chunks/{file-mutation-xf0kw6r5.js → managed-policy-33hmfn8k.js} +10 -10
- package/dist/chunks/{file-mutation-bqwdyg2t.js → managed-policy-39kss88q.js} +9 -9
- package/dist/chunks/{file-mutation-pq7xjvmm.js → managed-policy-3dp3y17e.js} +69 -69
- package/dist/chunks/{file-mutation-3hepkmqq.js → managed-policy-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-mutation-mh72q75k.js → managed-policy-3n7egtfq.js} +9 -9
- package/dist/chunks/{file-mutation-3nnrz6f6.js → managed-policy-3nnrz6f6.js} +1 -1
- package/dist/chunks/{file-mutation-06t7n8q8.js → managed-policy-3qh28kw9.js} +27 -27
- package/dist/chunks/{file-mutation-yy2edg57.js → managed-policy-3sn0zmr9.js} +18 -18
- package/dist/chunks/{file-mutation-r41sfy63.js → managed-policy-40za9wsf.js} +6 -6
- package/dist/chunks/{file-mutation-s2fjhn33.js → managed-policy-4f6wjw9b.js} +11 -11
- package/dist/chunks/{file-mutation-n9pam4rb.js → managed-policy-4fx8k1s6.js} +21 -21
- package/dist/chunks/{file-mutation-jkk3563p.js → managed-policy-4gy3hbk0.js} +10 -10
- package/dist/chunks/{file-mutation-s6h5wwd7.js → managed-policy-4nz8cp64.js} +17 -17
- package/dist/chunks/{file-mutation-jajr2nk9.js → managed-policy-4pavydbz.js} +2 -2
- package/dist/chunks/{file-mutation-4v008n1t.js → managed-policy-4v008n1t.js} +1 -1
- package/dist/chunks/{file-mutation-x39k9451.js → managed-policy-4x3extsw.js} +8 -8
- package/dist/chunks/{file-mutation-jah766w3.js → managed-policy-4xbynjts.js} +1 -1
- package/dist/chunks/{file-mutation-r385tprj.js → managed-policy-4zyp4rz1.js} +13 -13
- package/dist/chunks/{file-mutation-4k9b8ckd.js → managed-policy-50ra4brc.js} +9 -9
- package/dist/chunks/{file-mutation-aye484sv.js → managed-policy-51jhpxmm.js} +19 -19
- package/dist/chunks/{file-mutation-n93ct7p0.js → managed-policy-55w14brw.js} +17 -17
- package/dist/chunks/{file-mutation-0j822yer.js → managed-policy-5be5tbrh.js} +30 -30
- package/dist/chunks/{file-mutation-ne9926sq.js → managed-policy-5bn25yvx.js} +9 -9
- package/dist/chunks/{file-mutation-5m9w47nd.js → managed-policy-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-mutation-9h0z3fxn.js → managed-policy-5w95pjhr.js} +13 -13
- package/dist/chunks/{file-mutation-xm251h68.js → managed-policy-5zcvddpv.js} +33 -33
- package/dist/chunks/{file-mutation-ppvrw4s2.js → managed-policy-5zwc8z7d.js} +4 -4
- package/dist/chunks/{file-mutation-ak0nv30a.js → managed-policy-6080abd8.js} +18 -18
- package/dist/chunks/{file-mutation-16ef7g89.js → managed-policy-62nka828.js} +10 -10
- package/dist/chunks/{file-mutation-6esdw8yj.js → managed-policy-6esdw8yj.js} +1 -1
- package/dist/chunks/{file-mutation-znfqxp8f.js → managed-policy-6fkpavy9.js} +28 -28
- package/dist/chunks/{file-mutation-6pjqjmy2.js → managed-policy-6pjqjmy2.js} +1 -1
- package/dist/chunks/{file-mutation-d42sg7e1.js → managed-policy-6v9rn0ba.js} +27 -27
- package/dist/chunks/{file-mutation-583v5ha0.js → managed-policy-6z9q0fb1.js} +19 -19
- package/dist/chunks/{file-mutation-6cmnpesq.js → managed-policy-711wh92p.js} +6 -6
- package/dist/chunks/{file-mutation-wzkhz6q0.js → managed-policy-75137ffn.js} +4 -4
- package/dist/chunks/{file-mutation-w8qtt4th.js → managed-policy-76cb1hcw.js} +4 -4
- package/dist/chunks/{file-mutation-770pw0s1.js → managed-policy-770pw0s1.js} +1 -1
- package/dist/chunks/{file-mutation-npqr99vp.js → managed-policy-79yy74tq.js} +180 -180
- package/dist/chunks/{file-mutation-7bmhse3q.js → managed-policy-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-mutation-e9jwpacd.js → managed-policy-7c9yzdv1.js} +28 -28
- package/dist/chunks/{file-mutation-9d1m9pmn.js → managed-policy-7dg649xm.js} +21 -21
- package/dist/chunks/{file-mutation-1nf7yf0j.js → managed-policy-7f4s0p3m.js} +42 -42
- package/dist/chunks/{file-mutation-fwrhh8te.js → managed-policy-7f63ea2z.js} +28 -28
- package/dist/chunks/{file-mutation-9z8a2djx.js → managed-policy-7pghdm2f.js} +31 -31
- package/dist/chunks/{file-mutation-7w2ypzdf.js → managed-policy-7w2ypzdf.js} +1 -1
- package/dist/chunks/{file-mutation-ad85zqd0.js → managed-policy-7z3stfjh.js} +35 -35
- package/dist/chunks/{file-mutation-h5tgkdcy.js → managed-policy-82jsfkky.js} +11 -11
- package/dist/chunks/{file-mutation-gdfaxg1p.js → managed-policy-838e58y8.js} +11 -11
- package/dist/chunks/{file-mutation-b0yyfzfw.js → managed-policy-84dphpr9.js} +17 -17
- package/dist/chunks/{file-mutation-pyyefh93.js → managed-policy-851zh3j0.js} +10 -10
- package/dist/chunks/{file-mutation-zcz1zead.js → managed-policy-86gmn33h.js} +16 -16
- package/dist/chunks/{file-mutation-jf98v3pw.js → managed-policy-86pjed9p.js} +8 -8
- package/dist/chunks/{file-mutation-xyeba02v.js → managed-policy-8aspdrzb.js} +1 -1
- package/dist/chunks/{file-mutation-0pj9ddaq.js → managed-policy-8aw03fbr.js} +3 -3
- package/dist/chunks/{file-mutation-j6emb5q4.js → managed-policy-8d3xcys2.js} +26 -26
- package/dist/chunks/{file-mutation-gjn8q2kb.js → managed-policy-8ej614zm.js} +5 -5
- package/dist/chunks/{file-mutation-w4aahjgf.js → managed-policy-8ht73479.js} +30 -30
- package/dist/chunks/managed-policy-8tdc4bs4.js +261 -0
- package/dist/chunks/{file-mutation-pdh4yr0t.js → managed-policy-8ty1fwe5.js} +12 -12
- package/dist/chunks/{file-mutation-8wtp7s3z.js → managed-policy-8wtp7s3z.js} +1 -1
- package/dist/chunks/{file-mutation-14zwc1tm.js → managed-policy-8zj2w8ry.js} +18 -18
- package/dist/chunks/{file-mutation-91rj84md.js → managed-policy-91rj84md.js} +1 -1
- package/dist/chunks/{file-mutation-wcm504gr.js → managed-policy-95n777kh.js} +23 -23
- package/dist/chunks/{file-mutation-3ycsgzwh.js → managed-policy-96fsyy14.js} +16 -16
- package/dist/chunks/{file-mutation-hvvf9qw8.js → managed-policy-97cewran.js} +6 -6
- package/dist/chunks/{file-mutation-998yhzzq.js → managed-policy-998yhzzq.js} +3 -3
- package/dist/chunks/{file-mutation-fvc4bqe2.js → managed-policy-9b28cy4d.js} +5 -5
- package/dist/chunks/{file-mutation-86e3dsdc.js → managed-policy-9gnx14jc.js} +18 -18
- package/dist/chunks/{file-mutation-hx36yvej.js → managed-policy-9p83n4ag.js} +14 -14
- package/dist/chunks/{file-mutation-5q1634ts.js → managed-policy-9qwx7yq4.js} +23 -23
- package/dist/chunks/{file-mutation-k10dwtqd.js → managed-policy-9r00qwzx.js} +4 -4
- package/dist/chunks/{file-mutation-a0e2vy3h.js → managed-policy-9ttr7wg4.js} +25 -25
- package/dist/chunks/{file-mutation-7jev2p96.js → managed-policy-9zrtw0ng.js} +37 -37
- package/dist/chunks/{file-mutation-e65cdmhb.js → managed-policy-a7hcemwv.js} +6 -6
- package/dist/chunks/{file-mutation-7vrycr0x.js → managed-policy-abatyzxm.js} +21 -21
- package/dist/chunks/{file-mutation-szcgc7h4.js → managed-policy-afmnpta1.js} +5 -5
- package/dist/chunks/{file-mutation-jc236n4m.js → managed-policy-agyg961t.js} +3 -3
- package/dist/chunks/{file-mutation-cvqwb722.js → managed-policy-an8erekz.js} +3 -3
- package/dist/chunks/{file-mutation-hj4sgq0k.js → managed-policy-arckp0tt.js} +49 -49
- package/dist/chunks/{file-mutation-99z41sf4.js → managed-policy-arz7hw7x.js} +2 -2
- package/dist/chunks/{file-mutation-8kf7njae.js → managed-policy-ay70qn8v.js} +9 -9
- package/dist/chunks/{file-mutation-ayjs7tqn.js → managed-policy-ayjs7tqn.js} +2 -2
- package/dist/chunks/{file-mutation-dbhxdrr0.js → managed-policy-aynbw0zy.js} +11 -11
- package/dist/chunks/{file-mutation-b0mv4wxm.js → managed-policy-b0mv4wxm.js} +2 -2
- package/dist/chunks/{file-mutation-b6vsg801.js → managed-policy-b6vsg801.js} +2 -2
- package/dist/chunks/{file-mutation-9dyr6dbd.js → managed-policy-baphfknr.js} +13 -13
- package/dist/chunks/managed-policy-bc5k4005.js +517 -0
- package/dist/chunks/{file-mutation-rpyyyxcq.js → managed-policy-bewwd09f.js} +28 -28
- package/dist/chunks/{file-mutation-xd9cc171.js → managed-policy-bstexjd6.js} +5 -5
- package/dist/chunks/{file-mutation-x4a10420.js → managed-policy-c1fej57t.js} +5 -5
- package/dist/chunks/{file-mutation-4w13ygjb.js → managed-policy-c6b16rft.js} +4 -4
- package/dist/chunks/{file-mutation-qx48z7fz.js → managed-policy-c7ce2teg.js} +18 -18
- package/dist/chunks/{file-mutation-1z6jjy5p.js → managed-policy-c8666r4c.js} +6 -6
- package/dist/chunks/{file-mutation-t79q4a8s.js → managed-policy-ccx0tj3k.js} +15 -15
- package/dist/chunks/{file-mutation-0f6r689f.js → managed-policy-cgky5gqb.js} +4 -4
- package/dist/chunks/{file-mutation-x1rh1q6n.js → managed-policy-ch7yww4p.js} +24 -24
- package/dist/chunks/{file-mutation-f378m401.js → managed-policy-ckq7ezzg.js} +28 -28
- package/dist/chunks/{file-mutation-b8g5x7py.js → managed-policy-csb4wctr.js} +30 -30
- package/dist/chunks/{file-mutation-kng2vz2g.js → managed-policy-cz0we2g4.js} +32 -32
- package/dist/chunks/{file-mutation-engkm2d6.js → managed-policy-d1r5081s.js} +5 -5
- package/dist/chunks/{file-mutation-kbn4pv95.js → managed-policy-d1vrg4at.js} +35 -35
- package/dist/chunks/{file-mutation-d4v9tmah.js → managed-policy-d4v9tmah.js} +2 -2
- package/dist/chunks/{file-mutation-hvz0d71n.js → managed-policy-dfexp956.js} +6 -6
- package/dist/chunks/{file-mutation-q27sz64n.js → managed-policy-dn35p0ms.js} +15 -15
- package/dist/chunks/{file-mutation-9qc30j8j.js → managed-policy-dr1fr17h.js} +22 -22
- package/dist/chunks/{file-mutation-pgga6m9y.js → managed-policy-dxfx83kj.js} +28 -28
- package/dist/chunks/{file-mutation-sqa3z3dz.js → managed-policy-e063jx1w.js} +11 -11
- package/dist/chunks/{file-mutation-m168f1q5.js → managed-policy-e22n6ctv.js} +17 -17
- package/dist/chunks/{file-mutation-jq88ke7r.js → managed-policy-e2x7gzav.js} +9 -9
- package/dist/chunks/{file-mutation-28ymys8g.js → managed-policy-e45v1dq9.js} +24 -24
- package/dist/chunks/{file-mutation-e834z07m.js → managed-policy-e834z07m.js} +1 -1
- package/dist/chunks/{file-mutation-18a9gpqs.js → managed-policy-eap9pty2.js} +15 -15
- package/dist/chunks/{file-mutation-n6vey4v0.js → managed-policy-ee5m4gs1.js} +18 -18
- package/dist/chunks/{file-mutation-412bryh6.js → managed-policy-eet2c32v.js} +20 -20
- package/dist/chunks/{file-mutation-rx9zn29t.js → managed-policy-er6b0kzz.js} +12 -12
- package/dist/chunks/{file-mutation-5et2web4.js → managed-policy-f8g33fbf.js} +32 -32
- package/dist/chunks/{file-mutation-ry63fkbp.js → managed-policy-fdn62rcc.js} +6 -6
- package/dist/chunks/{file-mutation-6wded51y.js → managed-policy-fe0b0wqf.js} +10 -10
- package/dist/chunks/{file-mutation-fffv3p7h.js → managed-policy-fffv3p7h.js} +1 -1
- package/dist/chunks/{file-mutation-5fzv3jtq.js → managed-policy-fgkarqjp.js} +24 -24
- package/dist/chunks/{file-mutation-a77zgm32.js → managed-policy-fhrpjj0r.js} +4 -4
- package/dist/chunks/{file-mutation-ydgk5ecx.js → managed-policy-frmwq4jb.js} +2 -2
- package/dist/chunks/{file-mutation-9bsvgzkn.js → managed-policy-g3pptkv5.js} +21 -21
- package/dist/chunks/{file-mutation-ah9fbd82.js → managed-policy-g5304s1h.js} +33 -33
- package/dist/chunks/{file-mutation-g5h9c0rr.js → managed-policy-g5h9c0rr.js} +2 -2
- package/dist/chunks/{file-mutation-td4wpn7p.js → managed-policy-g5yjf9jg.js} +4 -4
- package/dist/chunks/{file-mutation-2n8qcs80.js → managed-policy-g644dnqe.js} +26 -26
- package/dist/chunks/{file-mutation-agqd6nxz.js → managed-policy-g6dfma3d.js} +6 -6
- package/dist/chunks/{file-mutation-rv3msfz7.js → managed-policy-gf6hc92a.js} +19 -19
- package/dist/chunks/{file-mutation-7fkfpscz.js → managed-policy-gf8234ax.js} +5 -5
- package/dist/chunks/{file-mutation-c781gd4g.js → managed-policy-gpby3js0.js} +14 -14
- package/dist/chunks/{file-mutation-jqnr3q0b.js → managed-policy-hc8rr0f7.js} +11 -11
- package/dist/chunks/{file-mutation-r9vxfp52.js → managed-policy-he9da3ry.js} +24 -24
- package/dist/chunks/{file-mutation-zqx4v1dp.js → managed-policy-hhafapa0.js} +2 -2
- package/dist/chunks/{file-mutation-agt7cqbv.js → managed-policy-hzyqcp35.js} +8 -8
- package/dist/chunks/{file-mutation-j113cymg.js → managed-policy-j113cymg.js} +1 -1
- package/dist/chunks/{file-mutation-fntjqd6t.js → managed-policy-j5ekttm8.js} +48 -48
- package/dist/chunks/{file-mutation-m4n458ne.js → managed-policy-jg4gd8ks.js} +36 -36
- package/dist/chunks/{file-mutation-wfjf3dbs.js → managed-policy-jhnq0906.js} +4 -4
- package/dist/chunks/{file-mutation-jchrqzf6.js → managed-policy-jneg3k74.js} +4 -4
- package/dist/chunks/{file-mutation-c8b8mnkb.js → managed-policy-k1ss8rm4.js} +43 -43
- package/dist/chunks/{file-mutation-n3h7tt9m.js → managed-policy-k3gjgtk1.js} +18 -18
- package/dist/chunks/{file-mutation-k814nvkf.js → managed-policy-k814nvkf.js} +1 -1
- package/dist/chunks/{file-mutation-dycw1daa.js → managed-policy-k8zf2em2.js} +83 -83
- package/dist/chunks/{file-mutation-njm07axa.js → managed-policy-kgdbym9g.js} +83 -83
- package/dist/chunks/{file-mutation-wkv9y70z.js → managed-policy-kkrmzvm1.js} +11 -11
- package/dist/chunks/{file-mutation-wn5tx07g.js → managed-policy-knp52wmd.js} +42 -42
- package/dist/chunks/{file-mutation-kt3bjfbg.js → managed-policy-kt3bjfbg.js} +1 -1
- package/dist/chunks/{file-mutation-d3kt6ywa.js → managed-policy-kttwta8x.js} +24 -24
- package/dist/chunks/{file-mutation-jgx5v8fy.js → managed-policy-kygz8tjd.js} +20 -20
- package/dist/chunks/{file-mutation-azzgb3g2.js → managed-policy-kz8nn0w5.js} +7 -7
- package/dist/chunks/{file-mutation-ta48ntn4.js → managed-policy-m10jqfx1.js} +10 -10
- package/dist/chunks/{file-mutation-m1714858.js → managed-policy-m1714858.js} +1 -1
- package/dist/chunks/managed-policy-m1rhczw0.js +26 -0
- package/dist/chunks/{file-mutation-m37sd98t.js → managed-policy-m37sd98t.js} +1 -1
- package/dist/chunks/{file-mutation-c8j7dx8q.js → managed-policy-m5t3njjp.js} +11 -11
- package/dist/chunks/{file-mutation-v2map4bj.js → managed-policy-m607dzpx.js} +14 -14
- package/dist/chunks/{file-mutation-m9w0rfyh.js → managed-policy-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-mutation-maspj1v3.js → managed-policy-maspj1v3.js} +1 -1
- package/dist/chunks/{file-mutation-by4yhs9f.js → managed-policy-mbfac0q8.js} +7 -7
- package/dist/chunks/{file-mutation-rkfx65sc.js → managed-policy-mchxfxvw.js} +5 -5
- package/dist/chunks/{file-mutation-0ja23t1b.js → managed-policy-mf0qgk01.js} +18 -18
- package/dist/chunks/{file-mutation-0fpyks1q.js → managed-policy-mj47herm.js} +10 -10
- package/dist/chunks/{file-mutation-w1gspdc4.js → managed-policy-mpwa3hnt.js} +19 -19
- package/dist/chunks/{file-mutation-x9v18vd1.js → managed-policy-n03at03x.js} +11 -11
- package/dist/chunks/{file-mutation-n0p0277s.js → managed-policy-n0p0277s.js} +1 -1
- package/dist/chunks/{file-mutation-1xnx50jx.js → managed-policy-n6x2fb8a.js} +1 -1
- package/dist/chunks/{file-mutation-pkmtmf38.js → managed-policy-n7wnam13.js} +8 -8
- package/dist/chunks/{file-mutation-vpgtgc27.js → managed-policy-ncdbbenb.js} +4 -4
- package/dist/chunks/{file-mutation-ts53k1nz.js → managed-policy-nh4r2aae.js} +16 -16
- package/dist/chunks/{file-mutation-vxq3rjst.js → managed-policy-nt9bdxr0.js} +5 -5
- package/dist/chunks/{file-mutation-p015t6z3.js → managed-policy-p015t6z3.js} +2 -2
- package/dist/chunks/{file-mutation-spw53e2n.js → managed-policy-p3nedr2s.js} +11 -11
- package/dist/chunks/{file-mutation-wtfvr6dg.js → managed-policy-p3q23q4d.js} +25 -25
- package/dist/chunks/{file-mutation-jee9mcyq.js → managed-policy-p5w84a5e.js} +25 -25
- package/dist/chunks/{file-mutation-v9ez2kgh.js → managed-policy-p7vhpwh8.js} +5 -5
- package/dist/chunks/{file-mutation-dh62xe4r.js → managed-policy-pc1v25hk.js} +3 -3
- package/dist/chunks/{file-mutation-gzd9h9wc.js → managed-policy-pfmze3yn.js} +26 -26
- package/dist/chunks/{file-mutation-pknna89w.js → managed-policy-pknna89w.js} +1 -1
- package/dist/chunks/{file-mutation-2pmnyg9r.js → managed-policy-pkv6rmrq.js} +9 -9
- package/dist/chunks/{file-mutation-q4b90a1g.js → managed-policy-pq2p86g1.js} +8 -8
- package/dist/chunks/{file-mutation-fzpx1t84.js → managed-policy-pw9p4tf0.js} +11 -11
- package/dist/chunks/{file-mutation-b4mwhj0w.js → managed-policy-pzmysmsy.js} +9 -9
- package/dist/chunks/{file-mutation-jve1z22x.js → managed-policy-q21mtmnq.js} +2 -2
- package/dist/chunks/{file-mutation-qjgzc4b4.js → managed-policy-qjgzc4b4.js} +1 -1
- package/dist/chunks/{file-mutation-y29v8fx6.js → managed-policy-qjnb67tm.js} +6 -6
- package/dist/chunks/{file-mutation-tkawvzsd.js → managed-policy-qsqpg9tp.js} +7 -7
- package/dist/chunks/{file-mutation-d32ywmm3.js → managed-policy-qy0f7jh7.js} +9 -9
- package/dist/chunks/{file-mutation-r0yr0wbs.js → managed-policy-r0yr0wbs.js} +1 -1
- package/dist/chunks/{file-mutation-34y5t1s2.js → managed-policy-r1vtm56b.js} +12 -12
- package/dist/chunks/{file-mutation-ev1t90qk.js → managed-policy-r3jkh5w9.js} +19 -19
- package/dist/chunks/{file-mutation-tt1npxdc.js → managed-policy-r3x2rc5q.js} +13 -13
- package/dist/chunks/{file-mutation-r542h3bh.js → managed-policy-r542h3bh.js} +1 -1
- package/dist/chunks/{file-mutation-tw3w7kk6.js → managed-policy-r61tydse.js} +9 -9
- package/dist/chunks/{file-mutation-5w1mdqt7.js → managed-policy-r96ere88.js} +4 -4
- package/dist/chunks/{file-mutation-rb9dy4dg.js → managed-policy-rb9dy4dg.js} +1 -1
- package/dist/chunks/{file-mutation-jppfcdsv.js → managed-policy-rbha4e8j.js} +15 -15
- package/dist/chunks/{file-mutation-x9bfykwd.js → managed-policy-rc7nqfyw.js} +5 -5
- package/dist/chunks/{file-mutation-nc7nfcmn.js → managed-policy-rd395641.js} +5 -5
- package/dist/chunks/{file-mutation-je176taz.js → managed-policy-rmve5ma1.js} +2 -2
- package/dist/chunks/{file-mutation-rt5dr6hb.js → managed-policy-rt5dr6hb.js} +1 -1
- package/dist/chunks/{file-mutation-thhhq1vt.js → managed-policy-s3ezegtz.js} +16 -16
- package/dist/chunks/{file-mutation-zzdv5d93.js → managed-policy-s626qfae.js} +4 -4
- package/dist/chunks/{file-mutation-sa3fpqfw.js → managed-policy-sa3fpqfw.js} +2 -2
- package/dist/chunks/{file-mutation-e8zejd8s.js → managed-policy-scn35n2s.js} +47 -47
- package/dist/chunks/{file-mutation-5fjb7ams.js → managed-policy-sjmm3wxa.js} +14 -4
- package/dist/chunks/{file-mutation-st8aw945.js → managed-policy-smyv8e6m.js} +11 -11
- package/dist/chunks/{file-mutation-sqjzf8x2.js → managed-policy-sqjzf8x2.js} +1 -1
- package/dist/chunks/{file-mutation-c9t2ty9q.js → managed-policy-ssfehs1z.js} +4 -4
- package/dist/chunks/{file-mutation-tczq8hjw.js → managed-policy-tczq8hjw.js} +1 -1
- package/dist/chunks/{file-mutation-6krm39vr.js → managed-policy-tdqeyjar.js} +11 -11
- package/dist/chunks/{file-mutation-tg1vr1qt.js → managed-policy-tg1vr1qt.js} +1 -1
- package/dist/chunks/{file-mutation-twv2r8f4.js → managed-policy-twv2r8f4.js} +2 -2
- package/dist/chunks/{file-mutation-v2r1d0zg.js → managed-policy-v2r1d0zg.js} +1 -1
- package/dist/chunks/{file-mutation-3wyhrqfb.js → managed-policy-v8vd993n.js} +8 -8
- package/dist/chunks/{file-mutation-nkkjs32s.js → managed-policy-vb2g9h2k.js} +11 -11
- package/dist/chunks/{file-mutation-vd3b3yk9.js → managed-policy-vd3b3yk9.js} +1 -1
- package/dist/chunks/managed-policy-vdh3rgac.js +18 -0
- package/dist/chunks/{file-mutation-veqvce7d.js → managed-policy-veqvce7d.js} +1 -1
- package/dist/chunks/{file-mutation-dz8hhvgv.js → managed-policy-vgk61ywp.js} +9 -9
- package/dist/chunks/{file-mutation-b47kxsq8.js → managed-policy-w3fjdyms.js} +15 -15
- package/dist/chunks/{file-mutation-w3wsvvr9.js → managed-policy-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-mutation-dk5xnaxx.js → managed-policy-w7zjqt6n.js} +4 -4
- package/dist/chunks/{file-mutation-awz66qxh.js → managed-policy-w89ca4k9.js} +8 -8
- package/dist/chunks/{file-mutation-wakvkjy4.js → managed-policy-wakvkjy4.js} +1 -1
- package/dist/chunks/{file-mutation-s1tpjhgy.js → managed-policy-waq4kccd.js} +24 -24
- package/dist/chunks/{file-mutation-hq99wsn5.js → managed-policy-wbye8qn8.js} +13 -13
- package/dist/chunks/{file-mutation-kt2hvhfc.js → managed-policy-wcxnm9b3.js} +15 -15
- package/dist/chunks/{file-mutation-wd87259q.js → managed-policy-wd87259q.js} +1 -1
- package/dist/chunks/{file-mutation-0n9958p8.js → managed-policy-wkss3vh5.js} +32 -32
- package/dist/chunks/{file-mutation-fznmdakp.js → managed-policy-wr3re1en.js} +4 -4
- package/dist/chunks/{file-mutation-681w63qn.js → managed-policy-wt1sed5t.js} +2 -2
- package/dist/chunks/{file-mutation-184a1rnm.js → managed-policy-wwye013q.js} +4 -4
- package/dist/chunks/{file-mutation-5bk3jjmc.js → managed-policy-x7hdnsxb.js} +17 -17
- package/dist/chunks/{file-mutation-gkxweqzn.js → managed-policy-xf4m4z3t.js} +21 -21
- package/dist/chunks/{file-mutation-21f4f1g1.js → managed-policy-xjtwdmvz.js} +18 -18
- package/dist/chunks/{file-mutation-4xvmh7wp.js → managed-policy-xkfczkpn.js} +3 -3
- package/dist/chunks/{file-mutation-nva7xeab.js → managed-policy-xsbcx01h.js} +17 -17
- package/dist/chunks/{file-mutation-sv1g5dmz.js → managed-policy-xzjf81fw.js} +43 -43
- package/dist/chunks/{file-mutation-bs6kz8fr.js → managed-policy-y9a3321v.js} +43 -43
- package/dist/chunks/{file-mutation-7be1feys.js → managed-policy-y9x4pn1g.js} +6 -6
- package/dist/chunks/{file-mutation-jyfkkafv.js → managed-policy-yahmaqe8.js} +6 -6
- package/dist/chunks/{file-mutation-yb20nhc3.js → managed-policy-yb20nhc3.js} +1 -1
- package/dist/chunks/{file-mutation-z9etxwmp.js → managed-policy-yc4ja266.js} +17 -17
- package/dist/chunks/{file-mutation-ynx2y6bw.js → managed-policy-ycnqh90j.js} +16 -16
- package/dist/chunks/{file-mutation-e5mc6wd5.js → managed-policy-yd8f2aar.js} +15 -15
- package/dist/chunks/{file-mutation-rxrr3qdh.js → managed-policy-ymtqdgzg.js} +8 -8
- package/dist/chunks/{file-mutation-z0bkrqjs.js → managed-policy-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-mutation-z38nccrw.js → managed-policy-z38nccrw.js} +1 -1
- package/dist/chunks/{file-mutation-m6v7brdr.js → managed-policy-z5x59bbe.js} +20 -20
- package/dist/chunks/{file-mutation-sqz5s9dc.js → managed-policy-z7bc1hkz.js} +19 -19
- package/dist/chunks/{file-mutation-3c9yzw43.js → managed-policy-za2sj63g.js} +7 -7
- package/dist/chunks/{file-mutation-zkg84ctx.js → managed-policy-zkg84ctx.js} +1 -1
- package/dist/chunks/{file-mutation-5mn06ewq.js → managed-policy-zp0mbxe0.js} +23 -23
- package/dist/chunks/{file-mutation-vvrrv243.js → managed-policy-zttkbwvn.js} +37 -37
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +89 -89
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +104 -104
- package/dist/config/plugin/agent.js +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +157 -157
- package/dist/config/plugin/compatibility.js +137 -137
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +119 -119
- package/dist/config/plugin/image.js +118 -118
- package/dist/config/plugin/instruction.js +118 -118
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +119 -119
- package/dist/config/plugin/provider.js +118 -118
- package/dist/config/plugin/reference.js +120 -120
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +107 -107
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +118 -118
- package/dist/config/plugin/source.js +121 -121
- package/dist/config/plugin/tool-output.js +119 -119
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +120 -120
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +123 -123
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +87 -87
- package/dist/database/database.js +70 -70
- package/dist/database/drizzle/effect-sqlite/driver.js +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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.gen.js +53 -53
- package/dist/database/migration.js +55 -55
- 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 +97 -97
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +374 -374
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +98 -98
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +98 -98
- 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 +74 -74
- package/dist/file-access.js +109 -109
- package/dist/file-mutation.js +99 -99
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +102 -102
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +107 -107
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +92 -92
- package/dist/generate.js +110 -110
- 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 +96 -96
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +365 -365
- package/dist/instruction-discovery.js +88 -88
- package/dist/instructions/builtins.js +92 -92
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +93 -93
- package/dist/job.js +82 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +77 -77
- package/dist/location-activity.js +158 -158
- package/dist/location-lifecycle.js +112 -112
- package/dist/location-service-map.js +91 -91
- package/dist/location-services.js +362 -362
- package/dist/location.js +94 -94
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +96 -96
- package/dist/mcp/index.js +112 -112
- package/dist/mcp/instructions.js +143 -143
- package/dist/mcp/oauth.js +82 -82
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +95 -95
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +96 -96
- package/dist/model-resolver.js +104 -104
- package/dist/model-retry.js +1 -1
- package/dist/model.js +107 -107
- package/dist/models-dev.js +112 -112
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +112 -112
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +92 -92
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +79 -79
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +105 -105
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +220 -220
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +101 -101
- package/dist/plugin/module.js +119 -119
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +107 -107
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +95 -95
- package/dist/plugin/provider/azure.js +118 -118
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +118 -118
- package/dist/plugin/provider/cloudflare-ai-gateway.js +115 -115
- package/dist/plugin/provider/cloudflare-workers-ai.js +115 -115
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +114 -114
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +98 -98
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +100 -100
- package/dist/plugin/provider/gitlab.js +98 -98
- package/dist/plugin/provider/google-vertex.js +115 -115
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +82 -82
- package/dist/plugin/provider/lmstudio.js +127 -127
- package/dist/plugin/provider/local.js +124 -124
- package/dist/plugin/provider/modal.js +97 -97
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +127 -127
- package/dist/plugin/provider/openai-context-caps.js +95 -95
- package/dist/plugin/provider/openai.js +120 -120
- package/dist/plugin/provider/opencode.js +104 -104
- package/dist/plugin/provider/openrouter.js +96 -96
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +83 -83
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +96 -96
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +117 -117
- package/dist/plugin/provider/vercel.js +95 -95
- package/dist/plugin/provider/vllm.js +127 -127
- package/dist/plugin/provider/xai.js +96 -96
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +171 -171
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +136 -136
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +91 -91
- package/dist/plugin/vcs/hg.js +91 -91
- package/dist/plugin/verbosity.js +98 -98
- package/dist/plugin/warming.js +116 -116
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +6 -6
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +227 -227
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +93 -93
- package/dist/provider.js +102 -102
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +94 -94
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +86 -86
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +102 -102
- package/dist/rpc.js +91 -91
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +78 -78
- package/dist/session/compaction.js +141 -141
- package/dist/session/context.js +167 -167
- package/dist/session/diff.js +93 -93
- 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 +223 -223
- package/dist/session/execution.js +133 -133
- package/dist/session/generate.js +167 -167
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +97 -97
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +83 -83
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +102 -102
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +125 -125
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +135 -135
- package/dist/session/projector.js +93 -93
- package/dist/session/prompt.js +110 -110
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +99 -99
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +233 -233
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +105 -105
- package/dist/session/runner/publish-llm-event.js +118 -118
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +131 -131
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +132 -132
- package/dist/session/skill.js +108 -108
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +89 -89
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +214 -214
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +171 -171
- package/dist/session/to-session-error.js +117 -117
- package/dist/session/transfer.js +219 -219
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +134 -134
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +110 -110
- package/dist/skill.js +117 -117
- package/dist/snapshot.js +98 -98
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +140 -140
- package/dist/tool/plugin/edit.js +119 -119
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +127 -127
- package/dist/tool/plugin/grep.js +127 -127
- package/dist/tool/plugin/mcp-resource.js +129 -129
- package/dist/tool/plugin/opencode.js +114 -114
- package/dist/tool/plugin/patch.js +127 -127
- package/dist/tool/plugin/question.js +108 -108
- package/dist/tool/plugin/read.js +128 -128
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +118 -118
- package/dist/tool/plugin/subagent.js +221 -221
- package/dist/tool/plugin/todo.js +140 -140
- package/dist/tool/plugin/webfetch.js +118 -118
- package/dist/tool/plugin/websearch.js +113 -113
- package/dist/tool/plugin/write.js +127 -127
- package/dist/tool/read-filesystem.js +105 -105
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +12 -12
- package/dist/usage-limits.js +93 -93
- 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 +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +97 -97
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +98 -98
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +94 -94
- package/dist/voice.js +92 -92
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +86 -86
- 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 +94 -94
- package/dist/worktree.js +101 -101
- package/package.json +8 -8
- package/dist/chunks/file-mutation-f9b0xc0f.js +0 -26
- package/dist/chunks/file-mutation-pp26ka9h.js +0 -261
- package/dist/chunks/file-mutation-qrbmkj4e.js +0 -517
- package/dist/chunks/file-mutation-z7bdqmx5.js +0 -18
- /package/dist/chunks/{file-mutation-0qkdqm5v.js → managed-policy-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-mutation-0zkw76rk.js → managed-policy-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-mutation-17cy0kzp.js → managed-policy-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-mutation-1cnp2v09.js → managed-policy-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-mutation-24dcb14g.js → managed-policy-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-mutation-2710q6r3.js → managed-policy-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-mutation-2bv980vf.js → managed-policy-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-mutation-2c3vjs8z.js → managed-policy-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-mutation-359p4xyc.js → managed-policy-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-mutation-3asan66x.js → managed-policy-3asan66x.js} +0 -0
- /package/dist/chunks/{file-mutation-3v8g72cx.js → managed-policy-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-mutation-3wcehsnq.js → managed-policy-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-mutation-43n2bw4t.js → managed-policy-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-mutation-4knz6hnm.js → managed-policy-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-mutation-4vcrnpx2.js → managed-policy-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-mutation-4y7fprxs.js → managed-policy-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-mutation-53557ph1.js → managed-policy-53557ph1.js} +0 -0
- /package/dist/chunks/{file-mutation-550bvhaj.js → managed-policy-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-mutation-5qd3pb7m.js → managed-policy-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{file-mutation-6prwharc.js → managed-policy-6prwharc.js} +0 -0
- /package/dist/chunks/{file-mutation-6q2bdcd1.js → managed-policy-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-mutation-7akdwqpd.js → managed-policy-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-mutation-7m9af43g.js → managed-policy-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-mutation-822emrt2.js → managed-policy-822emrt2.js} +0 -0
- /package/dist/chunks/{file-mutation-84wd9syh.js → managed-policy-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-mutation-88xbtdfr.js → managed-policy-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-mutation-8n3pysct.js → managed-policy-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-mutation-8wj87zfr.js → managed-policy-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-mutation-9a4afbnw.js → managed-policy-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-mutation-9rqn6x4v.js → managed-policy-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-mutation-a058387c.js → managed-policy-a058387c.js} +0 -0
- /package/dist/chunks/{file-mutation-a6k6eb26.js → managed-policy-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-mutation-af5trqkr.js → managed-policy-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-mutation-afrmfg78.js → managed-policy-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-mutation-aqzs7mqg.js → managed-policy-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-mutation-atq7p7m5.js → managed-policy-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-mutation-bkyjaxrp.js → managed-policy-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-mutation-bmr6ed5q.js → managed-policy-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-mutation-cf4snx6d.js → managed-policy-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-mutation-cqv5kn06.js → managed-policy-cqv5kn06.js} +0 -0
- /package/dist/chunks/{file-mutation-cvy3z8tj.js → managed-policy-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-mutation-d9fn303g.js → managed-policy-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-mutation-d9jj8t3e.js → managed-policy-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-mutation-dajrwvna.js → managed-policy-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-mutation-dap0rakb.js → managed-policy-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-mutation-df08tz66.js → managed-policy-df08tz66.js} +0 -0
- /package/dist/chunks/{file-mutation-dy18nga0.js → managed-policy-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-mutation-e5kj55wp.js → managed-policy-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-mutation-e73j6tqm.js → managed-policy-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-mutation-ec1grn59.js → managed-policy-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-mutation-eh3zwz77.js → managed-policy-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-mutation-emrn6kk6.js → managed-policy-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-mutation-f0mxakyp.js → managed-policy-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-mutation-f6n9ztr4.js → managed-policy-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-mutation-faypxj3z.js → managed-policy-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-mutation-fd410y7t.js → managed-policy-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-mutation-g4wezp1m.js → managed-policy-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-mutation-g86h250q.js → managed-policy-g86h250q.js} +0 -0
- /package/dist/chunks/{file-mutation-gebd4c9n.js → managed-policy-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-mutation-gftt206x.js → managed-policy-gftt206x.js} +0 -0
- /package/dist/chunks/{file-mutation-hcxmzztb.js → managed-policy-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-mutation-hk9envan.js → managed-policy-hk9envan.js} +0 -0
- /package/dist/chunks/{file-mutation-j2ntwpah.js → managed-policy-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-mutation-j5zkgpj8.js → managed-policy-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-mutation-jjkms2e6.js → managed-policy-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-mutation-jr7sbwjy.js → managed-policy-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-mutation-jwfs4k6c.js → managed-policy-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-mutation-jwr30sdr.js → managed-policy-jwr30sdr.js} +0 -0
- /package/dist/chunks/{file-mutation-jze0r7bz.js → managed-policy-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-mutation-jzg6c2d5.js → managed-policy-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-mutation-m18g726c.js → managed-policy-m18g726c.js} +0 -0
- /package/dist/chunks/{file-mutation-mp448xyj.js → managed-policy-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-mutation-msx8hqn2.js → managed-policy-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-mutation-n05xt0ee.js → managed-policy-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-mutation-n3j8tn72.js → managed-policy-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-mutation-njntx4h6.js → managed-policy-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-mutation-pkyv6v7h.js → managed-policy-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{file-mutation-q3sfg36h.js → managed-policy-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-mutation-q74kybfr.js → managed-policy-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-mutation-qaymkmh1.js → managed-policy-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-mutation-qb87gjwd.js → managed-policy-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-mutation-qfa1cgps.js → managed-policy-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-mutation-qg3g05ea.js → managed-policy-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-mutation-qrg20bc0.js → managed-policy-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-mutation-rcb2kzg1.js → managed-policy-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-mutation-sdp7kfr6.js → managed-policy-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-mutation-ssg3fenm.js → managed-policy-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-mutation-ve7vex1e.js → managed-policy-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-mutation-w803qqfp.js → managed-policy-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-mutation-wc3fc9cn.js → managed-policy-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-mutation-wer8tq1h.js → managed-policy-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-mutation-wjj7prxr.js → managed-policy-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-mutation-wtztk69x.js → managed-policy-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-mutation-x0ckcb58.js → managed-policy-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-mutation-x61499pn.js → managed-policy-x61499pn.js} +0 -0
- /package/dist/chunks/{file-mutation-y44na4kk.js → managed-policy-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-mutation-y8f7s663.js → managed-policy-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-mutation-ygaqb7jw.js → managed-policy-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-mutation-ym463w8f.js → managed-policy-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-mutation-z5v4ffb3.js → managed-policy-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-mutation-z9919s4g.js → managed-policy-z9919s4g.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
} from "./
|
|
2
|
+
ID13,
|
|
3
|
+
Service76,
|
|
4
|
+
node80
|
|
5
|
+
} from "./managed-policy-bewwd09f.js";
|
|
6
6
|
import {
|
|
7
7
|
ID12,
|
|
8
8
|
isAISDK2,
|
|
@@ -15,24 +15,24 @@ import {
|
|
|
15
15
|
encoding2,
|
|
16
16
|
mergeOverlay2,
|
|
17
17
|
mergeHeaders2,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service75,
|
|
19
|
+
node79
|
|
20
|
+
} from "./managed-policy-7f63ea2z.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from "./
|
|
22
|
+
Service66,
|
|
23
|
+
node70
|
|
24
|
+
} from "./managed-policy-mj47herm.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
26
|
+
ID7,
|
|
27
27
|
VariantID2,
|
|
28
28
|
Ref2,
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
Service67,
|
|
30
|
+
node71,
|
|
31
31
|
supportsText2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./managed-policy-5be5tbrh.js";
|
|
33
33
|
import {
|
|
34
34
|
__export
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
36
36
|
|
|
37
37
|
// src/model-resolver.ts
|
|
38
38
|
var exports_model_resolver = {};
|
|
@@ -41,15 +41,15 @@ __export(exports_model_resolver, {
|
|
|
41
41
|
ModelConfigurationError: () => ModelConfigurationError2,
|
|
42
42
|
ModelInitializationError: () => ModelInitializationError2,
|
|
43
43
|
ModelResolver: () => exports_model_resolver,
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service65,
|
|
45
45
|
UnresolvedProviderVariablesError: () => UnresolvedProviderVariablesError2,
|
|
46
46
|
UnsupportedCompactionError: () => UnsupportedCompactionError2,
|
|
47
47
|
UnsupportedPackageError: () => UnsupportedPackageError2,
|
|
48
48
|
VariantUnavailableError: () => VariantUnavailableError2,
|
|
49
49
|
fromCatalogModel: () => fromCatalogModel2,
|
|
50
50
|
hasPackage: () => hasPackage2,
|
|
51
|
-
layer: () =>
|
|
52
|
-
node: () =>
|
|
51
|
+
layer: () => layer26,
|
|
52
|
+
node: () => node69,
|
|
53
53
|
resolveModel: () => resolveModel3,
|
|
54
54
|
withVariant: () => withVariant2
|
|
55
55
|
});
|
|
@@ -60,7 +60,7 @@ import { Context, Effect, Layer, Schema, Struct } from "effect";
|
|
|
60
60
|
import { Npm } from "@opencode/util/npm";
|
|
61
61
|
class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.VariantUnavailableError", {
|
|
62
62
|
providerID: ID12,
|
|
63
|
-
modelID:
|
|
63
|
+
modelID: ID7,
|
|
64
64
|
variant: VariantID2
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
@@ -70,7 +70,7 @@ class VariantUnavailableError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
70
70
|
|
|
71
71
|
class UnsupportedPackageError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedPackageError", {
|
|
72
72
|
providerID: ID12,
|
|
73
|
-
modelID:
|
|
73
|
+
modelID: ID7,
|
|
74
74
|
package: Schema.String
|
|
75
75
|
}) {
|
|
76
76
|
get message() {
|
|
@@ -81,7 +81,7 @@ var InitializationPhase2 = Schema.Literals(["load", "init", "construct"]);
|
|
|
81
81
|
|
|
82
82
|
class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelConfigurationError", {
|
|
83
83
|
providerID: ID12,
|
|
84
|
-
modelID:
|
|
84
|
+
modelID: ID7,
|
|
85
85
|
package: Schema.String,
|
|
86
86
|
detail: Schema.String
|
|
87
87
|
}) {
|
|
@@ -92,7 +92,7 @@ class ModelConfigurationError2 extends Schema.TaggedError()("SessionRunnerModel.
|
|
|
92
92
|
|
|
93
93
|
class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel.ModelInitializationError", {
|
|
94
94
|
providerID: ID12,
|
|
95
|
-
modelID:
|
|
95
|
+
modelID: ID7,
|
|
96
96
|
package: Schema.String,
|
|
97
97
|
phase: InitializationPhase2,
|
|
98
98
|
detail: Schema.String
|
|
@@ -104,7 +104,7 @@ class ModelInitializationError2 extends Schema.TaggedError()("SessionRunnerModel
|
|
|
104
104
|
|
|
105
105
|
class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRunnerModel.UnresolvedProviderVariablesError", {
|
|
106
106
|
providerID: ID12,
|
|
107
|
-
modelID:
|
|
107
|
+
modelID: ID7,
|
|
108
108
|
variables: Schema.Array(Schema.String)
|
|
109
109
|
}) {
|
|
110
110
|
get message() {
|
|
@@ -114,7 +114,7 @@ class UnresolvedProviderVariablesError2 extends Schema.TaggedError()("SessionRun
|
|
|
114
114
|
|
|
115
115
|
class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerModel.UnsupportedCompactionError", {
|
|
116
116
|
providerID: ID12,
|
|
117
|
-
modelID:
|
|
117
|
+
modelID: ID7,
|
|
118
118
|
route: Schema.String
|
|
119
119
|
}) {
|
|
120
120
|
get message() {
|
|
@@ -122,7 +122,7 @@ class UnsupportedCompactionError2 extends Schema.TaggedError()("SessionRunnerMod
|
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
class
|
|
125
|
+
class Service65 extends Context.Service()("@opencode/ModelResolver") {
|
|
126
126
|
}
|
|
127
127
|
var withVariant2 = (model, variantID) => {
|
|
128
128
|
const id = variantID === "default" ? undefined : variantID;
|
|
@@ -269,15 +269,15 @@ var causeMessage = (cause) => {
|
|
|
269
269
|
};
|
|
270
270
|
var resolveModel3 = (model, variant, credential, dependencies) => withVariant2(model, variant).pipe(Effect.flatMap((model) => fromCatalogModel2(model, credential, dependencies)));
|
|
271
271
|
var hasPackage2 = (model) => Boolean(model.package);
|
|
272
|
-
var
|
|
273
|
-
const providers = yield*
|
|
274
|
-
const models = yield*
|
|
275
|
-
const integrations = yield*
|
|
272
|
+
var layer26 = Layer.effect(Service65, Effect.gen(function* () {
|
|
273
|
+
const providers = yield* Service75;
|
|
274
|
+
const models = yield* Service67;
|
|
275
|
+
const integrations = yield* Service76;
|
|
276
276
|
const npm = yield* Npm.Service;
|
|
277
|
-
const aisdk = yield*
|
|
277
|
+
const aisdk = yield* Service66;
|
|
278
278
|
const load = Effect.fn("ModelResolver.resolveModel")(function* (selected, variant) {
|
|
279
279
|
const provider = yield* providers.get(selected.providerID);
|
|
280
|
-
const connection = yield* integrations.connection.active(provider?.integrationID ??
|
|
280
|
+
const connection = yield* integrations.connection.active(provider?.integrationID ?? ID13.make(selected.providerID));
|
|
281
281
|
const credential = connection ? yield* integrations.connection.resolve(connection) : undefined;
|
|
282
282
|
const selectedVariant = yield* withVariant2(selected, variant);
|
|
283
283
|
const runtimeInfo = {
|
|
@@ -304,7 +304,7 @@ var layer19 = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
304
304
|
chunkTimeout: timeout2(provider?.settings?.chunkTimeout)
|
|
305
305
|
};
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service65.of({
|
|
308
308
|
resolve: Effect.fn("ModelResolver.resolve")(function* (requested) {
|
|
309
309
|
const selected = requested ? yield* models.get(requested.providerID, requested.id) : yield* models.default().pipe(Effect.flatMap((model) => model && hasPackage2(model) ? Effect.succeed(model) : Effect.map(models.available(), (models) => models.find((model) => hasPackage2(model) && supportsText2(model)))));
|
|
310
310
|
if (!selected)
|
|
@@ -321,10 +321,10 @@ function usesAPIKeyAuth(packageName) {
|
|
|
321
321
|
const name = packageName2(packageName);
|
|
322
322
|
return name === "@ai-sdk/openai" || name === "@ai-sdk/anthropic" || name === "@ai-sdk/cerebras" || name === "@ai-sdk/deepinfra" || name === "@ai-sdk/openai-compatible" || name === "@ai-sdk/google" || name === "@ai-sdk/groq" || name === "@ai-sdk/mistral" || name === "@ai-sdk/togetherai" || name === "@ai-sdk/xai" || name === "@openrouter/ai-sdk-provider" || name === "@ai-sdk/azure" || name === "@opencode/ai/providers/openai" || name?.startsWith("@opencode/ai/providers/openai/") === true || name === "@opencode/ai/providers/anthropic" || name === "@opencode/ai/providers/anthropic-compatible" || name === "@opencode/ai/providers/baseten" || name === "@opencode/ai/providers/cerebras" || name === "@opencode/ai/providers/cloudflare-ai-gateway" || name === "@opencode/ai/providers/cloudflare-workers-ai" || name === "@opencode/ai/providers/deepinfra" || name === "@opencode/ai/providers/deepseek" || name === "@opencode/ai/providers/fireworks" || name === "@opencode/ai/providers/openai-compatible" || name === "@opencode/ai/providers/google" || name === "@opencode/ai/providers/google/interactions" || name === "@opencode/ai/providers/groq" || name === "@opencode/ai/providers/mistral" || name === "@opencode/ai/providers/togetherai" || name === "@opencode/ai/providers/vercel-ai-gateway" || name === "@opencode/ai/providers/xai" || name === "@opencode/ai/providers/openrouter" || name === "@opencode/ai/providers/azure" || name?.startsWith("@opencode/ai/providers/azure/") === true;
|
|
323
323
|
}
|
|
324
|
-
var
|
|
325
|
-
service:
|
|
326
|
-
layer:
|
|
327
|
-
deps: [
|
|
324
|
+
var node69 = makeLocationNode({
|
|
325
|
+
service: Service65,
|
|
326
|
+
layer: layer26,
|
|
327
|
+
deps: [node79, node71, node80, Npm.node, node70]
|
|
328
328
|
});
|
|
329
329
|
|
|
330
|
-
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2,
|
|
330
|
+
export { VariantUnavailableError2, UnsupportedPackageError2, InitializationPhase2, ModelConfigurationError2, ModelInitializationError2, UnresolvedProviderVariablesError2, UnsupportedCompactionError2, Service65, withVariant2, fromCatalogModel2, resolveModel3, hasPackage2, layer26, node69, exports_model_resolver };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Entries2,
|
|
6
6
|
Info14
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./managed-policy-1y0wdj51.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/v1/config/agent.ts
|
|
13
13
|
var exports_agent3 = {};
|
|
14
14
|
__export(exports_agent3, {
|
|
15
15
|
ConfigAgentV1: () => exports_agent3,
|
|
16
|
-
Info: () =>
|
|
16
|
+
Info: () => Info13
|
|
17
17
|
});
|
|
18
18
|
import { Schema, SchemaGetter } from "effect";
|
|
19
19
|
var Color = Schema.Union([
|
|
@@ -64,9 +64,9 @@ var normalize = (agent) => {
|
|
|
64
64
|
const steps = agent.steps ?? agent.maxSteps;
|
|
65
65
|
return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
|
|
66
66
|
};
|
|
67
|
-
var
|
|
67
|
+
var Info13 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
|
|
68
68
|
decode: SchemaGetter.transform(normalize),
|
|
69
69
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
70
70
|
})).annotate({ identifier: "AgentConfig" });
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { Info13, exports_agent3 };
|
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
import {
|
|
2
2
|
key2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-s626qfae.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-5zwc8z7d.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Event16
|
|
10
|
+
} from "./managed-policy-7c9yzdv1.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
12
|
+
ID13,
|
|
13
13
|
MethodID2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./managed-policy-bewwd09f.js";
|
|
15
15
|
import {
|
|
16
16
|
ID12,
|
|
17
17
|
aisdk2,
|
|
18
18
|
mergeOverlay2,
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
19
|
+
Service75
|
|
20
|
+
} from "./managed-policy-7f63ea2z.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID7
|
|
23
|
+
} from "./managed-policy-5be5tbrh.js";
|
|
24
24
|
import {
|
|
25
25
|
load2,
|
|
26
26
|
derive2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./managed-policy-50ra4brc.js";
|
|
28
28
|
import {
|
|
29
29
|
useragent2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./managed-policy-4f6wjw9b.js";
|
|
31
31
|
import {
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
32
|
+
ID10
|
|
33
|
+
} from "./managed-policy-86gmn33h.js";
|
|
34
34
|
import {
|
|
35
35
|
get5
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./managed-policy-3nnrz6f6.js";
|
|
37
37
|
|
|
38
38
|
// src/plugin/provider/github-copilot.ts
|
|
39
39
|
import { isRecord } from "@opencode/ai/utils/record";
|
|
@@ -66,7 +66,7 @@ var decodeUser = Schema.decodeUnknownOption(User);
|
|
|
66
66
|
var JsonBody = Schema.fromJsonString(Schema.Unknown);
|
|
67
67
|
var decodeBody = Schema.decodeUnknownOption(JsonBody);
|
|
68
68
|
var oauth = (app) => ({
|
|
69
|
-
integrationID:
|
|
69
|
+
integrationID: ID13.make("github-copilot"),
|
|
70
70
|
method: {
|
|
71
71
|
id: methodID,
|
|
72
72
|
type: "oauth",
|
|
@@ -164,7 +164,7 @@ var oauth = (app) => ({
|
|
|
164
164
|
var GithubCopilotPlugin2 = define({
|
|
165
165
|
id: "opencode.provider.github.copilot",
|
|
166
166
|
effect: Effect.fn(function* (ctx) {
|
|
167
|
-
const providers = yield*
|
|
167
|
+
const providers = yield* Service75;
|
|
168
168
|
const bus = yield* Service86;
|
|
169
169
|
const loading = Semaphore.makeUnsafe(1);
|
|
170
170
|
const loaded = {};
|
|
@@ -231,14 +231,14 @@ var GithubCopilotPlugin2 = define({
|
|
|
231
231
|
}
|
|
232
232
|
});
|
|
233
233
|
yield* ctx.model.transform((models) => {
|
|
234
|
-
if (models.get(ID12.githubCopilot,
|
|
235
|
-
models.update(ID12.githubCopilot,
|
|
234
|
+
if (models.get(ID12.githubCopilot, ID7.make("gpt-5-chat-latest"))) {
|
|
235
|
+
models.update(ID12.githubCopilot, ID7.make("gpt-5-chat-latest"), (model) => {
|
|
236
236
|
model.enabled = false;
|
|
237
237
|
});
|
|
238
238
|
}
|
|
239
239
|
});
|
|
240
240
|
const refresh = () => loading.withPermit(load().pipe(Effect.andThen(ctx.provider.reload())));
|
|
241
|
-
yield* bus.subscribe(
|
|
241
|
+
yield* bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID13.make("github-copilot")), Stream.runForEach(refresh), Effect.forkScoped({ startImmediately: true }));
|
|
242
242
|
yield* refresh().pipe(Effect.forkScoped);
|
|
243
243
|
yield* ctx.aisdk.hook("sdk", Effect.fn(function* (evt) {
|
|
244
244
|
if (evt.model.providerID !== ID12.githubCopilot)
|
|
@@ -266,7 +266,7 @@ var GithubCopilotPlugin2 = define({
|
|
|
266
266
|
return;
|
|
267
267
|
if (!loaded.baseURL || !loaded.token || !loaded.models)
|
|
268
268
|
return;
|
|
269
|
-
const agent = yield* ctx.agent.get({ agentID:
|
|
269
|
+
const agent = yield* ctx.agent.get({ agentID: ID10.make("title") }).pipe(Effect.orElseSucceed(() => {
|
|
270
270
|
return;
|
|
271
271
|
}));
|
|
272
272
|
if (agent?.data.model)
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/v1/config/provider.ts
|
|
9
9
|
var exports_provider2 = {};
|
|
10
10
|
__export(exports_provider2, {
|
|
11
11
|
ConfigProviderV1: () => exports_provider2,
|
|
12
|
-
Info: () =>
|
|
12
|
+
Info: () => Info12,
|
|
13
13
|
Model: () => Model2,
|
|
14
14
|
ModelStatus: () => ModelStatus2
|
|
15
15
|
});
|
|
@@ -61,7 +61,7 @@ var Model2 = Schema.Struct({
|
|
|
61
61
|
disabled: Schema.optional(Schema.Boolean).annotate({ description: "Disable this variant for the model" })
|
|
62
62
|
}), [Schema.Record(Schema.String, Schema.Any)])).annotate({ description: "Variant-specific configuration" }))
|
|
63
63
|
});
|
|
64
|
-
var
|
|
64
|
+
var Info12 = Schema.Struct({
|
|
65
65
|
api: Schema.optional(Schema.String),
|
|
66
66
|
name: Schema.optional(Schema.String),
|
|
67
67
|
env: Schema.optional(Schema.mutable(Schema.Array(Schema.String))),
|
|
@@ -91,4 +91,4 @@ var Info13 = Schema.Struct({
|
|
|
91
91
|
models: Schema.optional(Schema.Record(Schema.String, Model2))
|
|
92
92
|
}).annotate({ identifier: "ProviderConfig" });
|
|
93
93
|
|
|
94
|
-
export { ModelStatus2, Model2,
|
|
94
|
+
export { ModelStatus2, Model2, Info12, exports_provider2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
jitCompatCheck2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-emrn6kk6.js";
|
|
4
4
|
import {
|
|
5
5
|
SQLiteEffectDatabase2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-kz8nn0w5.js";
|
|
7
7
|
import {
|
|
8
8
|
EffectSQLiteSession2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-n6x2fb8a.js";
|
|
10
10
|
|
|
11
11
|
// src/database/drizzle/effect-sqlite/driver.ts
|
|
12
12
|
import * as Effect from "effect/Effect";
|
|
@@ -2,16 +2,16 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./managed-policy-n6x2fb8a.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
9
|
make23,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-agyg961t.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/database/drizzle/index.ts
|
|
17
17
|
var exports_drizzle = {};
|
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-qjgzc4b4.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86,
|
|
6
6
|
node90
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./managed-policy-5zwc8z7d.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
node88
|
|
12
|
-
} from "./file-mutation-e9jwpacd.js";
|
|
13
|
-
import {
|
|
14
|
-
Service78,
|
|
9
|
+
Event16,
|
|
10
|
+
Service77,
|
|
15
11
|
node81
|
|
16
|
-
} from "./
|
|
12
|
+
} from "./managed-policy-7c9yzdv1.js";
|
|
17
13
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
14
|
+
Service82,
|
|
15
|
+
node86
|
|
16
|
+
} from "./managed-policy-e22n6ctv.js";
|
|
21
17
|
import {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
18
|
+
Service48,
|
|
19
|
+
node52
|
|
20
|
+
} from "./managed-policy-ch7yww4p.js";
|
|
21
|
+
import {
|
|
22
|
+
ID15,
|
|
23
|
+
Service78,
|
|
24
|
+
node82
|
|
25
|
+
} from "./managed-policy-kttwta8x.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./managed-policy-vd3b3yk9.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID13,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service76,
|
|
34
|
+
node80
|
|
35
|
+
} from "./managed-policy-bewwd09f.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
42
42
|
__export(exports_mcp4, {
|
|
43
43
|
Mcp: () => exports_mcp4,
|
|
44
44
|
NotFoundError: () => NotFoundError3,
|
|
45
|
-
Options: () =>
|
|
45
|
+
Options: () => Options4,
|
|
46
46
|
PromptsChanged: () => PromptsChanged2,
|
|
47
47
|
Resource: () => Resource2,
|
|
48
48
|
ResourceCatalog: () => ResourceCatalog2,
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service34,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
|
-
configured: () =>
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
55
|
+
configured: () => configured4,
|
|
56
|
+
layer: () => layer15,
|
|
57
|
+
node: () => node37
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -104,21 +104,21 @@ var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
|
104
104
|
var endpointLoads = makeUnsafe2();
|
|
105
105
|
var cloneConfig = (config) => structuredClone(config);
|
|
106
106
|
|
|
107
|
-
class
|
|
107
|
+
class Service34 extends Context.Service()("@opencode/MCP") {
|
|
108
108
|
}
|
|
109
|
-
var
|
|
109
|
+
var Options4 = Schema.Struct({
|
|
110
110
|
clientInfo: Schema.optional(Schema.Struct({
|
|
111
111
|
name: Schema.String,
|
|
112
112
|
version: Schema.String
|
|
113
113
|
}))
|
|
114
114
|
});
|
|
115
|
-
var
|
|
116
|
-
const location = yield*
|
|
117
|
-
const environment = yield*
|
|
115
|
+
var layer15 = (options) => Layer.effect(Service34, Effect.gen(function* () {
|
|
116
|
+
const location = yield* Service82;
|
|
117
|
+
const environment = yield* Service48;
|
|
118
118
|
const bus = yield* Service86;
|
|
119
|
-
const forms = yield*
|
|
120
|
-
const integration = yield*
|
|
121
|
-
const credentials = yield*
|
|
119
|
+
const forms = yield* Service78;
|
|
120
|
+
const integration = yield* Service76;
|
|
121
|
+
const credentials = yield* Service77;
|
|
122
122
|
const root = yield* Effect.scope;
|
|
123
123
|
const fork = yield* FiberSet.makeRuntime();
|
|
124
124
|
const servers = yield* Scope.fork(root, "parallel");
|
|
@@ -133,7 +133,7 @@ var layer12 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
133
133
|
return;
|
|
134
134
|
const remote = entry.config;
|
|
135
135
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
136
|
-
const integrationID =
|
|
136
|
+
const integrationID = ID13.make(suffix);
|
|
137
137
|
entry.integrationID = integrationID;
|
|
138
138
|
owned.add(integrationID);
|
|
139
139
|
const methodID = MethodID2.make(suffix);
|
|
@@ -149,7 +149,7 @@ var layer12 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
149
149
|
method: { id: methodID, type: "oauth", label: name },
|
|
150
150
|
authorize: () => Effect.gen(function* () {
|
|
151
151
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
152
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
152
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service77, credentials));
|
|
153
153
|
})
|
|
154
154
|
});
|
|
155
155
|
}).pipe(Scope.provide(scope));
|
|
@@ -164,12 +164,12 @@ var layer12 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
164
164
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
165
165
|
return;
|
|
166
166
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
167
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
167
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service77, credentials));
|
|
168
168
|
});
|
|
169
169
|
const elicitation = {
|
|
170
170
|
create: (input) => Effect.gen(function* () {
|
|
171
171
|
if (input.params.mode === "url") {
|
|
172
|
-
const formID =
|
|
172
|
+
const formID = ID15.create();
|
|
173
173
|
const elicitationID = input.params.elicitationId;
|
|
174
174
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
175
175
|
if (key)
|
|
@@ -272,7 +272,7 @@ var layer12 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
272
272
|
entry.scope = scope;
|
|
273
273
|
const authProvider = yield* connectProvider(entry);
|
|
274
274
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
275
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
275
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service48, environment), Scope.provide(scope));
|
|
276
276
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
277
277
|
if (Exit.isSuccess(result)) {
|
|
278
278
|
entry.client = result.value.connection;
|
|
@@ -373,7 +373,7 @@ var layer12 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
373
373
|
let closed = false;
|
|
374
374
|
const result = yield* McpClient.connect(name, { type: "attached", transport }, location.directory, undefined, elicitation, options?.clientInfo).pipe(Effect.tap((connection) => Effect.sync(() => connection.onClose(() => {
|
|
375
375
|
closed = true;
|
|
376
|
-
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
376
|
+
}))), Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service48, environment), Scope.provide(scope), Effect.onError(() => Scope.close(scope, Exit.void)), Effect.mapError((error) => error instanceof McpClient.ConnectError ? error : new McpClient.ConnectError({ server: name, message: error.message })));
|
|
377
377
|
const register = Effect.gen(function* () {
|
|
378
378
|
if (closed) {
|
|
379
379
|
yield* Scope.close(scope, Exit.void);
|
|
@@ -452,7 +452,7 @@ var layer12 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
452
452
|
yield* startServer(name, entry);
|
|
453
453
|
}).pipe(locks.withLock(name));
|
|
454
454
|
});
|
|
455
|
-
fork(bus.subscribe(
|
|
455
|
+
fork(bus.subscribe(Event16.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
456
456
|
const state = create3({
|
|
457
457
|
name: "mcp",
|
|
458
458
|
initial: () => ({
|
|
@@ -478,7 +478,7 @@ var layer12 = (options) => Layer.effect(Service29, Effect.gen(function* () {
|
|
|
478
478
|
}),
|
|
479
479
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
480
480
|
});
|
|
481
|
-
return
|
|
481
|
+
return Service34.of({
|
|
482
482
|
transform: state.transform,
|
|
483
483
|
reload: state.reload,
|
|
484
484
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -606,14 +606,14 @@ function mergeCatalogs(catalogs) {
|
|
|
606
606
|
templates: catalogs.flatMap((catalog) => catalog.templates).toSorted((a, b) => a.server.localeCompare(b.server) || a.name.localeCompare(b.name) || a.uriTemplate.localeCompare(b.uriTemplate))
|
|
607
607
|
});
|
|
608
608
|
}
|
|
609
|
-
function
|
|
609
|
+
function configured4(options) {
|
|
610
610
|
return makeLocationNode({
|
|
611
|
-
service:
|
|
612
|
-
layer:
|
|
613
|
-
deps: [
|
|
611
|
+
service: Service34,
|
|
612
|
+
layer: layer15(options),
|
|
613
|
+
deps: [node86, node52, node90, node82, node80, node81]
|
|
614
614
|
});
|
|
615
615
|
}
|
|
616
|
-
var
|
|
616
|
+
var node37 = configured4();
|
|
617
617
|
function toElicitationField(key, property, required) {
|
|
618
618
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
619
619
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -664,4 +664,4 @@ function toElicitationField(key, property, required) {
|
|
|
664
664
|
}
|
|
665
665
|
}
|
|
666
666
|
|
|
667
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2,
|
|
667
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError3, ToolCallError2, Service34, Options4, layer15, configured4, node37, exports_mcp4 };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/session/schema.ts
|
|
2
2
|
import * as SessionSchema2 from "@opencode/schema/session";
|
|
3
3
|
import { Session } from "@opencode/schema/session";
|
|
4
|
-
var
|
|
4
|
+
var ID11 = Session.ID;
|
|
5
5
|
var Info19 = Session.Info;
|
|
6
6
|
|
|
7
|
-
export {
|
|
7
|
+
export { ID11, Info19, SessionSchema2 };
|
|
@@ -2,37 +2,37 @@ import {
|
|
|
2
2
|
ephemeral2,
|
|
3
3
|
Service86,
|
|
4
4
|
node90
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./managed-policy-5zwc8z7d.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/sdk.ts
|
|
11
11
|
var exports_sdk = {};
|
|
12
12
|
__export(exports_sdk, {
|
|
13
13
|
SdkPlugins: () => exports_sdk,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service3,
|
|
15
15
|
Updated: () => Updated2,
|
|
16
16
|
layer: () => layer4,
|
|
17
|
-
node: () =>
|
|
17
|
+
node: () => node4
|
|
18
18
|
});
|
|
19
19
|
import { Context, Effect, Layer } from "effect";
|
|
20
20
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
var Updated2 = ephemeral2({ type: "sdk.plugin.updated", schema: {} });
|
|
22
22
|
|
|
23
|
-
class
|
|
23
|
+
class Service3 extends Context.Service()("@opencode/SdkPlugins") {
|
|
24
24
|
}
|
|
25
|
-
var layer4 = Layer.effect(
|
|
25
|
+
var layer4 = Layer.effect(Service3, Effect.gen(function* () {
|
|
26
26
|
const bus = yield* Service86;
|
|
27
27
|
const plugins = new Map;
|
|
28
28
|
let revision = 0;
|
|
29
|
-
return
|
|
29
|
+
return Service3.of({
|
|
30
30
|
register: (plugin) => Effect.sync(() => {
|
|
31
31
|
plugins.set(plugin.id, { ...plugin, revision: String(++revision), source: { type: "sdk" } });
|
|
32
32
|
}).pipe(Effect.andThen(bus.publish(Updated2, {}, { global: true })), Effect.asVoid),
|
|
33
33
|
all: () => [...plugins.values()]
|
|
34
34
|
});
|
|
35
35
|
}));
|
|
36
|
-
var
|
|
36
|
+
var node4 = makeGlobalNode({ service: Service3, layer: layer4, deps: [node90] });
|
|
37
37
|
|
|
38
|
-
export { Updated2,
|
|
38
|
+
export { Updated2, Service3, layer4, node4, exports_sdk };
|