@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,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-8aw03fbr.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./managed-policy-5zwc8z7d.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./managed-policy-m1714858.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./managed-policy-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: () => Event16,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID14,
|
|
26
|
+
Info: () => Info23,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service77,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node81
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
@@ -36,31 +36,31 @@ import { Credential } from "@opencode/schema/credential";
|
|
|
36
36
|
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
|
-
var
|
|
39
|
+
var ID14 = Credential.ID;
|
|
40
40
|
var OAuth3 = Credential.OAuth;
|
|
41
41
|
var Key4 = Credential.Key;
|
|
42
42
|
var External2 = Credential.External;
|
|
43
43
|
var Value2 = Credential.Value;
|
|
44
|
-
var
|
|
44
|
+
var Event16 = Credential.Event;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info23 extends Schema.Class("Credential.Info")({
|
|
47
|
+
id: ID14,
|
|
48
48
|
integrationID: Integration.ID,
|
|
49
49
|
label: Schema.String,
|
|
50
50
|
value: Value2
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service77 extends Context.Service()("@opencode/Credential") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
56
|
+
var layer = Layer.effect(Service77, Effect.gen(function* () {
|
|
57
57
|
const db = (yield* Service87).db;
|
|
58
58
|
const bus = yield* Service86;
|
|
59
59
|
const decode = Schema.decodeUnknownSync(CredentialLegacy.Value);
|
|
60
60
|
const stored = (row) => {
|
|
61
61
|
if (!row.integration_id)
|
|
62
62
|
return;
|
|
63
|
-
return new
|
|
63
|
+
return new Info23({
|
|
64
64
|
id: row.id,
|
|
65
65
|
integrationID: row.integration_id,
|
|
66
66
|
label: row.label,
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
71
71
|
const credential = stored(row);
|
|
72
72
|
return credential ? [credential] : [];
|
|
73
73
|
});
|
|
74
|
-
return
|
|
74
|
+
return Service77.of({
|
|
75
75
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
76
76
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
77
77
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -79,8 +79,8 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
79
79
|
return row ? stored(row) : undefined;
|
|
80
80
|
}),
|
|
81
81
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
82
|
-
const credential = new
|
|
83
|
-
id: input.id ??
|
|
82
|
+
const credential = new Info23({
|
|
83
|
+
id: input.id ?? ID14.create(),
|
|
84
84
|
integrationID: input.integrationID,
|
|
85
85
|
label: input.label ?? "default",
|
|
86
86
|
value: input.value
|
|
@@ -111,9 +111,9 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
111
111
|
type: credential.value.type,
|
|
112
112
|
active: activated
|
|
113
113
|
});
|
|
114
|
-
yield* bus.publish(
|
|
114
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
115
115
|
if (activated)
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event16.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
117
117
|
return credential;
|
|
118
118
|
}),
|
|
119
119
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -133,7 +133,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
133
133
|
})), Effect.orDie);
|
|
134
134
|
if (integrationID) {
|
|
135
135
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
136
|
-
yield* bus.publish(
|
|
136
|
+
yield* bus.publish(Event16.Switched, { integrationID, credentialID: id }, { global: true });
|
|
137
137
|
}
|
|
138
138
|
}),
|
|
139
139
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -165,7 +165,7 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
165
165
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
166
166
|
});
|
|
167
167
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
168
|
-
yield* bus.publish(
|
|
168
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
169
169
|
}),
|
|
170
170
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
171
171
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -198,12 +198,12 @@ var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
|
198
198
|
active: removed.switched,
|
|
199
199
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
200
200
|
});
|
|
201
|
-
yield* bus.publish(
|
|
201
|
+
yield* bus.publish(Event16.Updated, {}, { global: true });
|
|
202
202
|
if (removed.switched)
|
|
203
|
-
yield* bus.publish(
|
|
203
|
+
yield* bus.publish(Event16.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
}));
|
|
207
|
-
var
|
|
207
|
+
var node81 = makeGlobalNode({ service: Service77, layer, deps: [node91, node90] });
|
|
208
208
|
|
|
209
|
-
export {
|
|
209
|
+
export { ID14, OAuth3, Key4, External2, Value2, Event16, Info23, Service77, node81, exports_credential };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make21,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-jneg3k74.js";
|
|
7
7
|
import {
|
|
8
8
|
evaluate2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-knp52wmd.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service34,
|
|
12
|
+
node37
|
|
13
|
+
} from "./managed-policy-arckp0tt.js";
|
|
14
14
|
import {
|
|
15
15
|
namespace2,
|
|
16
16
|
name14
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./managed-policy-7pghdm2f.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/mcp/instructions.ts
|
|
23
|
-
var
|
|
24
|
-
__export(
|
|
25
|
-
McpInstructions: () =>
|
|
26
|
-
Service: () =>
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
23
|
+
var exports_instructions5 = {};
|
|
24
|
+
__export(exports_instructions5, {
|
|
25
|
+
McpInstructions: () => exports_instructions5,
|
|
26
|
+
Service: () => Service31,
|
|
27
|
+
layer: () => layer13,
|
|
28
|
+
node: () => node34
|
|
29
29
|
});
|
|
30
30
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
31
31
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -65,13 +65,13 @@ var update = (previous, current) => {
|
|
|
65
65
|
`);
|
|
66
66
|
};
|
|
67
67
|
|
|
68
|
-
class
|
|
68
|
+
class Service31 extends Context.Service()("@opencode/McpInstructions") {
|
|
69
69
|
}
|
|
70
|
-
var
|
|
71
|
-
const mcp = yield*
|
|
72
|
-
return
|
|
70
|
+
var layer13 = Layer.effect(Service31, Effect.gen(function* () {
|
|
71
|
+
const mcp = yield* Service34;
|
|
72
|
+
return Service31.of({
|
|
73
73
|
load: Effect.fn("McpInstructions.load")(function* (permissions) {
|
|
74
|
-
const source = (value) =>
|
|
74
|
+
const source = (value) => make21({
|
|
75
75
|
key: Key3.make("core/mcp-guidance"),
|
|
76
76
|
codec: Schema.toCodecJson(Schema.Array(Summary)),
|
|
77
77
|
read: Effect.succeed(value),
|
|
@@ -100,6 +100,6 @@ var layer10 = Layer.effect(Service25, Effect.gen(function* () {
|
|
|
100
100
|
})
|
|
101
101
|
});
|
|
102
102
|
}));
|
|
103
|
-
var
|
|
103
|
+
var node34 = makeLocationNode({ service: Service31, layer: layer13, deps: [node37] });
|
|
104
104
|
|
|
105
|
-
export {
|
|
105
|
+
export { Service31, layer13, node34, exports_instructions5 };
|
|
@@ -1,83 +1,83 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-8aw03fbr.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./managed-policy-5zwc8z7d.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-vd3b3yk9.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
13
|
+
ID10,
|
|
14
|
+
Service73,
|
|
15
|
+
node77
|
|
16
|
+
} from "./managed-policy-86gmn33h.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./managed-policy-p015t6z3.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service67,
|
|
22
|
+
node71
|
|
23
|
+
} from "./managed-policy-5be5tbrh.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./managed-policy-8wtp7s3z.js";
|
|
27
27
|
import {
|
|
28
28
|
SessionEvent2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./managed-policy-ec1grn59.js";
|
|
30
30
|
import {
|
|
31
31
|
kept2,
|
|
32
32
|
messageToText2,
|
|
33
33
|
serializeToolContent2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./managed-policy-v2r1d0zg.js";
|
|
35
35
|
import {
|
|
36
36
|
isNativeCompaction2,
|
|
37
37
|
load5
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./managed-policy-mbfac0q8.js";
|
|
39
39
|
import {
|
|
40
40
|
toLLMMessages2
|
|
41
|
-
} from "./
|
|
41
|
+
} from "./managed-policy-4pavydbz.js";
|
|
42
42
|
import {
|
|
43
43
|
outputLimit2,
|
|
44
44
|
baseTranscript2,
|
|
45
45
|
unsupportedParts2,
|
|
46
46
|
boundImages2,
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
} from "./
|
|
47
|
+
Service35,
|
|
48
|
+
node38
|
|
49
|
+
} from "./managed-policy-ckq7ezzg.js";
|
|
50
50
|
import {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
} from "./
|
|
51
|
+
Service60,
|
|
52
|
+
node64
|
|
53
|
+
} from "./managed-policy-55w14brw.js";
|
|
54
54
|
import {
|
|
55
55
|
isRetryable2,
|
|
56
56
|
policy2
|
|
57
|
-
} from "./
|
|
57
|
+
} from "./managed-policy-c8666r4c.js";
|
|
58
58
|
import {
|
|
59
59
|
toSessionError2,
|
|
60
60
|
contentFilterError2
|
|
61
|
-
} from "./
|
|
61
|
+
} from "./managed-policy-mchxfxvw.js";
|
|
62
62
|
import {
|
|
63
63
|
calculateCost2,
|
|
64
64
|
record2,
|
|
65
65
|
add2
|
|
66
|
-
} from "./
|
|
66
|
+
} from "./managed-policy-r542h3bh.js";
|
|
67
67
|
import {
|
|
68
68
|
__export
|
|
69
|
-
} from "./
|
|
69
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
70
70
|
|
|
71
71
|
// src/session/compaction.ts
|
|
72
72
|
var exports_compaction2 = {};
|
|
73
73
|
__export(exports_compaction2, {
|
|
74
|
-
Service: () =>
|
|
74
|
+
Service: () => Service10,
|
|
75
75
|
SessionCompaction: () => exports_compaction2,
|
|
76
76
|
buildPrompt: () => buildPrompt2,
|
|
77
77
|
estimateContext: () => estimateContext2,
|
|
78
78
|
estimatePrompt: () => estimatePrompt2,
|
|
79
|
-
layer: () =>
|
|
80
|
-
node: () =>
|
|
79
|
+
layer: () => layer6,
|
|
80
|
+
node: () => node12,
|
|
81
81
|
recentUserMessages: () => recentUserMessages2
|
|
82
82
|
});
|
|
83
83
|
import {
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
} from "@opencode/ai";
|
|
94
94
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
95
95
|
import { Context, Effect, Exit, Fiber, Layer, Result, Scope, Stream } from "effect";
|
|
96
|
-
class
|
|
96
|
+
class Service10 extends Context.Service()("@opencode/SessionCompaction") {
|
|
97
97
|
}
|
|
98
98
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
99
99
|
var SHRINK_STEPS = [0.85, 0.7, 0.5, 0.35];
|
|
@@ -184,14 +184,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
184
184
|
};
|
|
185
185
|
var NUDGE = "The previous response did not fill in the required summary template. Do not call tools. Return the summary as text using the exact section headings from the template.";
|
|
186
186
|
var LEGACY_HEADING = "## Additional Context";
|
|
187
|
-
var
|
|
188
|
-
const agents = yield*
|
|
187
|
+
var layer6 = Layer.effect(Service10, Effect.gen(function* () {
|
|
188
|
+
const agents = yield* Service73;
|
|
189
189
|
const bus = yield* Service86;
|
|
190
190
|
const llm = yield* LLMClient.Service;
|
|
191
|
-
const catalog = yield*
|
|
192
|
-
const models = yield*
|
|
191
|
+
const catalog = yield* Service67;
|
|
192
|
+
const models = yield* Service60;
|
|
193
193
|
const db = (yield* Service87).db;
|
|
194
|
-
const requests = yield*
|
|
194
|
+
const requests = yield* Service35;
|
|
195
195
|
const scope = yield* Scope.Scope;
|
|
196
196
|
const precomputed = new Map;
|
|
197
197
|
const state = create3({
|
|
@@ -204,7 +204,7 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
const selectModel = Effect.fnUntraced(function* (context, buffer, native) {
|
|
207
|
-
const agent = native ? undefined : yield* agents.get(
|
|
207
|
+
const agent = native ? undefined : yield* agents.get(ID10.make("compaction"));
|
|
208
208
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
209
209
|
return;
|
|
210
210
|
})))) ?? context.model;
|
|
@@ -574,17 +574,17 @@ var layer8 = Layer.effect(Service12, Effect.gen(function* () {
|
|
|
574
574
|
}, { metadata: outcome.metadata });
|
|
575
575
|
return { status: "completed" };
|
|
576
576
|
});
|
|
577
|
-
return
|
|
577
|
+
return Service10.of({
|
|
578
578
|
transform: state.transform,
|
|
579
579
|
reload: state.reload,
|
|
580
580
|
compact: (trigger) => compact(trigger).pipe(Effect.onInterrupt(() => trigger.reason === "manual" ? Effect.void : publish(trigger, { error: { type: "compaction.interrupted", message: "Compaction was interrupted" } })), Effect.ensuring(Effect.sync(() => spent.delete(trigger.context.session.id)))),
|
|
581
581
|
precompute
|
|
582
582
|
});
|
|
583
583
|
}));
|
|
584
|
-
var
|
|
585
|
-
service:
|
|
586
|
-
layer:
|
|
587
|
-
deps: [
|
|
584
|
+
var node12 = makeLocationNode({
|
|
585
|
+
service: Service10,
|
|
586
|
+
layer: layer6,
|
|
587
|
+
deps: [node77, node90, node91, llmClient2, node71, node38, node64]
|
|
588
588
|
});
|
|
589
589
|
var heldIndex = (held, context) => {
|
|
590
590
|
if (held.firstID !== context.messages[0]?.id || held.initial !== context.initial)
|
|
@@ -771,4 +771,4 @@ var estimateMedia = (mime) => {
|
|
|
771
771
|
return 0;
|
|
772
772
|
};
|
|
773
773
|
|
|
774
|
-
export {
|
|
774
|
+
export { Service10, buildPrompt2, layer6, node12, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-5zwc8z7d.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./managed-policy-vd3b3yk9.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-s626qfae.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
} from "./
|
|
13
|
+
ID13,
|
|
14
|
+
Service76,
|
|
15
|
+
node80,
|
|
16
|
+
Event15
|
|
17
|
+
} from "./managed-policy-bewwd09f.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service82,
|
|
20
|
+
node86
|
|
21
|
+
} from "./managed-policy-e22n6ctv.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/provider.ts
|
|
27
27
|
var exports_provider3 = {};
|
|
@@ -30,13 +30,13 @@ __export(exports_provider3, {
|
|
|
30
30
|
Compaction: () => Compaction3,
|
|
31
31
|
DEFAULT_CHUNK_TIMEOUT_MS: () => DEFAULT_CHUNK_TIMEOUT_MS2,
|
|
32
32
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS3,
|
|
33
|
-
Event: () =>
|
|
33
|
+
Event: () => Event14,
|
|
34
34
|
ID: () => ID12,
|
|
35
|
-
Info: () =>
|
|
35
|
+
Info: () => Info20,
|
|
36
36
|
LoadError: () => LoadError3,
|
|
37
37
|
Provider: () => exports_provider3,
|
|
38
38
|
Request: () => Request3,
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service75,
|
|
40
40
|
Settings: () => Settings2,
|
|
41
41
|
Transport: () => Transport2,
|
|
42
42
|
aisdk: () => aisdk2,
|
|
@@ -48,7 +48,7 @@ __export(exports_provider3, {
|
|
|
48
48
|
mergeOverlay: () => mergeOverlay2,
|
|
49
49
|
modelSettings: () => modelSettings2,
|
|
50
50
|
nativeSettings: () => nativeSettings2,
|
|
51
|
-
node: () =>
|
|
51
|
+
node: () => node79,
|
|
52
52
|
packageName: () => packageName2,
|
|
53
53
|
timeout: () => timeout2,
|
|
54
54
|
timeouts: () => timeouts2
|
|
@@ -323,7 +323,7 @@ var Legacy = Schema.StructWithRest(Schema.Struct({
|
|
|
323
323
|
var decode = Schema.decodeUnknownSync(Legacy);
|
|
324
324
|
|
|
325
325
|
// src/provider.ts
|
|
326
|
-
import { Event as
|
|
326
|
+
import { Event as Event14 } from "@opencode/schema/provider";
|
|
327
327
|
var ID12 = Provider.ID;
|
|
328
328
|
var AISDK_PREFIX2 = "aisdk:";
|
|
329
329
|
var isAISDK2 = (value) => value?.startsWith(AISDK_PREFIX2) ?? false;
|
|
@@ -538,9 +538,9 @@ var Request3 = Provider.Request;
|
|
|
538
538
|
var Compaction3 = Provider.Compaction;
|
|
539
539
|
var Transport2 = Provider.Transport;
|
|
540
540
|
var Settings2 = Provider.Settings;
|
|
541
|
-
var
|
|
541
|
+
var Info20 = Provider.Info;
|
|
542
542
|
|
|
543
|
-
class
|
|
543
|
+
class Service75 extends Context.Service()("@opencode/Provider") {
|
|
544
544
|
}
|
|
545
545
|
var definitions = new WeakMap;
|
|
546
546
|
function index(providerID, models) {
|
|
@@ -553,10 +553,10 @@ function index(providerID, models) {
|
|
|
553
553
|
definitions.set(models, indexes);
|
|
554
554
|
return result;
|
|
555
555
|
}
|
|
556
|
-
var layer = Layer.effect(
|
|
556
|
+
var layer = Layer.effect(Service75, Effect2.gen(function* () {
|
|
557
557
|
const bus = yield* Service86;
|
|
558
|
-
const integrations = yield*
|
|
559
|
-
const location = yield*
|
|
558
|
+
const integrations = yield* Service76;
|
|
559
|
+
const location = yield* Service82;
|
|
560
560
|
const state = create3({
|
|
561
561
|
name: "provider",
|
|
562
562
|
initial: () => new Map,
|
|
@@ -567,7 +567,7 @@ var layer = Layer.effect(Service74, Effect2.gen(function* () {
|
|
|
567
567
|
const current = records.get(id);
|
|
568
568
|
if (current)
|
|
569
569
|
return current;
|
|
570
|
-
const added = { provider:
|
|
570
|
+
const added = { provider: Info20.empty(id), models: new Map };
|
|
571
571
|
records.set(id, added);
|
|
572
572
|
maps.add(added.models);
|
|
573
573
|
return added;
|
|
@@ -648,7 +648,7 @@ var layer = Layer.effect(Service74, Effect2.gen(function* () {
|
|
|
648
648
|
const available = Array.from(records.values()).filter((record) => {
|
|
649
649
|
if (record.provider.activation === "disabled")
|
|
650
650
|
return false;
|
|
651
|
-
const integration = byID.get(record.provider.integrationID ??
|
|
651
|
+
const integration = byID.get(record.provider.integrationID ?? ID13.make(record.provider.id));
|
|
652
652
|
if (record.sourceConnection && key2(record.sourceConnection) !== key2(integration?.connections[0]))
|
|
653
653
|
return false;
|
|
654
654
|
if (record.provider.activation === "enabled")
|
|
@@ -674,8 +674,8 @@ var layer = Layer.effect(Service74, Effect2.gen(function* () {
|
|
|
674
674
|
location: { directory: location.directory, workspaceID: location.workspaceID }
|
|
675
675
|
});
|
|
676
676
|
});
|
|
677
|
-
yield* bus.subscribe([
|
|
678
|
-
return
|
|
677
|
+
yield* bus.subscribe([Event15.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
678
|
+
return Service75.of({
|
|
679
679
|
transform: state.transform,
|
|
680
680
|
reload: state.reload,
|
|
681
681
|
get: Effect2.fn("Provider.get")((id) => Effect2.sync(() => freeze(state.get().get(id)?.provider, true))),
|
|
@@ -684,7 +684,7 @@ var layer = Layer.effect(Service74, Effect2.gen(function* () {
|
|
|
684
684
|
snapshot
|
|
685
685
|
});
|
|
686
686
|
}));
|
|
687
|
-
var
|
|
687
|
+
var node79 = makeLocationNode({ service: Service75, layer, deps: [node90, node80, node86] });
|
|
688
688
|
var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, entrypoint, load = () => importModule(entrypoint)) {
|
|
689
689
|
const module = yield* Effect2.tryPromise({
|
|
690
690
|
try: () => {
|
|
@@ -706,4 +706,4 @@ var importPackage = Effect2.fn("Provider.importPackage")(function* (specifier, e
|
|
|
706
706
|
return module;
|
|
707
707
|
});
|
|
708
708
|
|
|
709
|
-
export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2,
|
|
709
|
+
export { rewrite2, native2, exports_aisdk_native, ID12, AISDK_PREFIX2, isAISDK2, aisdk2, packageName2, LoadError3, builtinPackages2, loadPackage2, nativeSettings2, modelSettings2, DEFAULT_TIMEOUT_MS3, DEFAULT_CHUNK_TIMEOUT_MS2, timeout2, timeouts2, encoding2, mergeOverlay2, mergeHeaders2, Request3, Compaction3, Transport2, Settings2, Info20, Service75, node79, exports_provider3, Event14 };
|
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-5zwc8z7d.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service34,
|
|
7
|
+
node37
|
|
8
|
+
} from "./managed-policy-arckp0tt.js";
|
|
9
9
|
import {
|
|
10
10
|
isTextual2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./managed-policy-2z1j29yd.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service70,
|
|
14
|
+
node74
|
|
15
|
+
} from "./managed-policy-knp52wmd.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service40,
|
|
18
|
+
node43
|
|
19
|
+
} from "./managed-policy-dr1fr17h.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service55,
|
|
22
|
+
node60
|
|
23
|
+
} from "./managed-policy-m5t3njjp.js";
|
|
24
24
|
import {
|
|
25
25
|
MEDIA_MIMES2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./managed-policy-eap9pty2.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/tool/mcp.ts
|
|
32
32
|
var exports_mcp3 = {};
|
|
33
33
|
__export(exports_mcp3, {
|
|
34
34
|
McpTool: () => exports_mcp3,
|
|
35
|
-
Service: () =>
|
|
36
|
-
layer: () =>
|
|
35
|
+
Service: () => Service32,
|
|
36
|
+
layer: () => layer14,
|
|
37
37
|
name: () => name14,
|
|
38
38
|
namespace: () => namespace2,
|
|
39
|
-
node: () =>
|
|
39
|
+
node: () => node35
|
|
40
40
|
});
|
|
41
41
|
import { ToolFailure } from "@opencode/ai";
|
|
42
42
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -47,14 +47,14 @@ var decodeJson = Schema.decodeUnknownOption(Schema.fromJsonString(Schema.Unknown
|
|
|
47
47
|
var namespace2 = (server) => server.replace(/[^a-zA-Z0-9_-]/g, "_");
|
|
48
48
|
var name14 = (server, tool) => `${namespace2(server)}_${tool.replace(/[^a-zA-Z0-9_-]/g, "_")}`;
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Service32 extends Context.Service()("@opencode/McpTool") {
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
const mcp = yield*
|
|
54
|
-
const tools = yield*
|
|
52
|
+
var layer14 = Layer.effect(Service32, Effect.gen(function* () {
|
|
53
|
+
const mcp = yield* Service34;
|
|
54
|
+
const tools = yield* Service40;
|
|
55
55
|
const bus = yield* Service86;
|
|
56
|
-
const permission = yield*
|
|
57
|
-
const toolOutput = yield*
|
|
56
|
+
const permission = yield* Service70;
|
|
57
|
+
const toolOutput = yield* Service55;
|
|
58
58
|
const lock = Semaphore.makeUnsafe(1);
|
|
59
59
|
let discovered = [];
|
|
60
60
|
const initial = yield* lock.withPermit(Effect.gen(function* () {
|
|
@@ -124,7 +124,7 @@ var layer11 = Layer.effect(Service26, Effect.gen(function* () {
|
|
|
124
124
|
yield* bus.subscribe(McpEvent.ToolsChanged).pipe(Stream.runForEach(() => PubSub.publish(changes, undefined)), Effect.forkScoped({ startImmediately: true }));
|
|
125
125
|
const updates = yield* PubSub.subscribe(changes);
|
|
126
126
|
yield* Stream.fromSubscription(updates).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reconcile), Effect.forkScoped({ startImmediately: true }));
|
|
127
|
-
return
|
|
127
|
+
return Service32.of({ flush: Effect.asVoid(Fiber.await(initial)) });
|
|
128
128
|
}));
|
|
129
129
|
var toContent = Effect.fnUntraced(function* (part, toolOutput) {
|
|
130
130
|
if (part.type === "text")
|
|
@@ -144,10 +144,10 @@ ${bytes.toString("utf8")}` };
|
|
|
144
144
|
text: `[Binary resource ${label} (${part.mimeType}, ${bytes.byteLength} bytes) saved to ${file}]`
|
|
145
145
|
};
|
|
146
146
|
});
|
|
147
|
-
var
|
|
148
|
-
service:
|
|
149
|
-
layer:
|
|
150
|
-
deps: [
|
|
147
|
+
var node35 = makeLocationNode({
|
|
148
|
+
service: Service32,
|
|
149
|
+
layer: layer14,
|
|
150
|
+
deps: [node43, node37, node90, node74, node60]
|
|
151
151
|
});
|
|
152
152
|
|
|
153
|
-
export { namespace2, name14,
|
|
153
|
+
export { namespace2, name14, Service32, layer14, node35, exports_mcp3 };
|