@opencode/core 0.0.0-dev-286 → 0.0.0-dev-287
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 +91 -91
- package/dist/aisdk-native.js +101 -101
- package/dist/aisdk.js +107 -107
- package/dist/app.js +9 -9
- package/dist/bus.js +83 -83
- package/dist/chunks/{worktree-q2nqdedq.js → snapshot-01x5qw2q.js} +9 -9
- package/dist/chunks/{worktree-034tev2y.js → snapshot-034tev2y.js} +2 -2
- package/dist/chunks/{worktree-t4zc915k.js → snapshot-04hfgynr.js} +17 -17
- package/dist/chunks/{worktree-gnm090bx.js → snapshot-054thd3h.js} +11 -11
- package/dist/chunks/{worktree-zay1k5wv.js → snapshot-070e0tpn.js} +17 -17
- package/dist/chunks/{worktree-hyns4byn.js → snapshot-07xh8nyv.js} +28 -28
- package/dist/chunks/{worktree-tx8ht019.js → snapshot-0fdchs18.js} +15 -15
- package/dist/chunks/{worktree-sqjzf8x2.js → snapshot-0j7gp832.js} +4 -4
- package/dist/chunks/{worktree-360wd41x.js → snapshot-0kgdmrak.js} +27 -27
- package/dist/chunks/{worktree-bda28c86.js → snapshot-0qe29vfs.js} +17 -17
- package/dist/chunks/{worktree-3wq0w81j.js → snapshot-0shtyb57.js} +22 -22
- package/dist/chunks/{worktree-80kgc7k1.js → snapshot-18856ak1.js} +32 -32
- package/dist/chunks/{worktree-1aqsckx4.js → snapshot-1aqsckx4.js} +1 -1
- package/dist/chunks/{worktree-1ep2p91f.js → snapshot-1ep2p91f.js} +2 -2
- package/dist/chunks/{worktree-9t9nbwt3.js → snapshot-1hsgd8ch.js} +32 -32
- package/dist/chunks/{worktree-1x2knyw4.js → snapshot-1x2knyw4.js} +1 -1
- package/dist/chunks/{worktree-m7zsfgfm.js → snapshot-1ygds395.js} +21 -21
- package/dist/chunks/{worktree-1yq9hg58.js → snapshot-1yq9hg58.js} +1 -1
- package/dist/chunks/{worktree-gfhpa9gk.js → snapshot-1zwvgbbx.js} +43 -43
- package/dist/chunks/{worktree-204s3925.js → snapshot-204s3925.js} +1 -1
- package/dist/chunks/{worktree-b85szd7h.js → snapshot-216cdjjz.js} +12 -12
- package/dist/chunks/{worktree-9t20sdzg.js → snapshot-225e7873.js} +6 -6
- package/dist/chunks/{worktree-w2g8c1h4.js → snapshot-231nxj68.js} +40 -40
- package/dist/chunks/{worktree-qnqasnye.js → snapshot-26x8chrq.js} +6 -6
- package/dist/chunks/{worktree-6sayp01d.js → snapshot-2941zkdf.js} +27 -27
- package/dist/chunks/{worktree-0yrht1zy.js → snapshot-29z1cymp.js} +27 -27
- package/dist/chunks/{worktree-5w72mvse.js → snapshot-2hz06pja.js} +5 -5
- package/dist/chunks/{worktree-w66j29kr.js → snapshot-2qxh2eh1.js} +13 -13
- package/dist/chunks/{worktree-kgh589a5.js → snapshot-2r0v86d9.js} +13 -13
- package/dist/chunks/{worktree-b9bzekrm.js → snapshot-2xtzk7mm.js} +28 -28
- package/dist/chunks/{worktree-7w11hwx0.js → snapshot-38cqfa6z.js} +17 -17
- package/dist/chunks/{worktree-cgqrqfdd.js → snapshot-3a7nzvas.js} +11 -11
- package/dist/chunks/{worktree-ezgss49s.js → snapshot-3fycf4n6.js} +26 -26
- package/dist/chunks/{worktree-3hepkmqq.js → snapshot-3hepkmqq.js} +1 -1
- package/dist/chunks/{worktree-3nnrz6f6.js → snapshot-3nnrz6f6.js} +1 -1
- package/dist/chunks/{worktree-8yazd8jn.js → snapshot-3pazngbb.js} +35 -35
- package/dist/chunks/{worktree-xmx7xj34.js → snapshot-3ryz99p0.js} +4 -4
- package/dist/chunks/{worktree-n73q7gnv.js → snapshot-3y7ph4ge.js} +23 -23
- package/dist/chunks/{worktree-mj3htrn7.js → snapshot-46c8y99h.js} +11 -11
- package/dist/chunks/{worktree-w8ps3wcc.js → snapshot-4a5xzjmk.js} +20 -20
- package/dist/chunks/{worktree-4dx1dgte.js → snapshot-4dx1dgte.js} +1 -1
- package/dist/chunks/{worktree-4gwbv0ae.js → snapshot-4h4vqn4t.js} +4 -4
- package/dist/chunks/{worktree-45hyrqvj.js → snapshot-4msmfn5s.js} +8 -8
- package/dist/chunks/{worktree-4pyp9zr9.js → snapshot-4pyp9zr9.js} +1 -1
- package/dist/chunks/{worktree-4v008n1t.js → snapshot-4v008n1t.js} +1 -1
- package/dist/chunks/{worktree-spf8w817.js → snapshot-4zzembfn.js} +5 -5
- package/dist/chunks/{worktree-7a1k840q.js → snapshot-51gvghxj.js} +14 -14
- package/dist/chunks/{worktree-m7fyhed3.js → snapshot-51rnpyxb.js} +20 -20
- package/dist/chunks/{worktree-k0jpvv7x.js → snapshot-5hb443sc.js} +16 -16
- package/dist/chunks/{worktree-5m9w47nd.js → snapshot-5m9w47nd.js} +1 -1
- package/dist/chunks/{worktree-qr9qsn55.js → snapshot-60waktgz.js} +30 -30
- package/dist/chunks/{worktree-7fz6tcfs.js → snapshot-611gy84y.js} +20 -20
- package/dist/chunks/{worktree-6esdw8yj.js → snapshot-6esdw8yj.js} +1 -1
- package/dist/chunks/{worktree-9k2mwdeg.js → snapshot-6k6232hn.js} +4 -4
- package/dist/chunks/{worktree-3776k8q5.js → snapshot-6rqmms3d.js} +11 -11
- package/dist/chunks/{worktree-4pw98qd4.js → snapshot-6ss6ngz0.js} +4 -4
- package/dist/chunks/{worktree-18g90bpv.js → snapshot-6twykydk.js} +9 -9
- package/dist/chunks/{worktree-76cb1hcw.js → snapshot-76cb1hcw.js} +1 -1
- package/dist/chunks/{worktree-qk8rxpda.js → snapshot-79j6qarh.js} +8 -8
- package/dist/chunks/{worktree-7bmhse3q.js → snapshot-7bmhse3q.js} +1 -1
- package/dist/chunks/{worktree-jedcwhf5.js → snapshot-7dyq9a8a.js} +22 -22
- package/dist/chunks/{worktree-djd49kbm.js → snapshot-7j6as1n5.js} +2 -2
- package/dist/chunks/{worktree-7q0y7xkk.js → snapshot-7kaqz624.js} +11 -11
- package/dist/chunks/{worktree-7kr66rt3.js → snapshot-7kr66rt3.js} +1 -1
- package/dist/chunks/{worktree-7w2ypzdf.js → snapshot-7w2ypzdf.js} +1 -1
- package/dist/chunks/{worktree-82h3a1kw.js → snapshot-7xmajcag.js} +22 -22
- package/dist/chunks/{worktree-860029p8.js → snapshot-7xymf1gv.js} +11 -11
- package/dist/chunks/{worktree-p65b0w7p.js → snapshot-7ys5edjy.js} +20 -20
- package/dist/chunks/{worktree-8jne4ghb.js → snapshot-80dydmy6.js} +18 -18
- package/dist/chunks/{worktree-k1xjwggj.js → snapshot-84anx1c1.js} +15 -15
- package/dist/chunks/{worktree-xr8j28en.js → snapshot-84mcn12y.js} +41 -41
- package/dist/chunks/{worktree-sfmvmqfk.js → snapshot-87pmwd6e.js} +3 -3
- package/dist/chunks/{worktree-25h84942.js → snapshot-8b3vzgkx.js} +4 -4
- package/dist/chunks/{worktree-wyeqency.js → snapshot-8fcbd70c.js} +7 -7
- package/dist/chunks/{worktree-qjgzc4b4.js → snapshot-8jztxfpf.js} +4 -4
- package/dist/chunks/{worktree-pqv6jrxt.js → snapshot-8ktw2vv7.js} +24 -24
- package/dist/chunks/{worktree-0v2kj0w9.js → snapshot-8s98z94r.js} +25 -25
- package/dist/chunks/{worktree-rbndg51d.js → snapshot-8shc1k29.js} +6 -6
- package/dist/chunks/{worktree-8wtp7s3z.js → snapshot-8wtp7s3z.js} +1 -1
- package/dist/chunks/{worktree-mf3y8h86.js → snapshot-8y3xkh6a.js} +58 -58
- package/dist/chunks/{worktree-90zstvax.js → snapshot-90zstvax.js} +1 -1
- package/dist/chunks/{worktree-2db5r0en.js → snapshot-93q5pt8n.js} +5 -5
- package/dist/chunks/{worktree-95sp4hdf.js → snapshot-95sp4hdf.js} +1 -1
- package/dist/chunks/{worktree-hndjt1e9.js → snapshot-9a2mpknv.js} +11 -11
- package/dist/chunks/{worktree-3m85peyv.js → snapshot-9j10ey4x.js} +29 -29
- package/dist/chunks/{worktree-xrpfz6f8.js → snapshot-9r0x1bva.js} +9 -9
- package/dist/chunks/{worktree-07fp8s5y.js → snapshot-9s7aj0t8.js} +29 -29
- package/dist/chunks/{worktree-nxw21s73.js → snapshot-9vy8j3x2.js} +14 -14
- package/dist/chunks/{worktree-eyq3zjg1.js → snapshot-9ye5q05h.js} +1 -1
- package/dist/chunks/{worktree-rjdkgttt.js → snapshot-a46j35vk.js} +16 -16
- package/dist/chunks/{worktree-abbaypxx.js → snapshot-a4j6n3kj.js} +20 -20
- package/dist/chunks/{worktree-9yke2vdy.js → snapshot-a7hv09h9.js} +11 -11
- package/dist/chunks/{worktree-gg4yr8n1.js → snapshot-a8hyghjg.js} +21 -21
- package/dist/chunks/{worktree-pgkwnhrk.js → snapshot-aasdty3y.js} +30 -30
- package/dist/chunks/{worktree-97p996b3.js → snapshot-absbpnym.js} +11 -11
- package/dist/chunks/{worktree-x8mt7ajg.js → snapshot-ad7r7r6z.js} +32 -32
- package/dist/chunks/{worktree-71ygcs51.js → snapshot-amch935v.js} +19 -19
- package/dist/chunks/{worktree-w59ytyqq.js → snapshot-askp26bb.js} +9 -9
- package/dist/chunks/{worktree-ayjs7tqn.js → snapshot-ayjs7tqn.js} +2 -2
- package/dist/chunks/{worktree-hc4wny2n.js → snapshot-b69aeg09.js} +11 -11
- package/dist/chunks/{worktree-b6vsg801.js → snapshot-b6vsg801.js} +2 -2
- package/dist/chunks/{worktree-nnx8h4m9.js → snapshot-bf7v9sm1.js} +13 -13
- package/dist/chunks/{worktree-bstexjd6.js → snapshot-bstexjd6.js} +1 -1
- package/dist/chunks/{worktree-5w6mnkbc.js → snapshot-bvbryd13.js} +11 -11
- package/dist/chunks/{worktree-2rar789x.js → snapshot-c42zap2t.js} +11 -11
- package/dist/chunks/{worktree-cnj75yzs.js → snapshot-c5kjsz6q.js} +4 -4
- package/dist/chunks/{worktree-33e1kph9.js → snapshot-cczg5y8j.js} +13 -13
- package/dist/chunks/{worktree-d1r5081s.js → snapshot-ce5fknq2.js} +5 -5
- package/dist/chunks/{worktree-ts8fcpse.js → snapshot-cefjp1wr.js} +15 -15
- package/dist/chunks/{worktree-bgg6fpfq.js → snapshot-cs87y13h.js} +8 -8
- package/dist/chunks/{worktree-cwrgdav8.js → snapshot-cwrgdav8.js} +2 -2
- package/dist/chunks/{worktree-d4v9tmah.js → snapshot-d4v9tmah.js} +2 -2
- package/dist/chunks/{worktree-thj7mhbr.js → snapshot-da06fgys.js} +15 -15
- package/dist/chunks/{worktree-cb1dvkmt.js → snapshot-dg3cm5hs.js} +14 -14
- package/dist/chunks/{worktree-dt77769w.js → snapshot-dt77769w.js} +1 -1
- package/dist/chunks/{worktree-sqx6yyec.js → snapshot-e4c2h7rv.js} +5 -5
- package/dist/chunks/{worktree-e834z07m.js → snapshot-e834z07m.js} +1 -1
- package/dist/chunks/{worktree-0b8vrwjw.js → snapshot-e92xqcgs.js} +35 -35
- package/dist/chunks/{worktree-gcye4jv7.js → snapshot-eahpwh8e.js} +4 -4
- package/dist/chunks/{worktree-qq6sz745.js → snapshot-efpt9zqt.js} +18 -18
- package/dist/chunks/{worktree-6nyhrb0p.js → snapshot-eft2x21j.js} +18 -18
- package/dist/chunks/{worktree-0q1r2kjj.js → snapshot-emcmxg9g.js} +22 -22
- package/dist/chunks/{worktree-xj8tbvnx.js → snapshot-eqbc6p9m.js} +43 -43
- package/dist/chunks/{worktree-vmfhgzt5.js → snapshot-eqmd2tfz.js} +7 -7
- package/dist/chunks/{worktree-neary136.js → snapshot-esezyxfc.js} +8 -8
- package/dist/chunks/{worktree-1y6cskgh.js → snapshot-ev8k392h.js} +39 -39
- package/dist/chunks/{worktree-81db11mx.js → snapshot-f62swmga.js} +15 -15
- package/dist/chunks/{worktree-2mh92g0w.js → snapshot-f94ey9xe.js} +11 -11
- package/dist/chunks/{worktree-fffv3p7h.js → snapshot-fffv3p7h.js} +1 -1
- package/dist/chunks/{worktree-fg9p65nk.js → snapshot-fg9p65nk.js} +2 -2
- package/dist/chunks/{worktree-4m8q87vh.js → snapshot-fka08q05.js} +12 -12
- package/dist/chunks/{worktree-wp5xvy6f.js → snapshot-fkzmbmqm.js} +34 -34
- package/dist/chunks/{worktree-f7n1ssex.js → snapshot-fp83eet1.js} +9 -9
- package/dist/chunks/{worktree-0h8y3ex8.js → snapshot-fznmdakp.js} +4 -4
- package/dist/chunks/{worktree-mnsxfp09.js → snapshot-g6b7f38h.js} +14 -14
- package/dist/chunks/{worktree-rjtdrb56.js → snapshot-g85dk614.js} +14 -14
- package/dist/chunks/{worktree-d08zvrj3.js → snapshot-gct456j9.js} +9 -9
- package/dist/chunks/{worktree-9gmxhkaz.js → snapshot-gd69t8px.js} +12 -12
- package/dist/chunks/{worktree-7dtjcr74.js → snapshot-geabss8y.js} +21 -21
- package/dist/chunks/{worktree-xyg4a4db.js → snapshot-gfapne39.js} +5 -5
- package/dist/chunks/{worktree-df3kbw4d.js → snapshot-gmbafqg8.js} +16 -16
- package/dist/chunks/{worktree-pjb3r7bt.js → snapshot-grg4dqxx.js} +14 -14
- package/dist/chunks/{worktree-hgfegmhz.js → snapshot-hgfegmhz.js} +3 -3
- package/dist/chunks/{worktree-hh7kjqtw.js → snapshot-hh7kjqtw.js} +1 -1
- package/dist/chunks/{worktree-hpg1pkwy.js → snapshot-hpg1pkwy.js} +1 -1
- package/dist/chunks/{worktree-cbcbsb56.js → snapshot-hvvf9qw8.js} +6 -6
- package/dist/chunks/{worktree-z4ex9h9e.js → snapshot-hzmw3vrs.js} +11 -11
- package/dist/chunks/{worktree-jxvtabbt.js → snapshot-j1jds77h.js} +28 -28
- package/dist/chunks/{worktree-wacb14vy.js → snapshot-j3y2s533.js} +8 -8
- package/dist/chunks/{worktree-ag4vvxdv.js → snapshot-j5awqcra.js} +5 -5
- package/dist/chunks/{worktree-6xk3x19f.js → snapshot-j5fp2wkk.js} +85 -85
- package/dist/chunks/{worktree-ja63h2sr.js → snapshot-ja63h2sr.js} +2 -2
- package/dist/chunks/{worktree-yegyxjwk.js → snapshot-jedhzf2w.js} +48 -48
- package/dist/chunks/{worktree-jfaecv01.js → snapshot-jfaecv01.js} +1 -1
- package/dist/chunks/{worktree-2zp5a6yg.js → snapshot-jh74jycr.js} +3 -3
- package/dist/chunks/{worktree-2a9pjh68.js → snapshot-jk56naz6.js} +4 -4
- package/dist/chunks/{worktree-jpnvh877.js → snapshot-jk66j3kg.js} +10 -10
- package/dist/chunks/{worktree-4pzvwjr2.js → snapshot-jm2mtdfm.js} +4 -4
- package/dist/chunks/{worktree-ynq9889m.js → snapshot-jpcc61dj.js} +35 -35
- package/dist/chunks/{worktree-v8vd993n.js → snapshot-jphwvgs8.js} +8 -8
- package/dist/chunks/{worktree-0ex9mpwx.js → snapshot-jshrc2cw.js} +90 -90
- package/dist/chunks/{worktree-jtnps1zs.js → snapshot-jtnps1zs.js} +2 -2
- package/dist/chunks/{worktree-c1nvaaxv.js → snapshot-jv2ad532.js} +4 -4
- package/dist/chunks/{worktree-scmk72rv.js → snapshot-jv5ccajn.js} +5 -5
- package/dist/chunks/{worktree-d5k5mzsn.js → snapshot-jw6dp1eq.js} +29 -29
- package/dist/chunks/{worktree-zy2d75w1.js → snapshot-jx7g0qr7.js} +21 -21
- package/dist/chunks/{worktree-7dvsg837.js → snapshot-jyjv6vrg.js} +12 -12
- package/dist/chunks/{worktree-45dn5ykg.js → snapshot-k725emr3.js} +21 -21
- package/dist/chunks/{worktree-k814nvkf.js → snapshot-k814nvkf.js} +1 -1
- package/dist/chunks/{worktree-211v3ywx.js → snapshot-k96bjchk.js} +27 -27
- package/dist/chunks/{worktree-kcg78dnn.js → snapshot-kcg78dnn.js} +2 -2
- package/dist/chunks/{worktree-hk7hszd6.js → snapshot-kgyfb6et.js} +33 -33
- package/dist/chunks/{worktree-2j819t2x.js → snapshot-kryfa369.js} +25 -25
- package/dist/chunks/{worktree-2xfesqhp.js → snapshot-ksez4t81.js} +26 -26
- package/dist/chunks/{worktree-kt3bjfbg.js → snapshot-kt3bjfbg.js} +1 -1
- package/dist/chunks/{worktree-m1714858.js → snapshot-m1714858.js} +1 -1
- package/dist/chunks/{worktree-97jk9fzp.js → snapshot-m2858arc.js} +50 -50
- package/dist/chunks/{worktree-c9n14t9e.js → snapshot-m3nys68e.js} +9 -9
- package/dist/chunks/{worktree-fmvebq1c.js → snapshot-m5ggasza.js} +9 -9
- package/dist/chunks/{worktree-c1sj1bpn.js → snapshot-m827h4cm.js} +3 -3
- package/dist/chunks/{worktree-zn3yprmb.js → snapshot-m89vktg3.js} +13 -13
- package/dist/chunks/{worktree-m9w0rfyh.js → snapshot-m9w0rfyh.js} +1 -1
- package/dist/chunks/{worktree-mb7mbhnz.js → snapshot-mb7mbhnz.js} +3 -3
- package/dist/chunks/snapshot-me0dhgxs.js +18 -0
- package/dist/chunks/{worktree-erny1hp5.js → snapshot-mjszy0h5.js} +30 -30
- package/dist/chunks/{worktree-ssfehs1z.js → snapshot-mtkfycnh.js} +4 -4
- package/dist/chunks/{worktree-1wvf0ff0.js → snapshot-mxbmnhdw.js} +7 -7
- package/dist/chunks/{worktree-c325tjb6.js → snapshot-mycyzwd6.js} +16 -16
- package/dist/chunks/{worktree-7dwprhna.js → snapshot-n9xk0tfj.js} +43 -43
- package/dist/chunks/{worktree-nah043kf.js → snapshot-nah043kf.js} +1 -1
- package/dist/chunks/{worktree-fkc1f79k.js → snapshot-ndsa049r.js} +32 -32
- package/dist/chunks/{worktree-4pn94wwk.js → snapshot-ndyztvmw.js} +44 -44
- package/dist/chunks/{worktree-e1s0q7va.js → snapshot-nhgkvrhz.js} +5 -5
- package/dist/chunks/{worktree-nn94syh7.js → snapshot-njef46zj.js} +39 -39
- package/dist/chunks/{worktree-dgjy22zw.js → snapshot-npnecasp.js} +8 -8
- package/dist/chunks/{worktree-x46kzsvj.js → snapshot-nx42e9qw.js} +22 -22
- package/dist/chunks/{worktree-8d99dfzw.js → snapshot-nzeth2v7.js} +16 -16
- package/dist/chunks/{worktree-p015t6z3.js → snapshot-p015t6z3.js} +2 -2
- package/dist/chunks/{worktree-yx3jcsf5.js → snapshot-p7gcr6xd.js} +22 -22
- package/dist/chunks/{worktree-7n4tbjx2.js → snapshot-pe6ebwtq.js} +17 -17
- package/dist/chunks/{worktree-pknna89w.js → snapshot-pknna89w.js} +1 -1
- package/dist/chunks/{worktree-gvnfypps.js → snapshot-pqm0gw65.js} +16 -16
- package/dist/chunks/{worktree-0b2ad458.js → snapshot-pqq5ej44.js} +12 -12
- package/dist/chunks/{worktree-5knxw5zw.js → snapshot-ps4ybpaz.js} +341 -341
- package/dist/chunks/{worktree-2sctd9r8.js → snapshot-pt1qytmh.js} +17 -17
- package/dist/chunks/{worktree-09fe5ez7.js → snapshot-px317zgp.js} +9 -9
- package/dist/chunks/{worktree-y7rptanb.js → snapshot-q4gm1j6y.js} +8 -8
- package/dist/chunks/{worktree-chw17fk3.js → snapshot-qe0c135p.js} +16 -16
- package/dist/chunks/{worktree-qp7r0hxv.js → snapshot-qp7r0hxv.js} +1 -1
- package/dist/chunks/{worktree-d6cs52tr.js → snapshot-qpxsar3x.js} +24 -24
- package/dist/chunks/{worktree-qqvy8y24.js → snapshot-qqvy8y24.js} +1 -1
- package/dist/chunks/{worktree-2japvek7.js → snapshot-qs2r9sye.js} +2 -2
- package/dist/chunks/{worktree-qzm6q9ch.js → snapshot-qzm6q9ch.js} +6 -6
- package/dist/chunks/{worktree-dq4stdtd.js → snapshot-r2s7w9p5.js} +4 -4
- package/dist/chunks/{worktree-w2eysc6j.js → snapshot-r41sfy63.js} +6 -6
- package/dist/chunks/{worktree-r542h3bh.js → snapshot-r542h3bh.js} +1 -1
- package/dist/chunks/{worktree-rb9dy4dg.js → snapshot-rb9dy4dg.js} +1 -1
- package/dist/chunks/snapshot-rdgpdk3a.js +26 -0
- package/dist/chunks/{worktree-rt5dr6hb.js → snapshot-rt5dr6hb.js} +1 -1
- package/dist/chunks/{worktree-v0t96s7a.js → snapshot-s7kyse9r.js} +4 -4
- package/dist/chunks/{worktree-e324kbrg.js → snapshot-s9cz50wa.js} +8 -8
- package/dist/chunks/{worktree-sa3fpqfw.js → snapshot-sa3fpqfw.js} +2 -2
- package/dist/chunks/{worktree-hf8dhk55.js → snapshot-sanxznym.js} +16 -16
- package/dist/chunks/{worktree-532k8p5d.js → snapshot-skw3nab4.js} +5 -5
- package/dist/chunks/{worktree-mqcm7x31.js → snapshot-smrcs1yt.js} +17 -17
- package/dist/chunks/{worktree-650ewqdt.js → snapshot-sqrwb7ek.js} +3 -3
- package/dist/chunks/{worktree-svcy3p9a.js → snapshot-svcy3p9a.js} +1 -1
- package/dist/chunks/{worktree-923ftqyh.js → snapshot-t2hws329.js} +6 -6
- package/dist/chunks/{worktree-n6jcsk88.js → snapshot-tcsn7fpc.js} +9 -9
- package/dist/chunks/{worktree-tczq8hjw.js → snapshot-tczq8hjw.js} +1 -1
- package/dist/chunks/{worktree-tm1e699v.js → snapshot-tnvq3v78.js} +9 -9
- package/dist/chunks/{worktree-m89858wj.js → snapshot-ts7mkfs9.js} +3 -3
- package/dist/chunks/{worktree-twssxy5n.js → snapshot-twssxy5n.js} +2 -2
- package/dist/chunks/{worktree-v2r1d0zg.js → snapshot-v2r1d0zg.js} +1 -1
- package/dist/chunks/{worktree-b3mzhchz.js → snapshot-v4wzacvx.js} +32 -32
- package/dist/chunks/{worktree-zgntrsrs.js → snapshot-v6jepjqd.js} +14 -14
- package/dist/chunks/{worktree-sy53apyv.js → snapshot-vad1g313.js} +31 -31
- package/dist/chunks/{worktree-ec3b2sgd.js → snapshot-vaer57cf.js} +8 -8
- package/dist/chunks/{worktree-excj9cfq.js → snapshot-vgz459d4.js} +35 -35
- package/dist/chunks/{worktree-33e37e6x.js → snapshot-vh4h0yrs.js} +11 -11
- package/dist/chunks/{worktree-wa49e47f.js → snapshot-vkkn64ap.js} +7 -7
- package/dist/chunks/{worktree-f9201ej8.js → snapshot-vn855jk2.js} +27 -27
- package/dist/chunks/{worktree-3ndyf3yw.js → snapshot-vpeh2c4h.js} +43 -43
- package/dist/chunks/{worktree-rj9j3as3.js → snapshot-vrrm71xh.js} +56 -56
- package/dist/chunks/{worktree-8nt2cb5r.js → snapshot-vv6btxxh.js} +15 -15
- package/dist/chunks/snapshot-vw3fqt8n.js +257 -0
- package/dist/chunks/{worktree-chfqv0dp.js → snapshot-vz8fyt0a.js} +4 -4
- package/dist/chunks/{worktree-2mnk3cpz.js → snapshot-w3h37n3b.js} +4 -4
- package/dist/chunks/{worktree-w3wsvvr9.js → snapshot-w3wsvvr9.js} +1 -1
- package/dist/chunks/{worktree-wh471sqx.js → snapshot-w5qeaqdt.js} +3 -3
- package/dist/chunks/{worktree-s7xmnr8t.js → snapshot-w67s4ywc.js} +4 -4
- package/dist/chunks/{worktree-zwrzbpfr.js → snapshot-w68dkr85.js} +16 -16
- package/dist/chunks/{worktree-dr3d1mr5.js → snapshot-w6be7tfp.js} +18 -18
- package/dist/chunks/{worktree-e239qjg7.js → snapshot-w73wdpwy.js} +9 -9
- package/dist/chunks/{worktree-k536nnb8.js → snapshot-w89sbzn0.js} +3 -3
- package/dist/chunks/{worktree-wakvkjy4.js → snapshot-wakvkjy4.js} +1 -1
- package/dist/chunks/{worktree-wd87259q.js → snapshot-wd87259q.js} +1 -1
- package/dist/chunks/{worktree-wegkxhrn.js → snapshot-wegkxhrn.js} +2 -2
- package/dist/chunks/{worktree-tf0tk0fq.js → snapshot-wmpfavpb.js} +25 -25
- package/dist/chunks/{worktree-s88qfkmz.js → snapshot-wmzygan7.js} +4 -4
- package/dist/chunks/{worktree-wnhgecwx.js → snapshot-wnhgecwx.js} +1 -1
- package/dist/chunks/{worktree-dyk9s1ne.js → snapshot-x7sfjysx.js} +4 -4
- package/dist/chunks/{worktree-b7wjnj3v.js → snapshot-xb87w9ea.js} +17 -17
- package/dist/chunks/{worktree-qqpbcr2p.js → snapshot-xt0z8zst.js} +4 -4
- package/dist/chunks/{worktree-tc90wnbk.js → snapshot-xv2swx2p.js} +46 -46
- package/dist/chunks/{worktree-1ktbs3mv.js → snapshot-xwc7yx52.js} +85 -85
- package/dist/chunks/{worktree-rg0cxenw.js → snapshot-y0er5eng.js} +2 -2
- package/dist/chunks/{worktree-7c9g9s0q.js → snapshot-y4tqh6rd.js} +7 -7
- package/dist/chunks/{worktree-hp6wkjcv.js → snapshot-y81dtq8s.js} +30 -30
- package/dist/chunks/{worktree-yxcs01xt.js → snapshot-y9j1a3y8.js} +18 -18
- package/dist/chunks/{worktree-yara3q77.js → snapshot-yara3q77.js} +2 -2
- package/dist/chunks/{worktree-yb20nhc3.js → snapshot-yb20nhc3.js} +1 -1
- package/dist/chunks/{worktree-wm1vm6w0.js → snapshot-ybp67y4f.js} +11 -11
- package/dist/chunks/{worktree-666ta36x.js → snapshot-yda73aff.js} +13 -13
- package/dist/chunks/{worktree-160yv0cs.js → snapshot-ydsespw1.js} +4 -4
- package/dist/chunks/{worktree-rp6wgn9y.js → snapshot-ydsk09n6.js} +25 -25
- package/dist/chunks/{worktree-d4qb2rc3.js → snapshot-yh1frphp.js} +4 -4
- package/dist/chunks/{worktree-6h85yzk8.js → snapshot-yh2xa03z.js} +5 -5
- package/dist/chunks/{worktree-x5xpvpef.js → snapshot-yk05r3rx.js} +25 -25
- package/dist/chunks/{worktree-vqqftvvv.js → snapshot-yk34mwqb.js} +13 -13
- package/dist/chunks/{worktree-jr92mdzz.js → snapshot-ykxwe7zp.js} +11 -11
- package/dist/chunks/{worktree-1yhff8da.js → snapshot-yp9gc5tz.js} +14 -14
- package/dist/chunks/{worktree-n6jhfx9n.js → snapshot-ypmwhxqj.js} +28 -28
- package/dist/chunks/{worktree-h4yv4fhz.js → snapshot-ysadhm59.js} +184 -184
- package/dist/chunks/{worktree-bq56hyj9.js → snapshot-ytftszmd.js} +8 -8
- package/dist/chunks/{worktree-t2cdwvq5.js → snapshot-yz6b78je.js} +19 -19
- package/dist/chunks/{worktree-ava6h5x1.js → snapshot-z0bdh4f5.js} +6 -6
- package/dist/chunks/{worktree-kfkfrd1x.js → snapshot-zatamnbq.js} +16 -16
- package/dist/chunks/{worktree-37kqz87b.js → snapshot-ze6grkbw.js} +3 -3
- package/dist/chunks/{worktree-g0zebgfm.js → snapshot-zefbt337.js} +24 -24
- package/dist/chunks/{worktree-2f5kzt4v.js → snapshot-zeryz54m.js} +7 -7
- package/dist/chunks/{worktree-4bzxpxbh.js → snapshot-zgbwm5kp.js} +5 -5
- package/dist/chunks/{worktree-vjmsebym.js → snapshot-zh7bbm8x.js} +9 -9
- package/dist/chunks/{worktree-tmt7mk16.js → snapshot-zn9wbc5r.js} +33 -33
- package/dist/chunks/{worktree-s4d4pvet.js → snapshot-zr8ag1ct.js} +4 -4
- package/dist/chunks/{worktree-gf7njwar.js → snapshot-zwwwwdhn.js} +23 -23
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +89 -89
- package/dist/config/discovery.js +94 -94
- package/dist/config/integration.js +3 -3
- package/dist/config/managed.js +1 -1
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +111 -111
- package/dist/config/plugin/agent.js +131 -131
- package/dist/config/plugin/command.js +228 -228
- package/dist/config/plugin/compaction.js +169 -169
- package/dist/config/plugin/compatibility.js +149 -149
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +130 -130
- package/dist/config/plugin/image.js +129 -129
- package/dist/config/plugin/instruction.js +129 -129
- package/dist/config/plugin/location-watcher.js +129 -129
- package/dist/config/plugin/mcp.js +138 -138
- package/dist/config/plugin/policy.js +129 -129
- package/dist/config/plugin/provider.js +129 -129
- package/dist/config/plugin/reference.js +131 -131
- package/dist/config/plugin/shell.js +131 -131
- package/dist/config/plugin/skill-file.js +145 -145
- package/dist/config/plugin/skill-scan.js +1 -1
- package/dist/config/plugin/skill.js +152 -152
- package/dist/config/plugin/snapshot.js +129 -129
- package/dist/config/plugin/source.js +132 -132
- package/dist/config/plugin/tool-output.js +130 -130
- package/dist/config/plugin/websearch.js +130 -130
- package/dist/config/plugin/worktree.js +131 -131
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +130 -130
- 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 +82 -82
- 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/20261026223005_schedule.js +1 -1
- package/dist/database/migration/20261029002625_session_part.js +1 -1
- package/dist/database/migration/20261029073502_session_time_busy.js +1 -1
- package/dist/database/migration/20261029165540_schedule_checks.js +1 -1
- package/dist/database/migration.gen.js +59 -59
- package/dist/database/migration.js +61 -61
- 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 +99 -99
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +392 -392
- 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 +105 -105
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +107 -107
- 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 +82 -82
- package/dist/file-access.js +155 -155
- 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 +88 -88
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +239 -239
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +111 -111
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +9 -9
- package/dist/filesystem.js +114 -114
- package/dist/form.js +88 -88
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +99 -99
- package/dist/generate.js +115 -115
- 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 +111 -111
- 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/notice.js +3 -3
- 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 +383 -383
- package/dist/instruction-discovery.js +94 -94
- package/dist/instructions/builtins.js +99 -99
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +1 -1
- package/dist/integration.js +93 -93
- package/dist/job.js +88 -88
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +83 -83
- package/dist/location-activity.js +171 -171
- package/dist/location-lifecycle.js +149 -149
- package/dist/location-service-map.js +98 -98
- package/dist/location-services.js +380 -380
- package/dist/location.js +97 -97
- package/dist/managed-policy.js +3 -3
- package/dist/mcp/client.js +103 -103
- package/dist/mcp/index.js +121 -121
- package/dist/mcp/instructions.js +175 -175
- package/dist/mcp/oauth.js +85 -85
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +102 -102
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +111 -111
- package/dist/model-resolver.js +111 -111
- package/dist/model-retry.js +1 -1
- package/dist/model.js +110 -110
- 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 +92 -92
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +152 -152
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +98 -98
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +85 -85
- package/dist/plugin/agent.js +86 -86
- package/dist/plugin/command.js +114 -114
- package/dist/plugin/goal.js +3 -3
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +232 -232
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +3 -3
- package/dist/plugin/internal.js +359 -359
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +109 -109
- package/dist/plugin/module.js +128 -128
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +145 -145
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +103 -103
- package/dist/plugin/provider/azure.js +129 -129
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +129 -129
- package/dist/plugin/provider/cloudflare-ai-gateway.js +127 -127
- package/dist/plugin/provider/cloudflare-workers-ai.js +127 -127
- package/dist/plugin/provider/configured.js +125 -125
- package/dist/plugin/provider/credential-settings.js +84 -84
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +105 -105
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/github-copilot.js +107 -107
- package/dist/plugin/provider/gitlab.js +106 -106
- package/dist/plugin/provider/google-vertex.js +126 -126
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +88 -88
- package/dist/plugin/provider/lmstudio.js +138 -138
- package/dist/plugin/provider/local.js +135 -135
- package/dist/plugin/provider/modal.js +104 -104
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +138 -138
- package/dist/plugin/provider/openai-context-caps.js +102 -102
- package/dist/plugin/provider/openai.js +129 -129
- package/dist/plugin/provider/opencode.js +131 -131
- package/dist/plugin/provider/openrouter.js +103 -103
- package/dist/plugin/provider/poe.js +89 -89
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +103 -103
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +128 -128
- package/dist/plugin/provider/vllm.js +138 -138
- package/dist/plugin/provider/xai.js +103 -103
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +179 -179
- package/dist/plugin/sdk.js +86 -86
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +148 -148
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +371 -371
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +98 -98
- package/dist/plugin/vcs/hg.js +98 -98
- package/dist/plugin/verbosity.js +105 -105
- package/dist/plugin/warming.js +127 -127
- 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 +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +6 -6
- package/dist/plugin.js +237 -237
- package/dist/project/icon.js +5 -5
- package/dist/project/schema.js +2 -2
- package/dist/project/sql.js +4 -4
- package/dist/project.js +96 -96
- package/dist/provider.js +107 -107
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +100 -100
- package/dist/reference/instructions.js +98 -98
- package/dist/reference.js +102 -102
- package/dist/repository-cache.js +92 -92
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +109 -109
- package/dist/rpc.js +98 -98
- package/dist/schedule/check.js +237 -237
- package/dist/schedule/sql.js +6 -6
- package/dist/schedule.js +243 -243
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/background.js +1 -1
- package/dist/session/blob.js +128 -128
- package/dist/session/command.js +84 -84
- package/dist/session/compaction.js +171 -171
- package/dist/session/context.js +195 -195
- package/dist/session/diff.js +100 -100
- 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 +241 -241
- package/dist/session/execution.js +161 -161
- package/dist/session/generate.js +195 -195
- package/dist/session/history.js +135 -135
- package/dist/session/inbox.js +148 -148
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +89 -89
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +140 -140
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +162 -162
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +163 -163
- package/dist/session/projector.js +142 -142
- package/dist/session/prompt.js +147 -147
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +138 -138
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +246 -246
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +112 -112
- package/dist/session/runner/publish-llm-event.js +148 -148
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +161 -161
- package/dist/session/runner/to-llm-message.js +136 -136
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +177 -177
- package/dist/session/shell.js +143 -143
- package/dist/session/skill.js +146 -146
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +83 -83
- package/dist/session/store.js +141 -141
- package/dist/session/stored.js +2 -2
- package/dist/session/subagent-completion.js +3 -3
- package/dist/session/subagent-job.js +226 -226
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +199 -199
- package/dist/session/to-session-error.js +147 -147
- package/dist/session/transfer.js +236 -236
- package/dist/session/usage.js +1 -1
- package/dist/session.js +230 -230
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +145 -145
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +150 -150
- package/dist/skill.js +155 -155
- package/dist/snapshot.js +105 -105
- 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 +174 -174
- package/dist/tool/plugin/edit.js +163 -163
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +167 -167
- package/dist/tool/plugin/grep.js +167 -167
- package/dist/tool/plugin/image-generate.js +236 -236
- package/dist/tool/plugin/mcp-resource.js +161 -161
- package/dist/tool/plugin/opencode.js +160 -160
- package/dist/tool/plugin/patch.js +165 -165
- package/dist/tool/plugin/question.js +145 -145
- package/dist/tool/plugin/read.js +168 -168
- package/dist/tool/plugin/schedule.js +243 -243
- package/dist/tool/plugin/shell.js +232 -232
- package/dist/tool/plugin/skill.js +156 -156
- package/dist/tool/plugin/subagent.js +233 -233
- package/dist/tool/plugin/todo.js +152 -152
- package/dist/tool/plugin/webfetch.js +152 -152
- package/dist/tool/plugin/websearch.js +154 -154
- package/dist/tool/plugin/write.js +165 -165
- package/dist/tool/read-filesystem.js +112 -112
- 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 +99 -99
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +104 -104
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +2 -2
- package/dist/variant.js +103 -103
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +101 -101
- package/dist/voice.js +98 -98
- package/dist/websearch.js +92 -92
- package/dist/wellknown/plugin.js +86 -86
- package/dist/wellknown.js +87 -87
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +92 -92
- 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 +101 -101
- package/dist/worktree.js +106 -106
- package/package.json +8 -8
- package/dist/chunks/worktree-f8ma18fn.js +0 -18
- package/dist/chunks/worktree-vnp0me3e.js +0 -257
- package/dist/chunks/worktree-z14rfht5.js +0 -26
- /package/dist/chunks/{worktree-0qkdqm5v.js → snapshot-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{worktree-0zkw76rk.js → snapshot-0zkw76rk.js} +0 -0
- /package/dist/chunks/{worktree-17cy0kzp.js → snapshot-17cy0kzp.js} +0 -0
- /package/dist/chunks/{worktree-1cnp2v09.js → snapshot-1cnp2v09.js} +0 -0
- /package/dist/chunks/{worktree-1kah00gy.js → snapshot-1kah00gy.js} +0 -0
- /package/dist/chunks/{worktree-24dcb14g.js → snapshot-24dcb14g.js} +0 -0
- /package/dist/chunks/{worktree-2710q6r3.js → snapshot-2710q6r3.js} +0 -0
- /package/dist/chunks/{worktree-2bv980vf.js → snapshot-2bv980vf.js} +0 -0
- /package/dist/chunks/{worktree-2c3vjs8z.js → snapshot-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{worktree-359p4xyc.js → snapshot-359p4xyc.js} +0 -0
- /package/dist/chunks/{worktree-3asan66x.js → snapshot-3asan66x.js} +0 -0
- /package/dist/chunks/{worktree-3v8g72cx.js → snapshot-3v8g72cx.js} +0 -0
- /package/dist/chunks/{worktree-3wcehsnq.js → snapshot-3wcehsnq.js} +0 -0
- /package/dist/chunks/{worktree-43n2bw4t.js → snapshot-43n2bw4t.js} +0 -0
- /package/dist/chunks/{worktree-4knz6hnm.js → snapshot-4knz6hnm.js} +0 -0
- /package/dist/chunks/{worktree-4vcrnpx2.js → snapshot-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{worktree-4y7fprxs.js → snapshot-4y7fprxs.js} +0 -0
- /package/dist/chunks/{worktree-53557ph1.js → snapshot-53557ph1.js} +0 -0
- /package/dist/chunks/{worktree-550bvhaj.js → snapshot-550bvhaj.js} +0 -0
- /package/dist/chunks/{worktree-5w3e23ze.js → snapshot-5w3e23ze.js} +0 -0
- /package/dist/chunks/{worktree-6prwharc.js → snapshot-6prwharc.js} +0 -0
- /package/dist/chunks/{worktree-6q2bdcd1.js → snapshot-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{worktree-7akdwqpd.js → snapshot-7akdwqpd.js} +0 -0
- /package/dist/chunks/{worktree-7m9af43g.js → snapshot-7m9af43g.js} +0 -0
- /package/dist/chunks/{worktree-7stb81gk.js → snapshot-7stb81gk.js} +0 -0
- /package/dist/chunks/{worktree-822emrt2.js → snapshot-822emrt2.js} +0 -0
- /package/dist/chunks/{worktree-84wd9syh.js → snapshot-84wd9syh.js} +0 -0
- /package/dist/chunks/{worktree-88xbtdfr.js → snapshot-88xbtdfr.js} +0 -0
- /package/dist/chunks/{worktree-8n3pysct.js → snapshot-8n3pysct.js} +0 -0
- /package/dist/chunks/{worktree-8wj87zfr.js → snapshot-8wj87zfr.js} +0 -0
- /package/dist/chunks/{worktree-9a4afbnw.js → snapshot-9a4afbnw.js} +0 -0
- /package/dist/chunks/{worktree-9rqn6x4v.js → snapshot-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{worktree-a058387c.js → snapshot-a058387c.js} +0 -0
- /package/dist/chunks/{worktree-a6k6eb26.js → snapshot-a6k6eb26.js} +0 -0
- /package/dist/chunks/{worktree-af5trqkr.js → snapshot-af5trqkr.js} +0 -0
- /package/dist/chunks/{worktree-afrmfg78.js → snapshot-afrmfg78.js} +0 -0
- /package/dist/chunks/{worktree-aqzs7mqg.js → snapshot-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{worktree-atq7p7m5.js → snapshot-atq7p7m5.js} +0 -0
- /package/dist/chunks/{worktree-beh6qq61.js → snapshot-beh6qq61.js} +0 -0
- /package/dist/chunks/{worktree-bkyjaxrp.js → snapshot-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{worktree-bmr6ed5q.js → snapshot-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{worktree-cf4snx6d.js → snapshot-cf4snx6d.js} +0 -0
- /package/dist/chunks/{worktree-cqv5kn06.js → snapshot-cqv5kn06.js} +0 -0
- /package/dist/chunks/{worktree-cvy3z8tj.js → snapshot-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{worktree-d9fn303g.js → snapshot-d9fn303g.js} +0 -0
- /package/dist/chunks/{worktree-d9jj8t3e.js → snapshot-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{worktree-dap0rakb.js → snapshot-dap0rakb.js} +0 -0
- /package/dist/chunks/{worktree-df08tz66.js → snapshot-df08tz66.js} +0 -0
- /package/dist/chunks/{worktree-dy18nga0.js → snapshot-dy18nga0.js} +0 -0
- /package/dist/chunks/{worktree-e5kj55wp.js → snapshot-e5kj55wp.js} +0 -0
- /package/dist/chunks/{worktree-e73j6tqm.js → snapshot-e73j6tqm.js} +0 -0
- /package/dist/chunks/{worktree-ean2d8b5.js → snapshot-ean2d8b5.js} +0 -0
- /package/dist/chunks/{worktree-ec1grn59.js → snapshot-ec1grn59.js} +0 -0
- /package/dist/chunks/{worktree-eh3zwz77.js → snapshot-eh3zwz77.js} +0 -0
- /package/dist/chunks/{worktree-emrn6kk6.js → snapshot-emrn6kk6.js} +0 -0
- /package/dist/chunks/{worktree-f0mxakyp.js → snapshot-f0mxakyp.js} +0 -0
- /package/dist/chunks/{worktree-f6n9ztr4.js → snapshot-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{worktree-faypxj3z.js → snapshot-faypxj3z.js} +0 -0
- /package/dist/chunks/{worktree-fd410y7t.js → snapshot-fd410y7t.js} +0 -0
- /package/dist/chunks/{worktree-fkpq3x5p.js → snapshot-fkpq3x5p.js} +0 -0
- /package/dist/chunks/{worktree-g4wezp1m.js → snapshot-g4wezp1m.js} +0 -0
- /package/dist/chunks/{worktree-g86h250q.js → snapshot-g86h250q.js} +0 -0
- /package/dist/chunks/{worktree-gebd4c9n.js → snapshot-gebd4c9n.js} +0 -0
- /package/dist/chunks/{worktree-gftt206x.js → snapshot-gftt206x.js} +0 -0
- /package/dist/chunks/{worktree-hcxmzztb.js → snapshot-hcxmzztb.js} +0 -0
- /package/dist/chunks/{worktree-hk9envan.js → snapshot-hk9envan.js} +0 -0
- /package/dist/chunks/{worktree-j2ntwpah.js → snapshot-j2ntwpah.js} +0 -0
- /package/dist/chunks/{worktree-j5zkgpj8.js → snapshot-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{worktree-jjkms2e6.js → snapshot-jjkms2e6.js} +0 -0
- /package/dist/chunks/{worktree-jr7sbwjy.js → snapshot-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{worktree-jwfs4k6c.js → snapshot-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{worktree-jwr30sdr.js → snapshot-jwr30sdr.js} +0 -0
- /package/dist/chunks/{worktree-jze0r7bz.js → snapshot-jze0r7bz.js} +0 -0
- /package/dist/chunks/{worktree-jzg6c2d5.js → snapshot-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{worktree-m18g726c.js → snapshot-m18g726c.js} +0 -0
- /package/dist/chunks/{worktree-mp448xyj.js → snapshot-mp448xyj.js} +0 -0
- /package/dist/chunks/{worktree-msx8hqn2.js → snapshot-msx8hqn2.js} +0 -0
- /package/dist/chunks/{worktree-n05xt0ee.js → snapshot-n05xt0ee.js} +0 -0
- /package/dist/chunks/{worktree-n3j8tn72.js → snapshot-n3j8tn72.js} +0 -0
- /package/dist/chunks/{worktree-ncqqe42p.js → snapshot-ncqqe42p.js} +0 -0
- /package/dist/chunks/{worktree-nh4v3znn.js → snapshot-nh4v3znn.js} +0 -0
- /package/dist/chunks/{worktree-njntx4h6.js → snapshot-njntx4h6.js} +0 -0
- /package/dist/chunks/{worktree-p71gwv9c.js → snapshot-p71gwv9c.js} +0 -0
- /package/dist/chunks/{worktree-q3sfg36h.js → snapshot-q3sfg36h.js} +0 -0
- /package/dist/chunks/{worktree-q74kybfr.js → snapshot-q74kybfr.js} +0 -0
- /package/dist/chunks/{worktree-qaymkmh1.js → snapshot-qaymkmh1.js} +0 -0
- /package/dist/chunks/{worktree-qb87gjwd.js → snapshot-qb87gjwd.js} +0 -0
- /package/dist/chunks/{worktree-qfa1cgps.js → snapshot-qfa1cgps.js} +0 -0
- /package/dist/chunks/{worktree-qg3g05ea.js → snapshot-qg3g05ea.js} +0 -0
- /package/dist/chunks/{worktree-qrg20bc0.js → snapshot-qrg20bc0.js} +0 -0
- /package/dist/chunks/{worktree-rcb2kzg1.js → snapshot-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{worktree-sdp7kfr6.js → snapshot-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{worktree-ssg3fenm.js → snapshot-ssg3fenm.js} +0 -0
- /package/dist/chunks/{worktree-stkk57rt.js → snapshot-stkk57rt.js} +0 -0
- /package/dist/chunks/{worktree-t03h4f5z.js → snapshot-t03h4f5z.js} +0 -0
- /package/dist/chunks/{worktree-ty7weeps.js → snapshot-ty7weeps.js} +0 -0
- /package/dist/chunks/{worktree-ve7vex1e.js → snapshot-ve7vex1e.js} +0 -0
- /package/dist/chunks/{worktree-w803qqfp.js → snapshot-w803qqfp.js} +0 -0
- /package/dist/chunks/{worktree-wc3fc9cn.js → snapshot-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{worktree-wer8tq1h.js → snapshot-wer8tq1h.js} +0 -0
- /package/dist/chunks/{worktree-wtztk69x.js → snapshot-wtztk69x.js} +0 -0
- /package/dist/chunks/{worktree-x0ckcb58.js → snapshot-x0ckcb58.js} +0 -0
- /package/dist/chunks/{worktree-x61499pn.js → snapshot-x61499pn.js} +0 -0
- /package/dist/chunks/{worktree-y44na4kk.js → snapshot-y44na4kk.js} +0 -0
- /package/dist/chunks/{worktree-y8f7s663.js → snapshot-y8f7s663.js} +0 -0
- /package/dist/chunks/{worktree-ygaqb7jw.js → snapshot-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{worktree-z5v4ffb3.js → snapshot-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{worktree-z9919s4g.js → snapshot-z9919s4g.js} +0 -0
|
@@ -2,26 +2,26 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./snapshot-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service74,
|
|
8
|
+
node77
|
|
9
|
+
} from "./snapshot-zefbt337.js";
|
|
10
10
|
import {
|
|
11
11
|
RipgrepBinary2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./snapshot-90zstvax.js";
|
|
13
13
|
import {
|
|
14
14
|
__export
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
16
16
|
|
|
17
17
|
// src/ripgrep.ts
|
|
18
18
|
var exports_ripgrep = {};
|
|
19
19
|
__export(exports_ripgrep, {
|
|
20
|
-
Error: () =>
|
|
20
|
+
Error: () => Error3,
|
|
21
21
|
InvalidPatternError: () => InvalidPatternError2,
|
|
22
22
|
Ripgrep: () => exports_ripgrep,
|
|
23
|
-
Service: () =>
|
|
24
|
-
node: () =>
|
|
23
|
+
Service: () => Service51,
|
|
24
|
+
node: () => node54
|
|
25
25
|
});
|
|
26
26
|
import { Context, Effect, Fiber, Layer, Schema, Stream } from "effect";
|
|
27
27
|
import { ChildProcess } from "effect/process";
|
|
@@ -47,7 +47,7 @@ var RawMatch = Schema.Struct({
|
|
|
47
47
|
});
|
|
48
48
|
var decodeJsonRecord = Schema.decodeUnknownEffect(Schema.fromJsonString(Schema.Unknown));
|
|
49
49
|
|
|
50
|
-
class
|
|
50
|
+
class Error3 extends Schema.TaggedError()("Ripgrep.Error", {
|
|
51
51
|
message: Schema.String,
|
|
52
52
|
cause: Schema.optional(Schema.Defect())
|
|
53
53
|
}) {
|
|
@@ -59,13 +59,13 @@ class InvalidPatternError2 extends Schema.TaggedError()("Ripgrep.InvalidPatternE
|
|
|
59
59
|
}) {
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
class
|
|
62
|
+
class Service51 extends Context.Service()("@opencode/Ripgrep") {
|
|
63
63
|
}
|
|
64
|
-
var failure = (message, cause) => new
|
|
64
|
+
var failure = (message, cause) => new Error3({ message, cause });
|
|
65
65
|
var normalizePath = (value) => value.replace(/^(?:\.[\\/])+/u, "").replace(/^[\\/]+/u, "").replaceAll("\\", "/");
|
|
66
66
|
var isInvalidPattern = (stderr) => stderr.includes("regex parse error") || stderr.includes("error parsing regex");
|
|
67
|
-
var layer = Layer.effect(
|
|
68
|
-
const environment = yield*
|
|
67
|
+
var layer = Layer.effect(Service51, Effect.gen(function* () {
|
|
68
|
+
const environment = yield* Service74;
|
|
69
69
|
const binary = yield* RipgrepBinary2.Service;
|
|
70
70
|
const run = (input) => {
|
|
71
71
|
const program = Effect.scoped(Effect.gen(function* () {
|
|
@@ -91,9 +91,9 @@ var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
91
91
|
return code === 1 ? [] : rows;
|
|
92
92
|
}));
|
|
93
93
|
const abortable = input.signal ? program.pipe(Effect.raceFirst(waitForAbort(input.signal))) : program;
|
|
94
|
-
return abortable.pipe(Effect.mapError((cause) => cause instanceof
|
|
94
|
+
return abortable.pipe(Effect.mapError((cause) => cause instanceof Error3 || cause instanceof InvalidPatternError2 ? cause : failure("ripgrep execution failed", cause)));
|
|
95
95
|
};
|
|
96
|
-
return
|
|
96
|
+
return Service51.of({
|
|
97
97
|
glob: (input) => run({
|
|
98
98
|
cwd: input.cwd,
|
|
99
99
|
limit: input.limit,
|
|
@@ -179,6 +179,6 @@ var layer = Layer.effect(Service54, Effect.gen(function* () {
|
|
|
179
179
|
}))))
|
|
180
180
|
});
|
|
181
181
|
}));
|
|
182
|
-
var
|
|
182
|
+
var node54 = makeLocationNode({ service: Service51, layer, deps: [node77, RipgrepBinary2.node] });
|
|
183
183
|
|
|
184
|
-
export {
|
|
184
|
+
export { Error3, InvalidPatternError2, Service51, node54, exports_ripgrep };
|
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node90
|
|
4
|
+
} from "./snapshot-a7hv09h9.js";
|
|
5
5
|
import {
|
|
6
6
|
lazy2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-88xbtdfr.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service81,
|
|
10
|
+
node85
|
|
11
|
+
} from "./snapshot-grg4dqxx.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
Service69,
|
|
14
14
|
login2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
node72
|
|
16
|
+
} from "./snapshot-mycyzwd6.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/pty.ts
|
|
22
22
|
var exports_pty = {};
|
|
23
23
|
__export(exports_pty, {
|
|
24
24
|
CreateInput: () => CreateInput2,
|
|
25
|
-
Event: () =>
|
|
25
|
+
Event: () => Event3,
|
|
26
26
|
ExitedError: () => ExitedError2,
|
|
27
27
|
ID: () => ID2,
|
|
28
|
-
Info: () =>
|
|
28
|
+
Info: () => Info3,
|
|
29
29
|
NotFoundError: () => NotFoundError2,
|
|
30
30
|
Pty: () => exports_pty,
|
|
31
31
|
Service: () => Service16,
|
|
@@ -35,12 +35,12 @@ __export(exports_pty, {
|
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
37
37
|
import { Pty } from "@opencode/schema/pty";
|
|
38
|
-
import { Event as
|
|
38
|
+
import { Event as Event3 } from "@opencode/schema/pty";
|
|
39
39
|
var BUFFER_LIMIT = 1024 * 1024 * 2;
|
|
40
40
|
var EXITED_LIMIT = 25;
|
|
41
41
|
var pty = lazy2(() => import("#pty"));
|
|
42
42
|
var ID2 = Pty.ID;
|
|
43
|
-
var
|
|
43
|
+
var Info3 = Pty.Info;
|
|
44
44
|
var CreateInput2 = Pty.CreateInput;
|
|
45
45
|
var UpdateInput2 = Pty.UpdateInput;
|
|
46
46
|
|
|
@@ -58,8 +58,8 @@ class Service16 extends Context.Service()("@opencode/Pty") {
|
|
|
58
58
|
}
|
|
59
59
|
var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
60
60
|
const bus = yield* Service86;
|
|
61
|
-
const location = yield*
|
|
62
|
-
const shell = yield*
|
|
61
|
+
const location = yield* Service81;
|
|
62
|
+
const shell = yield* Service69;
|
|
63
63
|
const context = yield* Effect.context();
|
|
64
64
|
const runFork = Effect.runForkWith(context);
|
|
65
65
|
const sessions = new Map;
|
|
@@ -272,7 +272,7 @@ var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
|
272
272
|
var node18 = makeLocationNode({
|
|
273
273
|
service: Service16,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [
|
|
275
|
+
deps: [node90, node85, node72]
|
|
276
276
|
});
|
|
277
277
|
|
|
278
|
-
export { ID2,
|
|
278
|
+
export { ID2, Info3, CreateInput2, UpdateInput2, NotFoundError2, ExitedError2, Service16, node18, exports_pty, Event3 };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node90
|
|
4
|
+
} from "./snapshot-a7hv09h9.js";
|
|
5
5
|
import {
|
|
6
6
|
changes2,
|
|
7
7
|
create3
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./snapshot-204s3925.js";
|
|
9
9
|
import {
|
|
10
10
|
evaluate3
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./snapshot-xv2swx2p.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/skill.ts
|
|
17
17
|
var exports_skill5 = {};
|
|
18
18
|
__export(exports_skill5, {
|
|
19
19
|
DirectorySource: () => DirectorySource2,
|
|
20
20
|
EmbeddedSource: () => EmbeddedSource2,
|
|
21
|
-
Event: () =>
|
|
21
|
+
Event: () => Event9,
|
|
22
22
|
ID: () => ID5,
|
|
23
|
-
Info: () =>
|
|
23
|
+
Info: () => Info12,
|
|
24
24
|
Name: () => Name2,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service50,
|
|
26
26
|
Skill: () => exports_skill5,
|
|
27
|
-
Source: () =>
|
|
27
|
+
Source: () => Source4,
|
|
28
28
|
UrlSource: () => UrlSource2,
|
|
29
|
-
available: () =>
|
|
30
|
-
node: () =>
|
|
29
|
+
available: () => available4,
|
|
30
|
+
node: () => node53,
|
|
31
31
|
prepare: () => prepare3,
|
|
32
32
|
toModelOutput: () => toModelOutput3
|
|
33
33
|
});
|
|
@@ -36,15 +36,15 @@ import { FSUtil } from "@opencode/util/fs-util";
|
|
|
36
36
|
import path from "path";
|
|
37
37
|
import { Context, Effect, Layer } from "effect";
|
|
38
38
|
import { Skill } from "@opencode/schema/skill";
|
|
39
|
-
import { Event as
|
|
39
|
+
import { Event as Event9 } from "@opencode/schema/skill";
|
|
40
40
|
var DirectorySource2 = Skill.DirectorySource;
|
|
41
41
|
var UrlSource2 = Skill.UrlSource;
|
|
42
42
|
var EmbeddedSource2 = Skill.EmbeddedSource;
|
|
43
|
-
var
|
|
44
|
-
var
|
|
43
|
+
var Source4 = Skill.Source;
|
|
44
|
+
var Info12 = Skill.Info;
|
|
45
45
|
var ID5 = Skill.ID;
|
|
46
46
|
var Name2 = Skill.Name;
|
|
47
|
-
var
|
|
47
|
+
var available4 = (skills, permissions) => skills.filter((skill) => evaluate3("skill", skill.id, permissions).effect !== "deny");
|
|
48
48
|
var toModelOutput3 = (skill, files) => {
|
|
49
49
|
const directory = path.dirname(skill.path);
|
|
50
50
|
return [
|
|
@@ -79,9 +79,9 @@ var prepare3 = Effect.fn("Skill.prepare")(function* (fs, skill) {
|
|
|
79
79
|
};
|
|
80
80
|
});
|
|
81
81
|
|
|
82
|
-
class
|
|
82
|
+
class Service50 extends Context.Service()("@opencode/Skill") {
|
|
83
83
|
}
|
|
84
|
-
var layer = Layer.effect(
|
|
84
|
+
var layer = Layer.effect(Service50, Effect.gen(function* () {
|
|
85
85
|
const bus = yield* Service86;
|
|
86
86
|
const state = create3({
|
|
87
87
|
name: "skill",
|
|
@@ -106,7 +106,7 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
106
106
|
}),
|
|
107
107
|
notify: changes2((data) => Array.from(data.skills.values()), () => bus.publish(Skill.Event.Updated, {}).pipe(Effect.asVoid))
|
|
108
108
|
});
|
|
109
|
-
return
|
|
109
|
+
return Service50.of({
|
|
110
110
|
transform: state.transform,
|
|
111
111
|
reload: state.reload,
|
|
112
112
|
get: Effect.fn("Skill.get")(function* (id) {
|
|
@@ -117,10 +117,10 @@ var layer = Layer.effect(Service38, Effect.gen(function* () {
|
|
|
117
117
|
})
|
|
118
118
|
});
|
|
119
119
|
}));
|
|
120
|
-
var
|
|
121
|
-
service:
|
|
120
|
+
var node53 = makeLocationNode({
|
|
121
|
+
service: Service50,
|
|
122
122
|
layer,
|
|
123
|
-
deps: [
|
|
123
|
+
deps: [node90]
|
|
124
124
|
});
|
|
125
125
|
|
|
126
|
-
export { DirectorySource2, UrlSource2, EmbeddedSource2,
|
|
126
|
+
export { DirectorySource2, UrlSource2, EmbeddedSource2, Source4, Info12, ID5, Name2, available4, toModelOutput3, prepare3, Service50, node53, exports_skill5, Event9 };
|
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import {
|
|
2
2
|
typeFollowing2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-svcy3p9a.js";
|
|
4
4
|
import {
|
|
5
5
|
NonNegativeInt2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-z5v4ffb3.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service74
|
|
9
|
+
} from "./snapshot-zefbt337.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Service47
|
|
12
|
+
} from "./snapshot-pqm0gw65.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Service59
|
|
15
|
+
} from "./snapshot-xv2swx2p.js";
|
|
16
16
|
import {
|
|
17
|
-
|
|
17
|
+
Service58,
|
|
18
18
|
resolvePath2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./snapshot-yk05r3rx.js";
|
|
20
20
|
import {
|
|
21
21
|
output2,
|
|
22
22
|
notice2,
|
|
23
23
|
metadata2,
|
|
24
24
|
notification2
|
|
25
|
-
} from "./
|
|
25
|
+
} from "./snapshot-k814nvkf.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
27
|
+
Service69,
|
|
28
28
|
name17
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./snapshot-mycyzwd6.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
} from "./
|
|
31
|
+
NotFoundError11,
|
|
32
|
+
Service67
|
|
33
|
+
} from "./snapshot-jedhzf2w.js";
|
|
34
34
|
import {
|
|
35
|
-
|
|
36
|
-
} from "./
|
|
35
|
+
Service23
|
|
36
|
+
} from "./snapshot-jshrc2cw.js";
|
|
37
37
|
import {
|
|
38
38
|
scan3
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./snapshot-jv2ad532.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
43
43
|
|
|
44
44
|
// src/tool/plugin/shell.ts
|
|
45
|
-
var
|
|
46
|
-
__export(
|
|
45
|
+
var exports_shell = {};
|
|
46
|
+
__export(exports_shell, {
|
|
47
47
|
DEFAULT_TIMEOUT_MS: () => DEFAULT_TIMEOUT_MS2,
|
|
48
|
-
Input: () =>
|
|
49
|
-
Plugin: () =>
|
|
50
|
-
ShellTool: () =>
|
|
51
|
-
name: () =>
|
|
48
|
+
Input: () => Input8,
|
|
49
|
+
Plugin: () => Plugin9,
|
|
50
|
+
ShellTool: () => exports_shell,
|
|
51
|
+
name: () => name8
|
|
52
52
|
});
|
|
53
53
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
54
54
|
import { Deferred, Effect, Schema, Scope } from "effect";
|
|
55
|
-
var
|
|
55
|
+
var name8 = "shell";
|
|
56
56
|
var DEFAULT_TIMEOUT_MS2 = 2 * 60 * 1000;
|
|
57
57
|
var BACKGROUND_INSTRUCTION = "You will be notified automatically when the command finishes. The notification will include the command's output. Unless the user explicitly asks otherwise, DO NOT poll for completion, even if you need the final result to continue. Repeatedly sleeping and reading or searching the output file is polling, not useful work. You may read the current output if it lets you do useful work now, but do not repeatedly check it while waiting for the command to finish. Keep working on anything that does not depend on the result. If you have nothing else to do, end your response; you will be resumed automatically when the command finishes.";
|
|
58
58
|
var OS = process.platform === "darwin" ? "macOS" : process.platform === "win32" ? "Windows" : process.platform === "linux" ? "Linux" : process.platform;
|
|
@@ -66,7 +66,7 @@ var description = (shell) => [
|
|
|
66
66
|
"Commands accept an optional timeout, background commands have no timeout by default.",
|
|
67
67
|
"Background commands return immediately, and you will be notified when they complete."
|
|
68
68
|
].join(" ");
|
|
69
|
-
var
|
|
69
|
+
var Input8 = Schema.Struct({
|
|
70
70
|
command: Schema.String.annotate({ description: "Shell command string to execute" }),
|
|
71
71
|
workdir: Schema.optionalKey(Schema.String).annotate({
|
|
72
72
|
description: "Working directory to execute the command in. Defaults to the current working directory. When possible, avoid changing directories in the command and set the working directory here instead."
|
|
@@ -112,18 +112,18 @@ Output is streaming to: ${file}`,
|
|
|
112
112
|
truncated: false,
|
|
113
113
|
status: "running"
|
|
114
114
|
});
|
|
115
|
-
var
|
|
115
|
+
var Plugin9 = {
|
|
116
116
|
id: "opencode.tool.shell",
|
|
117
117
|
effect: Effect.fn("ShellTool.Plugin")(function* (ctx) {
|
|
118
|
-
const sessions = yield*
|
|
119
|
-
const jobs = yield*
|
|
118
|
+
const sessions = yield* Service23;
|
|
119
|
+
const jobs = yield* Service47;
|
|
120
120
|
const scope = yield* Scope.Scope;
|
|
121
|
-
const environment = yield*
|
|
122
|
-
const access = yield*
|
|
123
|
-
const shell = yield*
|
|
124
|
-
const shellSelect = yield*
|
|
121
|
+
const environment = yield* Service74;
|
|
122
|
+
const access = yield* Service58;
|
|
123
|
+
const shell = yield* Service67;
|
|
124
|
+
const shellSelect = yield* Service69;
|
|
125
125
|
const compatibleShell = shellSelect.resolve({ priority: "compat" });
|
|
126
|
-
const permission = yield*
|
|
126
|
+
const permission = yield* Service59;
|
|
127
127
|
const prepare = Effect.fn("ShellTool.prepare")(function* (invocation, context) {
|
|
128
128
|
const source = {
|
|
129
129
|
type: "tool",
|
|
@@ -141,7 +141,7 @@ var Plugin30 = {
|
|
|
141
141
|
yield* access.authorizeExternal([target, ...directories], context);
|
|
142
142
|
if (parsed.commands.length > 0)
|
|
143
143
|
yield* permission.assert({
|
|
144
|
-
action:
|
|
144
|
+
action: name8,
|
|
145
145
|
resources: parsed.commands.map((command) => command.resource),
|
|
146
146
|
save: parsed.commands.map((command) => command.save),
|
|
147
147
|
sessionID: context.sessionID,
|
|
@@ -178,10 +178,10 @@ var Plugin30 = {
|
|
|
178
178
|
yield* jobs.completeBackground(info.notificationID);
|
|
179
179
|
}, Effect.forkIn(scope, { startImmediately: true }));
|
|
180
180
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
181
|
-
name:
|
|
181
|
+
name: name8,
|
|
182
182
|
options: { codemode: false },
|
|
183
183
|
description: description(),
|
|
184
|
-
input:
|
|
184
|
+
input: Input8,
|
|
185
185
|
output: Output,
|
|
186
186
|
execute: (input, context) => Effect.gen(function* () {
|
|
187
187
|
const timeout = input.background === true ? input.timeout ?? 0 : input.timeout ?? DEFAULT_TIMEOUT_MS2;
|
|
@@ -204,7 +204,7 @@ var Plugin30 = {
|
|
|
204
204
|
const run = Effect.gen(function* () {
|
|
205
205
|
const result = yield* shell.result(info);
|
|
206
206
|
if (!result.capture)
|
|
207
|
-
return yield* new
|
|
207
|
+
return yield* new NotFoundError11({ id: info.id });
|
|
208
208
|
const output = output2(result);
|
|
209
209
|
return {
|
|
210
210
|
...output,
|
|
@@ -218,7 +218,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
218
218
|
`)), Effect.onInterrupt(() => shell.remove(info.id).pipe(Effect.ignore)));
|
|
219
219
|
const job = yield* jobs.start({
|
|
220
220
|
id: info.id,
|
|
221
|
-
type:
|
|
221
|
+
type: name8,
|
|
222
222
|
title: info.command,
|
|
223
223
|
metadata: { sessionID: context.sessionID, shellID: info.id },
|
|
224
224
|
recovery: {
|
|
@@ -248,7 +248,7 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
248
248
|
}).pipe(Effect.map(toolResult), Effect.mapError((error) => new ToolFailure({ message: `Unable to execute command: ${input.command}`, error })))
|
|
249
249
|
})).pipe(Effect.orDie);
|
|
250
250
|
const hook = (event) => Effect.gen(function* () {
|
|
251
|
-
const tool = event.tools[
|
|
251
|
+
const tool = event.tools[name8];
|
|
252
252
|
if (!tool)
|
|
253
253
|
return;
|
|
254
254
|
tool.description = description(name17(yield* compatibleShell));
|
|
@@ -259,4 +259,4 @@ Command exceeded timeout of ${finalTimeout} ms. Retry with a larger timeout if t
|
|
|
259
259
|
})
|
|
260
260
|
};
|
|
261
261
|
|
|
262
|
-
export {
|
|
262
|
+
export { name8, DEFAULT_TIMEOUT_MS2, Input8, Plugin9, exports_shell };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/system-prompt.ts
|
|
6
6
|
var exports_system_prompt = {};
|
|
7
7
|
__export(exports_system_prompt, {
|
|
8
8
|
SessionSystemPrompt: () => exports_system_prompt,
|
|
9
|
-
make: () =>
|
|
10
|
-
render: () =>
|
|
9
|
+
make: () => make13,
|
|
10
|
+
render: () => render2
|
|
11
11
|
});
|
|
12
12
|
// src/session/runner/prompt/system.txt
|
|
13
13
|
var system_default = `You are an AI agent running in OpenCode, a coding agent harness. Help the user accomplish their goals using the tools you have available.
|
|
@@ -28,10 +28,10 @@ var system_default = `You are an AI agent running in OpenCode, a coding agent ha
|
|
|
28
28
|
`;
|
|
29
29
|
|
|
30
30
|
// src/session/system-prompt.ts
|
|
31
|
-
function
|
|
32
|
-
return
|
|
31
|
+
function make13(tools) {
|
|
32
|
+
return render2(system_default, tools);
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function render2(prompt, tools) {
|
|
35
35
|
const instructions = [];
|
|
36
36
|
if (tools.includes("shell")) {
|
|
37
37
|
instructions.push("- Prefer dedicated tools over shell commands; fall back to the shell when a tool cannot do what you need.", "- Do not chain shell commands with separators like `echo \"====\";` or `printf '---'`; the output becomes noisy in a way that makes the user's side of the conversation worse.");
|
|
@@ -46,4 +46,4 @@ function render3(prompt, tools) {
|
|
|
46
46
|
`));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
-
export {
|
|
49
|
+
export { make13, render2, exports_system_prompt };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Entries2,
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
Info18
|
|
7
|
+
} from "./snapshot-s7kyse9r.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/v1/config/agent.ts
|
|
13
13
|
var exports_agent4 = {};
|
|
14
14
|
__export(exports_agent4, {
|
|
15
15
|
ConfigAgentV1: () => exports_agent4,
|
|
16
|
-
Info: () =>
|
|
16
|
+
Info: () => Info16
|
|
17
17
|
});
|
|
18
18
|
import { Schema, SchemaGetter } from "effect";
|
|
19
19
|
var Color = Schema.Union([
|
|
@@ -45,7 +45,7 @@ var AgentSchema = Schema.StructWithRest(Schema.Struct({
|
|
|
45
45
|
description: "Maximum number of agentic iterations before forcing text-only response"
|
|
46
46
|
}),
|
|
47
47
|
maxSteps: Schema.optional(PositiveInt2).annotate({ description: "@deprecated Use 'steps' field instead." }),
|
|
48
|
-
permission: Schema.optional(
|
|
48
|
+
permission: Schema.optional(Info18)
|
|
49
49
|
}), [Schema.Record(Schema.String, Schema.Any)]);
|
|
50
50
|
var KNOWN_KEYS = new Set(["name", ...Object.keys(AgentSchema.schema.fields)]);
|
|
51
51
|
var normalize = (agent) => {
|
|
@@ -64,9 +64,9 @@ var normalize = (agent) => {
|
|
|
64
64
|
const steps = agent.steps ?? agent.maxSteps;
|
|
65
65
|
return { ...agent, options, permission: [...permission], ...steps !== undefined ? { steps } : {} };
|
|
66
66
|
};
|
|
67
|
-
var
|
|
67
|
+
var Info16 = AgentSchema.pipe(Schema.decodeTo(Schema.toType(AgentSchema), {
|
|
68
68
|
decode: SchemaGetter.transform(normalize),
|
|
69
69
|
encode: SchemaGetter.passthrough({ strict: false })
|
|
70
70
|
})).annotate({ identifier: "AgentConfig" });
|
|
71
71
|
|
|
72
|
-
export {
|
|
72
|
+
export { Info16, exports_agent4 };
|
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node91
|
|
4
|
+
} from "./snapshot-9a2mpknv.js";
|
|
5
5
|
import {
|
|
6
6
|
Service86,
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
7
|
+
node90
|
|
8
|
+
} from "./snapshot-a7hv09h9.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service47,
|
|
11
|
+
node50
|
|
12
|
+
} from "./snapshot-pqm0gw65.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service40,
|
|
15
|
+
node42
|
|
16
|
+
} from "./snapshot-hvvf9qw8.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./snapshot-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
21
|
+
make15
|
|
22
|
+
} from "./snapshot-mtkfycnh.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service38
|
|
26
|
+
} from "./snapshot-c5kjsz6q.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service61,
|
|
29
|
+
node64
|
|
30
|
+
} from "./snapshot-2r0v86d9.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./snapshot-zgbwm5kp.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./snapshot-07xh8nyv.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service37,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
48
|
-
noopLayer: () =>
|
|
46
|
+
layer: () => layer18,
|
|
47
|
+
node: () => node40,
|
|
48
|
+
noopLayer: () => noopLayer2,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service37 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
62
|
+
var layer18 = Layer.effect(Service37, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service61;
|
|
64
|
+
const instances = yield* Service40;
|
|
65
65
|
const bus = yield* Service86;
|
|
66
|
-
const jobs = yield*
|
|
66
|
+
const jobs = yield* Service47;
|
|
67
67
|
const db = (yield* Service87).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -76,14 +76,14 @@ var layer21 = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service38.use((runner) => runner.drain({ sessionID, force, continuation, promotable, stepped })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable, result.stepped),
|
|
83
83
|
Reloaded: (result) => drain(sessionID, result.force, result.continuation, promotable, result.stepped)
|
|
84
84
|
});
|
|
85
85
|
});
|
|
86
|
-
const coordinator = yield*
|
|
86
|
+
const coordinator = yield* make15({
|
|
87
87
|
started: (sessionID) => reportLifecycle(sessionID, bus.publish(SessionEvent2.Execution.Started, { sessionID }, claimOnCommit(sessionID))),
|
|
88
88
|
drain: (sessionID, force, promotable) => drain(sessionID, force, undefined, promotable),
|
|
89
89
|
settled: (sessionID, exit, reason) => reportLifecycle(sessionID, Effect.gen(function* () {
|
|
@@ -104,7 +104,7 @@ var layer21 = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service37.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer21 = Layer.effect(Service60, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
128
|
-
layer:
|
|
129
|
-
deps: [
|
|
126
|
+
var node40 = makeGlobalNode({
|
|
127
|
+
service: Service37,
|
|
128
|
+
layer: layer18,
|
|
129
|
+
deps: [node64, node42, node90, node91, node50]
|
|
130
130
|
});
|
|
131
|
-
var
|
|
131
|
+
var noopLayer2 = Layer.succeed(Service37, Service37.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer3 = Layer.succeed(Service60, Service60.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service37, terminal2, layer18, node40, noopLayer2, exports_execution };
|