@opencode/core 2.0.20 → 2.0.22
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 +81 -81
- package/dist/aisdk-native.js +89 -89
- package/dist/aisdk.js +94 -94
- package/dist/app.js +5 -5
- package/dist/bus.js +73 -73
- package/dist/chunks/{credential-37axwcy6.js → instruction-discovery-01wcheh0.js} +37 -36
- package/dist/chunks/{credential-860w7ty6.js → instruction-discovery-034ce5nj.js} +18 -7
- package/dist/chunks/{credential-dnxkq42g.js → instruction-discovery-068serwz.js} +4 -4
- package/dist/chunks/{credential-7svg9qyr.js → instruction-discovery-098a7yv1.js} +3 -3
- package/dist/chunks/{credential-cjfyp86a.js → instruction-discovery-0n82x6dt.js} +44 -44
- package/dist/chunks/{credential-0paq2nw3.js → instruction-discovery-0paq2nw3.js} +1 -1
- package/dist/chunks/{credential-gv6a8nnw.js → instruction-discovery-0vbcp93d.js} +2 -2
- package/dist/chunks/{credential-8rsx1zec.js → instruction-discovery-0xcdhwc5.js} +3 -3
- package/dist/chunks/{credential-9asmjjbg.js → instruction-discovery-0yrmzdme.js} +10 -10
- package/dist/chunks/{credential-drnx3qwb.js → instruction-discovery-17z9v3bw.js} +42 -33
- package/dist/chunks/{credential-vsvxbsy9.js → instruction-discovery-1ajc00mn.js} +67 -67
- package/dist/chunks/{credential-1dazxqgg.js → instruction-discovery-1dazxqgg.js} +2 -2
- package/dist/chunks/{credential-gfvb90ym.js → instruction-discovery-1dvck2a7.js} +2 -2
- package/dist/chunks/{credential-gygscfxn.js → instruction-discovery-1q5zb881.js} +4 -4
- package/dist/chunks/{credential-fx1epf7g.js → instruction-discovery-1vnjqps3.js} +60 -60
- package/dist/chunks/{credential-b3rzqckw.js → instruction-discovery-21201d4m.js} +27 -27
- package/dist/chunks/{credential-21r38tys.js → instruction-discovery-21r38tys.js} +1 -1
- package/dist/chunks/{credential-320xhtpp.js → instruction-discovery-24x7sj2v.js} +7 -7
- package/dist/chunks/{credential-2a5m3afh.js → instruction-discovery-2a5m3afh.js} +1 -1
- package/dist/chunks/{credential-gxdeyq0h.js → instruction-discovery-2daza0p7.js} +15 -15
- package/dist/chunks/{credential-r513yfhg.js → instruction-discovery-2yez9773.js} +29 -29
- package/dist/chunks/{credential-mfqp6xfm.js → instruction-discovery-33w4ejhs.js} +9 -9
- package/dist/chunks/{credential-yf64nb4f.js → instruction-discovery-36cgxzxf.js} +16 -16
- package/dist/chunks/{credential-6yvxz189.js → instruction-discovery-386stjsv.js} +15 -15
- package/dist/chunks/{credential-t590yz96.js → instruction-discovery-38p5t189.js} +13 -13
- package/dist/chunks/{credential-reg6q42h.js → instruction-discovery-3bc8czyk.js} +5 -5
- package/dist/chunks/{credential-hyq1p8wb.js → instruction-discovery-3bss0zm1.js} +23 -23
- package/dist/chunks/{credential-3fc6dm20.js → instruction-discovery-3fc6dm20.js} +1 -1
- package/dist/chunks/{credential-epnck8kw.js → instruction-discovery-3gc4y8jw.js} +22 -22
- package/dist/chunks/{credential-3hepkmqq.js → instruction-discovery-3hepkmqq.js} +1 -1
- package/dist/chunks/{credential-nfr71wq7.js → instruction-discovery-3j0eccra.js} +10 -10
- package/dist/chunks/{credential-3smtnn6g.js → instruction-discovery-3smtnn6g.js} +1 -1
- package/dist/chunks/{credential-3tvqynh2.js → instruction-discovery-3tvqynh2.js} +1 -1
- package/dist/chunks/{credential-g3xec8vw.js → instruction-discovery-3z218dsj.js} +44 -44
- package/dist/chunks/{credential-3zsf4n22.js → instruction-discovery-3zsf4n22.js} +1 -1
- package/dist/chunks/{credential-hytzprz1.js → instruction-discovery-42h9518d.js} +16 -16
- package/dist/chunks/{credential-2exk30js.js → instruction-discovery-4a973s6x.js} +5 -5
- package/dist/chunks/{credential-3ev070rc.js → instruction-discovery-4d8yn3gb.js} +21 -21
- package/dist/chunks/{credential-phmegyhy.js → instruction-discovery-4g11qfmx.js} +34 -45
- package/dist/chunks/{credential-e34dw6hk.js → instruction-discovery-4gksvbnk.js} +201 -195
- package/dist/chunks/{credential-rxfap019.js → instruction-discovery-4rr4p9ms.js} +24 -24
- package/dist/chunks/{credential-xqbsjtqf.js → instruction-discovery-4tgz421y.js} +17 -17
- package/dist/chunks/{credential-yrznvahk.js → instruction-discovery-4ts7tf6z.js} +2 -2
- package/dist/chunks/{credential-nng2ktcm.js → instruction-discovery-53eqz1v2.js} +2 -2
- package/dist/chunks/{credential-54ma36ye.js → instruction-discovery-54ma36ye.js} +1 -1
- package/dist/chunks/{credential-c86te7yw.js → instruction-discovery-5ch8te7e.js} +9 -9
- package/dist/chunks/{credential-5daktx2q.js → instruction-discovery-5daktx2q.js} +1 -1
- package/dist/chunks/{credential-tky6hxra.js → instruction-discovery-5mmejq10.js} +32 -32
- package/dist/chunks/{credential-1r1tv6v0.js → instruction-discovery-5mxct2xg.js} +13 -13
- package/dist/chunks/{credential-sknxvkc8.js → instruction-discovery-5sv8fqdt.js} +59 -41
- package/dist/chunks/{credential-5t3nmthw.js → instruction-discovery-5t3nmthw.js} +2 -2
- package/dist/chunks/{credential-cn1v2m3x.js → instruction-discovery-609c7rjf.js} +8 -8
- package/dist/chunks/{credential-3g99d3pg.js → instruction-discovery-62s7jehk.js} +5 -5
- package/dist/chunks/{credential-gqs84h8k.js → instruction-discovery-6644et9y.js} +30 -30
- package/dist/chunks/{credential-669tq793.js → instruction-discovery-669tq793.js} +1 -1
- package/dist/chunks/{credential-j6ze8jrf.js → instruction-discovery-67mhc6gs.js} +21 -21
- package/dist/chunks/{credential-hhd7x08z.js → instruction-discovery-6a5ag3jq.js} +5 -5
- package/dist/chunks/{credential-hw2ff0tr.js → instruction-discovery-6ehccv3h.js} +15 -15
- package/dist/chunks/{credential-qa3qhgw8.js → instruction-discovery-6hh8tjw2.js} +4 -4
- package/dist/chunks/{credential-eqpt8p1k.js → instruction-discovery-6wqmdryt.js} +24 -24
- package/dist/chunks/{credential-qwsb95v7.js → instruction-discovery-70f73jf1.js} +53 -47
- package/dist/chunks/{credential-54tcyq79.js → instruction-discovery-71az546q.js} +2 -2
- package/dist/chunks/{credential-r5x6zcsm.js → instruction-discovery-73tb2d7t.js} +3 -3
- package/dist/chunks/{credential-s673kgky.js → instruction-discovery-75p81wsx.js} +32 -32
- package/dist/chunks/{credential-wp4r7acg.js → instruction-discovery-768hztz0.js} +31 -31
- package/dist/chunks/{credential-m7eh5me1.js → instruction-discovery-76jv6ta8.js} +12 -12
- package/dist/chunks/{credential-fgashtey.js → instruction-discovery-772hnq51.js} +15 -17
- package/dist/chunks/{credential-8wb366f9.js → instruction-discovery-79wzcjsa.js} +6 -6
- package/dist/chunks/{credential-7bmhse3q.js → instruction-discovery-7bmhse3q.js} +1 -1
- package/dist/chunks/{credential-7dqw4kz8.js → instruction-discovery-7dqw4kz8.js} +1 -1
- package/dist/chunks/{credential-w07vsv7f.js → instruction-discovery-7e0zw79e.js} +32 -32
- package/dist/chunks/{credential-ws120pvh.js → instruction-discovery-7fvn2yaq.js} +8 -8
- package/dist/chunks/{credential-akwq9tj0.js → instruction-discovery-7fx6jza6.js} +19 -19
- package/dist/chunks/{credential-eeaf82dq.js → instruction-discovery-7j2qha59.js} +8 -8
- package/dist/chunks/{credential-76832g3x.js → instruction-discovery-7je2rhvj.js} +16 -14
- package/dist/chunks/{credential-vnzfaa5x.js → instruction-discovery-7pw8dncw.js} +4 -4
- package/dist/chunks/{credential-z41nk1d3.js → instruction-discovery-7ws0qf92.js} +37 -37
- package/dist/chunks/{credential-dwrr54rh.js → instruction-discovery-7wtms9gt.js} +24 -24
- package/dist/chunks/{credential-mr6y2ppx.js → instruction-discovery-80t7gq44.js} +8 -8
- package/dist/chunks/{credential-84txncab.js → instruction-discovery-84txncab.js} +1 -1
- package/dist/chunks/{credential-818pfwc9.js → instruction-discovery-87bs7bte.js} +8 -8
- package/dist/chunks/{credential-8d7r5vzw.js → instruction-discovery-8d7r5vzw.js} +1 -1
- package/dist/chunks/{credential-x5fprgp4.js → instruction-discovery-8faykdbn.js} +2 -2
- package/dist/chunks/{credential-7pmn0fht.js → instruction-discovery-8r9kvmb6.js} +28 -28
- package/dist/chunks/{credential-n6rh12ap.js → instruction-discovery-8sesv03m.js} +7 -7
- package/dist/chunks/{credential-x01zr8y0.js → instruction-discovery-90gx0j5y.js} +27 -27
- package/dist/chunks/{credential-7w99qc9d.js → instruction-discovery-93hpb89x.js} +3 -3
- package/dist/chunks/{credential-nbajkkwv.js → instruction-discovery-93pbq578.js} +33 -33
- package/dist/chunks/{credential-dzq4rv13.js → instruction-discovery-96c14hr5.js} +26 -26
- package/dist/chunks/{credential-bjtzbw4r.js → instruction-discovery-9e5bzkjp.js} +3 -3
- package/dist/chunks/{credential-fyd2dh6z.js → instruction-discovery-9prspse7.js} +13 -13
- package/dist/chunks/{credential-s8d7rejh.js → instruction-discovery-9t7a50xb.js} +4 -4
- package/dist/chunks/{credential-17xqc022.js → instruction-discovery-9vjnmhkc.js} +15 -15
- package/dist/chunks/{credential-wtjjgayy.js → instruction-discovery-a56fhhr2.js} +24 -24
- package/dist/chunks/{credential-j5gmcxfs.js → instruction-discovery-a5jrrkeg.js} +20 -20
- package/dist/chunks/{credential-eyj09mx0.js → instruction-discovery-a90g57x6.js} +50 -50
- package/dist/chunks/{credential-aaet6srn.js → instruction-discovery-aaet6srn.js} +2 -2
- package/dist/chunks/{credential-7x29ec5h.js → instruction-discovery-ab44fxfx.js} +5 -5
- package/dist/chunks/{credential-57ez7d0k.js → instruction-discovery-adrzke39.js} +9 -9
- package/dist/chunks/{credential-4pk2n38q.js → instruction-discovery-an4n7p46.js} +25 -25
- package/dist/chunks/{credential-nye1dag9.js → instruction-discovery-arxkpe44.js} +31 -31
- package/dist/chunks/{credential-c6hr400c.js → instruction-discovery-aszn3zwx.js} +5 -5
- package/dist/chunks/{credential-30men631.js → instruction-discovery-axmmtzpw.js} +22 -22
- package/dist/chunks/{credential-vggwrjrt.js → instruction-discovery-b0t1fydp.js} +23 -23
- package/dist/chunks/{credential-dmr0vvsc.js → instruction-discovery-b0xx1bw1.js} +5 -5
- package/dist/chunks/{credential-mn7chjbp.js → instruction-discovery-b1f75b2t.js} +9 -9
- package/dist/chunks/{credential-49dxcv90.js → instruction-discovery-b2nc1zae.js} +46 -20
- package/dist/chunks/{credential-jws6fkes.js → instruction-discovery-b4twkq7r.js} +4 -4
- package/dist/chunks/{credential-r68z10wk.js → instruction-discovery-b65pgdb7.js} +6 -6
- package/dist/chunks/{credential-b6gygkdw.js → instruction-discovery-b6gygkdw.js} +2 -2
- package/dist/chunks/{credential-r2w7cvnr.js → instruction-discovery-bbx3sj05.js} +10 -10
- package/dist/chunks/{credential-bkxev147.js → instruction-discovery-bc819vt5.js} +11 -11
- package/dist/chunks/{credential-5gg7jdww.js → instruction-discovery-bh3q4eyg.js} +13 -13
- package/dist/chunks/{credential-m2sn03fv.js → instruction-discovery-br0fskr5.js} +23 -23
- package/dist/chunks/{credential-vyqn3nqs.js → instruction-discovery-bscb95cy.js} +4 -4
- package/dist/chunks/{credential-egndxt76.js → instruction-discovery-c49890bn.js} +43 -43
- package/dist/chunks/{credential-9pkkzrmj.js → instruction-discovery-c5c0bz0t.js} +5 -5
- package/dist/chunks/{credential-4tbg5pgg.js → instruction-discovery-c8g8cdht.js} +6 -93
- package/dist/chunks/{credential-r5mfbntr.js → instruction-discovery-c9qfs3nh.js} +93 -93
- package/dist/chunks/{credential-34vw7f1n.js → instruction-discovery-caxch348.js} +18 -18
- package/dist/chunks/{credential-6582e1zf.js → instruction-discovery-cc4mqy7q.js} +6 -6
- package/dist/chunks/{credential-9ysd9rcf.js → instruction-discovery-ccwzr35z.js} +13 -13
- package/dist/chunks/{credential-r9m8wmbv.js → instruction-discovery-chamsvbn.js} +32 -32
- package/dist/chunks/{credential-n4r3xatb.js → instruction-discovery-ckf8nxjz.js} +4 -4
- package/dist/chunks/{credential-kq6h27xz.js → instruction-discovery-cr59q9qa.js} +4 -4
- package/dist/chunks/{credential-cwa6csj7.js → instruction-discovery-cwa6csj7.js} +2 -2
- package/dist/chunks/{credential-2z5bkz89.js → instruction-discovery-cyk1kg6z.js} +33 -33
- package/dist/chunks/{credential-ct0b5bas.js → instruction-discovery-d4k4eg4n.js} +64 -48
- package/dist/chunks/{credential-rpjgfq5s.js → instruction-discovery-d737nyfv.js} +9 -9
- package/dist/chunks/{credential-6pqttx51.js → instruction-discovery-dn5164wf.js} +3 -3
- package/dist/chunks/{credential-dpkg50ah.js → instruction-discovery-dpkg50ah.js} +1 -1
- package/dist/chunks/{credential-pa8pe2x7.js → instruction-discovery-dv1qgsyq.js} +8 -8
- package/dist/chunks/{credential-8as63f7d.js → instruction-discovery-e2jmw6zx.js} +8 -8
- package/dist/chunks/{credential-b46899qp.js → instruction-discovery-e3bkmxas.js} +14 -14
- package/dist/chunks/{credential-vzwn6bjz.js → instruction-discovery-e709npfq.js} +19 -19
- package/dist/chunks/{credential-ef5x83kb.js → instruction-discovery-ef5x83kb.js} +1 -1
- package/dist/chunks/{credential-wb1prbnq.js → instruction-discovery-eq8x7ha8.js} +24 -24
- package/dist/chunks/{credential-bw9zjykr.js → instruction-discovery-eqkxs06z.js} +6 -6
- package/dist/chunks/{credential-etq0c3wd.js → instruction-discovery-etq0c3wd.js} +1 -1
- package/dist/chunks/{credential-k553bdtw.js → instruction-discovery-exnynncn.js} +35 -35
- package/dist/chunks/{credential-rt0y70g6.js → instruction-discovery-fagw50gs.js} +12 -12
- package/dist/chunks/{credential-d7srgpft.js → instruction-discovery-fah0stq9.js} +9 -9
- package/dist/chunks/{credential-8ytcc0ez.js → instruction-discovery-fajwdt4h.js} +8 -8
- package/dist/chunks/{credential-6wqdzgpe.js → instruction-discovery-fnwnhbfk.js} +13 -13
- package/dist/chunks/{credential-w27cvc4j.js → instruction-discovery-fp86hj50.js} +10 -10
- package/dist/chunks/{credential-pnaxc6j9.js → instruction-discovery-fqtvmpfq.js} +8 -8
- package/dist/chunks/{credential-pv6wngh8.js → instruction-discovery-fqzyqcjh.js} +22 -22
- package/dist/chunks/{credential-01764t6m.js → instruction-discovery-fwq9htr3.js} +12 -12
- package/dist/chunks/{credential-0ap57xmb.js → instruction-discovery-fxt23bak.js} +39 -27
- package/dist/chunks/{credential-ybqqd820.js → instruction-discovery-fxvwdnb4.js} +23 -23
- package/dist/chunks/{credential-ccg1mtqe.js → instruction-discovery-g259vpc3.js} +29 -29
- package/dist/chunks/{credential-m2ddg3y2.js → instruction-discovery-g2b38xbr.js} +19 -19
- package/dist/chunks/{credential-qqeeq2t9.js → instruction-discovery-g5w8qwbj.js} +7 -7
- package/dist/chunks/{credential-995e57hq.js → instruction-discovery-g6pt2ykv.js} +17 -17
- package/dist/chunks/{credential-0y2g8rq0.js → instruction-discovery-gb65a7a1.js} +26 -26
- package/dist/chunks/{credential-gd4qta3r.js → instruction-discovery-gd4qta3r.js} +1 -1
- package/dist/chunks/{credential-ca7kmppq.js → instruction-discovery-gd7r64mz.js} +11 -11
- package/dist/chunks/{credential-kyh50zn5.js → instruction-discovery-geswxttb.js} +48 -48
- package/dist/chunks/{credential-9eq5kwq7.js → instruction-discovery-gqawmzqm.js} +8 -8
- package/dist/chunks/{credential-cckay3nk.js → instruction-discovery-gt8knnyb.js} +11 -11
- package/dist/chunks/{credential-fxtkerxr.js → instruction-discovery-gv15az23.js} +20 -20
- package/dist/chunks/{credential-4j4tgtq5.js → instruction-discovery-gw7cjrad.js} +4 -4
- package/dist/chunks/{credential-psazpmmj.js → instruction-discovery-h2b79v29.js} +2 -2
- package/dist/chunks/{credential-7j45yeqe.js → instruction-discovery-h3rm5wyc.js} +17 -17
- package/dist/chunks/{credential-w2fmgtkz.js → instruction-discovery-h53acpwd.js} +22 -22
- package/dist/chunks/{credential-h6vf3j39.js → instruction-discovery-h6vf3j39.js} +1 -1
- package/dist/chunks/{credential-vpqca0z9.js → instruction-discovery-h9zw7x04.js} +11 -11
- package/dist/chunks/{credential-xxndcd6m.js → instruction-discovery-hehaxqkv.js} +4 -4
- package/dist/chunks/instruction-discovery-hjryqbzv.js +381 -0
- package/dist/chunks/{credential-myd2tyxx.js → instruction-discovery-hjxrfacw.js} +18 -18
- package/dist/chunks/{credential-5te2f5xw.js → instruction-discovery-hn87b5yq.js} +20 -20
- package/dist/chunks/{credential-rkmmz4cx.js → instruction-discovery-hz0q9sdq.js} +8 -8
- package/dist/chunks/{credential-q2hsetqa.js → instruction-discovery-hzktwm2m.js} +22 -22
- package/dist/chunks/{credential-6ersrjne.js → instruction-discovery-j15mfg1p.js} +4 -4
- package/dist/chunks/{credential-3c8vhndt.js → instruction-discovery-j4q93wg3.js} +8 -8
- package/dist/chunks/{credential-j56e64zr.js → instruction-discovery-j56e64zr.js} +1 -1
- package/dist/chunks/{credential-xnwfhxg1.js → instruction-discovery-jpcc9kth.js} +21 -21
- package/dist/chunks/instruction-discovery-jqh9b0xq.js +18 -0
- package/dist/chunks/{credential-m67h27zr.js → instruction-discovery-jvy07h1s.js} +1 -1
- package/dist/chunks/{credential-yyk0fdyr.js → instruction-discovery-jw34hpx6.js} +91 -91
- package/dist/chunks/{credential-3w2b2yj4.js → instruction-discovery-jzzgdak2.js} +5 -5
- package/dist/chunks/{credential-nzks3jc8.js → instruction-discovery-k3c624dm.js} +3 -3
- package/dist/chunks/{credential-4mdx2368.js → instruction-discovery-k6hcwg2z.js} +9 -9
- package/dist/chunks/{credential-vayd7y3p.js → instruction-discovery-kgr5617j.js} +4 -3
- package/dist/chunks/{credential-tntb81s9.js → instruction-discovery-kgxgq8c4.js} +30 -29
- package/dist/chunks/{credential-w3jfy4gq.js → instruction-discovery-kjcere04.js} +11 -11
- package/dist/chunks/{credential-32ymn5e1.js → instruction-discovery-kn7rctz9.js} +3 -3
- package/dist/chunks/{credential-evrr6asg.js → instruction-discovery-ksgw4q3t.js} +11 -11
- package/dist/chunks/{credential-nb9p6b26.js → instruction-discovery-m0r31qfn.js} +4 -4
- package/dist/chunks/{credential-m3fdjcah.js → instruction-discovery-m3fdjcah.js} +1 -1
- package/dist/chunks/{credential-ecfe7b91.js → instruction-discovery-m58kmhef.js} +9 -3
- package/dist/chunks/{credential-m9w0rfyh.js → instruction-discovery-m9w0rfyh.js} +1 -1
- package/dist/chunks/{credential-zeh9ct20.js → instruction-discovery-mazbtkaa.js} +2 -2
- package/dist/chunks/{credential-bnqp8nta.js → instruction-discovery-mjv4tm51.js} +16 -16
- package/dist/chunks/instruction-discovery-mp9mcqyr.js +252 -0
- package/dist/chunks/{credential-yspm5xbj.js → instruction-discovery-mqw81mrh.js} +13 -13
- package/dist/chunks/instruction-discovery-mvh4jj0m.js +26 -0
- package/dist/chunks/{credential-jv01nqvq.js → instruction-discovery-n8vdnqrc.js} +5 -5
- package/dist/chunks/{credential-6n174ycw.js → instruction-discovery-na0cega3.js} +13 -13
- package/dist/chunks/{credential-0m7nkzkh.js → instruction-discovery-nnxtdpka.js} +8 -8
- package/dist/chunks/{credential-z1qbwb2j.js → instruction-discovery-nrjg26ec.js} +8 -8
- package/dist/chunks/{credential-znxzs23z.js → instruction-discovery-ntngab6e.js} +9 -9
- package/dist/chunks/{credential-kr2z21pd.js → instruction-discovery-nwb3b15q.js} +15 -15
- package/dist/chunks/{credential-hvpdd4sy.js → instruction-discovery-nxq54803.js} +11 -11
- package/dist/chunks/{credential-7mpr3p1f.js → instruction-discovery-p5pxx3ht.js} +15 -15
- package/dist/chunks/{credential-1hnfrh0d.js → instruction-discovery-p813dxyq.js} +32 -32
- package/dist/chunks/{credential-pjvnvgmy.js → instruction-discovery-pjvnvgmy.js} +1 -1
- package/dist/chunks/{credential-pknna89w.js → instruction-discovery-pknna89w.js} +1 -1
- package/dist/chunks/{credential-xn3gx34d.js → instruction-discovery-pzxge5ds.js} +32 -32
- package/dist/chunks/instruction-discovery-q0xm7vwc.js +25 -0
- package/dist/chunks/{credential-xr72vas6.js → instruction-discovery-qdyk8phn.js} +6 -6
- package/dist/chunks/{credential-k8sz2zj3.js → instruction-discovery-qg6jkzae.js} +45 -45
- package/dist/chunks/{credential-tcmebnch.js → instruction-discovery-qgr4tws1.js} +17 -17
- package/dist/chunks/{credential-g190xswt.js → instruction-discovery-qj8eh1ht.js} +4 -4
- package/dist/chunks/{credential-6msgmcgs.js → instruction-discovery-qnc92qwc.js} +1 -1
- package/dist/chunks/{credential-rgq9hrpw.js → instruction-discovery-qnet8f1y.js} +7 -7
- package/dist/chunks/{credential-s0mc307a.js → instruction-discovery-qs2rp835.js} +11 -11
- package/dist/chunks/{credential-qsdy395h.js → instruction-discovery-qsdy395h.js} +1 -1
- package/dist/chunks/{credential-cr4nqcbv.js → instruction-discovery-qtkea077.js} +11 -11
- package/dist/chunks/{credential-6vhy8yb4.js → instruction-discovery-qxmvdacm.js} +36 -36
- package/dist/chunks/{credential-r9pqfw3c.js → instruction-discovery-qyc0y5ej.js} +28 -28
- package/dist/chunks/{credential-h6b02349.js → instruction-discovery-qygbw77c.js} +11 -6
- package/dist/chunks/{credential-cfm9g534.js → instruction-discovery-r01t9b5y.js} +8 -8
- package/dist/chunks/{credential-zkahend3.js → instruction-discovery-r4akt23v.js} +6 -6
- package/dist/chunks/{credential-6fmzyh88.js → instruction-discovery-r57kss4c.js} +38 -38
- package/dist/chunks/{credential-rdw6cm16.js → instruction-discovery-rdw6cm16.js} +1 -1
- package/dist/chunks/{credential-r8xr0va3.js → instruction-discovery-rhraev7y.js} +4 -4
- package/dist/chunks/{credential-dn5d15e9.js → instruction-discovery-rqkavtkg.js} +3 -3
- package/dist/chunks/{credential-965ggptx.js → instruction-discovery-rttzrg3r.js} +12 -12
- package/dist/chunks/{credential-rjyw1ade.js → instruction-discovery-rz6t0wqc.js} +47 -47
- package/dist/chunks/{credential-vrewfqnt.js → instruction-discovery-s0ptdndk.js} +1 -1
- package/dist/chunks/{credential-vh9g9snc.js → instruction-discovery-s225zym4.js} +19 -19
- package/dist/chunks/{credential-9v0v5k0m.js → instruction-discovery-s48x4bgh.js} +45 -45
- package/dist/chunks/{credential-35vy03by.js → instruction-discovery-s4r1cmp3.js} +20 -20
- package/dist/chunks/{credential-fhs97t90.js → instruction-discovery-srq8z0b0.js} +9 -9
- package/dist/chunks/{credential-1kkkrqff.js → instruction-discovery-t9r88hzk.js} +28 -28
- package/dist/chunks/{credential-tazgh4e4.js → instruction-discovery-tazgh4e4.js} +1 -1
- package/dist/chunks/{credential-tcezcvh9.js → instruction-discovery-tcezcvh9.js} +1 -1
- package/dist/chunks/{credential-tdstcens.js → instruction-discovery-tdstcens.js} +1 -1
- package/dist/chunks/{credential-mt8f3a05.js → instruction-discovery-th1qq6gc.js} +41 -41
- package/dist/chunks/{credential-tvtrv512.js → instruction-discovery-tvtrv512.js} +1 -1
- package/dist/chunks/{credential-as42p2kz.js → instruction-discovery-txp0vmzz.js} +15 -15
- package/dist/chunks/{credential-h8vvrgsf.js → instruction-discovery-vc32h82s.js} +15 -15
- package/dist/chunks/{credential-1aavndqb.js → instruction-discovery-ved7ma53.js} +11 -11
- package/dist/chunks/{credential-veqvce7d.js → instruction-discovery-veqvce7d.js} +1 -1
- package/dist/chunks/{credential-tjtda90p.js → instruction-discovery-vj991bdt.js} +2 -2
- package/dist/chunks/{credential-psr41n11.js → instruction-discovery-vk0h33mx.js} +12 -12
- package/dist/chunks/{credential-gj6q2tkf.js → instruction-discovery-vm2gnf4v.js} +29 -29
- package/dist/chunks/{credential-mzywpf3p.js → instruction-discovery-vn72gsba.js} +4 -4
- package/dist/chunks/{credential-dfe8djrf.js → instruction-discovery-vncycja5.js} +4 -4
- package/dist/chunks/{credential-k4sma9mx.js → instruction-discovery-vpw3bjrj.js} +28 -28
- package/dist/chunks/{credential-vzcthcp8.js → instruction-discovery-vzcthcp8.js} +1 -1
- package/dist/chunks/{credential-vzs5sf6e.js → instruction-discovery-vzs5sf6e.js} +1 -1
- package/dist/chunks/{credential-ead3g9p8.js → instruction-discovery-w2h15q85.js} +5 -5
- package/dist/chunks/{credential-w3wsvvr9.js → instruction-discovery-w3wsvvr9.js} +1 -1
- package/dist/chunks/{credential-gv83f00q.js → instruction-discovery-w9p1c293.js} +24 -24
- package/dist/chunks/instruction-discovery-wb3qhx4w.js +507 -0
- package/dist/chunks/{credential-mpf0mq91.js → instruction-discovery-wbx60fzd.js} +5 -5
- package/dist/chunks/{credential-wd87259q.js → instruction-discovery-wd87259q.js} +1 -1
- package/dist/chunks/{credential-9q51rf9r.js → instruction-discovery-wszd5dmy.js} +17 -17
- package/dist/chunks/{credential-s5e2htb3.js → instruction-discovery-wvmj1et3.js} +9 -9
- package/dist/chunks/{credential-1qkzpzzz.js → instruction-discovery-wwsveqr1.js} +22 -22
- package/dist/chunks/{credential-hd8vw2pw.js → instruction-discovery-wxyynt4w.js} +1 -1
- package/dist/chunks/{credential-x1ezjp6w.js → instruction-discovery-x1ezjp6w.js} +1 -1
- package/dist/chunks/{credential-m9mb90fb.js → instruction-discovery-x5k8pkz3.js} +5 -5
- package/dist/chunks/{credential-69vgqr14.js → instruction-discovery-x74ax8b2.js} +25 -25
- package/dist/chunks/{credential-30g65q41.js → instruction-discovery-x8pk0y4v.js} +47 -47
- package/dist/chunks/{credential-5hxyj64z.js → instruction-discovery-xjbrwz9c.js} +12 -12
- package/dist/chunks/{credential-xkntkrq7.js → instruction-discovery-xkntkrq7.js} +2 -2
- package/dist/chunks/{credential-63fq9d04.js → instruction-discovery-xmh85kzb.js} +11 -11
- package/dist/chunks/{credential-2dwnk97h.js → instruction-discovery-xw25vat5.js} +18 -18
- package/dist/chunks/{credential-y1fvbwt7.js → instruction-discovery-y1fvbwt7.js} +1 -1
- package/dist/chunks/{credential-fwwk8vbp.js → instruction-discovery-y56ehv6b.js} +9 -9
- package/dist/chunks/{credential-qzd7m72z.js → instruction-discovery-y9e73xa5.js} +18 -18
- package/dist/chunks/{credential-67hdgqhw.js → instruction-discovery-yphk03p8.js} +23 -23
- package/dist/chunks/{credential-r9f2t4hr.js → instruction-discovery-yppg54y4.js} +22 -22
- package/dist/chunks/{credential-yrhqyw5v.js → instruction-discovery-yrhqyw5v.js} +1 -1
- package/dist/chunks/{credential-jczj3x0w.js → instruction-discovery-ysyp8d4a.js} +29 -26
- package/dist/chunks/{credential-zy43x3f1.js → instruction-discovery-ywxndyv1.js} +4 -4
- package/dist/chunks/{credential-tzxp8tch.js → instruction-discovery-yydx669n.js} +15 -15
- package/dist/chunks/{credential-87kvv8a5.js → instruction-discovery-yzzqahvy.js} +29 -30
- package/dist/chunks/{credential-z0bkrqjs.js → instruction-discovery-z0bkrqjs.js} +1 -1
- package/dist/chunks/{credential-pkt3h2b9.js → instruction-discovery-z468zaec.js} +18 -18
- package/dist/chunks/{credential-922hggd3.js → instruction-discovery-z5v4ffb3.js} +1 -11
- package/dist/chunks/{credential-zyh8zg28.js → instruction-discovery-zk4rm6sg.js} +25 -25
- package/dist/chunks/{credential-zr2ceqn5.js → instruction-discovery-zr2ceqn5.js} +1 -1
- package/dist/chunks/{credential-zxq2ej10.js → instruction-discovery-zxq2ej10.js} +1 -1
- package/dist/codemode/catalog.js +1 -1
- package/dist/codemode/instructions.js +9 -9
- package/dist/codemode/tool.js +3 -3
- package/dist/codemode/web.js +1 -1
- package/dist/command.js +81 -81
- package/dist/config/discovery.js +82 -82
- package/dist/config/markdown.js +1 -1
- package/dist/config/normalize.js +106 -106
- package/dist/config/plugin/agent.js +125 -125
- package/dist/config/plugin/command.js +215 -215
- package/dist/config/plugin/compaction.js +161 -161
- package/dist/config/plugin/compatibility.js +141 -141
- package/dist/config/plugin/entry-observer.js +1 -1
- package/dist/config/plugin/formatter.js +124 -124
- package/dist/config/plugin/image.js +123 -123
- package/dist/config/plugin/instruction.js +90 -90
- package/dist/config/plugin/location-watcher.js +125 -125
- package/dist/config/plugin/mcp.js +132 -132
- package/dist/config/plugin/policy.js +124 -124
- package/dist/config/plugin/provider.js +123 -123
- package/dist/config/plugin/reference.js +125 -125
- package/dist/config/plugin/shell.js +125 -125
- package/dist/config/plugin/skill-file.js +102 -102
- package/dist/config/plugin/skill.js +144 -144
- package/dist/config/plugin/snapshot.js +123 -123
- package/dist/config/plugin/source.js +126 -126
- package/dist/config/plugin/tool-output.js +125 -125
- package/dist/config/plugin/websearch.js +124 -124
- package/dist/config/plugin/worktree.js +125 -125
- package/dist/config/variable.js +3 -3
- package/dist/config/watch.js +1 -1
- package/dist/config.js +128 -128
- package/dist/credential/sql.js +2 -2
- package/dist/credential.js +83 -83
- package/dist/database/database.js +70 -70
- 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.gen.js +49 -49
- package/dist/database/migration.js +51 -51
- 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 +79 -79
- package/dist/database/v1-migration.js +1 -1
- package/dist/effect/app-node-builder.js +372 -372
- 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 +93 -93
- package/dist/environment/exec-defaults.js +2 -2
- package/dist/environment/files.js +1 -1
- package/dist/environment/index.js +93 -93
- 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 +74 -74
- package/dist/file-access.js +104 -104
- package/dist/file-mutation.js +94 -94
- 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/ignore.js +1 -1
- package/dist/filesystem/location-watcher-policy.js +2 -2
- package/dist/filesystem/location-watcher.js +228 -228
- package/dist/filesystem/protected.js +1 -1
- package/dist/filesystem/search.js +97 -97
- package/dist/filesystem/watcher-binding.js +1 -1
- package/dist/filesystem/watcher.js +15 -15
- package/dist/filesystem.js +102 -98
- package/dist/form.js +80 -80
- package/dist/formatter/builtins.js +4 -4
- package/dist/formatter.js +87 -87
- package/dist/generate.js +105 -105
- 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 +18 -20
- package/dist/github-copilot/models.js +99 -99
- 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/id/id.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 +363 -363
- package/dist/instruction-discovery.js +85 -85
- package/dist/instructions/builtins.js +85 -85
- package/dist/instructions/index.js +3 -3
- package/dist/integration/connection.js +3 -3
- package/dist/integration.js +89 -89
- package/dist/job.js +77 -77
- package/dist/kv/sql.js +2 -2
- package/dist/kv.js +73 -73
- package/dist/location-activity.js +135 -135
- package/dist/location-lifecycle.js +107 -107
- package/dist/location-service-map.js +86 -86
- package/dist/location-services.js +360 -360
- package/dist/location.js +89 -89
- package/dist/managed-policy.js +5 -5
- package/dist/mcp/client.js +123 -96
- package/dist/mcp/index.js +103 -103
- package/dist/mcp/instructions.js +129 -129
- package/dist/mcp/oauth.js +78 -78
- package/dist/mcp/stdio.js +90 -90
- package/dist/mime.js +1 -1
- package/dist/modal/models.js +99 -99
- package/dist/model-resolver.js +98 -98
- package/dist/model.js +102 -100
- package/dist/models-dev.js +101 -101
- package/dist/oauth/page.js +1 -1
- package/dist/permission/saved.js +80 -80
- package/dist/permission/sql.js +5 -5
- package/dist/permission.js +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 +82 -82
- package/dist/persistent-pty/pty-binding.js +1 -1
- package/dist/persistent-pty.js +75 -75
- package/dist/plugin/agent.js +104 -104
- package/dist/plugin/command.js +102 -102
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +221 -221
- package/dist/plugin/identity.js +3 -3
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +335 -335
- package/dist/plugin/mcp-codemode-defaults.js +3 -3
- package/dist/plugin/models-dev.js +96 -96
- package/dist/plugin/module.js +5 -5
- package/dist/plugin/optimize.js +2 -2
- package/dist/plugin/plan.js +100 -100
- package/dist/plugin/promise.js +1 -1
- package/dist/plugin/provider/amazon-bedrock.js +90 -90
- package/dist/plugin/provider/azure.js +125 -123
- package/dist/plugin/provider/cerebras.js +1 -1
- package/dist/plugin/provider/chatgpt.js +93 -93
- package/dist/plugin/provider/cloudflare-ai-gateway.js +120 -120
- package/dist/plugin/provider/cloudflare-workers-ai.js +121 -121
- package/dist/plugin/provider/cohere.js +2 -2
- package/dist/plugin/provider/configured.js +119 -119
- package/dist/plugin/provider/digitalocean.js +93 -93
- package/dist/plugin/provider/dynamic.js +2 -2
- package/dist/plugin/provider/factory.js +1 -1
- package/dist/plugin/provider/gateway.js +2 -2
- package/dist/plugin/provider/github-copilot.js +95 -95
- package/dist/plugin/provider/gitlab.js +93 -93
- package/dist/plugin/provider/google-vertex.js +90 -90
- package/dist/plugin/provider/kilo.js +1 -1
- package/dist/plugin/provider/llmgateway.js +78 -78
- package/dist/plugin/provider/lmstudio.js +122 -122
- package/dist/plugin/provider/modal.js +92 -92
- package/dist/plugin/provider/nvidia.js +1 -1
- package/dist/plugin/provider/ollama.js +122 -122
- package/dist/plugin/provider/openai.js +93 -93
- package/dist/plugin/provider/opencode.js +96 -95
- package/dist/plugin/provider/openrouter.js +91 -91
- package/dist/plugin/provider/perplexity.js +2 -2
- package/dist/plugin/provider/poe.js +79 -79
- package/dist/plugin/provider/prompt-cache-key.js +90 -90
- package/dist/plugin/provider/sap-ai-core.js +91 -91
- package/dist/plugin/provider/sdk-factory.js +1 -1
- package/dist/plugin/provider/snowflake-cortex.js +122 -122
- package/dist/plugin/provider/venice.js +2 -2
- package/dist/plugin/provider/vercel.js +90 -90
- package/dist/plugin/provider/vllm.js +120 -120
- package/dist/plugin/provider/xai.js +91 -91
- package/dist/plugin/provider/zenmux.js +1 -1
- package/dist/plugin/provider.js +163 -163
- package/dist/plugin/sdk.js +76 -76
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +139 -139
- 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 +86 -86
- package/dist/plugin/vcs/hg.js +86 -86
- package/dist/plugin/verbosity.js +93 -93
- package/dist/plugin/warming.js +121 -121
- 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 +222 -222
- package/dist/project/schema.js +8 -8
- package/dist/project/sql.js +4 -4
- package/dist/project.js +90 -90
- package/dist/provider.js +108 -102
- package/dist/pty/protocol.js +1 -1
- package/dist/pty/ticket.js +1 -1
- package/dist/pty.js +91 -91
- package/dist/reference/instructions.js +89 -89
- package/dist/reference.js +91 -91
- package/dist/repository-cache.js +81 -81
- package/dist/repository.js +1 -1
- package/dist/ripgrep/binary.js +2 -2
- package/dist/ripgrep.js +91 -91
- package/dist/rpc.js +86 -86
- package/dist/schema.js +2 -4
- package/dist/session/affinity.js +1 -1
- package/dist/session/command.js +74 -74
- package/dist/session/compaction.js +133 -133
- package/dist/session/context.js +153 -153
- package/dist/session/diff.js +88 -88
- package/dist/session/environment.js +5 -5
- package/dist/session/error.js +3 -3
- package/dist/session/event.js +1 -1
- package/dist/session/execution/restart.js +225 -225
- package/dist/session/execution.js +126 -126
- package/dist/session/generate.js +154 -154
- package/dist/session/history.js +13 -13
- package/dist/session/inbox.js +88 -88
- package/dist/session/info.js +3 -3
- package/dist/session/instruction-entry.js +79 -79
- 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 +120 -120
- package/dist/session/model-transport.js +9 -9
- package/dist/session/move.js +130 -130
- package/dist/session/projector.js +86 -86
- package/dist/session/prompt.js +105 -105
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +90 -90
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +230 -230
- package/dist/session/runner/max-steps.js +1 -1
- package/dist/session/runner/model.js +98 -98
- package/dist/session/runner/publish-llm-event.js +3 -3
- package/dist/session/runner/retry.js +4 -4
- package/dist/session/runner/step.js +124 -124
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +5 -5
- package/dist/session/session.js +172 -172
- package/dist/session/shell.js +138 -138
- package/dist/session/skill.js +103 -103
- package/dist/session/sql.js +5 -5
- package/dist/session/stats.js +75 -75
- package/dist/session/store.js +85 -85
- package/dist/session/subagent-completion.js +1 -1
- package/dist/session/subagent-job.js +211 -211
- package/dist/session/system-prompt.js +5 -5
- package/dist/session/title.js +151 -151
- package/dist/session/to-session-error.js +111 -111
- package/dist/session/transfer.js +224 -224
- package/dist/session/usage.js +1 -1
- package/dist/session.js +215 -215
- package/dist/shell/parse.js +6 -6
- package/dist/shell/result.js +1 -1
- package/dist/shell/scan.js +1 -1
- package/dist/shell/select.js +11 -11
- package/dist/shell.js +138 -138
- package/dist/skill/discovery.js +6 -6
- package/dist/skill/instructions.js +107 -107
- package/dist/skill.js +110 -110
- package/dist/snapshot.js +91 -91
- package/dist/state.js +1 -1
- package/dist/tool/html-markdown.js +1 -1
- package/dist/tool/http-body.js +1 -1
- package/dist/tool/mcp.js +128 -128
- package/dist/tool/plugin/edit.js +120 -120
- package/dist/tool/plugin/file-diff.js +1 -1
- package/dist/tool/plugin/glob.js +116 -116
- package/dist/tool/plugin/grep.js +122 -122
- package/dist/tool/plugin/mcp-resource.js +117 -117
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +122 -122
- package/dist/tool/plugin/question.js +105 -105
- package/dist/tool/plugin/read.js +125 -125
- package/dist/tool/plugin/shell.js +218 -218
- package/dist/tool/plugin/skill.js +113 -113
- package/dist/tool/plugin/subagent.js +220 -220
- package/dist/tool/plugin/webfetch.js +112 -112
- package/dist/tool/plugin/websearch.js +114 -114
- package/dist/tool/plugin/write.js +122 -122
- package/dist/tool/read-filesystem.js +100 -100
- package/dist/tool/runtime.js +1 -1
- package/dist/tool-output.js +8 -8
- package/dist/tool.js +14 -14
- package/dist/types/agent.d.ts +2 -1
- package/dist/types/filesystem.d.ts +15 -1
- package/dist/types/form.d.ts +5 -1
- package/dist/types/github-copilot/copilot-provider.d.ts +0 -1
- package/dist/types/github-copilot/responses/openai-responses-language-model.d.ts +0 -2
- package/dist/types/instance.d.ts +1 -1
- package/dist/types/mcp/client.d.ts +2 -2
- package/dist/types/model-resolver.d.ts +2 -2
- package/dist/types/model.d.ts +6 -0
- package/dist/types/plugin/internal.d.ts +1 -1
- package/dist/types/plugin/provider/azure.d.ts +7 -1
- package/dist/types/plugin/supervisor.d.ts +1 -1
- package/dist/types/provider.d.ts +19 -5
- package/dist/types/schema.d.ts +0 -21
- package/dist/types/session/model-transport.d.ts +1 -1
- package/dist/types/v1/config/error.d.ts +48 -1433
- package/dist/types/v1/config/migrate.d.ts +5 -4
- package/dist/util/error-summary.js +1 -1
- package/dist/util/error.js +1 -1
- package/dist/util/git-executable.js +2 -2
- package/dist/util/iife.js +1 -1
- package/dist/util/lazy.js +1 -1
- package/dist/util/slug.js +1 -1
- package/dist/util/token.js +1 -1
- package/dist/util/which.js +1 -1
- package/dist/util/wildcard.js +1 -1
- package/dist/v1/config/agent.js +5 -5
- package/dist/v1/config/attachment.js +4 -4
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +16 -16
- package/dist/v1/config/error.js +3 -11
- package/dist/v1/config/formatter.js +3 -3
- package/dist/v1/config/layout.js +1 -1
- package/dist/v1/config/lsp.js +3 -3
- package/dist/v1/config/mcp.js +4 -4
- package/dist/v1/config/migrate.js +92 -92
- 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/v1/config/server.js +2 -2
- package/dist/v1/config/skills.js +3 -3
- package/dist/variant.js +91 -91
- package/dist/vcs/patch.js +1 -1
- package/dist/vcs.js +89 -89
- package/dist/websearch.js +84 -84
- package/dist/wellknown/plugin.js +76 -76
- package/dist/wellknown.js +79 -79
- package/dist/workspace/driver.js +7 -7
- package/dist/workspace/sql.js +1 -1
- package/dist/workspace.js +80 -80
- 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 +89 -89
- package/dist/worktree.js +94 -94
- package/package.json +8 -8
- package/dist/chunks/credential-4v7qdvcn.js +0 -18
- package/dist/chunks/credential-c9ejnn61.js +0 -252
- package/dist/chunks/credential-n7q661v8.js +0 -223
- package/dist/chunks/credential-p8vfyszn.js +0 -26
- package/dist/chunks/credential-xn90480x.js +0 -507
- package/dist/chunks/credential-z63w68vq.js +0 -46
- package/dist/types/util/identifier.d.ts +0 -1
- package/dist/types/v1/permission.d.ts +0 -27
- package/dist/util/identifier.js +0 -5
- package/dist/v1/permission.js +0 -51
- /package/dist/chunks/{credential-0qkdqm5v.js → instruction-discovery-0qkdqm5v.js} +0 -0
- /package/dist/chunks/{credential-0zkw76rk.js → instruction-discovery-0zkw76rk.js} +0 -0
- /package/dist/chunks/{credential-17cy0kzp.js → instruction-discovery-17cy0kzp.js} +0 -0
- /package/dist/chunks/{credential-1cnp2v09.js → instruction-discovery-1cnp2v09.js} +0 -0
- /package/dist/chunks/{credential-1kg9ymc8.js → instruction-discovery-1kg9ymc8.js} +0 -0
- /package/dist/chunks/{credential-24dcb14g.js → instruction-discovery-24dcb14g.js} +0 -0
- /package/dist/chunks/{credential-2710q6r3.js → instruction-discovery-2710q6r3.js} +0 -0
- /package/dist/chunks/{credential-2axfhc9x.js → instruction-discovery-2axfhc9x.js} +0 -0
- /package/dist/chunks/{credential-2c3vjs8z.js → instruction-discovery-2c3vjs8z.js} +0 -0
- /package/dist/chunks/{credential-34c7v6d4.js → instruction-discovery-34c7v6d4.js} +0 -0
- /package/dist/chunks/{credential-359p4xyc.js → instruction-discovery-359p4xyc.js} +0 -0
- /package/dist/chunks/{credential-3asan66x.js → instruction-discovery-3asan66x.js} +0 -0
- /package/dist/chunks/{credential-3v8g72cx.js → instruction-discovery-3v8g72cx.js} +0 -0
- /package/dist/chunks/{credential-3w5fmr99.js → instruction-discovery-3w5fmr99.js} +0 -0
- /package/dist/chunks/{credential-3wcehsnq.js → instruction-discovery-3wcehsnq.js} +0 -0
- /package/dist/chunks/{credential-43n2bw4t.js → instruction-discovery-43n2bw4t.js} +0 -0
- /package/dist/chunks/{credential-4knz6hnm.js → instruction-discovery-4knz6hnm.js} +0 -0
- /package/dist/chunks/{credential-4vcrnpx2.js → instruction-discovery-4vcrnpx2.js} +0 -0
- /package/dist/chunks/{credential-4y7fprxs.js → instruction-discovery-4y7fprxs.js} +0 -0
- /package/dist/chunks/{credential-53557ph1.js → instruction-discovery-53557ph1.js} +0 -0
- /package/dist/chunks/{credential-550bvhaj.js → instruction-discovery-550bvhaj.js} +0 -0
- /package/dist/chunks/{credential-5qd3pb7m.js → instruction-discovery-5qd3pb7m.js} +0 -0
- /package/dist/chunks/{credential-6prwharc.js → instruction-discovery-6prwharc.js} +0 -0
- /package/dist/chunks/{credential-7akdwqpd.js → instruction-discovery-7akdwqpd.js} +0 -0
- /package/dist/chunks/{credential-7m9af43g.js → instruction-discovery-7m9af43g.js} +0 -0
- /package/dist/chunks/{credential-822emrt2.js → instruction-discovery-822emrt2.js} +0 -0
- /package/dist/chunks/{credential-88xbtdfr.js → instruction-discovery-88xbtdfr.js} +0 -0
- /package/dist/chunks/{credential-8n3pysct.js → instruction-discovery-8n3pysct.js} +0 -0
- /package/dist/chunks/{credential-8wj87zfr.js → instruction-discovery-8wj87zfr.js} +0 -0
- /package/dist/chunks/{credential-9a4afbnw.js → instruction-discovery-9a4afbnw.js} +0 -0
- /package/dist/chunks/{credential-9rqn6x4v.js → instruction-discovery-9rqn6x4v.js} +0 -0
- /package/dist/chunks/{credential-a6k6eb26.js → instruction-discovery-a6k6eb26.js} +0 -0
- /package/dist/chunks/{credential-af5trqkr.js → instruction-discovery-af5trqkr.js} +0 -0
- /package/dist/chunks/{credential-afrmfg78.js → instruction-discovery-afrmfg78.js} +0 -0
- /package/dist/chunks/{credential-aqzs7mqg.js → instruction-discovery-aqzs7mqg.js} +0 -0
- /package/dist/chunks/{credential-atq7p7m5.js → instruction-discovery-atq7p7m5.js} +0 -0
- /package/dist/chunks/{credential-bkyjaxrp.js → instruction-discovery-bkyjaxrp.js} +0 -0
- /package/dist/chunks/{credential-bmr6ed5q.js → instruction-discovery-bmr6ed5q.js} +0 -0
- /package/dist/chunks/{credential-cf4snx6d.js → instruction-discovery-cf4snx6d.js} +0 -0
- /package/dist/chunks/{credential-cvy3z8tj.js → instruction-discovery-cvy3z8tj.js} +0 -0
- /package/dist/chunks/{credential-d9fn303g.js → instruction-discovery-d9fn303g.js} +0 -0
- /package/dist/chunks/{credential-d9jj8t3e.js → instruction-discovery-d9jj8t3e.js} +0 -0
- /package/dist/chunks/{credential-dajrwvna.js → instruction-discovery-dajrwvna.js} +0 -0
- /package/dist/chunks/{credential-dap0rakb.js → instruction-discovery-dap0rakb.js} +0 -0
- /package/dist/chunks/{credential-df08tz66.js → instruction-discovery-df08tz66.js} +0 -0
- /package/dist/chunks/{credential-dy18nga0.js → instruction-discovery-dy18nga0.js} +0 -0
- /package/dist/chunks/{credential-e5kj55wp.js → instruction-discovery-e5kj55wp.js} +0 -0
- /package/dist/chunks/{credential-e73j6tqm.js → instruction-discovery-e73j6tqm.js} +0 -0
- /package/dist/chunks/{credential-ec1grn59.js → instruction-discovery-ec1grn59.js} +0 -0
- /package/dist/chunks/{credential-eh3zwz77.js → instruction-discovery-eh3zwz77.js} +0 -0
- /package/dist/chunks/{credential-emrn6kk6.js → instruction-discovery-emrn6kk6.js} +0 -0
- /package/dist/chunks/{credential-f0mxakyp.js → instruction-discovery-f0mxakyp.js} +0 -0
- /package/dist/chunks/{credential-f6n9ztr4.js → instruction-discovery-f6n9ztr4.js} +0 -0
- /package/dist/chunks/{credential-faypxj3z.js → instruction-discovery-faypxj3z.js} +0 -0
- /package/dist/chunks/{credential-fd410y7t.js → instruction-discovery-fd410y7t.js} +0 -0
- /package/dist/chunks/{credential-fxgpk5d8.js → instruction-discovery-fxgpk5d8.js} +0 -0
- /package/dist/chunks/{credential-g4wezp1m.js → instruction-discovery-g4wezp1m.js} +0 -0
- /package/dist/chunks/{credential-g86h250q.js → instruction-discovery-g86h250q.js} +0 -0
- /package/dist/chunks/{credential-gebd4c9n.js → instruction-discovery-gebd4c9n.js} +0 -0
- /package/dist/chunks/{credential-gftt206x.js → instruction-discovery-gftt206x.js} +0 -0
- /package/dist/chunks/{credential-hjbc5kem.js → instruction-discovery-hjbc5kem.js} +0 -0
- /package/dist/chunks/{credential-hk9envan.js → instruction-discovery-hk9envan.js} +0 -0
- /package/dist/chunks/{credential-j2ntwpah.js → instruction-discovery-j2ntwpah.js} +0 -0
- /package/dist/chunks/{credential-j5zkgpj8.js → instruction-discovery-j5zkgpj8.js} +0 -0
- /package/dist/chunks/{credential-jjkms2e6.js → instruction-discovery-jjkms2e6.js} +0 -0
- /package/dist/chunks/{credential-jr7sbwjy.js → instruction-discovery-jr7sbwjy.js} +0 -0
- /package/dist/chunks/{credential-jwfs4k6c.js → instruction-discovery-jwfs4k6c.js} +0 -0
- /package/dist/chunks/{credential-jzg6c2d5.js → instruction-discovery-jzg6c2d5.js} +0 -0
- /package/dist/chunks/{credential-mp448xyj.js → instruction-discovery-mp448xyj.js} +0 -0
- /package/dist/chunks/{credential-msx8hqn2.js → instruction-discovery-msx8hqn2.js} +0 -0
- /package/dist/chunks/{credential-n05xt0ee.js → instruction-discovery-n05xt0ee.js} +0 -0
- /package/dist/chunks/{credential-n3j8tn72.js → instruction-discovery-n3j8tn72.js} +0 -0
- /package/dist/chunks/{credential-njntx4h6.js → instruction-discovery-njntx4h6.js} +0 -0
- /package/dist/chunks/{credential-q3sfg36h.js → instruction-discovery-q3sfg36h.js} +0 -0
- /package/dist/chunks/{credential-q74kybfr.js → instruction-discovery-q74kybfr.js} +0 -0
- /package/dist/chunks/{credential-qaymkmh1.js → instruction-discovery-qaymkmh1.js} +0 -0
- /package/dist/chunks/{credential-qb87gjwd.js → instruction-discovery-qb87gjwd.js} +0 -0
- /package/dist/chunks/{credential-qfa1cgps.js → instruction-discovery-qfa1cgps.js} +0 -0
- /package/dist/chunks/{credential-qg3g05ea.js → instruction-discovery-qg3g05ea.js} +0 -0
- /package/dist/chunks/{credential-qrg20bc0.js → instruction-discovery-qrg20bc0.js} +0 -0
- /package/dist/chunks/{credential-rcb2kzg1.js → instruction-discovery-rcb2kzg1.js} +0 -0
- /package/dist/chunks/{credential-sdp7kfr6.js → instruction-discovery-sdp7kfr6.js} +0 -0
- /package/dist/chunks/{credential-sk3qaz4a.js → instruction-discovery-sk3qaz4a.js} +0 -0
- /package/dist/chunks/{credential-ssg3fenm.js → instruction-discovery-ssg3fenm.js} +0 -0
- /package/dist/chunks/{credential-w803qqfp.js → instruction-discovery-w803qqfp.js} +0 -0
- /package/dist/chunks/{credential-wc3fc9cn.js → instruction-discovery-wc3fc9cn.js} +0 -0
- /package/dist/chunks/{credential-wer8tq1h.js → instruction-discovery-wer8tq1h.js} +0 -0
- /package/dist/chunks/{credential-wtztk69x.js → instruction-discovery-wtztk69x.js} +0 -0
- /package/dist/chunks/{credential-x0ckcb58.js → instruction-discovery-x0ckcb58.js} +0 -0
- /package/dist/chunks/{credential-x61499pn.js → instruction-discovery-x61499pn.js} +0 -0
- /package/dist/chunks/{credential-y44na4kk.js → instruction-discovery-y44na4kk.js} +0 -0
- /package/dist/chunks/{credential-y8cydn3q.js → instruction-discovery-y8cydn3q.js} +0 -0
- /package/dist/chunks/{credential-y8f7s663.js → instruction-discovery-y8f7s663.js} +0 -0
- /package/dist/chunks/{credential-ygaqb7jw.js → instruction-discovery-ygaqb7jw.js} +0 -0
- /package/dist/chunks/{credential-ym463w8f.js → instruction-discovery-ym463w8f.js} +0 -0
- /package/dist/chunks/{credential-z9919s4g.js → instruction-discovery-z9919s4g.js} +0 -0
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import {
|
|
2
2
|
AbsolutePath2,
|
|
3
3
|
RelativePath2
|
|
4
|
-
} from "./
|
|
4
|
+
} from "./instruction-discovery-z5v4ffb3.js";
|
|
5
5
|
import {
|
|
6
6
|
Repository2,
|
|
7
7
|
TreeID2,
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
} from "./
|
|
8
|
+
Service79,
|
|
9
|
+
node83
|
|
10
|
+
} from "./instruction-discovery-rttzrg3r.js";
|
|
11
11
|
import {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
12
|
+
Service77,
|
|
13
|
+
node81
|
|
14
|
+
} from "./instruction-discovery-g6pt2ykv.js";
|
|
15
15
|
import {
|
|
16
16
|
create3
|
|
17
|
-
} from "./
|
|
17
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
18
18
|
import {
|
|
19
19
|
__export
|
|
20
|
-
} from "./
|
|
20
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
21
21
|
|
|
22
22
|
// src/snapshot.ts
|
|
23
23
|
var exports_snapshot2 = {};
|
|
24
24
|
__export(exports_snapshot2, {
|
|
25
|
-
Error: () =>
|
|
26
|
-
ID: () =>
|
|
27
|
-
Service: () =>
|
|
25
|
+
Error: () => Error3,
|
|
26
|
+
ID: () => ID5,
|
|
27
|
+
Service: () => Service43,
|
|
28
28
|
Snapshot: () => exports_snapshot2,
|
|
29
|
-
node: () =>
|
|
29
|
+
node: () => node46,
|
|
30
30
|
noopLayer: () => noopLayer2
|
|
31
31
|
});
|
|
32
32
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
@@ -34,22 +34,22 @@ import path from "path";
|
|
|
34
34
|
import { Context, Effect, Fiber, Layer, Schema, Scope } from "effect";
|
|
35
35
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
36
36
|
import { Global } from "@opencode/util/global";
|
|
37
|
-
import { ID as
|
|
37
|
+
import { ID as ID5 } from "@opencode/schema/snapshot";
|
|
38
38
|
import { Hash } from "@opencode/util/hash";
|
|
39
|
-
class
|
|
39
|
+
class Error3 extends Schema.TaggedError()("Snapshot.Error", {
|
|
40
40
|
operation: Schema.Literals(["capture", "files", "diff", "restore"]),
|
|
41
41
|
message: Schema.String,
|
|
42
42
|
cause: Schema.optional(Schema.Defect())
|
|
43
43
|
}) {
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
class
|
|
46
|
+
class Service43 extends Context.Service()("@opencode/Snapshot") {
|
|
47
47
|
}
|
|
48
|
-
var layer = Layer.effect(
|
|
48
|
+
var layer = Layer.effect(Service43, Effect.gen(function* () {
|
|
49
49
|
const fs = yield* FSUtil.Service;
|
|
50
|
-
const git = yield*
|
|
50
|
+
const git = yield* Service79;
|
|
51
51
|
const global = yield* Global.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service77;
|
|
53
53
|
const lifetime = yield* Scope.Scope;
|
|
54
54
|
const state = create3({
|
|
55
55
|
name: "snapshot",
|
|
@@ -63,7 +63,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
63
63
|
const repositoryFiber = yield* Effect.cached(Effect.gen(function* () {
|
|
64
64
|
const source = yield* git.repo.discover(location.project.directory);
|
|
65
65
|
if (!source)
|
|
66
|
-
return yield* new
|
|
66
|
+
return yield* new Error3({ operation: "capture", message: "Project is not a Git repository" });
|
|
67
67
|
const worktree = AbsolutePath2.make(yield* fs.realPath(source.worktree).pipe(Effect.orDie));
|
|
68
68
|
const gitDirectory = AbsolutePath2.make(path.join(global.data, "snapshot", location.project.id, Hash.fast(worktree)));
|
|
69
69
|
const snapshotRepository = (yield* fs.existsSafe(path.join(gitDirectory, "HEAD"))) ? new Repository2({ worktree, gitDirectory, commonDirectory: gitDirectory }) : yield* git.repo.create({ worktree, gitDirectory, seed: source }).pipe(Effect.mapError((cause) => failure("capture", cause)));
|
|
@@ -73,7 +73,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
73
73
|
const scope = Effect.fnUntraced(function* (worktree) {
|
|
74
74
|
const relative = path.relative(worktree, location.directory);
|
|
75
75
|
if (relative.startsWith("..") || path.isAbsolute(relative))
|
|
76
|
-
return yield* new
|
|
76
|
+
return yield* new Error3({ operation: "capture", message: "Location is outside the project" });
|
|
77
77
|
return RelativePath2.make(relative.replaceAll("\\", "/") || ".");
|
|
78
78
|
});
|
|
79
79
|
const enabled = () => location.vcs?.type === "git" && state.get().enabled;
|
|
@@ -82,7 +82,7 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
82
82
|
return;
|
|
83
83
|
return yield* Effect.gen(function* () {
|
|
84
84
|
const repo = yield* repository;
|
|
85
|
-
return
|
|
85
|
+
return ID5.make(yield* git.tree.capture({
|
|
86
86
|
repository: repo.snapshotRepository,
|
|
87
87
|
scopes: [yield* scope(repo.worktree)],
|
|
88
88
|
ignores: repo.source,
|
|
@@ -127,25 +127,25 @@ var layer = Layer.effect(Service52, Effect.gen(function* () {
|
|
|
127
127
|
for (const [file, snapshot] of input.files) {
|
|
128
128
|
const absolute = path.resolve(worktree, file);
|
|
129
129
|
if (!FSUtil.contains(worktree, absolute))
|
|
130
|
-
return yield* new
|
|
130
|
+
return yield* new Error3({ operation: "restore", message: `Path escapes the project: ${file}` });
|
|
131
131
|
files.set(file, TreeID2.make(snapshot));
|
|
132
132
|
}
|
|
133
133
|
return files;
|
|
134
134
|
});
|
|
135
135
|
const restore = Effect.fn("Snapshot.restore")(function* (input) {
|
|
136
136
|
if (!enabled())
|
|
137
|
-
return yield* new
|
|
137
|
+
return yield* new Error3({ operation: "restore", message: "Snapshots are disabled" });
|
|
138
138
|
const repo = yield* repository.pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
139
139
|
yield* git.tree.restore({ repository: repo.snapshotRepository, files: yield* plan(repo.worktree, input) }).pipe(Effect.mapError((cause) => failure("restore", cause)));
|
|
140
140
|
});
|
|
141
|
-
return
|
|
141
|
+
return Service43.of({ transform: state.transform, reload: state.reload, capture, files, diff, restore });
|
|
142
142
|
}).pipe(Effect.withSpan("Snapshot.boot")));
|
|
143
|
-
var
|
|
144
|
-
service:
|
|
143
|
+
var node46 = makeLocationNode({
|
|
144
|
+
service: Service43,
|
|
145
145
|
layer,
|
|
146
|
-
deps: [FSUtil.node,
|
|
146
|
+
deps: [FSUtil.node, node83, Global.node, node81]
|
|
147
147
|
});
|
|
148
|
-
var noopLayer2 = Layer.succeed(
|
|
148
|
+
var noopLayer2 = Layer.succeed(Service43, Service43.of({
|
|
149
149
|
transform: () => Effect.succeed({ dispose: Effect.void }),
|
|
150
150
|
reload: () => Effect.void,
|
|
151
151
|
capture: () => Effect.undefined,
|
|
@@ -154,13 +154,13 @@ var noopLayer2 = Layer.succeed(Service52, Service52.of({
|
|
|
154
154
|
restore: () => Effect.void
|
|
155
155
|
}));
|
|
156
156
|
function failure(operation, cause) {
|
|
157
|
-
if (cause instanceof
|
|
157
|
+
if (cause instanceof Error3 && cause.operation === operation)
|
|
158
158
|
return cause;
|
|
159
|
-
return new
|
|
159
|
+
return new Error3({
|
|
160
160
|
operation,
|
|
161
161
|
message: cause instanceof globalThis.Error ? cause.message : String(cause),
|
|
162
162
|
cause
|
|
163
163
|
});
|
|
164
164
|
}
|
|
165
165
|
|
|
166
|
-
export {
|
|
166
|
+
export { ID5, Error3, Service43, node46, noopLayer2, exports_snapshot2 };
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/session/runner/index.ts
|
|
6
6
|
var exports_runner = {};
|
|
7
7
|
__export(exports_runner, {
|
|
8
8
|
DrainResult: () => DrainResult2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service55,
|
|
10
10
|
SessionRunner: () => exports_runner
|
|
11
11
|
});
|
|
12
12
|
import { Context, Data } from "effect";
|
|
13
13
|
var DrainResult2 = Data.taggedEnum();
|
|
14
14
|
|
|
15
|
-
class
|
|
15
|
+
class Service55 extends Context.Service()("@opencode/SessionRunner") {
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
export { DrainResult2,
|
|
18
|
+
export { DrainResult2, Service55, exports_runner };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ps2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-vc32h82s.js";
|
|
4
4
|
import {
|
|
5
5
|
lazy2
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-88xbtdfr.js";
|
|
7
7
|
import {
|
|
8
8
|
match2
|
|
9
|
-
} from "./
|
|
9
|
+
} from "./instruction-discovery-y1fvbwt7.js";
|
|
10
10
|
import {
|
|
11
11
|
__export
|
|
12
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
13
13
|
|
|
14
14
|
// src/shell/parse.ts
|
|
15
15
|
var exports_parse = {};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/filesystem/location-watcher-policy.ts
|
|
9
9
|
var exports_location_watcher_policy = {};
|
|
@@ -1,46 +1,46 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./
|
|
2
|
+
Service83,
|
|
3
|
+
node87
|
|
4
|
+
} from "./instruction-discovery-mjv4tm51.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
} from "./
|
|
6
|
+
node56
|
|
7
|
+
} from "./instruction-discovery-fqzyqcjh.js";
|
|
8
8
|
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
} from "./
|
|
9
|
+
Service11,
|
|
10
|
+
node13
|
|
11
|
+
} from "./instruction-discovery-21201d4m.js";
|
|
12
12
|
import {
|
|
13
|
-
|
|
14
|
-
} from "./
|
|
13
|
+
Service36
|
|
14
|
+
} from "./instruction-discovery-jqh9b0xq.js";
|
|
15
15
|
import {
|
|
16
16
|
node24,
|
|
17
17
|
ID3
|
|
18
|
-
} from "./
|
|
18
|
+
} from "./instruction-discovery-h3rm5wyc.js";
|
|
19
19
|
import {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
} from "./
|
|
20
|
+
Service3,
|
|
21
|
+
node5
|
|
22
|
+
} from "./instruction-discovery-dv1qgsyq.js";
|
|
23
23
|
import {
|
|
24
24
|
requirements2,
|
|
25
25
|
guarded2,
|
|
26
26
|
list2
|
|
27
|
-
} from "./
|
|
27
|
+
} from "./instruction-discovery-wb3qhx4w.js";
|
|
28
28
|
import {
|
|
29
29
|
make4,
|
|
30
30
|
LoadError2
|
|
31
|
-
} from "./
|
|
31
|
+
} from "./instruction-discovery-wbx60fzd.js";
|
|
32
32
|
import {
|
|
33
33
|
Updated2,
|
|
34
|
+
Service4,
|
|
35
|
+
node6
|
|
36
|
+
} from "./instruction-discovery-mqw81mrh.js";
|
|
37
|
+
import {
|
|
34
38
|
Service5,
|
|
35
39
|
node7
|
|
36
|
-
} from "./
|
|
37
|
-
import {
|
|
38
|
-
Service7,
|
|
39
|
-
node9
|
|
40
|
-
} from "./credential-fwwk8vbp.js";
|
|
40
|
+
} from "./instruction-discovery-y56ehv6b.js";
|
|
41
41
|
import {
|
|
42
42
|
__export
|
|
43
|
-
} from "./
|
|
43
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
44
44
|
|
|
45
45
|
// src/plugin/supervisor.ts
|
|
46
46
|
var exports_supervisor = {};
|
|
@@ -126,13 +126,13 @@ var resolve = Effect.fn("PluginSupervisor.resolve")(function* (modules, pre, pos
|
|
|
126
126
|
};
|
|
127
127
|
});
|
|
128
128
|
var layer4 = Layer.effectDiscard(Effect.gen(function* () {
|
|
129
|
-
const registry = yield*
|
|
130
|
-
const sdk = yield*
|
|
131
|
-
const instance = yield*
|
|
132
|
-
const sources = yield*
|
|
129
|
+
const registry = yield* Service36;
|
|
130
|
+
const sdk = yield* Service4;
|
|
131
|
+
const instance = yield* Service3;
|
|
132
|
+
const sources = yield* Service11;
|
|
133
133
|
const modules = yield* make4();
|
|
134
|
-
const bus = yield*
|
|
135
|
-
const updates = yield*
|
|
134
|
+
const bus = yield* Service83;
|
|
135
|
+
const updates = yield* Service5;
|
|
136
136
|
const internal = yield* list2();
|
|
137
137
|
let release = yield* registry.hold();
|
|
138
138
|
yield* Effect.addFinalizer(() => release ?? Effect.void);
|
|
@@ -208,13 +208,13 @@ var layer4 = Layer.effectDiscard(Effect.gen(function* () {
|
|
|
208
208
|
}));
|
|
209
209
|
var nodeDeps = [
|
|
210
210
|
node24,
|
|
211
|
-
|
|
212
|
-
node8,
|
|
211
|
+
node6,
|
|
213
212
|
node5,
|
|
214
|
-
|
|
215
|
-
|
|
213
|
+
node13,
|
|
214
|
+
node7,
|
|
215
|
+
node87,
|
|
216
216
|
Npm.node,
|
|
217
|
-
|
|
217
|
+
node56,
|
|
218
218
|
requirements2
|
|
219
219
|
];
|
|
220
220
|
function pluginSource(target) {
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import {
|
|
2
2
|
makeUnsafe2
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-dpkg50ah.js";
|
|
4
4
|
import {
|
|
5
|
+
Service83,
|
|
6
|
+
node87
|
|
7
|
+
} from "./instruction-discovery-mjv4tm51.js";
|
|
8
|
+
import {
|
|
9
|
+
Event21,
|
|
5
10
|
Service82,
|
|
6
11
|
node86
|
|
7
|
-
} from "./
|
|
12
|
+
} from "./instruction-discovery-93pbq578.js";
|
|
8
13
|
import {
|
|
9
|
-
Event19,
|
|
10
14
|
Service77,
|
|
11
15
|
node81
|
|
12
|
-
} from "./
|
|
16
|
+
} from "./instruction-discovery-g6pt2ykv.js";
|
|
13
17
|
import {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} from "./
|
|
18
|
+
Service68,
|
|
19
|
+
node71
|
|
20
|
+
} from "./instruction-discovery-6wqmdryt.js";
|
|
17
21
|
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
ID16,
|
|
23
|
-
Service78,
|
|
24
|
-
node82
|
|
25
|
-
} from "./credential-jczj3x0w.js";
|
|
22
|
+
ID17,
|
|
23
|
+
Service81,
|
|
24
|
+
node85
|
|
25
|
+
} from "./instruction-discovery-ysyp8d4a.js";
|
|
26
26
|
import {
|
|
27
27
|
reconcile2,
|
|
28
28
|
create3
|
|
29
|
-
} from "./
|
|
29
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
30
30
|
import {
|
|
31
|
-
|
|
31
|
+
ID16,
|
|
32
32
|
MethodID2,
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
} from "./
|
|
33
|
+
Service80,
|
|
34
|
+
node84
|
|
35
|
+
} from "./instruction-discovery-768hztz0.js";
|
|
36
36
|
import {
|
|
37
37
|
__export
|
|
38
|
-
} from "./
|
|
38
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
39
39
|
|
|
40
40
|
// src/mcp/index.ts
|
|
41
41
|
var exports_mcp4 = {};
|
|
@@ -49,12 +49,12 @@ __export(exports_mcp4, {
|
|
|
49
49
|
ResourceContent: () => ResourceContent2,
|
|
50
50
|
ResourceTemplate: () => ResourceTemplate2,
|
|
51
51
|
ServerName: () => ServerName2,
|
|
52
|
-
Service: () =>
|
|
52
|
+
Service: () => Service40,
|
|
53
53
|
Status: () => Status2,
|
|
54
54
|
ToolCallError: () => ToolCallError2,
|
|
55
55
|
configured: () => configured5,
|
|
56
|
-
layer: () =>
|
|
57
|
-
node: () =>
|
|
56
|
+
layer: () => layer14,
|
|
57
|
+
node: () => node43
|
|
58
58
|
});
|
|
59
59
|
import { Mcp } from "@opencode/schema/mcp";
|
|
60
60
|
import { McpEvent } from "@opencode/schema/mcp-event";
|
|
@@ -86,12 +86,24 @@ class ToolCallError2 extends Schema.TaggedError()("MCP.ToolCallError", {
|
|
|
86
86
|
message: Schema.String
|
|
87
87
|
}) {
|
|
88
88
|
}
|
|
89
|
+
var unavailable = (server, status) => {
|
|
90
|
+
switch (status.status) {
|
|
91
|
+
case "failed":
|
|
92
|
+
return `MCP server "${server}" is not connected: ${status.error}. Reconnect it from /mcps.`;
|
|
93
|
+
case "needs_auth":
|
|
94
|
+
return `MCP server "${server}" needs authentication: ${status.error}. Sign in from /mcps.`;
|
|
95
|
+
case "disabled":
|
|
96
|
+
return `MCP server "${server}" is disabled.`;
|
|
97
|
+
default:
|
|
98
|
+
return `MCP server "${server}" is not connected.`;
|
|
99
|
+
}
|
|
100
|
+
};
|
|
89
101
|
var GLOBAL_ELICITATION_SESSION_ID = "global";
|
|
90
102
|
var URL_ELICITATION_FIELD_KEY = "elicitation";
|
|
91
103
|
var endpointLoads = makeUnsafe2();
|
|
92
104
|
var cloneConfig = (config) => structuredClone(config);
|
|
93
105
|
|
|
94
|
-
class
|
|
106
|
+
class Service40 extends Context.Service()("@opencode/MCP") {
|
|
95
107
|
}
|
|
96
108
|
var Options5 = Schema.Struct({
|
|
97
109
|
clientInfo: Schema.optional(Schema.Struct({
|
|
@@ -99,13 +111,13 @@ var Options5 = Schema.Struct({
|
|
|
99
111
|
version: Schema.String
|
|
100
112
|
}))
|
|
101
113
|
});
|
|
102
|
-
var
|
|
103
|
-
const location = yield*
|
|
104
|
-
const environment = yield*
|
|
105
|
-
const bus = yield*
|
|
106
|
-
const forms = yield*
|
|
107
|
-
const integration = yield*
|
|
108
|
-
const credentials = yield*
|
|
114
|
+
var layer14 = (options) => Layer.effect(Service40, Effect.gen(function* () {
|
|
115
|
+
const location = yield* Service77;
|
|
116
|
+
const environment = yield* Service68;
|
|
117
|
+
const bus = yield* Service83;
|
|
118
|
+
const forms = yield* Service81;
|
|
119
|
+
const integration = yield* Service80;
|
|
120
|
+
const credentials = yield* Service82;
|
|
109
121
|
const root = yield* Effect.scope;
|
|
110
122
|
const fork = yield* FiberSet.makeRuntime();
|
|
111
123
|
const entries = new Map;
|
|
@@ -117,7 +129,7 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
117
129
|
return;
|
|
118
130
|
const remote = entry.config;
|
|
119
131
|
const suffix = "mcp_" + createHash("sha1").update(name + "\x00" + remote.url).digest("hex").slice(0, 16);
|
|
120
|
-
const integrationID =
|
|
132
|
+
const integrationID = ID16.make(suffix);
|
|
121
133
|
entry.integrationID = integrationID;
|
|
122
134
|
owned.add(integrationID);
|
|
123
135
|
const methodID = MethodID2.make(suffix);
|
|
@@ -133,7 +145,7 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
133
145
|
method: { id: methodID, type: "oauth", label: name },
|
|
134
146
|
authorize: () => Effect.gen(function* () {
|
|
135
147
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
136
|
-
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(
|
|
148
|
+
return yield* McpOAuth.authorize({ name, config: remote, integrationID, methodID }).pipe(Effect.provideService(Service82, credentials));
|
|
137
149
|
})
|
|
138
150
|
});
|
|
139
151
|
}).pipe(Scope.provide(scope));
|
|
@@ -149,12 +161,12 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
149
161
|
if (entry.config.type !== "remote" || !entry.integrationID)
|
|
150
162
|
return;
|
|
151
163
|
const { McpOAuth } = yield* Effect.promise(() => import("../mcp/oauth.js"));
|
|
152
|
-
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(
|
|
164
|
+
return yield* McpOAuth.connectProvider({ config: entry.config, integrationID: entry.integrationID }).pipe(Effect.provideService(Service82, credentials));
|
|
153
165
|
});
|
|
154
166
|
const elicitation = {
|
|
155
167
|
create: (input) => Effect.gen(function* () {
|
|
156
168
|
if (input.params.mode === "url") {
|
|
157
|
-
const formID =
|
|
169
|
+
const formID = ID17.create();
|
|
158
170
|
const elicitationID = input.params.elicitationId;
|
|
159
171
|
const key = elicitationID === undefined ? undefined : input.server + "\x00" + elicitationID;
|
|
160
172
|
if (key)
|
|
@@ -240,8 +252,8 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
240
252
|
})));
|
|
241
253
|
const watch = (name, entry, connection) => {
|
|
242
254
|
const live = whenLive(name, entry, connection);
|
|
243
|
-
connection.onClose(() => live(Effect.gen(function* () {
|
|
244
|
-
entry.status = { status: "failed", error:
|
|
255
|
+
connection.onClose((reason) => live(Effect.gen(function* () {
|
|
256
|
+
entry.status = { status: "failed", error: reason };
|
|
245
257
|
yield* stopServer(name, entry);
|
|
246
258
|
yield* bus.publish(McpEvent.StatusChanged, { server: name });
|
|
247
259
|
})));
|
|
@@ -257,7 +269,7 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
257
269
|
entry.scope = scope;
|
|
258
270
|
const authProvider = yield* connectProvider(entry);
|
|
259
271
|
const { McpClient } = yield* Effect.promise(() => import("../mcp/client.js"));
|
|
260
|
-
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(
|
|
272
|
+
const load = McpClient.connect(name, entry.config, location.directory, authProvider, elicitation, options?.clientInfo).pipe(Effect.flatMap((connection) => connection.tools().pipe(Effect.map((tools) => ({ connection, tools })))), Effect.provideService(Service68, environment), Scope.provide(scope));
|
|
261
273
|
const result = yield* (entry.config.type === "remote" ? endpointLoads.withLock(entry.config.url)(load) : load).pipe(Effect.exit);
|
|
262
274
|
if (Exit.isSuccess(result)) {
|
|
263
275
|
entry.client = result.value.connection;
|
|
@@ -382,7 +394,7 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
382
394
|
yield* startServer(name, entry);
|
|
383
395
|
}).pipe(locks.withLock(name));
|
|
384
396
|
});
|
|
385
|
-
fork(bus.subscribe(
|
|
397
|
+
fork(bus.subscribe(Event21.Switched).pipe(Stream.filter((event) => owned.has(event.data.integrationID)), Stream.runForEach((event) => Effect.sync(() => fork(reconnect(event.data.integrationID))))));
|
|
386
398
|
const state = create3({
|
|
387
399
|
name: "mcp",
|
|
388
400
|
initial: () => ({
|
|
@@ -408,7 +420,7 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
408
420
|
}),
|
|
409
421
|
notify: () => reconcile2(root, fork, () => reconcileLock.withPermit(reconcile()))
|
|
410
422
|
});
|
|
411
|
-
return
|
|
423
|
+
return Service40.of({
|
|
412
424
|
transform: state.transform,
|
|
413
425
|
reload: state.reload,
|
|
414
426
|
servers: Effect.fn("MCP.servers")(function* () {
|
|
@@ -452,9 +464,13 @@ var layer15 = (options) => Layer.effect(Service33, Effect.gen(function* () {
|
|
|
452
464
|
return yield* new ToolCallError2({
|
|
453
465
|
server: target.name,
|
|
454
466
|
tool: input.name,
|
|
455
|
-
message:
|
|
467
|
+
message: unavailable(target.name, target.entry.status)
|
|
456
468
|
});
|
|
457
|
-
const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({
|
|
469
|
+
const result = yield* recovering(target.name, target.entry, target.entry.client, (connection) => connection.callTool({ name: input.name, args: input.args, sessionID: input.sessionID })).pipe(Effect.mapError((error) => new ToolCallError2({
|
|
470
|
+
server: target.name,
|
|
471
|
+
tool: input.name,
|
|
472
|
+
message: `MCP tool "${input.name}" on server "${target.name}" failed: ${error.message}`
|
|
473
|
+
})));
|
|
458
474
|
return { ...result, server: target.name, tool: input.name };
|
|
459
475
|
}),
|
|
460
476
|
instructions: Effect.fn("MCP.instructions")(function* () {
|
|
@@ -516,12 +532,12 @@ function mergeCatalogs(catalogs) {
|
|
|
516
532
|
}
|
|
517
533
|
function configured5(options) {
|
|
518
534
|
return makeLocationNode({
|
|
519
|
-
service:
|
|
520
|
-
layer:
|
|
521
|
-
deps: [
|
|
535
|
+
service: Service40,
|
|
536
|
+
layer: layer14(options),
|
|
537
|
+
deps: [node81, node71, node87, node85, node84, node86]
|
|
522
538
|
});
|
|
523
539
|
}
|
|
524
|
-
var
|
|
540
|
+
var node43 = configured5();
|
|
525
541
|
function toElicitationField(key, property, required) {
|
|
526
542
|
const machineTitle = /^(boolean|string|number|integer|array|object)(\s+with\b.*|\s+in\b.*)?$/i;
|
|
527
543
|
const title = property.title && !machineTitle.test(property.title.trim()) ? property.title : property.description ?? key;
|
|
@@ -572,4 +588,4 @@ function toElicitationField(key, property, required) {
|
|
|
572
588
|
}
|
|
573
589
|
}
|
|
574
590
|
|
|
575
|
-
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2,
|
|
591
|
+
export { ServerName2, PromptsChanged2, Status2, Resource2, ResourceTemplate2, ResourceCatalog2, ResourceContent2, NotFoundError5, ToolCallError2, Service40, Options5, layer14, configured5, node43, exports_mcp4 };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
create3
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-rdw6cm16.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
|
-
} from "./
|
|
6
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
7
7
|
|
|
8
8
|
// src/image.ts
|
|
9
9
|
var exports_image2 = {};
|
|
@@ -11,9 +11,9 @@ __export(exports_image2, {
|
|
|
11
11
|
DecodeError: () => DecodeError2,
|
|
12
12
|
Image: () => exports_image2,
|
|
13
13
|
ResizerUnavailableError: () => ResizerUnavailableError2,
|
|
14
|
-
Service: () =>
|
|
14
|
+
Service: () => Service66,
|
|
15
15
|
SizeError: () => SizeError2,
|
|
16
|
-
node: () =>
|
|
16
|
+
node: () => node69
|
|
17
17
|
});
|
|
18
18
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
19
19
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
@@ -42,9 +42,9 @@ class SizeError2 extends Schema.TaggedError()("Image.SizeError", {
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
class
|
|
45
|
+
class Service66 extends Context.Service()("@opencode/Image") {
|
|
46
46
|
}
|
|
47
|
-
var layer = Layer.effect(
|
|
47
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
48
48
|
const state = create3({
|
|
49
49
|
name: "image",
|
|
50
50
|
initial: () => ({
|
|
@@ -74,8 +74,8 @@ var layer = Layer.effect(Service46, Effect.gen(function* () {
|
|
|
74
74
|
const normalize = yield* loadAdapter;
|
|
75
75
|
return yield* normalize(resource, content, state.get());
|
|
76
76
|
});
|
|
77
|
-
return
|
|
77
|
+
return Service66.of({ transform: state.transform, reload: state.reload, normalize });
|
|
78
78
|
}));
|
|
79
|
-
var
|
|
79
|
+
var node69 = makeLocationNode({ service: Service66, layer, deps: [] });
|
|
80
80
|
|
|
81
|
-
export { ResizerUnavailableError2, DecodeError2, SizeError2,
|
|
81
|
+
export { ResizerUnavailableError2, DecodeError2, SizeError2, Service66, node69, exports_image2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./
|
|
2
|
+
ID9
|
|
3
|
+
} from "./instruction-discovery-5sv8fqdt.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/provider/prompt-cache-key.ts
|
|
6
6
|
import { Effect } from "effect";
|
|
@@ -24,7 +24,7 @@ var PromptCacheKeyPlugin2 = define({
|
|
|
24
24
|
effect: Effect.fn(function* (ctx) {
|
|
25
25
|
yield* ctx.model.transform((models) => {
|
|
26
26
|
for (const id of providerIDs) {
|
|
27
|
-
const providerID =
|
|
27
|
+
const providerID = ID9.make(id);
|
|
28
28
|
for (const model of models.list(providerID)) {
|
|
29
29
|
models.update(model.providerID, model.id, (draft) => {
|
|
30
30
|
draft.compatibility = { ...draft.compatibility, supportsPromptCacheKey: true };
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
__export
|
|
3
|
-
} from "./
|
|
3
|
+
} from "./instruction-discovery-9rqn6x4v.js";
|
|
4
4
|
|
|
5
5
|
// src/plugin/instance.ts
|
|
6
6
|
var exports_instance2 = {};
|
|
7
7
|
__export(exports_instance2, {
|
|
8
8
|
InstancePlugins: () => exports_instance2,
|
|
9
|
-
Service: () =>
|
|
9
|
+
Service: () => Service3,
|
|
10
10
|
bound: () => bound2,
|
|
11
|
-
node: () =>
|
|
11
|
+
node: () => node5
|
|
12
12
|
});
|
|
13
13
|
import { Context, Layer } from "effect";
|
|
14
14
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
15
15
|
|
|
16
|
-
class
|
|
16
|
+
class Service3 extends Context.Service()("@opencode/InstancePlugins") {
|
|
17
17
|
}
|
|
18
|
-
var
|
|
19
|
-
service:
|
|
18
|
+
var node5 = makeLocationNode({
|
|
19
|
+
service: Service3,
|
|
20
20
|
layer: bound2([]),
|
|
21
21
|
deps: []
|
|
22
22
|
});
|
|
@@ -26,7 +26,7 @@ function bound2(plugins) {
|
|
|
26
26
|
throw new Error(`duplicate instance plugin ids: ${duplicates.map((plugin) => plugin.id).join(", ")}`);
|
|
27
27
|
}
|
|
28
28
|
const stamped = plugins.map((plugin) => ({ ...plugin, revision: "instance", source: { type: "sdk" } }));
|
|
29
|
-
return Layer.succeed(
|
|
29
|
+
return Layer.succeed(Service3, Service3.of({ all: () => stamped }));
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
export {
|
|
32
|
+
export { Service3, node5, bound2, exports_instance2 };
|