@opencode/core 0.0.0-dev-21101 → 0.0.0-dev-21102
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 +85 -85
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +96 -96
- package/dist/app.js +9 -9
- package/dist/bus.js +71 -71
- package/dist/chunks/{snapshot-hwfsh7vp.js → file-mutation-0a45r66e.js} +10 -10
- package/dist/chunks/{snapshot-s9hnc77e.js → file-mutation-0bn0sq9n.js} +13 -13
- package/dist/chunks/{snapshot-86tsj011.js → file-mutation-0kqmzpgj.js} +4 -4
- package/dist/chunks/{snapshot-0vbcp93d.js → file-mutation-0vbcp93d.js} +2 -2
- package/dist/chunks/{snapshot-d3g565tf.js → file-mutation-0vhb79zx.js} +45 -45
- package/dist/chunks/{snapshot-r6dd846h.js → file-mutation-10bapksq.js} +45 -45
- package/dist/chunks/file-mutation-1e0042jk.js +513 -0
- package/dist/chunks/{snapshot-sz15zhhw.js → file-mutation-1j6m29mr.js} +9 -9
- package/dist/chunks/{snapshot-es4zr9pq.js → file-mutation-1ja1wxmc.js} +8 -8
- package/dist/chunks/{snapshot-x6yn31hc.js → file-mutation-1nbyw85c.js} +19 -19
- package/dist/chunks/{snapshot-w35dh219.js → file-mutation-1pw9daj1.js} +11 -11
- package/dist/chunks/{snapshot-z6a8t7r8.js → file-mutation-1vq8waa3.js} +27 -27
- package/dist/chunks/{snapshot-70w5npj6.js → file-mutation-24ashckt.js} +35 -35
- package/dist/chunks/{snapshot-vbwdk8d9.js → file-mutation-2ee1qjw3.js} +16 -16
- package/dist/chunks/{snapshot-cwa6csj7.js → file-mutation-2mq1h16s.js} +9 -9
- package/dist/chunks/{snapshot-m6et89k9.js → file-mutation-2njd48f3.js} +4 -4
- package/dist/chunks/{snapshot-0spc84rr.js → file-mutation-31cd2ng7.js} +5 -5
- package/dist/chunks/{snapshot-h7s7r6s9.js → file-mutation-31xfzrxg.js} +5 -5
- package/dist/chunks/{snapshot-bkfykbje.js → file-mutation-32qfxbms.js} +10 -10
- package/dist/chunks/{snapshot-d9vy8dvc.js → file-mutation-34pqwryj.js} +35 -35
- package/dist/chunks/{snapshot-ngpf18tw.js → file-mutation-34yg83yr.js} +15 -15
- package/dist/chunks/{snapshot-fez9dr5g.js → file-mutation-395y8vmn.js} +29 -29
- package/dist/chunks/{snapshot-3fc6dm20.js → file-mutation-3fc6dm20.js} +1 -1
- package/dist/chunks/{snapshot-c5p1j3te.js → file-mutation-3h7vgc1c.js} +24 -24
- package/dist/chunks/{snapshot-3hepkmqq.js → file-mutation-3hepkmqq.js} +1 -1
- package/dist/chunks/{snapshot-3hwn7j4h.js → file-mutation-3hwn7j4h.js} +2 -2
- package/dist/chunks/{snapshot-9t38rtv2.js → file-mutation-3nn61x4m.js} +18 -18
- package/dist/chunks/{snapshot-3smtnn6g.js → file-mutation-3smtnn6g.js} +1 -1
- package/dist/chunks/{snapshot-3tvqynh2.js → file-mutation-3tvqynh2.js} +1 -1
- package/dist/chunks/{snapshot-s5crsm6g.js → file-mutation-3xmz25ae.js} +6 -6
- package/dist/chunks/{snapshot-3zsf4n22.js → file-mutation-3zsf4n22.js} +1 -1
- package/dist/chunks/{snapshot-7j2qha59.js → file-mutation-3zy697b6.js} +8 -8
- package/dist/chunks/{snapshot-a4mbaqkz.js → file-mutation-3zzm0etj.js} +24 -24
- package/dist/chunks/{snapshot-677sd819.js → file-mutation-44gm7dpy.js} +14 -14
- package/dist/chunks/file-mutation-49n22trf.js +257 -0
- package/dist/chunks/{snapshot-s9jjc90k.js → file-mutation-4byykzwt.js} +10 -10
- package/dist/chunks/{snapshot-eh6ej367.js → file-mutation-4ekscj25.js} +5 -5
- package/dist/chunks/{snapshot-stznh4mf.js → file-mutation-4p0ag926.js} +9 -9
- package/dist/chunks/{snapshot-fk8sz9va.js → file-mutation-4pxfaks0.js} +4 -4
- package/dist/chunks/{snapshot-0j2x9jqg.js → file-mutation-4x8f5qrc.js} +64 -64
- package/dist/chunks/{snapshot-f1gkxkqm.js → file-mutation-4y2jths2.js} +8 -8
- package/dist/chunks/{snapshot-rjq60bk6.js → file-mutation-523zf4ny.js} +8 -8
- package/dist/chunks/{snapshot-agvpr9a5.js → file-mutation-53rh8r92.js} +15 -15
- package/dist/chunks/{snapshot-54ma36ye.js → file-mutation-54ma36ye.js} +1 -1
- package/dist/chunks/{snapshot-5m9w47nd.js → file-mutation-5m9w47nd.js} +1 -1
- package/dist/chunks/{snapshot-vjjaysxc.js → file-mutation-5pyjqqve.js} +2 -2
- package/dist/chunks/{snapshot-cdxmksqt.js → file-mutation-5vma4t00.js} +11 -11
- package/dist/chunks/{snapshot-g37js5c5.js → file-mutation-5xeyj92j.js} +5 -5
- package/dist/chunks/{snapshot-bah8271q.js → file-mutation-6axq4ad7.js} +13 -13
- package/dist/chunks/{snapshot-5jm3j4ds.js → file-mutation-6b5qcyht.js} +11 -11
- package/dist/chunks/{snapshot-9xea56yk.js → file-mutation-6et16byz.js} +4 -4
- package/dist/chunks/{snapshot-de1qm86n.js → file-mutation-6gke9jm0.js} +29 -29
- package/dist/chunks/{snapshot-s7j41gah.js → file-mutation-6n4qjbg5.js} +26 -26
- package/dist/chunks/{snapshot-p5ryf8ss.js → file-mutation-6n6k1agq.js} +32 -32
- package/dist/chunks/{snapshot-w92k2e0p.js → file-mutation-6pc27hjz.js} +4 -4
- package/dist/chunks/{snapshot-z94wva46.js → file-mutation-6qbfyeq4.js} +5 -5
- package/dist/chunks/{snapshot-5dkc9xpe.js → file-mutation-6qr2hpa3.js} +33 -33
- package/dist/chunks/{snapshot-nw91k3fh.js → file-mutation-6rm5yzkt.js} +4 -4
- package/dist/chunks/{snapshot-6xb47vfp.js → file-mutation-6xb47vfp.js} +1 -1
- package/dist/chunks/{snapshot-775gj3j1.js → file-mutation-775gj3j1.js} +2 -2
- package/dist/chunks/{snapshot-yx44qtr7.js → file-mutation-78mmz05e.js} +3 -3
- package/dist/chunks/{snapshot-0r5d9jf5.js → file-mutation-7apm8bw6.js} +18 -18
- package/dist/chunks/{snapshot-7bmhse3q.js → file-mutation-7bmhse3q.js} +1 -1
- package/dist/chunks/{snapshot-yjmz8cqt.js → file-mutation-7f067m2e.js} +4 -4
- package/dist/chunks/{snapshot-nbt9p58f.js → file-mutation-7gzvat6z.js} +18 -18
- package/dist/chunks/{snapshot-bjtjpd2c.js → file-mutation-7x9m82rv.js} +12 -12
- package/dist/chunks/{snapshot-y2qdv1vz.js → file-mutation-82s76q1y.js} +4 -4
- package/dist/chunks/{snapshot-a68c8325.js → file-mutation-831szrnr.js} +47 -47
- package/dist/chunks/{snapshot-hps22v0m.js → file-mutation-83nvk7gf.js} +11 -11
- package/dist/chunks/{snapshot-84txncab.js → file-mutation-84txncab.js} +1 -1
- package/dist/chunks/{snapshot-x2nk8b67.js → file-mutation-86hr6tyx.js} +14 -14
- package/dist/chunks/{snapshot-7zkbhs7g.js → file-mutation-86qjnnqk.js} +11 -11
- package/dist/chunks/{snapshot-492qvdt0.js → file-mutation-8kpxa52r.js} +191 -191
- package/dist/chunks/{snapshot-8m6m0r52.js → file-mutation-8m6m0r52.js} +1 -1
- package/dist/chunks/{snapshot-6r9xkm49.js → file-mutation-8nhf552q.js} +15 -15
- package/dist/chunks/{snapshot-4x3rb0w8.js → file-mutation-8xdknktr.js} +8 -8
- package/dist/chunks/{snapshot-j09zfasm.js → file-mutation-91qna3x0.js} +3 -3
- package/dist/chunks/{snapshot-r6hgcfqe.js → file-mutation-928exejz.js} +13 -13
- package/dist/chunks/{snapshot-0ffsdm6v.js → file-mutation-9az4rgkb.js} +22 -22
- package/dist/chunks/{snapshot-a8q86g5b.js → file-mutation-9cd83t7f.js} +20 -20
- package/dist/chunks/{snapshot-5z8jdzjf.js → file-mutation-9qtbwzwj.js} +4 -4
- package/dist/chunks/{snapshot-0x5he72x.js → file-mutation-9tk0xbhp.js} +21 -21
- package/dist/chunks/{snapshot-jp89ygg8.js → file-mutation-a0ngmh7v.js} +42 -42
- package/dist/chunks/{snapshot-fh1dahme.js → file-mutation-a5cb3rxh.js} +4 -4
- package/dist/chunks/{snapshot-w05gqv9f.js → file-mutation-ab0v7xqg.js} +11 -11
- package/dist/chunks/{snapshot-bv99bepe.js → file-mutation-ab17c7dx.js} +10 -10
- package/dist/chunks/{snapshot-x661k3y3.js → file-mutation-addxnjmp.js} +4 -4
- package/dist/chunks/{snapshot-8xdjgfjg.js → file-mutation-ag0c998m.js} +24 -24
- package/dist/chunks/{snapshot-p40mqjmd.js → file-mutation-ahjtwsk1.js} +14 -14
- package/dist/chunks/{snapshot-ehbas0a7.js → file-mutation-atcakhwd.js} +17 -17
- package/dist/chunks/{snapshot-50yj0c0z.js → file-mutation-atmskjxw.js} +19 -19
- package/dist/chunks/{snapshot-138hj3a7.js → file-mutation-atrg28jh.js} +32 -32
- package/dist/chunks/{snapshot-y99xh2az.js → file-mutation-av34pvd4.js} +16 -16
- package/dist/chunks/{snapshot-8zvh60rm.js → file-mutation-b81ahfje.js} +26 -26
- package/dist/chunks/{snapshot-8w65540a.js → file-mutation-bbsgqxz3.js} +5 -5
- package/dist/chunks/{snapshot-fm2hmmny.js → file-mutation-bbzjnv7y.js} +43 -43
- package/dist/chunks/{snapshot-5nnetc6k.js → file-mutation-bddt2pqj.js} +16 -16
- package/dist/chunks/{snapshot-43hb6bsb.js → file-mutation-bdwftekd.js} +24 -24
- package/dist/chunks/{snapshot-fqtx8avk.js → file-mutation-bh35h2a4.js} +29 -29
- package/dist/chunks/{snapshot-nq4gqfza.js → file-mutation-bhja2czc.js} +38 -38
- package/dist/chunks/{snapshot-8q3vp9r4.js → file-mutation-bjzecbrs.js} +5 -5
- package/dist/chunks/{snapshot-2s0t6bcq.js → file-mutation-bwtsbp89.js} +16 -16
- package/dist/chunks/{snapshot-c1fqxshp.js → file-mutation-c1fqxshp.js} +3 -3
- package/dist/chunks/{snapshot-zhf76q57.js → file-mutation-cba5y8md.js} +3 -3
- package/dist/chunks/{snapshot-zqmntxqq.js → file-mutation-ckc5xesv.js} +53 -53
- package/dist/chunks/{snapshot-v0njwss7.js → file-mutation-cng1644r.js} +17 -17
- package/dist/chunks/{snapshot-mka3dhwy.js → file-mutation-cqbnrm9h.js} +28 -28
- package/dist/chunks/{snapshot-6g3a9wd5.js → file-mutation-cry3q34q.js} +20 -20
- package/dist/chunks/{snapshot-37xj7nnb.js → file-mutation-crygnby0.js} +3 -3
- package/dist/chunks/{snapshot-vw7dfq1f.js → file-mutation-cyz4rac1.js} +17 -17
- package/dist/chunks/{snapshot-f3418nnd.js → file-mutation-cz1vwcws.js} +2 -2
- package/dist/chunks/{snapshot-7ec32wzs.js → file-mutation-dhww0s6x.js} +1 -1
- package/dist/chunks/{snapshot-3adf9fpa.js → file-mutation-dpdqynsp.js} +25 -25
- package/dist/chunks/{snapshot-y71avatq.js → file-mutation-dpkg50ah.js} +4 -4
- package/dist/chunks/{snapshot-dqxsqydv.js → file-mutation-dqxsqydv.js} +1 -1
- package/dist/chunks/{snapshot-57b9ws8p.js → file-mutation-drwq78ky.js} +5 -5
- package/dist/chunks/{snapshot-6p4sgjp5.js → file-mutation-dt4y2tq7.js} +24 -24
- package/dist/chunks/{snapshot-vh0q2jn2.js → file-mutation-e236apxg.js} +6 -6
- package/dist/chunks/{snapshot-5qd3pb7m.js → file-mutation-e3qxr5gk.js} +2 -2
- package/dist/chunks/{snapshot-86mh7r7f.js → file-mutation-e3xy4e71.js} +8 -8
- package/dist/chunks/{snapshot-7m79y2cx.js → file-mutation-e7a0tnjd.js} +9 -9
- package/dist/chunks/{snapshot-sxcaecc0.js → file-mutation-e80seqcp.js} +3 -3
- package/dist/chunks/{snapshot-yc2xrc7y.js → file-mutation-eac7ec6d.js} +6 -6
- package/dist/chunks/{snapshot-kxfmvths.js → file-mutation-ed01axam.js} +6 -6
- package/dist/chunks/{snapshot-eej6y6fw.js → file-mutation-eej6y6fw.js} +2 -2
- package/dist/chunks/{snapshot-ef5x83kb.js → file-mutation-ef5x83kb.js} +1 -1
- package/dist/chunks/{snapshot-gbt4bp6d.js → file-mutation-egyn2h7c.js} +7 -7
- package/dist/chunks/{snapshot-jv2yxf29.js → file-mutation-emew9pj0.js} +16 -16
- package/dist/chunks/{snapshot-671nv209.js → file-mutation-es633c8d.js} +20 -20
- package/dist/chunks/{snapshot-vrxrfzbj.js → file-mutation-ettnqe8w.js} +7 -7
- package/dist/chunks/{snapshot-q9nt1xs6.js → file-mutation-f8g1y2jp.js} +19 -19
- package/dist/chunks/{snapshot-3251mqsy.js → file-mutation-f9twm2pk.js} +25 -25
- package/dist/chunks/{snapshot-2k8khapm.js → file-mutation-fcrkznn8.js} +5 -5
- package/dist/chunks/{snapshot-zy88dcwr.js → file-mutation-fg22vpm1.js} +20 -20
- package/dist/chunks/{snapshot-73kdj4zj.js → file-mutation-fqtvmpfq.js} +8 -8
- package/dist/chunks/{snapshot-32bf673e.js → file-mutation-fssat8nd.js} +14 -14
- package/dist/chunks/{snapshot-gd4qta3r.js → file-mutation-gd4qta3r.js} +1 -1
- package/dist/chunks/{snapshot-82cbhrxf.js → file-mutation-gjvt2sw1.js} +25 -25
- package/dist/chunks/{snapshot-zzg669yh.js → file-mutation-gv0fvrxd.js} +14 -14
- package/dist/chunks/{snapshot-mar0b6q5.js → file-mutation-h2m7wh0c.js} +11 -11
- package/dist/chunks/{snapshot-h6vf3j39.js → file-mutation-h6vf3j39.js} +1 -1
- package/dist/chunks/{snapshot-n1n192bv.js → file-mutation-h9wp8z5w.js} +4 -4
- package/dist/chunks/{snapshot-9m9j9h8n.js → file-mutation-hgpde3vb.js} +20 -20
- package/dist/chunks/{snapshot-hgz4x7wa.js → file-mutation-hgz4x7wa.js} +1 -1
- package/dist/chunks/{snapshot-1afbgrk4.js → file-mutation-hvb11wac.js} +5 -5
- package/dist/chunks/{snapshot-6fatt4mk.js → file-mutation-j58c5xyq.js} +9 -9
- package/dist/chunks/{snapshot-s6s4bjx5.js → file-mutation-jc9d9mw1.js} +13 -13
- package/dist/chunks/{snapshot-7e4w02fq.js → file-mutation-jfnyz2cb.js} +18 -18
- package/dist/chunks/{snapshot-rrzbkqn0.js → file-mutation-jpqkz8s9.js} +50 -50
- package/dist/chunks/file-mutation-jqh9b0xq.js +18 -0
- package/dist/chunks/{snapshot-06x8he3q.js → file-mutation-jvf3yq6v.js} +4 -4
- package/dist/chunks/{snapshot-epdqhck3.js → file-mutation-jxwk72h5.js} +5 -5
- package/dist/chunks/{snapshot-ygs4p11j.js → file-mutation-k9rqwrkg.js} +11 -11
- package/dist/chunks/{snapshot-my865665.js → file-mutation-kecerxq6.js} +5 -5
- package/dist/chunks/{snapshot-1w2wqhfv.js → file-mutation-khmqacep.js} +4 -4
- package/dist/chunks/{snapshot-g686f6pq.js → file-mutation-kjd40bgk.js} +9 -9
- package/dist/chunks/{snapshot-b9y7b4f0.js → file-mutation-kna85462.js} +23 -23
- package/dist/chunks/{snapshot-0zzst1te.js → file-mutation-kp1hjqcq.js} +11 -11
- package/dist/chunks/{snapshot-kqx1b4hy.js → file-mutation-kqx1b4hy.js} +4 -4
- package/dist/chunks/{snapshot-z3z84w1c.js → file-mutation-kvwqxrwb.js} +13 -13
- package/dist/chunks/{snapshot-kwb1v3vj.js → file-mutation-kwb1v3vj.js} +1 -1
- package/dist/chunks/{snapshot-5fx6by37.js → file-mutation-m6078mdh.js} +42 -42
- package/dist/chunks/{snapshot-m9w0rfyh.js → file-mutation-m9w0rfyh.js} +1 -1
- package/dist/chunks/{snapshot-maspj1v3.js → file-mutation-maspj1v3.js} +1 -1
- package/dist/chunks/{snapshot-m64xvjj1.js → file-mutation-mjagy123.js} +5 -5
- package/dist/chunks/{snapshot-8rmax6yr.js → file-mutation-mnv5anne.js} +17 -17
- package/dist/chunks/{snapshot-6hmv31tz.js → file-mutation-mq9ghvnj.js} +18 -18
- package/dist/chunks/{snapshot-wgdvvt83.js → file-mutation-mrp1vw8h.js} +21 -21
- package/dist/chunks/{snapshot-krdey6nc.js → file-mutation-mw3zb6qd.js} +6 -6
- package/dist/chunks/{snapshot-sxzvkvgj.js → file-mutation-mx9vqzsb.js} +6 -6
- package/dist/chunks/{snapshot-y41ncav5.js → file-mutation-nbe12rbe.js} +11 -11
- package/dist/chunks/{snapshot-w6azc5pz.js → file-mutation-np2zj9yp.js} +33 -33
- package/dist/chunks/{snapshot-hk13sqge.js → file-mutation-nr90a0dt.js} +40 -40
- package/dist/chunks/{snapshot-4b9kgzbd.js → file-mutation-ns6qmrtd.js} +19 -19
- package/dist/chunks/{snapshot-65bp1pt7.js → file-mutation-nteb4xfc.js} +9 -9
- package/dist/chunks/{snapshot-p42hj8p8.js → file-mutation-p42hj8p8.js} +1 -1
- package/dist/chunks/{snapshot-ezw0nm5s.js → file-mutation-paerxhb0.js} +13 -13
- package/dist/chunks/file-mutation-pgrantrc.js +26 -0
- package/dist/chunks/{snapshot-3axhngbt.js → file-mutation-pgvws8e3.js} +91 -91
- package/dist/chunks/{snapshot-pjvnvgmy.js → file-mutation-pjvnvgmy.js} +1 -1
- package/dist/chunks/{snapshot-pknna89w.js → file-mutation-pknna89w.js} +1 -1
- package/dist/chunks/{snapshot-0ebtsmg9.js → file-mutation-py1s82by.js} +9 -9
- package/dist/chunks/{snapshot-g5t3kacw.js → file-mutation-q19wpyyh.js} +23 -23
- package/dist/chunks/{snapshot-ryr25ayn.js → file-mutation-qa3qhgw8.js} +4 -4
- package/dist/chunks/{snapshot-0m1gfjhz.js → file-mutation-qcf9sep0.js} +7 -7
- package/dist/chunks/{snapshot-d43rdmby.js → file-mutation-qhj8gsw7.js} +28 -28
- package/dist/chunks/{snapshot-qnc92qwc.js → file-mutation-qnc92qwc.js} +1 -1
- package/dist/chunks/{snapshot-44kabqnj.js → file-mutation-qqrcrv2d.js} +11 -11
- package/dist/chunks/{snapshot-qsdy395h.js → file-mutation-qsdy395h.js} +1 -1
- package/dist/chunks/{snapshot-zcnbtgks.js → file-mutation-qskc9fng.js} +8 -8
- package/dist/chunks/{snapshot-kz0x0eyc.js → file-mutation-qze06xta.js} +27 -27
- package/dist/chunks/{snapshot-45jg96fg.js → file-mutation-r1rs5fcg.js} +9 -9
- package/dist/chunks/{snapshot-nzv4wedz.js → file-mutation-r6twsrbc.js} +11 -11
- package/dist/chunks/{snapshot-rdw6cm16.js → file-mutation-rdw6cm16.js} +1 -1
- package/dist/chunks/{snapshot-rert0e01.js → file-mutation-rert0e01.js} +2 -2
- package/dist/chunks/{snapshot-f2rj8t18.js → file-mutation-rg5vjzce.js} +15 -15
- package/dist/chunks/{snapshot-rhjbct0v.js → file-mutation-rhjbct0v.js} +1 -1
- package/dist/chunks/{snapshot-rj3eygr5.js → file-mutation-rj3eygr5.js} +2 -2
- package/dist/chunks/{snapshot-24pp4dbc.js → file-mutation-rp1sxpnt.js} +4 -4
- package/dist/chunks/{snapshot-c4ytspfp.js → file-mutation-rsk8b1r9.js} +14 -14
- package/dist/chunks/{snapshot-bxbakf7s.js → file-mutation-s0xd9fk5.js} +11 -11
- package/dist/chunks/{snapshot-g2874yvb.js → file-mutation-s7p2cp87.js} +24 -24
- package/dist/chunks/{snapshot-hrr62nz3.js → file-mutation-s9hmt3s5.js} +16 -16
- package/dist/chunks/{snapshot-sa8ekw3f.js → file-mutation-sa8ekw3f.js} +2 -2
- package/dist/chunks/{snapshot-a71mrrdx.js → file-mutation-sjsq85cv.js} +17 -17
- package/dist/chunks/{snapshot-wsd2q15t.js → file-mutation-sqxd4b6a.js} +13 -13
- package/dist/chunks/{snapshot-15mjt02z.js → file-mutation-stdh1w8b.js} +11 -11
- package/dist/chunks/{snapshot-ngjfqp91.js → file-mutation-svvw92nk.js} +32 -32
- package/dist/chunks/{snapshot-syv4x271.js → file-mutation-syv4x271.js} +1 -1
- package/dist/chunks/{snapshot-990fmxgc.js → file-mutation-t3zmyd3w.js} +33 -33
- package/dist/chunks/{snapshot-tazgh4e4.js → file-mutation-tazgh4e4.js} +1 -1
- package/dist/chunks/{snapshot-89znhe33.js → file-mutation-tcezcvh9.js} +4 -4
- package/dist/chunks/{snapshot-tdstcens.js → file-mutation-tdstcens.js} +1 -1
- package/dist/chunks/{snapshot-24b8xn8e.js → file-mutation-tjn2qjgm.js} +25 -25
- package/dist/chunks/{snapshot-wh6zw745.js → file-mutation-tk14y25j.js} +5 -5
- package/dist/chunks/{snapshot-tm0kqsz3.js → file-mutation-tm0kqsz3.js} +1 -1
- package/dist/chunks/{snapshot-jytc1txw.js → file-mutation-tms097mr.js} +17 -17
- package/dist/chunks/{snapshot-yxy2s6v9.js → file-mutation-tr1j93sp.js} +14 -14
- package/dist/chunks/{snapshot-tyytaxap.js → file-mutation-tyytaxap.js} +1 -1
- package/dist/chunks/{snapshot-fpecnkgp.js → file-mutation-v0es1rhs.js} +9 -9
- package/dist/chunks/{snapshot-rc5gr2c6.js → file-mutation-v38qq1xq.js} +10 -10
- package/dist/chunks/{snapshot-2cpvpehx.js → file-mutation-v4r9rrgr.js} +20 -20
- package/dist/chunks/{snapshot-v7p4zvkq.js → file-mutation-v7p4zvkq.js} +2 -2
- package/dist/chunks/{snapshot-qkb2ne2d.js → file-mutation-v9ym5vkf.js} +27 -27
- package/dist/chunks/{snapshot-09pvn25w.js → file-mutation-vaer15sz.js} +16 -16
- package/dist/chunks/{snapshot-veqvce7d.js → file-mutation-veqvce7d.js} +1 -1
- package/dist/chunks/{snapshot-w2808p42.js → file-mutation-vgbe0hx2.js} +6 -6
- package/dist/chunks/{snapshot-v481s08r.js → file-mutation-vhs7bsm8.js} +81 -81
- package/dist/chunks/{snapshot-djng1cng.js → file-mutation-vnrbpqt1.js} +19 -19
- package/dist/chunks/{snapshot-pda9j8pd.js → file-mutation-vx06kqgv.js} +13 -13
- package/dist/chunks/{snapshot-hzrfc1p4.js → file-mutation-vx3jgdek.js} +3 -3
- package/dist/chunks/{snapshot-524wbpge.js → file-mutation-vx9tn3ww.js} +34 -34
- package/dist/chunks/{snapshot-vzs5sf6e.js → file-mutation-vzs5sf6e.js} +1 -1
- package/dist/chunks/{snapshot-yc2dh59q.js → file-mutation-w31qasc1.js} +9 -9
- package/dist/chunks/{snapshot-w3wsvvr9.js → file-mutation-w3wsvvr9.js} +1 -1
- package/dist/chunks/{snapshot-fvn5mafv.js → file-mutation-w80w7egq.js} +26 -26
- package/dist/chunks/{snapshot-wd87259q.js → file-mutation-wd87259q.js} +1 -1
- package/dist/chunks/{snapshot-qa4jrz0k.js → file-mutation-wdbsdckj.js} +32 -32
- package/dist/chunks/{snapshot-8bbfct2p.js → file-mutation-whepmyc8.js} +1 -1
- package/dist/chunks/{snapshot-sknvv7f7.js → file-mutation-whmxtv1k.js} +25 -25
- package/dist/chunks/{snapshot-ywt8jp22.js → file-mutation-wjr9rjd7.js} +6 -6
- package/dist/chunks/{snapshot-a4rgdjbk.js → file-mutation-wq2exejj.js} +34 -34
- package/dist/chunks/{snapshot-bdvq8pjx.js → file-mutation-wq5jrx1v.js} +46 -46
- package/dist/chunks/{snapshot-0n5m0eh4.js → file-mutation-wrmx1wd8.js} +18 -18
- package/dist/chunks/{snapshot-vm0bs8v2.js → file-mutation-wyfpybhz.js} +27 -27
- package/dist/chunks/{snapshot-bg9pb3hs.js → file-mutation-x5wrmng7.js} +11 -11
- package/dist/chunks/{snapshot-qj351k35.js → file-mutation-xfh984c1.js} +17 -17
- package/dist/chunks/{snapshot-2sg8pn63.js → file-mutation-xjpvrdvq.js} +10 -10
- package/dist/chunks/{snapshot-ns4s002r.js → file-mutation-xqevex3y.js} +24 -24
- package/dist/chunks/{snapshot-55m81wnp.js → file-mutation-xtxypabt.js} +12 -12
- package/dist/chunks/{snapshot-ym90h1jm.js → file-mutation-xvjf424w.js} +10 -10
- package/dist/chunks/{snapshot-y1fvbwt7.js → file-mutation-y1fvbwt7.js} +1 -1
- package/dist/chunks/{snapshot-v6pzdj5v.js → file-mutation-y35511gd.js} +19 -19
- package/dist/chunks/{snapshot-99m1svw6.js → file-mutation-y45dsw3d.js} +29 -29
- package/dist/chunks/{snapshot-kkp8zx71.js → file-mutation-y6mhz57t.js} +4 -4
- package/dist/chunks/{snapshot-had4kgfk.js → file-mutation-y8p3zjbc.js} +4 -4
- package/dist/chunks/{snapshot-0205d07w.js → file-mutation-yewqjc3q.js} +43 -43
- package/dist/chunks/{snapshot-q0raz0xt.js → file-mutation-yh7kjdpc.js} +9 -9
- package/dist/chunks/{snapshot-p46j7tk6.js → file-mutation-yk3k7trf.js} +3 -3
- package/dist/chunks/{snapshot-2gkanyf9.js → file-mutation-ykbenvtt.js} +18 -18
- package/dist/chunks/{snapshot-8pmceypm.js → file-mutation-ym72szr7.js} +36 -36
- package/dist/chunks/{snapshot-yp2x3t23.js → file-mutation-yp2x3t23.js} +1 -1
- package/dist/chunks/{snapshot-3g8j9he4.js → file-mutation-yqc6bamn.js} +1 -1
- package/dist/chunks/{snapshot-1tn2wyt6.js → file-mutation-yv1g7dvw.js} +18 -18
- package/dist/chunks/{snapshot-td507s1z.js → file-mutation-yzmsvx3n.js} +13 -13
- package/dist/chunks/{snapshot-z0bkrqjs.js → file-mutation-z0bkrqjs.js} +1 -1
- package/dist/chunks/{snapshot-47jkzegy.js → file-mutation-z6c3x22d.js} +5 -5
- package/dist/chunks/{snapshot-rbh7495a.js → file-mutation-z6szz84x.js} +12 -12
- package/dist/chunks/{snapshot-3y1ebd1j.js → file-mutation-z8abfd22.js} +49 -49
- package/dist/chunks/{snapshot-zdpajj5q.js → file-mutation-ze4328nr.js} +15 -15
- package/dist/chunks/{snapshot-zh88wm2c.js → file-mutation-zj0rakt4.js} +32 -32
- package/dist/chunks/{snapshot-mk34ezcj.js → file-mutation-zj24t7xr.js} +5 -5
- package/dist/chunks/{snapshot-dxjzc6pe.js → file-mutation-zm7ab947.js} +18 -18
- package/dist/chunks/{snapshot-zr2ceqn5.js → file-mutation-zr2ceqn5.js} +1 -1
- package/dist/chunks/{snapshot-gd1hs1dn.js → file-mutation-zx5swzrd.js} +11 -11
- package/dist/chunks/{snapshot-zxq2ej10.js → file-mutation-zxq2ej10.js} +1 -1
- package/dist/chunks/{snapshot-zyk1yjk8.js → file-mutation-zyk1yjk8.js} +2 -2
- package/dist/chunks/{snapshot-62fwm79t.js → file-mutation-zz5c3g14.js} +9 -9
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +11 -11
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +83 -83
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +101 -101
- package/dist/config/plugin/agent.js +116 -116
- package/dist/config/plugin/command.js +205 -205
- package/dist/config/plugin/compaction.js +154 -154
- package/dist/config/plugin/compatibility.js +134 -134
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +123 -123
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +116 -116
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill.js +135 -135
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +117 -117
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +115 -115
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +121 -121
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +85 -85
- package/dist/database/database.js +68 -68
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration.gen.js +51 -51
- package/dist/database/migration.js +53 -53
- package/dist/database/path.js +2 -2
- package/dist/database/schema.gen.js +1 -1
- package/dist/database/schema.sql.js +1 -1
- package/dist/database/sqlite.bun.js +1 -1
- package/dist/database/sqlite.js +1 -1
- package/dist/database/sqlite.node.js +1 -1
- package/dist/database/sqlite.workerd.js +1 -1
- package/dist/database/v1-migration.bun.js +78 -78
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +367 -367
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +3 -3
- package/dist/effect/websocket-constructor.js +1 -1
- package/dist/environment/driver.js +1 -1
- package/dist/environment/environment.js +95 -95
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +97 -97
- package/dist/environment/local.js +2 -2
- package/dist/environment/memory.js +2 -2
- package/dist/environment/unavailable.js +3 -3
- package/dist/event/sql.js +1 -1
- package/dist/event-logger.js +72 -72
- package/dist/file-access.js +106 -106
- package/dist/file-mutation.js +96 -96
- package/dist/file-retention.js +1 -1
- package/dist/filesystem/fff.bun.js +2 -2
- package/dist/filesystem/fff.js +1 -1
- package/dist/filesystem/fff.node.js +2 -2
- package/dist/filesystem/fff.workerd.js +2 -2
- package/dist/filesystem/location-watcher-policy.js +6 -6
- package/dist/filesystem/location-watcher.js +220 -220
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +105 -105
- package/dist/filesystem/watcher-binding.js +3 -3
- package/dist/filesystem/watcher.js +13 -13
- package/dist/filesystem.js +108 -108
- package/dist/form.js +82 -82
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +89 -89
- package/dist/generate.js +107 -107
- package/dist/git.js +10 -10
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +93 -93
- package/dist/github-copilot/openai-compatible-error.js +1 -1
- package/dist/github-copilot/responses/convert-to-openai-responses-input.js +1 -1
- package/dist/github-copilot/responses/map-openai-responses-finish-reason.js +1 -1
- package/dist/github-copilot/responses/openai-error.js +1 -1
- package/dist/github-copilot/responses/openai-responses-language-model.js +10 -10
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +6 -6
- package/dist/github-copilot/responses/tool/code-interpreter.js +1 -1
- package/dist/github-copilot/responses/tool/file-search.js +1 -1
- package/dist/github-copilot/responses/tool/image-generation.js +1 -1
- package/dist/github-copilot/responses/tool/web-search-preview.js +1 -1
- package/dist/github-copilot/responses/tool/web-search.js +1 -1
- package/dist/image/photon.js +2 -2
- package/dist/image.js +6 -6
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +358 -358
- package/dist/instruction-discovery.js +84 -84
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +87 -87
- package/dist/job.js +80 -80
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +133 -133
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +355 -355
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +6 -6
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +125 -125
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +100 -100
- package/dist/model.js +100 -100
- package/dist/models-dev.js +107 -107
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +113 -113
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +90 -90
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +76 -76
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +211 -211
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +1 -1
- package/dist/plugin/internal.js +329 -329
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +117 -117
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +104 -104
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +92 -92
- package/dist/plugin/provider/azure.js +116 -116
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +116 -116
- package/dist/plugin/provider/cloudflare-ai-gateway.js +113 -113
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +125 -125
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +100 -100
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +168 -168
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +346 -346
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +88 -88
- package/dist/plugin/vcs/hg.js +88 -88
- package/dist/plugin/verbosity.js +95 -95
- package/dist/plugin/warming.js +114 -114
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +4 -4
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +4 -4
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +222 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +99 -99
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +99 -99
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +99 -99
- package/dist/rpc.js +88 -88
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +76 -76
- package/dist/session/compaction.js +135 -135
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +214 -214
- package/dist/session/execution.js +127 -127
- package/dist/session/generate.js +156 -156
- package/dist/session/history.js +15 -15
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +131 -131
- package/dist/session/projector.js +88 -88
- package/dist/session/prompt.js +107 -107
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +92 -92
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +224 -224
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +100 -100
- package/dist/session/runner/publish-llm-event.js +115 -115
- package/dist/session/runner/retry.js +2 -2
- package/dist/session/runner/step.js +125 -125
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +164 -164
- package/dist/session/shell.js +130 -130
- package/dist/session/skill.js +105 -105
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +87 -87
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +205 -205
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +157 -157
- package/dist/session/to-session-error.js +113 -113
- package/dist/session/transfer.js +210 -210
- package/dist/session/usage.js +1 -1
- package/dist/session.js +213 -213
- 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 +13 -13
- package/dist/shell.js +132 -132
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +114 -114
- package/dist/snapshot.js +91 -91
- 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 +130 -130
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +126 -126
- package/dist/tool/plugin/grep.js +124 -124
- package/dist/tool/plugin/mcp-resource.js +119 -119
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +107 -107
- package/dist/tool/plugin/read.js +127 -127
- package/dist/tool/plugin/shell.js +208 -208
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +210 -210
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +118 -118
- package/dist/tool/read-filesystem.js +102 -102
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/error.js +2 -2
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +7 -7
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider-options.js +1 -1
- package/dist/v1/config/provider.js +4 -4
- package/dist/variant.js +95 -95
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/voice.js +90 -90
- package/dist/websearch.js +86 -86
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +81 -81
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +82 -82
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +10 -10
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +91 -91
- package/dist/worktree.js +100 -100
- package/package.json +8 -8
- package/dist/chunks/snapshot-619r8v3y.js +0 -18
- package/dist/chunks/snapshot-674by1mv.js +0 -257
- package/dist/chunks/snapshot-mt0fy2dx.js +0 -513
- package/dist/chunks/snapshot-zm1xtn2x.js +0 -26
- /package/dist/chunks/{snapshot-0qkdqm5v.js → file-mutation-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{snapshot-0zkw76rk.js → file-mutation-0zkw76rk.js} +0 -0
- /package/dist/chunks/{snapshot-17cy0kzp.js → file-mutation-17cy0kzp.js} +0 -0
- /package/dist/chunks/{snapshot-1cnp2v09.js → file-mutation-1cnp2v09.js} +0 -0
- /package/dist/chunks/{snapshot-1kg9ymc8.js → file-mutation-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{snapshot-24dcb14g.js → file-mutation-24dcb14g.js} +0 -0
- /package/dist/chunks/{snapshot-2710q6r3.js → file-mutation-2710q6r3.js} +0 -0
- /package/dist/chunks/{snapshot-2axfhc9x.js → file-mutation-2axfhc9x.js} +0 -0
- /package/dist/chunks/{snapshot-2bv980vf.js → file-mutation-2bv980vf.js} +0 -0
- /package/dist/chunks/{snapshot-2c3vjs8z.js → file-mutation-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{snapshot-359p4xyc.js → file-mutation-359p4xyc.js} +0 -0
- /package/dist/chunks/{snapshot-3asan66x.js → file-mutation-3asan66x.js} +0 -0
- /package/dist/chunks/{snapshot-3t0ybcrp.js → file-mutation-3t0ybcrp.js} +0 -0
- /package/dist/chunks/{snapshot-3v8g72cx.js → file-mutation-3v8g72cx.js} +0 -0
- /package/dist/chunks/{snapshot-3wcehsnq.js → file-mutation-3wcehsnq.js} +0 -0
- /package/dist/chunks/{snapshot-43n2bw4t.js → file-mutation-43n2bw4t.js} +0 -0
- /package/dist/chunks/{snapshot-4knz6hnm.js → file-mutation-4knz6hnm.js} +0 -0
- /package/dist/chunks/{snapshot-4vcrnpx2.js → file-mutation-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{snapshot-4y7fprxs.js → file-mutation-4y7fprxs.js} +0 -0
- /package/dist/chunks/{snapshot-53557ph1.js → file-mutation-53557ph1.js} +0 -0
- /package/dist/chunks/{snapshot-550bvhaj.js → file-mutation-550bvhaj.js} +0 -0
- /package/dist/chunks/{snapshot-6prwharc.js → file-mutation-6prwharc.js} +0 -0
- /package/dist/chunks/{snapshot-6q2bdcd1.js → file-mutation-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{snapshot-7akdwqpd.js → file-mutation-7akdwqpd.js} +0 -0
- /package/dist/chunks/{snapshot-7m9af43g.js → file-mutation-7m9af43g.js} +0 -0
- /package/dist/chunks/{snapshot-822emrt2.js → file-mutation-822emrt2.js} +0 -0
- /package/dist/chunks/{snapshot-84wd9syh.js → file-mutation-84wd9syh.js} +0 -0
- /package/dist/chunks/{snapshot-88xbtdfr.js → file-mutation-88xbtdfr.js} +0 -0
- /package/dist/chunks/{snapshot-8n3pysct.js → file-mutation-8n3pysct.js} +0 -0
- /package/dist/chunks/{snapshot-8wj87zfr.js → file-mutation-8wj87zfr.js} +0 -0
- /package/dist/chunks/{snapshot-9a4afbnw.js → file-mutation-9a4afbnw.js} +0 -0
- /package/dist/chunks/{snapshot-9rqn6x4v.js → file-mutation-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{snapshot-a6k6eb26.js → file-mutation-a6k6eb26.js} +0 -0
- /package/dist/chunks/{snapshot-af5trqkr.js → file-mutation-af5trqkr.js} +0 -0
- /package/dist/chunks/{snapshot-afrmfg78.js → file-mutation-afrmfg78.js} +0 -0
- /package/dist/chunks/{snapshot-aqzs7mqg.js → file-mutation-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{snapshot-atq7p7m5.js → file-mutation-atq7p7m5.js} +0 -0
- /package/dist/chunks/{snapshot-bkyjaxrp.js → file-mutation-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{snapshot-bmr6ed5q.js → file-mutation-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{snapshot-cf4snx6d.js → file-mutation-cf4snx6d.js} +0 -0
- /package/dist/chunks/{snapshot-cvy3z8tj.js → file-mutation-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{snapshot-d9fn303g.js → file-mutation-d9fn303g.js} +0 -0
- /package/dist/chunks/{snapshot-d9jj8t3e.js → file-mutation-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{snapshot-dajrwvna.js → file-mutation-dajrwvna.js} +0 -0
- /package/dist/chunks/{snapshot-dap0rakb.js → file-mutation-dap0rakb.js} +0 -0
- /package/dist/chunks/{snapshot-df08tz66.js → file-mutation-df08tz66.js} +0 -0
- /package/dist/chunks/{snapshot-dy18nga0.js → file-mutation-dy18nga0.js} +0 -0
- /package/dist/chunks/{snapshot-e5kj55wp.js → file-mutation-e5kj55wp.js} +0 -0
- /package/dist/chunks/{snapshot-e73j6tqm.js → file-mutation-e73j6tqm.js} +0 -0
- /package/dist/chunks/{snapshot-ec1grn59.js → file-mutation-ec1grn59.js} +0 -0
- /package/dist/chunks/{snapshot-eh3zwz77.js → file-mutation-eh3zwz77.js} +0 -0
- /package/dist/chunks/{snapshot-emrn6kk6.js → file-mutation-emrn6kk6.js} +0 -0
- /package/dist/chunks/{snapshot-f0mxakyp.js → file-mutation-f0mxakyp.js} +0 -0
- /package/dist/chunks/{snapshot-f6n9ztr4.js → file-mutation-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{snapshot-faypxj3z.js → file-mutation-faypxj3z.js} +0 -0
- /package/dist/chunks/{snapshot-fd410y7t.js → file-mutation-fd410y7t.js} +0 -0
- /package/dist/chunks/{snapshot-g4wezp1m.js → file-mutation-g4wezp1m.js} +0 -0
- /package/dist/chunks/{snapshot-g86h250q.js → file-mutation-g86h250q.js} +0 -0
- /package/dist/chunks/{snapshot-gebd4c9n.js → file-mutation-gebd4c9n.js} +0 -0
- /package/dist/chunks/{snapshot-gftt206x.js → file-mutation-gftt206x.js} +0 -0
- /package/dist/chunks/{snapshot-hcxmzztb.js → file-mutation-hcxmzztb.js} +0 -0
- /package/dist/chunks/{snapshot-hk9envan.js → file-mutation-hk9envan.js} +0 -0
- /package/dist/chunks/{snapshot-j2ntwpah.js → file-mutation-j2ntwpah.js} +0 -0
- /package/dist/chunks/{snapshot-j5zkgpj8.js → file-mutation-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{snapshot-jjkms2e6.js → file-mutation-jjkms2e6.js} +0 -0
- /package/dist/chunks/{snapshot-jr7sbwjy.js → file-mutation-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{snapshot-jwfs4k6c.js → file-mutation-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{snapshot-jze0r7bz.js → file-mutation-jze0r7bz.js} +0 -0
- /package/dist/chunks/{snapshot-jzg6c2d5.js → file-mutation-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{snapshot-m18g726c.js → file-mutation-m18g726c.js} +0 -0
- /package/dist/chunks/{snapshot-mp448xyj.js → file-mutation-mp448xyj.js} +0 -0
- /package/dist/chunks/{snapshot-msx8hqn2.js → file-mutation-msx8hqn2.js} +0 -0
- /package/dist/chunks/{snapshot-n05xt0ee.js → file-mutation-n05xt0ee.js} +0 -0
- /package/dist/chunks/{snapshot-n3j8tn72.js → file-mutation-n3j8tn72.js} +0 -0
- /package/dist/chunks/{snapshot-njntx4h6.js → file-mutation-njntx4h6.js} +0 -0
- /package/dist/chunks/{snapshot-pkyv6v7h.js → file-mutation-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{snapshot-pyv0edze.js → file-mutation-pyv0edze.js} +0 -0
- /package/dist/chunks/{snapshot-q3sfg36h.js → file-mutation-q3sfg36h.js} +0 -0
- /package/dist/chunks/{snapshot-q74kybfr.js → file-mutation-q74kybfr.js} +0 -0
- /package/dist/chunks/{snapshot-qaymkmh1.js → file-mutation-qaymkmh1.js} +0 -0
- /package/dist/chunks/{snapshot-qb87gjwd.js → file-mutation-qb87gjwd.js} +0 -0
- /package/dist/chunks/{snapshot-qfa1cgps.js → file-mutation-qfa1cgps.js} +0 -0
- /package/dist/chunks/{snapshot-qg3g05ea.js → file-mutation-qg3g05ea.js} +0 -0
- /package/dist/chunks/{snapshot-qrg20bc0.js → file-mutation-qrg20bc0.js} +0 -0
- /package/dist/chunks/{snapshot-rcb2kzg1.js → file-mutation-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{snapshot-sdp7kfr6.js → file-mutation-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{snapshot-ssg3fenm.js → file-mutation-ssg3fenm.js} +0 -0
- /package/dist/chunks/{snapshot-ve7vex1e.js → file-mutation-ve7vex1e.js} +0 -0
- /package/dist/chunks/{snapshot-w803qqfp.js → file-mutation-w803qqfp.js} +0 -0
- /package/dist/chunks/{snapshot-wc3fc9cn.js → file-mutation-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{snapshot-wer8tq1h.js → file-mutation-wer8tq1h.js} +0 -0
- /package/dist/chunks/{snapshot-wjj7prxr.js → file-mutation-wjj7prxr.js} +0 -0
- /package/dist/chunks/{snapshot-wtztk69x.js → file-mutation-wtztk69x.js} +0 -0
- /package/dist/chunks/{snapshot-x0ckcb58.js → file-mutation-x0ckcb58.js} +0 -0
- /package/dist/chunks/{snapshot-x61499pn.js → file-mutation-x61499pn.js} +0 -0
- /package/dist/chunks/{snapshot-y44na4kk.js → file-mutation-y44na4kk.js} +0 -0
- /package/dist/chunks/{snapshot-y8f7s663.js → file-mutation-y8f7s663.js} +0 -0
- /package/dist/chunks/{snapshot-ygaqb7jw.js → file-mutation-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{snapshot-ym463w8f.js → file-mutation-ym463w8f.js} +0 -0
- /package/dist/chunks/{snapshot-z5v4ffb3.js → file-mutation-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{snapshot-z9919s4g.js → file-mutation-z9919s4g.js} +0 -0
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Info7,
|
|
6
|
+
ID4,
|
|
7
7
|
Name2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-bdwftekd.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
10
|
+
Service70
|
|
11
|
+
} from "./file-mutation-z8abfd22.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
15
15
|
|
|
16
16
|
// src/plugin/skill.ts
|
|
17
|
-
var
|
|
18
|
-
__export(
|
|
17
|
+
var exports_skill2 = {};
|
|
18
|
+
__export(exports_skill2, {
|
|
19
19
|
OpencodeContent: () => OpencodeContent2,
|
|
20
20
|
OpencodeDescription: () => OpencodeDescription2,
|
|
21
|
-
Plugin: () =>
|
|
21
|
+
Plugin: () => Plugin26,
|
|
22
22
|
ReportContent: () => ReportContent2,
|
|
23
|
-
SkillPlugin: () =>
|
|
23
|
+
SkillPlugin: () => exports_skill2
|
|
24
24
|
});
|
|
25
25
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
26
26
|
import { Effect } from "effect";
|
|
@@ -424,20 +424,20 @@ var OpencodeContent2 = opencode_default;
|
|
|
424
424
|
var ReportContent2 = report_default;
|
|
425
425
|
var OpencodeDescription2 = "Use this skill for any question about OpenCode itself, including how OpenCode works, using or configuring it, migrating from V1 to V2, troubleshooting it, developing plugins or integrations, using the OpenCode SDK, clients, server, or API, and contributing to the OpenCode codebase. Also use it for OpenCode agents, commands, skills, tools, permissions, MCP servers, providers, models, themes, keybinds, formatters, the CLI, TUI, desktop app, and web app.";
|
|
426
426
|
var REPORT_DESCRIPTION = "Use when the user wants to report an opencode issue or bug. Collect standard diagnostics, add user-specific reproduction context, and publish the issue with GitHub CLI.";
|
|
427
|
-
var
|
|
427
|
+
var Plugin26 = define({
|
|
428
428
|
id: "opencode.skill",
|
|
429
429
|
effect: Effect.fn(function* (ctx) {
|
|
430
430
|
const reportContent = yield* reportContentWithDiagnostics(ctx.app);
|
|
431
431
|
yield* ctx.skill.transform((editor) => {
|
|
432
|
-
editor.add(
|
|
433
|
-
id:
|
|
432
|
+
editor.add(Info7.make({
|
|
433
|
+
id: ID4.make("opencode"),
|
|
434
434
|
name: Name2.make("OpenCode"),
|
|
435
435
|
description: OpencodeDescription2,
|
|
436
436
|
path: AbsolutePath2.make("/builtin/opencode.md"),
|
|
437
437
|
content: OpencodeContent2
|
|
438
438
|
}));
|
|
439
|
-
editor.add(
|
|
440
|
-
id:
|
|
439
|
+
editor.add(Info7.make({
|
|
440
|
+
id: ID4.make("report"),
|
|
441
441
|
name: Name2.make("Report"),
|
|
442
442
|
description: REPORT_DESCRIPTION,
|
|
443
443
|
path: AbsolutePath2.make("/builtin/report.md"),
|
|
@@ -466,7 +466,7 @@ var reportContentWithDiagnostics = Effect.fn("SkillPlugin.reportContentWithDiagn
|
|
|
466
466
|
`);
|
|
467
467
|
});
|
|
468
468
|
var configuredPlugins = Effect.fn("SkillPlugin.configuredPlugins")(function* () {
|
|
469
|
-
const config = yield*
|
|
469
|
+
const config = yield* Service70;
|
|
470
470
|
return (yield* config.entries()).filter((entry) => entry.type === "document").flatMap((entry) => entry.info.plugins ?? []).map((entry) => typeof entry === "string" ? entry : entry.package).toSorted();
|
|
471
471
|
});
|
|
472
472
|
function terminal() {
|
|
@@ -480,4 +480,4 @@ function shell() {
|
|
|
480
480
|
return process.env.SHELL ?? process.env.ComSpec ?? process.env.COMSPEC ?? "Unavailable: shell environment variable is not set";
|
|
481
481
|
}
|
|
482
482
|
|
|
483
|
-
export { OpencodeContent2, ReportContent2, OpencodeDescription2,
|
|
483
|
+
export { OpencodeContent2, ReportContent2, OpencodeDescription2, Plugin26, exports_skill2 };
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
getTableColumnsRuntime2,
|
|
3
3
|
orderSelectedFields2,
|
|
4
4
|
mapUpdateSet2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-mutation-emrn6kk6.js";
|
|
6
6
|
|
|
7
7
|
// src/database/drizzle/sqlite-core/effect/insert.ts
|
|
8
8
|
import { applyEffectWrapper } from "drizzle-orm/effect-core/query-effect";
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
name15,
|
|
3
3
|
ps2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-f8g1y2jp.js";
|
|
5
5
|
import {
|
|
6
6
|
lazy2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./file-mutation-88xbtdfr.js";
|
|
8
8
|
import {
|
|
9
9
|
match2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-y1fvbwt7.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/shell/parse.ts
|
|
16
16
|
var exports_parse = {};
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./file-mutation-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./file-mutation-1j6m29mr.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info16
|
|
9
|
+
} from "./file-mutation-x5wrmng7.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Info14
|
|
12
|
+
} from "./file-mutation-qa3qhgw8.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
} from "./
|
|
14
|
+
Info18
|
|
15
|
+
} from "./file-mutation-tk14y25j.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-fcrkznn8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info15
|
|
21
|
+
} from "./file-mutation-z6c3x22d.js";
|
|
22
22
|
import {
|
|
23
23
|
normalizeAction2,
|
|
24
24
|
migrateAgent2,
|
|
@@ -28,10 +28,10 @@ import {
|
|
|
28
28
|
migrateMcp2,
|
|
29
29
|
migrateProvider2,
|
|
30
30
|
providerID2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./file-mutation-82s76q1y.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
@@ -98,12 +98,12 @@ function normalize2(input) {
|
|
|
98
98
|
const legacyReferences = decodeMap(input.reference, ConfigReference.Entry, ["reference"], diagnostics, decodeEncoded);
|
|
99
99
|
const nativeReferences = decodeMap(input.references, ConfigReference.Entry, ["references"], diagnostics, decodeEncoded);
|
|
100
100
|
mergeMap(encoded, "references", legacyReferences, nativeReferences, isRecord(input.reference) || isRecord(input.references), diagnostics);
|
|
101
|
-
const legacyCommands = decodeMap(input.command,
|
|
101
|
+
const legacyCommands = decodeMap(input.command, Info14, ["command"], diagnostics, decodeValue);
|
|
102
102
|
diagnoseSelectionMap(input.command, ["command"], diagnostics);
|
|
103
103
|
const migratedCommands = mapValues(legacyCommands, (value) => canonical(ConfigCommand.Info, migrateCommand2(value)));
|
|
104
104
|
const nativeCommands = decodeMap(input.commands, ConfigCommand.Info, ["commands"], diagnostics, decodeEncoded);
|
|
105
105
|
mergeMap(encoded, "commands", migratedCommands, nativeCommands, isRecord(input.command) || isRecord(input.commands), diagnostics);
|
|
106
|
-
const legacyAgents = mapValues(decodeMap(input.agent,
|
|
106
|
+
const legacyAgents = mapValues(decodeMap(input.agent, Info16, ["agent"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2(value)));
|
|
107
107
|
const legacySmallModel = own(input, "small_model") ? decodeValue(Schema.String, input.small_model, ["small_model"], diagnostics) : undefined;
|
|
108
108
|
const migratedSmallModel = modelSelection2(legacySmallModel);
|
|
109
109
|
if (legacySmallModel && !migratedSmallModel)
|
|
@@ -117,7 +117,7 @@ function normalize2(input) {
|
|
|
117
117
|
model: migratedSmallModel,
|
|
118
118
|
...legacyAgents.title
|
|
119
119
|
};
|
|
120
|
-
const modeAgents = mapValues(decodeMap(input.mode,
|
|
120
|
+
const modeAgents = mapValues(decodeMap(input.mode, Info16, ["mode"], diagnostics, decodeValue), (value) => canonical(ConfigAgent.Info, migrateAgent2({ ...value, mode: "primary" })));
|
|
121
121
|
const migratedAgents = mergeMaps(legacyAgents, modeAgents, ["agents"], diagnostics);
|
|
122
122
|
const nativeAgents = decodeMap(input.agents, ConfigAgent.Info, ["agents"], diagnostics, decodeEncoded);
|
|
123
123
|
diagnoseAgentUnsupported(input.agent, ["agent"], diagnostics);
|
|
@@ -219,7 +219,7 @@ function normalizeMcp(input, encoded, diagnostics) {
|
|
|
219
219
|
normalizeMcpTimeout(typeof value === "number" ? migrateMcpTimeout2(value) : value, timeout, path, diagnostics);
|
|
220
220
|
return;
|
|
221
221
|
}
|
|
222
|
-
const server = decodeValue(
|
|
222
|
+
const server = decodeValue(Info18, value, path, diagnostics);
|
|
223
223
|
if (server !== undefined)
|
|
224
224
|
setOwn(legacyServers, name, canonical(ConfigMCP.Server, migrateMcp2(server)));
|
|
225
225
|
});
|
|
@@ -425,7 +425,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
425
425
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
426
426
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
427
427
|
return [];
|
|
428
|
-
const provider = decodeValue(
|
|
428
|
+
const provider = decodeValue(Info15, raw, path, diagnostics);
|
|
429
429
|
if (provider === undefined)
|
|
430
430
|
return [];
|
|
431
431
|
const destination = providerID2(name);
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID13,
|
|
3
3
|
mergeOverlay2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-b81ahfje.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
6
|
+
ID12,
|
|
7
7
|
VariantID2,
|
|
8
|
-
|
|
8
|
+
Info21,
|
|
9
9
|
compatibility2
|
|
10
|
-
} from "./
|
|
10
|
+
} from "./file-mutation-1vq8waa3.js";
|
|
11
11
|
import {
|
|
12
12
|
__export
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
14
14
|
|
|
15
15
|
// src/modal/models.ts
|
|
16
16
|
var exports_models = {};
|
|
@@ -22,7 +22,7 @@ __export(exports_models, {
|
|
|
22
22
|
});
|
|
23
23
|
import { Money } from "@opencode/schema/money";
|
|
24
24
|
import { Option, Schema } from "effect";
|
|
25
|
-
var providerID =
|
|
25
|
+
var providerID = ID13.make("modal");
|
|
26
26
|
var ReasoningOption = Schema.Struct({
|
|
27
27
|
type: Schema.Literal("effort"),
|
|
28
28
|
values: Schema.Array(Schema.NullOr(Schema.String))
|
|
@@ -75,8 +75,8 @@ function derive2(baseURL, remote, existing) {
|
|
|
75
75
|
const templates = new Map(existing.map((model) => [model.id, model]));
|
|
76
76
|
const result = new Map;
|
|
77
77
|
for (const item of remote) {
|
|
78
|
-
const template = templates.get(
|
|
79
|
-
const id =
|
|
78
|
+
const template = templates.get(ID12.make(item.base_model_id ?? item.hugging_face_id ?? item.id));
|
|
79
|
+
const id = ID12.make(item.id);
|
|
80
80
|
result.set(id, build(id, item, baseURL, template));
|
|
81
81
|
}
|
|
82
82
|
return result;
|
|
@@ -94,10 +94,10 @@ function limit(value, fallback) {
|
|
|
94
94
|
function build(id, remote, baseURL, previous) {
|
|
95
95
|
const cost = previous?.cost[0];
|
|
96
96
|
const input = previous?.limit.input;
|
|
97
|
-
return
|
|
98
|
-
...
|
|
97
|
+
return Info21.make({
|
|
98
|
+
...Info21.default(providerID, id),
|
|
99
99
|
id,
|
|
100
|
-
modelID:
|
|
100
|
+
modelID: ID12.make(remote.id),
|
|
101
101
|
providerID,
|
|
102
102
|
name: remote.name ?? previous?.name ?? remote.id,
|
|
103
103
|
family: previous?.family,
|
|
@@ -2,18 +2,18 @@ import {
|
|
|
2
2
|
provider2,
|
|
3
3
|
model2,
|
|
4
4
|
compatibleModel2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-mutation-tm0kqsz3.js";
|
|
6
6
|
import {
|
|
7
7
|
aisdk2,
|
|
8
8
|
packageName2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./file-mutation-b81ahfje.js";
|
|
10
10
|
import {
|
|
11
11
|
Capabilities2,
|
|
12
12
|
compatibility2
|
|
13
|
-
} from "./
|
|
13
|
+
} from "./file-mutation-1vq8waa3.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/v1/config/migrate.ts
|
|
19
19
|
var exports_migrate = {};
|
|
@@ -1,67 +1,67 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-a5cb3rxh.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./
|
|
6
|
+
Service82,
|
|
7
|
+
node86
|
|
8
|
+
} from "./file-mutation-s9hmt3s5.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
ID9,
|
|
11
|
+
Service65,
|
|
12
|
+
node68
|
|
13
|
+
} from "./file-mutation-s7p2cp87.js";
|
|
14
14
|
import {
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
NotFoundError8
|
|
16
|
+
} from "./file-mutation-mw3zb6qd.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service64,
|
|
19
|
+
node67
|
|
20
|
+
} from "./file-mutation-86hr6tyx.js";
|
|
21
21
|
import {
|
|
22
22
|
match2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./file-mutation-y1fvbwt7.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
} from "./
|
|
25
|
+
Service63,
|
|
26
|
+
node66
|
|
27
|
+
} from "./file-mutation-z6szz84x.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./
|
|
29
|
+
Service76,
|
|
30
|
+
node80
|
|
31
|
+
} from "./file-mutation-fqtvmpfq.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/permission.ts
|
|
37
|
-
var
|
|
38
|
-
__export(
|
|
37
|
+
var exports_permission = {};
|
|
38
|
+
__export(exports_permission, {
|
|
39
39
|
AskResult: () => AskResult2,
|
|
40
40
|
AssertInput: () => AssertInput2,
|
|
41
41
|
BlockedError: () => BlockedError2,
|
|
42
42
|
CorrectedError: () => CorrectedError2,
|
|
43
43
|
DeclinedError: () => DeclinedError2,
|
|
44
44
|
Effect: () => PermissionEffect,
|
|
45
|
-
Event: () =>
|
|
45
|
+
Event: () => Event12,
|
|
46
46
|
ID: () => ID7,
|
|
47
|
-
NotFoundError: () =>
|
|
48
|
-
Permission: () =>
|
|
47
|
+
NotFoundError: () => NotFoundError7,
|
|
48
|
+
Permission: () => exports_permission,
|
|
49
49
|
Reply: () => Reply2,
|
|
50
50
|
ReplyInput: () => ReplyInput2,
|
|
51
51
|
Request: () => Request2,
|
|
52
|
-
Rule: () =>
|
|
52
|
+
Rule: () => Rule2,
|
|
53
53
|
Ruleset: () => Ruleset2,
|
|
54
|
-
Service: () =>
|
|
54
|
+
Service: () => Service62,
|
|
55
55
|
Source: () => Source5,
|
|
56
56
|
evaluate: () => evaluate2,
|
|
57
57
|
merge: () => merge2,
|
|
58
|
-
node: () =>
|
|
58
|
+
node: () => node65
|
|
59
59
|
});
|
|
60
60
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
61
61
|
import { Context, Deferred, Effect, Layer, Schema } from "effect";
|
|
62
62
|
import { Permission } from "@opencode/schema/permission";
|
|
63
|
-
import { Rule as
|
|
64
|
-
import { Event as
|
|
63
|
+
import { Rule as Rule2, Ruleset as Ruleset2 } from "@opencode/schema/permission";
|
|
64
|
+
import { Event as Event12 } from "@opencode/schema/permission";
|
|
65
65
|
var PermissionEffect = Permission.Effect;
|
|
66
66
|
var missingAgentPermissions = [{ action: "*", resource: "*", effect: "deny" }];
|
|
67
67
|
var ID7 = Permission.ID;
|
|
@@ -79,7 +79,7 @@ var Reply2 = Permission.Reply;
|
|
|
79
79
|
var AssertInput2 = Schema.Struct({
|
|
80
80
|
id: ID7.pipe(Schema.optional),
|
|
81
81
|
...RequestFields,
|
|
82
|
-
agent:
|
|
82
|
+
agent: ID9.pipe(Schema.optional)
|
|
83
83
|
}).annotate({ identifier: "Permission.AssertInput" });
|
|
84
84
|
var ReplyInput2 = Schema.Struct({
|
|
85
85
|
requestID: ID7,
|
|
@@ -110,7 +110,7 @@ class BlockedError2 extends Schema.TaggedError()("Permission.BlockedError", {
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
class
|
|
113
|
+
class NotFoundError7 extends Schema.TaggedError()("Permission.NotFoundError", {
|
|
114
114
|
requestID: ID7
|
|
115
115
|
}) {
|
|
116
116
|
}
|
|
@@ -125,15 +125,15 @@ function merge2(...rulesets) {
|
|
|
125
125
|
return rulesets.flat();
|
|
126
126
|
}
|
|
127
127
|
|
|
128
|
-
class
|
|
128
|
+
class Service62 extends Context.Service()("@opencode/Permission") {
|
|
129
129
|
}
|
|
130
|
-
var layer = Layer.effect(
|
|
130
|
+
var layer = Layer.effect(Service62, Effect.gen(function* () {
|
|
131
131
|
const bus = yield* Service85;
|
|
132
|
-
const location = yield*
|
|
133
|
-
const agents = yield*
|
|
134
|
-
const sessions = yield*
|
|
135
|
-
const saved = yield*
|
|
136
|
-
const hooks = yield*
|
|
132
|
+
const location = yield* Service82;
|
|
133
|
+
const agents = yield* Service65;
|
|
134
|
+
const sessions = yield* Service64;
|
|
135
|
+
const saved = yield* Service63;
|
|
136
|
+
const hooks = yield* Service76;
|
|
137
137
|
const pending = new Map;
|
|
138
138
|
let closed = false;
|
|
139
139
|
const close = Effect.gen(function* () {
|
|
@@ -156,7 +156,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
156
156
|
const configured = Effect.fnUntraced(function* (sessionID, agentID) {
|
|
157
157
|
const session = yield* sessions.get(sessionID);
|
|
158
158
|
if (!session)
|
|
159
|
-
return yield* new
|
|
159
|
+
return yield* new NotFoundError8({ sessionID });
|
|
160
160
|
const agent = yield* agents.resolve(agentID ?? session.agent);
|
|
161
161
|
return merge2(agent?.permissions ?? missingAgentPermissions, session.permissions ?? []);
|
|
162
162
|
});
|
|
@@ -242,7 +242,7 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
242
242
|
const reply = Effect.fn("Permission.reply")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
243
243
|
const existing = pending.get(input.requestID);
|
|
244
244
|
if (!existing)
|
|
245
|
-
return yield* new
|
|
245
|
+
return yield* new NotFoundError7({ requestID: input.requestID });
|
|
246
246
|
yield* bus.publish(Permission.Event.Replied, {
|
|
247
247
|
sessionID: existing.request.sessionID,
|
|
248
248
|
requestID: existing.request.id,
|
|
@@ -297,12 +297,12 @@ var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
|
297
297
|
const forSession = Effect.fn("Permission.forSession")(function* (sessionID) {
|
|
298
298
|
return Array.from(pending.values(), (item) => item.request).filter((request) => request.sessionID === sessionID);
|
|
299
299
|
});
|
|
300
|
-
return
|
|
300
|
+
return Service62.of({ ask, assert, reply, get, forSession, list, close });
|
|
301
301
|
}));
|
|
302
|
-
var
|
|
303
|
-
service:
|
|
302
|
+
var node65 = makeLocationNode({
|
|
303
|
+
service: Service62,
|
|
304
304
|
layer,
|
|
305
|
-
deps: [node89,
|
|
305
|
+
deps: [node89, node86, node68, node67, node66, node80]
|
|
306
306
|
});
|
|
307
307
|
|
|
308
|
-
export { PermissionEffect, ID7, Source5, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2,
|
|
308
|
+
export { PermissionEffect, ID7, Source5, Request2, Reply2, AssertInput2, ReplyInput2, AskResult2, DeclinedError2, CorrectedError2, BlockedError2, NotFoundError7, evaluate2, merge2, Service62, node65, exports_permission, Rule2, Ruleset2, Event12 };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID9,
|
|
3
3
|
Name3,
|
|
4
4
|
defaultID2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./file-mutation-s7p2cp87.js";
|
|
6
6
|
import {
|
|
7
7
|
__export
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
9
9
|
|
|
10
10
|
// src/plugin/agent.ts
|
|
11
11
|
var exports_agent2 = {};
|
|
12
12
|
__export(exports_agent2, {
|
|
13
13
|
AgentPlugin: () => exports_agent2,
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin33
|
|
15
15
|
});
|
|
16
16
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
17
17
|
import { Effect } from "effect";
|
|
@@ -81,7 +81,7 @@ Rules:
|
|
|
81
81
|
- Never ask questions or add new questions
|
|
82
82
|
- If the conversation ends with an unanswered question to the user, preserve that exact question
|
|
83
83
|
- If the conversation ends with an imperative statement or request to the user (e.g. "Now please run the command and paste the console output"), always include that exact request in the summary`;
|
|
84
|
-
var
|
|
84
|
+
var Plugin33 = define({
|
|
85
85
|
id: "opencode.agent",
|
|
86
86
|
effect: Effect.fn(function* (ctx) {
|
|
87
87
|
yield* ctx.agent.transform((editor) => {
|
|
@@ -91,32 +91,32 @@ var Plugin49 = define({
|
|
|
91
91
|
item.mode = "primary";
|
|
92
92
|
item.permissions.push({ action: "question", resource: "*", effect: "allow" });
|
|
93
93
|
});
|
|
94
|
-
editor.update(
|
|
94
|
+
editor.update(ID9.make("general"), (item) => {
|
|
95
95
|
item.name = Name3.make("General");
|
|
96
96
|
item.description = "General-purpose agent for researching complex questions and executing multi-step tasks. Use this agent to execute multiple units of work in parallel.";
|
|
97
97
|
item.mode = "subagent";
|
|
98
98
|
item.permissions.push({ action: "question", resource: "*", effect: "deny" }, { action: "subagent", resource: "*", effect: "deny" });
|
|
99
99
|
});
|
|
100
|
-
editor.update(
|
|
100
|
+
editor.update(ID9.make("explore"), (item) => {
|
|
101
101
|
item.name = Name3.make("Explore");
|
|
102
102
|
item.description = 'Fast agent specialized for exploring codebases. Use this when you need to quickly find files by patterns (eg. "src/components/**/*.tsx"), search code for keywords (eg. "API endpoints"), or answer questions about the codebase (eg. "how do API endpoints work?"). When calling this agent, specify the desired thoroughness level: "quick" for basic searches, "medium" for moderate exploration, or "very thorough" for comprehensive analysis across multiple locations and naming conventions.';
|
|
103
103
|
item.system = PROMPT_EXPLORE;
|
|
104
104
|
item.mode = "subagent";
|
|
105
105
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" }, { action: "shell", resource: "*", effect: "allow" }, { action: "grep", resource: "*", effect: "allow" }, { action: "glob", resource: "*", effect: "allow" }, { action: "webfetch", resource: "*", effect: "allow" }, { action: "websearch", resource: "*", effect: "allow" }, { action: "read", resource: "*", effect: "allow" }, { action: "read", resource: "*.env", effect: "ask" }, { action: "read", resource: "*.env.*", effect: "ask" }, { action: "read", resource: "*.env.example", effect: "allow" }, { action: "subagent", resource: "*", effect: "deny" }, { action: "external_directory", resource: "*", effect: "allow" });
|
|
106
106
|
});
|
|
107
|
-
editor.update(
|
|
107
|
+
editor.update(ID9.make("compaction"), (item) => {
|
|
108
108
|
item.name = Name3.make("Compaction");
|
|
109
109
|
item.mode = "primary";
|
|
110
110
|
item.hidden = true;
|
|
111
111
|
});
|
|
112
|
-
editor.update(
|
|
112
|
+
editor.update(ID9.make("title"), (item) => {
|
|
113
113
|
item.name = Name3.make("Title");
|
|
114
114
|
item.mode = "primary";
|
|
115
115
|
item.hidden = true;
|
|
116
116
|
item.system = PROMPT_TITLE;
|
|
117
117
|
item.permissions.push({ action: "*", resource: "*", effect: "deny" });
|
|
118
118
|
});
|
|
119
|
-
editor.update(
|
|
119
|
+
editor.update(ID9.make("summary"), (item) => {
|
|
120
120
|
item.name = Name3.make("Summary");
|
|
121
121
|
item.mode = "primary";
|
|
122
122
|
item.hidden = true;
|
|
@@ -127,4 +127,4 @@ var Plugin49 = define({
|
|
|
127
127
|
})
|
|
128
128
|
});
|
|
129
129
|
|
|
130
|
-
export {
|
|
130
|
+
export { Plugin33, exports_agent2 };
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./file-mutation-cba5y8md.js";
|
|
5
5
|
import {
|
|
6
6
|
SessionTable2,
|
|
7
7
|
SessionMessageTable2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./file-mutation-c1fqxshp.js";
|
|
9
9
|
import {
|
|
10
10
|
decodeMessageRow2,
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
load4
|
|
12
|
+
} from "./file-mutation-6b5qcyht.js";
|
|
13
13
|
import {
|
|
14
14
|
fromRow2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./file-mutation-5pyjqqve.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./file-mutation-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/session/store.ts
|
|
21
21
|
var exports_store = {};
|
|
22
22
|
__export(exports_store, {
|
|
23
23
|
ListInput: () => ListInput5,
|
|
24
|
-
Service: () =>
|
|
24
|
+
Service: () => Service64,
|
|
25
25
|
SessionStore: () => exports_store,
|
|
26
|
-
node: () =>
|
|
26
|
+
node: () => node67
|
|
27
27
|
});
|
|
28
28
|
import { and, asc, desc, eq, gt, isNotNull, isNull, like, lt, notInArray, or, sql } from "drizzle-orm";
|
|
29
29
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -52,11 +52,11 @@ var ListProjectInput = Schema.Struct({
|
|
|
52
52
|
var ListAllInput = Schema.Struct(ListInputBase);
|
|
53
53
|
var ListInput5 = Schema.Union([ListDirectoryInput, ListProjectInput, ListAllInput]);
|
|
54
54
|
|
|
55
|
-
class
|
|
55
|
+
class Service64 extends Context.Service()("@opencode/SessionStore") {
|
|
56
56
|
}
|
|
57
|
-
var layer = Layer.effect(
|
|
57
|
+
var layer = Layer.effect(Service64, Effect.gen(function* () {
|
|
58
58
|
const { db } = yield* Service86;
|
|
59
|
-
return
|
|
59
|
+
return Service64.of({
|
|
60
60
|
get: Effect.fnUntraced(function* (sessionID) {
|
|
61
61
|
const row = yield* db.select().from(SessionTable2).where(eq(SessionTable2.id, sessionID)).get().pipe(Effect.orDie);
|
|
62
62
|
return row ? fromRow2(row) : undefined;
|
|
@@ -98,7 +98,7 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
98
98
|
const rows = yield* (input.limit === undefined ? query.all() : query.limit(input.limit).all()).pipe(Effect.orDie);
|
|
99
99
|
return yield* Effect.forEach(direction === "previous" ? rows.toReversed() : rows, decodeMessageRow2);
|
|
100
100
|
}),
|
|
101
|
-
context: Effect.fn("SessionStore.context")((sessionID) =>
|
|
101
|
+
context: Effect.fn("SessionStore.context")((sessionID) => load4(db, sessionID, "latest")),
|
|
102
102
|
message: Effect.fn("SessionStore.message")(function* (messageID) {
|
|
103
103
|
const row = yield* db.select().from(SessionMessageTable2).where(eq(SessionMessageTable2.id, messageID)).get().pipe(Effect.orDie);
|
|
104
104
|
return row ? {
|
|
@@ -125,6 +125,6 @@ var layer = Layer.effect(Service68, Effect.gen(function* () {
|
|
|
125
125
|
})
|
|
126
126
|
});
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node67 = makeGlobalNode({ service: Service64, layer, deps: [node90] });
|
|
129
129
|
|
|
130
|
-
export { ListInput5,
|
|
130
|
+
export { ListInput5, Service64, node67, exports_store };
|