@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
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service71
|
|
3
|
+
} from "./snapshot-w68dkr85.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./snapshot-grg4dqxx.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service70
|
|
9
|
+
} from "./snapshot-vpeh2c4h.js";
|
|
10
10
|
import {
|
|
11
11
|
unavailable3
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./snapshot-xt0z8zst.js";
|
|
13
13
|
import {
|
|
14
14
|
File2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service46
|
|
16
|
+
} from "./snapshot-kryfa369.js";
|
|
17
17
|
import {
|
|
18
18
|
__export
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
20
20
|
|
|
21
21
|
// src/config/plugin/instruction.ts
|
|
22
22
|
var exports_instruction = {};
|
|
23
23
|
__export(exports_instruction, {
|
|
24
24
|
ConfigInstructionPlugin: () => exports_instruction,
|
|
25
|
-
Plugin: () =>
|
|
25
|
+
Plugin: () => Plugin42
|
|
26
26
|
});
|
|
27
27
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
28
28
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -31,17 +31,17 @@ import { sameDirectory } from "@opencode/util/path";
|
|
|
31
31
|
import path, { dirname, join } from "path";
|
|
32
32
|
import { Effect, FiberMap, PubSub, Semaphore, Stream } from "effect";
|
|
33
33
|
import { HttpClient, HttpClientRequest } from "effect/http";
|
|
34
|
-
var
|
|
34
|
+
var Plugin42 = define({
|
|
35
35
|
id: "opencode.config.instruction",
|
|
36
36
|
effect: Effect.fn(function* (ctx) {
|
|
37
|
-
const discovery = yield*
|
|
37
|
+
const discovery = yield* Service46;
|
|
38
38
|
yield* Effect.gen(function* () {
|
|
39
|
-
const config = yield*
|
|
39
|
+
const config = yield* Service70;
|
|
40
40
|
const fs = yield* FSUtil.Service;
|
|
41
41
|
const global = yield* Global.Service;
|
|
42
42
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
43
|
-
const location = yield*
|
|
44
|
-
const watcher = yield*
|
|
43
|
+
const location = yield* Service81;
|
|
44
|
+
const watcher = yield* Service71;
|
|
45
45
|
const changes = yield* PubSub.sliding(1);
|
|
46
46
|
const watches = yield* FiberMap.make();
|
|
47
47
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -180,4 +180,4 @@ function isUrl(source) {
|
|
|
180
180
|
return URL.canParse(source) && /^https?:$/.test(new URL(source).protocol);
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
export {
|
|
183
|
+
export { Plugin42, exports_instruction };
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node91
|
|
4
|
+
} from "./snapshot-9a2mpknv.js";
|
|
5
5
|
import {
|
|
6
6
|
makeUnsafe2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-8jztxfpf.js";
|
|
8
8
|
import {
|
|
9
9
|
Service86,
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
node90
|
|
11
|
+
} from "./snapshot-a7hv09h9.js";
|
|
12
12
|
import {
|
|
13
13
|
SessionEvent2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./snapshot-ec1grn59.js";
|
|
15
15
|
import {
|
|
16
16
|
SessionMessageTable2,
|
|
17
17
|
SessionInboxTable2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./snapshot-mb7mbhnz.js";
|
|
19
19
|
import {
|
|
20
20
|
SessionMessage2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./snapshot-gftt206x.js";
|
|
22
22
|
import {
|
|
23
23
|
UserPayload3
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./snapshot-fg9p65nk.js";
|
|
25
25
|
import {
|
|
26
26
|
hydrateInbox2,
|
|
27
27
|
keepInboxRefs2,
|
|
@@ -29,13 +29,13 @@ import {
|
|
|
29
29
|
externalizePayload2,
|
|
30
30
|
recordRefs2,
|
|
31
31
|
releaseMessage2
|
|
32
|
-
} from "./
|
|
32
|
+
} from "./snapshot-225e7873.js";
|
|
33
33
|
import {
|
|
34
34
|
decodeMessageRows2
|
|
35
|
-
} from "./
|
|
35
|
+
} from "./snapshot-01x5qw2q.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/session/inbox.ts
|
|
41
41
|
var exports_inbox = {};
|
|
@@ -43,7 +43,7 @@ __export(exports_inbox, {
|
|
|
43
43
|
Compaction: () => Compaction2,
|
|
44
44
|
CompactionPayload: () => CompactionPayload2,
|
|
45
45
|
Delivery: () => Delivery2,
|
|
46
|
-
Info: () =>
|
|
46
|
+
Info: () => Info9,
|
|
47
47
|
Item: () => Item2,
|
|
48
48
|
LifecycleConflict: () => LifecycleConflict2,
|
|
49
49
|
MediaInfo: () => MediaInfo2,
|
|
@@ -51,7 +51,7 @@ __export(exports_inbox, {
|
|
|
51
51
|
MediaUserPayload: () => MediaUserPayload2,
|
|
52
52
|
Move: () => Move2,
|
|
53
53
|
MovePayload: () => MovePayload2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service39,
|
|
55
55
|
SessionInbox: () => exports_inbox,
|
|
56
56
|
Synthetic: () => Synthetic2,
|
|
57
57
|
SyntheticPayload: () => SyntheticPayload2,
|
|
@@ -59,13 +59,13 @@ __export(exports_inbox, {
|
|
|
59
59
|
UserPayload: () => UserPayload2,
|
|
60
60
|
find: () => find2,
|
|
61
61
|
has: () => has2,
|
|
62
|
-
layer: () =>
|
|
63
|
-
list: () =>
|
|
62
|
+
layer: () => layer19,
|
|
63
|
+
list: () => list3,
|
|
64
64
|
listWithRefs: () => listWithRefs2,
|
|
65
|
-
make: () =>
|
|
65
|
+
make: () => make16,
|
|
66
66
|
moveIDs: () => moveIDs2,
|
|
67
67
|
nextPromotable: () => nextPromotable2,
|
|
68
|
-
node: () =>
|
|
68
|
+
node: () => node41,
|
|
69
69
|
projectAdmitted: () => projectAdmitted2,
|
|
70
70
|
projectCancelled: () => projectCancelled2,
|
|
71
71
|
projectDelivered: () => projectDelivered2,
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
Compaction as Compaction2,
|
|
81
81
|
CompactionPayload as CompactionPayload2,
|
|
82
82
|
Delivery as Delivery2,
|
|
83
|
-
Info as
|
|
83
|
+
Info as Info9,
|
|
84
84
|
Item as Item2,
|
|
85
85
|
MediaInfo as MediaInfo2,
|
|
86
86
|
MediaUser as MediaUser2,
|
|
@@ -184,9 +184,9 @@ var promotedFromMessage = Effect.fn("SessionInbox.promotedFromMessage")(function
|
|
|
184
184
|
});
|
|
185
185
|
});
|
|
186
186
|
|
|
187
|
-
class
|
|
187
|
+
class Service39 extends Context.Service()("@opencode/SessionInbox") {
|
|
188
188
|
}
|
|
189
|
-
var
|
|
189
|
+
var make16 = Effect.fn("SessionInbox.make")(function* () {
|
|
190
190
|
const database = yield* Service87;
|
|
191
191
|
const db = database.db;
|
|
192
192
|
const bus = yield* Service86;
|
|
@@ -206,7 +206,7 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
206
206
|
inboxID: request.id,
|
|
207
207
|
sessionID: request.sessionID,
|
|
208
208
|
item: request.item
|
|
209
|
-
}).pipe(Effect.map((event) =>
|
|
209
|
+
}).pipe(Effect.map((event) => Info9.make({
|
|
210
210
|
id: request.id,
|
|
211
211
|
sessionID: request.sessionID,
|
|
212
212
|
time: { created: DateTime.makeUnsafe(event.created) },
|
|
@@ -226,7 +226,7 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
226
226
|
}
|
|
227
227
|
if (yield* promotedFromMessage(db, input.sessionID, input.id, input.delivery))
|
|
228
228
|
return yield* new LifecycleConflict2({ id: input.id });
|
|
229
|
-
const pending = (yield*
|
|
229
|
+
const pending = (yield* list3(db, input.sessionID)).find((item) => item.type === "compaction");
|
|
230
230
|
if (pending)
|
|
231
231
|
return pending;
|
|
232
232
|
return yield* admit({
|
|
@@ -251,7 +251,7 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
251
251
|
delivery: "queue"
|
|
252
252
|
})));
|
|
253
253
|
return {
|
|
254
|
-
list: (sessionID) =>
|
|
254
|
+
list: (sessionID) => list3(db, sessionID),
|
|
255
255
|
reconcile,
|
|
256
256
|
admit,
|
|
257
257
|
admitCompaction,
|
|
@@ -260,8 +260,8 @@ var make17 = Effect.fn("SessionInbox.make")(function* () {
|
|
|
260
260
|
queue
|
|
261
261
|
};
|
|
262
262
|
});
|
|
263
|
-
var
|
|
264
|
-
var
|
|
263
|
+
var layer19 = Layer.effect(Service39, make16());
|
|
264
|
+
var node41 = makeGlobalNode({ service: Service39, layer: layer19, deps: [node91, node90] });
|
|
265
265
|
var projectAdmitted2 = Effect.fn("SessionInbox.projectAdmitted")(function* (db, request) {
|
|
266
266
|
const message = yield* db.select({ id: SessionMessageTable2.id }).from(SessionMessageTable2).where(eq(SessionMessageTable2.id, request.id)).get().pipe(Effect.orDie);
|
|
267
267
|
if (message !== undefined)
|
|
@@ -310,7 +310,7 @@ var projectDeliveryChanged2 = Effect.fn("SessionInbox.projectDeliveryChanged")((
|
|
|
310
310
|
to: input.delivery
|
|
311
311
|
}));
|
|
312
312
|
var listRows = (db, sessionID) => db.select().from(SessionInboxTable2).where(eq(SessionInboxTable2.session_id, sessionID)).orderBy(asc(SessionInboxTable2.enqueued_seq)).all().pipe(Effect.orDie);
|
|
313
|
-
var
|
|
313
|
+
var list3 = Effect.fn("SessionInbox.list")(function* (db, sessionID) {
|
|
314
314
|
return (yield* hydrateInbox2(db, yield* listRows(db, sessionID))).map(fromRow);
|
|
315
315
|
});
|
|
316
316
|
var listWithRefs2 = Effect.fn("SessionInbox.listWithRefs")(function* (db, sessionID) {
|
|
@@ -385,4 +385,4 @@ var pendingSteers = (db, sessionID) => db.select().from(SessionInboxTable2).wher
|
|
|
385
385
|
return rows;
|
|
386
386
|
}));
|
|
387
387
|
|
|
388
|
-
export { Compaction2, CompactionPayload2, Delivery2,
|
|
388
|
+
export { Compaction2, CompactionPayload2, Delivery2, Info9, Item2, MediaInfo2, MediaUser2, MediaUserPayload2, Move2, MovePayload2, Synthetic2, SyntheticPayload2, User2, UserPayload2, serialized2, LifecycleConflict2, find2, Service39, make16, layer19, node41, projectAdmitted2, projectDelivered2, projectCancelled2, projectDeliveryChanged2, list3, listWithRefs2, moveIDs2, nextPromotable2, has2, promote2, exports_inbox };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Key3,
|
|
3
3
|
removed2,
|
|
4
|
-
|
|
4
|
+
make20,
|
|
5
5
|
diffByKey2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./snapshot-xt0z8zst.js";
|
|
7
7
|
import {
|
|
8
8
|
Summary2,
|
|
9
9
|
summarize3,
|
|
10
10
|
namespaceLine2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./snapshot-fffv3p7h.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/codemode/instructions.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
19
|
-
CodeModeInstructions: () =>
|
|
20
|
-
make: () =>
|
|
21
|
-
render: () =>
|
|
17
|
+
var exports_instructions5 = {};
|
|
18
|
+
__export(exports_instructions5, {
|
|
19
|
+
CodeModeInstructions: () => exports_instructions5,
|
|
20
|
+
make: () => make14,
|
|
21
|
+
render: () => render3,
|
|
22
22
|
update: () => update3
|
|
23
23
|
});
|
|
24
24
|
import { searchSignature, toolExpression } from "@opencode/codemode";
|
|
@@ -32,7 +32,7 @@ ${hasMoreTools ? `The catalog is partial. Before calling a tool that is not list
|
|
|
32
32
|
- ${searchSignature}` : "The catalog is complete. Do not guess tool names."}
|
|
33
33
|
|
|
34
34
|
## Code Mode tools (call only inside \`execute\`)`;
|
|
35
|
-
function
|
|
35
|
+
function render3(catalog) {
|
|
36
36
|
if (catalog.total === 0)
|
|
37
37
|
return "No Code Mode tools are currently available. Later Code Mode catalog updates may add or remove tools. Do not call `execute` unless there is at least one available Code Mode tool.";
|
|
38
38
|
const tools = catalog.namespaces.flatMap((namespace) => {
|
|
@@ -46,7 +46,7 @@ ${tools.join(`
|
|
|
46
46
|
function update3(previous, current) {
|
|
47
47
|
const replacement = `The Code Mode tool catalog has changed. This catalog supersedes the previous Code Mode tool catalog.
|
|
48
48
|
|
|
49
|
-
${
|
|
49
|
+
${render3(current)}`;
|
|
50
50
|
if (current.total === 0)
|
|
51
51
|
return replacement;
|
|
52
52
|
const previousComplete = previous.shown === previous.total;
|
|
@@ -111,18 +111,18 @@ ${render2(current)}`;
|
|
|
111
111
|
}
|
|
112
112
|
var key = Key3.make("core/codemode");
|
|
113
113
|
var codec = Schema.toCodecJson(Summary2);
|
|
114
|
-
var
|
|
114
|
+
var make14 = (inventory) => {
|
|
115
115
|
const catalog = inventory === undefined ? removed2 : summarize3(inventory);
|
|
116
|
-
return
|
|
116
|
+
return make20({
|
|
117
117
|
key,
|
|
118
118
|
codec,
|
|
119
119
|
read: Effect.succeed(catalog),
|
|
120
120
|
render: {
|
|
121
|
-
initial:
|
|
121
|
+
initial: render3,
|
|
122
122
|
changed: update3,
|
|
123
123
|
removed: () => "Code Mode tools are no longer available. Do not use any previously listed Code Mode tools."
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
};
|
|
127
127
|
|
|
128
|
-
export {
|
|
128
|
+
export { render3, update3, make14, exports_instructions5 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/subagent-completion.ts
|
|
6
6
|
var exports_subagent_completion = {};
|
|
@@ -8,11 +8,11 @@ __export(exports_subagent_completion, {
|
|
|
8
8
|
NO_TEXT: () => NO_TEXT2,
|
|
9
9
|
SubagentCompletion: () => exports_subagent_completion,
|
|
10
10
|
deliver: () => deliver2,
|
|
11
|
-
text: () =>
|
|
11
|
+
text: () => text3
|
|
12
12
|
});
|
|
13
13
|
import { Effect } from "effect";
|
|
14
14
|
var NO_TEXT2 = "Subagent completed without a text response.";
|
|
15
|
-
function
|
|
15
|
+
function text3(message) {
|
|
16
16
|
if (message?.type !== "assistant")
|
|
17
17
|
return NO_TEXT2;
|
|
18
18
|
return message.content.filter((part) => part.type === "text").map((part) => part.text).filter((text) => text.length > 0).join(`
|
|
@@ -38,4 +38,4 @@ ${text}
|
|
|
38
38
|
yield* jobs.completeBackground(input.notificationID);
|
|
39
39
|
});
|
|
40
40
|
|
|
41
|
-
export { NO_TEXT2,
|
|
41
|
+
export { NO_TEXT2, text3, deliver2, exports_subagent_completion };
|
|
@@ -1,66 +1,66 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-xb87w9ea.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service59
|
|
6
|
+
} from "./snapshot-xv2swx2p.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
8
|
+
ID10,
|
|
9
9
|
Result2,
|
|
10
10
|
ProviderRequiredError2,
|
|
11
11
|
DisabledError3,
|
|
12
12
|
RequestError2,
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service66
|
|
14
|
+
} from "./snapshot-8ktw2vv7.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/tool/plugin/websearch.ts
|
|
20
|
-
var
|
|
21
|
-
__export(
|
|
22
|
-
Input: () =>
|
|
20
|
+
var exports_websearch = {};
|
|
21
|
+
__export(exports_websearch, {
|
|
22
|
+
Input: () => Input13,
|
|
23
23
|
NO_RESULTS: () => NO_RESULTS2,
|
|
24
|
-
Plugin: () =>
|
|
25
|
-
WebSearchTool: () =>
|
|
26
|
-
description: () =>
|
|
27
|
-
name: () =>
|
|
24
|
+
Plugin: () => Plugin15,
|
|
25
|
+
WebSearchTool: () => exports_websearch,
|
|
26
|
+
description: () => description6,
|
|
27
|
+
name: () => name13
|
|
28
28
|
});
|
|
29
29
|
import { ToolFailure } from "@opencode/ai/effect";
|
|
30
30
|
import { Effect, Schema, Semaphore } from "effect";
|
|
31
31
|
import { HttpClientError } from "effect/http";
|
|
32
|
-
var
|
|
32
|
+
var name13 = "websearch";
|
|
33
33
|
var NO_RESULTS2 = "No search results found. Please try a different query.";
|
|
34
34
|
var providerSelectionLock = Semaphore.makeUnsafe(1);
|
|
35
35
|
var httpErrors = new Map([
|
|
36
36
|
[429, "Web search rate limited (HTTP 429)"],
|
|
37
37
|
[401, "Web search authentication failed (HTTP 401)"]
|
|
38
38
|
]);
|
|
39
|
-
var
|
|
39
|
+
var description6 = `Search the web using the user's selected search integration. Use this for current information beyond knowledge cutoff.
|
|
40
40
|
|
|
41
41
|
The current year is ${new Date().getFullYear()}. Use this year when searching for recent information or current events.`;
|
|
42
|
-
var
|
|
42
|
+
var Input13 = Schema.Struct({
|
|
43
43
|
query: Schema.String.annotate({ description: "Websearch query" })
|
|
44
44
|
});
|
|
45
45
|
var Output = Schema.Struct({
|
|
46
|
-
provider:
|
|
46
|
+
provider: ID10,
|
|
47
47
|
results: Schema.Array(Result2)
|
|
48
48
|
});
|
|
49
|
-
var
|
|
49
|
+
var Plugin15 = {
|
|
50
50
|
id: "opencode.tool.websearch",
|
|
51
51
|
effect: Effect.fn("WebSearchTool.Plugin")(function* (ctx) {
|
|
52
|
-
const permission = yield*
|
|
52
|
+
const permission = yield* Service59;
|
|
53
53
|
const forms = yield* Service79;
|
|
54
|
-
const websearch = yield*
|
|
54
|
+
const websearch = yield* Service66;
|
|
55
55
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
56
|
-
name:
|
|
56
|
+
name: name13,
|
|
57
57
|
options: { codemode: false },
|
|
58
|
-
description:
|
|
59
|
-
input:
|
|
58
|
+
description: description6,
|
|
59
|
+
input: Input13,
|
|
60
60
|
output: Output,
|
|
61
61
|
execute: (input, context) => Effect.gen(function* () {
|
|
62
62
|
yield* permission.assert({
|
|
63
|
-
action:
|
|
63
|
+
action: name13,
|
|
64
64
|
resources: [input.query],
|
|
65
65
|
save: ["*"],
|
|
66
66
|
metadata: input,
|
|
@@ -176,7 +176,7 @@ ${result.content}` : ""}`;
|
|
|
176
176
|
const hook = (event) => Effect.gen(function* () {
|
|
177
177
|
const disabled = yield* websearch.default().pipe(Effect.as(false), Effect.catchTag("WebSearch.Disabled", () => Effect.succeed(true)));
|
|
178
178
|
if (disabled)
|
|
179
|
-
delete event.tools[
|
|
179
|
+
delete event.tools[name13];
|
|
180
180
|
});
|
|
181
181
|
yield* ctx.session.hook("context", hook);
|
|
182
182
|
yield* ctx.session.hook("compaction", hook);
|
|
@@ -184,4 +184,4 @@ ${result.content}` : ""}`;
|
|
|
184
184
|
})
|
|
185
185
|
};
|
|
186
186
|
|
|
187
|
-
export {
|
|
187
|
+
export { name13, NO_RESULTS2, description6, Input13, Plugin15, exports_websearch };
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./snapshot-a7hv09h9.js";
|
|
4
4
|
import {
|
|
5
5
|
Event19,
|
|
6
6
|
Service80
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-80dydmy6.js";
|
|
8
8
|
import {
|
|
9
9
|
batch2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./snapshot-204s3925.js";
|
|
11
11
|
import {
|
|
12
12
|
suppliers2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./snapshot-r2s7w9p5.js";
|
|
14
14
|
import {
|
|
15
15
|
match3
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./snapshot-1aqsckx4.js";
|
|
17
17
|
import {
|
|
18
18
|
statements2,
|
|
19
19
|
decision2,
|
|
20
20
|
integrationResource2,
|
|
21
21
|
accounts2
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./snapshot-sqrwb7ek.js";
|
|
23
23
|
import {
|
|
24
|
-
|
|
25
|
-
} from "./
|
|
24
|
+
Service70
|
|
25
|
+
} from "./snapshot-vpeh2c4h.js";
|
|
26
26
|
import {
|
|
27
|
-
|
|
28
|
-
} from "./
|
|
27
|
+
Service66
|
|
28
|
+
} from "./snapshot-8ktw2vv7.js";
|
|
29
29
|
import {
|
|
30
30
|
observe2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./snapshot-hpg1pkwy.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/plugin/policy.ts
|
|
37
37
|
var exports_policy = {};
|
|
38
38
|
__export(exports_policy, {
|
|
39
39
|
ConfigPolicyPlugin: () => exports_policy,
|
|
40
|
-
Plugin: () =>
|
|
40
|
+
Plugin: () => Plugin41
|
|
41
41
|
});
|
|
42
42
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
43
43
|
import { Effect, Stream } from "effect";
|
|
44
|
-
var
|
|
44
|
+
var Plugin41 = define({
|
|
45
45
|
id: "opencode.config.policy",
|
|
46
46
|
effect: Effect.fn(function* (ctx) {
|
|
47
|
-
const config = yield*
|
|
47
|
+
const config = yield* Service70;
|
|
48
48
|
const credentials = yield* Service80;
|
|
49
|
-
const websearch = yield*
|
|
49
|
+
const websearch = yield* Service66;
|
|
50
50
|
const bus = yield* Service86;
|
|
51
51
|
const reload = batch2(Effect.all([ctx.provider.reload(), ctx.mcp.reload(), ctx.skill.reload(), websearch.reload()], {
|
|
52
52
|
discard: true
|
|
@@ -110,4 +110,4 @@ var Plugin16 = define({
|
|
|
110
110
|
})
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
export {
|
|
113
|
+
export { Plugin41, exports_policy };
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service87,
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
3
|
+
node91
|
|
4
|
+
} from "./snapshot-9a2mpknv.js";
|
|
5
5
|
import {
|
|
6
6
|
PermissionTable2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./snapshot-1ep2p91f.js";
|
|
8
8
|
import {
|
|
9
9
|
__export
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./snapshot-9rqn6x4v.js";
|
|
11
11
|
|
|
12
12
|
// src/permission/saved.ts
|
|
13
13
|
var exports_saved = {};
|
|
14
14
|
__export(exports_saved, {
|
|
15
15
|
ConflictError: () => ConflictError2,
|
|
16
|
-
ID: () =>
|
|
17
|
-
Info: () =>
|
|
18
|
-
NotFoundError: () =>
|
|
16
|
+
ID: () => ID7,
|
|
17
|
+
Info: () => Info14,
|
|
18
|
+
NotFoundError: () => NotFoundError9,
|
|
19
19
|
PermissionSaved: () => exports_saved,
|
|
20
|
-
Service: () =>
|
|
21
|
-
node: () =>
|
|
20
|
+
Service: () => Service60,
|
|
21
|
+
node: () => node63
|
|
22
22
|
});
|
|
23
23
|
import { eq } from "drizzle-orm";
|
|
24
24
|
import { Cause, Context, DateTime, Effect, Layer, Schema } from "effect";
|
|
25
25
|
import { isSqlError } from "effect/sql/SqlError";
|
|
26
26
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
27
27
|
import { PermissionSaved } from "@opencode/schema/permission-saved";
|
|
28
|
-
var
|
|
29
|
-
var
|
|
28
|
+
var ID7 = PermissionSaved.ID;
|
|
29
|
+
var Info14 = PermissionSaved.Info;
|
|
30
30
|
|
|
31
|
-
class
|
|
32
|
-
id:
|
|
31
|
+
class NotFoundError9 extends Schema.TaggedError()("PermissionSaved.NotFoundError", {
|
|
32
|
+
id: ID7
|
|
33
33
|
}) {
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
class ConflictError2 extends Schema.TaggedError()("PermissionSaved.ConflictError", {
|
|
37
|
-
id:
|
|
37
|
+
id: ID7,
|
|
38
38
|
action: Schema.String,
|
|
39
39
|
resource: Schema.String
|
|
40
40
|
}) {
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
class
|
|
43
|
+
class Service60 extends Context.Service()("@opencode/PermissionSaved") {
|
|
44
44
|
}
|
|
45
|
-
var layer = Layer.effect(
|
|
45
|
+
var layer = Layer.effect(Service60, Effect.gen(function* () {
|
|
46
46
|
const db = (yield* Service87).db;
|
|
47
47
|
const list = Effect.fnUntraced(function* (input) {
|
|
48
48
|
const rows = yield* db.select().from(PermissionTable2).where(input?.projectID ? eq(PermissionTable2.project_id, input.projectID) : undefined).all().pipe(Effect.orDie);
|
|
@@ -52,7 +52,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
52
52
|
if (!input.resources.length)
|
|
53
53
|
return;
|
|
54
54
|
yield* db.insert(PermissionTable2).values(input.resources.map((resource) => ({
|
|
55
|
-
id:
|
|
55
|
+
id: ID7.create(),
|
|
56
56
|
project_id: input.projectID,
|
|
57
57
|
action: input.action,
|
|
58
58
|
resource
|
|
@@ -61,18 +61,18 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
61
61
|
const update = Effect.fn("PermissionSaved.update")(function* (input) {
|
|
62
62
|
const current = yield* db.select().from(PermissionTable2).where(eq(PermissionTable2.id, input.id)).get().pipe(Effect.orDie);
|
|
63
63
|
if (!current)
|
|
64
|
-
return yield* new
|
|
64
|
+
return yield* new NotFoundError9({ id: input.id });
|
|
65
65
|
const action = input.action ?? current.action;
|
|
66
66
|
const resource = input.resource ?? current.resource;
|
|
67
67
|
const updated = yield* db.update(PermissionTable2).set({ action, resource }).where(eq(PermissionTable2.id, input.id)).returning().get().pipe(Effect.catchIf(isUniqueViolation, () => new ConflictError2({ id: input.id, action, resource })), Effect.catchTag("EffectDrizzleQueryError", (error) => Effect.die(error)));
|
|
68
68
|
if (!updated)
|
|
69
|
-
return yield* new
|
|
69
|
+
return yield* new NotFoundError9({ id: input.id });
|
|
70
70
|
return info(updated);
|
|
71
71
|
});
|
|
72
72
|
const remove = Effect.fn("PermissionSaved.remove")(function* (id) {
|
|
73
73
|
yield* db.delete(PermissionTable2).where(eq(PermissionTable2.id, id)).run().pipe(Effect.orDie);
|
|
74
74
|
});
|
|
75
|
-
return
|
|
75
|
+
return Service60.of({ list, add, update, remove });
|
|
76
76
|
}));
|
|
77
77
|
var isUniqueViolation = (error) => {
|
|
78
78
|
const sql = Cause.isCause(error.cause) ? Cause.squash(error.cause) : error.cause;
|
|
@@ -90,6 +90,6 @@ var info = (row) => ({
|
|
|
90
90
|
updated: DateTime.makeUnsafe(row.time_updated)
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
|
-
var
|
|
93
|
+
var node63 = makeGlobalNode({ service: Service60, layer, deps: [node91] });
|
|
94
94
|
|
|
95
|
-
export {
|
|
95
|
+
export { ID7, Info14, NotFoundError9, ConflictError2, Service60, node63, exports_saved };
|