@opencode/core 0.0.0-dev-21775 → 0.0.0-dev-21779
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 +86 -86
- package/dist/aisdk-native.js +93 -93
- package/dist/aisdk.js +99 -99
- package/dist/app.js +9 -9
- package/dist/bus.js +72 -72
- package/dist/chunks/{file-retention-sc8prgdb.js → managed-policy-00cr1rxs.js} +10 -10
- package/dist/chunks/{file-retention-y755953d.js → managed-policy-02fhkb6c.js} +33 -33
- package/dist/chunks/{file-retention-d3k5k72a.js → managed-policy-03ememhp.js} +13 -13
- package/dist/chunks/{file-retention-d7tcj48j.js → managed-policy-03pkq5wz.js} +6 -6
- package/dist/chunks/{file-retention-zjrarrrn.js → managed-policy-0bqp6b53.js} +9 -9
- package/dist/chunks/{file-retention-995kf3fb.js → managed-policy-0eeh5sc5.js} +33 -40
- package/dist/chunks/{file-retention-1z6jjy5p.js → managed-policy-0ks2n9jf.js} +6 -6
- package/dist/chunks/{file-retention-9qp5p8zq.js → managed-policy-1e5rbrpx.js} +21 -21
- package/dist/chunks/{file-retention-y8dsb888.js → managed-policy-1ee9e5h5.js} +18 -18
- package/dist/chunks/{file-retention-s6rab191.js → managed-policy-1ft3a64b.js} +30 -30
- package/dist/chunks/{file-retention-jp659ej9.js → managed-policy-1sb2b4hz.js} +15 -15
- package/dist/chunks/{file-retention-1x2knyw4.js → managed-policy-1x2knyw4.js} +1 -1
- package/dist/chunks/{file-retention-79zrs9sr.js → managed-policy-26h8w6n3.js} +11 -11
- package/dist/chunks/{file-retention-1ep2p91f.js → managed-policy-27w5k9zf.js} +2 -2
- package/dist/chunks/{file-retention-c7nehh90.js → managed-policy-2gg250z3.js} +6 -6
- package/dist/chunks/{file-retention-ys018t90.js → managed-policy-2h4dmphj.js} +40 -40
- package/dist/chunks/{file-retention-cf7x3ksa.js → managed-policy-2jq8265x.js} +25 -25
- package/dist/chunks/{file-retention-jsy02eqp.js → managed-policy-2sp6x650.js} +17 -17
- package/dist/chunks/{file-retention-8esf06c6.js → managed-policy-2wyes2cm.js} +11 -11
- package/dist/chunks/{file-retention-2z1j29yd.js → managed-policy-2z1j29yd.js} +1 -1
- package/dist/chunks/{file-retention-r09k0ff8.js → managed-policy-32rbtppw.js} +14 -14
- package/dist/chunks/{file-retention-ayjs7tqn.js → managed-policy-3cbjf1nt.js} +2 -2
- package/dist/chunks/{file-retention-3164ts83.js → managed-policy-3dv7tw0m.js} +4 -4
- package/dist/chunks/{file-retention-8gaq3e8g.js → managed-policy-3fwr0gba.js} +9 -9
- package/dist/chunks/{file-retention-3hepkmqq.js → managed-policy-3hepkmqq.js} +1 -1
- package/dist/chunks/{file-retention-szcgc7h4.js → managed-policy-3kdbrncp.js} +5 -5
- package/dist/chunks/{file-retention-5ej6fcjw.js → managed-policy-3m04bkm7.js} +6 -6
- package/dist/chunks/{file-retention-3nnrz6f6.js → managed-policy-3nnrz6f6.js} +1 -1
- package/dist/chunks/{file-retention-d6n7qg8p.js → managed-policy-42yy1t4m.js} +19 -19
- package/dist/chunks/{file-retention-0gqjs8xd.js → managed-policy-45chpwqw.js} +11 -11
- package/dist/chunks/{file-retention-ay8p2qby.js → managed-policy-47jjev45.js} +69 -69
- package/dist/chunks/{file-retention-86nyzsdp.js → managed-policy-490c48bj.js} +2 -2
- package/dist/chunks/{file-retention-a1qdfkze.js → managed-policy-49wfgnbx.js} +7 -7
- package/dist/chunks/{file-retention-m8f63jhp.js → managed-policy-49z7jvp2.js} +24 -24
- package/dist/chunks/{file-retention-4v008n1t.js → managed-policy-4v008n1t.js} +1 -1
- package/dist/chunks/{file-retention-4xvmh7wp.js → managed-policy-4xvmh7wp.js} +3 -3
- package/dist/chunks/{file-retention-ezw660nq.js → managed-policy-5k38w7sf.js} +5 -5
- package/dist/chunks/{file-retention-5m9w47nd.js → managed-policy-5m9w47nd.js} +1 -1
- package/dist/chunks/{file-retention-w29j0fga.js → managed-policy-5nd54hzp.js} +8 -8
- package/dist/chunks/{file-retention-9xhfncsk.js → managed-policy-5ny4wef6.js} +38 -38
- package/dist/chunks/{file-retention-wwyg2b72.js → managed-policy-5ydp8y6j.js} +24 -24
- package/dist/chunks/{file-retention-bqwdyg2t.js → managed-policy-64a4dgx4.js} +9 -9
- package/dist/chunks/{file-retention-5tw9zmff.js → managed-policy-68dpv4bm.js} +86 -86
- package/dist/chunks/{file-retention-mqcadzqw.js → managed-policy-6d6xnsqa.js} +5 -5
- package/dist/chunks/{file-retention-6esdw8yj.js → managed-policy-6esdw8yj.js} +1 -1
- package/dist/chunks/{file-retention-kd9fhfv6.js → managed-policy-6p9bsfn5.js} +16 -16
- package/dist/chunks/{file-retention-6pjqjmy2.js → managed-policy-6pjqjmy2.js} +1 -1
- package/dist/chunks/{file-retention-802q13vp.js → managed-policy-6vzv00yv.js} +7 -7
- package/dist/chunks/{file-retention-1e1kb1f8.js → managed-policy-6wnv4aap.js} +12 -12
- package/dist/chunks/{file-retention-7zkdf223.js → managed-policy-6zfvt8rp.js} +13 -13
- package/dist/chunks/{file-retention-76cb1hcw.js → managed-policy-76cb1hcw.js} +1 -1
- package/dist/chunks/{file-retention-nah043kf.js → managed-policy-770pw0s1.js} +4 -4
- package/dist/chunks/{file-retention-7bmhse3q.js → managed-policy-7bmhse3q.js} +1 -1
- package/dist/chunks/{file-retention-mc4sw9w4.js → managed-policy-7jz5d2t0.js} +10 -10
- package/dist/chunks/{file-retention-mv7k79ef.js → managed-policy-7kn810xp.js} +51 -51
- package/dist/chunks/{file-retention-7w2ypzdf.js → managed-policy-7w2ypzdf.js} +1 -1
- package/dist/chunks/managed-policy-7yv5xa0k.js +18 -0
- package/dist/chunks/managed-policy-7z6mcrx3.js +261 -0
- package/dist/chunks/{file-retention-r8q5fgtf.js → managed-policy-8554g49p.js} +35 -35
- package/dist/chunks/{file-retention-qjgzc4b4.js → managed-policy-8jztxfpf.js} +4 -4
- package/dist/chunks/{file-retention-d4yvfdjq.js → managed-policy-8kcft6qy.js} +14 -14
- package/dist/chunks/managed-policy-8nedx0w1.js +26 -0
- package/dist/chunks/{file-retention-8r6n0qax.js → managed-policy-8r6n0qax.js} +1 -1
- package/dist/chunks/{file-retention-0dye9s24.js → managed-policy-8wseh08p.js} +4 -4
- package/dist/chunks/{file-retention-8wtp7s3z.js → managed-policy-8wtp7s3z.js} +1 -1
- package/dist/chunks/{file-retention-91rj84md.js → managed-policy-91rj84md.js} +1 -1
- package/dist/chunks/{file-retention-h7d4rbrg.js → managed-policy-9axz1114.js} +4 -4
- package/dist/chunks/{file-retention-05038jtd.js → managed-policy-9b4y21f1.js} +9 -9
- package/dist/chunks/{file-retention-hz9cscar.js → managed-policy-9hx0ex4r.js} +3 -3
- package/dist/chunks/{file-retention-kmzgegqq.js → managed-policy-9kg5w032.js} +8 -8
- package/dist/chunks/{file-retention-ks30mcjv.js → managed-policy-9q42j6a5.js} +11 -11
- package/dist/chunks/{file-retention-xjmvvx28.js → managed-policy-9y2xp9dz.js} +12 -12
- package/dist/chunks/{file-retention-vx3z2ta8.js → managed-policy-a1p7bg8r.js} +18 -18
- package/dist/chunks/{file-retention-562s2c64.js → managed-policy-a5z798gd.js} +30 -30
- package/dist/chunks/{file-retention-n1s97216.js → managed-policy-a8p5crz1.js} +17 -17
- package/dist/chunks/{file-retention-s7xmnr8t.js → managed-policy-agqd6nxz.js} +6 -6
- package/dist/chunks/{file-retention-yhen3jxk.js → managed-policy-ahhnq9fe.js} +1 -1
- package/dist/chunks/{file-retention-034tev2y.js → managed-policy-aj7mw0zk.js} +2 -2
- package/dist/chunks/{file-retention-tpm1qpxt.js → managed-policy-apd5jra7.js} +9 -9
- package/dist/chunks/{file-retention-8k7fs4yk.js → managed-policy-atfnw7gf.js} +5 -5
- package/dist/chunks/{file-retention-ffnxs1x0.js → managed-policy-avpzytns.js} +7 -7
- package/dist/chunks/{file-retention-xk8af61m.js → managed-policy-awkjnfzq.js} +12 -12
- package/dist/chunks/{file-retention-66hxanz0.js → managed-policy-ayhhxpsd.js} +28 -28
- package/dist/chunks/{file-retention-f0cbaec5.js → managed-policy-azemrkpd.js} +45 -45
- package/dist/chunks/{file-retention-b0mv4wxm.js → managed-policy-b0mv4wxm.js} +2 -2
- package/dist/chunks/{file-retention-w0e5cwhb.js → managed-policy-b5vt0e29.js} +36 -36
- package/dist/chunks/{file-retention-1dt1w7eh.js → managed-policy-b6j82r80.js} +53 -53
- package/dist/chunks/{file-retention-d5wa0b2s.js → managed-policy-bad2ztpq.js} +5 -5
- package/dist/chunks/{file-retention-hjznzsdn.js → managed-policy-bctgpknz.js} +11 -11
- package/dist/chunks/{file-retention-t39e16tb.js → managed-policy-bm5tsqjy.js} +11 -11
- package/dist/chunks/{file-retention-pdf3vz88.js → managed-policy-bqxktn40.js} +14 -14
- package/dist/chunks/{file-retention-ps196dw6.js → managed-policy-bs208s33.js} +22 -22
- package/dist/chunks/{file-retention-bstexjd6.js → managed-policy-bstexjd6.js} +1 -1
- package/dist/chunks/{file-retention-pv1g07z8.js → managed-policy-c0jb4yaq.js} +25 -25
- package/dist/chunks/{file-retention-wbmtbw5y.js → managed-policy-c0r0jd01.js} +5 -5
- package/dist/chunks/{file-retention-dqyjxj68.js → managed-policy-c0r6m18p.js} +14 -14
- package/dist/chunks/{file-retention-ahrm6a4v.js → managed-policy-ca54dx7n.js} +26 -26
- package/dist/chunks/{file-retention-6a2eq7nz.js → managed-policy-cdfeh84c.js} +20 -20
- package/dist/chunks/{file-retention-2vejemke.js → managed-policy-ckajzhn0.js} +13 -13
- package/dist/chunks/{file-retention-1yq6n76y.js → managed-policy-cqntne3k.js} +45 -45
- package/dist/chunks/{file-retention-d63vatx9.js → managed-policy-cr69m9gz.js} +4 -4
- package/dist/chunks/{file-retention-p22znmy8.js → managed-policy-cxk65cmw.js} +11 -11
- package/dist/chunks/{file-retention-5yvm9gq4.js → managed-policy-d2r51erv.js} +9 -9
- package/dist/chunks/{file-retention-mv49vzrc.js → managed-policy-d2vccz4f.js} +26 -26
- package/dist/chunks/{file-retention-d4v9tmah.js → managed-policy-d4v9tmah.js} +2 -2
- package/dist/chunks/{file-retention-1a3825m9.js → managed-policy-dd6h6kqy.js} +24 -24
- package/dist/chunks/{file-retention-a0vny5h5.js → managed-policy-ddjqg4re.js} +17 -17
- package/dist/chunks/{file-retention-ehw7gamr.js → managed-policy-dfgx57nd.js} +33 -33
- package/dist/chunks/{file-retention-b3zqj1fn.js → managed-policy-e0yygr8n.js} +28 -28
- package/dist/chunks/{file-retention-t8cetwdg.js → managed-policy-e4bdykca.js} +1 -1
- package/dist/chunks/{file-retention-e834z07m.js → managed-policy-e834z07m.js} +1 -1
- package/dist/chunks/{file-retention-62n5agxz.js → managed-policy-ed5jkn8v.js} +2 -2
- package/dist/chunks/{file-retention-kf3903q6.js → managed-policy-efkbwkq1.js} +2 -2
- package/dist/chunks/{file-retention-wj8797dk.js → managed-policy-esnhh37z.js} +18 -18
- package/dist/chunks/{file-retention-x8570257.js → managed-policy-evsbz9da.js} +9 -9
- package/dist/chunks/{file-retention-kv52dac4.js → managed-policy-ew4kz2ah.js} +21 -21
- package/dist/chunks/{file-retention-adgmyams.js → managed-policy-ezyvxv03.js} +39 -39
- package/dist/chunks/{file-retention-p2mqe0hz.js → managed-policy-f1fvgra9.js} +14 -14
- package/dist/chunks/managed-policy-f27wsjye.js +133 -0
- package/dist/chunks/{file-retention-tp6pqz2g.js → managed-policy-f42edk30.js} +15 -15
- package/dist/chunks/{file-retention-feghes5g.js → managed-policy-f4eccy7q.js} +14 -14
- package/dist/chunks/{file-retention-ymh0wyfn.js → managed-policy-f5at3vzj.js} +18 -18
- package/dist/chunks/{file-retention-jc09y3gx.js → managed-policy-f9fgjzmf.js} +5 -5
- package/dist/chunks/{file-retention-nm4377q9.js → managed-policy-fbjqxkhq.js} +8 -8
- package/dist/chunks/{file-retention-ztpn6ax8.js → managed-policy-fe357ss9.js} +5 -5
- package/dist/chunks/{file-retention-fffv3p7h.js → managed-policy-fffv3p7h.js} +1 -1
- package/dist/chunks/{file-retention-c9x3pgse.js → managed-policy-fkz1sskx.js} +14 -14
- package/dist/chunks/{file-retention-n0wvcyfn.js → managed-policy-fmq5p3ga.js} +3 -3
- package/dist/chunks/{file-retention-fnrac0zs.js → managed-policy-fy5bjxgv.js} +3 -3
- package/dist/chunks/{file-retention-g5h9c0rr.js → managed-policy-g5h9c0rr.js} +2 -2
- package/dist/chunks/managed-policy-g8qg0zk0.js +517 -0
- package/dist/chunks/{file-retention-5yj1svp7.js → managed-policy-ghp95cmw.js} +26 -26
- package/dist/chunks/{file-retention-dk26t417.js → managed-policy-h1vf7xw6.js} +18 -18
- package/dist/chunks/{file-retention-zt6m90gj.js → managed-policy-h7vk0jqt.js} +8 -8
- package/dist/chunks/{file-retention-cn5vzm85.js → managed-policy-h9g17fvf.js} +5 -5
- package/dist/chunks/{file-retention-757kxfk5.js → managed-policy-hj4bas8x.js} +5 -5
- package/dist/chunks/{file-retention-6481hcqs.js → managed-policy-hw53rdkh.js} +11 -11
- package/dist/chunks/{file-retention-j113cymg.js → managed-policy-j113cymg.js} +1 -1
- package/dist/chunks/{file-retention-043edbps.js → managed-policy-j2g2ntz0.js} +20 -20
- package/dist/chunks/{file-retention-enz9anj1.js → managed-policy-j9ezjb8v.js} +7 -7
- package/dist/chunks/{file-retention-jchrqzf6.js → managed-policy-jchrqzf6.js} +1 -1
- package/dist/chunks/{file-retention-av5ks0e5.js → managed-policy-je0epjbd.js} +9 -9
- package/dist/chunks/{file-retention-1hg0zxtx.js → managed-policy-je88hrb4.js} +10 -10
- package/dist/chunks/{file-retention-h31vq76g.js → managed-policy-jrzpqne3.js} +10 -10
- package/dist/chunks/{file-retention-37rj4464.js → managed-policy-jt052epg.js} +13 -13
- package/dist/chunks/{file-retention-a5dtds7w.js → managed-policy-jt7s8sjd.js} +5 -5
- package/dist/chunks/{file-retention-dh62xe4r.js → managed-policy-jx89vj1k.js} +3 -3
- package/dist/chunks/{file-retention-x6n10bgh.js → managed-policy-jyq39yw7.js} +18 -18
- package/dist/chunks/{file-retention-wv1byjhn.js → managed-policy-k69edqc3.js} +46 -46
- package/dist/chunks/{file-retention-k814nvkf.js → managed-policy-k814nvkf.js} +1 -1
- package/dist/chunks/{file-retention-4vc6yp1q.js → managed-policy-kgbbv3sg.js} +37 -37
- package/dist/chunks/{file-retention-4y5adm9d.js → managed-policy-kjx6j1fh.js} +45 -45
- package/dist/chunks/managed-policy-kt3bjfbg.js +26 -0
- package/dist/chunks/{file-retention-ktrds4tk.js → managed-policy-kwag3h57.js} +6 -6
- package/dist/chunks/{file-retention-m1714858.js → managed-policy-m1714858.js} +1 -1
- package/dist/chunks/{file-retention-vmfhgzt5.js → managed-policy-m37sd98t.js} +4 -4
- package/dist/chunks/{file-retention-t9bqp2qp.js → managed-policy-m4869hkg.js} +9 -9
- package/dist/chunks/{file-retention-g2cjact9.js → managed-policy-m7zcvtr8.js} +186 -186
- package/dist/chunks/{file-retention-m9w0rfyh.js → managed-policy-m9w0rfyh.js} +1 -1
- package/dist/chunks/{file-retention-maspj1v3.js → managed-policy-maspj1v3.js} +1 -1
- package/dist/chunks/{file-retention-1v3pmt1f.js → managed-policy-me2be6v4.js} +33 -33
- package/dist/chunks/{file-retention-q404j35s.js → managed-policy-mj9xj69n.js} +45 -45
- package/dist/chunks/{file-retention-9bz5f2aq.js → managed-policy-mkxcxg19.js} +21 -21
- package/dist/chunks/{file-retention-qr4bptwr.js → managed-policy-mm1qhevh.js} +24 -24
- package/dist/chunks/{file-retention-fe3ptvc8.js → managed-policy-mz7dkqsg.js} +20 -20
- package/dist/chunks/{file-retention-n0p0277s.js → managed-policy-n0p0277s.js} +1 -1
- package/dist/chunks/{file-retention-en82s9xt.js → managed-policy-n3q6whry.js} +21 -21
- package/dist/chunks/{file-retention-xha7ydwr.js → managed-policy-n52dfyva.js} +15 -15
- package/dist/chunks/{file-retention-hfbj6knv.js → managed-policy-n5wj02fj.js} +17 -17
- package/dist/chunks/{file-retention-xjvykbh7.js → managed-policy-n6vhe5fc.js} +21 -21
- package/dist/chunks/{file-retention-234ntbqc.js → managed-policy-n77kgz3v.js} +24 -24
- package/dist/chunks/{file-retention-ycrb3cr5.js → managed-policy-n89ynwx4.js} +15 -15
- package/dist/chunks/{file-retention-n9p72mjb.js → managed-policy-n9p72mjb.js} +2 -2
- package/dist/chunks/{file-retention-mr15razv.js → managed-policy-ncsf0b7s.js} +16 -16
- package/dist/chunks/{file-retention-atnbxq3j.js → managed-policy-njpdtz7k.js} +26 -26
- package/dist/chunks/{file-retention-wctyzwyk.js → managed-policy-nq061v6n.js} +28 -28
- package/dist/chunks/{file-retention-p015t6z3.js → managed-policy-p015t6z3.js} +2 -2
- package/dist/chunks/{file-retention-8w0qx81v.js → managed-policy-p0y7ddwc.js} +21 -21
- package/dist/chunks/{file-retention-30yerwvb.js → managed-policy-p3ey8vsp.js} +30 -30
- package/dist/chunks/{file-retention-exyf3fed.js → managed-policy-p5vfq2v8.js} +10 -10
- package/dist/chunks/{file-retention-p7vhpwh8.js → managed-policy-p7vhpwh8.js} +1 -1
- package/dist/chunks/{file-retention-njc35j2b.js → managed-policy-pdwtbhzp.js} +17 -17
- package/dist/chunks/{file-retention-pnx1meeb.js → managed-policy-ph7pkazd.js} +51 -51
- package/dist/chunks/{file-retention-pknna89w.js → managed-policy-pknna89w.js} +1 -1
- package/dist/chunks/{file-retention-8rqkymsz.js → managed-policy-pmnt75d6.js} +8 -8
- package/dist/chunks/{file-retention-c3cfh5w6.js → managed-policy-pp9yn2rg.js} +9 -9
- package/dist/chunks/{file-retention-rkvrbxb1.js → managed-policy-pqdrg6za.js} +17 -11
- package/dist/chunks/{file-retention-prazahgm.js → managed-policy-prazahgm.js} +2 -2
- package/dist/chunks/{file-retention-kzcwk5ky.js → managed-policy-pv3f4fmb.js} +11 -11
- package/dist/chunks/{file-retention-hj1ah81s.js → managed-policy-q01s6b65.js} +32 -32
- package/dist/chunks/{file-retention-ja8b98rf.js → managed-policy-q1bq6w6w.js} +8 -8
- package/dist/chunks/{file-retention-ndyybwqb.js → managed-policy-q666dkhj.js} +24 -24
- package/dist/chunks/{file-retention-3xv5yes5.js → managed-policy-q85rya1m.js} +6 -6
- package/dist/chunks/{file-retention-frt8zmm9.js → managed-policy-qc74gz25.js} +11 -11
- package/dist/chunks/{file-retention-qqg9c0kv.js → managed-policy-qqg9c0kv.js} +1 -1
- package/dist/chunks/{file-retention-ay3eg20d.js → managed-policy-qwgnw2k6.js} +16 -16
- package/dist/chunks/{file-retention-r0yr0wbs.js → managed-policy-r0yr0wbs.js} +1 -1
- package/dist/chunks/{file-retention-kp5tvjar.js → managed-policy-r3h5n1vp.js} +8 -8
- package/dist/chunks/{file-retention-sfp4tb26.js → managed-policy-r9d3bf7c.js} +1 -1
- package/dist/chunks/{file-retention-rb9dy4dg.js → managed-policy-rb9dy4dg.js} +1 -1
- package/dist/chunks/{file-retention-8aaegyc4.js → managed-policy-rdesvtjj.js} +4 -4
- package/dist/chunks/{file-retention-xw52kzy1.js → managed-policy-rezjgjxe.js} +20 -20
- package/dist/chunks/{file-retention-mjagy123.js → managed-policy-rkdvqggb.js} +5 -5
- package/dist/chunks/{file-retention-6g7e0vcw.js → managed-policy-rpw9k8ba.js} +13 -13
- package/dist/chunks/{file-retention-23nwgtns.js → managed-policy-rrmqzdps.js} +7 -7
- package/dist/chunks/{file-retention-rt5dr6hb.js → managed-policy-rt5dr6hb.js} +1 -1
- package/dist/chunks/{file-retention-yar054mm.js → managed-policy-rzbj1kbd.js} +33 -33
- package/dist/chunks/{file-retention-yzptcycq.js → managed-policy-s1qts2x9.js} +1 -1
- package/dist/chunks/{file-retention-7ta0ytq2.js → managed-policy-s4dfshv0.js} +36 -36
- package/dist/chunks/{file-retention-ymzrk7b3.js → managed-policy-s5rxfzaz.js} +3 -3
- package/dist/chunks/{file-retention-sa3fpqfw.js → managed-policy-sa3fpqfw.js} +2 -2
- package/dist/chunks/{file-retention-2qvs9jak.js → managed-policy-sa3m9chx.js} +11 -11
- package/dist/chunks/{file-retention-a37vbyfx.js → managed-policy-sj9d558k.js} +17 -17
- package/dist/chunks/{file-retention-he1xcvzj.js → managed-policy-skdn7emw.js} +9 -9
- package/dist/chunks/{file-retention-sqjzf8x2.js → managed-policy-sqjzf8x2.js} +1 -1
- package/dist/chunks/{file-retention-d2887f8n.js → managed-policy-ssfehs1z.js} +4 -4
- package/dist/chunks/{file-retention-5yw85qpw.js → managed-policy-t639c3yy.js} +28 -28
- package/dist/chunks/{file-retention-fpecf9xp.js → managed-policy-t92kp9s5.js} +4 -4
- package/dist/chunks/{file-retention-5784b4h2.js → managed-policy-t9r9zczj.js} +9 -9
- package/dist/chunks/{file-retention-tczq8hjw.js → managed-policy-tczq8hjw.js} +1 -1
- package/dist/chunks/{file-retention-6z77c2r8.js → managed-policy-tfcjfmds.js} +13 -13
- package/dist/chunks/{file-retention-xk76yr4x.js → managed-policy-tmb3tnse.js} +32 -32
- package/dist/chunks/{file-retention-af63jp32.js → managed-policy-tqxcyjgt.js} +21 -21
- package/dist/chunks/{file-retention-cjy4375a.js → managed-policy-tr9mnhj9.js} +4 -4
- package/dist/chunks/{file-retention-3wb8nyxx.js → managed-policy-twa7y64b.js} +13 -13
- package/dist/chunks/{file-retention-twv2r8f4.js → managed-policy-twv2r8f4.js} +2 -2
- package/dist/chunks/{file-retention-74by25sn.js → managed-policy-v1hzysda.js} +22 -22
- package/dist/chunks/{file-retention-v2r1d0zg.js → managed-policy-v2r1d0zg.js} +1 -1
- package/dist/chunks/{file-retention-pfwczevg.js → managed-policy-v7h0nwys.js} +16 -16
- package/dist/chunks/{file-retention-nnsghjk2.js → managed-policy-v8a9v78w.js} +31 -31
- package/dist/chunks/{file-retention-1htg6rk5.js → managed-policy-v8vd993n.js} +8 -8
- package/dist/chunks/{file-retention-m0ef4zea.js → managed-policy-vd204cgb.js} +15 -15
- package/dist/chunks/{file-retention-vd3b3yk9.js → managed-policy-vd3b3yk9.js} +1 -1
- package/dist/chunks/{file-retention-veqvce7d.js → managed-policy-veqvce7d.js} +1 -1
- package/dist/chunks/{file-retention-yz0q7a5m.js → managed-policy-vggrzz3j.js} +25 -25
- package/dist/chunks/{file-retention-zbkhh3g1.js → managed-policy-vmfhehpp.js} +22 -22
- package/dist/chunks/{file-retention-gcjdgkn2.js → managed-policy-vrcsa8qx.js} +9 -9
- package/dist/chunks/{file-retention-s27aztda.js → managed-policy-vrn1tqz6.js} +6 -6
- package/dist/chunks/{file-retention-2mbjfaxd.js → managed-policy-vsnnaxjq.js} +4 -4
- package/dist/chunks/{file-retention-6tx8rgr5.js → managed-policy-vvzc2rtq.js} +12 -12
- package/dist/chunks/{file-retention-c2sed5cq.js → managed-policy-vwdfpcvx.js} +2 -2
- package/dist/chunks/{file-retention-6cahmqzr.js → managed-policy-vwqqd668.js} +8 -8
- package/dist/chunks/{file-retention-q83y25yv.js → managed-policy-vxse5zfy.js} +13 -13
- package/dist/chunks/{file-retention-0ex69mkq.js → managed-policy-w0j5ywg8.js} +43 -43
- package/dist/chunks/{file-retention-40za9wsf.js → managed-policy-w2eysc6j.js} +9 -9
- package/dist/chunks/{file-retention-w3wsvvr9.js → managed-policy-w3wsvvr9.js} +1 -1
- package/dist/chunks/{file-retention-3r7w24g9.js → managed-policy-w9cf5jnd.js} +4 -4
- package/dist/chunks/{file-retention-wakvkjy4.js → managed-policy-wakvkjy4.js} +1 -1
- package/dist/chunks/{file-retention-wd87259q.js → managed-policy-wd87259q.js} +1 -1
- package/dist/chunks/{file-retention-d356z46s.js → managed-policy-wgbrv6pc.js} +23 -23
- package/dist/chunks/{file-retention-kqhr5b96.js → managed-policy-wp43yer9.js} +24 -24
- package/dist/chunks/{file-retention-fbx1pf6w.js → managed-policy-wpdqzxj0.js} +46 -46
- package/dist/chunks/{file-retention-fznmdakp.js → managed-policy-wr3re1en.js} +4 -4
- package/dist/chunks/{file-retention-w46nxhz5.js → managed-policy-wtj1vzq6.js} +7 -7
- package/dist/chunks/{file-retention-7zkpzyeb.js → managed-policy-wy76b4ds.js} +21 -21
- package/dist/chunks/{file-retention-mamyemm0.js → managed-policy-wyrpevsh.js} +17 -17
- package/dist/chunks/{file-retention-d0z36nkj.js → managed-policy-x026aahv.js} +23 -23
- package/dist/chunks/{file-retention-0kpntjxf.js → managed-policy-x132tpv8.js} +3 -3
- package/dist/chunks/{file-retention-eqtjzdmt.js → managed-policy-x5p586pb.js} +24 -24
- package/dist/chunks/{file-retention-jy12te0b.js → managed-policy-xar3ete2.js} +12 -12
- package/dist/chunks/{file-retention-4hh7j8bj.js → managed-policy-xqx3k1v9.js} +19 -19
- package/dist/chunks/{file-retention-w4488581.js → managed-policy-y1m3tahy.js} +4 -4
- package/dist/chunks/{file-retention-yb20nhc3.js → managed-policy-yb20nhc3.js} +1 -1
- package/dist/chunks/{file-retention-zz0wb7w6.js → managed-policy-yb6typ28.js} +29 -29
- package/dist/chunks/{file-retention-as38c070.js → managed-policy-ydn5pt77.js} +14 -14
- package/dist/chunks/{file-retention-y7gf4t9q.js → managed-policy-ygbaejqc.js} +20 -20
- package/dist/chunks/{file-retention-wb3zghwg.js → managed-policy-yzhnqbqe.js} +41 -41
- package/dist/chunks/{file-retention-z0bkrqjs.js → managed-policy-z0bkrqjs.js} +1 -1
- package/dist/chunks/{file-retention-6dw9a62t.js → managed-policy-z0tr6hr4.js} +85 -85
- package/dist/chunks/{file-retention-z38nccrw.js → managed-policy-z38nccrw.js} +1 -1
- package/dist/chunks/{file-retention-fg9nnp40.js → managed-policy-z7gjhxcb.js} +10 -10
- package/dist/chunks/{file-retention-bjhzkqyk.js → managed-policy-zba5tm1j.js} +4 -4
- package/dist/chunks/{file-retention-re267s79.js → managed-policy-zd3s57ef.js} +14 -14
- package/dist/chunks/{file-retention-jd8b4czr.js → managed-policy-ze6babrc.js} +16 -16
- package/dist/chunks/{file-retention-k6rztwfs.js → managed-policy-zfrqmavk.js} +18 -18
- package/dist/chunks/{file-retention-zfyb5tr4.js → managed-policy-zgmrepvs.js} +4 -4
- package/dist/chunks/{file-retention-zkg84ctx.js → managed-policy-zkg84ctx.js} +1 -1
- package/dist/chunks/{file-retention-9nz28cm2.js → managed-policy-zm48p3w4.js} +11 -11
- package/dist/chunks/{file-retention-na64j5m8.js → managed-policy-zq8j0fqq.js} +19 -19
- package/dist/chunks/{file-retention-dbx6pzfq.js → managed-policy-zvwzcwk0.js} +4 -4
- package/dist/chunks/{file-retention-h5dyhw6p.js → managed-policy-zw3k2mvr.js} +32 -32
- package/dist/chunks/{file-retention-0c77ab74.js → managed-policy-zw9jfjbq.js} +18 -18
- package/dist/chunks/{file-retention-fhj25s52.js → managed-policy-zz2mxr8y.js} +35 -35
- 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 +86 -86
- package/dist/config/discovery.js +86 -86
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +103 -103
- package/dist/config/plugin/agent.js +119 -119
- package/dist/config/plugin/command.js +215 -215
- package/dist/config/plugin/compaction.js +156 -156
- package/dist/config/plugin/compatibility.js +136 -136
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +118 -118
- package/dist/config/plugin/image.js +117 -117
- package/dist/config/plugin/instruction.js +117 -117
- package/dist/config/plugin/location-watcher.js +119 -119
- package/dist/config/plugin/mcp.js +126 -126
- package/dist/config/plugin/policy.js +118 -118
- package/dist/config/plugin/provider.js +117 -117
- package/dist/config/plugin/reference.js +119 -119
- package/dist/config/plugin/shell.js +117 -117
- package/dist/config/plugin/skill-file.js +106 -106
- package/dist/config/plugin/skill-scan.js +3 -3
- package/dist/config/plugin/skill.js +139 -139
- package/dist/config/plugin/snapshot.js +117 -117
- package/dist/config/plugin/source.js +118 -118
- package/dist/config/plugin/tool-output.js +118 -118
- package/dist/config/plugin/websearch.js +116 -116
- package/dist/config/plugin/worktree.js +119 -119
- package/dist/config/variable.js +1 -1
- package/dist/config/watch.js +1 -1
- package/dist/config.js +116 -116
- package/dist/console-access.js +12 -0
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +86 -86
- package/dist/database/database.js +71 -71
- package/dist/database/drizzle/effect-sqlite/driver.js +14 -14
- package/dist/database/drizzle/effect-sqlite/index.js +14 -14
- package/dist/database/drizzle/effect-sqlite/session.js +11 -11
- package/dist/database/drizzle/index.js +15 -15
- package/dist/database/drizzle/internal/drizzle-utils.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/count.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/db.js +9 -9
- package/dist/database/drizzle/sqlite-core/effect/delete.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/insert.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/query.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/raw.js +1 -1
- package/dist/database/drizzle/sqlite-core/effect/select.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/update.js +2 -2
- package/dist/database/drizzle.js +16 -16
- package/dist/database/migration/20260127222353_familiar_lady_ursula.js +1 -1
- package/dist/database/migration/20260211171708_add_project_commands.js +1 -1
- package/dist/database/migration/20260213144116_wakeful_the_professor.js +1 -1
- package/dist/database/migration/20260225215848_workspace.js +1 -1
- package/dist/database/migration/20260227213759_add_session_workspace_id.js +1 -1
- package/dist/database/migration/20260228203230_blue_harpoon.js +1 -1
- package/dist/database/migration/20260303231226_add_workspace_fields.js +1 -1
- package/dist/database/migration/20260309230000_move_org_to_state.js +1 -1
- package/dist/database/migration/20260312043431_session_message_cursor.js +1 -1
- package/dist/database/migration/20260323234822_events.js +1 -1
- package/dist/database/migration/20260410174513_workspace-name.js +1 -1
- package/dist/database/migration/20260413175956_chief_energizer.js +1 -1
- package/dist/database/migration/20260423070820_add_icon_url_override.js +1 -1
- package/dist/database/migration/20260427172553_slow_nightmare.js +1 -1
- package/dist/database/migration/20260428004200_add_session_path.js +1 -1
- package/dist/database/migration/20260501142318_next_venus.js +1 -1
- package/dist/database/migration/20260504145000_add_sync_owner.js +1 -1
- package/dist/database/migration/20260507164347_add_workspace_time.js +1 -1
- package/dist/database/migration/20260510033149_session_usage.js +1 -1
- package/dist/database/migration/20260511000411_data_migration_state.js +1 -1
- package/dist/database/migration/20260511173437_session-metadata.js +1 -1
- package/dist/database/migration/20260601010001_normalize_storage_paths.js +1 -1
- package/dist/database/migration/20260601202201_amazing_prowler.js +1 -1
- package/dist/database/migration/20260602002951_lowly_union_jack.js +1 -1
- package/dist/database/migration/20260602182828_add_project_directories.js +1 -1
- package/dist/database/migration/20260603001617_session_message_projection_indexes.js +1 -1
- package/dist/database/migration/20260603040000_session_message_projection_order.js +1 -1
- package/dist/database/migration/20260603141458_session_input_inbox.js +1 -1
- package/dist/database/migration/20260603160727_jittery_ezekiel_stane.js +1 -1
- package/dist/database/migration/20260604172448_event_sourced_session_input.js +1 -1
- package/dist/database/migration/20260605003541_add_session_context_snapshot.js +1 -1
- package/dist/database/migration/20260605042240_add_context_epoch_agent.js +1 -1
- package/dist/database/migration/20260611035744_credential.js +1 -1
- package/dist/database/migration/20260611192811_lush_chimera.js +1 -1
- package/dist/database/migration/20260612174303_project_dir_strategy.js +1 -1
- package/dist/database/migration/20260622142730_simplify_session_context_epoch.js +1 -1
- package/dist/database/migration/20260622170816_reset_v2_session_state.js +1 -1
- package/dist/database/migration/20260622202450_simplify_session_input.js +1 -1
- package/dist/database/migration/20260804233008_loose_psylocke.js +1 -1
- package/dist/database/migration/20260805200742_import_legacy_credentials.js +1 -1
- package/dist/database/migration/20260808023530_workspace_domain.js +1 -1
- package/dist/database/migration/20260811161259_execution_claim_attempts.js +1 -1
- package/dist/database/migration/20260812181746_session_inbox.js +1 -1
- package/dist/database/migration/20260812213948_worktree.js +1 -1
- package/dist/database/migration/20260819222447_session_viewed_state.js +1 -1
- package/dist/database/migration/20260823191254_nullable_workspace_binding.js +1 -1
- package/dist/database/migration/20260910120000_clear_v1_session_permission.js +1 -1
- package/dist/database/migration/20260923013825_project_time_active.js +1 -1
- package/dist/database/migration/20261007190000_azure_cli_external_credential.js +1 -1
- package/dist/database/migration/20261010180456_project_time_archived.js +1 -1
- package/dist/database/migration/20261024002554_session_allowance.js +1 -1
- package/dist/database/migration.gen.js +52 -52
- package/dist/database/migration.js +54 -54
- 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 +96 -96
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +373 -371
- 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 +97 -97
- 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 +73 -73
- package/dist/file-access.js +108 -108
- package/dist/file-mutation.js +98 -98
- 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 +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +103 -103
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +7 -7
- package/dist/filesystem.js +104 -104
- package/dist/form.js +87 -87
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +91 -91
- package/dist/generate.js +111 -111
- package/dist/git.js +11 -11
- package/dist/github-copilot/chat/convert-to-openai-compatible-chat-messages.js +1 -1
- package/dist/github-copilot/chat/get-response-metadata.js +1 -1
- package/dist/github-copilot/chat/map-openai-compatible-finish-reason.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +7 -7
- package/dist/github-copilot/chat/openai-compatible-chat-options.js +1 -1
- package/dist/github-copilot/chat/openai-compatible-prepare-tools.js +1 -1
- package/dist/github-copilot/copilot-provider.js +17 -17
- package/dist/github-copilot/models.js +103 -103
- 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 +364 -362
- package/dist/instruction-discovery.js +87 -87
- package/dist/instructions/builtins.js +91 -91
- package/dist/instructions/index.js +1 -1
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +90 -90
- package/dist/job.js +81 -81
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +76 -76
- package/dist/location-activity.js +157 -157
- package/dist/location-lifecycle.js +111 -111
- package/dist/location-service-map.js +90 -90
- package/dist/location-services.js +361 -359
- package/dist/location.js +91 -91
- package/dist/managed-policy.js +8 -8
- package/dist/mcp/client.js +95 -95
- package/dist/mcp/index.js +113 -113
- package/dist/mcp/instructions.js +142 -142
- package/dist/mcp/oauth.js +81 -81
- package/dist/mcp/socket-client.js +1 -1
- package/dist/mcp/stdio.js +94 -94
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +103 -103
- package/dist/model-resolver.js +103 -103
- package/dist/model-retry.js +1 -1
- package/dist/model.js +104 -104
- package/dist/models-dev.js +103 -103
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +85 -85
- 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 +93 -93
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +78 -78
- package/dist/plugin/agent.js +79 -79
- package/dist/plugin/command.js +106 -106
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +219 -219
- package/dist/plugin/identity.js +5 -5
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +334 -333
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +100 -100
- package/dist/plugin/module.js +118 -118
- package/dist/plugin/optimize.js +4 -4
- package/dist/plugin/plan.js +106 -106
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +94 -94
- package/dist/plugin/provider/azure.js +117 -117
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +117 -117
- package/dist/plugin/provider/cloudflare-ai-gateway.js +114 -114
- package/dist/plugin/provider/cloudflare-workers-ai.js +114 -114
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +113 -113
- package/dist/plugin/provider/databricks.js +1 -1
- package/dist/plugin/provider/digitalocean.js +97 -97
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/github-copilot.js +99 -99
- package/dist/plugin/provider/gitlab.js +97 -97
- package/dist/plugin/provider/google-vertex.js +114 -114
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +81 -81
- package/dist/plugin/provider/lmstudio.js +124 -124
- package/dist/plugin/provider/local.js +123 -123
- package/dist/plugin/provider/modal.js +96 -96
- package/dist/plugin/provider/neon.js +1 -1
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +124 -124
- package/dist/plugin/provider/openai-context-caps.js +94 -94
- package/dist/plugin/provider/openai.js +119 -119
- package/dist/plugin/provider/opencode.js +103 -102
- package/dist/plugin/provider/openrouter.js +95 -95
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +82 -82
- package/dist/plugin/provider/prompt-cache-key.js +1 -1
- package/dist/plugin/provider/sap-ai-core.js +95 -95
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +116 -116
- package/dist/plugin/provider/vercel.js +94 -94
- package/dist/plugin/provider/vllm.js +126 -126
- package/dist/plugin/provider/xai.js +95 -95
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +170 -169
- package/dist/plugin/sdk.js +79 -79
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +135 -135
- package/dist/plugin/source-directory.js +1 -1
- package/dist/plugin/supervisor.js +353 -352
- package/dist/plugin/tool-input-repair.js +4 -4
- package/dist/plugin/update.js +6 -6
- package/dist/plugin/vcs/git.js +90 -90
- package/dist/plugin/vcs/hg.js +90 -90
- package/dist/plugin/verbosity.js +97 -97
- package/dist/plugin/warming.js +115 -115
- package/dist/plugin/websearch/exa.js +7 -7
- package/dist/plugin/websearch/firecrawl.js +8 -8
- package/dist/plugin/websearch/index.js +9 -9
- package/dist/plugin/websearch/mcp.js +6 -6
- package/dist/plugin/websearch/parallel.js +8 -8
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin/websearch/tinyfish.js +8 -8
- package/dist/plugin.js +226 -226
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +94 -94
- package/dist/provider.js +103 -103
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +98 -98
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +93 -93
- package/dist/repository-cache.js +85 -85
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +101 -101
- package/dist/rpc.js +90 -90
- package/dist/schema.js +1 -1
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +77 -77
- package/dist/session/compaction.js +138 -138
- package/dist/session/context.js +166 -166
- package/dist/session/diff.js +92 -92
- 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 +222 -222
- package/dist/session/execution.js +132 -132
- package/dist/session/generate.js +168 -168
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +96 -96
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +82 -82
- package/dist/session/instruction-state.js +8 -8
- package/dist/session/instructions.js +97 -97
- package/dist/session/message-updater.js +2 -2
- package/dist/session/message.js +1 -1
- package/dist/session/model-request.js +122 -122
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +134 -134
- package/dist/session/projector.js +92 -92
- package/dist/session/prompt.js +109 -109
- package/dist/session/recent-text.js +1 -1
- package/dist/session/revert.js +98 -98
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +232 -232
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +104 -104
- package/dist/session/runner/publish-llm-event.js +117 -117
- package/dist/session/runner/retry.js +5 -5
- package/dist/session/runner/step.js +130 -130
- package/dist/session/runner/to-llm-message.js +14 -14
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +166 -166
- package/dist/session/shell.js +131 -131
- package/dist/session/skill.js +107 -107
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +76 -76
- package/dist/session/store.js +88 -88
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +213 -213
- package/dist/session/system-prompt.js +3 -3
- package/dist/session/title.js +170 -170
- package/dist/session/to-session-error.js +116 -116
- package/dist/session/transfer.js +218 -218
- package/dist/session/usage.js +1 -1
- package/dist/session.js +217 -217
- 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 +9 -9
- package/dist/shell.js +133 -133
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +109 -109
- package/dist/skill.js +116 -116
- package/dist/snapshot.js +97 -97
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +139 -139
- package/dist/tool/plugin/edit.js +124 -124
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +128 -128
- package/dist/tool/plugin/grep.js +120 -120
- package/dist/tool/plugin/mcp-resource.js +128 -128
- package/dist/tool/plugin/opencode.js +113 -113
- package/dist/tool/plugin/patch.js +126 -126
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +129 -129
- package/dist/tool/plugin/shell.js +216 -216
- package/dist/tool/plugin/skill.js +111 -111
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/todo.js +139 -139
- package/dist/tool/plugin/webfetch.js +117 -117
- package/dist/tool/plugin/websearch.js +116 -116
- package/dist/tool/plugin/write.js +126 -126
- package/dist/tool/read-filesystem.js +106 -106
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +7 -7
- package/dist/tool.js +14 -14
- package/dist/types/console-access.d.ts +7 -0
- package/dist/types/instance.d.ts +2 -1
- package/dist/types/usage-limits.d.ts +103 -0
- package/dist/usage-limits.js +97 -0
- package/dist/util/error-summary.js +1 -1
- package/dist/util/git-executable.js +3 -3
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +7 -7
- package/dist/v1/config/command.js +1 -1
- package/dist/v1/config/mcp.js +2 -2
- package/dist/v1/config/migrate.js +96 -96
- 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 +93 -93
- package/dist/voice.js +91 -91
- package/dist/websearch.js +83 -83
- package/dist/wellknown/plugin.js +79 -79
- package/dist/wellknown.js +82 -82
- package/dist/workspace/driver.js +3 -3
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +85 -85
- package/dist/worktree/directory.js +2 -2
- package/dist/worktree/git.js +11 -11
- package/dist/worktree/sql.js +5 -5
- package/dist/worktree/strategies.js +93 -93
- package/dist/worktree.js +102 -102
- package/package.json +8 -8
- package/dist/chunks/file-retention-4t67gtqn.js +0 -257
- package/dist/chunks/file-retention-jztn5z23.js +0 -18
- package/dist/chunks/file-retention-q2x3hw9d.js +0 -26
- package/dist/chunks/file-retention-qegqjw48.js +0 -517
- /package/dist/chunks/{file-retention-0qkdqm5v.js → managed-policy-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{file-retention-0zkw76rk.js → managed-policy-0zkw76rk.js} +0 -0
- /package/dist/chunks/{file-retention-17cy0kzp.js → managed-policy-17cy0kzp.js} +0 -0
- /package/dist/chunks/{file-retention-1cnp2v09.js → managed-policy-1cnp2v09.js} +0 -0
- /package/dist/chunks/{file-retention-24dcb14g.js → managed-policy-24dcb14g.js} +0 -0
- /package/dist/chunks/{file-retention-2710q6r3.js → managed-policy-2710q6r3.js} +0 -0
- /package/dist/chunks/{file-retention-2bv980vf.js → managed-policy-2bv980vf.js} +0 -0
- /package/dist/chunks/{file-retention-2c3vjs8z.js → managed-policy-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{file-retention-359p4xyc.js → managed-policy-359p4xyc.js} +0 -0
- /package/dist/chunks/{file-retention-3asan66x.js → managed-policy-3asan66x.js} +0 -0
- /package/dist/chunks/{file-retention-3v8g72cx.js → managed-policy-3v8g72cx.js} +0 -0
- /package/dist/chunks/{file-retention-3wcehsnq.js → managed-policy-3wcehsnq.js} +0 -0
- /package/dist/chunks/{file-retention-43n2bw4t.js → managed-policy-43n2bw4t.js} +0 -0
- /package/dist/chunks/{file-retention-4knz6hnm.js → managed-policy-4knz6hnm.js} +0 -0
- /package/dist/chunks/{file-retention-4vcrnpx2.js → managed-policy-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{file-retention-4y7fprxs.js → managed-policy-4y7fprxs.js} +0 -0
- /package/dist/chunks/{file-retention-53557ph1.js → managed-policy-53557ph1.js} +0 -0
- /package/dist/chunks/{file-retention-550bvhaj.js → managed-policy-550bvhaj.js} +0 -0
- /package/dist/chunks/{file-retention-5fjb7ams.js → managed-policy-5fjb7ams.js} +0 -0
- /package/dist/chunks/{file-retention-6prwharc.js → managed-policy-6prwharc.js} +0 -0
- /package/dist/chunks/{file-retention-6q2bdcd1.js → managed-policy-6q2bdcd1.js} +0 -0
- /package/dist/chunks/{file-retention-7akdwqpd.js → managed-policy-7akdwqpd.js} +0 -0
- /package/dist/chunks/{file-retention-7m9af43g.js → managed-policy-7m9af43g.js} +0 -0
- /package/dist/chunks/{file-retention-822emrt2.js → managed-policy-822emrt2.js} +0 -0
- /package/dist/chunks/{file-retention-84wd9syh.js → managed-policy-84wd9syh.js} +0 -0
- /package/dist/chunks/{file-retention-88xbtdfr.js → managed-policy-88xbtdfr.js} +0 -0
- /package/dist/chunks/{file-retention-8n3pysct.js → managed-policy-8n3pysct.js} +0 -0
- /package/dist/chunks/{file-retention-8wj87zfr.js → managed-policy-8wj87zfr.js} +0 -0
- /package/dist/chunks/{file-retention-9a4afbnw.js → managed-policy-9a4afbnw.js} +0 -0
- /package/dist/chunks/{file-retention-9rqn6x4v.js → managed-policy-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{file-retention-a058387c.js → managed-policy-a058387c.js} +0 -0
- /package/dist/chunks/{file-retention-a6k6eb26.js → managed-policy-a6k6eb26.js} +0 -0
- /package/dist/chunks/{file-retention-af5trqkr.js → managed-policy-af5trqkr.js} +0 -0
- /package/dist/chunks/{file-retention-afrmfg78.js → managed-policy-afrmfg78.js} +0 -0
- /package/dist/chunks/{file-retention-aqzs7mqg.js → managed-policy-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{file-retention-atq7p7m5.js → managed-policy-atq7p7m5.js} +0 -0
- /package/dist/chunks/{file-retention-bkyjaxrp.js → managed-policy-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{file-retention-bmr6ed5q.js → managed-policy-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{file-retention-cf4snx6d.js → managed-policy-cf4snx6d.js} +0 -0
- /package/dist/chunks/{file-retention-cqv5kn06.js → managed-policy-cqv5kn06.js} +0 -0
- /package/dist/chunks/{file-retention-cvy3z8tj.js → managed-policy-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{file-retention-d9fn303g.js → managed-policy-d9fn303g.js} +0 -0
- /package/dist/chunks/{file-retention-d9jj8t3e.js → managed-policy-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{file-retention-dajrwvna.js → managed-policy-dajrwvna.js} +0 -0
- /package/dist/chunks/{file-retention-dap0rakb.js → managed-policy-dap0rakb.js} +0 -0
- /package/dist/chunks/{file-retention-dbztejgq.js → managed-policy-dbztejgq.js} +0 -0
- /package/dist/chunks/{file-retention-df08tz66.js → managed-policy-df08tz66.js} +0 -0
- /package/dist/chunks/{file-retention-dy18nga0.js → managed-policy-dy18nga0.js} +0 -0
- /package/dist/chunks/{file-retention-e3qxr5gk.js → managed-policy-e3qxr5gk.js} +0 -0
- /package/dist/chunks/{file-retention-e5kj55wp.js → managed-policy-e5kj55wp.js} +0 -0
- /package/dist/chunks/{file-retention-e73j6tqm.js → managed-policy-e73j6tqm.js} +0 -0
- /package/dist/chunks/{file-retention-ec1grn59.js → managed-policy-ec1grn59.js} +0 -0
- /package/dist/chunks/{file-retention-eh3zwz77.js → managed-policy-eh3zwz77.js} +0 -0
- /package/dist/chunks/{file-retention-emrn6kk6.js → managed-policy-emrn6kk6.js} +0 -0
- /package/dist/chunks/{file-retention-f0mxakyp.js → managed-policy-f0mxakyp.js} +0 -0
- /package/dist/chunks/{file-retention-f6n9ztr4.js → managed-policy-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{file-retention-faypxj3z.js → managed-policy-faypxj3z.js} +0 -0
- /package/dist/chunks/{file-retention-fd410y7t.js → managed-policy-fd410y7t.js} +0 -0
- /package/dist/chunks/{file-retention-g4wezp1m.js → managed-policy-g4wezp1m.js} +0 -0
- /package/dist/chunks/{file-retention-g86h250q.js → managed-policy-g86h250q.js} +0 -0
- /package/dist/chunks/{file-retention-gebd4c9n.js → managed-policy-gebd4c9n.js} +0 -0
- /package/dist/chunks/{file-retention-gftt206x.js → managed-policy-gftt206x.js} +0 -0
- /package/dist/chunks/{file-retention-hcxmzztb.js → managed-policy-hcxmzztb.js} +0 -0
- /package/dist/chunks/{file-retention-hk9envan.js → managed-policy-hk9envan.js} +0 -0
- /package/dist/chunks/{file-retention-j2ntwpah.js → managed-policy-j2ntwpah.js} +0 -0
- /package/dist/chunks/{file-retention-j5zkgpj8.js → managed-policy-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{file-retention-jjkms2e6.js → managed-policy-jjkms2e6.js} +0 -0
- /package/dist/chunks/{file-retention-jr7sbwjy.js → managed-policy-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{file-retention-jwfs4k6c.js → managed-policy-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{file-retention-jze0r7bz.js → managed-policy-jze0r7bz.js} +0 -0
- /package/dist/chunks/{file-retention-jzg6c2d5.js → managed-policy-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{file-retention-m18g726c.js → managed-policy-m18g726c.js} +0 -0
- /package/dist/chunks/{file-retention-mp448xyj.js → managed-policy-mp448xyj.js} +0 -0
- /package/dist/chunks/{file-retention-msx8hqn2.js → managed-policy-msx8hqn2.js} +0 -0
- /package/dist/chunks/{file-retention-n05xt0ee.js → managed-policy-n05xt0ee.js} +0 -0
- /package/dist/chunks/{file-retention-n3j8tn72.js → managed-policy-n3j8tn72.js} +0 -0
- /package/dist/chunks/{file-retention-njntx4h6.js → managed-policy-njntx4h6.js} +0 -0
- /package/dist/chunks/{file-retention-q3sfg36h.js → managed-policy-q3sfg36h.js} +0 -0
- /package/dist/chunks/{file-retention-q74kybfr.js → managed-policy-q74kybfr.js} +0 -0
- /package/dist/chunks/{file-retention-qaymkmh1.js → managed-policy-qaymkmh1.js} +0 -0
- /package/dist/chunks/{file-retention-qb87gjwd.js → managed-policy-qb87gjwd.js} +0 -0
- /package/dist/chunks/{file-retention-qfa1cgps.js → managed-policy-qfa1cgps.js} +0 -0
- /package/dist/chunks/{file-retention-qg3g05ea.js → managed-policy-qg3g05ea.js} +0 -0
- /package/dist/chunks/{file-retention-qrg20bc0.js → managed-policy-qrg20bc0.js} +0 -0
- /package/dist/chunks/{file-retention-rcb2kzg1.js → managed-policy-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{file-retention-sdp7kfr6.js → managed-policy-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{file-retention-ssg3fenm.js → managed-policy-ssg3fenm.js} +0 -0
- /package/dist/chunks/{file-retention-ve7vex1e.js → managed-policy-ve7vex1e.js} +0 -0
- /package/dist/chunks/{file-retention-w803qqfp.js → managed-policy-w803qqfp.js} +0 -0
- /package/dist/chunks/{file-retention-wc3fc9cn.js → managed-policy-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{file-retention-wer8tq1h.js → managed-policy-wer8tq1h.js} +0 -0
- /package/dist/chunks/{file-retention-wjj7prxr.js → managed-policy-wjj7prxr.js} +0 -0
- /package/dist/chunks/{file-retention-wtztk69x.js → managed-policy-wtztk69x.js} +0 -0
- /package/dist/chunks/{file-retention-x0ckcb58.js → managed-policy-x0ckcb58.js} +0 -0
- /package/dist/chunks/{file-retention-x61499pn.js → managed-policy-x61499pn.js} +0 -0
- /package/dist/chunks/{file-retention-y44na4kk.js → managed-policy-y44na4kk.js} +0 -0
- /package/dist/chunks/{file-retention-y8f7s663.js → managed-policy-y8f7s663.js} +0 -0
- /package/dist/chunks/{file-retention-ygaqb7jw.js → managed-policy-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{file-retention-ym463w8f.js → managed-policy-ym463w8f.js} +0 -0
- /package/dist/chunks/{file-retention-z5v4ffb3.js → managed-policy-z5v4ffb3.js} +0 -0
- /package/dist/chunks/{file-retention-z9919s4g.js → managed-policy-z9919s4g.js} +0 -0
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85,
|
|
3
3
|
node89
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./managed-policy-w9cf5jnd.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
6
|
+
Event17,
|
|
7
|
+
Service76,
|
|
8
|
+
node79
|
|
9
|
+
} from "./managed-policy-e0yygr8n.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
11
|
+
Service63,
|
|
12
|
+
node66
|
|
13
|
+
} from "./managed-policy-32rbtppw.js";
|
|
14
14
|
import {
|
|
15
15
|
AbsolutePath2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
17
17
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
} from "./
|
|
18
|
+
Service81,
|
|
19
|
+
node85
|
|
20
|
+
} from "./managed-policy-6p9bsfn5.js";
|
|
21
21
|
import {
|
|
22
22
|
substitute2
|
|
23
|
-
} from "./
|
|
23
|
+
} from "./managed-policy-7w2ypzdf.js";
|
|
24
24
|
import {
|
|
25
25
|
normalize2
|
|
26
|
-
} from "./
|
|
26
|
+
} from "./managed-policy-f4eccy7q.js";
|
|
27
27
|
import {
|
|
28
28
|
names4,
|
|
29
29
|
stripPreferenceMetadata2,
|
|
30
30
|
discover3
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./managed-policy-f9fgjzmf.js";
|
|
32
32
|
import {
|
|
33
33
|
plan2
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./managed-policy-1x2knyw4.js";
|
|
35
35
|
import {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
} from "./
|
|
36
|
+
Service66,
|
|
37
|
+
Event12,
|
|
38
|
+
node69
|
|
39
|
+
} from "./managed-policy-esnhh37z.js";
|
|
40
40
|
import {
|
|
41
41
|
__export
|
|
42
|
-
} from "./
|
|
42
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
43
43
|
|
|
44
44
|
// src/config.ts
|
|
45
45
|
var exports_config = {};
|
|
46
46
|
__export(exports_config, {
|
|
47
47
|
Config: () => exports_config,
|
|
48
48
|
Options: () => Options6,
|
|
49
|
-
Service: () =>
|
|
49
|
+
Service: () => Service62,
|
|
50
50
|
Test: () => Test2,
|
|
51
51
|
configured: () => configured8,
|
|
52
52
|
latest: () => latest2,
|
|
53
53
|
layer: () => layer24,
|
|
54
|
-
node: () =>
|
|
54
|
+
node: () => node65,
|
|
55
55
|
testLayer: () => testLayer2
|
|
56
56
|
});
|
|
57
57
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -76,7 +76,7 @@ var Options6 = Schema.Struct({
|
|
|
76
76
|
content: Schema.optional(Schema.String)
|
|
77
77
|
});
|
|
78
78
|
|
|
79
|
-
class
|
|
79
|
+
class Service62 extends Context.Service()("@opencode/Config") {
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
class Test2 extends Context.Service()("@opencode/Config/Test") {
|
|
@@ -94,16 +94,16 @@ var testLayer2 = (initial = [], compatibility = {
|
|
|
94
94
|
setEntries: (next) => Ref.set(entries, next),
|
|
95
95
|
emitChange: (update) => PubSub.publish(updates, update).pipe(Effect.asVoid)
|
|
96
96
|
});
|
|
97
|
-
return Context.empty().pipe(Context.add(
|
|
97
|
+
return Context.empty().pipe(Context.add(Service62, service), Context.add(Test2, service));
|
|
98
98
|
}));
|
|
99
|
-
var layer24 = (options) => Layer.effect(
|
|
99
|
+
var layer24 = (options) => Layer.effect(Service62, Effect.gen(function* () {
|
|
100
100
|
const fs = yield* FSUtil.Service;
|
|
101
|
-
const location = yield*
|
|
102
|
-
const watcher = yield*
|
|
101
|
+
const location = yield* Service81;
|
|
102
|
+
const watcher = yield* Service63;
|
|
103
103
|
const bus = yield* Service85;
|
|
104
|
-
const credentials = yield*
|
|
104
|
+
const credentials = yield* Service76;
|
|
105
105
|
const globalService = yield* Global.Service;
|
|
106
|
-
const wellknown = yield*
|
|
106
|
+
const wellknown = yield* Service66;
|
|
107
107
|
const processes = yield* AppProcess.Service;
|
|
108
108
|
const reloadLock = Semaphore.makeUnsafe(1);
|
|
109
109
|
const updateLock = Semaphore.makeUnsafe(1);
|
|
@@ -254,8 +254,8 @@ var layer24 = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
|
254
254
|
}, (effect) => reloadLock.withPermit(effect));
|
|
255
255
|
const pendingReloads = yield* PubSub.subscribe(reloads);
|
|
256
256
|
yield* Stream.fromSubscription(pendingReloads).pipe(Stream.debounce("100 millis"), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
257
|
-
yield* bus.subscribe(
|
|
258
|
-
yield* bus.subscribe(
|
|
257
|
+
yield* bus.subscribe(Event17.Switched).pipe(Stream.filterEffect((event) => wellknown.entries().pipe(Effect.map((entries) => entries.some((entry) => entry.integrationID === event.data.integrationID)), Effect.orElseSucceed(() => false))), Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown config", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
258
|
+
yield* bus.subscribe(Event12.Updated).pipe(Stream.runForEach(() => reload().pipe(Effect.catchCause((cause) => Effect.logError("failed to reload wellknown sources", { cause })))), Effect.forkScoped({ startImmediately: true }));
|
|
259
259
|
yield* Effect.sleep("10 minutes").pipe(Effect.andThen(Effect.suspend(() => {
|
|
260
260
|
if (!wellknown.snapshot().length)
|
|
261
261
|
return Effect.void;
|
|
@@ -283,7 +283,7 @@ var layer24 = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
|
283
283
|
`);
|
|
284
284
|
yield* requestReload;
|
|
285
285
|
}, (effect) => updateLock.withPermit(effect));
|
|
286
|
-
return
|
|
286
|
+
return Service62.of({
|
|
287
287
|
entries: Effect.fnUntraced(function* () {
|
|
288
288
|
return configs;
|
|
289
289
|
}),
|
|
@@ -297,20 +297,20 @@ var layer24 = (options) => Layer.effect(Service65, Effect.gen(function* () {
|
|
|
297
297
|
}));
|
|
298
298
|
function configured8(options) {
|
|
299
299
|
return makeLocationNode({
|
|
300
|
-
service:
|
|
300
|
+
service: Service62,
|
|
301
301
|
layer: layer24(options),
|
|
302
302
|
deps: [
|
|
303
|
-
|
|
303
|
+
node66,
|
|
304
304
|
node89,
|
|
305
305
|
FSUtil.node,
|
|
306
306
|
Global.node,
|
|
307
|
-
node86,
|
|
308
307
|
node85,
|
|
309
|
-
|
|
308
|
+
node79,
|
|
309
|
+
node69,
|
|
310
310
|
AppProcess.node
|
|
311
311
|
]
|
|
312
312
|
});
|
|
313
313
|
}
|
|
314
|
-
var
|
|
314
|
+
var node65 = configured8();
|
|
315
315
|
|
|
316
|
-
export { latest2, Options6,
|
|
316
|
+
export { latest2, Options6, Service62, Test2, testLayer2, layer24, configured8, node65, exports_config };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
Service81
|
|
3
|
+
} from "./managed-policy-6p9bsfn5.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
5
|
+
ID9,
|
|
6
6
|
Family2
|
|
7
|
-
} from "./
|
|
7
|
+
} from "./managed-policy-tmb3tnse.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
9
|
+
Service62
|
|
10
|
+
} from "./managed-policy-ezyvxv03.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
} from "./
|
|
12
|
+
Service79
|
|
13
|
+
} from "./managed-policy-dd6h6kqy.js";
|
|
14
14
|
import {
|
|
15
15
|
spawner2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./managed-policy-wr3re1en.js";
|
|
17
17
|
import {
|
|
18
18
|
foldSettings2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./managed-policy-2gg250z3.js";
|
|
20
20
|
|
|
21
21
|
// src/plugin/provider/local.ts
|
|
22
22
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
@@ -32,9 +32,9 @@ function createLocalProviderPlugin2(input) {
|
|
|
32
32
|
id: input.id,
|
|
33
33
|
effect: Effect.fn(function* (ctx) {
|
|
34
34
|
const http = HttpClient.filterStatusOk(yield* HttpClient.HttpClient);
|
|
35
|
-
const config = yield*
|
|
36
|
-
const environment = yield* Effect.serviceOption(
|
|
37
|
-
const location = yield* Effect.serviceOption(
|
|
35
|
+
const config = yield* Service62;
|
|
36
|
+
const environment = yield* Effect.serviceOption(Service79);
|
|
37
|
+
const location = yield* Effect.serviceOption(Service81);
|
|
38
38
|
const defaultOrigin = origin ?? (shellParserWasm.bash === "" || Option.isSome(location) && location.value.workspaceID !== undefined || Option.isSome(environment) && environment.value.spawner === spawner2 ? undefined : input.origin);
|
|
39
39
|
const source = { current: configured(yield* config.entries(), input.providerID, defaultOrigin, suffix) };
|
|
40
40
|
const loaded = { models: [], hash: "[]" };
|
|
@@ -63,7 +63,7 @@ function createLocalProviderPlugin2(input) {
|
|
|
63
63
|
for (const item of loaded.models) {
|
|
64
64
|
const spec = input.model(item);
|
|
65
65
|
providers.models.update(input.providerID, spec.id, (model) => {
|
|
66
|
-
model.modelID =
|
|
66
|
+
model.modelID = ID9.make(spec.id);
|
|
67
67
|
model.name = spec.name || spec.id;
|
|
68
68
|
model.family = spec.family ? Family2.make(spec.family) : undefined;
|
|
69
69
|
model.capabilities = {
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
import {
|
|
2
|
+
server2,
|
|
3
|
+
headers2
|
|
4
|
+
} from "./managed-policy-kt3bjfbg.js";
|
|
5
|
+
import {
|
|
6
|
+
ID11,
|
|
7
|
+
Service75,
|
|
8
|
+
node78
|
|
9
|
+
} from "./managed-policy-ca54dx7n.js";
|
|
10
|
+
import {
|
|
11
|
+
__export
|
|
12
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
13
|
+
|
|
14
|
+
// src/usage-limits.ts
|
|
15
|
+
var exports_usage_limits = {};
|
|
16
|
+
__export(exports_usage_limits, {
|
|
17
|
+
Info: () => Info6,
|
|
18
|
+
Service: () => Service23,
|
|
19
|
+
UnavailableError: () => UnavailableError3,
|
|
20
|
+
UsageLimits: () => exports_usage_limits,
|
|
21
|
+
layer: () => layer11,
|
|
22
|
+
node: () => node26
|
|
23
|
+
});
|
|
24
|
+
import { Model } from "@opencode/schema/model";
|
|
25
|
+
import { Money } from "@opencode/schema/money";
|
|
26
|
+
import { Provider } from "@opencode/schema/provider";
|
|
27
|
+
import { UsageLimits } from "@opencode/schema/usage-limits";
|
|
28
|
+
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
29
|
+
import { httpClient } from "@opencode/util/effect/app-node-platform";
|
|
30
|
+
import { Context, Duration, Effect, Layer, Schema } from "effect";
|
|
31
|
+
import { HttpClient, HttpClientRequest, HttpClientResponse } from "effect/http";
|
|
32
|
+
var Info6 = UsageLimits.Info;
|
|
33
|
+
|
|
34
|
+
class UnavailableError3 extends Schema.TaggedError()("UsageLimits.UnavailableError", {
|
|
35
|
+
message: Schema.String
|
|
36
|
+
}) {
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
class Service23 extends Context.Service()("@opencode/UsageLimits") {
|
|
40
|
+
}
|
|
41
|
+
var layer11 = Layer.effect(Service23, Effect.gen(function* () {
|
|
42
|
+
const integrations = yield* Service75;
|
|
43
|
+
const http = yield* HttpClient.HttpClient;
|
|
44
|
+
const get = Effect.fn("UsageLimits.get")(function* () {
|
|
45
|
+
const connection = yield* integrations.connection.active(ID11.make("opencode"));
|
|
46
|
+
if (!connection)
|
|
47
|
+
return;
|
|
48
|
+
const credential = yield* integrations.connection.resolve(connection).pipe(Effect.mapError((error) => new UnavailableError3({ message: error.message })));
|
|
49
|
+
if (!credential || credential.type === "external")
|
|
50
|
+
return;
|
|
51
|
+
const workspaceID = credential.metadata?.orgID;
|
|
52
|
+
if (typeof workspaceID !== "string")
|
|
53
|
+
return;
|
|
54
|
+
const server = server2(credential);
|
|
55
|
+
const [budgets, go] = yield* Effect.all([readBudgets(http, server, credential), readGo(http, server, credential, workspaceID)], { concurrency: 2 }).pipe(Effect.timeoutOrElse({
|
|
56
|
+
duration: Duration.seconds(15),
|
|
57
|
+
orElse: () => Effect.fail(new UnavailableError3({ message: "OpenCode Console usage limits timed out" }))
|
|
58
|
+
}));
|
|
59
|
+
return {
|
|
60
|
+
workspace: {
|
|
61
|
+
id: workspaceID,
|
|
62
|
+
...typeof credential.metadata?.orgName === "string" ? { name: credential.metadata.orgName } : {},
|
|
63
|
+
usageURL: `${server}/${workspaceID}/activity/overview`
|
|
64
|
+
},
|
|
65
|
+
...go === undefined ? {} : { go },
|
|
66
|
+
budgets
|
|
67
|
+
};
|
|
68
|
+
});
|
|
69
|
+
return Service23.of({ get });
|
|
70
|
+
}));
|
|
71
|
+
var node26 = makeLocationNode({
|
|
72
|
+
service: Service23,
|
|
73
|
+
layer: layer11,
|
|
74
|
+
deps: [node78, httpClient]
|
|
75
|
+
});
|
|
76
|
+
var ConsoleBudget = Schema.Struct({
|
|
77
|
+
ruleID: Schema.String,
|
|
78
|
+
limitDollars: Schema.Finite,
|
|
79
|
+
spentDollars: Schema.Finite,
|
|
80
|
+
scope: UsageLimits.Budget.fields.scope,
|
|
81
|
+
per: UsageLimits.Budget.fields.per,
|
|
82
|
+
coverage: UsageLimits.Budget.fields.coverage,
|
|
83
|
+
models: Schema.Array(Schema.Struct({
|
|
84
|
+
providerID: Schema.String,
|
|
85
|
+
modelID: Schema.String,
|
|
86
|
+
name: Schema.String,
|
|
87
|
+
spentDollars: Schema.optional(Schema.Finite)
|
|
88
|
+
})),
|
|
89
|
+
vendors: Schema.Array(Schema.Struct({ id: Schema.String, name: Schema.String })),
|
|
90
|
+
inputPriceAtLeast: Schema.optional(Schema.Finite),
|
|
91
|
+
picked: Schema.Boolean,
|
|
92
|
+
shared: Schema.Boolean,
|
|
93
|
+
resetsAt: Schema.DateFromString
|
|
94
|
+
});
|
|
95
|
+
var GoMeter = Schema.Struct({
|
|
96
|
+
status: Schema.Literals(["ok", "rate-limited"]),
|
|
97
|
+
percent: Schema.Finite,
|
|
98
|
+
resetsAt: Schema.DateFromString
|
|
99
|
+
});
|
|
100
|
+
var GoUsage = Schema.Struct({ usage: Schema.Struct({ rolling: GoMeter, weekly: GoMeter, monthly: GoMeter }) });
|
|
101
|
+
function readBudgets(http, server, credential) {
|
|
102
|
+
return HttpClient.withScope(http).execute(HttpClientRequest.get(`${server}/api/policies/current-budgets`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.setHeaders(headers2(credential)))).pipe(Effect.flatMap((response) => response.status === 403 ? Effect.succeed([]) : HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(Schema.Array(ConsoleBudget))), Effect.map((budgets) => budgets.map((budget) => ({
|
|
103
|
+
id: budget.ruleID,
|
|
104
|
+
limit: Money.USD.make(budget.limitDollars),
|
|
105
|
+
spent: Money.USD.make(budget.spentDollars),
|
|
106
|
+
scope: budget.scope,
|
|
107
|
+
per: budget.per,
|
|
108
|
+
coverage: budget.coverage,
|
|
109
|
+
models: budget.models.map((model) => ({
|
|
110
|
+
providerID: Provider.ID.make(model.providerID),
|
|
111
|
+
modelID: Model.ID.make(model.modelID),
|
|
112
|
+
name: model.name,
|
|
113
|
+
...model.spentDollars === undefined ? {} : { spent: Money.USD.make(model.spentDollars) }
|
|
114
|
+
})),
|
|
115
|
+
vendors: budget.vendors.map((vendor) => vendor.name),
|
|
116
|
+
...budget.inputPriceAtLeast === undefined ? {} : { inputPriceAtLeast: Money.USDPerMillionTokens.make(budget.inputPriceAtLeast) },
|
|
117
|
+
picked: budget.picked,
|
|
118
|
+
shared: budget.shared,
|
|
119
|
+
resetsAt: budget.resetsAt.getTime()
|
|
120
|
+
}))))), Effect.scoped, Effect.mapError((error) => new UnavailableError3({ message: `OpenCode Console budgets are unavailable: ${error.message}` })));
|
|
121
|
+
}
|
|
122
|
+
function readGo(http, server, credential, workspaceID) {
|
|
123
|
+
return HttpClient.withScope(http).execute(HttpClientRequest.get(`${new URL(server).origin}/zen/go/v1/usage`).pipe(HttpClientRequest.acceptJson, HttpClientRequest.bearerToken(credential.type === "oauth" ? credential.access : credential.key), HttpClientRequest.setHeader("x-opencode-org-id", workspaceID))).pipe(Effect.flatMap((response) => response.status === 403 ? Effect.succeed(undefined) : HttpClientResponse.filterStatusOk(response).pipe(Effect.flatMap(HttpClientResponse.schemaBodyJson(GoUsage)), Effect.map((body) => ({
|
|
124
|
+
rolling: meter(body.usage.rolling),
|
|
125
|
+
weekly: meter(body.usage.weekly),
|
|
126
|
+
monthly: meter(body.usage.monthly)
|
|
127
|
+
})))), Effect.scoped, Effect.mapError((error) => new UnavailableError3({ message: `OpenCode Go usage is unavailable: ${error.message}` })));
|
|
128
|
+
}
|
|
129
|
+
function meter(value) {
|
|
130
|
+
return { percent: value.percent, limited: value.status === "rate-limited", resetsAt: value.resetsAt.getTime() };
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export { Info6, UnavailableError3, Service23, layer11, node26, exports_usage_limits };
|
|
@@ -1,25 +1,25 @@
|
|
|
1
1
|
import {
|
|
2
2
|
WorktreeError2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-vvzc2rtq.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service58
|
|
6
|
+
} from "./managed-policy-mj9xj69n.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Service15
|
|
9
|
+
} from "./managed-policy-jyq39yw7.js";
|
|
10
10
|
import {
|
|
11
11
|
DirectoryUnavailableError2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./managed-policy-d4v9tmah.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
Info5,
|
|
15
15
|
List2,
|
|
16
16
|
InvalidDirectoryError2,
|
|
17
17
|
StrategyUnavailableError2,
|
|
18
18
|
OperationError2
|
|
19
|
-
} from "./
|
|
19
|
+
} from "./managed-policy-5ny4wef6.js";
|
|
20
20
|
import {
|
|
21
21
|
__export
|
|
22
|
-
} from "./
|
|
22
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
23
23
|
|
|
24
24
|
// src/tool/plugin/opencode.ts
|
|
25
25
|
var exports_opencode = {};
|
|
@@ -27,7 +27,7 @@ __export(exports_opencode, {
|
|
|
27
27
|
ModelsInput: () => ModelsInput2,
|
|
28
28
|
MoveInput: () => MoveInput2,
|
|
29
29
|
OpenCodeTools: () => exports_opencode,
|
|
30
|
-
Plugin: () =>
|
|
30
|
+
Plugin: () => Plugin8,
|
|
31
31
|
RenameInput: () => RenameInput2,
|
|
32
32
|
WorktreeCreateInput: () => WorktreeCreateInput2,
|
|
33
33
|
WorktreeRemoveInput: () => WorktreeRemoveInput2
|
|
@@ -97,11 +97,11 @@ var ModelsOutput = Schema.Struct({
|
|
|
97
97
|
total: Schema.Int.annotate({ description: "Number of matching models across all pages." }),
|
|
98
98
|
next: Schema.NullOr(Schema.Int).annotate({ description: "Offset of the next page, or null on the last page." })
|
|
99
99
|
});
|
|
100
|
-
var
|
|
100
|
+
var Plugin8 = {
|
|
101
101
|
id: "opencode.tools",
|
|
102
102
|
effect: Effect.fn("OpenCodeTools.Plugin")(function* (ctx) {
|
|
103
|
-
const access = yield*
|
|
104
|
-
const permission = yield*
|
|
103
|
+
const access = yield* Service15;
|
|
104
|
+
const permission = yield* Service58;
|
|
105
105
|
const hook = (event) => Effect.sync(() => {
|
|
106
106
|
event.system.push(SystemPart.make("When you create a worktree outside the current working directory and intend to use it as your primary working directory, consider using `execute` to call `tools.opencode.session_move` and make the worktree the session's working directory."));
|
|
107
107
|
});
|
|
@@ -153,7 +153,7 @@ var Plugin27 = {
|
|
|
153
153
|
name: "worktree_create",
|
|
154
154
|
description: "Create a named worktree. Returns its directory.",
|
|
155
155
|
input: WorktreeCreateInput2,
|
|
156
|
-
output:
|
|
156
|
+
output: Info5,
|
|
157
157
|
options: { namespace: "opencode", codemode: true, pinned: true },
|
|
158
158
|
execute: (input) => ctx.worktree.create({ projectID: ctx.location.project.id, name: input.name }).pipe(Effect.map((output) => ({ output, content: `Created worktree in ${output.directory}.` })), Effect.mapError((error) => new ToolFailure({ message: `Unable to create worktree ${input.name}`, error })))
|
|
159
159
|
});
|
|
@@ -250,4 +250,4 @@ function removeFailure(directory, error) {
|
|
|
250
250
|
return `Unable to remove worktree ${directory}.`;
|
|
251
251
|
}
|
|
252
252
|
|
|
253
|
-
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2,
|
|
253
|
+
export { RenameInput2, MoveInput2, WorktreeCreateInput2, WorktreeRemoveInput2, ModelsInput2, Plugin8, exports_opencode };
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PositiveInt2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
5
|
Action2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9axz1114.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./
|
|
8
|
+
Info13
|
|
9
|
+
} from "./managed-policy-2wyes2cm.js";
|
|
10
10
|
import {
|
|
11
11
|
Info16
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./managed-policy-qqg9c0kv.js";
|
|
13
13
|
import {
|
|
14
14
|
Info17
|
|
15
|
-
} from "./
|
|
15
|
+
} from "./managed-policy-n9p72mjb.js";
|
|
16
16
|
import {
|
|
17
17
|
Spec2
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./managed-policy-p7vhpwh8.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
} from "./
|
|
20
|
+
Info15
|
|
21
|
+
} from "./managed-policy-3kdbrncp.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 "./managed-policy-t92kp9s5.js";
|
|
32
32
|
import {
|
|
33
33
|
__export
|
|
34
|
-
} from "./
|
|
34
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
35
35
|
|
|
36
36
|
// src/config/normalize.ts
|
|
37
37
|
var exports_normalize = {};
|
|
@@ -103,7 +103,7 @@ function normalize2(input) {
|
|
|
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, Info13, ["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, Info13, ["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);
|
|
@@ -440,7 +440,7 @@ function migrateProviders(value, diagnostics) {
|
|
|
440
440
|
diagnoseProviderUnsupported(raw, path, diagnostics);
|
|
441
441
|
if (invalidProviderOverlays(raw, path, diagnostics))
|
|
442
442
|
return [];
|
|
443
|
-
const provider = decodeValue(
|
|
443
|
+
const provider = decodeValue(Info15, raw, path, diagnostics);
|
|
444
444
|
if (provider === undefined)
|
|
445
445
|
return [];
|
|
446
446
|
const destination = providerID2(name);
|
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service85
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-w9cf5jnd.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service67
|
|
6
|
+
} from "./managed-policy-je88hrb4.js";
|
|
7
7
|
import {
|
|
8
8
|
group2,
|
|
9
9
|
batch2,
|
|
10
10
|
shutdown2,
|
|
11
11
|
inherit2
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./managed-policy-vd3b3yk9.js";
|
|
13
13
|
import {
|
|
14
|
-
|
|
14
|
+
Service36,
|
|
15
15
|
awaitActivation2
|
|
16
|
-
} from "./
|
|
16
|
+
} from "./managed-policy-7yv5xa0k.js";
|
|
17
17
|
import {
|
|
18
18
|
make11,
|
|
19
19
|
requirements3,
|
|
20
20
|
storage2
|
|
21
|
-
} from "./
|
|
21
|
+
} from "./managed-policy-m7zcvtr8.js";
|
|
22
22
|
import {
|
|
23
23
|
__export
|
|
24
|
-
} from "./
|
|
24
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
25
25
|
|
|
26
26
|
// src/plugin.ts
|
|
27
27
|
var exports_plugin2 = {};
|
|
28
28
|
__export(exports_plugin2, {
|
|
29
|
-
Event: () =>
|
|
29
|
+
Event: () => Event3,
|
|
30
30
|
ID: () => ID2,
|
|
31
31
|
Info: () => Info3,
|
|
32
32
|
Plugin: () => exports_plugin2,
|
|
33
|
-
Service: () =>
|
|
33
|
+
Service: () => Service36,
|
|
34
34
|
Source: () => Source2,
|
|
35
35
|
State: () => State2,
|
|
36
36
|
awaitActivation: () => awaitActivation2,
|
|
37
|
-
node: () =>
|
|
37
|
+
node: () => node18
|
|
38
38
|
});
|
|
39
|
-
import { Event as
|
|
39
|
+
import { Event as Event3, ID as ID2, Info as Info3, Source as Source2, State as State2 } from "@opencode/schema/plugin";
|
|
40
40
|
import { Plugin } from "@opencode/schema/plugin";
|
|
41
41
|
import { Node } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { Cause, Context, Effect, Exit, Latch, Layer, Logger, Queue, References, Scope, Semaphore } from "effect";
|
|
43
|
-
var layer = Layer.effect(
|
|
43
|
+
var layer = Layer.effect(Service36, Effect.gen(function* () {
|
|
44
44
|
const bus = yield* Service85;
|
|
45
|
-
const kv = yield*
|
|
45
|
+
const kv = yield* Service67;
|
|
46
46
|
const scope = yield* Scope.make();
|
|
47
47
|
const active = new Map;
|
|
48
48
|
const lock = Semaphore.makeUnsafe(1);
|
|
@@ -205,7 +205,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
205
205
|
yield* shutdown2(Scope.close(scope, exit));
|
|
206
206
|
}));
|
|
207
207
|
yield* Effect.addFinalizer(close);
|
|
208
|
-
return
|
|
208
|
+
return Service36.of({
|
|
209
209
|
activate,
|
|
210
210
|
close,
|
|
211
211
|
awaitActivation: ready.await,
|
|
@@ -222,10 +222,10 @@ function slotInfo(slot) {
|
|
|
222
222
|
features: { server: true, ...slot.plugin.features }
|
|
223
223
|
};
|
|
224
224
|
}
|
|
225
|
-
var
|
|
226
|
-
service:
|
|
225
|
+
var node18 = Node.makeLocationNode({
|
|
226
|
+
service: Service36,
|
|
227
227
|
layer,
|
|
228
228
|
deps: [requirements3]
|
|
229
229
|
});
|
|
230
230
|
|
|
231
|
-
export {
|
|
231
|
+
export { node18, exports_plugin2, Event3, ID2, Info3, Source2, State2 };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-z5v4ffb3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./
|
|
5
|
+
Service81
|
|
6
|
+
} from "./managed-policy-6p9bsfn5.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
10
10
|
|
|
11
11
|
// src/config/discovery.ts
|
|
12
12
|
var exports_discovery2 = {};
|
|
@@ -54,7 +54,7 @@ function stripPreferenceMetadata2(json) {
|
|
|
54
54
|
var discover3 = Effect.fn("ConfigDiscovery.discover")(function* (options) {
|
|
55
55
|
const fs = yield* FSUtil.Service;
|
|
56
56
|
const global = yield* Global.Service;
|
|
57
|
-
const location = yield*
|
|
57
|
+
const location = yield* Service81;
|
|
58
58
|
const system = (() => {
|
|
59
59
|
if (options?.system === false)
|
|
60
60
|
return;
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
call2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./managed-policy-w2eysc6j.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./managed-policy-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/plugin/websearch/exa.ts
|
|
9
9
|
var exports_exa = {};
|
|
10
10
|
__export(exports_exa, {
|
|
11
|
-
Plugin: () =>
|
|
11
|
+
Plugin: () => Plugin39,
|
|
12
12
|
WebSearchExa: () => exports_exa,
|
|
13
|
-
endpoint: () =>
|
|
13
|
+
endpoint: () => endpoint4
|
|
14
14
|
});
|
|
15
15
|
import { define } from "@opencode/plugin/effect/plugin";
|
|
16
16
|
import { Effect, Schema } from "effect";
|
|
17
17
|
import { HttpClient } from "effect/http";
|
|
18
|
-
var
|
|
18
|
+
var endpoint4 = "https://mcp.exa.ai/mcp";
|
|
19
19
|
var McpInput = Schema.Struct({
|
|
20
20
|
query: Schema.String,
|
|
21
21
|
numResults: Schema.Number.pipe(Schema.optional)
|
|
@@ -27,7 +27,7 @@ var McpOutput = Schema.Struct({
|
|
|
27
27
|
_meta: Schema.Struct({ searchTime: Schema.Number }).pipe(Schema.optional)
|
|
28
28
|
}))
|
|
29
29
|
});
|
|
30
|
-
var
|
|
30
|
+
var Plugin39 = define({
|
|
31
31
|
id: "opencode.websearch.exa",
|
|
32
32
|
effect: Effect.fn("WebSearchExa.Plugin")(function* (ctx) {
|
|
33
33
|
const http = yield* HttpClient.HttpClient;
|
|
@@ -49,7 +49,7 @@ var Plugin5 = define({
|
|
|
49
49
|
execute: (input) => Effect.gen(function* () {
|
|
50
50
|
const connection = yield* ctx.integration.connection.active("exa");
|
|
51
51
|
const credential = connection ? yield* ctx.integration.connection.resolve(connection) : undefined;
|
|
52
|
-
const url = new URL(
|
|
52
|
+
const url = new URL(endpoint4);
|
|
53
53
|
if (credential?.type === "key")
|
|
54
54
|
url.searchParams.set("exaApiKey", credential.key);
|
|
55
55
|
const result = yield* call2(http, url.toString(), "web_search_exa", { input: McpInput, output: McpOutput }, { query: input.query, numResults: 8 });
|
|
@@ -80,4 +80,4 @@ function parseResults(text) {
|
|
|
80
80
|
});
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
export {
|
|
83
|
+
export { endpoint4, Plugin39, exports_exa };
|