@opencode/core 0.0.0-dev-21599 → 0.0.0-dev-21603
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 +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +7 -7
- package/dist/bus.js +71 -71
- package/dist/chunks/{tool-output-dh62xe4r.js → filesystem-033a0jkt.js} +3 -3
- package/dist/chunks/{tool-output-034tev2y.js → filesystem-034tev2y.js} +2 -2
- package/dist/chunks/{tool-output-jtp4xp8v.js → filesystem-0kew33c2.js} +7 -7
- package/dist/chunks/{tool-output-q5zq6djh.js → filesystem-0s34gk3x.js} +8 -8
- package/dist/chunks/{tool-output-mfd4wsk8.js → filesystem-0t2efqex.js} +20 -20
- package/dist/chunks/{tool-output-n8vtaxca.js → filesystem-116ca35p.js} +24 -24
- package/dist/chunks/{tool-output-h0ndpbmn.js → filesystem-1byvm3vx.js} +9 -9
- package/dist/chunks/{tool-output-b0v8jwaf.js → filesystem-1c8e1z5t.js} +5 -5
- package/dist/chunks/{tool-output-1ep2p91f.js → filesystem-1ep2p91f.js} +2 -2
- package/dist/chunks/{tool-output-pqngf5gp.js → filesystem-1tpn6myv.js} +37 -37
- package/dist/chunks/{tool-output-nybszfb1.js → filesystem-1w51vxkz.js} +10 -10
- package/dist/chunks/{tool-output-1x2knyw4.js → filesystem-1x2knyw4.js} +1 -1
- package/dist/chunks/{tool-output-s7kyse9r.js → filesystem-1y0wdj51.js} +9 -9
- package/dist/chunks/{tool-output-z65n0b11.js → filesystem-22qxr633.js} +18 -18
- package/dist/chunks/{tool-output-8gtwayjs.js → filesystem-2bxs16p1.js} +46 -46
- package/dist/chunks/{tool-output-vfeyjw6g.js → filesystem-2f3z3cr8.js} +334 -334
- package/dist/chunks/{tool-output-ke7xq34d.js → filesystem-2j6zzxrf.js} +1 -1
- package/dist/chunks/{tool-output-7adgnzsg.js → filesystem-2n0h6mem.js} +9 -9
- package/dist/chunks/{tool-output-0yxbjwbd.js → filesystem-2q14gge3.js} +13 -13
- package/dist/chunks/{tool-output-10y9v1vv.js → filesystem-2qc03bdv.js} +12 -12
- package/dist/chunks/{tool-output-8a38ne9n.js → filesystem-2xm0hnd3.js} +6 -6
- package/dist/chunks/{tool-output-2z1j29yd.js → filesystem-2z1j29yd.js} +1 -1
- package/dist/chunks/{tool-output-awcmzese.js → filesystem-32tacxf9.js} +4 -4
- package/dist/chunks/{tool-output-sc1vpcb8.js → filesystem-3af2h6f6.js} +15 -15
- package/dist/chunks/{tool-output-gdvg1v0w.js → filesystem-3dedk1s0.js} +10 -10
- package/dist/chunks/{tool-output-3hepkmqq.js → filesystem-3hepkmqq.js} +1 -1
- package/dist/chunks/{tool-output-8k8s1td8.js → filesystem-3k4jc8v0.js} +5 -5
- package/dist/chunks/{tool-output-tmc7xdjs.js → filesystem-3nnrz6f6.js} +4 -4
- package/dist/chunks/{tool-output-r4tf9cx3.js → filesystem-3trpca19.js} +10 -10
- package/dist/chunks/{tool-output-6dhf79kj.js → filesystem-3v1362xg.js} +27 -27
- package/dist/chunks/{tool-output-rcq2wj92.js → filesystem-43jry69q.js} +9 -9
- package/dist/chunks/{tool-output-npbfck1k.js → filesystem-4ap0d51q.js} +3 -3
- package/dist/chunks/{tool-output-e8nh79sb.js → filesystem-4b4zxyy8.js} +9 -9
- package/dist/chunks/{tool-output-bmrhpq87.js → filesystem-4ef8bwn9.js} +11 -11
- package/dist/chunks/{tool-output-q4b3sjyf.js → filesystem-4k0n4aqd.js} +33 -33
- package/dist/chunks/{tool-output-4v008n1t.js → filesystem-4v008n1t.js} +1 -1
- package/dist/chunks/{tool-output-4xvmh7wp.js → filesystem-4xvmh7wp.js} +3 -3
- package/dist/chunks/{tool-output-myfas7b5.js → filesystem-4y366mta.js} +2 -2
- package/dist/chunks/{tool-output-pycah8he.js → filesystem-57r3w4mg.js} +28 -28
- package/dist/chunks/{tool-output-nhh83qbn.js → filesystem-5ajak8ts.js} +25 -25
- package/dist/chunks/{tool-output-5m9w47nd.js → filesystem-5m9w47nd.js} +1 -1
- package/dist/chunks/{tool-output-e3qxr5gk.js → filesystem-5qd3pb7m.js} +2 -2
- package/dist/chunks/{tool-output-p3hsmbes.js → filesystem-5s0q14pj.js} +8 -8
- package/dist/chunks/{tool-output-b0p0cccz.js → filesystem-5wkrvrk3.js} +28 -28
- package/dist/chunks/{tool-output-1yq9hg58.js → filesystem-5zrxpy3q.js} +5 -5
- package/dist/chunks/{tool-output-20nwq5j7.js → filesystem-61g7nd3s.js} +9 -9
- package/dist/chunks/{tool-output-jewpd055.js → filesystem-65k60evq.js} +3 -3
- package/dist/chunks/{tool-output-wxsjgajd.js → filesystem-6825m99s.js} +18 -18
- package/dist/chunks/{tool-output-aja4sf8e.js → filesystem-6cxhfye1.js} +26 -26
- package/dist/chunks/{tool-output-6esdw8yj.js → filesystem-6esdw8yj.js} +1 -1
- package/dist/chunks/{tool-output-z38egdw8.js → filesystem-6je74zf0.js} +16 -16
- package/dist/chunks/{tool-output-6pjqjmy2.js → filesystem-6pjqjmy2.js} +1 -1
- package/dist/chunks/{tool-output-0gt8ey1a.js → filesystem-6w1z0afp.js} +47 -47
- package/dist/chunks/{tool-output-56zd4020.js → filesystem-6xsqtwm9.js} +34 -34
- package/dist/chunks/{tool-output-nah043kf.js → filesystem-770pw0s1.js} +4 -4
- package/dist/chunks/{tool-output-7ees5jkk.js → filesystem-79yxn91x.js} +17 -17
- package/dist/chunks/{tool-output-y00x4xpa.js → filesystem-7ag3s6hb.js} +4 -4
- package/dist/chunks/{tool-output-7bmhse3q.js → filesystem-7bmhse3q.js} +1 -1
- package/dist/chunks/{tool-output-br3esf13.js → filesystem-7csthhj8.js} +4 -4
- package/dist/chunks/{tool-output-fjd8d6hc.js → filesystem-7e5ts14b.js} +17 -17
- package/dist/chunks/{tool-output-sf3ha4fy.js → filesystem-7f5nwzj1.js} +26 -26
- package/dist/chunks/{tool-output-yv12yyqt.js → filesystem-7fvw33xg.js} +12 -12
- package/dist/chunks/{tool-output-p1m96dps.js → filesystem-7h2wc5qt.js} +16 -16
- package/dist/chunks/{tool-output-m9qp2phv.js → filesystem-7he63rq2.js} +3 -3
- package/dist/chunks/{tool-output-bwz2p6z2.js → filesystem-7k3s3q4g.js} +34 -34
- package/dist/chunks/{tool-output-wxmyhsez.js → filesystem-7kvsvhsr.js} +8 -8
- package/dist/chunks/{tool-output-gry66kc0.js → filesystem-7n2s0hvn.js} +1 -1
- package/dist/chunks/{tool-output-7w2ypzdf.js → filesystem-7w2ypzdf.js} +1 -1
- package/dist/chunks/{tool-output-yd1f0tk7.js → filesystem-7zaqb5eb.js} +10 -10
- package/dist/chunks/{tool-output-eendxhec.js → filesystem-81852ppe.js} +28 -28
- package/dist/chunks/filesystem-87sqwm80.js +18 -0
- package/dist/chunks/{tool-output-q0x7bn0w.js → filesystem-8fg642az.js} +2 -2
- package/dist/chunks/{tool-output-5ndmwyx5.js → filesystem-8j62s4y7.js} +35 -35
- package/dist/chunks/{tool-output-xcqg2a4v.js → filesystem-8k7htary.js} +10 -10
- package/dist/chunks/{tool-output-9a6nh89z.js → filesystem-8p2axgtb.js} +11 -11
- package/dist/chunks/{tool-output-8wtp7s3z.js → filesystem-8wtp7s3z.js} +1 -1
- package/dist/chunks/{tool-output-nh85g63h.js → filesystem-8wxy6m1c.js} +9 -9
- package/dist/chunks/{tool-output-4t0ptnzh.js → filesystem-8xs7txxn.js} +1 -1
- package/dist/chunks/{tool-output-91rj84md.js → filesystem-91rj84md.js} +1 -1
- package/dist/chunks/{tool-output-7mrxhv66.js → filesystem-93cw99tk.js} +41 -41
- package/dist/chunks/{tool-output-k175he82.js → filesystem-942936k7.js} +45 -45
- package/dist/chunks/{tool-output-998yhzzq.js → filesystem-998yhzzq.js} +3 -3
- package/dist/chunks/{tool-output-gc2w1p23.js → filesystem-9d47vacw.js} +17 -17
- package/dist/chunks/{tool-output-ywhmtaft.js → filesystem-9dzxay90.js} +20 -20
- package/dist/chunks/{tool-output-pf90p5q7.js → filesystem-9e4mvsvc.js} +22 -22
- package/dist/chunks/filesystem-9jjtdp7g.js +26 -0
- package/dist/chunks/{tool-output-wedq2s1n.js → filesystem-a0pqy3jv.js} +11 -11
- package/dist/chunks/{tool-output-wjc56gzf.js → filesystem-a9mr4pbf.js} +32 -32
- package/dist/chunks/{tool-output-c6x7d2ts.js → filesystem-an558sqv.js} +4 -4
- package/dist/chunks/{tool-output-e3148eb1.js → filesystem-axbw4nz1.js} +21 -21
- package/dist/chunks/{tool-output-ayjs7tqn.js → filesystem-ayjs7tqn.js} +2 -2
- package/dist/chunks/{tool-output-hcs2f452.js → filesystem-azwwy65a.js} +20 -20
- package/dist/chunks/{tool-output-b0mv4wxm.js → filesystem-b0mv4wxm.js} +2 -2
- package/dist/chunks/{tool-output-gjpepzdv.js → filesystem-b4rme3tx.js} +6 -6
- package/dist/chunks/{tool-output-n8m4zwz8.js → filesystem-b55rpsr5.js} +4 -4
- package/dist/chunks/{tool-output-98pd45a3.js → filesystem-b6kqqew2.js} +10 -10
- package/dist/chunks/{tool-output-b6vsg801.js → filesystem-b6vsg801.js} +2 -2
- package/dist/chunks/{tool-output-at9rzsb2.js → filesystem-bcrvt9qa.js} +68 -68
- package/dist/chunks/{tool-output-v9vr9943.js → filesystem-be4y46ka.js} +18 -18
- package/dist/chunks/{tool-output-k9qv649c.js → filesystem-bhk5af8b.js} +20 -20
- package/dist/chunks/{tool-output-dgmwqqqe.js → filesystem-bmk2h0av.js} +10 -10
- package/dist/chunks/{tool-output-2f4xewgk.js → filesystem-bmz6t6pq.js} +16 -16
- package/dist/chunks/{tool-output-tbspmpch.js → filesystem-bps13hr4.js} +13 -13
- package/dist/chunks/{tool-output-bstexjd6.js → filesystem-bstexjd6.js} +1 -1
- package/dist/chunks/{tool-output-ggx4rb7k.js → filesystem-c1xd845s.js} +8 -8
- package/dist/chunks/{tool-output-gh947223.js → filesystem-c3mghmzq.js} +21 -21
- package/dist/chunks/{tool-output-md00hke5.js → filesystem-c3rhye5x.js} +20 -20
- package/dist/chunks/{tool-output-h2tz44th.js → filesystem-cash41ab.js} +14 -14
- package/dist/chunks/{tool-output-wp8cf92c.js → filesystem-cc5x4asw.js} +23 -23
- package/dist/chunks/{tool-output-wgnf5zhk.js → filesystem-cd9vvngm.js} +2 -2
- package/dist/chunks/{tool-output-wf83r483.js → filesystem-cp6v88n8.js} +21 -21
- package/dist/chunks/{tool-output-4z3w2m2c.js → filesystem-d0adv3wn.js} +1 -1
- package/dist/chunks/{tool-output-3ae58x6v.js → filesystem-d4r2kcv6.js} +33 -33
- package/dist/chunks/{tool-output-d4v9tmah.js → filesystem-d4v9tmah.js} +2 -2
- package/dist/chunks/{tool-output-6npt4pta.js → filesystem-d5rem3a1.js} +11 -11
- package/dist/chunks/{tool-output-14zr9vj7.js → filesystem-dt3jkxpv.js} +15 -15
- package/dist/chunks/{tool-output-axwvcc3s.js → filesystem-dvebtgfn.js} +15 -15
- package/dist/chunks/{tool-output-e834z07m.js → filesystem-e834z07m.js} +1 -1
- package/dist/chunks/{tool-output-v2gtqsm1.js → filesystem-ea8rv3yk.js} +19 -19
- package/dist/chunks/{tool-output-5cv37nj8.js → filesystem-ed5h55sq.js} +19 -19
- package/dist/chunks/{tool-output-5epaxwsw.js → filesystem-edpv0694.js} +4 -4
- package/dist/chunks/{tool-output-ws10xz6w.js → filesystem-edvrbgb7.js} +11 -11
- package/dist/chunks/{tool-output-ef5x83kb.js → filesystem-ef5x83kb.js} +1 -1
- package/dist/chunks/{tool-output-ebwz916e.js → filesystem-ek8mq45z.js} +12 -12
- package/dist/chunks/{tool-output-d3fzpcez.js → filesystem-epqb75p6.js} +10 -10
- package/dist/chunks/{tool-output-9b28cy4d.js → filesystem-eq3fc1qc.js} +5 -5
- package/dist/chunks/{tool-output-8zqhaj5c.js → filesystem-esjx5599.js} +13 -13
- package/dist/chunks/{tool-output-86aqzbp9.js → filesystem-ewt411c3.js} +21 -21
- package/dist/chunks/{tool-output-w5htd40q.js → filesystem-exnmcfra.js} +16 -16
- package/dist/chunks/{tool-output-hfpdjywt.js → filesystem-f17hsh48.js} +11 -11
- package/dist/chunks/{tool-output-cpqed4zs.js → filesystem-f2de68n6.js} +1 -1
- package/dist/chunks/{tool-output-q9mdne05.js → filesystem-f5pe5xbd.js} +11 -11
- package/dist/chunks/{tool-output-dr6kpnea.js → filesystem-fartem3k.js} +14 -14
- package/dist/chunks/{tool-output-fffv3p7h.js → filesystem-fffv3p7h.js} +1 -1
- package/dist/chunks/{tool-output-r3b59dab.js → filesystem-fjqbqs01.js} +17 -17
- package/dist/chunks/{tool-output-zqn9s4re.js → filesystem-fx5d1n8y.js} +2 -2
- package/dist/chunks/{tool-output-fznmdakp.js → filesystem-fznmdakp.js} +1 -1
- package/dist/chunks/{tool-output-y150bje3.js → filesystem-g1sdaffb.js} +28 -28
- package/dist/chunks/{tool-output-g5h9c0rr.js → filesystem-g5h9c0rr.js} +2 -2
- package/dist/chunks/{tool-output-ky596kc3.js → filesystem-gc4rcfsx.js} +4 -4
- package/dist/chunks/{tool-output-nkkejs0x.js → filesystem-ggdzy5vb.js} +13 -13
- package/dist/chunks/{tool-output-1vkp420h.js → filesystem-ggm2jm67.js} +14 -14
- package/dist/chunks/{tool-output-v42401vs.js → filesystem-gkkwf9ek.js} +23 -23
- package/dist/chunks/{tool-output-m0jsseqx.js → filesystem-gmxp0tf2.js} +32 -32
- package/dist/chunks/filesystem-h15n1nxh.js +257 -0
- package/dist/chunks/{tool-output-4cmd85k7.js → filesystem-hj2jsaw9.js} +14 -14
- package/dist/chunks/{tool-output-kxkx1fm5.js → filesystem-hw3tvpxd.js} +13 -13
- package/dist/chunks/{tool-output-02yfng3f.js → filesystem-hx2kfbk2.js} +5 -5
- package/dist/chunks/{tool-output-j113cymg.js → filesystem-j113cymg.js} +1 -1
- package/dist/chunks/{tool-output-75kq81p9.js → filesystem-jghabtcw.js} +23 -23
- package/dist/chunks/{tool-output-15engxec.js → filesystem-jgmj0zrj.js} +48 -48
- package/dist/chunks/{tool-output-z2vdc9zv.js → filesystem-jhe7xhev.js} +22 -22
- package/dist/chunks/{tool-output-jchrqzf6.js → filesystem-jneg3k74.js} +4 -4
- package/dist/chunks/{tool-output-20fcarzd.js → filesystem-jr7k77qs.js} +3 -3
- package/dist/chunks/{tool-output-3f9f2kqk.js → filesystem-jx3jy26a.js} +11 -11
- package/dist/chunks/{tool-output-ctrm230j.js → filesystem-jzckctm7.js} +27 -27
- package/dist/chunks/{tool-output-9g93d3f5.js → filesystem-k0rz3mv5.js} +21 -21
- package/dist/chunks/{tool-output-c0xk14mm.js → filesystem-k2swmk98.js} +18 -18
- package/dist/chunks/{tool-output-9fk2bqmm.js → filesystem-k4p9vzj4.js} +6 -6
- package/dist/chunks/{tool-output-k814nvkf.js → filesystem-k814nvkf.js} +1 -1
- package/dist/chunks/{tool-output-hr7bspm8.js → filesystem-kmx603z6.js} +50 -50
- package/dist/chunks/{tool-output-kmzgegqq.js → filesystem-kmzgegqq.js} +1 -1
- package/dist/chunks/{tool-output-2e1v5rzb.js → filesystem-kw88awxx.js} +14 -14
- package/dist/chunks/{tool-output-xyjyzs8x.js → filesystem-kybr559y.js} +20 -20
- package/dist/chunks/{tool-output-3wfjj3xn.js → filesystem-m07e8bkf.js} +15 -15
- package/dist/chunks/{tool-output-m1714858.js → filesystem-m1714858.js} +1 -1
- package/dist/chunks/{tool-output-m9w0rfyh.js → filesystem-m9w0rfyh.js} +1 -1
- package/dist/chunks/{tool-output-b29mbqx6.js → filesystem-ma48de29.js} +5 -5
- package/dist/chunks/{tool-output-maspj1v3.js → filesystem-maspj1v3.js} +1 -1
- package/dist/chunks/{tool-output-gn6n2gww.js → filesystem-mgd76wh1.js} +15 -15
- package/dist/chunks/{tool-output-mmkbt6v3.js → filesystem-mmkbt6v3.js} +2 -2
- package/dist/chunks/{tool-output-wm4529mk.js → filesystem-mqqgcg93.js} +1 -1
- package/dist/chunks/{tool-output-ssfehs1z.js → filesystem-mtkfycnh.js} +4 -4
- package/dist/chunks/{tool-output-vx3jgdek.js → filesystem-my4zabxr.js} +3 -3
- package/dist/chunks/{tool-output-n0p0277s.js → filesystem-n0p0277s.js} +1 -1
- package/dist/chunks/{tool-output-31wms35x.js → filesystem-nad4mkqt.js} +8 -8
- package/dist/chunks/{tool-output-b3hcype2.js → filesystem-ndfn0p5e.js} +24 -24
- package/dist/chunks/{tool-output-bcq1fbbx.js → filesystem-nftmt6w7.js} +20 -20
- package/dist/chunks/{tool-output-jv32aesp.js → filesystem-nh58hc9m.js} +89 -89
- package/dist/chunks/{tool-output-mn7fc7ja.js → filesystem-nt6ka9fm.js} +9 -9
- package/dist/chunks/{tool-output-3nn70jee.js → filesystem-ntshrafh.js} +11 -11
- package/dist/chunks/{tool-output-xjbg8z6j.js → filesystem-nv7qnqx3.js} +11 -11
- package/dist/chunks/{tool-output-1bsnzyrd.js → filesystem-nzhn8ym0.js} +20 -20
- package/dist/chunks/{tool-output-p015t6z3.js → filesystem-p015t6z3.js} +2 -2
- package/dist/chunks/{tool-output-3aracdxg.js → filesystem-p1qvkr9d.js} +18 -18
- package/dist/chunks/{tool-output-ssqdbp8v.js → filesystem-p53t1m50.js} +26 -26
- package/dist/chunks/{tool-output-732r365v.js → filesystem-p6brcwvv.js} +5 -5
- package/dist/chunks/{tool-output-kebac8xz.js → filesystem-pe681sea.js} +33 -33
- package/dist/chunks/{tool-output-pknna89w.js → filesystem-pknna89w.js} +1 -1
- package/dist/chunks/{tool-output-nemq3kwn.js → filesystem-pmr385ej.js} +11 -11
- package/dist/chunks/{tool-output-p0wda9xt.js → filesystem-ps833y8c.js} +6 -6
- package/dist/chunks/{tool-output-k5aja770.js → filesystem-pta84ypa.js} +8 -8
- package/dist/chunks/{tool-output-tmp6rxaj.js → filesystem-pvg6n8yd.js} +26 -26
- package/dist/chunks/{tool-output-cgs2kznv.js → filesystem-pyeqa8z9.js} +15 -15
- package/dist/chunks/{tool-output-52fzkx6b.js → filesystem-q0d1t4r8.js} +24 -24
- package/dist/chunks/{tool-output-9wgzwg7t.js → filesystem-q45ckesn.js} +34 -34
- package/dist/chunks/{tool-output-qjgzc4b4.js → filesystem-qjgzc4b4.js} +1 -1
- package/dist/chunks/{tool-output-mpe6qr53.js → filesystem-qjhdweq9.js} +8 -8
- package/dist/chunks/{tool-output-02vyapm1.js → filesystem-qmhe942t.js} +2 -2
- package/dist/chunks/{tool-output-ad0mv7as.js → filesystem-qnm4ee5f.js} +6 -6
- package/dist/chunks/{tool-output-3w0cf4vg.js → filesystem-qxd0vyyx.js} +9 -9
- package/dist/chunks/{tool-output-r0yr0wbs.js → filesystem-r0yr0wbs.js} +1 -1
- package/dist/chunks/{tool-output-0r009c13.js → filesystem-r2skbm8f.js} +12 -12
- package/dist/chunks/{tool-output-40za9wsf.js → filesystem-r41sfy63.js} +6 -6
- package/dist/chunks/{tool-output-abvderva.js → filesystem-r5q168xg.js} +54 -54
- package/dist/chunks/{tool-output-s4g98fk9.js → filesystem-r66x192s.js} +31 -31
- package/dist/chunks/{tool-output-0gka690g.js → filesystem-r6wgv8c9.js} +6 -6
- package/dist/chunks/{tool-output-py28whss.js → filesystem-r7bm2ta5.js} +10 -10
- package/dist/chunks/{tool-output-rb9dy4dg.js → filesystem-rb9dy4dg.js} +1 -1
- package/dist/chunks/{tool-output-bjvhwptd.js → filesystem-rbj8gs5v.js} +3 -3
- package/dist/chunks/{tool-output-nmjyhvat.js → filesystem-rfytqs76.js} +86 -86
- package/dist/chunks/{tool-output-qf8mwm23.js → filesystem-rhkbbz1f.js} +4 -4
- package/dist/chunks/{tool-output-sp47q1yk.js → filesystem-rntrk4q6.js} +10 -10
- package/dist/chunks/{tool-output-rrad2nt9.js → filesystem-rrad2nt9.js} +1 -1
- package/dist/chunks/{tool-output-y4dk34dd.js → filesystem-rs61zdpp.js} +11 -11
- package/dist/chunks/{tool-output-rt5dr6hb.js → filesystem-rt5dr6hb.js} +1 -1
- package/dist/chunks/{tool-output-9pqw3rfv.js → filesystem-s0jq7590.js} +13 -13
- package/dist/chunks/{tool-output-w35wk246.js → filesystem-s1w5fnqx.js} +21 -21
- package/dist/chunks/{tool-output-575qvmdv.js → filesystem-s4s6vne1.js} +7 -7
- package/dist/chunks/{tool-output-g22673a8.js → filesystem-shzcewxt.js} +14 -14
- package/dist/chunks/{tool-output-8ykqf5wm.js → filesystem-spa8vgy8.js} +11 -11
- package/dist/chunks/{tool-output-sqjzf8x2.js → filesystem-sqjzf8x2.js} +1 -1
- package/dist/chunks/{tool-output-6y263vp8.js → filesystem-szcgc7h4.js} +5 -5
- package/dist/chunks/{tool-output-c46f3117.js → filesystem-t0861qrz.js} +11 -11
- package/dist/chunks/{tool-output-33fnmx25.js → filesystem-t2wr9q9z.js} +13 -13
- package/dist/chunks/{tool-output-89sdcr2v.js → filesystem-t7e7c0ah.js} +6 -6
- package/dist/chunks/{tool-output-tasvem1v.js → filesystem-tasvem1v.js} +3 -3
- package/dist/chunks/{tool-output-tczq8hjw.js → filesystem-tczq8hjw.js} +1 -1
- package/dist/chunks/{tool-output-tw8zr1ps.js → filesystem-tw8zr1ps.js} +1 -1
- package/dist/chunks/{tool-output-twv2r8f4.js → filesystem-twv2r8f4.js} +2 -2
- package/dist/chunks/{tool-output-dmc9yb6t.js → filesystem-ty2sm10g.js} +20 -20
- package/dist/chunks/{tool-output-cky18ayb.js → filesystem-v11fj23z.js} +11 -11
- package/dist/chunks/{tool-output-me5bcav6.js → filesystem-v2r1d0zg.js} +2 -2
- package/dist/chunks/{tool-output-yr9cnj92.js → filesystem-v6ssz0w4.js} +4 -4
- package/dist/chunks/{tool-output-x1edc6rz.js → filesystem-v714my2j.js} +36 -36
- package/dist/chunks/{tool-output-2gc5wwsr.js → filesystem-v7ecd1j3.js} +17 -17
- package/dist/chunks/{tool-output-8gf3zxsg.js → filesystem-vck145x8.js} +11 -11
- package/dist/chunks/{tool-output-vd3b3yk9.js → filesystem-vd3b3yk9.js} +1 -1
- package/dist/chunks/{tool-output-veqvce7d.js → filesystem-veqvce7d.js} +1 -1
- package/dist/chunks/{tool-output-q46y00v4.js → filesystem-vgk61ywp.js} +9 -9
- package/dist/chunks/{tool-output-vmfhgzt5.js → filesystem-vmfhgzt5.js} +1 -1
- package/dist/chunks/{tool-output-7n9251cj.js → filesystem-vq1p6kkc.js} +21 -21
- package/dist/chunks/{tool-output-bgm817xr.js → filesystem-vrcsa8qx.js} +9 -9
- package/dist/chunks/{tool-output-bqwdyg2t.js → filesystem-vzmjdaw1.js} +9 -9
- package/dist/chunks/{tool-output-e1wc05en.js → filesystem-w0ng8sb4.js} +14 -14
- package/dist/chunks/{tool-output-rxqg2rh4.js → filesystem-w3hdzqmq.js} +9 -9
- package/dist/chunks/{tool-output-w3wsvvr9.js → filesystem-w3wsvvr9.js} +1 -1
- package/dist/chunks/{tool-output-x147gj8q.js → filesystem-w4ey5q3y.js} +15 -15
- package/dist/chunks/{tool-output-yfsz5fxv.js → filesystem-w65kmk12.js} +15 -15
- package/dist/chunks/{tool-output-agech8jz.js → filesystem-w6e33p3k.js} +16 -16
- package/dist/chunks/{tool-output-76cb1hcw.js → filesystem-w8qtt4th.js} +4 -4
- package/dist/chunks/{tool-output-wakvkjy4.js → filesystem-wakvkjy4.js} +1 -1
- package/dist/chunks/{tool-output-wd87259q.js → filesystem-wd87259q.js} +1 -1
- package/dist/chunks/{tool-output-ka4dz7nq.js → filesystem-wh56f0xg.js} +14 -14
- package/dist/chunks/{tool-output-wyef362n.js → filesystem-wxf6pp3z.js} +32 -32
- package/dist/chunks/{tool-output-03wdg0rt.js → filesystem-xcspg1bc.js} +13 -13
- package/dist/chunks/{tool-output-qfs9mmpn.js → filesystem-xh3hzw7q.js} +8 -8
- package/dist/chunks/{tool-output-yj87g6ga.js → filesystem-xrd94v26.js} +11 -11
- package/dist/chunks/{tool-output-fvaebv5c.js → filesystem-xs9f9c89.js} +26 -26
- package/dist/chunks/{tool-output-j7gyfce7.js → filesystem-xw9sjbq7.js} +14 -14
- package/dist/chunks/{tool-output-ckekbsk5.js → filesystem-xxecem69.js} +28 -28
- package/dist/chunks/{tool-output-md8c097b.js → filesystem-xxwqbg00.js} +16 -16
- package/dist/chunks/{tool-output-k8kdgf5t.js → filesystem-y6v2r02b.js} +113 -71
- package/dist/chunks/{tool-output-14k2p94z.js → filesystem-y9xrhqjb.js} +6 -6
- package/dist/chunks/{tool-output-h31pp8t3.js → filesystem-ya1e3r6x.js} +20 -20
- package/dist/chunks/{tool-output-yb20nhc3.js → filesystem-yb20nhc3.js} +1 -1
- package/dist/chunks/{tool-output-8d56qhxn.js → filesystem-yjzq9vex.js} +30 -30
- package/dist/chunks/{tool-output-t9be5fj7.js → filesystem-ypxm9172.js} +4 -4
- package/dist/chunks/{tool-output-xzg8yhtc.js → filesystem-yyn8wt6y.js} +6 -6
- package/dist/chunks/{tool-output-7nsfs16y.js → filesystem-yznjjmbw.js} +145 -145
- package/dist/chunks/{tool-output-z0bkrqjs.js → filesystem-z0bkrqjs.js} +1 -1
- package/dist/chunks/{tool-output-jfxkbtd9.js → filesystem-z2g46f5b.js} +4 -4
- package/dist/chunks/{tool-output-z38nccrw.js → filesystem-z38nccrw.js} +1 -1
- package/dist/chunks/{tool-output-6v3q5vvj.js → filesystem-z5hhap5m.js} +14 -14
- package/dist/chunks/{tool-output-f13580fy.js → filesystem-ze4vdf9h.js} +1 -1
- package/dist/chunks/{tool-output-dn2q7ewa.js → filesystem-zj8h54zn.js} +7 -7
- package/dist/chunks/{tool-output-kp7p0dvh.js → filesystem-zjbp7710.js} +28 -28
- package/dist/chunks/{tool-output-zkg84ctx.js → filesystem-zkg84ctx.js} +1 -1
- package/dist/chunks/{tool-output-dk5xnaxx.js → filesystem-zkgq49d1.js} +4 -4
- package/dist/chunks/{tool-output-27bs79w9.js → filesystem-zmwx25fz.js} +2 -2
- package/dist/chunks/{tool-output-45fm8dkf.js → filesystem-zqe6np9v.js} +49 -49
- 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 +85 -85
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +212 -212
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +116 -116
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +136 -136
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +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.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +369 -369
- 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 +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +95 -95
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +1 -1
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +225 -225
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +102 -102
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +109 -109
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +101 -101
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +360 -360
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +79 -79
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +156 -156
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +357 -357
- package/dist/location.js +87 -87
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +98 -96
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +101 -101
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +96 -96
- package/dist/models-dev.js +107 -107
- 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 +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +86 -86
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +332 -332
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +115 -115
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +123 -123
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +118 -118
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +123 -123
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -170
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +347 -347
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +6 -6
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +86 -86
- package/dist/provider.js +95 -95
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +3 -3
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +95 -95
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +101 -101
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +208 -208
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +218 -218
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +95 -95
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +137 -137
- package/dist/tool/plugin/edit.js +118 -118
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +124 -124
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +215 -215
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +109 -109
- package/dist/tool/plugin/websearch.js +108 -108
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +104 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- 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 +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +88 -88
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +84 -84
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/tool-output-6e65pr7w.js +0 -257
- package/dist/chunks/tool-output-q8814pp6.js +0 -26
- package/dist/chunks/tool-output-z355x5yr.js +0 -18
- /package/dist/chunks/{tool-output-0qkdqm5v.js → filesystem-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{tool-output-0zkw76rk.js → filesystem-0zkw76rk.js} +0 -0
- /package/dist/chunks/{tool-output-17cy0kzp.js → filesystem-17cy0kzp.js} +0 -0
- /package/dist/chunks/{tool-output-1cnp2v09.js → filesystem-1cnp2v09.js} +0 -0
- /package/dist/chunks/{tool-output-24dcb14g.js → filesystem-24dcb14g.js} +0 -0
- /package/dist/chunks/{tool-output-2710q6r3.js → filesystem-2710q6r3.js} +0 -0
- /package/dist/chunks/{tool-output-2bv980vf.js → filesystem-2bv980vf.js} +0 -0
- /package/dist/chunks/{tool-output-2c3vjs8z.js → filesystem-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{tool-output-359p4xyc.js → filesystem-359p4xyc.js} +0 -0
- /package/dist/chunks/{tool-output-3asan66x.js → filesystem-3asan66x.js} +0 -0
- /package/dist/chunks/{tool-output-3v8g72cx.js → filesystem-3v8g72cx.js} +0 -0
- /package/dist/chunks/{tool-output-3wcehsnq.js → filesystem-3wcehsnq.js} +0 -0
- /package/dist/chunks/{tool-output-43n2bw4t.js → filesystem-43n2bw4t.js} +0 -0
- /package/dist/chunks/{tool-output-4knz6hnm.js → filesystem-4knz6hnm.js} +0 -0
- /package/dist/chunks/{tool-output-4vcrnpx2.js → filesystem-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{tool-output-4y7fprxs.js → filesystem-4y7fprxs.js} +0 -0
- /package/dist/chunks/{tool-output-53557ph1.js → filesystem-53557ph1.js} +0 -0
- /package/dist/chunks/{tool-output-550bvhaj.js → filesystem-550bvhaj.js} +0 -0
- /package/dist/chunks/{tool-output-5fjb7ams.js → filesystem-5fjb7ams.js} +0 -0
- /package/dist/chunks/{tool-output-6prwharc.js → filesystem-6prwharc.js} +0 -0
- /package/dist/chunks/{tool-output-6q2bdcd1.js → filesystem-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{tool-output-7akdwqpd.js → filesystem-7akdwqpd.js} +0 -0
- /package/dist/chunks/{tool-output-7m9af43g.js → filesystem-7m9af43g.js} +0 -0
- /package/dist/chunks/{tool-output-822emrt2.js → filesystem-822emrt2.js} +0 -0
- /package/dist/chunks/{tool-output-84wd9syh.js → filesystem-84wd9syh.js} +0 -0
- /package/dist/chunks/{tool-output-88xbtdfr.js → filesystem-88xbtdfr.js} +0 -0
- /package/dist/chunks/{tool-output-8n3pysct.js → filesystem-8n3pysct.js} +0 -0
- /package/dist/chunks/{tool-output-8wj87zfr.js → filesystem-8wj87zfr.js} +0 -0
- /package/dist/chunks/{tool-output-9a4afbnw.js → filesystem-9a4afbnw.js} +0 -0
- /package/dist/chunks/{tool-output-9rqn6x4v.js → filesystem-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{tool-output-a058387c.js → filesystem-a058387c.js} +0 -0
- /package/dist/chunks/{tool-output-a6k6eb26.js → filesystem-a6k6eb26.js} +0 -0
- /package/dist/chunks/{tool-output-af5trqkr.js → filesystem-af5trqkr.js} +0 -0
- /package/dist/chunks/{tool-output-afrmfg78.js → filesystem-afrmfg78.js} +0 -0
- /package/dist/chunks/{tool-output-aqzs7mqg.js → filesystem-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{tool-output-atq7p7m5.js → filesystem-atq7p7m5.js} +0 -0
- /package/dist/chunks/{tool-output-bkyjaxrp.js → filesystem-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{tool-output-bmr6ed5q.js → filesystem-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{tool-output-cf4snx6d.js → filesystem-cf4snx6d.js} +0 -0
- /package/dist/chunks/{tool-output-cvy3z8tj.js → filesystem-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{tool-output-d9fn303g.js → filesystem-d9fn303g.js} +0 -0
- /package/dist/chunks/{tool-output-d9jj8t3e.js → filesystem-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{tool-output-dajrwvna.js → filesystem-dajrwvna.js} +0 -0
- /package/dist/chunks/{tool-output-dap0rakb.js → filesystem-dap0rakb.js} +0 -0
- /package/dist/chunks/{tool-output-df08tz66.js → filesystem-df08tz66.js} +0 -0
- /package/dist/chunks/{tool-output-dy18nga0.js → filesystem-dy18nga0.js} +0 -0
- /package/dist/chunks/{tool-output-e5kj55wp.js → filesystem-e5kj55wp.js} +0 -0
- /package/dist/chunks/{tool-output-e73j6tqm.js → filesystem-e73j6tqm.js} +0 -0
- /package/dist/chunks/{tool-output-ec1grn59.js → filesystem-ec1grn59.js} +0 -0
- /package/dist/chunks/{tool-output-eh3zwz77.js → filesystem-eh3zwz77.js} +0 -0
- /package/dist/chunks/{tool-output-emrn6kk6.js → filesystem-emrn6kk6.js} +0 -0
- /package/dist/chunks/{tool-output-f0mxakyp.js → filesystem-f0mxakyp.js} +0 -0
- /package/dist/chunks/{tool-output-f6n9ztr4.js → filesystem-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{tool-output-faypxj3z.js → filesystem-faypxj3z.js} +0 -0
- /package/dist/chunks/{tool-output-fd410y7t.js → filesystem-fd410y7t.js} +0 -0
- /package/dist/chunks/{tool-output-g4wezp1m.js → filesystem-g4wezp1m.js} +0 -0
- /package/dist/chunks/{tool-output-g86h250q.js → filesystem-g86h250q.js} +0 -0
- /package/dist/chunks/{tool-output-gebd4c9n.js → filesystem-gebd4c9n.js} +0 -0
- /package/dist/chunks/{tool-output-gftt206x.js → filesystem-gftt206x.js} +0 -0
- /package/dist/chunks/{tool-output-hcxmzztb.js → filesystem-hcxmzztb.js} +0 -0
- /package/dist/chunks/{tool-output-hk9envan.js → filesystem-hk9envan.js} +0 -0
- /package/dist/chunks/{tool-output-j2ntwpah.js → filesystem-j2ntwpah.js} +0 -0
- /package/dist/chunks/{tool-output-j5zkgpj8.js → filesystem-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{tool-output-jjkms2e6.js → filesystem-jjkms2e6.js} +0 -0
- /package/dist/chunks/{tool-output-jr7sbwjy.js → filesystem-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{tool-output-jwfs4k6c.js → filesystem-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{tool-output-jze0r7bz.js → filesystem-jze0r7bz.js} +0 -0
- /package/dist/chunks/{tool-output-jzg6c2d5.js → filesystem-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{tool-output-m18g726c.js → filesystem-m18g726c.js} +0 -0
- /package/dist/chunks/{tool-output-mp448xyj.js → filesystem-mp448xyj.js} +0 -0
- /package/dist/chunks/{tool-output-msx8hqn2.js → filesystem-msx8hqn2.js} +0 -0
- /package/dist/chunks/{tool-output-n05xt0ee.js → filesystem-n05xt0ee.js} +0 -0
- /package/dist/chunks/{tool-output-n3j8tn72.js → filesystem-n3j8tn72.js} +0 -0
- /package/dist/chunks/{tool-output-njntx4h6.js → filesystem-njntx4h6.js} +0 -0
- /package/dist/chunks/{tool-output-pkyv6v7h.js → filesystem-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{tool-output-q3sfg36h.js → filesystem-q3sfg36h.js} +0 -0
- /package/dist/chunks/{tool-output-q74kybfr.js → filesystem-q74kybfr.js} +0 -0
- /package/dist/chunks/{tool-output-qaymkmh1.js → filesystem-qaymkmh1.js} +0 -0
- /package/dist/chunks/{tool-output-qb87gjwd.js → filesystem-qb87gjwd.js} +0 -0
- /package/dist/chunks/{tool-output-qfa1cgps.js → filesystem-qfa1cgps.js} +0 -0
- /package/dist/chunks/{tool-output-qg3g05ea.js → filesystem-qg3g05ea.js} +0 -0
- /package/dist/chunks/{tool-output-qrg20bc0.js → filesystem-qrg20bc0.js} +0 -0
- /package/dist/chunks/{tool-output-rcb2kzg1.js → filesystem-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{tool-output-sdp7kfr6.js → filesystem-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{tool-output-ssg3fenm.js → filesystem-ssg3fenm.js} +0 -0
- /package/dist/chunks/{tool-output-ve7vex1e.js → filesystem-ve7vex1e.js} +0 -0
- /package/dist/chunks/{tool-output-w803qqfp.js → filesystem-w803qqfp.js} +0 -0
- /package/dist/chunks/{tool-output-wc3fc9cn.js → filesystem-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{tool-output-wer8tq1h.js → filesystem-wer8tq1h.js} +0 -0
- /package/dist/chunks/{tool-output-wjj7prxr.js → filesystem-wjj7prxr.js} +0 -0
- /package/dist/chunks/{tool-output-wtztk69x.js → filesystem-wtztk69x.js} +0 -0
- /package/dist/chunks/{tool-output-x0ckcb58.js → filesystem-x0ckcb58.js} +0 -0
- /package/dist/chunks/{tool-output-x61499pn.js → filesystem-x61499pn.js} +0 -0
- /package/dist/chunks/{tool-output-y44na4kk.js → filesystem-y44na4kk.js} +0 -0
- /package/dist/chunks/{tool-output-y8f7s663.js → filesystem-y8f7s663.js} +0 -0
- /package/dist/chunks/{tool-output-ygaqb7jw.js → filesystem-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{tool-output-ym463w8f.js → filesystem-ym463w8f.js} +0 -0
- /package/dist/chunks/{tool-output-z5v4ffb3.js → filesystem-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{tool-output-z9919s4g.js → filesystem-z9919s4g.js} +0 -0
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-edpv0694.js";
|
|
5
5
|
import {
|
|
6
6
|
shutdown2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./filesystem-vd3b3yk9.js";
|
|
9
9
|
import {
|
|
10
10
|
key2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./filesystem-rrad2nt9.js";
|
|
12
12
|
import {
|
|
13
13
|
ID16,
|
|
14
14
|
Service82,
|
|
15
15
|
node86,
|
|
16
16
|
Event18
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./filesystem-3dedk1s0.js";
|
|
18
18
|
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
19
|
+
Service79,
|
|
20
|
+
node83
|
|
21
|
+
} from "./filesystem-fartem3k.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/provider.ts
|
|
27
27
|
var exports_provider3 = {};
|
|
@@ -36,7 +36,7 @@ __export(exports_provider3, {
|
|
|
36
36
|
LoadError: () => LoadError3,
|
|
37
37
|
Provider: () => exports_provider3,
|
|
38
38
|
Request: () => Request3,
|
|
39
|
-
Service: () =>
|
|
39
|
+
Service: () => Service78,
|
|
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: () => node82,
|
|
52
52
|
packageName: () => packageName2,
|
|
53
53
|
timeout: () => timeout2,
|
|
54
54
|
timeouts: () => timeouts2
|
|
@@ -540,7 +540,7 @@ var Transport2 = Provider.Transport;
|
|
|
540
540
|
var Settings2 = Provider.Settings;
|
|
541
541
|
var Info22 = Provider.Info;
|
|
542
542
|
|
|
543
|
-
class
|
|
543
|
+
class Service78 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(Service78, Effect2.gen(function* () {
|
|
557
557
|
const bus = yield* Service85;
|
|
558
558
|
const integrations = yield* Service82;
|
|
559
|
-
const location = yield*
|
|
559
|
+
const location = yield* Service79;
|
|
560
560
|
const state = create3({
|
|
561
561
|
name: "provider",
|
|
562
562
|
initial: () => new Map,
|
|
@@ -675,7 +675,7 @@ var layer = Layer.effect(Service76, Effect2.gen(function* () {
|
|
|
675
675
|
});
|
|
676
676
|
});
|
|
677
677
|
yield* bus.subscribe([Event18.Updated, Credential.Event.Updated, Credential.Event.Switched]).pipe(Stream.runForEach(() => notify), Effect2.forkScoped({ startImmediately: true }));
|
|
678
|
-
return
|
|
678
|
+
return Service78.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(Service76, Effect2.gen(function* () {
|
|
|
684
684
|
snapshot
|
|
685
685
|
});
|
|
686
686
|
}));
|
|
687
|
-
var
|
|
687
|
+
var node82 = makeLocationNode({ service: Service78, layer, deps: [node89, node86, node83] });
|
|
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, ID13, 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, Info22,
|
|
709
|
+
export { rewrite2, native2, exports_aisdk_native, ID13, 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, Info22, Service78, node82, exports_provider3, Event16 };
|
|
@@ -1,84 +1,83 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-rbj8gs5v.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./filesystem-edpv0694.js";
|
|
9
9
|
import {
|
|
10
10
|
create3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./filesystem-vd3b3yk9.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
13
|
+
ID11,
|
|
14
|
+
Service70,
|
|
15
|
+
node74
|
|
16
|
+
} from "./filesystem-bhk5af8b.js";
|
|
17
17
|
import {
|
|
18
18
|
llmClient2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./filesystem-p015t6z3.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
21
|
+
Service77,
|
|
22
|
+
node81
|
|
23
|
+
} from "./filesystem-p1qvkr9d.js";
|
|
24
24
|
import {
|
|
25
25
|
estimate2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./filesystem-8wtp7s3z.js";
|
|
27
27
|
import {
|
|
28
28
|
SessionEvent2
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./filesystem-ec1grn59.js";
|
|
30
30
|
import {
|
|
31
31
|
kept2,
|
|
32
32
|
messageToText2,
|
|
33
|
-
truncateToolOutput2,
|
|
34
33
|
serializeToolContent2
|
|
35
|
-
} from "./
|
|
34
|
+
} from "./filesystem-v2r1d0zg.js";
|
|
36
35
|
import {
|
|
37
36
|
isNativeCompaction2,
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
37
|
+
load5
|
|
38
|
+
} from "./filesystem-8k7htary.js";
|
|
40
39
|
import {
|
|
41
40
|
toLLMMessages2
|
|
42
|
-
} from "./
|
|
41
|
+
} from "./filesystem-fx5d1n8y.js";
|
|
43
42
|
import {
|
|
44
43
|
outputLimit2,
|
|
45
44
|
baseTranscript2,
|
|
46
45
|
unsupportedParts2,
|
|
47
46
|
boundImages2,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
} from "./
|
|
47
|
+
Service28,
|
|
48
|
+
node31
|
|
49
|
+
} from "./filesystem-a9mr4pbf.js";
|
|
51
50
|
import {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
} from "./
|
|
51
|
+
Service34,
|
|
52
|
+
node36
|
|
53
|
+
} from "./filesystem-t2wr9q9z.js";
|
|
55
54
|
import {
|
|
56
55
|
isRetryable2,
|
|
57
56
|
policy2
|
|
58
|
-
} from "./
|
|
57
|
+
} from "./filesystem-tasvem1v.js";
|
|
59
58
|
import {
|
|
60
59
|
toSessionError2,
|
|
61
60
|
contentFilterError2
|
|
62
|
-
} from "./
|
|
61
|
+
} from "./filesystem-p6brcwvv.js";
|
|
63
62
|
import {
|
|
64
63
|
calculateCost2,
|
|
65
64
|
record2,
|
|
66
65
|
add2
|
|
67
|
-
} from "./
|
|
66
|
+
} from "./filesystem-tw8zr1ps.js";
|
|
68
67
|
import {
|
|
69
68
|
__export
|
|
70
|
-
} from "./
|
|
69
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
71
70
|
|
|
72
71
|
// src/session/compaction.ts
|
|
73
72
|
var exports_compaction2 = {};
|
|
74
73
|
__export(exports_compaction2, {
|
|
75
|
-
Service: () =>
|
|
74
|
+
Service: () => Service8,
|
|
76
75
|
SessionCompaction: () => exports_compaction2,
|
|
77
76
|
buildPrompt: () => buildPrompt2,
|
|
78
77
|
estimateContext: () => estimateContext2,
|
|
79
78
|
estimatePrompt: () => estimatePrompt2,
|
|
80
|
-
layer: () =>
|
|
81
|
-
node: () =>
|
|
79
|
+
layer: () => layer7,
|
|
80
|
+
node: () => node10,
|
|
82
81
|
recentUserMessages: () => recentUserMessages2
|
|
83
82
|
});
|
|
84
83
|
import {
|
|
@@ -94,14 +93,20 @@ import {
|
|
|
94
93
|
} from "@opencode/ai";
|
|
95
94
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
96
95
|
import { Context, Effect, Exit, Fiber, Layer, Result, Scope, Stream } from "effect";
|
|
97
|
-
class
|
|
96
|
+
class Service8 extends Context.Service()("@opencode/SessionCompaction") {
|
|
98
97
|
}
|
|
99
98
|
var NOTHING_TO_COMPACT = { error: { type: "compaction.unavailable", message: "Nothing to compact yet" } };
|
|
100
|
-
var SHRINK_STEPS = [0.7, 0.5, 0.35];
|
|
99
|
+
var SHRINK_STEPS = [0.85, 0.7, 0.5, 0.35];
|
|
101
100
|
var RESERVE_MIN = 16000;
|
|
102
101
|
var RESERVE_SHARE = 0.15;
|
|
103
102
|
var UNKNOWN_WINDOW = 200000;
|
|
104
103
|
var SUMMARY_OUTPUT_FLOOR = 32000;
|
|
104
|
+
var OUTPUTS_CLIPPED = 1;
|
|
105
|
+
var OUTPUTS_REMOVED = 2;
|
|
106
|
+
var USER_ONLY = 3;
|
|
107
|
+
var OMITTED = 4;
|
|
108
|
+
var TRANSCRIPT_LEVELS = [0, OUTPUTS_CLIPPED, OUTPUTS_REMOVED, USER_ONLY, OMITTED];
|
|
109
|
+
var TRANSCRIPT_CLIP = 2000;
|
|
105
110
|
var IMAGE_TOKEN_ESTIMATE = 1500;
|
|
106
111
|
var PDF_TOKEN_ESTIMATE = 2000;
|
|
107
112
|
var PRECOMPUTE_RATIO = 0.85;
|
|
@@ -179,14 +184,14 @@ var buildPrompt2 = (update, legacy = false) => {
|
|
|
179
184
|
};
|
|
180
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.";
|
|
181
186
|
var LEGACY_HEADING = "## Additional Context";
|
|
182
|
-
var
|
|
183
|
-
const agents = yield*
|
|
187
|
+
var layer7 = Layer.effect(Service8, Effect.gen(function* () {
|
|
188
|
+
const agents = yield* Service70;
|
|
184
189
|
const bus = yield* Service85;
|
|
185
190
|
const llm = yield* LLMClient.Service;
|
|
186
|
-
const catalog = yield*
|
|
187
|
-
const models = yield*
|
|
191
|
+
const catalog = yield* Service77;
|
|
192
|
+
const models = yield* Service34;
|
|
188
193
|
const db = (yield* Service86).db;
|
|
189
|
-
const requests = yield*
|
|
194
|
+
const requests = yield* Service28;
|
|
190
195
|
const scope = yield* Scope.Scope;
|
|
191
196
|
const precomputed = new Map;
|
|
192
197
|
const state = create3({
|
|
@@ -199,7 +204,7 @@ var layer8 = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
199
204
|
})
|
|
200
205
|
});
|
|
201
206
|
const selectModel = Effect.fnUntraced(function* (context, buffer, native) {
|
|
202
|
-
const agent = native ? undefined : yield* agents.get(
|
|
207
|
+
const agent = native ? undefined : yield* agents.get(ID11.make("compaction"));
|
|
203
208
|
const model = (agent?.model && (yield* models.resolve({ ...context.session, model: agent.model }, catalog.available).pipe(Effect.orElseSucceed(() => {
|
|
204
209
|
return;
|
|
205
210
|
})))) ?? context.model;
|
|
@@ -354,7 +359,7 @@ var layer8 = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
354
359
|
const send = (request) => {
|
|
355
360
|
if (LLMClient.canCompact(request, { mechanism: "trigger" })) {
|
|
356
361
|
return Effect.gen(function* () {
|
|
357
|
-
const history = yield*
|
|
362
|
+
const history = yield* load5(db, context.session.id, "local").pipe(Effect.orDie);
|
|
358
363
|
const retained = recentUserMessages2(history, context.model, keep);
|
|
359
364
|
const response = yield* llm.compact(request, { ...prepared.options, mechanism: "trigger" });
|
|
360
365
|
return yield* toResult([...retained, Message.assistant(response.checkpoint)], response.usage);
|
|
@@ -428,29 +433,42 @@ var layer8 = Layer.effect(Service11, Effect.gen(function* () {
|
|
|
428
433
|
const summary = previous !== undefined && !isNativeCompaction2(previous) ? previous : undefined;
|
|
429
434
|
const lead = summary ? toLLMMessages2([{ ...summary, metadata: { ...summary.metadata, recent: "" } }], context.model.ref) : request.messages.slice(0, end);
|
|
430
435
|
const recent = summary ? kept2(summary) : "";
|
|
431
|
-
const exchanges =
|
|
432
|
-
|
|
433
|
-
|
|
436
|
+
const exchanges = [
|
|
437
|
+
...recent ? [TRANSCRIPT_LEVELS.map((level) => level === OMITTED ? "" : recent)] : [],
|
|
438
|
+
...request.messages.slice(end).reduce((groups, message) => {
|
|
439
|
+
if (message.role === "user" || groups.length === 0)
|
|
440
|
+
groups.push([message]);
|
|
441
|
+
else
|
|
442
|
+
groups[groups.length - 1].push(message);
|
|
434
443
|
return groups;
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
return groups;
|
|
441
|
-
}, recent ? [recent] : []);
|
|
444
|
+
}, []).map((group) => TRANSCRIPT_LEVELS.map((level) => group.map((message) => flattenMessage(message, level)).filter(Boolean).join(`
|
|
445
|
+
`))).filter((renders) => renders[0])
|
|
446
|
+
];
|
|
447
|
+
if (exchanges.length === 0)
|
|
448
|
+
return;
|
|
442
449
|
const note = (omitted) => omitted ? `[${omitted} older ${omitted === 1 ? "exchange" : "exchanges"} omitted]
|
|
443
450
|
|
|
444
451
|
` : "";
|
|
445
|
-
const
|
|
446
|
-
const
|
|
447
|
-
|
|
452
|
+
const size = (text) => text ? estimate2(text) + 1 : 0;
|
|
453
|
+
const room = target - estimateRequest({ system: request.system, tools: [], messages: lead }) - estimate2(note(exchanges.length));
|
|
454
|
+
const levels = exchanges.map(() => 0);
|
|
455
|
+
let total = exchanges.reduce((sum, renders) => sum + size(renders[0]), 0);
|
|
456
|
+
const newest = exchanges.length - 1;
|
|
457
|
+
for (const level of TRANSCRIPT_LEVELS.slice(1)) {
|
|
458
|
+
for (let index = 0;index < exchanges.length && total > room; index++) {
|
|
459
|
+
if (index === newest && !exchanges[index][level])
|
|
460
|
+
continue;
|
|
461
|
+
total += size(exchanges[index][level]) - size(exchanges[index][levels[index]]);
|
|
462
|
+
levels[index] = level;
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
if (total > room)
|
|
448
466
|
return;
|
|
449
|
-
|
|
450
|
-
|
|
467
|
+
const omitted = levels.filter((level, index) => !exchanges[index][level]).length;
|
|
468
|
+
const text = exchanges.map((renders, index) => renders[levels[index]]).filter(Boolean).join(`
|
|
451
469
|
|
|
452
|
-
`)
|
|
453
|
-
});
|
|
470
|
+
`);
|
|
471
|
+
return LLMRequest.update(request, { tools: [], messages: [...lead, Message.user(note(omitted) + text)] });
|
|
454
472
|
};
|
|
455
473
|
const stream = (context, request, options, background) => {
|
|
456
474
|
const sessionID = context.session.id;
|
|
@@ -556,17 +574,17 @@ ${text}`;
|
|
|
556
574
|
}, { metadata: outcome.metadata });
|
|
557
575
|
return { status: "completed" };
|
|
558
576
|
});
|
|
559
|
-
return
|
|
577
|
+
return Service8.of({
|
|
560
578
|
transform: state.transform,
|
|
561
579
|
reload: state.reload,
|
|
562
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)))),
|
|
563
581
|
precompute
|
|
564
582
|
});
|
|
565
583
|
}));
|
|
566
|
-
var
|
|
567
|
-
service:
|
|
568
|
-
layer:
|
|
569
|
-
deps: [
|
|
584
|
+
var node10 = makeLocationNode({
|
|
585
|
+
service: Service8,
|
|
586
|
+
layer: layer7,
|
|
587
|
+
deps: [node74, node89, node90, llmClient2, node81, node31, node36]
|
|
570
588
|
});
|
|
571
589
|
var heldIndex = (held, context) => {
|
|
572
590
|
if (held.firstID !== context.messages[0]?.id || held.initial !== context.initial)
|
|
@@ -632,25 +650,49 @@ var oldestToDrop = (items, size, budget) => {
|
|
|
632
650
|
}
|
|
633
651
|
return start;
|
|
634
652
|
};
|
|
635
|
-
var flattenMessage = (message) => {
|
|
636
|
-
if (message.role === "system")
|
|
653
|
+
var flattenMessage = (message, level) => {
|
|
654
|
+
if (message.role === "system" || level === OMITTED)
|
|
655
|
+
return "";
|
|
656
|
+
if (level >= USER_ONLY && message.role !== "user")
|
|
637
657
|
return "";
|
|
638
658
|
return message.content.flatMap((part) => {
|
|
639
|
-
if (part.type === "text")
|
|
640
|
-
|
|
659
|
+
if (part.type === "text") {
|
|
660
|
+
if (!part.text)
|
|
661
|
+
return [];
|
|
662
|
+
const text = level >= USER_ONLY ? clip(part.text) : part.text;
|
|
663
|
+
return [`[${message.role === "user" ? "User" : "Assistant"}]: ${text}`];
|
|
664
|
+
}
|
|
665
|
+
if (level >= USER_ONLY)
|
|
666
|
+
return [];
|
|
641
667
|
if (part.type === "media")
|
|
642
668
|
return [`[${part.media.mediaType} omitted]`];
|
|
643
|
-
if (part.type === "tool-call")
|
|
644
|
-
|
|
669
|
+
if (part.type === "tool-call") {
|
|
670
|
+
const input = JSON.stringify(part.input) ?? "";
|
|
671
|
+
return [`[Assistant tool call]: ${part.name}(${level >= OUTPUTS_REMOVED ? clip(input) : input})`];
|
|
672
|
+
}
|
|
645
673
|
if (part.type !== "tool-result")
|
|
646
674
|
return [];
|
|
647
675
|
const result = part.result;
|
|
648
|
-
const output = result.type === "content" ? serializeToolContent2(result.value) : typeof result.value === "string" ? result.value : JSON.stringify(result.value) ?? "";
|
|
649
676
|
const label = result.type === "error" ? "Tool error" : "Tool result";
|
|
650
|
-
|
|
677
|
+
if (level >= OUTPUTS_REMOVED)
|
|
678
|
+
return [`[${label} omitted]`];
|
|
679
|
+
const output = result.type === "content" ? serializeToolContent2(result.value) : typeof result.value === "string" ? result.value : JSON.stringify(result.value) ?? "";
|
|
680
|
+
return [`[${label}]: ${level >= OUTPUTS_CLIPPED ? clip(output) : output}`];
|
|
651
681
|
}).join(`
|
|
652
682
|
`);
|
|
653
683
|
};
|
|
684
|
+
var clip = (value) => {
|
|
685
|
+
if (value.length <= TRANSCRIPT_CLIP)
|
|
686
|
+
return value;
|
|
687
|
+
const chars = Array.from(value);
|
|
688
|
+
if (chars.length <= TRANSCRIPT_CLIP)
|
|
689
|
+
return value;
|
|
690
|
+
const half = TRANSCRIPT_CLIP / 2;
|
|
691
|
+
const omitted = chars.length - TRANSCRIPT_CLIP;
|
|
692
|
+
return `${chars.slice(0, half).join("")}
|
|
693
|
+
[… ${omitted} characters omitted …]
|
|
694
|
+
${chars.slice(-half).join("")}`;
|
|
695
|
+
};
|
|
654
696
|
var recentUserMessages2 = (messages, model, keep) => {
|
|
655
697
|
const users = messages.filter((message) => message.type === "user").map((message) => ({ ...message, skills: undefined }));
|
|
656
698
|
const sendable = boundImages2(unsupportedParts2(toLLMMessages2(users, model.ref), model.capabilities));
|
|
@@ -729,4 +771,4 @@ var estimateMedia = (mime) => {
|
|
|
729
771
|
return 0;
|
|
730
772
|
};
|
|
731
773
|
|
|
732
|
-
export {
|
|
774
|
+
export { Service8, buildPrompt2, layer7, node10, recentUserMessages2, estimateContext2, estimatePrompt2, exports_compaction2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/workspace/driver.ts
|
|
6
6
|
var exports_driver = {};
|
|
@@ -10,8 +10,8 @@ __export(exports_driver, {
|
|
|
10
10
|
ProviderNotFound: () => ProviderNotFound2,
|
|
11
11
|
RegistryService: () => RegistryService2,
|
|
12
12
|
WorkspaceDriver: () => exports_driver,
|
|
13
|
-
make: () =>
|
|
14
|
-
node: () =>
|
|
13
|
+
make: () => make20,
|
|
14
|
+
node: () => node68,
|
|
15
15
|
registry: () => registry2,
|
|
16
16
|
registryNode: () => registryNode2
|
|
17
17
|
});
|
|
@@ -29,7 +29,7 @@ class ProviderNotFound2 extends Schema.TaggedError()("WorkspaceDriver.ProviderNo
|
|
|
29
29
|
provider: Schema.String
|
|
30
30
|
}) {
|
|
31
31
|
}
|
|
32
|
-
var
|
|
32
|
+
var make20 = (driver) => driver;
|
|
33
33
|
|
|
34
34
|
class RegistryService2 extends Context.Service()("@opencode/WorkspaceDriverRegistry") {
|
|
35
35
|
}
|
|
@@ -44,6 +44,6 @@ var registryNode2 = (drivers) => makeGlobalNode({
|
|
|
44
44
|
layer: Layer.succeed(RegistryService2, RegistryService2.of(registry2(drivers))),
|
|
45
45
|
deps: []
|
|
46
46
|
});
|
|
47
|
-
var
|
|
47
|
+
var node68 = registryNode2({});
|
|
48
48
|
|
|
49
|
-
export { Binding2, Error5, ProviderNotFound2,
|
|
49
|
+
export { Binding2, Error5, ProviderNotFound2, make20, RegistryService2, registry2, registryNode2, node68, exports_driver };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./filesystem-edpv0694.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service40
|
|
6
|
+
} from "./filesystem-4k0n4aqd.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Error3
|
|
9
|
+
} from "./filesystem-116ca35p.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service38
|
|
12
|
+
} from "./filesystem-v11fj23z.js";
|
|
13
13
|
import {
|
|
14
14
|
StepFailedError2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./filesystem-qnm4ee5f.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./filesystem-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
toSessionError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./filesystem-p6brcwvv.js";
|
|
22
22
|
import {
|
|
23
23
|
calculateCost2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./filesystem-tw8zr1ps.js";
|
|
25
25
|
import {
|
|
26
26
|
createLLMEventPublisher2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./filesystem-z2g46f5b.js";
|
|
28
28
|
import {
|
|
29
29
|
isRetryable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./filesystem-tasvem1v.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/session/runner/step.ts
|
|
36
36
|
var exports_step = {};
|
|
37
37
|
__export(exports_step, {
|
|
38
38
|
Outcome: () => Outcome2,
|
|
39
39
|
SessionStep: () => exports_step,
|
|
40
|
-
make: () =>
|
|
40
|
+
make: () => make8
|
|
41
41
|
});
|
|
42
42
|
import {
|
|
43
43
|
AIError,
|
|
@@ -51,11 +51,11 @@ var Outcome2 = Data.taggedEnum();
|
|
|
51
51
|
var TOOLS_INTERRUPTED = { type: "aborted", message: "Tool execution interrupted" };
|
|
52
52
|
var STEP_INTERRUPTED = { type: "aborted", message: "Step interrupted" };
|
|
53
53
|
var RESULT_MISSING = { type: "tool.result-missing", message: "Provider did not return a tool result" };
|
|
54
|
-
var
|
|
54
|
+
var make8 = Effect.gen(function* () {
|
|
55
55
|
const bus = yield* Service85;
|
|
56
56
|
const llm = yield* LLMClient.Service;
|
|
57
|
-
const snapshots = yield*
|
|
58
|
-
const toolOutput = yield*
|
|
57
|
+
const snapshots = yield* Service40;
|
|
58
|
+
const toolOutput = yield* Service38;
|
|
59
59
|
const attempt = Effect.fn("SessionStep.attempt")(function* (input) {
|
|
60
60
|
const pendingStartSnapshot = yield* snapshots.capture().pipe(Effect.forkScoped);
|
|
61
61
|
const publisher = createLLMEventPublisher2(bus, {
|
|
@@ -71,7 +71,7 @@ var make9 = Effect.gen(function* () {
|
|
|
71
71
|
const interruptTools = Effect.suspend(() => Fiber.interruptAll(toolRuns.map((run) => run.fiber)));
|
|
72
72
|
const executeTool = (call) => {
|
|
73
73
|
if (input.prepared.request.toolChoice?.type === "none")
|
|
74
|
-
return new
|
|
74
|
+
return new Error3({ message: "Tools are disabled after the maximum agent steps" });
|
|
75
75
|
return input.prepared.executeTool({
|
|
76
76
|
sessionID: input.sessionID,
|
|
77
77
|
agent: input.agent,
|
|
@@ -223,4 +223,4 @@ var classifyToolExits = (settled, runs) => {
|
|
|
223
223
|
return { interrupted: causes.some(Cause.hasInterrupts), declines, failure };
|
|
224
224
|
};
|
|
225
225
|
|
|
226
|
-
export { Outcome2,
|
|
226
|
+
export { Outcome2, make8, exports_step };
|
|
@@ -1,54 +1,54 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./filesystem-edpv0694.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service81,
|
|
7
|
+
node85
|
|
8
|
+
} from "./filesystem-7fvw33xg.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service79,
|
|
11
|
+
node83
|
|
12
|
+
} from "./filesystem-fartem3k.js";
|
|
13
13
|
import {
|
|
14
14
|
awaitActivation2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./filesystem-87sqwm80.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
} from "./
|
|
17
|
+
Service52,
|
|
18
|
+
node54
|
|
19
|
+
} from "./filesystem-azwwy65a.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
node17
|
|
22
|
+
} from "./filesystem-kybr559y.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
24
|
+
Service9,
|
|
25
|
+
node11
|
|
26
|
+
} from "./filesystem-vgk61ywp.js";
|
|
27
27
|
import {
|
|
28
28
|
__export
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./filesystem-9rqn6x4v.js";
|
|
30
30
|
|
|
31
31
|
// src/filesystem/location-watcher.ts
|
|
32
32
|
var exports_location_watcher = {};
|
|
33
33
|
__export(exports_location_watcher, {
|
|
34
34
|
LocationWatcher: () => exports_location_watcher,
|
|
35
|
-
Service: () =>
|
|
36
|
-
node: () =>
|
|
35
|
+
Service: () => Service7,
|
|
36
|
+
node: () => node9
|
|
37
37
|
});
|
|
38
38
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
39
39
|
import { Cause, Context, Effect, Exit, Layer, Scope, Semaphore, Stream } from "effect";
|
|
40
40
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
41
41
|
import path from "path";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
43
|
-
class
|
|
43
|
+
class Service7 extends Context.Service()("@opencode/LocationWatcher") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
46
|
-
const location = yield*
|
|
47
|
-
const watcher = yield*
|
|
45
|
+
var layer = Layer.effect(Service7, Effect.gen(function* () {
|
|
46
|
+
const location = yield* Service79;
|
|
47
|
+
const watcher = yield* Service52;
|
|
48
48
|
const bus = yield* Service85;
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
51
|
-
const policy = yield*
|
|
50
|
+
const git = yield* Service81;
|
|
51
|
+
const policy = yield* Service9;
|
|
52
52
|
const publish = (update) => bus.publish(FileSystem.Event.Changed, {
|
|
53
53
|
file: update.path,
|
|
54
54
|
event: update.type === "create" ? "add" : update.type === "update" ? "change" : "unlink"
|
|
@@ -100,12 +100,12 @@ var layer = Layer.effect(Service5, Effect.gen(function* () {
|
|
|
100
100
|
yield* awaitActivation2;
|
|
101
101
|
yield* reconcile();
|
|
102
102
|
}).pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logError("failed to start location watcher", { cause })), Effect.forkScoped({ startImmediately: true }));
|
|
103
|
-
return
|
|
103
|
+
return Service7.of({});
|
|
104
104
|
}));
|
|
105
|
-
var
|
|
106
|
-
service:
|
|
105
|
+
var node9 = makeLocationNode({
|
|
106
|
+
service: Service7,
|
|
107
107
|
layer,
|
|
108
|
-
deps: [
|
|
108
|
+
deps: [node54, FSUtil.node, node83, node85, node89, node17, node11]
|
|
109
109
|
});
|
|
110
110
|
|
|
111
|
-
export {
|
|
111
|
+
export { Service7, node9, exports_location_watcher };
|