@opencode/core 0.0.0-dev-21681 → 0.0.0-dev-21685
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/account/sql.js +1 -1
- package/dist/agent.js +83 -83
- package/dist/aisdk-native.js +91 -91
- package/dist/aisdk.js +97 -97
- package/dist/app.js +3 -3
- package/dist/bus.js +71 -71
- package/dist/chunks/{ripgrep-45zwd69n.js → instruction-discovery-02rpsdwq.js} +39 -39
- package/dist/chunks/{ripgrep-034tev2y.js → instruction-discovery-034tev2y.js} +2 -2
- package/dist/chunks/{ripgrep-xzvgcsw6.js → instruction-discovery-06hkf91z.js} +7 -7
- package/dist/chunks/{ripgrep-jxr5ks98.js → instruction-discovery-06tsrf37.js} +6 -6
- package/dist/chunks/{ripgrep-2sj7hqj2.js → instruction-discovery-0bfbh6xc.js} +28 -28
- package/dist/chunks/{ripgrep-dk5xnaxx.js → instruction-discovery-0p88zpcm.js} +4 -4
- package/dist/chunks/{ripgrep-4ssvmfsy.js → instruction-discovery-0z1qyetw.js} +13 -13
- package/dist/chunks/{ripgrep-sgywbgaj.js → instruction-discovery-1590c3s1.js} +31 -31
- package/dist/chunks/{ripgrep-1ep2p91f.js → instruction-discovery-1ep2p91f.js} +2 -2
- package/dist/chunks/{ripgrep-9b28cy4d.js → instruction-discovery-1vdntpm3.js} +5 -5
- package/dist/chunks/{ripgrep-1x2knyw4.js → instruction-discovery-1x2knyw4.js} +1 -1
- package/dist/chunks/{ripgrep-173t91w5.js → instruction-discovery-1y0wdj51.js} +4 -4
- package/dist/chunks/{ripgrep-bf166mt2.js → instruction-discovery-1y33b0wd.js} +26 -26
- package/dist/chunks/{ripgrep-tasvem1v.js → instruction-discovery-1z6jjy5p.js} +3 -3
- package/dist/chunks/{ripgrep-vb6v44n7.js → instruction-discovery-211y70yv.js} +17 -17
- package/dist/chunks/{ripgrep-rxrz6b15.js → instruction-discovery-27bs79w9.js} +2 -2
- package/dist/chunks/{ripgrep-r1h56z6d.js → instruction-discovery-2cckbrxm.js} +13 -13
- package/dist/chunks/{ripgrep-m1tk4nd6.js → instruction-discovery-2gy537ph.js} +40 -40
- package/dist/chunks/{ripgrep-hyjk9r55.js → instruction-discovery-2hbzz1h7.js} +20 -20
- package/dist/chunks/{ripgrep-qh12k8gp.js → instruction-discovery-2ns20q01.js} +1 -1
- package/dist/chunks/{ripgrep-8bm7axdr.js → instruction-discovery-2xdd02fb.js} +11 -11
- package/dist/chunks/{ripgrep-2z1j29yd.js → instruction-discovery-2z1j29yd.js} +1 -1
- package/dist/chunks/{ripgrep-zssrpzfh.js → instruction-discovery-30nw9pfg.js} +67 -67
- package/dist/chunks/{ripgrep-msfasjrs.js → instruction-discovery-32b2d01b.js} +18 -18
- package/dist/chunks/{ripgrep-dvg9k2dh.js → instruction-discovery-39ebgr3a.js} +26 -26
- package/dist/chunks/{ripgrep-3kk2jwp7.js → instruction-discovery-3c7qpzd7.js} +8 -8
- package/dist/chunks/{ripgrep-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{ripgrep-3nnrz6f6.js → instruction-discovery-3nnrz6f6.js} +1 -1
- package/dist/chunks/{ripgrep-s2p2k57b.js → instruction-discovery-45keak5f.js} +15 -15
- package/dist/chunks/{ripgrep-69qhactm.js → instruction-discovery-4bg9qwqs.js} +3 -3
- package/dist/chunks/{ripgrep-sda31fcg.js → instruction-discovery-4c7nxy6x.js} +29 -29
- package/dist/chunks/{ripgrep-3gzarg29.js → instruction-discovery-4g0xe90t.js} +10 -10
- package/dist/chunks/{ripgrep-gb9ye6vs.js → instruction-discovery-4kg35d6f.js} +19 -19
- package/dist/chunks/{ripgrep-4v008n1t.js → instruction-discovery-4v008n1t.js} +1 -1
- package/dist/chunks/{ripgrep-j3eb93p8.js → instruction-discovery-4v651skh.js} +34 -34
- package/dist/chunks/{ripgrep-4xvmh7wp.js → instruction-discovery-4xvmh7wp.js} +3 -3
- package/dist/chunks/{ripgrep-atet4mee.js → instruction-discovery-4z0we31x.js} +14 -14
- package/dist/chunks/{ripgrep-1kzr7jgm.js → instruction-discovery-530caf3d.js} +14 -14
- package/dist/chunks/{ripgrep-0w2ve4np.js → instruction-discovery-54m57xnc.js} +28 -28
- package/dist/chunks/{ripgrep-cza8pqvg.js → instruction-discovery-5e17hjwv.js} +9 -9
- package/dist/chunks/{ripgrep-40za9wsf.js → instruction-discovery-5enarcya.js} +6 -6
- package/dist/chunks/{ripgrep-1m0sdz90.js → instruction-discovery-5hwp3mnm.js} +43 -43
- package/dist/chunks/{ripgrep-5m9w47nd.js → instruction-discovery-5m9w47nd.js} +1 -1
- package/dist/chunks/{ripgrep-b6vsg801.js → instruction-discovery-5nnwax6m.js} +5 -5
- package/dist/chunks/{ripgrep-yh0e7xz8.js → instruction-discovery-5vmx498f.js} +32 -32
- package/dist/chunks/{ripgrep-r991pz9h.js → instruction-discovery-5wwswtpf.js} +20 -20
- package/dist/chunks/{ripgrep-cvdn796p.js → instruction-discovery-5xya02hf.js} +14 -14
- package/dist/chunks/{ripgrep-yyjmamy7.js → instruction-discovery-6e8867gw.js} +16 -16
- package/dist/chunks/{ripgrep-6esdw8yj.js → instruction-discovery-6esdw8yj.js} +1 -1
- package/dist/chunks/{ripgrep-k5aja770.js → instruction-discovery-6fcb95c6.js} +8 -8
- package/dist/chunks/{ripgrep-wnvea4fe.js → instruction-discovery-6hkx6zh1.js} +8 -8
- package/dist/chunks/{ripgrep-bqwdyg2t.js → instruction-discovery-6kakegn7.js} +9 -9
- package/dist/chunks/{ripgrep-rgsds9qv.js → instruction-discovery-6np17vve.js} +11 -11
- package/dist/chunks/{ripgrep-6pjqjmy2.js → instruction-discovery-6pjqjmy2.js} +1 -1
- package/dist/chunks/{ripgrep-pef6w6b4.js → instruction-discovery-6t1nvg56.js} +19 -19
- package/dist/chunks/{ripgrep-6nracgmf.js → instruction-discovery-6xe6qe1z.js} +196 -196
- package/dist/chunks/{ripgrep-wj025wy7.js → instruction-discovery-7066n3mz.js} +4 -4
- package/dist/chunks/{ripgrep-nbsqgbhj.js → instruction-discovery-744ctw13.js} +25 -25
- package/dist/chunks/{ripgrep-ye7j7sbs.js → instruction-discovery-769y8set.js} +32 -32
- package/dist/chunks/{ripgrep-8cpd998p.js → instruction-discovery-77afn72v.js} +13 -13
- package/dist/chunks/{ripgrep-tpm1qpxt.js → instruction-discovery-799ckdtf.js} +9 -9
- package/dist/chunks/{ripgrep-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{ripgrep-0t2h4nxf.js → instruction-discovery-7njvtxjk.js} +5 -5
- package/dist/chunks/{ripgrep-7w2ypzdf.js → instruction-discovery-7w2ypzdf.js} +1 -1
- package/dist/chunks/instruction-discovery-83cry12x.js +26 -0
- package/dist/chunks/{ripgrep-d4ctf4tn.js → instruction-discovery-895h3qj5.js} +4 -4
- package/dist/chunks/{ripgrep-rvr9nrxj.js → instruction-discovery-8e6vbpwd.js} +18 -18
- package/dist/chunks/{ripgrep-favmj1rd.js → instruction-discovery-8ev1pcqt.js} +4 -4
- package/dist/chunks/{ripgrep-7kqnvg9k.js → instruction-discovery-8hsv30j4.js} +20 -20
- package/dist/chunks/{ripgrep-8wtp7s3z.js → instruction-discovery-8wtp7s3z.js} +1 -1
- package/dist/chunks/{ripgrep-g1d2dsmd.js → instruction-discovery-917zkqw6.js} +13 -13
- package/dist/chunks/{ripgrep-91rj84md.js → instruction-discovery-91rj84md.js} +1 -1
- package/dist/chunks/{ripgrep-cxsv7r2q.js → instruction-discovery-91vtnk5e.js} +16 -16
- package/dist/chunks/{ripgrep-6xjhb3qk.js → instruction-discovery-94dxmxj3.js} +12 -12
- package/dist/chunks/{ripgrep-0gka690g.js → instruction-discovery-956c56jz.js} +2 -2
- package/dist/chunks/{ripgrep-19nkwpt0.js → instruction-discovery-976c7xh0.js} +17 -17
- package/dist/chunks/{ripgrep-998yhzzq.js → instruction-discovery-998yhzzq.js} +3 -3
- package/dist/chunks/{ripgrep-tnf39wvh.js → instruction-discovery-9btmn35n.js} +46 -46
- package/dist/chunks/{ripgrep-rzbnf15d.js → instruction-discovery-9efckeb8.js} +14 -14
- package/dist/chunks/{ripgrep-mbaagm2q.js → instruction-discovery-9jjdx8qq.js} +28 -28
- package/dist/chunks/{ripgrep-g15zpze4.js → instruction-discovery-9sd5yz6g.js} +23 -23
- package/dist/chunks/{ripgrep-2c9g8tdm.js → instruction-discovery-a1s9yrff.js} +16 -16
- package/dist/chunks/{ripgrep-vdsdnjgz.js → instruction-discovery-a2a47mdn.js} +18 -18
- package/dist/chunks/{ripgrep-cc3tw12v.js → instruction-discovery-afd6s2pj.js} +6 -6
- package/dist/chunks/{ripgrep-k1yj6xhg.js → instruction-discovery-arhpxcwy.js} +19 -19
- package/dist/chunks/{ripgrep-ebjg363t.js → instruction-discovery-asbvzmdg.js} +1 -1
- package/dist/chunks/{ripgrep-ab2zewxm.js → instruction-discovery-ax3f0566.js} +11 -11
- package/dist/chunks/{ripgrep-zpmv8s4j.js → instruction-discovery-axxxggh9.js} +3 -3
- package/dist/chunks/{ripgrep-ayjs7tqn.js → instruction-discovery-ayjs7tqn.js} +2 -2
- package/dist/chunks/{ripgrep-6cmhwkbz.js → instruction-discovery-azzb4j7n.js} +9 -9
- package/dist/chunks/{ripgrep-b0mv4wxm.js → instruction-discovery-b0mv4wxm.js} +2 -2
- package/dist/chunks/{ripgrep-n6v2b7cw.js → instruction-discovery-b50rsrab.js} +5 -5
- package/dist/chunks/{ripgrep-d1v2vbzt.js → instruction-discovery-bjhzkqyk.js} +4 -4
- package/dist/chunks/{ripgrep-mvt93af7.js → instruction-discovery-btwbdc9d.js} +26 -26
- package/dist/chunks/{ripgrep-7za0dwv2.js → instruction-discovery-bxjrsr3w.js} +7 -7
- package/dist/chunks/{ripgrep-9562mf0m.js → instruction-discovery-c3cfh5w6.js} +9 -9
- package/dist/chunks/{ripgrep-aeb4sny1.js → instruction-discovery-c5c0bz0t.js} +5 -5
- package/dist/chunks/{ripgrep-s62g5239.js → instruction-discovery-c75qkfpz.js} +47 -47
- package/dist/chunks/{ripgrep-kya6vn2v.js → instruction-discovery-c8m57xn7.js} +6 -6
- package/dist/chunks/{ripgrep-310tqm6v.js → instruction-discovery-cyq9fb3q.js} +4 -4
- package/dist/chunks/{ripgrep-d2887f8n.js → instruction-discovery-d2887f8n.js} +1 -1
- package/dist/chunks/{ripgrep-d4v9tmah.js → instruction-discovery-d4v9tmah.js} +2 -2
- package/dist/chunks/{ripgrep-77w2yzyb.js → instruction-discovery-d5xa8env.js} +11 -11
- package/dist/chunks/{ripgrep-jfy2z3aw.js → instruction-discovery-dacekyg1.js} +21 -21
- package/dist/chunks/{ripgrep-41scb8pj.js → instruction-discovery-dgj4ks8n.js} +21 -21
- package/dist/chunks/{ripgrep-033a0jkt.js → instruction-discovery-dh62xe4r.js} +3 -3
- package/dist/chunks/{ripgrep-k47d96va.js → instruction-discovery-dsgd38cz.js} +10 -10
- package/dist/chunks/{ripgrep-zs0pprga.js → instruction-discovery-dtq3ahye.js} +32 -32
- package/dist/chunks/{ripgrep-5yps8vga.js → instruction-discovery-dvte4szm.js} +5 -5
- package/dist/chunks/{ripgrep-ky596kc3.js → instruction-discovery-e45fk36t.js} +4 -4
- package/dist/chunks/{ripgrep-xyh4h3t6.js → instruction-discovery-e47h3fva.js} +3 -3
- package/dist/chunks/{ripgrep-jchrqzf6.js → instruction-discovery-e5dqjz6v.js} +4 -4
- package/dist/chunks/{ripgrep-ev4vjjv8.js → instruction-discovery-e7ha8gsg.js} +12 -12
- package/dist/chunks/{ripgrep-e834z07m.js → instruction-discovery-e834z07m.js} +1 -1
- package/dist/chunks/{ripgrep-30v5g7xx.js → instruction-discovery-ecqm0jsy.js} +5 -5
- package/dist/chunks/{ripgrep-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{ripgrep-4fjhw8k6.js → instruction-discovery-en1fsfyg.js} +6 -6
- package/dist/chunks/{ripgrep-qqtfakpy.js → instruction-discovery-eqfewtt2.js} +13 -13
- package/dist/chunks/{ripgrep-a17pc1jp.js → instruction-discovery-ezb8g5mg.js} +6 -6
- package/dist/chunks/{ripgrep-txe6hs0a.js → instruction-discovery-f2tyvzem.js} +8 -8
- package/dist/chunks/{ripgrep-bayr563p.js → instruction-discovery-f4p9w5yx.js} +16 -16
- package/dist/chunks/{ripgrep-x3h41a9f.js → instruction-discovery-f6s8y378.js} +7 -7
- package/dist/chunks/{ripgrep-fffv3p7h.js → instruction-discovery-fffv3p7h.js} +1 -1
- package/dist/chunks/{ripgrep-sxnrxfca.js → instruction-discovery-fhrrk2wn.js} +17 -17
- package/dist/chunks/{ripgrep-dsnzvv9e.js → instruction-discovery-fnnrv9gt.js} +4 -4
- package/dist/chunks/{ripgrep-r4zhn8a3.js → instruction-discovery-g1xkvxp8.js} +8 -8
- package/dist/chunks/{ripgrep-g5h9c0rr.js → instruction-discovery-g5h9c0rr.js} +2 -2
- package/dist/chunks/{ripgrep-drxfbsjt.js → instruction-discovery-ga3f1nea.js} +19 -19
- package/dist/chunks/{ripgrep-r2nqe40b.js → instruction-discovery-gdv3e3ns.js} +14 -14
- package/dist/chunks/{ripgrep-vtz4zgjw.js → instruction-discovery-gfxq0zq2.js} +9 -9
- package/dist/chunks/{ripgrep-z6mg6m9w.js → instruction-discovery-ggb9x9sh.js} +4 -4
- package/dist/chunks/{ripgrep-tdzaz51m.js → instruction-discovery-gqz3wpgd.js} +11 -11
- package/dist/chunks/{ripgrep-7hw2cvx7.js → instruction-discovery-grxvpwc8.js} +27 -27
- package/dist/chunks/{ripgrep-f4wjqfv3.js → instruction-discovery-gxe7mkgn.js} +11 -11
- package/dist/chunks/{ripgrep-q5ksxkha.js → instruction-discovery-h4p3pyf8.js} +6 -6
- package/dist/chunks/instruction-discovery-hcne681p.js +257 -0
- package/dist/chunks/{ripgrep-m1qkddhn.js → instruction-discovery-hetnczqw.js} +2 -2
- package/dist/chunks/{ripgrep-h3r7ht18.js → instruction-discovery-hj5ewp7g.js} +34 -34
- package/dist/chunks/{ripgrep-npgkeycb.js → instruction-discovery-hnypkknm.js} +14 -14
- package/dist/chunks/{ripgrep-heq6tkdz.js → instruction-discovery-hsex03fq.js} +15 -15
- package/dist/chunks/{ripgrep-qaxt5sce.js → instruction-discovery-htnm7734.js} +4 -4
- package/dist/chunks/{ripgrep-tg1vr1qt.js → instruction-discovery-hw621kav.js} +8 -8
- package/dist/chunks/{ripgrep-ny49cbs5.js → instruction-discovery-hwackvbn.js} +33 -33
- package/dist/chunks/{ripgrep-j113cymg.js → instruction-discovery-j113cymg.js} +1 -1
- package/dist/chunks/{ripgrep-k28jwpmn.js → instruction-discovery-j17fdswx.js} +1 -1
- package/dist/chunks/{ripgrep-ygj7qvsn.js → instruction-discovery-j4c7ztsh.js} +30 -30
- package/dist/chunks/{ripgrep-a8m490ta.js → instruction-discovery-j76t8jdc.js} +50 -50
- package/dist/chunks/{ripgrep-73h6c5mr.js → instruction-discovery-jas4yhkp.js} +11 -11
- package/dist/chunks/{ripgrep-0xt5rh38.js → instruction-discovery-jd4w9jy7.js} +10 -10
- package/dist/chunks/{ripgrep-zjner7m4.js → instruction-discovery-jp3vw6vz.js} +11 -11
- package/dist/chunks/{ripgrep-he4vfjva.js → instruction-discovery-jppsgv8k.js} +28 -28
- package/dist/chunks/{ripgrep-g9ndtp1p.js → instruction-discovery-jy2czfqv.js} +4 -4
- package/dist/chunks/{ripgrep-pj2bksq9.js → instruction-discovery-jz5grvbc.js} +7 -7
- package/dist/chunks/{ripgrep-pw806jn0.js → instruction-discovery-jzfegvfv.js} +20 -20
- package/dist/chunks/{ripgrep-k814nvkf.js → instruction-discovery-k814nvkf.js} +1 -1
- package/dist/chunks/{ripgrep-95gg0e1q.js → instruction-discovery-ka0113cw.js} +20 -20
- package/dist/chunks/{ripgrep-kd1werbb.js → instruction-discovery-kam2skhz.js} +10 -10
- package/dist/chunks/{ripgrep-gybx331m.js → instruction-discovery-kawh22nd.js} +18 -18
- package/dist/chunks/{ripgrep-sfw989kw.js → instruction-discovery-kkvzkess.js} +2 -2
- package/dist/chunks/{ripgrep-t9q01d30.js → instruction-discovery-ksdwf8r1.js} +23 -23
- package/dist/chunks/{ripgrep-9ejpa58f.js → instruction-discovery-kw6kdjw7.js} +5 -5
- package/dist/chunks/{ripgrep-m1714858.js → instruction-discovery-m1714858.js} +1 -1
- package/dist/chunks/{ripgrep-vmfhgzt5.js → instruction-discovery-m37sd98t.js} +4 -4
- package/dist/chunks/{ripgrep-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{ripgrep-maspj1v3.js → instruction-discovery-maspj1v3.js} +1 -1
- package/dist/chunks/{ripgrep-q6v380sb.js → instruction-discovery-mfwfc967.js} +12 -12
- package/dist/chunks/{ripgrep-a1tbznxp.js → instruction-discovery-mghkatew.js} +14 -14
- package/dist/chunks/{ripgrep-5as2v2bz.js → instruction-discovery-mhgesy0s.js} +11 -11
- package/dist/chunks/{ripgrep-3mzdfzhq.js → instruction-discovery-mpa2ejqj.js} +3 -3
- package/dist/chunks/instruction-discovery-mrc3e54s.js +523 -0
- package/dist/chunks/{ripgrep-n0p0277s.js → instruction-discovery-n0p0277s.js} +1 -1
- package/dist/chunks/{ripgrep-6cg3ssar.js → instruction-discovery-n40jn0ye.js} +32 -32
- package/dist/chunks/{ripgrep-mxf70ac4.js → instruction-discovery-n58eb8yn.js} +4 -4
- package/dist/chunks/{ripgrep-pb1qprq3.js → instruction-discovery-n8ytzayn.js} +22 -22
- package/dist/chunks/{ripgrep-770pw0s1.js → instruction-discovery-nah043kf.js} +4 -4
- package/dist/chunks/{ripgrep-d2455waf.js → instruction-discovery-nr3623c1.js} +23 -23
- package/dist/chunks/{ripgrep-jrcyk1qp.js → instruction-discovery-nrybcd8t.js} +48 -48
- package/dist/chunks/{ripgrep-7nn3h2cy.js → instruction-discovery-nwed43a8.js} +35 -35
- package/dist/chunks/{ripgrep-vgjn3sfz.js → instruction-discovery-nzjpq5nr.js} +8 -8
- package/dist/chunks/{ripgrep-p015t6z3.js → instruction-discovery-p015t6z3.js} +2 -2
- package/dist/chunks/{ripgrep-y4vtynzt.js → instruction-discovery-p16pb49z.js} +17 -17
- package/dist/chunks/{ripgrep-pyrm1t89.js → instruction-discovery-p6f33tkb.js} +21 -21
- package/dist/chunks/{ripgrep-p7vhpwh8.js → instruction-discovery-p7vhpwh8.js} +1 -1
- package/dist/chunks/{ripgrep-g33nfd42.js → instruction-discovery-p8mgpvfs.js} +9 -9
- package/dist/chunks/{ripgrep-j7xyg8fd.js → instruction-discovery-pazke3n5.js} +28 -28
- package/dist/chunks/{ripgrep-bsxvja55.js → instruction-discovery-pchh79h1.js} +18 -18
- package/dist/chunks/{ripgrep-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{ripgrep-kp2rkay2.js → instruction-discovery-pndg7662.js} +23 -23
- package/dist/chunks/{ripgrep-w2c2mnmy.js → instruction-discovery-ptd3w0tf.js} +17 -17
- package/dist/chunks/{ripgrep-5xp2x48q.js → instruction-discovery-ptzd8h59.js} +50 -50
- package/dist/chunks/{ripgrep-qj3jeqzz.js → instruction-discovery-pw0xvpce.js} +56 -56
- package/dist/chunks/{ripgrep-mrcj6822.js → instruction-discovery-q0yh9qyr.js} +4 -4
- package/dist/chunks/{ripgrep-ycgbrrj2.js → instruction-discovery-qh1vdqqc.js} +11 -11
- package/dist/chunks/{ripgrep-qjgzc4b4.js → instruction-discovery-qjgzc4b4.js} +1 -1
- package/dist/chunks/{ripgrep-wy7xqtjs.js → instruction-discovery-qjne94dq.js} +33 -33
- package/dist/chunks/instruction-discovery-qmh7vbk2.js +18 -0
- package/dist/chunks/{ripgrep-jpqadng4.js → instruction-discovery-qwqr63vh.js} +17 -17
- package/dist/chunks/{ripgrep-50vfe0ee.js → instruction-discovery-qybjhjrg.js} +28 -28
- package/dist/chunks/{ripgrep-r0yr0wbs.js → instruction-discovery-r0yr0wbs.js} +1 -1
- package/dist/chunks/{ripgrep-6p7ksc7d.js → instruction-discovery-r44rfmgw.js} +14 -14
- package/dist/chunks/{ripgrep-jkacm1w4.js → instruction-discovery-r47an33t.js} +3 -3
- package/dist/chunks/{ripgrep-tdd1rwdg.js → instruction-discovery-r7tcy11j.js} +5 -5
- package/dist/chunks/{ripgrep-rb9dy4dg.js → instruction-discovery-rb9dy4dg.js} +1 -1
- package/dist/chunks/{ripgrep-94drbbkf.js → instruction-discovery-revxvk9s.js} +28 -28
- package/dist/chunks/{ripgrep-1b015yat.js → instruction-discovery-rfs27yzd.js} +11 -11
- package/dist/chunks/{ripgrep-fhbtev1x.js → instruction-discovery-rgv8ccnj.js} +21 -21
- package/dist/chunks/{ripgrep-j5e0tcqv.js → instruction-discovery-rmt6m6se.js} +9 -9
- package/dist/chunks/{ripgrep-r96bqt38.js → instruction-discovery-rp1ha6gz.js} +7 -7
- package/dist/chunks/{ripgrep-0bzett23.js → instruction-discovery-rqmvfmcr.js} +17 -17
- package/dist/chunks/{ripgrep-rt5dr6hb.js → instruction-discovery-rt5dr6hb.js} +1 -1
- package/dist/chunks/{ripgrep-wg9ke37f.js → instruction-discovery-rx02erg5.js} +35 -35
- package/dist/chunks/{ripgrep-k60h0mqe.js → instruction-discovery-s1fwbtwx.js} +15 -15
- package/dist/chunks/{ripgrep-rwvswa9y.js → instruction-discovery-s2pfznc4.js} +6 -6
- package/dist/chunks/{ripgrep-8yamfpxb.js → instruction-discovery-s4gh6t7c.js} +32 -32
- package/dist/chunks/{ripgrep-rjb5m6wk.js → instruction-discovery-s866dxyg.js} +21 -21
- package/dist/chunks/{ripgrep-2j72hntm.js → instruction-discovery-s91x7ka3.js} +21 -21
- package/dist/chunks/{ripgrep-3g7mg7sy.js → instruction-discovery-s9z6tqcd.js} +15 -15
- package/dist/chunks/{ripgrep-ht9phm2k.js → instruction-discovery-sfpq3tbz.js} +5 -5
- package/dist/chunks/{ripgrep-vtr9dtkz.js → instruction-discovery-sgr7cxxz.js} +13 -13
- package/dist/chunks/{ripgrep-mnad9545.js → instruction-discovery-sn8kn0k4.js} +45 -45
- package/dist/chunks/{ripgrep-1gn07jkh.js → instruction-discovery-snzpnf52.js} +47 -47
- package/dist/chunks/{ripgrep-jae53m2x.js → instruction-discovery-spa8vgy8.js} +8 -8
- package/dist/chunks/{ripgrep-sqjzf8x2.js → instruction-discovery-sqjzf8x2.js} +1 -1
- package/dist/chunks/{ripgrep-sp56zrrh.js → instruction-discovery-sqks5mt8.js} +33 -33
- package/dist/chunks/{ripgrep-qvw98tg0.js → instruction-discovery-sv2aw4yq.js} +5 -5
- package/dist/chunks/{ripgrep-jnztxn4f.js → instruction-discovery-sxbjjvas.js} +24 -24
- package/dist/chunks/{ripgrep-wmjzvx4b.js → instruction-discovery-t211gxpv.js} +4 -4
- package/dist/chunks/{ripgrep-e70s01gt.js → instruction-discovery-t7npxncv.js} +10 -10
- package/dist/chunks/{ripgrep-w7svd9fv.js → instruction-discovery-t7sqmb9b.js} +24 -24
- package/dist/chunks/{ripgrep-s0kw0bab.js → instruction-discovery-taw06fa3.js} +21 -21
- package/dist/chunks/{ripgrep-883mde3e.js → instruction-discovery-tbr3q4wq.js} +42 -42
- package/dist/chunks/{ripgrep-tczq8hjw.js → instruction-discovery-tczq8hjw.js} +1 -1
- package/dist/chunks/{ripgrep-7dbx9kd5.js → instruction-discovery-ths2029g.js} +18 -18
- package/dist/chunks/{ripgrep-6w73wc21.js → instruction-discovery-tvqpdctp.js} +17 -17
- package/dist/chunks/{ripgrep-tw8zr1ps.js → instruction-discovery-tw8zr1ps.js} +1 -1
- package/dist/chunks/{ripgrep-1fxyteqg.js → instruction-discovery-twhjf934.js} +89 -89
- package/dist/chunks/{ripgrep-twv2r8f4.js → instruction-discovery-twv2r8f4.js} +2 -2
- package/dist/chunks/{ripgrep-jqy0757m.js → instruction-discovery-tzjzgnfr.js} +10 -10
- package/dist/chunks/{ripgrep-4fht16ez.js → instruction-discovery-v15rxc3h.js} +33 -33
- package/dist/chunks/{ripgrep-v2r1d0zg.js → instruction-discovery-v2r1d0zg.js} +1 -1
- package/dist/chunks/{ripgrep-vd3b3yk9.js → instruction-discovery-vd3b3yk9.js} +1 -1
- package/dist/chunks/{ripgrep-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{ripgrep-2553426h.js → instruction-discovery-vh9wejw9.js} +42 -42
- package/dist/chunks/{ripgrep-kxt91f54.js → instruction-discovery-vkmt8npp.js} +33 -33
- package/dist/chunks/{ripgrep-c4fe50v7.js → instruction-discovery-vt5qfbts.js} +4 -4
- package/dist/chunks/{ripgrep-294s6qh9.js → instruction-discovery-vwrkd0tw.js} +14 -14
- package/dist/chunks/{ripgrep-hzrfc1p4.js → instruction-discovery-vx3jgdek.js} +3 -3
- package/dist/chunks/{ripgrep-xwxay0k0.js → instruction-discovery-w3qk2d3s.js} +35 -35
- package/dist/chunks/{ripgrep-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{ripgrep-w687dnns.js → instruction-discovery-w687dnns.js} +1 -1
- package/dist/chunks/{ripgrep-76cb1hcw.js → instruction-discovery-w8qtt4th.js} +4 -4
- package/dist/chunks/{ripgrep-wakvkjy4.js → instruction-discovery-wakvkjy4.js} +1 -1
- package/dist/chunks/{ripgrep-40xdmnq6.js → instruction-discovery-wc1rrhfs.js} +37 -37
- package/dist/chunks/{ripgrep-5g9sd2wr.js → instruction-discovery-wd0mghyc.js} +5 -5
- package/dist/chunks/{ripgrep-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{ripgrep-94ggdtye.js → instruction-discovery-wexbz3y3.js} +10 -10
- package/dist/chunks/{ripgrep-m7t05s3q.js → instruction-discovery-wn0pby43.js} +7 -7
- package/dist/chunks/{ripgrep-6cjq3rwx.js → instruction-discovery-wnvrcxtc.js} +14 -14
- package/dist/chunks/{ripgrep-dj23h38q.js → instruction-discovery-wp1vb0e3.js} +20 -20
- package/dist/chunks/{ripgrep-fx9xfnkv.js → instruction-discovery-wqbj2nsw.js} +9 -9
- package/dist/chunks/{ripgrep-bt7pct3b.js → instruction-discovery-wvpfhzx7.js} +21 -21
- package/dist/chunks/{ripgrep-y5qe5mc0.js → instruction-discovery-wyr759tm.js} +19 -19
- package/dist/chunks/{ripgrep-vd41439j.js → instruction-discovery-wz66500m.js} +18 -18
- package/dist/chunks/{ripgrep-xngkbgfx.js → instruction-discovery-x10b8zya.js} +15 -15
- package/dist/chunks/{ripgrep-cckz6hvv.js → instruction-discovery-x1g9xmqt.js} +16 -16
- package/dist/chunks/{ripgrep-rvv5zxkv.js → instruction-discovery-x4y0yvq7.js} +7 -7
- package/dist/chunks/{ripgrep-fkjeaz1p.js → instruction-discovery-xak61r58.js} +89 -89
- package/dist/chunks/{ripgrep-gk7y8xcq.js → instruction-discovery-xaz7g2t8.js} +4 -4
- package/dist/chunks/{ripgrep-bstexjd6.js → instruction-discovery-xd9cc171.js} +5 -5
- package/dist/chunks/{ripgrep-aqb8zn2t.js → instruction-discovery-xk1htaes.js} +32 -32
- package/dist/chunks/{ripgrep-yb20nhc3.js → instruction-discovery-yb20nhc3.js} +1 -1
- package/dist/chunks/{ripgrep-6paamakb.js → instruction-discovery-ykdavcmn.js} +11 -11
- package/dist/chunks/{ripgrep-bkwbn9k7.js → instruction-discovery-yye1fjts.js} +12 -12
- package/dist/chunks/{ripgrep-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{ripgrep-z38nccrw.js → instruction-discovery-z38nccrw.js} +1 -1
- package/dist/chunks/{ripgrep-2k3taesa.js → instruction-discovery-z5wdff31.js} +11 -11
- package/dist/chunks/{ripgrep-8krb2gbb.js → instruction-discovery-zhfftf23.js} +9 -9
- package/dist/chunks/{ripgrep-zkg84ctx.js → instruction-discovery-zkg84ctx.js} +1 -1
- package/dist/chunks/{ripgrep-8922dvha.js → instruction-discovery-znvxebx5.js} +18 -18
- package/dist/chunks/{ripgrep-p0e8hqgq.js → instruction-discovery-zxb8j96g.js} +35 -35
- package/dist/chunks/{ripgrep-f80yq6ab.js → instruction-discovery-zy3qe4qg.js} +11 -11
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +7 -7
- 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 +118 -118
- package/dist/config/plugin/command.js +214 -214
- package/dist/config/plugin/compaction.js +155 -155
- package/dist/config/plugin/compatibility.js +135 -135
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +117 -117
- package/dist/config/plugin/image.js +116 -116
- package/dist/config/plugin/instruction.js +116 -116
- package/dist/config/plugin/location-watcher.js +118 -118
- package/dist/config/plugin/mcp.js +125 -125
- package/dist/config/plugin/policy.js +117 -117
- package/dist/config/plugin/provider.js +116 -116
- package/dist/config/plugin/reference.js +118 -118
- package/dist/config/plugin/shell.js +118 -118
- package/dist/config/plugin/skill-file.js +104 -104
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +138 -138
- package/dist/config/plugin/snapshot.js +116 -116
- package/dist/config/plugin/source.js +119 -119
- package/dist/config/plugin/tool-output.js +117 -117
- package/dist/config/plugin/websearch.js +117 -117
- package/dist/config/plugin/worktree.js +118 -118
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +119 -119
- 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 +12 -12
- package/dist/database/drizzle/effect-sqlite/index.js +12 -12
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +13 -13
- 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 +14 -14
- 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 +94 -94
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +370 -370
- package/dist/effect/app-node-platform.js +2 -2
- package/dist/effect/keyed-mutex.js +1 -1
- 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 +1 -1
- 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 +227 -227
- package/dist/filesystem/protected.js +3 -3
- package/dist/filesystem/search.js +101 -101
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +106 -106
- package/dist/form.js +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 +361 -361
- package/dist/instruction-discovery.js +86 -86
- package/dist/instructions/builtins.js +89 -89
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +78 -78
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +75 -75
- package/dist/location-activity.js +156 -156
- package/dist/location-lifecycle.js +109 -109
- package/dist/location-service-map.js +88 -88
- package/dist/location-services.js +358 -358
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +93 -93
- package/dist/mcp/index.js +111 -111
- package/dist/mcp/instructions.js +140 -140
- package/dist/mcp/oauth.js +80 -80
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +92 -92
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +93 -93
- package/dist/model-resolver.js +95 -95
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +109 -109
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +84 -84
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +109 -109
- package/dist/persistent-pty/binary.bun.js +1 -1
- package/dist/persistent-pty/daemon.js +1 -1
- package/dist/persistent-pty/index.js +88 -88
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +77 -77
- package/dist/plugin/agent.js +78 -78
- package/dist/plugin/command.js +104 -104
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +218 -218
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +333 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +98 -98
- package/dist/plugin/module.js +115 -115
- 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 +113 -113
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +112 -112
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +95 -95
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +97 -97
- package/dist/plugin/provider/gitlab.js +95 -95
- package/dist/plugin/provider/google-vertex.js +113 -113
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +80 -80
- package/dist/plugin/provider/lmstudio.js +123 -123
- package/dist/plugin/provider/local.js +122 -122
- package/dist/plugin/provider/modal.js +94 -94
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +125 -125
- package/dist/plugin/provider/openai-context-caps.js +92 -92
- package/dist/plugin/provider/openai.js +116 -116
- package/dist/plugin/provider/opencode.js +103 -103
- package/dist/plugin/provider/openrouter.js +93 -93
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +81 -81
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +93 -93
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +115 -115
- package/dist/plugin/provider/vercel.js +92 -92
- package/dist/plugin/provider/vllm.js +125 -125
- package/dist/plugin/provider/xai.js +93 -93
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +171 -171
- package/dist/plugin/sdk.js +78 -78
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +134 -134
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +350 -350
- 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 +6 -6
- package/dist/plugin.js +229 -229
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +92 -92
- package/dist/provider.js +101 -101
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +101 -101
- package/dist/reference/instructions.js +91 -91
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +83 -83
- package/dist/repository.js +3 -3
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +97 -97
- 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 +136 -136
- package/dist/session/context.js +164 -164
- package/dist/session/diff.js +90 -90
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +5 -5
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +221 -221
- package/dist/session/execution.js +130 -130
- package/dist/session/generate.js +166 -166
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +93 -93
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +81 -81
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +99 -99
- package/dist/session/message-updater.js +4 -4
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +132 -132
- package/dist/session/projector.js +91 -91
- package/dist/session/prompt.js +107 -107
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +96 -96
- package/dist/session/run-coordinator.js +1 -1
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +231 -231
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +102 -102
- package/dist/session/runner/publish-llm-event.js +116 -116
- package/dist/session/runner/retry.js +3 -3
- package/dist/session/runner/step.js +128 -128
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +165 -165
- 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 +212 -212
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +168 -168
- package/dist/session/to-session-error.js +114 -114
- package/dist/session/transfer.js +217 -217
- package/dist/session/usage.js +1 -1
- package/dist/session.js +216 -216
- package/dist/shell/parse.js +8 -8
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +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 +95 -95
- 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 +137 -137
- package/dist/tool/plugin/edit.js +122 -122
- 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 +126 -126
- package/dist/tool/plugin/opencode.js +111 -111
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +103 -103
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +217 -217
- package/dist/tool/plugin/skill.js +115 -115
- package/dist/tool/plugin/subagent.js +219 -219
- package/dist/tool/plugin/todo.js +138 -138
- package/dist/tool/plugin/webfetch.js +113 -113
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +124 -124
- package/dist/tool/read-filesystem.js +104 -104
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +16 -16
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +94 -94
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +1 -1
- 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 +91 -91
- package/dist/voice.js +86 -86
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +78 -78
- package/dist/wellknown.js +83 -83
- package/dist/workspace/driver.js +5 -5
- 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 +102 -102
- package/package.json +8 -8
- package/dist/chunks/ripgrep-4my81qaj.js +0 -18
- package/dist/chunks/ripgrep-6ha07q56.js +0 -523
- package/dist/chunks/ripgrep-ca5mcr31.js +0 -26
- package/dist/chunks/ripgrep-dnqjcqs4.js +0 -257
- /package/dist/chunks/{ripgrep-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{ripgrep-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{ripgrep-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{ripgrep-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{ripgrep-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{ripgrep-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{ripgrep-2bv980vf.js → instruction-discovery-2bv980vf.js} +0 -0
- /package/dist/chunks/{ripgrep-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{ripgrep-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{ripgrep-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{ripgrep-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{ripgrep-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{ripgrep-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{ripgrep-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{ripgrep-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{ripgrep-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{ripgrep-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{ripgrep-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{ripgrep-5fjb7ams.js → instruction-discovery-5fjb7ams.js} +0 -0
- /package/dist/chunks/{ripgrep-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{ripgrep-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{ripgrep-6q2bdcd1.js → instruction-discovery-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{ripgrep-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{ripgrep-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{ripgrep-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{ripgrep-84wd9syh.js → instruction-discovery-84wd9syh.js} +0 -0
- /package/dist/chunks/{ripgrep-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{ripgrep-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{ripgrep-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
- /package/dist/chunks/{ripgrep-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{ripgrep-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{ripgrep-a058387c.js → instruction-discovery-a058387c.js} +0 -0
- /package/dist/chunks/{ripgrep-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{ripgrep-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{ripgrep-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{ripgrep-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{ripgrep-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{ripgrep-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{ripgrep-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{ripgrep-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{ripgrep-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{ripgrep-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{ripgrep-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{ripgrep-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{ripgrep-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{ripgrep-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{ripgrep-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{ripgrep-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{ripgrep-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{ripgrep-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{ripgrep-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{ripgrep-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{ripgrep-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{ripgrep-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{ripgrep-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{ripgrep-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{ripgrep-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{ripgrep-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{ripgrep-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{ripgrep-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{ripgrep-hcxmzztb.js → instruction-discovery-hcxmzztb.js} +0 -0
- /package/dist/chunks/{ripgrep-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{ripgrep-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{ripgrep-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{ripgrep-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{ripgrep-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{ripgrep-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{ripgrep-jze0r7bz.js → instruction-discovery-jze0r7bz.js} +0 -0
- /package/dist/chunks/{ripgrep-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{ripgrep-m18g726c.js → instruction-discovery-m18g726c.js} +0 -0
- /package/dist/chunks/{ripgrep-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{ripgrep-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{ripgrep-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{ripgrep-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{ripgrep-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{ripgrep-pkyv6v7h.js → instruction-discovery-pkyv6v7h.js} +0 -0
- /package/dist/chunks/{ripgrep-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{ripgrep-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{ripgrep-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{ripgrep-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{ripgrep-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{ripgrep-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{ripgrep-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{ripgrep-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{ripgrep-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{ripgrep-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{ripgrep-ve7vex1e.js → instruction-discovery-ve7vex1e.js} +0 -0
- /package/dist/chunks/{ripgrep-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{ripgrep-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{ripgrep-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{ripgrep-wjj7prxr.js → instruction-discovery-wjj7prxr.js} +0 -0
- /package/dist/chunks/{ripgrep-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{ripgrep-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{ripgrep-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{ripgrep-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{ripgrep-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{ripgrep-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{ripgrep-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{ripgrep-z5v4ffb3.js → instruction-discovery-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{ripgrep-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,56 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-4bg9qwqs.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-vt5qfbts.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
10
|
+
Service62,
|
|
11
|
+
node64
|
|
12
|
+
} from "./instruction-discovery-hnypkknm.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
14
|
+
Service48,
|
|
15
|
+
node50
|
|
16
|
+
} from "./instruction-discovery-s2pfznc4.js";
|
|
17
17
|
import {
|
|
18
18
|
SessionEvent2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./instruction-discovery-ec1grn59.js";
|
|
20
20
|
import {
|
|
21
21
|
make17
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./instruction-discovery-d2887f8n.js";
|
|
23
23
|
import {
|
|
24
24
|
DrainResult2,
|
|
25
|
-
|
|
26
|
-
} from "./
|
|
25
|
+
Service46
|
|
26
|
+
} from "./instruction-discovery-e45fk36t.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
} from "./
|
|
28
|
+
Service72,
|
|
29
|
+
node75
|
|
30
|
+
} from "./instruction-discovery-94dxmxj3.js";
|
|
31
31
|
import {
|
|
32
32
|
toSessionError2
|
|
33
|
-
} from "./
|
|
33
|
+
} from "./instruction-discovery-r7tcy11j.js";
|
|
34
34
|
import {
|
|
35
35
|
nextPromotable2
|
|
36
|
-
} from "./
|
|
36
|
+
} from "./instruction-discovery-a2a47mdn.js";
|
|
37
37
|
import {
|
|
38
38
|
__export
|
|
39
|
-
} from "./
|
|
39
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
40
40
|
|
|
41
41
|
// src/session/execution.ts
|
|
42
42
|
var exports_execution = {};
|
|
43
43
|
__export(exports_execution, {
|
|
44
|
-
Service: () =>
|
|
44
|
+
Service: () => Service45,
|
|
45
45
|
SessionExecution: () => exports_execution,
|
|
46
|
-
layer: () =>
|
|
47
|
-
node: () =>
|
|
48
|
-
noopLayer: () =>
|
|
46
|
+
layer: () => layer20,
|
|
47
|
+
node: () => node48,
|
|
48
|
+
noopLayer: () => noopLayer2,
|
|
49
49
|
terminal: () => terminal2
|
|
50
50
|
});
|
|
51
51
|
import { Cause, Context, Effect, Exit, Layer } from "effect";
|
|
52
52
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
53
|
-
class
|
|
53
|
+
class Service45 extends Context.Service()("@opencode/SessionExecution") {
|
|
54
54
|
}
|
|
55
55
|
function terminal2(exit, reason) {
|
|
56
56
|
if (Exit.isSuccess(exit))
|
|
@@ -59,11 +59,11 @@ function terminal2(exit, reason) {
|
|
|
59
59
|
return { type: "interrupted", reason: reason ?? "shutdown" };
|
|
60
60
|
return { type: "failed", error: toSessionError2(Cause.squash(exit.cause)) };
|
|
61
61
|
}
|
|
62
|
-
var
|
|
63
|
-
const store = yield*
|
|
64
|
-
const instances = yield*
|
|
62
|
+
var layer20 = Layer.effect(Service45, Effect.gen(function* () {
|
|
63
|
+
const store = yield* Service72;
|
|
64
|
+
const instances = yield* Service48;
|
|
65
65
|
const bus = yield* Service85;
|
|
66
|
-
const jobs = yield*
|
|
66
|
+
const jobs = yield* Service62;
|
|
67
67
|
const db = (yield* Service86).db;
|
|
68
68
|
const reportLifecycle = (sessionID, effect) => effect.pipe(Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to publish Session execution lifecycle", cause).pipe(Effect.annotateLogs({ sessionID }))), Effect.asVoid);
|
|
69
69
|
const claimOnCommit = (sessionID) => ({
|
|
@@ -76,7 +76,7 @@ var layer19 = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
76
76
|
const session = yield* store.get(sessionID);
|
|
77
77
|
if (!session)
|
|
78
78
|
return yield* Effect.die(new Error(`Session not found: ${sessionID}`));
|
|
79
|
-
const result = yield*
|
|
79
|
+
const result = yield* Service46.use((runner) => runner.drain({ sessionID, force, continuation, promotable })).pipe(instances.provide(session), Effect.tapCause((cause) => Cause.hasInterruptsOnly(cause) ? Effect.void : Effect.logError("Failed to drain Session", cause).pipe(Effect.annotateLogs({ sessionID }))));
|
|
80
80
|
return yield* DrainResult2.$match(result, {
|
|
81
81
|
Complete: () => Effect.void,
|
|
82
82
|
Moved: (result) => drain(sessionID, false, result.continuation, promotable),
|
|
@@ -104,7 +104,7 @@ var layer19 = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
104
104
|
}, releaseOnCommit(sessionID));
|
|
105
105
|
}))
|
|
106
106
|
});
|
|
107
|
-
return
|
|
107
|
+
return Service45.of({
|
|
108
108
|
active: coordinator.active,
|
|
109
109
|
isActive: coordinator.isActive,
|
|
110
110
|
interrupt: (sessionID, options) => Effect.gen(function* () {
|
|
@@ -123,12 +123,12 @@ var layer19 = Layer.effect(Service51, Effect.gen(function* () {
|
|
|
123
123
|
awaitIdle: coordinator.awaitIdle
|
|
124
124
|
});
|
|
125
125
|
}));
|
|
126
|
-
var
|
|
127
|
-
service:
|
|
128
|
-
layer:
|
|
129
|
-
deps: [
|
|
126
|
+
var node48 = makeGlobalNode({
|
|
127
|
+
service: Service45,
|
|
128
|
+
layer: layer20,
|
|
129
|
+
deps: [node75, node50, node89, node90, node64]
|
|
130
130
|
});
|
|
131
|
-
var
|
|
131
|
+
var noopLayer2 = Layer.succeed(Service45, Service45.of({
|
|
132
132
|
active: Effect.succeed(new Set),
|
|
133
133
|
isActive: () => Effect.succeed(false),
|
|
134
134
|
resume: () => Effect.void,
|
|
@@ -137,4 +137,4 @@ var noopLayer3 = Layer.succeed(Service51, Service51.of({
|
|
|
137
137
|
awaitIdle: () => Effect.void
|
|
138
138
|
}));
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service45, terminal2, layer20, node48, noopLayer2, exports_execution };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service41
|
|
3
|
+
} from "./instruction-discovery-znvxebx5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service48
|
|
6
|
+
} from "./instruction-discovery-s2pfznc4.js";
|
|
7
7
|
import {
|
|
8
8
|
awaitActivation2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-qmh7vbk2.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/session/command.ts
|
|
15
15
|
var exports_command3 = {};
|
|
@@ -19,8 +19,8 @@ __export(exports_command3, {
|
|
|
19
19
|
});
|
|
20
20
|
import { Effect } from "effect";
|
|
21
21
|
var execute2 = Effect.fn("SessionCommand.execute")(function* (input) {
|
|
22
|
-
const instances = yield*
|
|
23
|
-
const commands = yield* awaitActivation2.pipe(Effect.andThen(
|
|
22
|
+
const instances = yield* Service48;
|
|
23
|
+
const commands = yield* awaitActivation2.pipe(Effect.andThen(Service41), instances.provide(input.session));
|
|
24
24
|
yield* commands.execute({
|
|
25
25
|
name: input.command,
|
|
26
26
|
invocation: {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WebSocketConstructor2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-jze0r7bz.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/effect/app-node-platform.ts
|
|
9
9
|
var exports_app_node_platform = {};
|
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-8ev1pcqt.js";
|
|
4
4
|
import {
|
|
5
5
|
Service85
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-vt5qfbts.js";
|
|
7
7
|
import {
|
|
8
8
|
OAuth3,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Event18,
|
|
10
|
+
Service80
|
|
11
|
+
} from "./instruction-discovery-pazke3n5.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
13
|
+
ID14,
|
|
14
14
|
MethodID2,
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
15
|
+
Service79
|
|
16
|
+
} from "./instruction-discovery-1y33b0wd.js";
|
|
17
17
|
import {
|
|
18
18
|
success2,
|
|
19
19
|
error2
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./instruction-discovery-yb20nhc3.js";
|
|
21
21
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./
|
|
22
|
+
ID13
|
|
23
|
+
} from "./instruction-discovery-54m57xnc.js";
|
|
24
24
|
import {
|
|
25
25
|
configuredSettings2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./instruction-discovery-afd6s2pj.js";
|
|
27
27
|
|
|
28
28
|
// src/plugin/provider/snowflake-cortex.ts
|
|
29
29
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
30
30
|
import { Form } from "@opencode/schema/form";
|
|
31
31
|
import { Clock, Deferred, Effect, Option, Schema, Stream } from "effect";
|
|
32
32
|
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
33
|
-
var providerID =
|
|
34
|
-
var integrationID =
|
|
33
|
+
var providerID = ID13.make("snowflake-cortex");
|
|
34
|
+
var integrationID = ID14.make(providerID);
|
|
35
35
|
var methodID = MethodID2.make("browser");
|
|
36
36
|
var clientID = "LOCAL_APPLICATION";
|
|
37
37
|
var accountForm = Form.Fields.make([
|
|
@@ -53,8 +53,8 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
53
53
|
id: "opencode.provider.snowflake.cortex",
|
|
54
54
|
effect: Effect.fn(function* (ctx) {
|
|
55
55
|
const http = yield* HttpClient.HttpClient;
|
|
56
|
-
const credentials = yield*
|
|
57
|
-
const integrations = yield*
|
|
56
|
+
const credentials = yield* Service80;
|
|
57
|
+
const integrations = yield* Service79;
|
|
58
58
|
const bus = yield* Service85;
|
|
59
59
|
const configured = yield* configuredSettings2(providerID);
|
|
60
60
|
const account = { value: "" };
|
|
@@ -186,7 +186,7 @@ var SnowflakeCortexPlugin2 = define({
|
|
|
186
186
|
});
|
|
187
187
|
}
|
|
188
188
|
});
|
|
189
|
-
yield* bus.subscribe(
|
|
189
|
+
yield* bus.subscribe(Event18.Switched).pipe(Stream.filter((event) => event.data.integrationID === integrationID), Stream.runForEach(() => load.pipe(Effect.andThen(ctx.provider.reload()))), Effect.forkScoped({ startImmediately: true }));
|
|
190
190
|
yield* ctx.session.hook("http.request", (event) => Effect.sync(() => {
|
|
191
191
|
const token = envToken();
|
|
192
192
|
if (token)
|
|
@@ -2,27 +2,27 @@ import {
|
|
|
2
2
|
NonNegativeInt2,
|
|
3
3
|
PositiveInt2,
|
|
4
4
|
RelativePath2
|
|
5
|
-
} from "./
|
|
5
|
+
} from "./instruction-discovery-z5v4ffb3.js";
|
|
6
6
|
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
7
|
+
Service66,
|
|
8
|
+
node68
|
|
9
|
+
} from "./instruction-discovery-sxbjjvas.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./
|
|
11
|
+
Content2
|
|
12
|
+
} from "./instruction-discovery-n40jn0ye.js";
|
|
13
13
|
import {
|
|
14
14
|
detect2
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./instruction-discovery-2z1j29yd.js";
|
|
16
16
|
import {
|
|
17
17
|
__export
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
19
19
|
|
|
20
20
|
// src/tool/read-filesystem.ts
|
|
21
21
|
var exports_read_filesystem = {};
|
|
22
22
|
__export(exports_read_filesystem, {
|
|
23
23
|
BinaryFileError: () => BinaryFileError2,
|
|
24
24
|
FileContent: () => FileContent2,
|
|
25
|
-
ListEntry: () =>
|
|
25
|
+
ListEntry: () => ListEntry3,
|
|
26
26
|
ListPage: () => ListPage2,
|
|
27
27
|
MAX_MEDIA_INGEST_BYTES: () => MAX_MEDIA_INGEST_BYTES2,
|
|
28
28
|
MAX_READ_BYTES: () => MAX_READ_BYTES2,
|
|
@@ -33,9 +33,9 @@ __export(exports_read_filesystem, {
|
|
|
33
33
|
PageInput: () => PageInput2,
|
|
34
34
|
PathKindError: () => PathKindError2,
|
|
35
35
|
ReadToolFileSystem: () => exports_read_filesystem,
|
|
36
|
-
Service: () =>
|
|
36
|
+
Service: () => Service36,
|
|
37
37
|
TextPage: () => TextPage2,
|
|
38
|
-
node: () =>
|
|
38
|
+
node: () => node40,
|
|
39
39
|
read: () => read2
|
|
40
40
|
});
|
|
41
41
|
import path from "path";
|
|
@@ -89,7 +89,7 @@ var PageInput2 = Schema.Struct({
|
|
|
89
89
|
});
|
|
90
90
|
var FileContent2 = Schema.Struct({
|
|
91
91
|
type: Schema.Literal("file"),
|
|
92
|
-
...
|
|
92
|
+
...Content2.fields
|
|
93
93
|
}).annotate({ identifier: "ReadTool.FileContent" });
|
|
94
94
|
|
|
95
95
|
class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
@@ -101,20 +101,20 @@ class TextPage2 extends Schema.Class("ReadTool.TextPage")({
|
|
|
101
101
|
next: Schema.optionalKey(PositiveInt2)
|
|
102
102
|
}) {
|
|
103
103
|
}
|
|
104
|
-
var
|
|
104
|
+
var ListEntry3 = Schema.Struct({
|
|
105
105
|
path: RelativePath2,
|
|
106
106
|
type: Schema.Literals(["file", "directory", "symlink"])
|
|
107
107
|
}).annotate({ identifier: "ReadTool.ListEntry" });
|
|
108
108
|
|
|
109
109
|
class ListPage2 extends Schema.Class("ReadTool.ListPage")({
|
|
110
110
|
type: Schema.Literal("list-page"),
|
|
111
|
-
entries: Schema.Array(
|
|
111
|
+
entries: Schema.Array(ListEntry3),
|
|
112
112
|
truncated: Schema.Boolean,
|
|
113
113
|
next: Schema.optionalKey(PositiveInt2)
|
|
114
114
|
}) {
|
|
115
115
|
}
|
|
116
116
|
|
|
117
|
-
class
|
|
117
|
+
class Service36 extends Context.Service()("@opencode/ReadToolFileSystem") {
|
|
118
118
|
}
|
|
119
119
|
var mimeType = (value) => lookup(value) || "application/octet-stream";
|
|
120
120
|
var read2 = Effect.fn("ReadTool.read")(function* (files, input, resource, page = {}) {
|
|
@@ -227,7 +227,7 @@ var list = (items, page) => {
|
|
|
227
227
|
const offset = page.offset || 1;
|
|
228
228
|
const limit = Math.min(page.limit || MAX_READ_LINES2, MAX_READ_LINES2);
|
|
229
229
|
const visible = items.flatMap((item) => item.type === "other" ? [] : [
|
|
230
|
-
|
|
230
|
+
ListEntry3.make({
|
|
231
231
|
path: RelativePath2.make(item.name + (item.type === "directory" ? path.sep : "")),
|
|
232
232
|
type: item.type
|
|
233
233
|
})
|
|
@@ -330,13 +330,13 @@ var nthNewline = (bytes, count) => {
|
|
|
330
330
|
return index + 1;
|
|
331
331
|
}
|
|
332
332
|
};
|
|
333
|
-
var layer = Layer.effect(
|
|
334
|
-
const environment = yield*
|
|
335
|
-
return
|
|
333
|
+
var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
334
|
+
const environment = yield* Service66;
|
|
335
|
+
return Service36.of({
|
|
336
336
|
list: environment.files.list,
|
|
337
337
|
read: (path2, resource, page) => read2(environment.files, path2, resource, page)
|
|
338
338
|
});
|
|
339
339
|
}));
|
|
340
|
-
var
|
|
340
|
+
var node40 = makeLocationNode({ service: Service36, layer, deps: [node68] });
|
|
341
341
|
|
|
342
|
-
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2,
|
|
342
|
+
export { MAX_READ_LINES2, MAX_READ_BYTES2, MAX_MEDIA_INGEST_BYTES2, MEDIA_MIMES2, BinaryFileError2, MediaIngestLimitError2, OffsetOutOfRangeError2, PathKindError2, PageInput2, FileContent2, TextPage2, ListEntry3, ListPage2, Service36, read2, node40, exports_read_filesystem };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
useragent2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-8ev1pcqt.js";
|
|
4
4
|
import {
|
|
5
5
|
call2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-5enarcya.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/plugin/websearch/firecrawl.ts
|
|
12
12
|
var exports_firecrawl = {};
|
|
13
13
|
__export(exports_firecrawl, {
|
|
14
|
-
Plugin: () =>
|
|
14
|
+
Plugin: () => Plugin24,
|
|
15
15
|
WebSearchFirecrawl: () => exports_firecrawl,
|
|
16
|
-
endpoint: () =>
|
|
16
|
+
endpoint: () => endpoint5
|
|
17
17
|
});
|
|
18
18
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
19
19
|
import { Effect, Option, Schema } from "effect";
|
|
20
20
|
import { HttpClient } from "effect/http";
|
|
21
|
-
var
|
|
21
|
+
var endpoint5 = "https://mcp.firecrawl.dev/v2/mcp";
|
|
22
22
|
var McpInput = Schema.Struct({
|
|
23
23
|
query: Schema.String,
|
|
24
24
|
limit: Schema.Number.pipe(Schema.optional)
|
|
@@ -37,7 +37,7 @@ var SearchResponse = Schema.fromJsonString(Schema.Struct({
|
|
|
37
37
|
})
|
|
38
38
|
}));
|
|
39
39
|
var decodeSearchResponse = Schema.decodeUnknownOption(SearchResponse);
|
|
40
|
-
var
|
|
40
|
+
var Plugin24 = define({
|
|
41
41
|
id: "opencode.websearch.firecrawl",
|
|
42
42
|
effect: Effect.fn("WebSearchFirecrawl.Plugin")(function* (ctx) {
|
|
43
43
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -59,7 +59,7 @@ var Plugin5 = define({
|
|
|
59
59
|
execute: (input) => Effect.gen(function* () {
|
|
60
60
|
const connection = yield* ctx.integration.connection.active("firecrawl");
|
|
61
61
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
62
|
-
const result = yield* call2(http,
|
|
62
|
+
const result = yield* call2(http, endpoint5, "firecrawl_search", { input: McpInput, output: McpOutput }, { query: input.query, limit: 8 }, {
|
|
63
63
|
"User-Agent": useragent2(ctx.app),
|
|
64
64
|
...credential?.type === "key" ? { Authorization: `Bearer ${credential.key}` } : {}
|
|
65
65
|
});
|
|
@@ -77,4 +77,4 @@ var Plugin5 = define({
|
|
|
77
77
|
})
|
|
78
78
|
});
|
|
79
79
|
|
|
80
|
-
export {
|
|
80
|
+
export { endpoint5, Plugin24, exports_firecrawl };
|
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service86,
|
|
3
3
|
node90
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-4bg9qwqs.js";
|
|
5
5
|
import {
|
|
6
6
|
Service85,
|
|
7
7
|
node89
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-vt5qfbts.js";
|
|
9
9
|
import {
|
|
10
10
|
CredentialTable2
|
|
11
|
-
} from "./
|
|
11
|
+
} from "./instruction-discovery-pknna89w.js";
|
|
12
12
|
import {
|
|
13
13
|
from2
|
|
14
|
-
} from "./
|
|
14
|
+
} from "./instruction-discovery-m1714858.js";
|
|
15
15
|
import {
|
|
16
16
|
__export
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
18
18
|
|
|
19
19
|
// src/credential.ts
|
|
20
20
|
var exports_credential = {};
|
|
21
21
|
__export(exports_credential, {
|
|
22
22
|
Credential: () => exports_credential,
|
|
23
|
-
Event: () =>
|
|
23
|
+
Event: () => Event18,
|
|
24
24
|
External: () => External2,
|
|
25
|
-
ID: () =>
|
|
26
|
-
Info: () =>
|
|
25
|
+
ID: () => ID15,
|
|
26
|
+
Info: () => Info25,
|
|
27
27
|
Key: () => Key4,
|
|
28
28
|
OAuth: () => OAuth3,
|
|
29
|
-
Service: () =>
|
|
29
|
+
Service: () => Service80,
|
|
30
30
|
Value: () => Value2,
|
|
31
|
-
node: () =>
|
|
31
|
+
node: () => node84
|
|
32
32
|
});
|
|
33
33
|
import { asc, desc, eq } from "drizzle-orm";
|
|
34
34
|
import { Cause, Context, Effect, Layer, Schema } from "effect";
|
|
@@ -36,31 +36,31 @@ import { Credential } from "@opencode/schema/credential";
|
|
|
36
36
|
import { CredentialLegacy } from "@opencode/schema/credential-legacy";
|
|
37
37
|
import { Integration } from "@opencode/schema/integration";
|
|
38
38
|
import { makeGlobalNode } from "@opencode/util/effect/app-node";
|
|
39
|
-
var
|
|
39
|
+
var ID15 = Credential.ID;
|
|
40
40
|
var OAuth3 = Credential.OAuth;
|
|
41
41
|
var Key4 = Credential.Key;
|
|
42
42
|
var External2 = Credential.External;
|
|
43
43
|
var Value2 = Credential.Value;
|
|
44
|
-
var
|
|
44
|
+
var Event18 = Credential.Event;
|
|
45
45
|
|
|
46
|
-
class
|
|
47
|
-
id:
|
|
46
|
+
class Info25 extends Schema.Class("Credential.Info")({
|
|
47
|
+
id: ID15,
|
|
48
48
|
integrationID: Integration.ID,
|
|
49
49
|
label: Schema.String,
|
|
50
50
|
value: Value2
|
|
51
51
|
}) {
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
-
class
|
|
54
|
+
class Service80 extends Context.Service()("@opencode/Credential") {
|
|
55
55
|
}
|
|
56
|
-
var layer = Layer.effect(
|
|
56
|
+
var layer = Layer.effect(Service80, Effect.gen(function* () {
|
|
57
57
|
const db = (yield* Service86).db;
|
|
58
58
|
const bus = yield* Service85;
|
|
59
59
|
const decode = Schema.decodeUnknownSync(CredentialLegacy.Value);
|
|
60
60
|
const stored = (row) => {
|
|
61
61
|
if (!row.integration_id)
|
|
62
62
|
return;
|
|
63
|
-
return new
|
|
63
|
+
return new Info25({
|
|
64
64
|
id: row.id,
|
|
65
65
|
integrationID: row.integration_id,
|
|
66
66
|
label: row.label,
|
|
@@ -71,7 +71,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
71
71
|
const credential = stored(row);
|
|
72
72
|
return credential ? [credential] : [];
|
|
73
73
|
});
|
|
74
|
-
return
|
|
74
|
+
return Service80.of({
|
|
75
75
|
all: Effect.fn("Credential.all")(() => db.select().from(CredentialTable2).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
76
76
|
list: Effect.fn("Credential.list")((integrationID) => db.select().from(CredentialTable2).where(eq(CredentialTable2.integration_id, integrationID)).orderBy(asc(CredentialTable2.active), asc(CredentialTable2.time_created), asc(CredentialTable2.id)).all().pipe(Effect.orDie, Effect.map(storedRows))),
|
|
77
77
|
get: Effect.fn("Credential.get")(function* (id) {
|
|
@@ -79,8 +79,8 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
79
79
|
return row ? stored(row) : undefined;
|
|
80
80
|
}),
|
|
81
81
|
create: Effect.fn("Credential.create")(function* (input) {
|
|
82
|
-
const credential = new
|
|
83
|
-
id: input.id ??
|
|
82
|
+
const credential = new Info25({
|
|
83
|
+
id: input.id ?? ID15.create(),
|
|
84
84
|
integrationID: input.integrationID,
|
|
85
85
|
label: input.label ?? "default",
|
|
86
86
|
value: input.value
|
|
@@ -111,9 +111,9 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
111
111
|
type: credential.value.type,
|
|
112
112
|
active: activated
|
|
113
113
|
});
|
|
114
|
-
yield* bus.publish(
|
|
114
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
115
115
|
if (activated)
|
|
116
|
-
yield* bus.publish(
|
|
116
|
+
yield* bus.publish(Event18.Switched, { integrationID: credential.integrationID, credentialID: credential.id }, { global: true });
|
|
117
117
|
return credential;
|
|
118
118
|
}),
|
|
119
119
|
activate: Effect.fn("Credential.activate")(function* (id) {
|
|
@@ -133,7 +133,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
133
133
|
})), Effect.orDie);
|
|
134
134
|
if (integrationID) {
|
|
135
135
|
yield* Effect.logInfo("credential activated", { integrationID, credentialID: id });
|
|
136
|
-
yield* bus.publish(
|
|
136
|
+
yield* bus.publish(Event18.Switched, { integrationID, credentialID: id }, { global: true });
|
|
137
137
|
}
|
|
138
138
|
}),
|
|
139
139
|
update: Effect.fn("Credential.update")(function* (id, updates) {
|
|
@@ -165,7 +165,7 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
165
165
|
labelChanged: updates.label !== undefined && updates.label !== credential.label
|
|
166
166
|
});
|
|
167
167
|
if (updates.label !== undefined && updates.label !== credential.label)
|
|
168
|
-
yield* bus.publish(
|
|
168
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
169
169
|
}),
|
|
170
170
|
remove: Effect.fn("Credential.remove")(function* (id) {
|
|
171
171
|
const removed = yield* db.transaction((tx) => Effect.gen(function* () {
|
|
@@ -198,12 +198,12 @@ var layer = Layer.effect(Service83, Effect.gen(function* () {
|
|
|
198
198
|
active: removed.switched,
|
|
199
199
|
...removed.switched ? { replacementID: removed.credentialID } : {}
|
|
200
200
|
});
|
|
201
|
-
yield* bus.publish(
|
|
201
|
+
yield* bus.publish(Event18.Updated, {}, { global: true });
|
|
202
202
|
if (removed.switched)
|
|
203
|
-
yield* bus.publish(
|
|
203
|
+
yield* bus.publish(Event18.Switched, { integrationID: removed.integrationID, credentialID: removed.credentialID }, { global: true });
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
206
|
}));
|
|
207
|
-
var
|
|
207
|
+
var node84 = makeGlobalNode({ service: Service80, layer, deps: [node90, node89] });
|
|
208
208
|
|
|
209
|
-
export {
|
|
209
|
+
export { ID15, OAuth3, Key4, External2, Value2, Event18, Info25, Service80, node84, exports_credential };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-vt5qfbts.js";
|
|
5
5
|
import {
|
|
6
6
|
optional2,
|
|
7
7
|
statics2
|
|
8
|
-
} from "./
|
|
8
|
+
} from "./instruction-discovery-z5v4ffb3.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
10
|
+
Ref4,
|
|
11
|
+
Service82,
|
|
12
|
+
node86
|
|
13
|
+
} from "./instruction-discovery-ptd3w0tf.js";
|
|
14
14
|
import {
|
|
15
15
|
__export
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
17
17
|
|
|
18
18
|
// src/rpc.ts
|
|
19
19
|
var exports_rpc = {};
|
|
20
20
|
__export(exports_rpc, {
|
|
21
21
|
Rpc: () => exports_rpc,
|
|
22
|
-
Service: () =>
|
|
22
|
+
Service: () => Service75,
|
|
23
23
|
define: () => define2,
|
|
24
|
-
node: () =>
|
|
24
|
+
node: () => node78
|
|
25
25
|
});
|
|
26
26
|
import { define as define2 } from "@opencode/schema/rpc";
|
|
27
27
|
import { Event } from "@opencode/schema/event";
|
|
28
28
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
29
|
import { Context, Deferred, Effect, JsonSchema, Layer, Schema, SchemaRepresentation, Stream } from "effect";
|
|
30
|
-
class
|
|
30
|
+
class Service75 extends Context.Service()("@opencode/Rpc") {
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
class DeclaredError extends Error {
|
|
@@ -39,10 +39,10 @@ class DeclaredError extends Error {
|
|
|
39
39
|
this.data = data;
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
|
-
var layer = Layer.effect(
|
|
42
|
+
var layer = Layer.effect(Service75, Effect.gen(function* () {
|
|
43
43
|
const bus = yield* Service85;
|
|
44
|
-
const location = yield*
|
|
45
|
-
const ref =
|
|
44
|
+
const location = yield* Service82;
|
|
45
|
+
const ref = Ref4.make({ directory: location.directory, workspaceID: location.workspaceID });
|
|
46
46
|
const closed = yield* Deferred.make();
|
|
47
47
|
const callContext = {
|
|
48
48
|
error: (type, message, data) => new DeclaredError(type, message, data)
|
|
@@ -118,19 +118,19 @@ var layer = Layer.effect(Service40, Effect.gen(function* () {
|
|
|
118
118
|
const registered = events.get(name);
|
|
119
119
|
if (!registered)
|
|
120
120
|
return Stream.fail(new Error(`Unknown RPC event: ${definition.id}.${name}`));
|
|
121
|
-
return bus.subscribe(registered.definition).pipe(Stream.provideService(
|
|
121
|
+
return bus.subscribe(registered.definition).pipe(Stream.provideService(Service82, location), Stream.mapEffect((payload) => logicalEvent(definition, name, payload, ref)));
|
|
122
122
|
}
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
};
|
|
126
|
-
return
|
|
126
|
+
return Service75.of({ register, call, client, close: Deferred.succeed(closed, undefined).pipe(Effect.asVoid) });
|
|
127
127
|
}));
|
|
128
|
-
var
|
|
128
|
+
var node78 = makeLocationNode({ service: Service75, layer, deps: [node89, node86] });
|
|
129
129
|
var fields = {
|
|
130
130
|
id: Event.ID,
|
|
131
131
|
created: Schema.Finite,
|
|
132
132
|
metadata: optional2(Schema.Record(Schema.String, Schema.Unknown)),
|
|
133
|
-
location: optional2(
|
|
133
|
+
location: optional2(Ref4)
|
|
134
134
|
};
|
|
135
135
|
var EventData = Schema.Record(Schema.String, Schema.Unknown);
|
|
136
136
|
var jsonSchemas = new WeakMap;
|
|
@@ -210,4 +210,4 @@ var logicalEvent = Effect.fn("Rpc.logicalEvent")(function* (definition, name, pa
|
|
|
210
210
|
};
|
|
211
211
|
});
|
|
212
212
|
|
|
213
|
-
export {
|
|
213
|
+
export { Service75, node78, exports_rpc, define2 };
|