@opencode/core 0.0.0-dev-85 → 0.0.0-dev-87
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 +87 -87
- package/dist/aisdk-native.js +97 -97
- package/dist/aisdk.js +103 -103
- package/dist/app.js +9 -9
- package/dist/bus.js +75 -75
- package/dist/chunks/{instruction-discovery-034tev2y.js → generate-034tev2y.js} +2 -2
- package/dist/chunks/{instruction-discovery-1aepsj9z.js → generate-0dpxnw4q.js} +8 -8
- package/dist/chunks/{instruction-discovery-k5nryg5q.js → generate-0jzmh3a6.js} +18 -18
- package/dist/chunks/{instruction-discovery-gbs8zdek.js → generate-0rvj68xf.js} +2 -2
- package/dist/chunks/{instruction-discovery-trddy46m.js → generate-0syn0ek0.js} +6 -6
- package/dist/chunks/{instruction-discovery-cjevvpkz.js → generate-0tmz53w6.js} +19 -19
- package/dist/chunks/{instruction-discovery-mq4wmfyx.js → generate-0xme6znc.js} +11 -11
- package/dist/chunks/{instruction-discovery-wsedqd4z.js → generate-0yg1zctd.js} +14 -14
- package/dist/chunks/{instruction-discovery-1dwvcqns.js → generate-16y4e4a2.js} +35 -35
- package/dist/chunks/{instruction-discovery-r6fvgzn7.js → generate-1c8y2w1q.js} +35 -35
- package/dist/chunks/{instruction-discovery-1ep2p91f.js → generate-1ep2p91f.js} +2 -2
- package/dist/chunks/{instruction-discovery-n01qhj0y.js → generate-1kn6jdkn.js} +4 -4
- package/dist/chunks/{instruction-discovery-1x2knyw4.js → generate-1x2knyw4.js} +1 -1
- package/dist/chunks/{instruction-discovery-79brk8yc.js → generate-1xp23f31.js} +35 -35
- package/dist/chunks/{instruction-discovery-204s3925.js → generate-204s3925.js} +1 -1
- package/dist/chunks/{instruction-discovery-2jm5ms20.js → generate-26m29gst.js} +30 -30
- package/dist/chunks/{instruction-discovery-p0tsr9h6.js → generate-2azy8kv6.js} +4 -4
- package/dist/chunks/{instruction-discovery-ka7t1p06.js → generate-2g20sybe.js} +13 -13
- package/dist/chunks/{instruction-discovery-f7b3yq4m.js → generate-2hqf8r92.js} +11 -11
- package/dist/chunks/{instruction-discovery-3an2h7zk.js → generate-2pkq6szf.js} +1 -1
- package/dist/chunks/{instruction-discovery-zn56k3bg.js → generate-2qdh4yh9.js} +12 -12
- package/dist/chunks/{instruction-discovery-42cx4vra.js → generate-2w5fjxjh.js} +24 -24
- package/dist/chunks/{instruction-discovery-5ccfq05q.js → generate-30q4jaxv.js} +19 -19
- package/dist/chunks/{instruction-discovery-ppvk44vh.js → generate-36zfs5jy.js} +16 -16
- package/dist/chunks/{instruction-discovery-9s3pg80w.js → generate-37b1yngk.js} +5 -5
- package/dist/chunks/{instruction-discovery-p64tz3wb.js → generate-3ec56k2d.js} +4 -4
- package/dist/chunks/{instruction-discovery-3hepkmqq.js → generate-3hepkmqq.js} +1 -1
- package/dist/chunks/{instruction-discovery-3nnrz6f6.js → generate-3nnrz6f6.js} +1 -1
- package/dist/chunks/{instruction-discovery-r7dh50dd.js → generate-3sd2gr1e.js} +17 -17
- package/dist/chunks/{instruction-discovery-hjtcgwwy.js → generate-3sx2qntx.js} +11 -11
- package/dist/chunks/{instruction-discovery-y94tr38g.js → generate-4cge8fea.js} +16 -16
- package/dist/chunks/{instruction-discovery-r246dpnk.js → generate-4drphn98.js} +11 -11
- package/dist/chunks/{instruction-discovery-4pyp9zr9.js → generate-4pyp9zr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-8rbhtgaf.js → generate-4rmhy327.js} +24 -24
- package/dist/chunks/{instruction-discovery-tx91wa5k.js → generate-4tqs0jzk.js} +4 -4
- package/dist/chunks/{instruction-discovery-4v008n1t.js → generate-4v008n1t.js} +1 -1
- package/dist/chunks/{instruction-discovery-xzxxp67t.js → generate-4v04ms9s.js} +48 -48
- package/dist/chunks/{instruction-discovery-2m0svkb3.js → generate-52sy2wcq.js} +9 -9
- package/dist/chunks/{instruction-discovery-sxqn6tf9.js → generate-59193z7h.js} +4 -4
- package/dist/chunks/{instruction-discovery-tyxs0a4x.js → generate-5a1mkymt.js} +2 -2
- package/dist/chunks/{instruction-discovery-5m9w47nd.js → generate-5m9w47nd.js} +1 -1
- package/dist/chunks/{instruction-discovery-cv02ekq1.js → generate-5q37s2hn.js} +12 -12
- package/dist/chunks/{instruction-discovery-c41kdn9j.js → generate-5q7eqyw1.js} +16 -16
- package/dist/chunks/{instruction-discovery-nz7ydnky.js → generate-5x26af84.js} +4 -4
- package/dist/chunks/{instruction-discovery-5f43ww3k.js → generate-5yz609yq.js} +15 -15
- package/dist/chunks/{instruction-discovery-5zrxpy3q.js → generate-5zrxpy3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-9qcg53ez.js → generate-61c8yr0p.js} +9 -9
- package/dist/chunks/{instruction-discovery-v4wde3zy.js → generate-62gytg6z.js} +14 -14
- package/dist/chunks/{instruction-discovery-qwn0xhwk.js → generate-64zkmzsq.js} +5 -5
- package/dist/chunks/{instruction-discovery-yf10knd4.js → generate-67vtrwg2.js} +11 -11
- package/dist/chunks/{instruction-discovery-r3bafmem.js → generate-6bwjnpkg.js} +9 -9
- package/dist/chunks/{instruction-discovery-6esdw8yj.js → generate-6esdw8yj.js} +1 -1
- package/dist/chunks/{instruction-discovery-zvtb8gc6.js → generate-6gbxzgzx.js} +1 -1
- package/dist/chunks/{instruction-discovery-yjeyjw9f.js → generate-6kgtq8xg.js} +28 -28
- package/dist/chunks/{instruction-discovery-sqbd8axt.js → generate-6n0gdry0.js} +11 -11
- package/dist/chunks/{instruction-discovery-5jbhsptk.js → generate-6wz31r82.js} +11 -11
- package/dist/chunks/generate-6zjm2phc.js +18 -0
- package/dist/chunks/{instruction-discovery-76cb1hcw.js → generate-76cb1hcw.js} +1 -1
- package/dist/chunks/{instruction-discovery-nah043kf.js → generate-770pw0s1.js} +4 -4
- package/dist/chunks/{instruction-discovery-v2wa3hm1.js → generate-78y6m8dk.js} +85 -85
- package/dist/chunks/{instruction-discovery-7bmhse3q.js → generate-7bmhse3q.js} +1 -1
- package/dist/chunks/{instruction-discovery-d84x41tm.js → generate-7g6x95rm.js} +54 -54
- package/dist/chunks/{instruction-discovery-t6sdddkm.js → generate-7pe3f7pj.js} +33 -33
- package/dist/chunks/{instruction-discovery-27h8nq2q.js → generate-7pj4wqt5.js} +18 -18
- package/dist/chunks/{instruction-discovery-h04cnvmy.js → generate-7w0hvkcz.js} +23 -23
- package/dist/chunks/{instruction-discovery-7w2ypzdf.js → generate-7w2ypzdf.js} +1 -1
- package/dist/chunks/{instruction-discovery-kffcn31a.js → generate-7x8jfkmr.js} +5 -5
- package/dist/chunks/{instruction-discovery-s53p457m.js → generate-7xy7a1h3.js} +36 -36
- package/dist/chunks/{instruction-discovery-a5g15581.js → generate-7yect7x1.js} +2 -2
- package/dist/chunks/{instruction-discovery-7pcnyccf.js → generate-7zkkbwvc.js} +27 -27
- package/dist/chunks/{instruction-discovery-ac1m65en.js → generate-818gekyj.js} +79 -79
- package/dist/chunks/{instruction-discovery-0pk0a4bb.js → generate-83y8w05q.js} +21 -21
- package/dist/chunks/{instruction-discovery-tb5zevkv.js → generate-86q398xn.js} +15 -15
- package/dist/chunks/{instruction-discovery-j769ea62.js → generate-88mc9j9w.js} +3 -3
- package/dist/chunks/{instruction-discovery-b3ysgcgm.js → generate-89abfd8b.js} +4 -4
- package/dist/chunks/{instruction-discovery-phn0t9kc.js → generate-8ap1sysz.js} +21 -21
- package/dist/chunks/{instruction-discovery-t73vrz80.js → generate-8c3av2v0.js} +26 -26
- package/dist/chunks/{instruction-discovery-4kr7f4hz.js → generate-8eady601.js} +22 -22
- package/dist/chunks/{instruction-discovery-a9cen3eq.js → generate-8nc8rjna.js} +25 -25
- package/dist/chunks/{instruction-discovery-0cpsvkfc.js → generate-8p48baww.js} +9 -9
- package/dist/chunks/{instruction-discovery-b9fw4xdr.js → generate-8rgb2cvr.js} +6 -6
- package/dist/chunks/{instruction-discovery-8wtp7s3z.js → generate-8wtp7s3z.js} +1 -1
- package/dist/chunks/{instruction-discovery-kb55mmjg.js → generate-8xhzaz53.js} +5 -5
- package/dist/chunks/{instruction-discovery-90zstvax.js → generate-90zstvax.js} +1 -1
- package/dist/chunks/{instruction-discovery-0vp9s6f9.js → generate-940k53ws.js} +9 -9
- package/dist/chunks/{instruction-discovery-aaft7q2k.js → generate-991qk5jk.js} +7 -7
- package/dist/chunks/{instruction-discovery-7ba1kvb7.js → generate-9b9797hz.js} +18 -18
- package/dist/chunks/{instruction-discovery-fq2tdc7j.js → generate-9e0cpdz3.js} +12 -12
- package/dist/chunks/{instruction-discovery-ktj8frj4.js → generate-9gdvrvfc.js} +5 -5
- package/dist/chunks/{instruction-discovery-1emdzzkr.js → generate-9me4kjev.js} +70 -70
- package/dist/chunks/{instruction-discovery-8yhc7zrg.js → generate-9z9tayqc.js} +9 -9
- package/dist/chunks/{instruction-discovery-ktczfv9w.js → generate-a20trqj4.js} +39 -39
- package/dist/chunks/generate-a933qt5h.js +257 -0
- package/dist/chunks/{instruction-discovery-w0kz34dd.js → generate-absbpnym.js} +11 -11
- package/dist/chunks/{instruction-discovery-c33mp5kd.js → generate-arh45t57.js} +34 -34
- package/dist/chunks/{instruction-discovery-7hke258b.js → generate-asmrtfxn.js} +4 -4
- package/dist/chunks/{instruction-discovery-ayjs7tqn.js → generate-ayjs7tqn.js} +2 -2
- package/dist/chunks/{instruction-discovery-1eeyyfsn.js → generate-b46zkj5d.js} +3 -3
- package/dist/chunks/{instruction-discovery-b6vsg801.js → generate-b6vsg801.js} +2 -2
- package/dist/chunks/{instruction-discovery-jtxvztab.js → generate-b8dj6a54.js} +17 -17
- package/dist/chunks/{instruction-discovery-gcjdgkn2.js → generate-bgm817xr.js} +9 -9
- package/dist/chunks/{instruction-discovery-zzdv5d93.js → generate-bjhzkqyk.js} +4 -4
- package/dist/chunks/{instruction-discovery-dzercy8j.js → generate-bq741ffa.js} +16 -16
- package/dist/chunks/{instruction-discovery-kgk2rv7w.js → generate-bqrtctjr.js} +47 -47
- package/dist/chunks/{instruction-discovery-wr0pphdg.js → generate-btwfb7t4.js} +4 -4
- package/dist/chunks/{instruction-discovery-0nvskcjk.js → generate-c201zrjy.js} +38 -38
- package/dist/chunks/{instruction-discovery-tt9rt96j.js → generate-c455t25p.js} +15 -15
- package/dist/chunks/{instruction-discovery-sgnxyr26.js → generate-c710zz1y.js} +21 -21
- package/dist/chunks/{instruction-discovery-j0cz3t38.js → generate-cbbd8wae.js} +5 -5
- package/dist/chunks/{instruction-discovery-rdywkxba.js → generate-cqe6vd9h.js} +10 -10
- package/dist/chunks/{instruction-discovery-qk1yqe57.js → generate-cvp0wny2.js} +7 -7
- package/dist/chunks/{instruction-discovery-cwrgdav8.js → generate-cwrgdav8.js} +2 -2
- package/dist/chunks/{instruction-discovery-a1ctfybt.js → generate-czrgpaxw.js} +42 -42
- package/dist/chunks/{instruction-discovery-y26daf22.js → generate-d1k9066s.js} +51 -51
- package/dist/chunks/{instruction-discovery-d4v9tmah.js → generate-d4v9tmah.js} +2 -2
- package/dist/chunks/{instruction-discovery-0qa86xwk.js → generate-d78wxmc5.js} +32 -32
- package/dist/chunks/{instruction-discovery-zhnqdeny.js → generate-d7vsngc8.js} +48 -48
- package/dist/chunks/{instruction-discovery-cchmky4n.js → generate-dc3k7rmc.js} +4 -4
- package/dist/chunks/{instruction-discovery-t11dbw9k.js → generate-dh7hd762.js} +11 -11
- package/dist/chunks/{instruction-discovery-wbst3c7q.js → generate-dj0ndjwf.js} +8 -8
- package/dist/chunks/{instruction-discovery-dt77769w.js → generate-dt77769w.js} +1 -1
- package/dist/chunks/{instruction-discovery-hwh6evq5.js → generate-dvbbkw5b.js} +38 -38
- package/dist/chunks/{instruction-discovery-nmn21yyg.js → generate-dyn968e0.js} +31 -31
- package/dist/chunks/{instruction-discovery-snb901t2.js → generate-e07q2w5p.js} +4 -4
- package/dist/chunks/{instruction-discovery-yhcj1t3x.js → generate-e5htnxnn.js} +25 -25
- package/dist/chunks/{instruction-discovery-1j1ma7kd.js → generate-e828w2e7.js} +12 -12
- package/dist/chunks/{instruction-discovery-e834z07m.js → generate-e834z07m.js} +1 -1
- package/dist/chunks/{instruction-discovery-e4dhw3gc.js → generate-e8d90cjd.js} +25 -25
- package/dist/chunks/{instruction-discovery-pwzvsy7a.js → generate-et5g250t.js} +5 -5
- package/dist/chunks/{instruction-discovery-294jph37.js → generate-ewr5k9wg.js} +8 -8
- package/dist/chunks/{instruction-discovery-f01y088k.js → generate-f01y088k.js} +2 -2
- package/dist/chunks/{instruction-discovery-jwmzhdh0.js → generate-f7d0b8ry.js} +22 -22
- package/dist/chunks/{instruction-discovery-df15hqy6.js → generate-f82ew3ak.js} +8 -8
- package/dist/chunks/{instruction-discovery-fffv3p7h.js → generate-fffv3p7h.js} +1 -1
- package/dist/chunks/{instruction-discovery-fg9p65nk.js → generate-fg9p65nk.js} +2 -2
- package/dist/chunks/{instruction-discovery-32hbtqx1.js → generate-fjk0zdw3.js} +6 -6
- package/dist/chunks/{instruction-discovery-5nabnb12.js → generate-fmqd5ezs.js} +15 -15
- package/dist/chunks/{instruction-discovery-b34e6aj5.js → generate-fr7md461.js} +17 -17
- package/dist/chunks/{instruction-discovery-sx9mwydm.js → generate-fwkt2j9j.js} +35 -35
- package/dist/chunks/{instruction-discovery-26x8chrq.js → generate-fyxqncs3.js} +6 -6
- package/dist/chunks/{instruction-discovery-vssebgbw.js → generate-fzkz23w5.js} +3 -3
- package/dist/chunks/{instruction-discovery-mdgn3m5p.js → generate-g6y6gxmp.js} +24 -24
- package/dist/chunks/{instruction-discovery-gg8p9cgs.js → generate-gg8p9cgs.js} +3 -3
- package/dist/chunks/{instruction-discovery-9zrz05pf.js → generate-ggf6q6xq.js} +11 -11
- package/dist/chunks/{instruction-discovery-2z2261gz.js → generate-gm5dcth4.js} +15 -15
- package/dist/chunks/{instruction-discovery-3c7hxhsq.js → generate-gmp42p7z.js} +19 -19
- package/dist/chunks/{instruction-discovery-k8q25bjh.js → generate-gnrr882k.js} +8 -8
- package/dist/chunks/generate-h1vdv31k.js +517 -0
- package/dist/chunks/{instruction-discovery-jfbasxex.js → generate-h3y9bj94.js} +24 -24
- package/dist/chunks/{instruction-discovery-kh00rq9s.js → generate-h9dnh5h3.js} +14 -14
- package/dist/chunks/{instruction-discovery-jhpqsnsy.js → generate-hc2ycws5.js} +21 -21
- package/dist/chunks/{instruction-discovery-af0k6e03.js → generate-hdfrs5mg.js} +9 -9
- package/dist/chunks/{instruction-discovery-5bgjyvxg.js → generate-hejbcmkq.js} +25 -25
- package/dist/chunks/{instruction-discovery-w040xt49.js → generate-hf19evcz.js} +29 -29
- package/dist/chunks/{instruction-discovery-823phfb1.js → generate-hf1hr246.js} +9 -9
- package/dist/chunks/{instruction-discovery-hfgk9wzg.js → generate-hfgk9wzg.js} +1 -1
- package/dist/chunks/{instruction-discovery-hpg1pkwy.js → generate-hpg1pkwy.js} +1 -1
- package/dist/chunks/{instruction-discovery-rh9wspnh.js → generate-hqskcfk9.js} +194 -194
- package/dist/chunks/{instruction-discovery-ny8111qj.js → generate-j159kvx1.js} +35 -35
- package/dist/chunks/{instruction-discovery-nrzgv5fb.js → generate-j2j8je9q.js} +16 -16
- package/dist/chunks/{instruction-discovery-p1th5zhm.js → generate-j42fhrkd.js} +21 -21
- package/dist/chunks/{instruction-discovery-rra832zv.js → generate-j581asrx.js} +4 -4
- package/dist/chunks/{instruction-discovery-nxgn2x81.js → generate-j5g81aj1.js} +35 -35
- package/dist/chunks/{instruction-discovery-y91k91d6.js → generate-jcrvejfm.js} +14 -14
- package/dist/chunks/{instruction-discovery-0tnetv23.js → generate-jd96tgqq.js} +29 -29
- package/dist/chunks/{instruction-discovery-j7xe0krd.js → generate-jf5akgkh.js} +21 -21
- package/dist/chunks/{instruction-discovery-jfaecv01.js → generate-jfaecv01.js} +1 -1
- package/dist/chunks/{instruction-discovery-3k4eq6ay.js → generate-jhf76er4.js} +11 -11
- package/dist/chunks/{instruction-discovery-npchzmkf.js → generate-jm2sbvr9.js} +29 -29
- package/dist/chunks/{instruction-discovery-jtnps1zs.js → generate-jtnps1zs.js} +2 -2
- package/dist/chunks/{instruction-discovery-z6vs1tpd.js → generate-k47s3wnw.js} +7 -7
- package/dist/chunks/{instruction-discovery-jkn3ed2k.js → generate-k5g3zbfj.js} +11 -11
- package/dist/chunks/{instruction-discovery-k814nvkf.js → generate-k814nvkf.js} +1 -1
- package/dist/chunks/{instruction-discovery-v3bc0gzs.js → generate-kc6p9w6d.js} +20 -20
- package/dist/chunks/{instruction-discovery-h5ynnaae.js → generate-kejwhkvj.js} +16 -16
- package/dist/chunks/{instruction-discovery-vtnateyr.js → generate-kgn3zbqp.js} +3 -3
- package/dist/chunks/{instruction-discovery-d4qkn5y3.js → generate-kqsaryg6.js} +28 -28
- package/dist/chunks/{instruction-discovery-kt3bjfbg.js → generate-kt3bjfbg.js} +1 -1
- package/dist/chunks/{instruction-discovery-m1714858.js → generate-m1714858.js} +1 -1
- package/dist/chunks/{instruction-discovery-np7r7vht.js → generate-m4qbnc51.js} +3 -3
- package/dist/chunks/{instruction-discovery-khyy6kd5.js → generate-m6s56nmp.js} +21 -21
- package/dist/chunks/{instruction-discovery-af79ean3.js → generate-m82x15zv.js} +7 -7
- package/dist/chunks/{instruction-discovery-m9w0rfyh.js → generate-m9w0rfyh.js} +1 -1
- package/dist/chunks/{instruction-discovery-bp2kawj6.js → generate-mhdbmyw1.js} +15 -15
- package/dist/chunks/{instruction-discovery-qzmmayfr.js → generate-mhvba134.js} +41 -41
- package/dist/chunks/{instruction-discovery-9v36js8k.js → generate-mpck3vvq.js} +20 -20
- package/dist/chunks/{instruction-discovery-8wc2fpae.js → generate-n6v2b7cw.js} +5 -5
- package/dist/chunks/{instruction-discovery-h0ppebc3.js → generate-nj2tkpbg.js} +8 -8
- package/dist/chunks/{instruction-discovery-qmacqh3c.js → generate-nmyhvz06.js} +10 -10
- package/dist/chunks/{instruction-discovery-p015t6z3.js → generate-p015t6z3.js} +2 -2
- package/dist/chunks/{instruction-discovery-6mpwyd8c.js → generate-p2thmtjd.js} +13 -13
- package/dist/chunks/{instruction-discovery-3yy4cqsx.js → generate-p2tkcgx5.js} +18 -18
- package/dist/chunks/{instruction-discovery-p7f9amnf.js → generate-p7f9amnf.js} +2 -2
- package/dist/chunks/{instruction-discovery-szhjew6d.js → generate-pbp9p02f.js} +27 -27
- package/dist/chunks/{instruction-discovery-pknna89w.js → generate-pknna89w.js} +1 -1
- package/dist/chunks/{instruction-discovery-rrzt70xg.js → generate-pqymy2f2.js} +23 -23
- package/dist/chunks/{instruction-discovery-p4gyfc1r.js → generate-py366xq1.js} +9 -9
- package/dist/chunks/{instruction-discovery-1ywsh6b9.js → generate-q7fhnth2.js} +19 -19
- package/dist/chunks/{instruction-discovery-7pstyfmd.js → generate-qamv2m5k.js} +19 -19
- package/dist/chunks/{instruction-discovery-dxmx8bx1.js → generate-qk9496nf.js} +30 -30
- package/dist/chunks/{instruction-discovery-0jq4q1p2.js → generate-qkggpte4.js} +18 -18
- package/dist/chunks/{instruction-discovery-qp7r0hxv.js → generate-qp7r0hxv.js} +1 -1
- package/dist/chunks/{instruction-discovery-680724q2.js → generate-qrfynh1r.js} +16 -16
- package/dist/chunks/{instruction-discovery-m1epfjq1.js → generate-qt1tmgng.js} +12 -12
- package/dist/chunks/{instruction-discovery-nzs7qp78.js → generate-qt4dfm0j.js} +6 -6
- package/dist/chunks/{instruction-discovery-cspsqq65.js → generate-qts7zgd1.js} +54 -54
- package/dist/chunks/{instruction-discovery-828jwtgn.js → generate-qvt710z0.js} +5 -5
- package/dist/chunks/{instruction-discovery-r0yr0wbs.js → generate-r0yr0wbs.js} +1 -1
- package/dist/chunks/{instruction-discovery-r542h3bh.js → generate-r542h3bh.js} +1 -1
- package/dist/chunks/{instruction-discovery-1hs61ayd.js → generate-r55wb87a.js} +17 -17
- package/dist/chunks/{instruction-discovery-hvvf9qw8.js → generate-ra34yqmw.js} +6 -6
- package/dist/chunks/{instruction-discovery-rb9dy4dg.js → generate-rb9dy4dg.js} +1 -1
- package/dist/chunks/{instruction-discovery-5b3jskfa.js → generate-rehf1aas.js} +6 -6
- package/dist/chunks/{instruction-discovery-gp2wddyf.js → generate-rfak1rzh.js} +21 -21
- package/dist/chunks/{instruction-discovery-xd0qykp3.js → generate-rjh02mhk.js} +18 -18
- package/dist/chunks/{instruction-discovery-hndccpk4.js → generate-rkjz549p.js} +22 -22
- package/dist/chunks/{instruction-discovery-rt5dr6hb.js → generate-rt5dr6hb.js} +1 -1
- package/dist/chunks/{instruction-discovery-czkk2md7.js → generate-rvk59cr0.js} +5 -5
- package/dist/chunks/{instruction-discovery-arq1yqkc.js → generate-rzpt8mef.js} +36 -36
- package/dist/chunks/{instruction-discovery-z4xn0qmv.js → generate-s0pffs2s.js} +14 -14
- package/dist/chunks/{instruction-discovery-hvkp93rf.js → generate-s3hnj3sh.js} +12 -12
- package/dist/chunks/{instruction-discovery-wth30mf5.js → generate-s7ctmszj.js} +6 -6
- package/dist/chunks/{instruction-discovery-s7kyse9r.js → generate-s7kyse9r.js} +1 -1
- package/dist/chunks/{instruction-discovery-sa3fpqfw.js → generate-sa3fpqfw.js} +2 -2
- package/dist/chunks/{instruction-discovery-nvbva47a.js → generate-sbvcw7gr.js} +24 -24
- package/dist/chunks/{instruction-discovery-rt3m59k8.js → generate-sngd0g0b.js} +5 -5
- package/dist/chunks/{instruction-discovery-sqjzf8x2.js → generate-sqjzf8x2.js} +1 -1
- package/dist/chunks/{instruction-discovery-7rjk5fac.js → generate-srjr8tp2.js} +4 -4
- package/dist/chunks/{instruction-discovery-d2887f8n.js → generate-ssfehs1z.js} +4 -4
- package/dist/chunks/{instruction-discovery-svcy3p9a.js → generate-svcy3p9a.js} +1 -1
- package/dist/chunks/{instruction-discovery-btec747f.js → generate-sznyev98.js} +5 -5
- package/dist/chunks/{instruction-discovery-b1tz3sp7.js → generate-t32ymm9y.js} +14 -14
- package/dist/chunks/{instruction-discovery-aq6cyz91.js → generate-t9ybhp1q.js} +33 -33
- package/dist/chunks/{instruction-discovery-dqcgys99.js → generate-tbeb6h6m.js} +7 -7
- package/dist/chunks/{instruction-discovery-tczq8hjw.js → generate-tczq8hjw.js} +1 -1
- package/dist/chunks/{instruction-discovery-qeee0212.js → generate-tjjeexw4.js} +28 -28
- package/dist/chunks/{instruction-discovery-7d154cfc.js → generate-tnjzcqkq.js} +10 -10
- package/dist/chunks/{instruction-discovery-htgck597.js → generate-ts45p5da.js} +6 -6
- package/dist/chunks/{instruction-discovery-twssxy5n.js → generate-twssxy5n.js} +2 -2
- package/dist/chunks/{instruction-discovery-v2r1d0zg.js → generate-v2r1d0zg.js} +1 -1
- package/dist/chunks/{instruction-discovery-wmcrta7z.js → generate-v3pw954j.js} +4 -4
- package/dist/chunks/{instruction-discovery-ey9q43yp.js → generate-vd6hx57c.js} +10 -10
- package/dist/chunks/{instruction-discovery-veqvce7d.js → generate-veqvce7d.js} +1 -1
- package/dist/chunks/{instruction-discovery-qkqjbc48.js → generate-vg0erq9k.js} +3 -3
- package/dist/chunks/{instruction-discovery-38k6nkcd.js → generate-vgt7797x.js} +14 -14
- package/dist/chunks/{instruction-discovery-qc86dbtb.js → generate-vnhacxac.js} +30 -30
- package/dist/chunks/{instruction-discovery-8n9x2wf6.js → generate-vpm8vpz0.js} +3 -3
- package/dist/chunks/{instruction-discovery-2wqj22kd.js → generate-w0rj9p92.js} +11 -11
- package/dist/chunks/{instruction-discovery-40za9wsf.js → generate-w2eysc6j.js} +9 -9
- package/dist/chunks/{instruction-discovery-w3wsvvr9.js → generate-w3wsvvr9.js} +1 -1
- package/dist/chunks/{instruction-discovery-wr3re1en.js → generate-w687dnns.js} +4 -4
- package/dist/chunks/{instruction-discovery-wakvkjy4.js → generate-wakvkjy4.js} +1 -1
- package/dist/chunks/{instruction-discovery-dtvrzahv.js → generate-wd4z6ete.js} +11 -11
- package/dist/chunks/{instruction-discovery-wd87259q.js → generate-wd87259q.js} +1 -1
- package/dist/chunks/{instruction-discovery-p3t7kmpe.js → generate-wd88qh38.js} +10 -10
- package/dist/chunks/{instruction-discovery-9fwsy5x7.js → generate-wevr71gn.js} +17 -17
- package/dist/chunks/{instruction-discovery-ddv2mw00.js → generate-wgvnftve.js} +8 -8
- package/dist/chunks/{instruction-discovery-pbm40fwr.js → generate-wm4h87ch.js} +21 -21
- package/dist/chunks/{instruction-discovery-wnhgecwx.js → generate-wnhgecwx.js} +1 -1
- package/dist/chunks/{instruction-discovery-hrtnmq5m.js → generate-wpwj3xyb.js} +18 -18
- package/dist/chunks/{instruction-discovery-r5fjfn5p.js → generate-wyh1p29c.js} +9 -9
- package/dist/chunks/{instruction-discovery-hmyvp2rk.js → generate-x4swjz8b.js} +13 -13
- package/dist/chunks/{instruction-discovery-11hfp36g.js → generate-x8nvjgx0.js} +4 -4
- package/dist/chunks/{instruction-discovery-r3e3nyxn.js → generate-xcypbb09.js} +14 -14
- package/dist/chunks/{instruction-discovery-xd9cc171.js → generate-xd9cc171.js} +1 -1
- package/dist/chunks/{instruction-discovery-sd49ss65.js → generate-y3nv4ez5.js} +21 -21
- package/dist/chunks/{instruction-discovery-41865php.js → generate-y8evj2ev.js} +37 -37
- package/dist/chunks/{instruction-discovery-yara3q77.js → generate-yara3q77.js} +2 -2
- package/dist/chunks/{instruction-discovery-yb20nhc3.js → generate-yb20nhc3.js} +1 -1
- package/dist/chunks/{instruction-discovery-7ymg3bcy.js → generate-yd4fy85j.js} +28 -28
- package/dist/chunks/{instruction-discovery-kmzgegqq.js → generate-ydsespw1.js} +8 -8
- package/dist/chunks/{instruction-discovery-vmzmvncy.js → generate-yjerzzbx.js} +6 -6
- package/dist/chunks/generate-yjkqh27f.js +26 -0
- package/dist/chunks/{instruction-discovery-c5kjsz6q.js → generate-yqveydy6.js} +4 -4
- package/dist/chunks/{instruction-discovery-xt05dbmf.js → generate-yr7x8ded.js} +21 -21
- package/dist/chunks/{instruction-discovery-613qqnzk.js → generate-yzqrvcme.js} +19 -19
- package/dist/chunks/{instruction-discovery-z0bkrqjs.js → generate-z0bkrqjs.js} +1 -1
- package/dist/chunks/{instruction-discovery-z38nccrw.js → generate-z38nccrw.js} +1 -1
- package/dist/chunks/{instruction-discovery-scdtkf7x.js → generate-z4vzxt5p.js} +43 -43
- package/dist/chunks/{instruction-discovery-4m39ffq2.js → generate-z6nazckk.js} +14 -14
- package/dist/chunks/{instruction-discovery-sqjqkxh5.js → generate-zfnetmcr.js} +3 -3
- package/dist/chunks/{instruction-discovery-zgkm4kzm.js → generate-zgkm4kzm.js} +3 -3
- package/dist/chunks/{instruction-discovery-re1vrb27.js → generate-zk2jkd91.js} +11 -11
- package/dist/chunks/{instruction-discovery-n98387tj.js → generate-zmg6vytx.js} +11 -11
- package/dist/chunks/{instruction-discovery-dhkm6j2g.js → generate-ztph5cdk.js} +9 -9
- package/dist/chunks/{instruction-discovery-h3vzy4ka.js → generate-zwy5xyev.js} +20 -20
- package/dist/chunks/{instruction-discovery-fk6vzymk.js → generate-zwz3fy33.js} +4 -4
- package/dist/chunks/{instruction-discovery-cekdpe72.js → generate-zyq2yvn6.js} +13 -13
- package/dist/chunks/{instruction-discovery-wfrhkzrr.js → generate-zzaj8j6e.js} +17 -17
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +5 -5
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +87 -87
- package/dist/config/discovery.js +90 -90
- package/dist/config/integration.js +3 -3
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +107 -107
- package/dist/config/plugin/agent.js +123 -123
- package/dist/config/plugin/command.js +221 -221
- package/dist/config/plugin/compaction.js +162 -162
- package/dist/config/plugin/compatibility.js +142 -142
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +122 -122
- package/dist/config/plugin/image.js +121 -121
- package/dist/config/plugin/instruction.js +121 -121
- package/dist/config/plugin/location-watcher.js +123 -123
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +123 -123
- package/dist/config/plugin/provider.js +122 -122
- package/dist/config/plugin/reference.js +123 -123
- package/dist/config/plugin/shell.js +123 -123
- package/dist/config/plugin/skill-file.js +138 -138
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +143 -143
- package/dist/config/plugin/snapshot.js +121 -121
- package/dist/config/plugin/source.js +124 -124
- package/dist/config/plugin/tool-output.js +122 -122
- package/dist/config/plugin/websearch.js +122 -122
- package/dist/config/plugin/worktree.js +123 -123
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +122 -122
- package/dist/console-access.js +1 -1
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +89 -89
- package/dist/database/database.js +72 -72
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration/20261024175301_drop_session_allowance.js +1 -1
- package/dist/database/migration/20261025123711_blob.js +1 -1
- package/dist/database/migration/20261025154125_drop_session_pending.js +1 -1
- package/dist/database/migration.gen.js +55 -55
- package/dist/database/migration.js +57 -57
- 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 +100 -100
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +382 -382
- 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 +101 -101
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +101 -101
- 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 +148 -148
- package/dist/file-mutation.js +102 -102
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/file-watch.js +83 -83
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +234 -234
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +107 -107
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +110 -110
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +95 -95
- package/dist/generate.js +113 -113
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +99 -99
- 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-normalize.js +1 -1
- package/dist/image/photon-worker.js +1 -1
- package/dist/image/photon.js +4 -4
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +373 -373
- package/dist/instruction-discovery.js +88 -88
- package/dist/instructions/builtins.js +95 -95
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +95 -95
- package/dist/job.js +82 -82
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +79 -79
- package/dist/location-activity.js +163 -163
- package/dist/location-lifecycle.js +142 -142
- package/dist/location-service-map.js +94 -94
- package/dist/location-services.js +370 -370
- package/dist/location.js +97 -97
- package/dist/managed-policy.js +9 -9
- package/dist/mcp/client.js +99 -99
- package/dist/mcp/index.js +117 -117
- package/dist/mcp/instructions.js +168 -168
- package/dist/mcp/oauth.js +84 -84
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +98 -98
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +107 -107
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev/v1.js +1 -1
- package/dist/models-dev.js +116 -116
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +82 -82
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +141 -141
- 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 +81 -81
- package/dist/plugin/agent.js +82 -82
- package/dist/plugin/command.js +110 -110
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +227 -227
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +343 -343
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +105 -105
- package/dist/plugin/module.js +121 -121
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +138 -138
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +98 -98
- package/dist/plugin/provider/azure.js +121 -121
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +121 -121
- package/dist/plugin/provider/cloudflare-ai-gateway.js +118 -118
- package/dist/plugin/provider/cloudflare-workers-ai.js +118 -118
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +117 -117
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +101 -101
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +103 -103
- package/dist/plugin/provider/gitlab.js +101 -101
- package/dist/plugin/provider/google-vertex.js +118 -118
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +84 -84
- package/dist/plugin/provider/lmstudio.js +130 -130
- package/dist/plugin/provider/local.js +127 -127
- package/dist/plugin/provider/modal.js +100 -100
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +130 -130
- package/dist/plugin/provider/openai-context-caps.js +98 -98
- package/dist/plugin/provider/openai.js +121 -121
- package/dist/plugin/provider/opencode-legacy.js +108 -108
- package/dist/plugin/provider/opencode.js +127 -127
- package/dist/plugin/provider/openrouter.js +99 -99
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +85 -85
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +99 -99
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +120 -120
- package/dist/plugin/provider/vercel.js +98 -98
- package/dist/plugin/provider/vllm.js +130 -130
- package/dist/plugin/provider/xai.js +99 -99
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +178 -178
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +141 -141
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +360 -360
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +94 -94
- package/dist/plugin/vcs/hg.js +94 -94
- package/dist/plugin/verbosity.js +101 -101
- package/dist/plugin/warming.js +119 -119
- 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 +236 -236
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +98 -98
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +106 -106
- package/dist/reference/instructions.js +96 -96
- package/dist/reference.js +96 -96
- package/dist/repository-cache.js +88 -88
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +103 -103
- package/dist/rpc.js +94 -94
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/blob.js +120 -120
- package/dist/session/command.js +80 -80
- package/dist/session/compaction.js +162 -162
- package/dist/session/context.js +188 -188
- package/dist/session/diff.js +96 -96
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +228 -228
- package/dist/session/execution.js +152 -152
- package/dist/session/generate.js +188 -188
- package/dist/session/history.js +127 -127
- package/dist/session/inbox.js +138 -138
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +85 -85
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +132 -132
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +155 -155
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +156 -156
- package/dist/session/projector.js +134 -134
- package/dist/session/prompt.js +140 -140
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +130 -130
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +238 -238
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +108 -108
- package/dist/session/runner/publish-llm-event.js +141 -141
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +154 -154
- package/dist/session/runner/to-llm-message.js +128 -128
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +170 -170
- package/dist/session/shell.js +135 -135
- package/dist/session/skill.js +139 -139
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +79 -79
- package/dist/session/store.js +133 -133
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +219 -219
- package/dist/session/system-prompt.js +1 -1
- package/dist/session/title.js +192 -192
- package/dist/session/to-session-error.js +140 -140
- package/dist/session/transfer.js +224 -224
- package/dist/session/usage.js +1 -1
- package/dist/session.js +223 -223
- 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 +7 -7
- package/dist/shell.js +137 -137
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +139 -139
- package/dist/skill.js +146 -146
- package/dist/snapshot.js +97 -97
- 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 +165 -165
- package/dist/tool/plugin/edit.js +156 -156
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +160 -160
- package/dist/tool/plugin/grep.js +160 -160
- package/dist/tool/plugin/mcp-resource.js +154 -154
- package/dist/tool/plugin/opencode.js +153 -153
- package/dist/tool/plugin/patch.js +158 -158
- package/dist/tool/plugin/question.js +136 -136
- package/dist/tool/plugin/read.js +157 -157
- package/dist/tool/plugin/shell.js +224 -224
- package/dist/tool/plugin/skill.js +147 -147
- package/dist/tool/plugin/subagent.js +224 -224
- package/dist/tool/plugin/todo.js +145 -145
- package/dist/tool/plugin/webfetch.js +147 -147
- package/dist/tool/plugin/websearch.js +147 -147
- package/dist/tool/plugin/write.js +156 -156
- package/dist/tool/read-filesystem.js +110 -110
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/usage-limits.js +93 -93
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +100 -100
- package/dist/v1/config/permission.js +1 -1
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +99 -99
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +97 -97
- package/dist/voice.js +92 -92
- package/dist/websearch.js +88 -88
- package/dist/wellknown/plugin.js +82 -82
- package/dist/wellknown.js +85 -85
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +88 -88
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +97 -97
- package/dist/worktree.js +108 -108
- package/package.json +8 -8
- package/dist/chunks/instruction-discovery-azz85zj6.js +0 -517
- package/dist/chunks/instruction-discovery-bgqvkj0f.js +0 -257
- package/dist/chunks/instruction-discovery-k62y2wy8.js +0 -18
- package/dist/chunks/instruction-discovery-t09xj51a.js +0 -26
- /package/dist/chunks/{instruction-discovery-0qkdqm5v.js → generate-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-0zkw76rk.js → generate-0zkw76rk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-17cy0kzp.js → generate-17cy0kzp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1cnp2v09.js → generate-1cnp2v09.js} +0 -0
- /package/dist/chunks/{instruction-discovery-1jakw16s.js → generate-1jakw16s.js} +0 -0
- /package/dist/chunks/{instruction-discovery-24dcb14g.js → generate-24dcb14g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2710q6r3.js → generate-2710q6r3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2bv980vf.js → generate-2bv980vf.js} +0 -0
- /package/dist/chunks/{instruction-discovery-2c3vjs8z.js → generate-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-359p4xyc.js → generate-359p4xyc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3asan66x.js → generate-3asan66x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3v8g72cx.js → generate-3v8g72cx.js} +0 -0
- /package/dist/chunks/{instruction-discovery-3wcehsnq.js → generate-3wcehsnq.js} +0 -0
- /package/dist/chunks/{instruction-discovery-43n2bw4t.js → generate-43n2bw4t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4knz6hnm.js → generate-4knz6hnm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4m86bj6y.js → generate-4m86bj6y.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4vcrnpx2.js → generate-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-4y7fprxs.js → generate-4y7fprxs.js} +0 -0
- /package/dist/chunks/{instruction-discovery-53557ph1.js → generate-53557ph1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-550bvhaj.js → generate-550bvhaj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-5w3e23ze.js → generate-5w3e23ze.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6prwharc.js → generate-6prwharc.js} +0 -0
- /package/dist/chunks/{instruction-discovery-6q2bdcd1.js → generate-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7akdwqpd.js → generate-7akdwqpd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-7m9af43g.js → generate-7m9af43g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-822emrt2.js → generate-822emrt2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-84wd9syh.js → generate-84wd9syh.js} +0 -0
- /package/dist/chunks/{instruction-discovery-88xbtdfr.js → generate-88xbtdfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8n3pysct.js → generate-8n3pysct.js} +0 -0
- /package/dist/chunks/{instruction-discovery-8wj87zfr.js → generate-8wj87zfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9a4afbnw.js → generate-9a4afbnw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-9rqn6x4v.js → generate-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a058387c.js → generate-a058387c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-a6k6eb26.js → generate-a6k6eb26.js} +0 -0
- /package/dist/chunks/{instruction-discovery-af5trqkr.js → generate-af5trqkr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-afrmfg78.js → generate-afrmfg78.js} +0 -0
- /package/dist/chunks/{instruction-discovery-aqzs7mqg.js → generate-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{instruction-discovery-atq7p7m5.js → generate-atq7p7m5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-beh6qq61.js → generate-beh6qq61.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bkyjaxrp.js → generate-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-bmr6ed5q.js → generate-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cf4snx6d.js → generate-cf4snx6d.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cqv5kn06.js → generate-cqv5kn06.js} +0 -0
- /package/dist/chunks/{instruction-discovery-cvy3z8tj.js → generate-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9fn303g.js → generate-d9fn303g.js} +0 -0
- /package/dist/chunks/{instruction-discovery-d9jj8t3e.js → generate-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dajrwvna.js → generate-dajrwvna.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dap0rakb.js → generate-dap0rakb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-df08tz66.js → generate-df08tz66.js} +0 -0
- /package/dist/chunks/{instruction-discovery-dy18nga0.js → generate-dy18nga0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e5kj55wp.js → generate-e5kj55wp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-e73j6tqm.js → generate-e73j6tqm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ec1grn59.js → generate-ec1grn59.js} +0 -0
- /package/dist/chunks/{instruction-discovery-eh3zwz77.js → generate-eh3zwz77.js} +0 -0
- /package/dist/chunks/{instruction-discovery-emrn6kk6.js → generate-emrn6kk6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f0mxakyp.js → generate-f0mxakyp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-f6n9ztr4.js → generate-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{instruction-discovery-faypxj3z.js → generate-faypxj3z.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fd410y7t.js → generate-fd410y7t.js} +0 -0
- /package/dist/chunks/{instruction-discovery-fkpq3x5p.js → generate-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g4wezp1m.js → generate-g4wezp1m.js} +0 -0
- /package/dist/chunks/{instruction-discovery-g86h250q.js → generate-g86h250q.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gebd4c9n.js → generate-gebd4c9n.js} +0 -0
- /package/dist/chunks/{instruction-discovery-gftt206x.js → generate-gftt206x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hcxmzztb.js → generate-hcxmzztb.js} +0 -0
- /package/dist/chunks/{instruction-discovery-hk9envan.js → generate-hk9envan.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j2ntwpah.js → generate-j2ntwpah.js} +0 -0
- /package/dist/chunks/{instruction-discovery-j5zkgpj8.js → generate-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jjkms2e6.js → generate-jjkms2e6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jr7sbwjy.js → generate-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwfs4k6c.js → generate-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jwr30sdr.js → generate-jwr30sdr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jze0r7bz.js → generate-jze0r7bz.js} +0 -0
- /package/dist/chunks/{instruction-discovery-jzg6c2d5.js → generate-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{instruction-discovery-m18g726c.js → generate-m18g726c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-mp448xyj.js → generate-mp448xyj.js} +0 -0
- /package/dist/chunks/{instruction-discovery-msx8hqn2.js → generate-msx8hqn2.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n05xt0ee.js → generate-n05xt0ee.js} +0 -0
- /package/dist/chunks/{instruction-discovery-n3j8tn72.js → generate-n3j8tn72.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ncqqe42p.js → generate-ncqqe42p.js} +0 -0
- /package/dist/chunks/{instruction-discovery-njntx4h6.js → generate-njntx4h6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-p71gwv9c.js → generate-p71gwv9c.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q3sfg36h.js → generate-q3sfg36h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-q74kybfr.js → generate-q74kybfr.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qaymkmh1.js → generate-qaymkmh1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qb87gjwd.js → generate-qb87gjwd.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qfa1cgps.js → generate-qfa1cgps.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qg3g05ea.js → generate-qg3g05ea.js} +0 -0
- /package/dist/chunks/{instruction-discovery-qrg20bc0.js → generate-qrg20bc0.js} +0 -0
- /package/dist/chunks/{instruction-discovery-rcb2kzg1.js → generate-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{instruction-discovery-sdp7kfr6.js → generate-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ssg3fenm.js → generate-ssg3fenm.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ve7vex1e.js → generate-ve7vex1e.js} +0 -0
- /package/dist/chunks/{instruction-discovery-w803qqfp.js → generate-w803qqfp.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wc3fc9cn.js → generate-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wer8tq1h.js → generate-wer8tq1h.js} +0 -0
- /package/dist/chunks/{instruction-discovery-wtztk69x.js → generate-wtztk69x.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x0ckcb58.js → generate-x0ckcb58.js} +0 -0
- /package/dist/chunks/{instruction-discovery-x61499pn.js → generate-x61499pn.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y44na4kk.js → generate-y44na4kk.js} +0 -0
- /package/dist/chunks/{instruction-discovery-y8f7s663.js → generate-y8f7s663.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ygaqb7jw.js → generate-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{instruction-discovery-ym463w8f.js → generate-ym463w8f.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z5v4ffb3.js → generate-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{instruction-discovery-z9919s4g.js → generate-z9919s4g.js} +0 -0
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
3
|
node91
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-b46zkj5d.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
7
|
node90
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./generate-j581asrx.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service83,
|
|
11
|
+
node87
|
|
12
|
+
} from "./generate-wevr71gn.js";
|
|
13
13
|
import {
|
|
14
14
|
SessionEvent2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-ec1grn59.js";
|
|
16
16
|
import {
|
|
17
17
|
synthetics2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-wyh1p29c.js";
|
|
19
19
|
import {
|
|
20
20
|
__export
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./generate-9rqn6x4v.js";
|
|
22
22
|
|
|
23
23
|
// src/session/instructions.ts
|
|
24
24
|
var exports_instructions = {};
|
|
25
25
|
__export(exports_instructions, {
|
|
26
|
-
Service: () =>
|
|
26
|
+
Service: () => Service11,
|
|
27
27
|
SessionInstructions: () => exports_instructions,
|
|
28
|
-
node: () =>
|
|
28
|
+
node: () => node13
|
|
29
29
|
});
|
|
30
30
|
import { relative } from "path";
|
|
31
31
|
import { Context, Effect, Layer, Option, Ref, Schema } from "effect";
|
|
@@ -35,13 +35,13 @@ var InjectedMetadata = Schema.Struct({
|
|
|
35
35
|
instruction: Schema.Struct({ paths: Schema.Array(Schema.String) })
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
class
|
|
38
|
+
class Service11 extends Context.Service()("@opencode/SessionInstructions") {
|
|
39
39
|
}
|
|
40
|
-
var layer = Layer.effect(
|
|
40
|
+
var layer = Layer.effect(Service11, Effect.gen(function* () {
|
|
41
41
|
const bus = yield* Service86;
|
|
42
42
|
const fs = yield* FSUtil.Service;
|
|
43
43
|
const db = (yield* Service87).db;
|
|
44
|
-
const location = yield*
|
|
44
|
+
const location = yield* Service83;
|
|
45
45
|
const root = yield* fs.resolve(location.project.directory);
|
|
46
46
|
const inFlight = yield* Ref.make(new Map);
|
|
47
47
|
const load = Effect.fn("SessionInstructions.load")(function* (input) {
|
|
@@ -87,7 +87,7 @@ ${file.content}`).join(`
|
|
|
87
87
|
return next;
|
|
88
88
|
})));
|
|
89
89
|
});
|
|
90
|
-
return
|
|
90
|
+
return Service11.of({ load });
|
|
91
91
|
}));
|
|
92
92
|
function previouslyInjected(db, sessionID) {
|
|
93
93
|
return Effect.gen(function* () {
|
|
@@ -98,10 +98,10 @@ function previouslyInjected(db, sessionID) {
|
|
|
98
98
|
function describePath(root, path) {
|
|
99
99
|
return FSUtil.contains(root, path) ? relative(root, path) : path;
|
|
100
100
|
}
|
|
101
|
-
var
|
|
101
|
+
var node13 = makeLocationNode({
|
|
102
102
|
name: "session-instructions",
|
|
103
103
|
layer,
|
|
104
|
-
deps: [node90, node91, FSUtil.node,
|
|
104
|
+
deps: [node90, node91, FSUtil.node, node87]
|
|
105
105
|
});
|
|
106
106
|
|
|
107
|
-
export {
|
|
107
|
+
export { Service11, node13, exports_instructions };
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
latest2,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
Service62
|
|
4
|
+
} from "./generate-mhvba134.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Service52
|
|
7
|
+
} from "./generate-jd96tgqq.js";
|
|
8
8
|
import {
|
|
9
9
|
observe2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./generate-hpg1pkwy.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./generate-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/config/plugin/snapshot.ts
|
|
16
16
|
var exports_snapshot = {};
|
|
17
17
|
__export(exports_snapshot, {
|
|
18
18
|
ConfigSnapshotPlugin: () => exports_snapshot,
|
|
19
|
-
Plugin: () =>
|
|
19
|
+
Plugin: () => Plugin25
|
|
20
20
|
});
|
|
21
21
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
22
22
|
import { Effect } from "effect";
|
|
23
|
-
var
|
|
23
|
+
var Plugin25 = define({
|
|
24
24
|
id: "opencode.config.snapshot",
|
|
25
25
|
effect: Effect.fn(function* (ctx) {
|
|
26
|
-
const config = yield*
|
|
27
|
-
const snapshot = yield*
|
|
26
|
+
const config = yield* Service62;
|
|
27
|
+
const snapshot = yield* Service52;
|
|
28
28
|
const loaded = yield* observe2(config, ctx.event, snapshot.reload());
|
|
29
29
|
yield* snapshot.transform((editor) => {
|
|
30
30
|
const configured = latest2(loaded.entries, "snapshots");
|
|
@@ -35,4 +35,4 @@ var Plugin33 = define({
|
|
|
35
35
|
})
|
|
36
36
|
});
|
|
37
37
|
|
|
38
|
-
export {
|
|
38
|
+
export { Plugin25, exports_snapshot };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-b46zkj5d.js";
|
|
4
4
|
import {
|
|
5
5
|
Service86
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-j581asrx.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service46
|
|
9
|
+
} from "./generate-ra34yqmw.js";
|
|
10
10
|
import {
|
|
11
11
|
RelativePath2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./generate-z5v4ffb3.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service52
|
|
15
|
+
} from "./generate-jd96tgqq.js";
|
|
16
16
|
import {
|
|
17
17
|
SessionEvent2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-ec1grn59.js";
|
|
19
19
|
import {
|
|
20
20
|
MessageNotFoundError2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./generate-m4qbnc51.js";
|
|
22
22
|
import {
|
|
23
23
|
SessionMessageTable2
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./generate-gg8p9cgs.js";
|
|
25
25
|
import {
|
|
26
26
|
decodeMessageRowSync2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./generate-wyh1p29c.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./generate-9rqn6x4v.js";
|
|
31
31
|
|
|
32
32
|
// src/session/revert.ts
|
|
33
33
|
var exports_revert = {};
|
|
@@ -40,11 +40,11 @@ __export(exports_revert, {
|
|
|
40
40
|
import { and, asc, eq, gt } from "drizzle-orm";
|
|
41
41
|
import { Effect } from "effect";
|
|
42
42
|
var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
43
|
-
const instances = yield*
|
|
43
|
+
const instances = yield* Service46;
|
|
44
44
|
const database = yield* Service87;
|
|
45
45
|
const bus = yield* Service86;
|
|
46
46
|
return yield* Effect.gen(function* () {
|
|
47
|
-
const snapshot = yield*
|
|
47
|
+
const snapshot = yield* Service52;
|
|
48
48
|
const original = input.session.revert?.snapshot ?? (yield* snapshot.capture());
|
|
49
49
|
const next = yield* plan(database.db, { sessionID: input.session.id, messageID: input.messageID });
|
|
50
50
|
const restore = new Map;
|
|
@@ -72,10 +72,10 @@ var stage2 = Effect.fn("SessionRevert.stage")(function* (input) {
|
|
|
72
72
|
}).pipe(instances.provide(input.session));
|
|
73
73
|
});
|
|
74
74
|
var clear2 = Effect.fn("SessionRevert.clear")(function* (session) {
|
|
75
|
-
const instances = yield*
|
|
75
|
+
const instances = yield* Service46;
|
|
76
76
|
const bus = yield* Service86;
|
|
77
77
|
yield* Effect.gen(function* () {
|
|
78
|
-
const snapshot = yield*
|
|
78
|
+
const snapshot = yield* Service52;
|
|
79
79
|
if (!session.revert)
|
|
80
80
|
return;
|
|
81
81
|
const original = session.revert.snapshot;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Ref5
|
|
3
|
+
} from "./generate-wevr71gn.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./generate-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/location-service-map.ts
|
|
9
9
|
var exports_location_service_map = {};
|
|
10
10
|
__export(exports_location_service_map, {
|
|
11
11
|
LocationServiceMap: () => exports_location_service_map,
|
|
12
|
-
Service: () =>
|
|
12
|
+
Service: () => Service82,
|
|
13
13
|
canonical: () => canonical3,
|
|
14
|
-
node: () =>
|
|
14
|
+
node: () => node86,
|
|
15
15
|
reload: () => reload2
|
|
16
16
|
});
|
|
17
17
|
import { Context, Effect, Exit, Layer, RcMap } from "effect";
|
|
@@ -19,14 +19,14 @@ import { LayerNode } from "@opencode/util/effect/layer-node";
|
|
|
19
19
|
import { Node } from "@opencode/util/effect/app-node";
|
|
20
20
|
import { AbsolutePath } from "@opencode/schema/schema";
|
|
21
21
|
import path from "path";
|
|
22
|
-
class
|
|
22
|
+
class Service82 extends Context.Service()("@opencode/example/LocationServiceMap") {
|
|
23
23
|
static get(ref) {
|
|
24
|
-
return Layer.unwrap(Effect.map(
|
|
24
|
+
return Layer.unwrap(Effect.map(Service82, (locations) => locations.get(ref)));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
var
|
|
27
|
+
var node86 = LayerNode.unbound(Service82, Node.tags.values.global);
|
|
28
28
|
var reload2 = Effect.fn("LocationServiceMap.reload")(function* () {
|
|
29
|
-
const locations = yield*
|
|
29
|
+
const locations = yield* Service82;
|
|
30
30
|
const refs = Array.from(yield* RcMap.keys(locations.rcMap));
|
|
31
31
|
yield* Effect.forEach(refs, (ref) => locations.invalidate(ref), {
|
|
32
32
|
discard: true,
|
|
@@ -42,10 +42,10 @@ function canonical3(ref) {
|
|
|
42
42
|
const flavor = process.platform === "win32" && !ref.directory.startsWith("/") ? path.win32 : path.posix;
|
|
43
43
|
const normalized = flavor.normalize(ref.directory);
|
|
44
44
|
const trailing = normalized.endsWith(flavor.sep) && normalized.length > flavor.parse(normalized).root.length;
|
|
45
|
-
return
|
|
45
|
+
return Ref5.make({
|
|
46
46
|
directory: AbsolutePath.make(trailing ? normalized.slice(0, -1) : normalized),
|
|
47
47
|
workspaceID: ref.workspaceID
|
|
48
48
|
});
|
|
49
49
|
}
|
|
50
50
|
|
|
51
|
-
export {
|
|
51
|
+
export { Service82, node86, reload2, canonical3, exports_location_service_map };
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
requestExecutor2,
|
|
3
3
|
llmClient2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./generate-p015t6z3.js";
|
|
5
5
|
import {
|
|
6
6
|
Service73,
|
|
7
7
|
node77
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./generate-g6y6gxmp.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service71,
|
|
11
|
+
node75
|
|
12
|
+
} from "./generate-a20trqj4.js";
|
|
13
13
|
import {
|
|
14
14
|
retryOneShot2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./generate-wnhgecwx.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./generate-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/generate.ts
|
|
21
21
|
var exports_generate2 = {};
|
|
@@ -25,11 +25,11 @@ __export(exports_generate2, {
|
|
|
25
25
|
ModelNotFoundError: () => ModelNotFoundError2,
|
|
26
26
|
ProviderFailure: () => ProviderFailure2,
|
|
27
27
|
ProviderRequestError: () => ProviderRequestError2,
|
|
28
|
-
Service: () =>
|
|
29
|
-
UnavailableError: () =>
|
|
28
|
+
Service: () => Service70,
|
|
29
|
+
UnavailableError: () => UnavailableError5,
|
|
30
30
|
UnsupportedModelError: () => UnsupportedModelError2,
|
|
31
|
-
layer: () =>
|
|
32
|
-
node: () =>
|
|
31
|
+
layer: () => layer26,
|
|
32
|
+
node: () => node74
|
|
33
33
|
});
|
|
34
34
|
import { Decision, DecisionClient, Image, ImageClient, LLM, LLMClient, Media } from "@opencode/ai/effect";
|
|
35
35
|
import { Money } from "@opencode/schema/money";
|
|
@@ -37,7 +37,7 @@ import { SessionID } from "@opencode/schema/session-id";
|
|
|
37
37
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
38
38
|
import { RequestExecutor } from "@opencode/ai/route";
|
|
39
39
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
40
|
-
class
|
|
40
|
+
class UnavailableError5 extends Schema.TaggedError()("Generate.UnavailableError", {
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
service: Schema.optional(Schema.String)
|
|
43
43
|
}) {
|
|
@@ -81,11 +81,11 @@ class ProviderRequestError2 extends Schema.TaggedError()("Generate.ProviderReque
|
|
|
81
81
|
}) {
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
class
|
|
84
|
+
class Service70 extends Context.Service()("@opencode/Generate") {
|
|
85
85
|
}
|
|
86
|
-
var
|
|
86
|
+
var layer26 = Layer.effect(Service70, Effect.gen(function* () {
|
|
87
87
|
const llm = yield* LLMClient.Service;
|
|
88
|
-
const resolver = yield*
|
|
88
|
+
const resolver = yield* Service71;
|
|
89
89
|
const models = yield* Service73;
|
|
90
90
|
const executor = yield* RequestExecutor.Service;
|
|
91
91
|
const images = yield* ImageClient.Service;
|
|
@@ -98,11 +98,11 @@ var layer23 = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
98
98
|
"SessionRunnerModel.ModelInitializationError",
|
|
99
99
|
"SessionRunnerModel.UnresolvedProviderVariablesError",
|
|
100
100
|
"SessionRunnerModel.UnsupportedCompactionError"
|
|
101
|
-
], (error) => Effect.fail(input.model ? resolutionError(input.model, "chat", error) : new
|
|
101
|
+
], (error) => Effect.fail(input.model ? resolutionError(input.model, "chat", error) : new UnavailableError5({ message: error.message, service: error.providerID }))));
|
|
102
102
|
if (!resolved && input.model)
|
|
103
103
|
return yield* missing(input.model, "chat");
|
|
104
104
|
if (!resolved)
|
|
105
|
-
return yield* new
|
|
105
|
+
return yield* new UnavailableError5({ message: "No model specified and no supported model is available" });
|
|
106
106
|
const response = yield* llm.generate(LLM.request({
|
|
107
107
|
model: resolved.model,
|
|
108
108
|
prompt: input.prompt,
|
|
@@ -162,8 +162,8 @@ var layer23 = Layer.effect(Service59, Effect.gen(function* () {
|
|
|
162
162
|
...response.providerMetadata ? { native: plainJson(response.providerMetadata) } : {}
|
|
163
163
|
};
|
|
164
164
|
});
|
|
165
|
-
const credentials = (effect) => effect.pipe(Effect.catchTag("Integration.Authorization", () => new
|
|
166
|
-
return
|
|
165
|
+
const credentials = (effect) => effect.pipe(Effect.catchTag("Integration.Authorization", () => new UnavailableError5({ message: "Generation credentials are unavailable" })));
|
|
166
|
+
return Service70.of({
|
|
167
167
|
text: (input) => credentials(runText(input)),
|
|
168
168
|
image: (input) => credentials(image(input)),
|
|
169
169
|
decisions: (input) => credentials(decisions(input))
|
|
@@ -215,10 +215,10 @@ function failureReason(tag, status) {
|
|
|
215
215
|
return "overloaded";
|
|
216
216
|
return "provider";
|
|
217
217
|
}
|
|
218
|
-
var
|
|
219
|
-
service:
|
|
220
|
-
layer:
|
|
221
|
-
deps: [
|
|
218
|
+
var node74 = makeLocationNode({
|
|
219
|
+
service: Service70,
|
|
220
|
+
layer: layer26,
|
|
221
|
+
deps: [node75, node77, llmClient2, requestExecutor2]
|
|
222
222
|
});
|
|
223
223
|
|
|
224
|
-
export {
|
|
224
|
+
export { UnavailableError5, ModelNotFoundError2, UnsupportedModelError2, InvalidRequestError3, ProviderFailure2, ProviderRequestError2, Service70, layer26, node74, exports_generate2 };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/mcp-codemode-defaults.ts
|
|
6
6
|
var exports_mcp_codemode_defaults = {};
|
|
7
7
|
__export(exports_mcp_codemode_defaults, {
|
|
8
8
|
McpCodeModeDefaultsPlugin: () => exports_mcp_codemode_defaults,
|
|
9
|
-
Plugin: () =>
|
|
9
|
+
Plugin: () => Plugin46
|
|
10
10
|
});
|
|
11
11
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
12
12
|
import { Effect } from "effect";
|
|
13
13
|
var urls = [/^https:\/\/executor\.sh\/[^/]+\/mcp$/];
|
|
14
14
|
var posthog = /^mcp(?:-eu|\.us|\.eu)?\.posthog\.com$/;
|
|
15
15
|
var mode = "x-posthog-mcp-mode";
|
|
16
|
-
var
|
|
16
|
+
var Plugin46 = define({
|
|
17
17
|
id: "opencode.mcp.codemode.defaults",
|
|
18
18
|
effect: Effect.fn(function* (ctx) {
|
|
19
19
|
yield* ctx.mcp.transform((editor) => {
|
|
@@ -38,4 +38,4 @@ var Plugin14 = define({
|
|
|
38
38
|
})
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export {
|
|
41
|
+
export { Plugin46, exports_mcp_codemode_defaults };
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./generate-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Service87,
|
|
6
6
|
node91
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./generate-b46zkj5d.js";
|
|
8
8
|
import {
|
|
9
9
|
Service86,
|
|
10
10
|
node90
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./generate-j581asrx.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
13
|
+
Service85,
|
|
14
|
+
node89
|
|
15
|
+
} from "./generate-5q37s2hn.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
ID18,
|
|
18
18
|
Current3,
|
|
19
|
-
|
|
19
|
+
Info30,
|
|
20
20
|
UpdateInput4,
|
|
21
|
-
|
|
21
|
+
Event20,
|
|
22
22
|
Vcs3
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./generate-hdfrs5mg.js";
|
|
24
24
|
import {
|
|
25
25
|
ProjectTable2,
|
|
26
26
|
upsertProject2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./generate-034tev2y.js";
|
|
28
28
|
import {
|
|
29
29
|
refresh2
|
|
30
|
-
} from "./
|
|
30
|
+
} from "./generate-yara3q77.js";
|
|
31
31
|
import {
|
|
32
32
|
WorktreeTable2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./generate-ayjs7tqn.js";
|
|
34
34
|
import {
|
|
35
35
|
__export
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./generate-9rqn6x4v.js";
|
|
37
37
|
|
|
38
38
|
// src/project.ts
|
|
39
39
|
var exports_project = {};
|
|
40
40
|
__export(exports_project, {
|
|
41
41
|
Current: () => Current2,
|
|
42
|
-
ID: () =>
|
|
43
|
-
Info: () =>
|
|
44
|
-
NotFoundError: () =>
|
|
42
|
+
ID: () => ID17,
|
|
43
|
+
Info: () => Info29,
|
|
44
|
+
NotFoundError: () => NotFoundError12,
|
|
45
45
|
Project: () => exports_project,
|
|
46
|
-
Service: () =>
|
|
46
|
+
Service: () => Service84,
|
|
47
47
|
UpdateInput: () => UpdateInput3,
|
|
48
48
|
Vcs: () => Vcs2,
|
|
49
|
-
node: () =>
|
|
49
|
+
node: () => node88,
|
|
50
50
|
root: () => root2,
|
|
51
51
|
sweepNode: () => sweepNode2
|
|
52
52
|
});
|
|
@@ -59,14 +59,14 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
59
59
|
import { AppProcess } from "@opencode/util/process";
|
|
60
60
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Hash } from "@opencode/util/hash";
|
|
62
|
-
var
|
|
62
|
+
var ID17 = ID18;
|
|
63
63
|
var Vcs2 = Vcs3;
|
|
64
64
|
var Current2 = Current3;
|
|
65
|
-
var
|
|
65
|
+
var Info29 = Info30;
|
|
66
66
|
var UpdateInput3 = UpdateInput4;
|
|
67
67
|
|
|
68
|
-
class
|
|
69
|
-
projectID:
|
|
68
|
+
class NotFoundError12 extends Schema.TaggedError()("Project.NotFoundError", {
|
|
69
|
+
projectID: ID17
|
|
70
70
|
}) {
|
|
71
71
|
}
|
|
72
72
|
var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", ".hg"]) {
|
|
@@ -84,7 +84,7 @@ var root2 = Effect.fn("Project.root")(function* (fs, input, markers = [".git", "
|
|
|
84
84
|
var ACTIVATE_INTERVAL = 60000;
|
|
85
85
|
var SWEEP_INTERVAL = Duration.hours(1);
|
|
86
86
|
|
|
87
|
-
class
|
|
87
|
+
class Service84 extends Context.Service()("@opencode/Project") {
|
|
88
88
|
}
|
|
89
89
|
function fromRow(row) {
|
|
90
90
|
const icon = row.icon_url || row.icon_url_override || row.icon_color ? {
|
|
@@ -108,9 +108,9 @@ function fromRow(row) {
|
|
|
108
108
|
sandboxes: row.sandboxes
|
|
109
109
|
};
|
|
110
110
|
}
|
|
111
|
-
var layer = Layer.effect(
|
|
111
|
+
var layer = Layer.effect(Service84, Effect.gen(function* () {
|
|
112
112
|
const fs = yield* FSUtil.Service;
|
|
113
|
-
const git = yield*
|
|
113
|
+
const git = yield* Service85;
|
|
114
114
|
const proc = yield* AppProcess.Service;
|
|
115
115
|
const bus = yield* Service86;
|
|
116
116
|
const db = (yield* Service87).db;
|
|
@@ -123,8 +123,8 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
123
123
|
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;
|
|
124
124
|
const changed = replaced ?? unarchived;
|
|
125
125
|
if (changed)
|
|
126
|
-
yield* bus.publish(
|
|
127
|
-
yield* refresh2(fs, db, project.id).pipe(Effect.flatMap((row) => row ? bus.publish(
|
|
126
|
+
yield* bus.publish(Event20.Updated, fromRow(changed));
|
|
127
|
+
yield* refresh2(fs, db, project.id).pipe(Effect.flatMap((row) => row ? bus.publish(Event20.Updated, fromRow(row)) : Effect.void), Effect.ignoreCause, Effect.forkIn(scope));
|
|
128
128
|
if (!project.vcs)
|
|
129
129
|
return project;
|
|
130
130
|
const directories = [
|
|
@@ -160,7 +160,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
160
160
|
yield* bus.publish(Worktree.Event.Resolved, {
|
|
161
161
|
projectID: item.projectID,
|
|
162
162
|
directory: item.directory,
|
|
163
|
-
previous: project.previous ??
|
|
163
|
+
previous: project.previous ?? ID17.global,
|
|
164
164
|
...adopted.length ? { adopted: adopted.map((candidate) => candidate.id) } : {}
|
|
165
165
|
}, {
|
|
166
166
|
commit: () => db.insert(WorktreeTable2).values({ project_id: item.projectID, directory: item.directory, strategy: item.strategy }).onConflictDoNothing().run().pipe(Effect.orDie, Effect.asVoid)
|
|
@@ -183,9 +183,9 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
183
183
|
time_updated: Date.now()
|
|
184
184
|
}).where(eq(ProjectTable2.id, input.projectID)).returning().get().pipe(Effect.orDie);
|
|
185
185
|
if (!row)
|
|
186
|
-
return yield* new
|
|
186
|
+
return yield* new NotFoundError12({ projectID: input.projectID });
|
|
187
187
|
const project = fromRow(row);
|
|
188
|
-
yield* bus.publish(
|
|
188
|
+
yield* bus.publish(Event20.Updated, project);
|
|
189
189
|
return project;
|
|
190
190
|
});
|
|
191
191
|
const activated = new Map;
|
|
@@ -196,10 +196,10 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
196
196
|
activated.set(projectID, now);
|
|
197
197
|
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);
|
|
198
198
|
if (row)
|
|
199
|
-
yield* bus.publish(
|
|
199
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
200
200
|
});
|
|
201
201
|
const cached = Effect.fnUntraced(function* (dir) {
|
|
202
|
-
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ?
|
|
202
|
+
return yield* fs.readFileString(path.join(dir, "opencode")).pipe(Effect.map((value) => value.trim()), Effect.map((value) => value ? ID17.make(value) : undefined), Effect.orElseSucceed(() => {
|
|
203
203
|
return;
|
|
204
204
|
}));
|
|
205
205
|
});
|
|
@@ -210,7 +210,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
210
210
|
const normalized = url(origin);
|
|
211
211
|
if (!normalized)
|
|
212
212
|
return;
|
|
213
|
-
return
|
|
213
|
+
return ID17.make(Hash.fast(`git-remote:${normalized}`));
|
|
214
214
|
});
|
|
215
215
|
function url(input) {
|
|
216
216
|
const value = input.trim();
|
|
@@ -235,7 +235,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
235
235
|
}
|
|
236
236
|
const rootCommit = Effect.fnUntraced(function* (repo) {
|
|
237
237
|
const root = (yield* git.history.rootCommits(repo))[0];
|
|
238
|
-
return root ?
|
|
238
|
+
return root ? ID17.make(root) : undefined;
|
|
239
239
|
});
|
|
240
240
|
const gitDiscover = Effect.fnUntraced(function* (dotGit) {
|
|
241
241
|
const repo = yield* git.repo.discover(AbsolutePath2.make(path.dirname(dotGit)));
|
|
@@ -251,7 +251,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
251
251
|
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), fallback(repo.worktree));
|
|
252
252
|
const resolved = {
|
|
253
253
|
previous,
|
|
254
|
-
id: id ??
|
|
254
|
+
id: id ?? ID17.global,
|
|
255
255
|
directory: repo.worktree,
|
|
256
256
|
canonical,
|
|
257
257
|
vcs: { type: "git", store: repo.commonDirectory }
|
|
@@ -276,7 +276,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
276
276
|
return;
|
|
277
277
|
const node = result.stdout.toString("utf8").split(`
|
|
278
278
|
`).map((item) => item.trim()).filter(Boolean).toSorted()[0];
|
|
279
|
-
return node ?
|
|
279
|
+
return node ? ID17.make(node) : undefined;
|
|
280
280
|
});
|
|
281
281
|
const hgDiscover = Effect.fnUntraced(function* (dotHg) {
|
|
282
282
|
const worktree = AbsolutePath2.make(path.dirname(dotHg));
|
|
@@ -284,7 +284,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
284
284
|
const id = previous ?? (yield* hgRoot(worktree));
|
|
285
285
|
return {
|
|
286
286
|
previous,
|
|
287
|
-
id: id ??
|
|
287
|
+
id: id ?? ID17.global,
|
|
288
288
|
directory: worktree,
|
|
289
289
|
vcs: { type: "hg", store: dotHg }
|
|
290
290
|
};
|
|
@@ -311,7 +311,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
311
311
|
});
|
|
312
312
|
}
|
|
313
313
|
return yield* save({
|
|
314
|
-
id:
|
|
314
|
+
id: ID17.make(Hash.fast(`directory:${directory}`)),
|
|
315
315
|
directory,
|
|
316
316
|
canonical: directory,
|
|
317
317
|
vcs: undefined
|
|
@@ -320,7 +320,7 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
320
320
|
const sweep = Effect.fn("Project.sweep")(function* () {
|
|
321
321
|
const cutoff = Date.now() - Duration.toMillis(SWEEP_INTERVAL);
|
|
322
322
|
const idle = and(isNull(ProjectTable2.time_archived), lt(ProjectTable2.time_updated, cutoff), lt(ProjectTable2.time_active, cutoff));
|
|
323
|
-
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id,
|
|
323
|
+
const projects = yield* db.select({ id: ProjectTable2.id, canonical: ProjectTable2.worktree }).from(ProjectTable2).where(and(idle, ne(ProjectTable2.id, ID17.global))).all().pipe(Effect.orDie);
|
|
324
324
|
const worktrees = yield* db.select().from(WorktreeTable2).all().pipe(Effect.orDie);
|
|
325
325
|
const exists = (directory) => fs.exists(directory).pipe(Effect.orElseSucceed(() => true));
|
|
326
326
|
yield* Effect.forEach(projects, Effect.fnUntraced(function* (project) {
|
|
@@ -333,23 +333,23 @@ var layer = Layer.effect(Service79, Effect.gen(function* () {
|
|
|
333
333
|
return;
|
|
334
334
|
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);
|
|
335
335
|
if (row)
|
|
336
|
-
yield* bus.publish(
|
|
336
|
+
yield* bus.publish(Event20.Updated, fromRow(row));
|
|
337
337
|
}), { concurrency: 8, discard: true });
|
|
338
338
|
});
|
|
339
|
-
return
|
|
339
|
+
return Service84.of({ list, update, activate, resolve, sweep });
|
|
340
340
|
}));
|
|
341
|
-
var
|
|
342
|
-
service:
|
|
341
|
+
var node88 = makeGlobalNode({
|
|
342
|
+
service: Service84,
|
|
343
343
|
layer,
|
|
344
|
-
deps: [node90, node91, FSUtil.node,
|
|
344
|
+
deps: [node90, node91, FSUtil.node, node89, AppProcess.node]
|
|
345
345
|
});
|
|
346
346
|
var sweepNode2 = makeGlobalNode({
|
|
347
347
|
name: "project-archive-sweep",
|
|
348
348
|
layer: Layer.effectDiscard(Effect.gen(function* () {
|
|
349
|
-
const project = yield*
|
|
349
|
+
const project = yield* Service84;
|
|
350
350
|
yield* project.sweep().pipe(Effect.ignoreCause({ log: "Error", message: "Project archive sweep failed" }), Effect.repeat(Schedule.spaced(SWEEP_INTERVAL)), Effect.forkScoped);
|
|
351
351
|
})),
|
|
352
|
-
deps: [
|
|
352
|
+
deps: [node88]
|
|
353
353
|
});
|
|
354
354
|
|
|
355
|
-
export {
|
|
355
|
+
export { ID17, Vcs2, Current2, Info29, UpdateInput3, NotFoundError12, root2, Service84, node88, sweepNode2, exports_project };
|