@opencode/core 0.0.0-dev-21703 → 0.0.0-dev-21709
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 +75 -75
- package/dist/chunks/{vcs-3wyhrqfb.js → file-mutation-00zh2tpm.js} +8 -8
- package/dist/chunks/{vcs-034tev2y.js → file-mutation-034tev2y.js} +2 -2
- package/dist/chunks/{vcs-rek8exz1.js → file-mutation-03cjnd07.js} +32 -32
- package/dist/chunks/{vcs-7cx8wp0a.js → file-mutation-0421tmwc.js} +9 -9
- package/dist/chunks/{vcs-8xw1gbxj.js → file-mutation-04ppth10.js} +25 -25
- package/dist/chunks/{vcs-e553kem5.js → file-mutation-06ddj0xt.js} +21 -21
- package/dist/chunks/{vcs-qz7bsaqe.js → file-mutation-0fn7fmmf.js} +10 -10
- package/dist/chunks/{vcs-fznmdakp.js → file-mutation-0h8y3ex8.js} +4 -4
- package/dist/chunks/{vcs-ggkz6eda.js → file-mutation-0j1f7v6y.js} +9 -9
- package/dist/chunks/{vcs-9wdb4fag.js → file-mutation-0jy8s6kx.js} +18 -18
- package/dist/chunks/{vcs-46qzr04y.js → file-mutation-0t3ga4zv.js} +14 -14
- package/dist/chunks/{vcs-pe8zxjjb.js → file-mutation-0z1e74sk.js} +11 -11
- package/dist/chunks/{vcs-8c677wsw.js → file-mutation-0zc3gznn.js} +31 -31
- package/dist/chunks/{vcs-1kt6mkhz.js → file-mutation-1bb7jn70.js} +7 -7
- package/dist/chunks/{vcs-dbya8kmy.js → file-mutation-1daas5y7.js} +78 -78
- package/dist/chunks/{vcs-p63vsd4p.js → file-mutation-1eaqqsxz.js} +35 -35
- package/dist/chunks/{vcs-1ep2p91f.js → file-mutation-1ep2p91f.js} +2 -2
- package/dist/chunks/{vcs-m33a7njg.js → file-mutation-1k8pspw3.js} +34 -34
- package/dist/chunks/{vcs-vt7gs0sa.js → file-mutation-1qgwrgfd.js} +28 -28
- package/dist/chunks/{vcs-1x2knyw4.js → file-mutation-1x2knyw4.js} +1 -1
- package/dist/chunks/{vcs-p7vhpwh8.js → file-mutation-1yq9hg58.js} +5 -5
- package/dist/chunks/{vcs-4ytg8f8f.js → file-mutation-27bs79w9.js} +2 -2
- package/dist/chunks/{vcs-kxcz00f7.js → file-mutation-293dk3rs.js} +23 -23
- package/dist/chunks/{vcs-90n99h22.js → file-mutation-29kdrth0.js} +6 -6
- package/dist/chunks/{vcs-vs6edpr4.js → file-mutation-2c4qk5dm.js} +24 -24
- package/dist/chunks/{vcs-5t6a11tz.js → file-mutation-2cvbz1q2.js} +20 -20
- package/dist/chunks/{vcs-5ahgw1dr.js → file-mutation-2jmbxqq8.js} +15 -15
- package/dist/chunks/{vcs-abk8akr1.js → file-mutation-2qv8esx8.js} +24 -24
- package/dist/chunks/{vcs-dgeqmw5w.js → file-mutation-2v6yzfrh.js} +28 -28
- package/dist/chunks/{vcs-hnacnv9c.js → file-mutation-2y6rfkwc.js} +9 -9
- package/dist/chunks/{vcs-2z1j29yd.js → file-mutation-2z1j29yd.js} +1 -1
- package/dist/chunks/{vcs-h4tb54mh.js → file-mutation-3405mbpt.js} +21 -21
- package/dist/chunks/{vcs-41sv4bbj.js → file-mutation-3a12p9c1.js} +16 -16
- package/dist/chunks/{vcs-m22273wf.js → file-mutation-3bnc55rz.js} +3 -3
- package/dist/chunks/{vcs-nqqb3qew.js → file-mutation-3dcnb5me.js} +11 -11
- package/dist/chunks/{vcs-7c486ac5.js → file-mutation-3f3erb08.js} +8 -8
- package/dist/chunks/{vcs-q15q0jep.js → file-mutation-3g9qcz5y.js} +11 -11
- package/dist/chunks/{vcs-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{vcs-3wffcd5s.js → file-mutation-3jt9gp25.js} +22 -22
- package/dist/chunks/{vcs-wnaab4d3.js → file-mutation-3n1ze0gv.js} +36 -36
- package/dist/chunks/{vcs-3nnrz6f6.js → file-mutation-3nnrz6f6.js} +1 -1
- package/dist/chunks/{vcs-vzmjdaw1.js → file-mutation-3p1jq0np.js} +9 -9
- package/dist/chunks/{vcs-jjs45sef.js → file-mutation-3vf4gpqx.js} +13 -13
- package/dist/chunks/{vcs-vw4tn0tb.js → file-mutation-3w6s660c.js} +18 -18
- package/dist/chunks/{vcs-szbkmyzk.js → file-mutation-3y39jmrc.js} +19 -19
- package/dist/chunks/{vcs-ayg1wwbx.js → file-mutation-40jy4byv.js} +23 -23
- package/dist/chunks/{vcs-dwspvcwq.js → file-mutation-416sv9a0.js} +13 -13
- package/dist/chunks/{vcs-pja5mqfm.js → file-mutation-4bm89b1z.js} +14 -14
- package/dist/chunks/{vcs-87rf06dy.js → file-mutation-4kxjpvmm.js} +27 -27
- package/dist/chunks/{vcs-d9msb9sj.js → file-mutation-4qeetvzp.js} +16 -16
- package/dist/chunks/{vcs-4v008n1t.js → file-mutation-4v008n1t.js} +1 -1
- package/dist/chunks/{vcs-99cj8zr2.js → file-mutation-4xg6svek.js} +32 -32
- package/dist/chunks/{vcs-4xvmh7wp.js → file-mutation-4xvmh7wp.js} +3 -3
- package/dist/chunks/{vcs-b1xsayxh.js → file-mutation-51wwr1cb.js} +7 -7
- package/dist/chunks/{vcs-2fmpy7yj.js → file-mutation-537zfnwd.js} +18 -18
- package/dist/chunks/{vcs-3xhcmk8x.js → file-mutation-57k3rf66.js} +17 -17
- package/dist/chunks/{vcs-bgwvksk6.js → file-mutation-5ahehfm9.js} +15 -15
- package/dist/chunks/{vcs-q11fyp6d.js → file-mutation-5jn2rvwm.js} +17 -17
- package/dist/chunks/{vcs-5m9w47nd.js → file-mutation-5m9w47nd.js} +1 -1
- package/dist/chunks/{vcs-kn7j2k6k.js → file-mutation-5q3wnkda.js} +9 -9
- package/dist/chunks/{vcs-tbynrmzc.js → file-mutation-5rv30s6t.js} +94 -94
- package/dist/chunks/{vcs-rdsms1bd.js → file-mutation-5vmh6pxt.js} +25 -25
- package/dist/chunks/{vcs-v0yw3gr0.js → file-mutation-6b8h7563.js} +5 -5
- package/dist/chunks/{vcs-6esdw8yj.js → file-mutation-6esdw8yj.js} +1 -1
- package/dist/chunks/{vcs-71v1yb5p.js → file-mutation-6pe7vn7p.js} +5 -5
- package/dist/chunks/{vcs-6pjqjmy2.js → file-mutation-6pjqjmy2.js} +1 -1
- package/dist/chunks/{vcs-3bhgvgs9.js → file-mutation-6tkfv6vy.js} +22 -22
- package/dist/chunks/{vcs-azfbc7ga.js → file-mutation-713f9fkw.js} +193 -193
- package/dist/chunks/{vcs-w8qtt4th.js → file-mutation-76cb1hcw.js} +4 -4
- package/dist/chunks/{vcs-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{vcs-ah756314.js → file-mutation-7cbjmmn9.js} +14 -14
- package/dist/chunks/{vcs-cw16pp1j.js → file-mutation-7r2864x8.js} +9 -9
- package/dist/chunks/{vcs-prajgvp7.js → file-mutation-7rp33d8t.js} +16 -16
- package/dist/chunks/{vcs-7w2ypzdf.js → file-mutation-7w2ypzdf.js} +1 -1
- package/dist/chunks/{vcs-b1zh1j4f.js → file-mutation-7w4z2a19.js} +63 -63
- package/dist/chunks/{vcs-qjgzc4b4.js → file-mutation-8jztxfpf.js} +4 -4
- package/dist/chunks/{vcs-tasvem1v.js → file-mutation-8sxdqgb0.js} +6 -6
- package/dist/chunks/{vcs-8wtp7s3z.js → file-mutation-8wtp7s3z.js} +1 -1
- package/dist/chunks/{vcs-m68y8hd5.js → file-mutation-8zf098kr.js} +17 -17
- package/dist/chunks/{vcs-10ygv7zj.js → file-mutation-906g5kdk.js} +9 -9
- package/dist/chunks/{vcs-91rj84md.js → file-mutation-91rj84md.js} +1 -1
- package/dist/chunks/{vcs-r1k9m3eb.js → file-mutation-997dsrmm.js} +6 -6
- package/dist/chunks/{vcs-998yhzzq.js → file-mutation-998yhzzq.js} +3 -3
- package/dist/chunks/{vcs-8vh6kwmg.js → file-mutation-9s6n3p5d.js} +50 -50
- package/dist/chunks/{vcs-kj1j79ct.js → file-mutation-9vyfkg2v.js} +11 -11
- package/dist/chunks/{vcs-v34k8dr0.js → file-mutation-9y9qs21w.js} +17 -17
- package/dist/chunks/{vcs-r47ja65p.js → file-mutation-9z3zqrcq.js} +21 -21
- package/dist/chunks/file-mutation-a610t88q.js +18 -0
- package/dist/chunks/{vcs-n3bkb5q1.js → file-mutation-abr51mnh.js} +8 -8
- package/dist/chunks/{vcs-536wrdac.js → file-mutation-acjz1v7j.js} +11 -11
- package/dist/chunks/{vcs-xxjtdm9r.js → file-mutation-ad8q6rp3.js} +11 -11
- package/dist/chunks/{vcs-m5fkg57x.js → file-mutation-ajmrn4wa.js} +32 -32
- package/dist/chunks/{vcs-yxdc7d4s.js → file-mutation-atxt4sm9.js} +5 -5
- package/dist/chunks/{vcs-hch4wa3n.js → file-mutation-ay6kp039.js} +4 -4
- package/dist/chunks/{vcs-ayjs7tqn.js → file-mutation-ayjs7tqn.js} +2 -2
- package/dist/chunks/{vcs-b0mv4wxm.js → file-mutation-b0mv4wxm.js} +2 -2
- package/dist/chunks/{vcs-nfggw9da.js → file-mutation-b2fa49hh.js} +5 -5
- package/dist/chunks/{vcs-b6vsg801.js → file-mutation-b6vsg801.js} +2 -2
- package/dist/chunks/{vcs-rcbk8nhg.js → file-mutation-b8wpdthk.js} +20 -20
- package/dist/chunks/{vcs-v9085ex6.js → file-mutation-bd3818sh.js} +4 -4
- package/dist/chunks/{vcs-ex08epxr.js → file-mutation-bfp67d1e.js} +9 -9
- package/dist/chunks/{vcs-m6qs7jjd.js → file-mutation-bjhhq9t1.js} +13 -13
- package/dist/chunks/{vcs-1zjbdtxw.js → file-mutation-bn1zwxk7.js} +14 -14
- package/dist/chunks/{vcs-1r2244sv.js → file-mutation-bpzpc9vw.js} +5 -5
- package/dist/chunks/{vcs-bstexjd6.js → file-mutation-bstexjd6.js} +1 -1
- package/dist/chunks/{vcs-jtp9x085.js → file-mutation-c2b1zq20.js} +35 -35
- package/dist/chunks/{vcs-hdmztdx8.js → file-mutation-c3kxzd3k.js} +23 -23
- package/dist/chunks/{vcs-prd8gnhb.js → file-mutation-c5kjsz6q.js} +4 -4
- package/dist/chunks/{vcs-c9t2ty9q.js → file-mutation-c9t2ty9q.js} +1 -1
- package/dist/chunks/{vcs-wsf6rpby.js → file-mutation-cfbwa52m.js} +9 -9
- package/dist/chunks/{vcs-68t33k5k.js → file-mutation-cg703a76.js} +15 -15
- package/dist/chunks/{vcs-6s6a40zb.js → file-mutation-ctagr9g7.js} +13 -13
- package/dist/chunks/{vcs-254hq818.js → file-mutation-cw4h5047.js} +48 -48
- package/dist/chunks/{vcs-3yws84f3.js → file-mutation-czxr0pk5.js} +45 -45
- package/dist/chunks/{vcs-1y0wdj51.js → file-mutation-d2dx6a7h.js} +4 -4
- package/dist/chunks/{vcs-d4v9tmah.js → file-mutation-d4v9tmah.js} +2 -2
- package/dist/chunks/{vcs-gkt35az7.js → file-mutation-d5w8jy03.js} +14 -14
- package/dist/chunks/{vcs-jrtmv02s.js → file-mutation-d8c7zwkj.js} +25 -25
- package/dist/chunks/{vcs-a7hcemwv.js → file-mutation-d8qd4w10.js} +8 -8
- package/dist/chunks/{vcs-1crk60dk.js → file-mutation-dg69zav8.js} +15 -15
- package/dist/chunks/{vcs-mvpchj3s.js → file-mutation-dkkf5xq4.js} +27 -27
- package/dist/chunks/{vcs-3gvxgqww.js → file-mutation-dm5qwjy7.js} +27 -27
- package/dist/chunks/{vcs-1wp5yz2q.js → file-mutation-dr3mewcq.js} +15 -15
- package/dist/chunks/{vcs-btxkkvbe.js → file-mutation-dz55c0zm.js} +8 -8
- package/dist/chunks/{vcs-qc5pkzrw.js → file-mutation-e1nbxf8q.js} +14 -14
- package/dist/chunks/{vcs-4qxmg69m.js → file-mutation-e28v8y2t.js} +34 -34
- package/dist/chunks/{vcs-247ftevp.js → file-mutation-e5yz98j3.js} +6 -6
- package/dist/chunks/{vcs-e834z07m.js → file-mutation-e834z07m.js} +1 -1
- package/dist/chunks/{vcs-xqvtd8tg.js → file-mutation-e8zbksk4.js} +4 -4
- package/dist/chunks/{vcs-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{vcs-0rq01gt9.js → file-mutation-egmw08v6.js} +5 -5
- package/dist/chunks/{vcs-tw1cfj00.js → file-mutation-ejryywa8.js} +46 -46
- package/dist/chunks/{vcs-dyg9d8gn.js → file-mutation-ejx5chcx.js} +35 -35
- package/dist/chunks/{vcs-mhmq597p.js → file-mutation-eqzqqxkz.js} +17 -17
- package/dist/chunks/{vcs-7fyt61ge.js → file-mutation-ew73g2zp.js} +4 -4
- package/dist/chunks/{vcs-9mere5t7.js → file-mutation-f10m4awg.js} +13 -13
- package/dist/chunks/{vcs-za6w1b0s.js → file-mutation-f2rre9xz.js} +7 -7
- package/dist/chunks/{vcs-x8a5m77f.js → file-mutation-f535s2sq.js} +20 -20
- package/dist/chunks/{vcs-fffv3p7h.js → file-mutation-fffv3p7h.js} +1 -1
- package/dist/chunks/{vcs-zpxa3g5c.js → file-mutation-fr0fh1nj.js} +22 -22
- package/dist/chunks/{vcs-d3r8edvw.js → file-mutation-fv8tw6aa.js} +4 -4
- package/dist/chunks/{vcs-eq3fc1qc.js → file-mutation-fvc4bqe2.js} +5 -5
- package/dist/chunks/{vcs-ff97cw60.js → file-mutation-g113tq3g.js} +4 -4
- package/dist/chunks/{vcs-g5h9c0rr.js → file-mutation-g5h9c0rr.js} +2 -2
- package/dist/chunks/{vcs-g7esga4v.js → file-mutation-g7esga4v.js} +1 -1
- package/dist/chunks/{vcs-6fg5chfs.js → file-mutation-ganf5qds.js} +25 -25
- package/dist/chunks/{vcs-skwe01yc.js → file-mutation-gh9nzn29.js} +11 -11
- package/dist/chunks/{vcs-njnvzz52.js → file-mutation-gkq9xxxw.js} +40 -40
- package/dist/chunks/{vcs-kj8zjydm.js → file-mutation-gx0r2313.js} +6 -6
- package/dist/chunks/{vcs-530a82th.js → file-mutation-gy8yxpp1.js} +11 -11
- package/dist/chunks/{vcs-z8nn4snw.js → file-mutation-gzr767ae.js} +47 -47
- package/dist/chunks/{vcs-skfx7z6k.js → file-mutation-h406p1d4.js} +18 -18
- package/dist/chunks/{vcs-vh9aq6dc.js → file-mutation-h65mpfhc.js} +52 -52
- package/dist/chunks/{vcs-yqpwreg0.js → file-mutation-h931zhe2.js} +47 -47
- package/dist/chunks/{vcs-jw20qntp.js → file-mutation-hbkf0bb7.js} +5 -5
- package/dist/chunks/{vcs-aypkeb6d.js → file-mutation-hr21agsb.js} +88 -88
- package/dist/chunks/{vcs-0rcrzzvr.js → file-mutation-hrwtt92m.js} +35 -35
- package/dist/chunks/{vcs-5x8br9fm.js → file-mutation-hsb38h3t.js} +28 -28
- package/dist/chunks/{vcs-vb9pfrew.js → file-mutation-hvh7vr4z.js} +10 -10
- package/dist/chunks/{vcs-t8v8tvff.js → file-mutation-hwg1rf37.js} +23 -23
- package/dist/chunks/{vcs-vdc7b2sf.js → file-mutation-j110d6ac.js} +11 -11
- package/dist/chunks/{vcs-j113cymg.js → file-mutation-j113cymg.js} +1 -1
- package/dist/chunks/{vcs-maar8wck.js → file-mutation-j144xwzw.js} +9 -9
- package/dist/chunks/{vcs-gzphd3qt.js → file-mutation-jcapkbe6.js} +4 -4
- package/dist/chunks/{vcs-07zevav5.js → file-mutation-jd41cg63.js} +52 -52
- package/dist/chunks/{vcs-2cyz7x39.js → file-mutation-jfqpy2va.js} +24 -24
- package/dist/chunks/{vcs-9p9xqj3m.js → file-mutation-jneg3k74.js} +6 -6
- package/dist/chunks/{vcs-k46f9xjt.js → file-mutation-jwswcnbf.js} +22 -22
- package/dist/chunks/{vcs-dh62xe4r.js → file-mutation-jx89vj1k.js} +3 -3
- package/dist/chunks/file-mutation-k1mgqf2s.js +26 -0
- package/dist/chunks/{vcs-pbtkdcp0.js → file-mutation-k4x8dxyy.js} +7 -7
- package/dist/chunks/{vcs-k814nvkf.js → file-mutation-k814nvkf.js} +1 -1
- package/dist/chunks/{vcs-n9tasrvf.js → file-mutation-k9kmnnb3.js} +12 -12
- package/dist/chunks/{vcs-42b1cham.js → file-mutation-kaen2cat.js} +21 -21
- package/dist/chunks/{vcs-2dzqnr5m.js → file-mutation-kb3vw7p8.js} +29 -29
- package/dist/chunks/{vcs-wwye013q.js → file-mutation-kd4chd64.js} +4 -4
- package/dist/chunks/{vcs-baw7bc8n.js → file-mutation-kd8e7gdr.js} +1 -1
- package/dist/chunks/{vcs-38h2fn7g.js → file-mutation-kf6qbgb5.js} +3 -3
- package/dist/chunks/{vcs-1t40x6tf.js → file-mutation-kkh6p5hg.js} +4 -4
- package/dist/chunks/{vcs-ep7q3v7p.js → file-mutation-kp4a0nkj.js} +47 -47
- package/dist/chunks/{vcs-pe678q2q.js → file-mutation-kvd7rme4.js} +2 -2
- package/dist/chunks/{vcs-f931xhwa.js → file-mutation-kz13mb51.js} +37 -37
- package/dist/chunks/{vcs-6f6h7c2t.js → file-mutation-m14375f6.js} +30 -30
- package/dist/chunks/{vcs-m1714858.js → file-mutation-m1714858.js} +1 -1
- package/dist/chunks/{vcs-yqtnzwzq.js → file-mutation-m6r2ag02.js} +5 -5
- package/dist/chunks/{vcs-vpnrak8v.js → file-mutation-m6yg81he.js} +18 -18
- package/dist/chunks/{vcs-3ze3q6mf.js → file-mutation-m6yx9010.js} +11 -11
- package/dist/chunks/{vcs-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{vcs-maspj1v3.js → file-mutation-maspj1v3.js} +1 -1
- package/dist/chunks/{vcs-pz16wjas.js → file-mutation-mfd21a06.js} +4 -4
- package/dist/chunks/{vcs-g8q9wv7c.js → file-mutation-mgvc1gk7.js} +14 -14
- package/dist/chunks/{vcs-c3cfh5w6.js → file-mutation-mmkbt6v3.js} +9 -9
- package/dist/chunks/{vcs-8ba3wsfr.js → file-mutation-mr7gd4pm.js} +11 -11
- package/dist/chunks/{vcs-kwc19jgx.js → file-mutation-myc1cmw5.js} +18 -18
- package/dist/chunks/{vcs-f1kyj18j.js → file-mutation-mz1zez7g.js} +53 -53
- package/dist/chunks/{vcs-ggbcva3z.js → file-mutation-n0cek02z.js} +5 -5
- package/dist/chunks/{vcs-hx7vxw9c.js → file-mutation-n0n6a7ps.js} +6 -6
- package/dist/chunks/{vcs-n0p0277s.js → file-mutation-n0p0277s.js} +1 -1
- package/dist/chunks/{vcs-bnjqvjjm.js → file-mutation-n5h7v18c.js} +5 -5
- package/dist/chunks/{vcs-b50rsrab.js → file-mutation-n6v2b7cw.js} +5 -5
- package/dist/chunks/{vcs-s12jh10e.js → file-mutation-nad4mkqt.js} +8 -8
- package/dist/chunks/{vcs-770pw0s1.js → file-mutation-nah043kf.js} +4 -4
- package/dist/chunks/{vcs-wtk09v7c.js → file-mutation-nmmvaykg.js} +24 -24
- package/dist/chunks/{vcs-cps5zgbh.js → file-mutation-nz1awqkw.js} +38 -38
- package/dist/chunks/{vcs-p015t6z3.js → file-mutation-p015t6z3.js} +2 -2
- package/dist/chunks/{vcs-j75hfe7b.js → file-mutation-p47da6wh.js} +12 -12
- package/dist/chunks/{vcs-p3yv1tbb.js → file-mutation-p7bm53gt.js} +13 -13
- package/dist/chunks/{vcs-s20e5wsv.js → file-mutation-pafr3hmb.js} +35 -35
- package/dist/chunks/{vcs-v60pntgq.js → file-mutation-ph89xtmw.js} +36 -36
- package/dist/chunks/{vcs-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{vcs-kdjksvwe.js → file-mutation-pr21x5ks.js} +32 -32
- package/dist/chunks/{vcs-7jxjvf9t.js → file-mutation-psvnc0zj.js} +32 -32
- package/dist/chunks/{vcs-wjy5h13p.js → file-mutation-q1xw7kgx.js} +16 -16
- package/dist/chunks/{vcs-en4cswrv.js → file-mutation-q8ks7c1m.js} +25 -25
- package/dist/chunks/{vcs-xkmedc5t.js → file-mutation-qgk279fs.js} +46 -46
- package/dist/chunks/{vcs-c3wzxa47.js → file-mutation-qpxdw9gm.js} +8 -8
- package/dist/chunks/{vcs-r0yr0wbs.js → file-mutation-r0yr0wbs.js} +1 -1
- package/dist/chunks/{vcs-bbkbvbs4.js → file-mutation-r0zz2cdc.js} +1 -1
- package/dist/chunks/{vcs-6b49fqw0.js → file-mutation-r2m1wrpm.js} +17 -17
- package/dist/chunks/{vcs-jqqpsq7t.js → file-mutation-r5zmcn5f.js} +18 -18
- package/dist/chunks/{vcs-rb9dy4dg.js → file-mutation-rb9dy4dg.js} +1 -1
- package/dist/chunks/{vcs-eeb2rd94.js → file-mutation-rehp1ca5.js} +19 -19
- package/dist/chunks/{vcs-c5c0bz0t.js → file-mutation-rf80fxgj.js} +5 -5
- package/dist/chunks/{vcs-v94mhwh5.js → file-mutation-rgv2frq9.js} +13 -13
- package/dist/chunks/{vcs-jcd0g2s4.js → file-mutation-rmv7btfw.js} +20 -20
- package/dist/chunks/{vcs-ar2j3j0f.js → file-mutation-rrad2nt9.js} +4 -4
- package/dist/chunks/{vcs-rmt6m6se.js → file-mutation-rt0txz63.js} +9 -9
- package/dist/chunks/{vcs-34zfme1g.js → file-mutation-rt3jy22f.js} +24 -24
- package/dist/chunks/{vcs-rt5dr6hb.js → file-mutation-rt5dr6hb.js} +1 -1
- package/dist/chunks/{vcs-jmdhtxe0.js → file-mutation-rvw14dk0.js} +32 -32
- package/dist/chunks/file-mutation-rz0hcvs1.js +523 -0
- package/dist/chunks/{vcs-pg0ng17h.js → file-mutation-rz9csvhz.js} +14 -14
- package/dist/chunks/{vcs-5q1dgqbh.js → file-mutation-s4rs4ktr.js} +36 -36
- package/dist/chunks/{vcs-xpmys0j9.js → file-mutation-s7112yyh.js} +27 -27
- package/dist/chunks/{vcs-9cbnrx2n.js → file-mutation-sbegqkxp.js} +6 -6
- package/dist/chunks/{vcs-sqjzf8x2.js → file-mutation-sqjzf8x2.js} +1 -1
- package/dist/chunks/{vcs-dzznqqbs.js → file-mutation-t9e9esc1.js} +12 -12
- package/dist/chunks/{vcs-tczq8hjw.js → file-mutation-tczq8hjw.js} +1 -1
- package/dist/chunks/{vcs-xg28gvg7.js → file-mutation-tn2pqadg.js} +14 -14
- package/dist/chunks/{vcs-kmzgegqq.js → file-mutation-tqx9c315.js} +8 -8
- package/dist/chunks/{vcs-nz2z8868.js → file-mutation-ts7thg7k.js} +30 -30
- package/dist/chunks/{vcs-tw8zr1ps.js → file-mutation-tw8zr1ps.js} +1 -1
- package/dist/chunks/{vcs-twv2r8f4.js → file-mutation-twv2r8f4.js} +2 -2
- package/dist/chunks/{vcs-v2r1d0zg.js → file-mutation-v2r1d0zg.js} +1 -1
- package/dist/chunks/{vcs-xa1dtvk7.js → file-mutation-v6x8rhc3.js} +3 -3
- package/dist/chunks/{vcs-dbqrmbed.js → file-mutation-vaqsjg05.js} +6 -6
- package/dist/chunks/{vcs-k6xzj90s.js → file-mutation-vbmz9jev.js} +27 -27
- package/dist/chunks/{vcs-vd3b3yk9.js → file-mutation-vd3b3yk9.js} +1 -1
- package/dist/chunks/{vcs-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{vcs-5hvygcnt.js → file-mutation-vm0wcjea.js} +10 -10
- package/dist/chunks/{vcs-48kw51zw.js → file-mutation-vx3jgdek.js} +3 -3
- package/dist/chunks/{vcs-ftn2x50x.js → file-mutation-vxnb1daw.js} +35 -35
- package/dist/chunks/file-mutation-vz42csha.js +257 -0
- package/dist/chunks/{vcs-40za9wsf.js → file-mutation-w2eysc6j.js} +9 -9
- package/dist/chunks/{vcs-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{vcs-gag6a473.js → file-mutation-w7ceskr2.js} +13 -13
- package/dist/chunks/{vcs-wakvkjy4.js → file-mutation-wakvkjy4.js} +1 -1
- package/dist/chunks/{vcs-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{vcs-2b76hbf1.js → file-mutation-we6venq8.js} +11 -11
- package/dist/chunks/{vcs-jpq8vy5m.js → file-mutation-wqvpyqgm.js} +24 -24
- package/dist/chunks/{vcs-b5g50cq8.js → file-mutation-xmjq5dsw.js} +21 -21
- package/dist/chunks/{vcs-0xfwnfde.js → file-mutation-xs3xca8c.js} +18 -18
- package/dist/chunks/{vcs-kw8s18nw.js → file-mutation-y456hjcf.js} +34 -34
- package/dist/chunks/{vcs-cneb3d70.js → file-mutation-y9xrhqjb.js} +8 -8
- package/dist/chunks/{vcs-yb20nhc3.js → file-mutation-yb20nhc3.js} +1 -1
- package/dist/chunks/{vcs-z61xbmm9.js → file-mutation-yk7z3cd9.js} +19 -19
- package/dist/chunks/{vcs-deqy3kpa.js → file-mutation-ys14c7h6.js} +22 -22
- package/dist/chunks/{vcs-dtqdhp9c.js → file-mutation-yt06m8xx.js} +15 -15
- package/dist/chunks/{vcs-gbv88pv7.js → file-mutation-yy2s616e.js} +12 -12
- package/dist/chunks/{vcs-jjec1xd0.js → file-mutation-yz63e4xv.js} +2 -2
- package/dist/chunks/{vcs-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{vcs-4239rm3w.js → file-mutation-z11v4z0j.js} +20 -20
- package/dist/chunks/{vcs-exm49mxx.js → file-mutation-z2a3rv7v.js} +11 -11
- package/dist/chunks/{vcs-z38nccrw.js → file-mutation-z38nccrw.js} +1 -1
- package/dist/chunks/{vcs-h3b857xk.js → file-mutation-zgmrepvs.js} +4 -4
- package/dist/chunks/{vcs-s8vdmeb0.js → file-mutation-zh89wwz7.js} +10 -10
- package/dist/chunks/{vcs-ndxwzmcc.js → file-mutation-zhbs0pmw.js} +37 -37
- package/dist/chunks/{vcs-k0nmcfh6.js → file-mutation-zhv6stc2.js} +4 -4
- package/dist/chunks/{vcs-zkg84ctx.js → file-mutation-zkg84ctx.js} +1 -1
- package/dist/chunks/{vcs-n39q19g8.js → file-mutation-zkgq49d1.js} +4 -4
- package/dist/chunks/{vcs-bmvcqawa.js → file-mutation-zmk1cqnw.js} +48 -48
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +3 -3
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- 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 +118 -118
- package/dist/config/plugin/command.js +214 -214
- 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 +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- 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 +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- 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 +117 -117
- 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 +87 -87
- package/dist/database/database.js +74 -74
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.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 +97 -97
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- 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 +76 -76
- 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 +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +106 -106
- package/dist/form.js +86 -86
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- 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 +93 -93
- 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 +361 -361
- 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 +3 -3
- package/dist/integration.js +91 -91
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +159 -159
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- 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 +93 -93
- package/dist/model-resolver.js +101 -101
- package/dist/model-retry.js +1 -1
- package/dist/model.js +102 -102
- package/dist/models-dev.js +105 -105
- 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 +111 -111
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- 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 +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- 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 +125 -125
- 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-context-caps.js +92 -92
- 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 +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- 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 +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +352 -352
- 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 +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +103 -103
- 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 +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- 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 +224 -224
- package/dist/session/execution.js +128 -128
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +93 -93
- 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 +1 -1
- 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 +102 -102
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +5 -5
- 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 +163 -163
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +77 -77
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +212 -212
- 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 +223 -223
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- 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 +130 -130
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +112 -112
- package/dist/snapshot.js +93 -93
- 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 +139 -139
- package/dist/tool/plugin/edit.js +122 -122
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +124 -124
- package/dist/tool/plugin/grep.js +126 -126
- 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 +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +213 -213
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +115 -115
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- 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 +5 -5
- 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 +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +93 -93
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +91 -91
- package/dist/voice.js +90 -90
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +8 -8
- 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/vcs-89ps0kn4.js +0 -26
- package/dist/chunks/vcs-8zyq9cqv.js +0 -523
- package/dist/chunks/vcs-ezna1kdx.js +0 -18
- package/dist/chunks/vcs-zrej7bp7.js +0 -257
- /package/dist/chunks/{vcs-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{vcs-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{vcs-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{vcs-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{vcs-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{vcs-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{vcs-2bv980vf.js → file-mutation-2bv980vf.js} +0 -0
- /package/dist/chunks/{vcs-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{vcs-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{vcs-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{vcs-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{vcs-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{vcs-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{vcs-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{vcs-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{vcs-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{vcs-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{vcs-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{vcs-5fjb7ams.js → file-mutation-5fjb7ams.js} +0 -0
- /package/dist/chunks/{vcs-5qd3pb7m.js → file-mutation-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{vcs-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{vcs-6q2bdcd1.js → file-mutation-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{vcs-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{vcs-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{vcs-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{vcs-84wd9syh.js → file-mutation-84wd9syh.js} +0 -0
- /package/dist/chunks/{vcs-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{vcs-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{vcs-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{vcs-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{vcs-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{vcs-a058387c.js → file-mutation-a058387c.js} +0 -0
- /package/dist/chunks/{vcs-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{vcs-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{vcs-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{vcs-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{vcs-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{vcs-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{vcs-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{vcs-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{vcs-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{vcs-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{vcs-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{vcs-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{vcs-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{vcs-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{vcs-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{vcs-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{vcs-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{vcs-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{vcs-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{vcs-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{vcs-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{vcs-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{vcs-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{vcs-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{vcs-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{vcs-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{vcs-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{vcs-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{vcs-hcxmzztb.js → file-mutation-hcxmzztb.js} +0 -0
- /package/dist/chunks/{vcs-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{vcs-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{vcs-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{vcs-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{vcs-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{vcs-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{vcs-jze0r7bz.js → file-mutation-jze0r7bz.js} +0 -0
- /package/dist/chunks/{vcs-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{vcs-m18g726c.js → file-mutation-m18g726c.js} +0 -0
- /package/dist/chunks/{vcs-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{vcs-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{vcs-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{vcs-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{vcs-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{vcs-pkyv6v7h.js → file-mutation-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{vcs-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{vcs-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{vcs-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{vcs-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{vcs-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{vcs-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{vcs-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{vcs-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{vcs-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{vcs-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{vcs-ve7vex1e.js → file-mutation-ve7vex1e.js} +0 -0
- /package/dist/chunks/{vcs-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{vcs-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{vcs-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{vcs-wjj7prxr.js → file-mutation-wjj7prxr.js} +0 -0
- /package/dist/chunks/{vcs-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{vcs-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{vcs-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{vcs-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{vcs-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{vcs-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{vcs-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{vcs-z5v4ffb3.js → file-mutation-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{vcs-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-0fn7fmmf.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service85
|
|
6
|
+
} from "./file-mutation-q1xw7kgx.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
8
|
+
ID17,
|
|
9
|
+
Event19,
|
|
10
|
+
Service83
|
|
11
|
+
} from "./file-mutation-s4rs4ktr.js";
|
|
12
12
|
import {
|
|
13
13
|
key2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-rrad2nt9.js";
|
|
15
15
|
import {
|
|
16
|
-
|
|
16
|
+
ID16,
|
|
17
17
|
MethodID2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-vxnb1daw.js";
|
|
19
19
|
import {
|
|
20
20
|
which2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./file-mutation-qaymkmh1.js";
|
|
22
22
|
import {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
23
|
+
ID13,
|
|
24
|
+
Service77
|
|
25
|
+
} from "./file-mutation-pafr3hmb.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
ID12
|
|
28
|
+
} from "./file-mutation-hrwtt92m.js";
|
|
29
29
|
import {
|
|
30
30
|
configuredSettings2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-mutation-n0n6a7ps.js";
|
|
32
32
|
|
|
33
33
|
// src/plugin/provider/azure.ts
|
|
34
34
|
import { Clock, Effect, FiberHandle, Option, Schema, Semaphore, Stream } from "effect";
|
|
@@ -63,18 +63,18 @@ var decodeManagementDeployment = Schema.decodeUnknownOption(Schema.Struct({
|
|
|
63
63
|
}));
|
|
64
64
|
var ResourceQuery = Schema.Struct({ query: Schema.String });
|
|
65
65
|
var Resources = Schema.Struct({ data: Schema.Array(Schema.Struct({ id: Schema.NonEmptyString })) });
|
|
66
|
-
function
|
|
66
|
+
function make7(endpoints = {
|
|
67
67
|
resource: (name) => `https://${name}.openai.azure.com/openai`,
|
|
68
68
|
management: "https://management.azure.com"
|
|
69
69
|
}) {
|
|
70
70
|
return define({
|
|
71
71
|
id: "opencode.provider.azure",
|
|
72
72
|
effect: Effect.fn(function* (ctx) {
|
|
73
|
-
const configured = yield* configuredSettings2(
|
|
73
|
+
const configured = yield* configuredSettings2(ID13.azure);
|
|
74
74
|
const processes = yield* AppProcess.Service;
|
|
75
|
-
const bus = yield*
|
|
76
|
-
const credentials = yield*
|
|
77
|
-
const providers = yield*
|
|
75
|
+
const bus = yield* Service85;
|
|
76
|
+
const credentials = yield* Service83;
|
|
77
|
+
const providers = yield* Service77;
|
|
78
78
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
79
79
|
const tokens = new Map;
|
|
80
80
|
const resourceIDs = new Map;
|
|
@@ -100,11 +100,11 @@ function make4(endpoints = {
|
|
|
100
100
|
const configuredResource = Boolean(resolveResourceName(configured) || typeof configured?.baseURL === "string");
|
|
101
101
|
yield* ctx.integration.transform((editor) => {
|
|
102
102
|
editor.method.update({
|
|
103
|
-
integrationID:
|
|
103
|
+
integrationID: ID13.azure,
|
|
104
104
|
method: { type: "env", names: ["AZURE_API_KEY", "AZURE_COGNITIVE_SERVICES_API_KEY"] }
|
|
105
105
|
});
|
|
106
106
|
editor.method.update({
|
|
107
|
-
integrationID:
|
|
107
|
+
integrationID: ID13.azure,
|
|
108
108
|
method: {
|
|
109
109
|
type: "key",
|
|
110
110
|
label: "API key",
|
|
@@ -122,7 +122,7 @@ function make4(endpoints = {
|
|
|
122
122
|
if (!available)
|
|
123
123
|
return;
|
|
124
124
|
editor.method.update({
|
|
125
|
-
integrationID:
|
|
125
|
+
integrationID: ID13.azure,
|
|
126
126
|
method: {
|
|
127
127
|
id: methodID,
|
|
128
128
|
type: "external",
|
|
@@ -142,8 +142,8 @@ function make4(endpoints = {
|
|
|
142
142
|
});
|
|
143
143
|
});
|
|
144
144
|
const load = Effect.fn("AzurePlugin.load")(function* () {
|
|
145
|
-
const connection = yield* ctx.integration.connection.active(
|
|
146
|
-
const stored = connection?.type === "credential" ? yield* credentials.get(
|
|
145
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
146
|
+
const stored = connection?.type === "credential" ? yield* credentials.get(ID17.make(connection.id)) : undefined;
|
|
147
147
|
return { connection, resource: credentialResource(stored?.value) };
|
|
148
148
|
});
|
|
149
149
|
const findResource = Effect.fn("AzurePlugin.findResource")(function* (resource) {
|
|
@@ -182,7 +182,7 @@ function make4(endpoints = {
|
|
|
182
182
|
}));
|
|
183
183
|
const discover = Effect.fn("AzurePlugin.discover")(function* () {
|
|
184
184
|
const connection = loaded.connection;
|
|
185
|
-
const settings = (yield* providers.get(
|
|
185
|
+
const settings = (yield* providers.get(ID13.azure))?.settings;
|
|
186
186
|
const name = loaded.resource ?? resolveResourceName(settings);
|
|
187
187
|
const url = connection && name !== undefined && resourcePattern.test(name) && typeof settings?.baseURL !== "string" ? `${endpoints.resource(name)}/deployments?api-version=2022-12-01` : undefined;
|
|
188
188
|
if (loaded.connection !== connection)
|
|
@@ -204,11 +204,11 @@ function make4(endpoints = {
|
|
|
204
204
|
const found = yield* deployments(url, name, credential).pipe(Effect.map((list) => list.toSorted((a, b) => a.name.localeCompare(b.name))), Effect.catch((cause) => Effect.logWarning("failed to sync Azure deployments", { cause }).pipe(Effect.as(undefined))));
|
|
205
205
|
if (!found)
|
|
206
206
|
return;
|
|
207
|
-
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(
|
|
207
|
+
if (loaded.connection !== connection || key2(connection) !== key2(yield* ctx.integration.connection.active(ID13.azure)))
|
|
208
208
|
return;
|
|
209
209
|
if (JSON.stringify(found) === JSON.stringify(loaded.deployments))
|
|
210
210
|
return;
|
|
211
|
-
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(
|
|
211
|
+
const catalog = new Map(Array.from((yield* providers.snapshot()).records.get(ID13.azure)?.models.keys() ?? [], (id) => [
|
|
212
212
|
id.toLowerCase(),
|
|
213
213
|
id
|
|
214
214
|
]));
|
|
@@ -221,11 +221,11 @@ function make4(endpoints = {
|
|
|
221
221
|
yield* ctx.model.reload();
|
|
222
222
|
});
|
|
223
223
|
const refresh = () => rebind().pipe(Effect.andThen(FiberHandle.run(discovery, discover())));
|
|
224
|
-
const resourceFor = (provider) => provider.id ===
|
|
224
|
+
const resourceFor = (provider) => provider.id === ID13.azure ? loaded.resource ?? resolveResourceName(provider.settings) : resolveResourceName(provider.settings, loaded.resource);
|
|
225
225
|
Object.assign(loaded, yield* load());
|
|
226
226
|
yield* ctx.provider.transform((evt) => {
|
|
227
227
|
for (const item of evt.list()) {
|
|
228
|
-
if (item.provider.id !==
|
|
228
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
229
229
|
continue;
|
|
230
230
|
const resourceName = resourceFor(item.provider);
|
|
231
231
|
const websocket = responsesWebSocketCapable(item.provider);
|
|
@@ -240,7 +240,7 @@ function make4(endpoints = {
|
|
|
240
240
|
};
|
|
241
241
|
});
|
|
242
242
|
}
|
|
243
|
-
const item = evt.get(
|
|
243
|
+
const item = evt.get(ID13.azure);
|
|
244
244
|
if (!item)
|
|
245
245
|
return;
|
|
246
246
|
evt.add({
|
|
@@ -251,7 +251,7 @@ function make4(endpoints = {
|
|
|
251
251
|
});
|
|
252
252
|
yield* ctx.model.transform((models) => {
|
|
253
253
|
for (const item of models.provider.list()) {
|
|
254
|
-
if (item.provider.id !==
|
|
254
|
+
if (item.provider.id !== ID13.azure && !item.provider.package.startsWith("@opencode/ai/providers/azure/"))
|
|
255
255
|
continue;
|
|
256
256
|
const resourceName = resourceFor(item.provider);
|
|
257
257
|
for (const model of models.list(item.provider.id)) {
|
|
@@ -263,20 +263,20 @@ function make4(endpoints = {
|
|
|
263
263
|
}
|
|
264
264
|
if (!loaded.deployments)
|
|
265
265
|
return;
|
|
266
|
-
const catalog = models.list(
|
|
266
|
+
const catalog = models.list(ID13.azure);
|
|
267
267
|
const deployed = deployedModels(loaded.deployments, catalog);
|
|
268
268
|
for (const model of catalog) {
|
|
269
269
|
if (!deployed.has(model.id))
|
|
270
|
-
models.remove(
|
|
270
|
+
models.remove(ID13.azure, model.id);
|
|
271
271
|
}
|
|
272
272
|
for (const [id, model] of deployed) {
|
|
273
|
-
models.update(
|
|
273
|
+
models.update(ID13.azure, id, (draft) => Object.assign(draft, model));
|
|
274
274
|
}
|
|
275
275
|
});
|
|
276
|
-
yield* bus.subscribe(
|
|
276
|
+
yield* bus.subscribe(Event19.Switched).pipe(Stream.filter((event) => event.data.integrationID === ID16.make("azure")), Stream.runForEach(() => refresh()), Effect.forkScoped({ startImmediately: true }));
|
|
277
277
|
yield* refresh().pipe(Effect.forkScoped);
|
|
278
278
|
const bearer = Effect.fn("AzurePlugin.bearer")(function* (url) {
|
|
279
|
-
const connection = yield* ctx.integration.connection.active(
|
|
279
|
+
const connection = yield* ctx.integration.connection.active(ID13.azure);
|
|
280
280
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection).pipe(Effect.orElseSucceed(() => {
|
|
281
281
|
return;
|
|
282
282
|
})) : undefined;
|
|
@@ -288,7 +288,7 @@ function make4(endpoints = {
|
|
|
288
288
|
return `Bearer ${current.access}`;
|
|
289
289
|
});
|
|
290
290
|
yield* ctx.session.hook("http.request", (evt) => Effect.gen(function* () {
|
|
291
|
-
if (evt.model.providerID !==
|
|
291
|
+
if (evt.model.providerID !== ID13.azure)
|
|
292
292
|
return;
|
|
293
293
|
const authorization = yield* bearer(evt.request.url);
|
|
294
294
|
if (!authorization)
|
|
@@ -297,9 +297,9 @@ function make4(endpoints = {
|
|
|
297
297
|
evt.request.headers.delete("x-api-key");
|
|
298
298
|
evt.request.headers.set("authorization", authorization);
|
|
299
299
|
evt.request.headers.set("user-agent", useragent2(ctx.app));
|
|
300
|
-
}), { providerID:
|
|
300
|
+
}), { providerID: ID13.azure });
|
|
301
301
|
yield* ctx.session.hook("experimental.ws.handshake", (evt) => Effect.gen(function* () {
|
|
302
|
-
if (evt.model.providerID !==
|
|
302
|
+
if (evt.model.providerID !== ID13.azure)
|
|
303
303
|
return;
|
|
304
304
|
const authorization = yield* bearer(evt.url);
|
|
305
305
|
if (!authorization)
|
|
@@ -308,11 +308,11 @@ function make4(endpoints = {
|
|
|
308
308
|
delete evt.headers["x-api-key"];
|
|
309
309
|
evt.headers.authorization = authorization;
|
|
310
310
|
evt.headers["user-agent"] = useragent2(ctx.app);
|
|
311
|
-
}), { providerID:
|
|
311
|
+
}), { providerID: ID13.azure });
|
|
312
312
|
})
|
|
313
313
|
});
|
|
314
314
|
}
|
|
315
|
-
var AzurePlugin2 =
|
|
315
|
+
var AzurePlugin2 = make7();
|
|
316
316
|
function resolveResourceName(settings, fallback) {
|
|
317
317
|
const configured = settings?.resourceName;
|
|
318
318
|
if (typeof configured === "string" && configured.trim() !== "")
|
|
@@ -342,11 +342,11 @@ function deployedModels(deployments, catalog) {
|
|
|
342
342
|
const model = catalogModel(models, deployment);
|
|
343
343
|
if (!model)
|
|
344
344
|
return [];
|
|
345
|
-
const id =
|
|
345
|
+
const id = ID12.make(deployment.name.toLowerCase());
|
|
346
346
|
const info = {
|
|
347
347
|
...structuredClone(model),
|
|
348
348
|
id,
|
|
349
|
-
modelID:
|
|
349
|
+
modelID: ID12.make(deployment.name),
|
|
350
350
|
name: id === model.id.toLowerCase() ? model.name : `${model.name} (${deployment.name})`
|
|
351
351
|
};
|
|
352
352
|
return [[id, info]];
|
|
@@ -368,4 +368,4 @@ function responsesWebSocketCapable(provider) {
|
|
|
368
368
|
return /^https:\/\/[^/]+\.openai\.azure\.com(?:\/|$)/i.test(settings.baseURL);
|
|
369
369
|
}
|
|
370
370
|
|
|
371
|
-
export {
|
|
371
|
+
export { make7, AzurePlugin2 };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-d2dx6a7h.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info12
|
|
9
|
+
} from "./file-mutation-d8qd4w10.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info15
|
|
12
|
+
} from "./file-mutation-kd4chd64.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info11
|
|
15
|
+
} from "./file-mutation-fvc4bqe2.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-1yq9hg58.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info14
|
|
21
|
+
} from "./file-mutation-n6v2b7cw.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-mutation-fv8tw6aa.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
@@ -98,12 +98,12 @@ function normalize2(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info15, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info12, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info12, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info11, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -440,7 +440,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
440
440
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
441
441
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
442
442
|
return [];
|
|
443
|
-
const provider = decodeValue(
|
|
443
|
+
const provider = decodeValue(Info14, raw, path, diagnostics);
|
|
444
444
|
if (provider === undefined)
|
|
445
445
|
return [];
|
|
446
446
|
const destination = providerID2(name);
|
|
@@ -1,49 +1,49 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
5
|
+
Service86,
|
|
6
|
+
node90
|
|
7
|
+
} from "./file-mutation-f10m4awg.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service85,
|
|
10
|
+
node89
|
|
11
|
+
} from "./file-mutation-q1xw7kgx.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service80,
|
|
14
|
+
node84
|
|
15
|
+
} from "./file-mutation-t9e9esc1.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID15,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info25,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event17,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-mmkbt6v3.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./file-mutation-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
WorktreeTable2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./file-mutation-ayjs7tqn.js";
|
|
31
31
|
import {
|
|
32
32
|
__export
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
34
34
|
|
|
35
35
|
// src/project.ts
|
|
36
36
|
var exports_project = {};
|
|
37
37
|
__export(exports_project, {
|
|
38
38
|
Current: () => Current2,
|
|
39
|
-
ID: () =>
|
|
40
|
-
Info: () =>
|
|
41
|
-
NotFoundError: () =>
|
|
39
|
+
ID: () => ID14,
|
|
40
|
+
Info: () => Info24,
|
|
41
|
+
NotFoundError: () => NotFoundError11,
|
|
42
42
|
Project: () => exports_project,
|
|
43
|
-
Service: () =>
|
|
43
|
+
Service: () => Service79,
|
|
44
44
|
UpdateInput: () => UpdateInput3,
|
|
45
45
|
Vcs: () => Vcs2,
|
|
46
|
-
node: () =>
|
|
46
|
+
node: () => node83,
|
|
47
47
|
root: () => root2,
|
|
48
48
|
sweepNode: () => sweepNode2
|
|
49
49
|
});
|
|
@@ -56,14 +56,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
56
56
|
import { AppProcess } from "@opencode/util/process";
|
|
57
57
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
58
58
|
import { Hash } from "@opencode/util/hash";
|
|
59
|
-
var
|
|
59
|
+
var ID14 = ID15;
|
|
60
60
|
var Vcs2 = Vcs3;
|
|
61
61
|
var Current2 = Current3;
|
|
62
|
-
var
|
|
62
|
+
var Info24 = Info25;
|
|
63
63
|
var UpdateInput3 = UpdateInput4;
|
|
64
64
|
|
|
65
|
-
class
|
|
66
|
-
projectID:
|
|
65
|
+
class NotFoundError11 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
66
|
+
projectID: ID14
|
|
67
67
|
}) {
|
|
68
68
|
}
|
|
69
69
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -74,7 +74,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
74
74
|
var ACTIVATE_INTERVAL = 60000;
|
|
75
75
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
76
76
|
|
|
77
|
-
class
|
|
77
|
+
class Service79 extends Context.Service()("@opencode/Project") {
|
|
78
78
|
}
|
|
79
79
|
function fromRow(row) {
|
|
80
80
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -98,12 +98,12 @@ function fromRow(row) {
|
|
|
98
98
|
sandboxes: row.sandboxes
|
|
99
99
|
};
|
|
100
100
|
}
|
|
101
|
-
var layer = Layer.effect(
|
|
101
|
+
var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
102
102
|
const fs = yield* FSUtil.Service;
|
|
103
|
-
const git = yield*
|
|
103
|
+
const git = yield* Service80;
|
|
104
104
|
const proc = yield* AppProcess.Service;
|
|
105
|
-
const bus = yield*
|
|
106
|
-
const db = (yield*
|
|
105
|
+
const bus = yield* Service85;
|
|
106
|
+
const db = (yield* Service86).db;
|
|
107
107
|
const announcing = new Set;
|
|
108
108
|
const persist = Effect.fnUntraced(function* (project) {
|
|
109
109
|
const previous = yield* db.select({ canonical: ProjectTable2.worktree }).from(ProjectTable2).where(eq(ProjectTable2.id, project.id)).get().pipe(Effect.orDie);
|
|
@@ -112,7 +112,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
112
112
|
const replaced = previous && previous.canonical !== project.canonical && !(yield* fs.exists(previous.canonical).pipe(Effect.orElseSucceed(() => true))) ? yield* db.update(ProjectTable2).set({ worktree: project.canonical }).where(eq(ProjectTable2.id, project.id)).returning().get().pipe(Effect.orDie) : undefined;
|
|
113
113
|
const changed = replaced ?? unarchived;
|
|
114
114
|
if (changed)
|
|
115
|
-
yield* bus.publish(
|
|
115
|
+
yield* bus.publish(Event17.Updated, fromRow(changed));
|
|
116
116
|
if (!project.vcs)
|
|
117
117
|
return project;
|
|
118
118
|
const directories = [
|
|
@@ -148,7 +148,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
148
148
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
149
149
|
projectID: item.projectID,
|
|
150
150
|
directory: item.directory,
|
|
151
|
-
previous: project.previous ??
|
|
151
|
+
previous: project.previous ?? ID14.global,
|
|
152
152
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
153
153
|
}, {
|
|
154
154
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -171,9 +171,9 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
171
171
|
time_updated: Date.now()
|
|
172
172
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
173
173
|
if (!row)
|
|
174
|
-
return yield* new
|
|
174
|
+
return yield* new NotFoundError11({ projectID: input.projectID });
|
|
175
175
|
const project = fromRow(row);
|
|
176
|
-
yield* bus.publish(
|
|
176
|
+
yield* bus.publish(Event17.Updated, project);
|
|
177
177
|
return project;
|
|
178
178
|
});
|
|
179
179
|
const activated = new Map;
|
|
@@ -184,10 +184,10 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
184
184
|
activated.set(projectID, now);
|
|
185
185
|
const row = yield* db.update(ProjectTable2).set({ time_active: now, time_updated: sql`${ProjectTable2.time_updated}` }).where(eq(ProjectTable2.id, projectID)).returning().get().pipe(Effect.orDie);
|
|
186
186
|
if (row)
|
|
187
|
-
yield* bus.publish(
|
|
187
|
+
yield* bus.publish(Event17.Updated, fromRow(row));
|
|
188
188
|
});
|
|
189
189
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
190
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
190
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID14.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
191
191
|
return;
|
|
192
192
|
}));
|
|
193
193
|
});
|
|
@@ -198,7 +198,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
198
198
|
const normalized = url(origin);
|
|
199
199
|
if (!normalized)
|
|
200
200
|
return;
|
|
201
|
-
return
|
|
201
|
+
return ID14.make(Hash.fast(`git-remote:${normalized}`));
|
|
202
202
|
});
|
|
203
203
|
function url(input) {
|
|
204
204
|
const value = input.trim();
|
|
@@ -223,7 +223,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
223
223
|
}
|
|
224
224
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
225
225
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
226
|
-
return root ?
|
|
226
|
+
return root ? ID14.make(root) : undefined;
|
|
227
227
|
});
|
|
228
228
|
const hgRoot = Effect.fnUntraced(function* (worktree) {
|
|
229
229
|
const result = yield* proc.run(ChildProcess.make("hg", ["log", "-r", "roots(all())", "-T", `{node}
|
|
@@ -239,7 +239,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
239
239
|
return;
|
|
240
240
|
const node = result.stdout.toString("utf8").split(`
|
|
241
241
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
242
|
-
return node ?
|
|
242
|
+
return node ? ID14.make(node) : undefined;
|
|
243
243
|
});
|
|
244
244
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
245
245
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -247,7 +247,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
247
247
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
248
248
|
return {
|
|
249
249
|
previous,
|
|
250
|
-
id: id ??
|
|
250
|
+
id: id ?? ID14.global,
|
|
251
251
|
directory: worktree,
|
|
252
252
|
vcs: { type: "hg", store: dotHg }
|
|
253
253
|
};
|
|
@@ -265,7 +265,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
265
265
|
const canonical = repo.gitDirectory === repo.commonDirectory ? repo.worktree : yield* git.worktree.list(repo).pipe(Effect.map((items) => items.find((item) => item.kind === "main")?.directory ?? repo.worktree), Effect.orElseSucceed(() => repo.worktree));
|
|
266
266
|
return yield* save({
|
|
267
267
|
previous,
|
|
268
|
-
id: id ??
|
|
268
|
+
id: id ?? ID14.global,
|
|
269
269
|
directory: repo.worktree,
|
|
270
270
|
canonical,
|
|
271
271
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -279,7 +279,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
279
279
|
});
|
|
280
280
|
}
|
|
281
281
|
return yield* save({
|
|
282
|
-
id:
|
|
282
|
+
id: ID14.make(Hash.fast(`directory:${directory}`)),
|
|
283
283
|
directory,
|
|
284
284
|
canonical: directory,
|
|
285
285
|
vcs: undefined
|
|
@@ -288,7 +288,7 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
288
288
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
289
289
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
290
290
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
291
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
291
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID14.global))).all().pipe(Effect.orDie);
|
|
292
292
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
293
293
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
294
294
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -301,23 +301,23 @@ var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
|
301
301
|
return;
|
|
302
302
|
const row = yield* db.update(ProjectTable2).set(main ? { worktree: main.directory } : { time_archived: Date.now(), time_updated: sql`${ProjectTable2.time_updated}` }).where(and(eq(ProjectTable2.id, project.id), idle)).returning().get().pipe(Effect.orDie);
|
|
303
303
|
if (row)
|
|
304
|
-
yield* bus.publish(
|
|
304
|
+
yield* bus.publish(Event17.Updated, fromRow(row));
|
|
305
305
|
}), { concurrency: 8, discard: true });
|
|
306
306
|
});
|
|
307
|
-
return
|
|
307
|
+
return Service79.of({ list, update, activate, resolve, sweep });
|
|
308
308
|
}));
|
|
309
|
-
var
|
|
310
|
-
service:
|
|
309
|
+
var node83 = makeGlobalNode({
|
|
310
|
+
service: Service79,
|
|
311
311
|
layer,
|
|
312
|
-
deps: [
|
|
312
|
+
deps: [node89, node90, FSUtil.node, node84, AppProcess.node]
|
|
313
313
|
});
|
|
314
314
|
var sweepNode2 = makeGlobalNode({
|
|
315
315
|
name: "project-archive-sweep",
|
|
316
316
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
317
|
-
const project = yield*
|
|
317
|
+
const project = yield* Service79;
|
|
318
318
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
319
319
|
})),
|
|
320
|
-
deps: [
|
|
320
|
+
deps: [node83]
|
|
321
321
|
});
|
|
322
322
|
|
|
323
|
-
export {
|
|
323
|
+
export { ID14, Vcs2, Current2, Info24, UpdateInput3, NotFoundError11, root2, Service79, node83, sweepNode2, exports_project };
|