@opencode/core 0.0.0-dev-19363 → 0.0.0-dev-19366
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/agent.js +61 -61
- package/dist/aisdk-native.js +2 -2
- package/dist/aisdk.js +6 -6
- package/dist/app.js +9 -9
- package/dist/bus.js +52 -52
- package/dist/catalog.js +65 -65
- package/dist/chunks/{workspace-xwy4v95w.js → workspace-01dfavc6.js} +12 -12
- package/dist/chunks/{workspace-3aq545f1.js → workspace-055djz7r.js} +9 -9
- package/dist/chunks/{workspace-wt5gx8pc.js → workspace-05b1y4dr.js} +3 -3
- package/dist/chunks/{workspace-gd9thf3n.js → workspace-0dwqbmss.js} +5 -5
- package/dist/chunks/{workspace-e4tyy19d.js → workspace-0fv2a53w.js} +10 -10
- package/dist/chunks/{workspace-1c2ybwbd.js → workspace-0h1q2yx7.js} +19 -19
- package/dist/chunks/{workspace-5qatf9sn.js → workspace-0h28z8dy.js} +19 -19
- package/dist/chunks/{workspace-1dfhrqqs.js → workspace-0hpxrkyb.js} +3 -3
- package/dist/chunks/{workspace-qq43q54h.js → workspace-0j9apay6.js} +8 -8
- package/dist/chunks/{workspace-ar8qnkc3.js → workspace-0qxam8dj.js} +5 -5
- package/dist/chunks/{workspace-7as7932t.js → workspace-0tsbjazj.js} +17 -17
- package/dist/chunks/{workspace-9b8ps0g9.js → workspace-0v9511cz.js} +1 -1
- package/dist/chunks/{workspace-54qh477g.js → workspace-12fqpsjm.js} +5 -5
- package/dist/chunks/{workspace-hdcqa9dy.js → workspace-1465h0t2.js} +11 -11
- package/dist/chunks/{workspace-ngmftgzk.js → workspace-1567wc0x.js} +3 -3
- package/dist/chunks/{workspace-rhraev7y.js → workspace-1acjjqhc.js} +3 -3
- package/dist/chunks/{workspace-76q5vzcy.js → workspace-1as5dk3f.js} +33 -33
- package/dist/chunks/{workspace-73tb2d7t.js → workspace-1bbkgx8g.js} +2 -2
- package/dist/chunks/{workspace-vzw5ftch.js → workspace-1d4zzn34.js} +1 -1
- package/dist/chunks/{workspace-cy2x3s5a.js → workspace-1rt1vv51.js} +16 -16
- package/dist/chunks/{workspace-ag2v6e19.js → workspace-1tm9pjvd.js} +27 -27
- package/dist/chunks/{workspace-9sh4wc5j.js → workspace-1x11rq2a.js} +4 -4
- package/dist/chunks/{workspace-8e1b1gzh.js → workspace-258tza17.js} +5 -5
- package/dist/chunks/{workspace-7hhc48cv.js → workspace-27e5hy5h.js} +23 -23
- package/dist/chunks/{workspace-y7e11ang.js → workspace-2cyhzmz0.js} +9 -9
- package/dist/chunks/{workspace-zt9y4nc3.js → workspace-2edf0jda.js} +13 -13
- package/dist/chunks/{workspace-bbyyrkpa.js → workspace-2hen7mrw.js} +4 -4
- package/dist/chunks/{workspace-b8s0s4ee.js → workspace-2p2zqrax.js} +14 -14
- package/dist/chunks/{workspace-934ndfrr.js → workspace-2rfrm4z4.js} +6 -6
- package/dist/chunks/{workspace-1ygqh575.js → workspace-33w4ejhs.js} +4 -4
- package/dist/chunks/{workspace-3w0fmcng.js → workspace-37s12vcn.js} +3 -3
- package/dist/chunks/{workspace-vz7ss3k3.js → workspace-3ajnb1r9.js} +9 -9
- package/dist/chunks/{workspace-sd1b9zfd.js → workspace-3z3b48hc.js} +12 -12
- package/dist/chunks/{workspace-4gzagvey.js → workspace-4akkya8d.js} +164 -164
- package/dist/chunks/{workspace-kr986s70.js → workspace-4bbqj5xy.js} +9 -9
- package/dist/chunks/{workspace-5892jdtn.js → workspace-4c8bw516.js} +3 -3
- package/dist/chunks/{workspace-8ncewq7h.js → workspace-4q3av0ca.js} +30 -30
- package/dist/chunks/{workspace-hzn56yvs.js → workspace-50sffj9r.js} +9 -9
- package/dist/chunks/{workspace-xj890rb7.js → workspace-5jc7ttfy.js} +32 -32
- package/dist/chunks/{workspace-2y34zzjz.js → workspace-5phqnecy.js} +8 -8
- package/dist/chunks/{workspace-0b1gpwwb.js → workspace-5wmcj197.js} +19 -19
- package/dist/chunks/{workspace-7vp5pahf.js → workspace-5x5s5b61.js} +20 -20
- package/dist/chunks/{workspace-feth5zyx.js → workspace-5xnbg0mq.js} +6 -6
- package/dist/chunks/{workspace-f9ps9yx5.js → workspace-64bnszwh.js} +17 -17
- package/dist/chunks/{workspace-wn4xj15b.js → workspace-68379k58.js} +4 -4
- package/dist/chunks/{workspace-njh9zcvs.js → workspace-684x0ekb.js} +16 -16
- package/dist/chunks/{workspace-t0x5rdq8.js → workspace-6d9mz4vp.js} +7 -7
- package/dist/chunks/{workspace-4tmag8pw.js → workspace-6dea3a60.js} +15 -15
- package/dist/chunks/{workspace-k9q45n45.js → workspace-6f3r6k6b.js} +4 -4
- package/dist/chunks/{workspace-3yd4wcry.js → workspace-6nr3zpgp.js} +8 -8
- package/dist/chunks/{workspace-4gqpqfcq.js → workspace-6pskpce9.js} +21 -21
- package/dist/chunks/{workspace-byfykep1.js → workspace-6qhdzbt8.js} +13 -13
- package/dist/chunks/{workspace-mdncrv3b.js → workspace-7bkv6sw9.js} +20 -20
- package/dist/chunks/{workspace-w9ytv6gf.js → workspace-7c2a2ky2.js} +10 -10
- package/dist/chunks/{workspace-v1v9n7kj.js → workspace-7c97gcr8.js} +16 -16
- package/dist/chunks/{workspace-e369tct8.js → workspace-7d7shxsk.js} +22 -22
- package/dist/chunks/{workspace-g84khnv4.js → workspace-7gwg4kr4.js} +14 -14
- package/dist/chunks/{workspace-cekxsej1.js → workspace-7qvw1jpc.js} +26 -26
- package/dist/chunks/{workspace-2s56tc45.js → workspace-7s8v9cx8.js} +9 -9
- package/dist/chunks/{workspace-ytp44yw2.js → workspace-7t7bkwb4.js} +11 -11
- package/dist/chunks/{workspace-scdhnzv1.js → workspace-81hk8rr5.js} +6 -6
- package/dist/chunks/{workspace-94z0cytz.js → workspace-86vtd0nm.js} +16 -16
- package/dist/chunks/{workspace-r9kqtr81.js → workspace-86wx2jpn.js} +12 -12
- package/dist/chunks/{workspace-1kaepe8y.js → workspace-8ebnt9d0.js} +28 -28
- package/dist/chunks/{workspace-hb1af40t.js → workspace-8yq5wvgp.js} +35 -35
- package/dist/chunks/{workspace-t1bhcjx3.js → workspace-96yt6zt0.js} +1 -1
- package/dist/chunks/{workspace-d3mk2n0c.js → workspace-9cn3k246.js} +17 -17
- package/dist/chunks/{workspace-skchca7t.js → workspace-9gdjw15m.js} +19 -19
- package/dist/chunks/{workspace-ahkdt7e5.js → workspace-9gwdy3qe.js} +47 -47
- package/dist/chunks/{workspace-hadkhv8d.js → workspace-9sfejfyp.js} +30 -30
- package/dist/chunks/{workspace-ggqdnky6.js → workspace-a4xtd93v.js} +10 -10
- package/dist/chunks/{workspace-6qgms2qw.js → workspace-a5ctevk9.js} +17 -17
- package/dist/chunks/{workspace-0ebyrbpf.js → workspace-a5rsm3jn.js} +13 -13
- package/dist/chunks/{workspace-n0rxe8qg.js → workspace-a6awqz4k.js} +5 -5
- package/dist/chunks/{workspace-bt0wtns8.js → workspace-a9c6fzfx.js} +9 -9
- package/dist/chunks/{workspace-exzp4pnr.js → workspace-aatqeffd.js} +3 -3
- package/dist/chunks/{workspace-6ccptkaw.js → workspace-abq5c8yx.js} +4 -4
- package/dist/chunks/{workspace-f79e7acg.js → workspace-bcnz578n.js} +1 -1
- package/dist/chunks/{workspace-jc1vbcaj.js → workspace-bp2xefs4.js} +10 -10
- package/dist/chunks/{workspace-zjw1qxrj.js → workspace-bvycm81b.js} +21 -21
- package/dist/chunks/{workspace-b281zsyd.js → workspace-ckekgx3g.js} +1 -1
- package/dist/chunks/{workspace-hfdr1yjj.js → workspace-cq37gk0t.js} +1 -1
- package/dist/chunks/{workspace-2vz4t0z4.js → workspace-cqexvzst.js} +6 -6
- package/dist/chunks/{workspace-y418223f.js → workspace-czshjawf.js} +9 -9
- package/dist/chunks/{workspace-4m2pmvxz.js → workspace-d0k1g5nx.js} +5 -5
- package/dist/chunks/{workspace-rqz552e7.js → workspace-d2f1arkd.js} +17 -17
- package/dist/chunks/{workspace-xwq8n2sh.js → workspace-dc2s3mgf.js} +8 -8
- package/dist/chunks/{workspace-1wh2xykj.js → workspace-deb8jze3.js} +7 -7
- package/dist/chunks/{workspace-s74e6q5b.js → workspace-dphh6hs8.js} +17 -17
- package/dist/chunks/{workspace-abn48psr.js → workspace-dw2zxk3m.js} +16 -16
- package/dist/chunks/{workspace-ab9238g2.js → workspace-e6hd9jay.js} +5 -5
- package/dist/chunks/{workspace-cgybpxck.js → workspace-ebxmy4ff.js} +23 -23
- package/dist/chunks/{workspace-kfjdjtta.js → workspace-exa2hqft.js} +30 -30
- package/dist/chunks/{workspace-devz3we5.js → workspace-eym9gh87.js} +33 -33
- package/dist/chunks/{workspace-ntbm31a4.js → workspace-ez2cwskb.js} +8 -8
- package/dist/chunks/{workspace-n5zjdcc0.js → workspace-f8q7mv7a.js} +1 -1
- package/dist/chunks/{workspace-qedhf8hd.js → workspace-fd7by8kg.js} +12 -12
- package/dist/chunks/{workspace-fkab44b1.js → workspace-ff9kr7s1.js} +18 -18
- package/dist/chunks/{workspace-eebjtjym.js → workspace-ffxvb7x8.js} +4 -4
- package/dist/chunks/{workspace-hjsw513e.js → workspace-fg152w5z.js} +4 -4
- package/dist/chunks/{workspace-1fa9ans5.js → workspace-fgh0kbhd.js} +1 -1
- package/dist/chunks/{workspace-qtwarjwz.js → workspace-fhtb8t9m.js} +12 -12
- package/dist/chunks/{workspace-sdh12dq5.js → workspace-fpmcemdk.js} +32 -32
- package/dist/chunks/{workspace-skyymkrr.js → workspace-fqka1xvk.js} +2 -2
- package/dist/chunks/{workspace-fmmn8x74.js → workspace-fygdb7h7.js} +3 -3
- package/dist/chunks/{workspace-jw80jp6b.js → workspace-g190xswt.js} +3 -3
- package/dist/chunks/{workspace-kfch808q.js → workspace-g71q580a.js} +20 -20
- package/dist/chunks/{workspace-02nph5r6.js → workspace-g8pejf11.js} +37 -37
- package/dist/chunks/{workspace-c8bfydn7.js → workspace-g95j7xq8.js} +10 -10
- package/dist/chunks/{workspace-hkp1h9sy.js → workspace-g9t14tcv.js} +17 -17
- package/dist/chunks/{workspace-3fsqj4j0.js → workspace-ganp6fse.js} +2 -2
- package/dist/chunks/{workspace-gg212e6z.js → workspace-gatrstrm.js} +25 -25
- package/dist/chunks/workspace-gbadjzag.js +4 -0
- package/dist/chunks/{workspace-3ssv6kad.js → workspace-gbx0czrk.js} +21 -21
- package/dist/chunks/{workspace-vx0nbd5a.js → workspace-gfwy2ztq.js} +11 -11
- package/dist/chunks/{workspace-33w8fzr9.js → workspace-ggfsfb11.js} +23 -23
- package/dist/chunks/{workspace-jg036ky1.js → workspace-gmhy8ckh.js} +3 -3
- package/dist/chunks/{workspace-hz4vbhnm.js → workspace-gqag2b6m.js} +86 -86
- package/dist/chunks/{workspace-w1ad28wa.js → workspace-gqawmzqm.js} +7 -7
- package/dist/chunks/{workspace-nyqyjq7f.js → workspace-gqd8n12r.js} +58 -58
- package/dist/chunks/{workspace-59wgq1a5.js → workspace-h3eefm4q.js} +17 -17
- package/dist/chunks/{workspace-0gr7cw0d.js → workspace-h6z8d5tn.js} +3 -3
- package/dist/chunks/{workspace-sxgqf9nr.js → workspace-hgdbqd39.js} +23 -23
- package/dist/chunks/{workspace-wjjfysat.js → workspace-hk7s8mmx.js} +8 -8
- package/dist/chunks/{workspace-xcxg3sjd.js → workspace-hpxc2jmf.js} +7 -7
- package/dist/chunks/{workspace-9cmgy7cp.js → workspace-hqs1dran.js} +22 -22
- package/dist/chunks/{workspace-ytjkbs5q.js → workspace-hs4grwgg.js} +36 -36
- package/dist/chunks/{workspace-fwv3dbt3.js → workspace-hwddf2sa.js} +2 -2
- package/dist/chunks/{workspace-010ejnzv.js → workspace-hxjrgpwf.js} +20 -20
- package/dist/chunks/{workspace-et6333e0.js → workspace-j6bg8t1s.js} +15 -15
- package/dist/chunks/{workspace-yam58fy8.js → workspace-jgpaqraz.js} +14 -14
- package/dist/chunks/{workspace-0n1qmxwe.js → workspace-jjk9g4c9.js} +12 -12
- package/dist/chunks/{workspace-2bt6bea8.js → workspace-jjs74g98.js} +7 -7
- package/dist/chunks/{workspace-3t9wsyj4.js → workspace-jr28ye0q.js} +10 -10
- package/dist/chunks/{workspace-qssq5wvh.js → workspace-k16ay38w.js} +1 -1
- package/dist/chunks/{workspace-ggrs6r08.js → workspace-k5asd96r.js} +8 -8
- package/dist/chunks/{workspace-f73rjn58.js → workspace-k76fn4kw.js} +3 -3
- package/dist/chunks/{workspace-krapsz8s.js → workspace-kbb8b4mk.js} +7 -7
- package/dist/chunks/{workspace-pawwnp4a.js → workspace-kcwrj79s.js} +11 -11
- package/dist/chunks/{workspace-2r9a3wfp.js → workspace-kmhfjgd2.js} +4 -4
- package/dist/chunks/{workspace-hf8cnsjw.js → workspace-ksz0h0wp.js} +1 -1
- package/dist/chunks/{workspace-5ys1ttr6.js → workspace-kwp6s08a.js} +27 -27
- package/dist/chunks/{workspace-dsfjtjtn.js → workspace-kyhv7p5a.js} +15 -15
- package/dist/chunks/{workspace-ccq2df5x.js → workspace-kz97c3qe.js} +2 -2
- package/dist/chunks/{workspace-dt849bc4.js → workspace-m27pyyd3.js} +5 -5
- package/dist/chunks/{workspace-1qa7sx05.js → workspace-m4z3bx3m.js} +17 -17
- package/dist/chunks/{workspace-wh7dthar.js → workspace-m6866ypp.js} +51 -51
- package/dist/chunks/{workspace-d23qetaw.js → workspace-mbzcxd5j.js} +9 -9
- package/dist/chunks/{workspace-dxk9f402.js → workspace-mq2071pb.js} +12 -12
- package/dist/chunks/{workspace-5c0f1prt.js → workspace-msq0jde0.js} +3 -3
- package/dist/chunks/{workspace-f7ehr2sm.js → workspace-n37c4crj.js} +3 -3
- package/dist/chunks/workspace-n3pe30h6.js +247 -0
- package/dist/chunks/{workspace-43yx1h7c.js → workspace-n42231gp.js} +9 -9
- package/dist/chunks/{workspace-6jex2xta.js → workspace-n76fdqym.js} +5 -5
- package/dist/chunks/{workspace-709qmd4f.js → workspace-nckzcwnb.js} +34 -34
- package/dist/chunks/{workspace-kzzsz8rg.js → workspace-nh3pjw8e.js} +19 -19
- package/dist/chunks/{workspace-rcq5765c.js → workspace-p03qjtav.js} +13 -13
- package/dist/chunks/{workspace-b3t12aqp.js → workspace-p33ejz0k.js} +1 -1
- package/dist/chunks/{workspace-rq6x4r74.js → workspace-p8xg97qz.js} +14 -14
- package/dist/chunks/{workspace-fv9ed2xt.js → workspace-pbah22gf.js} +39 -39
- package/dist/chunks/{workspace-c3m0xs4s.js → workspace-ppkj2x0s.js} +14 -14
- package/dist/chunks/{workspace-b6bb7nct.js → workspace-ptyvps10.js} +17 -17
- package/dist/chunks/{workspace-7we4r9ew.js → workspace-px077m8m.js} +9 -9
- package/dist/chunks/{workspace-7b15y959.js → workspace-q26tgv94.js} +7 -7
- package/dist/chunks/workspace-q6ers3ks.js +22 -0
- package/dist/chunks/{workspace-jwye7syw.js → workspace-qba6esk9.js} +7 -7
- package/dist/chunks/{workspace-7dqw4kz8.js → workspace-qgn6gcr1.js} +4 -4
- package/dist/chunks/{workspace-hnr5yq9h.js → workspace-qjnxxf51.js} +3 -3
- package/dist/chunks/{workspace-gqap5j9g.js → workspace-qnwdymmb.js} +10 -10
- package/dist/chunks/{workspace-3b1wqxak.js → workspace-qybt8qf6.js} +24 -24
- package/dist/chunks/{workspace-b1t2am26.js → workspace-r43pzhmb.js} +29 -29
- package/dist/chunks/{workspace-494yeyrp.js → workspace-r8xbn976.js} +7 -7
- package/dist/chunks/{workspace-7s02b6me.js → workspace-r9babyk8.js} +1 -1
- package/dist/chunks/{workspace-a2ew8a62.js → workspace-ratrq7cm.js} +3 -3
- package/dist/chunks/{workspace-s8d7rejh.js → workspace-rhjbct0v.js} +3 -3
- package/dist/chunks/{workspace-v7bsnapp.js → workspace-rpkqhkgh.js} +35 -35
- package/dist/chunks/{workspace-022adzae.js → workspace-s2qmceks.js} +7 -7
- package/dist/chunks/{workspace-gt0apk7z.js → workspace-sheztqmg.js} +18 -18
- package/dist/chunks/{workspace-z52w236g.js → workspace-ssc9de04.js} +1 -1
- package/dist/chunks/{workspace-n4yapsk0.js → workspace-st1a0ccc.js} +29 -29
- package/dist/chunks/{workspace-f5wfqm5e.js → workspace-sxst59p4.js} +10 -10
- package/dist/chunks/{workspace-pv643edj.js → workspace-tfbymgd2.js} +4 -4
- package/dist/chunks/{workspace-gcvj5pa8.js → workspace-thgpzxma.js} +15 -15
- package/dist/chunks/{workspace-fsnw1hqv.js → workspace-tj06h6ge.js} +11 -11
- package/dist/chunks/{workspace-8a435q9z.js → workspace-tzbf48v6.js} +22 -22
- package/dist/chunks/{workspace-tjedsf1z.js → workspace-v4n861w0.js} +1 -1
- package/dist/chunks/{workspace-hd29wc17.js → workspace-v5w9803s.js} +7 -7
- package/dist/chunks/{workspace-pz5qb3qt.js → workspace-v7z8j5fb.js} +5 -5
- package/dist/chunks/{workspace-s8t4qsw4.js → workspace-v8g8r3p5.js} +4 -4
- package/dist/chunks/{workspace-j83byb14.js → workspace-vncycja5.js} +3 -3
- package/dist/chunks/{workspace-g5q0e61f.js → workspace-vw5rdzwq.js} +1 -1
- package/dist/chunks/{workspace-jp51bnyt.js → workspace-vwszadwz.js} +29 -29
- package/dist/chunks/{workspace-gp8tcjp2.js → workspace-w5qg2wfr.js} +11 -11
- package/dist/chunks/{workspace-any60g97.js → workspace-wc290t49.js} +10 -10
- package/dist/chunks/{workspace-9asg0y97.js → workspace-wceej830.js} +15 -15
- package/dist/chunks/{workspace-910asfwy.js → workspace-wf0sjdq3.js} +2 -2
- package/dist/chunks/{workspace-eamgkqma.js → workspace-wx969pk2.js} +9 -9
- package/dist/chunks/{workspace-cf42bz4p.js → workspace-x1szhx45.js} +16 -16
- package/dist/chunks/{workspace-zmmw47s9.js → workspace-x9snh48m.js} +6 -6
- package/dist/chunks/{workspace-8bg05p2k.js → workspace-xj5pk8z5.js} +19 -19
- package/dist/chunks/{workspace-6wjp1q1r.js → workspace-xkza7d0m.js} +36 -36
- package/dist/chunks/{workspace-685qrrxy.js → workspace-xqrcwaxh.js} +25 -25
- package/dist/chunks/{workspace-8bt8kjwe.js → workspace-xwemxn4q.js} +7 -7
- package/dist/chunks/{workspace-yeaw3623.js → workspace-xxdmnr1j.js} +22 -22
- package/dist/chunks/{workspace-pb37c83a.js → workspace-xygnmwgx.js} +10 -10
- package/dist/chunks/{workspace-58aqtfam.js → workspace-y9ynd60w.js} +20 -20
- package/dist/chunks/{workspace-srqbxy54.js → workspace-yhqzjv42.js} +19 -19
- package/dist/chunks/{workspace-8dp3tmf6.js → workspace-ymqqjkft.js} +26 -26
- package/dist/chunks/{workspace-jndyp0t0.js → workspace-yn0159c4.js} +75 -75
- package/dist/chunks/{workspace-7f2qwqcj.js → workspace-yrdykp8a.js} +23 -23
- package/dist/chunks/{workspace-a78mx8ke.js → workspace-ys34w47p.js} +9 -9
- package/dist/chunks/{workspace-pecb0brz.js → workspace-yt0fqk68.js} +3 -3
- package/dist/chunks/{workspace-wtknh6p7.js → workspace-z3b2s73f.js} +1 -1
- package/dist/chunks/{workspace-2ee8pmxs.js → workspace-z69s9t6b.js} +4 -4
- package/dist/chunks/{workspace-c2s6b9jx.js → workspace-z97qt971.js} +288 -288
- package/dist/chunks/{workspace-kwb80b5k.js → workspace-za4pw5w1.js} +6 -6
- package/dist/chunks/{workspace-2wb4awa6.js → workspace-zm6nb732.js} +20 -20
- package/dist/chunks/{workspace-krye8wkr.js → workspace-znttyky5.js} +10 -10
- package/dist/codemode/instructions.js +8 -8
- package/dist/command.js +65 -65
- package/dist/config/discovery.js +56 -56
- package/dist/config/normalize.js +16 -16
- package/dist/config/plugin/agent.js +85 -85
- package/dist/config/plugin/command.js +167 -167
- package/dist/config/plugin/compaction.js +117 -117
- package/dist/config/plugin/formatter.js +85 -85
- package/dist/config/plugin/image.js +85 -85
- package/dist/config/plugin/instruction.js +62 -62
- package/dist/config/plugin/location-watcher.js +87 -87
- package/dist/config/plugin/mcp.js +94 -94
- package/dist/config/plugin/policy.js +83 -83
- package/dist/config/plugin/provider.js +83 -83
- package/dist/config/plugin/reference.js +87 -87
- package/dist/config/plugin/shell.js +86 -86
- package/dist/config/plugin/skill-file.js +71 -71
- package/dist/config/plugin/skill.js +100 -100
- package/dist/config/plugin/snapshot.js +85 -85
- package/dist/config/plugin/source.js +87 -87
- package/dist/config/plugin/tool-output.js +86 -86
- package/dist/config/plugin/websearch.js +83 -83
- package/dist/config/plugin/worktree.js +86 -86
- package/dist/config.js +90 -90
- package/dist/credential.js +57 -57
- package/dist/database/database.js +51 -51
- package/dist/database/drizzle/effect-sqlite/driver.js +9 -9
- package/dist/database/drizzle/effect-sqlite/index.js +4 -4
- package/dist/database/drizzle/effect-sqlite/session.js +8 -8
- package/dist/database/drizzle/index.js +10 -10
- package/dist/database/drizzle/sqlite-core/effect/db.js +6 -6
- package/dist/database/drizzle/sqlite-core/effect/index.js +2 -2
- package/dist/database/drizzle/sqlite-core/effect/session.js +7 -7
- package/dist/database/drizzle.js +10 -10
- package/dist/database/migration.gen.js +35 -35
- package/dist/database/migration.js +36 -36
- package/dist/database/v1-migration.bun.js +9 -9
- package/dist/effect/app-node-builder.js +229 -229
- package/dist/environment/environment.js +64 -64
- package/dist/environment/index.js +66 -66
- package/dist/event-logger.js +9 -9
- package/dist/file-access.js +74 -74
- package/dist/file-mutation.js +65 -65
- package/dist/filesystem/location-watcher-policy.js +5 -5
- package/dist/filesystem/location-watcher.js +181 -181
- package/dist/filesystem/search.js +73 -73
- package/dist/filesystem/watcher.js +11 -11
- package/dist/filesystem.js +74 -74
- package/dist/form.js +57 -57
- package/dist/formatter/builtins.js +3 -3
- package/dist/formatter.js +63 -63
- package/dist/generate.js +71 -71
- package/dist/github-copilot/chat/openai-compatible-chat-language-model.js +5 -5
- package/dist/github-copilot/copilot-provider.js +3 -3
- package/dist/github-copilot/models.js +7 -7
- package/dist/github-copilot/responses/openai-responses-language-model.js +7 -7
- package/dist/github-copilot/responses/openai-responses-prepare-tools.js +4 -4
- package/dist/image/photon.js +1 -1
- package/dist/image.js +5 -5
- package/dist/instance/service.js +5 -5
- package/dist/instance.js +301 -301
- package/dist/instruction-discovery.js +66 -66
- package/dist/instructions/builtins.js +61 -61
- package/dist/instructions/index.js +3 -3
- package/dist/integration.js +60 -60
- package/dist/job.js +60 -60
- package/dist/kv.js +56 -56
- package/dist/location-activity.js +53 -53
- package/dist/location-mutation.js +29 -29
- package/dist/location-service-map.js +60 -60
- package/dist/location-services.js +299 -299
- package/dist/location.js +63 -63
- package/dist/mcp/client.js +16 -16
- package/dist/mcp/index.js +77 -77
- package/dist/mcp/instructions.js +90 -90
- package/dist/mcp/stdio.js +61 -61
- package/dist/modal/models.js +7 -7
- package/dist/model-resolver.js +68 -68
- package/dist/model.js +8 -8
- package/dist/models-dev.js +69 -69
- package/dist/permission/saved.js +60 -60
- package/dist/permission.js +79 -79
- package/dist/persistent-pty/index.js +66 -66
- package/dist/persistent-pty.js +54 -54
- package/dist/plugin/agent.js +72 -72
- package/dist/plugin/command.js +68 -68
- package/dist/plugin/hooks.js +5 -5
- package/dist/plugin/host.js +172 -172
- package/dist/plugin/instance.js +5 -5
- package/dist/plugin/internal.js +273 -273
- package/dist/plugin/mcp-codemode-exclusion.js +3 -3
- package/dist/plugin/models-dev.js +58 -58
- package/dist/plugin/module.js +4 -4
- package/dist/plugin/plan.js +72 -72
- package/dist/plugin/provider/amazon-bedrock.js +2 -2
- package/dist/plugin/provider/anthropic.js +2 -2
- package/dist/plugin/provider/azure.js +88 -88
- package/dist/plugin/provider/cerebras.js +2 -2
- package/dist/plugin/provider/cloudflare-ai-gateway.js +87 -87
- package/dist/plugin/provider/cloudflare-workers-ai.js +87 -87
- package/dist/plugin/provider/configured.js +85 -85
- package/dist/plugin/provider/digitalocean.js +60 -60
- package/dist/plugin/provider/github-copilot.js +62 -62
- package/dist/plugin/provider/gitlab.js +3 -3
- package/dist/plugin/provider/google-vertex.js +2 -2
- package/dist/plugin/provider/kilo.js +2 -2
- package/dist/plugin/provider/llmgateway.js +58 -58
- package/dist/plugin/provider/lmstudio.js +88 -88
- package/dist/plugin/provider/modal.js +61 -61
- package/dist/plugin/provider/nvidia.js +2 -2
- package/dist/plugin/provider/ollama.js +88 -88
- package/dist/plugin/provider/openai.js +59 -59
- package/dist/plugin/provider/opencode.js +60 -60
- package/dist/plugin/provider/openrouter.js +3 -3
- package/dist/plugin/provider/poe.js +57 -57
- package/dist/plugin/provider/sap-ai-core.js +2 -2
- package/dist/plugin/provider/snowflake-cortex.js +87 -87
- package/dist/plugin/provider/vercel.js +2 -2
- package/dist/plugin/provider/vllm.js +88 -88
- package/dist/plugin/provider/xai.js +59 -59
- package/dist/plugin/provider/zenmux.js +2 -2
- package/dist/plugin/provider.js +123 -123
- package/dist/plugin/sdk.js +59 -59
- package/dist/plugin/service.js +3 -3
- package/dist/plugin/skill.js +100 -100
- package/dist/plugin/supervisor.js +291 -291
- package/dist/plugin/update.js +3 -3
- package/dist/plugin/variant.js +4 -4
- package/dist/plugin/vcs/git.js +60 -60
- package/dist/plugin/vcs/hg.js +60 -60
- package/dist/plugin/warming.js +83 -83
- package/dist/plugin/websearch/exa.js +6 -6
- package/dist/plugin/websearch/firecrawl.js +7 -7
- package/dist/plugin/websearch/index.js +7 -7
- package/dist/plugin/websearch/mcp.js +3 -3
- package/dist/plugin/websearch/parallel.js +7 -7
- package/dist/plugin/websearch/tavily.js +6 -6
- package/dist/plugin.js +179 -179
- package/dist/project/schema.js +5 -5
- package/dist/project.js +62 -62
- package/dist/provider.js +5 -5
- package/dist/pty/schema.js +3 -3
- package/dist/pty.js +72 -72
- package/dist/reference/instructions.js +65 -65
- package/dist/reference.js +67 -67
- package/dist/repository-cache.js +58 -58
- package/dist/ripgrep.js +68 -68
- package/dist/rpc.js +60 -60
- package/dist/session/command.js +56 -56
- package/dist/session/compaction.js +98 -98
- package/dist/session/context.js +113 -113
- package/dist/session/environment.js +3 -3
- package/dist/session/error.js +4 -4
- package/dist/session/execution/restart.js +114 -114
- package/dist/session/execution.js +94 -94
- package/dist/session/generate.js +114 -114
- package/dist/session/history.js +6 -6
- package/dist/session/inbox.js +66 -66
- package/dist/session/info.js +2 -2
- package/dist/session/instruction-entry.js +59 -59
- package/dist/session/instruction-state.js +2 -2
- package/dist/session/instructions.js +68 -68
- package/dist/session/message-updater.js +3 -3
- package/dist/session/model-request.js +85 -85
- package/dist/session/model-transport.js +7 -7
- package/dist/session/move.js +97 -97
- package/dist/session/projector.js +61 -61
- package/dist/session/prompt.js +74 -74
- package/dist/session/provider-context.js +3 -3
- package/dist/session/revert.js +61 -61
- package/dist/session/run-coordinator.js +3 -3
- package/dist/session/runner/index.js +3 -3
- package/dist/session/runner/llm.js +181 -181
- package/dist/session/runner/model.js +68 -68
- package/dist/session/runner/retry.js +83 -83
- package/dist/session/runner/step.js +89 -89
- package/dist/session/runner/to-llm-message.js +2 -2
- package/dist/session/schema.js +3 -3
- package/dist/session/session.js +133 -133
- package/dist/session/shell.js +100 -100
- package/dist/session/skill.js +73 -73
- package/dist/session/stats.js +8 -8
- package/dist/session/store.js +63 -63
- package/dist/session/subagent-job.js +165 -165
- package/dist/session/title.js +116 -116
- package/dist/session/to-session-error.js +80 -80
- package/dist/session/transfer.js +109 -109
- package/dist/session.js +172 -172
- package/dist/shell/parse.js +3 -3
- package/dist/shell/select.js +9 -9
- package/dist/shell.js +99 -99
- package/dist/skill/discovery.js +5 -5
- package/dist/skill/instructions.js +77 -77
- package/dist/skill.js +80 -80
- package/dist/snapshot.js +65 -65
- package/dist/tool/mcp.js +87 -87
- package/dist/tool/plugin/edit.js +86 -86
- package/dist/tool/plugin/glob.js +84 -84
- package/dist/tool/plugin/grep.js +88 -88
- package/dist/tool/plugin/opencode.js +3 -3
- package/dist/tool/plugin/patch.js +88 -88
- package/dist/tool/plugin/question.js +73 -73
- package/dist/tool/plugin/read.js +88 -88
- package/dist/tool/plugin/shell.js +171 -171
- package/dist/tool/plugin/skill.js +83 -83
- package/dist/tool/plugin/subagent.js +170 -170
- package/dist/tool/plugin/webfetch.js +78 -78
- package/dist/tool/plugin/websearch.js +80 -80
- package/dist/tool/plugin/write.js +88 -88
- package/dist/tool/read-filesystem.js +69 -69
- package/dist/tool-output.js +6 -6
- package/dist/tool.js +9 -9
- package/dist/v1/config/agent.js +4 -4
- package/dist/v1/config/attachment.js +3 -3
- package/dist/v1/config/command.js +3 -3
- package/dist/v1/config/config.js +14 -14
- package/dist/v1/config/formatter.js +7 -7
- package/dist/v1/config/lsp.js +5 -5
- package/dist/v1/config/mcp.js +3 -3
- package/dist/v1/config/migrate.js +3 -3
- package/dist/v1/config/permission.js +3 -3
- package/dist/v1/config/plugin.js +3 -3
- package/dist/v1/config/provider.js +3 -3
- package/dist/v1/config/skills.js +3 -3
- package/dist/vcs.js +63 -63
- package/dist/websearch.js +65 -65
- package/dist/wellknown/plugin.js +57 -57
- package/dist/wellknown.js +60 -60
- package/dist/workspace/driver.js +5 -5
- package/dist/workspace.js +63 -63
- package/dist/worktree/refresh.js +290 -290
- package/dist/worktree.js +67 -67
- package/package.json +8 -8
- package/dist/chunks/workspace-7er8a3we.js +0 -247
- package/dist/chunks/workspace-a93wq46y.js +0 -22
- package/dist/chunks/workspace-qapv375x.js +0 -4
- /package/dist/chunks/{workspace-4pwxaf10.js → workspace-bqvjxhzq.js} +0 -0
- /package/dist/chunks/{workspace-xhnnpr23.js → workspace-cvcrrxw9.js} +0 -0
- /package/dist/chunks/{workspace-ma15yhyh.js → workspace-vrpz8t5t.js} +0 -0
- /package/dist/chunks/{workspace-4ne4chy4.js → workspace-yrxxjksg.js} +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
2
|
+
ID18,
|
|
3
3
|
isAISDK2,
|
|
4
4
|
packageName2,
|
|
5
5
|
mergeOverlay2
|
|
6
|
-
} from "./workspace-
|
|
6
|
+
} from "./workspace-m27pyyd3.js";
|
|
7
7
|
import {
|
|
8
8
|
__export
|
|
9
9
|
} from "./workspace-9rqn6x4v.js";
|
|
@@ -13,9 +13,9 @@ var exports_aisdk = {};
|
|
|
13
13
|
__export(exports_aisdk, {
|
|
14
14
|
AISDK: () => exports_aisdk,
|
|
15
15
|
InitError: () => InitError2,
|
|
16
|
-
Service: () =>
|
|
16
|
+
Service: () => Service59,
|
|
17
17
|
locationLayer: () => locationLayer2,
|
|
18
|
-
node: () =>
|
|
18
|
+
node: () => node62
|
|
19
19
|
});
|
|
20
20
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
21
21
|
import { APICallError } from "@ai-sdk/provider";
|
|
@@ -128,7 +128,7 @@ function prepareOptions(model, pkg) {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
class InitError2 extends Schema.TaggedError()("AISDK.InitError", {
|
|
131
|
-
providerID:
|
|
131
|
+
providerID: ID18,
|
|
132
132
|
cause: Schema.Defect()
|
|
133
133
|
}) {
|
|
134
134
|
}
|
|
@@ -136,9 +136,9 @@ function initError(providerID) {
|
|
|
136
136
|
return Effect.catchCause((cause) => Effect.fail(new InitError2({ providerID, cause: Cause.squash(cause) })));
|
|
137
137
|
}
|
|
138
138
|
|
|
139
|
-
class
|
|
139
|
+
class Service59 extends Context.Service()("@opencode/AISDK") {
|
|
140
140
|
}
|
|
141
|
-
var locationLayer2 = Layer.effect(
|
|
141
|
+
var locationLayer2 = Layer.effect(Service59, Effect.gen(function* () {
|
|
142
142
|
let sdkHooks = [];
|
|
143
143
|
let languageHooks = [];
|
|
144
144
|
const languages = new Map;
|
|
@@ -176,7 +176,7 @@ var locationLayer2 = Layer.effect(Service75, Effect.gen(function* () {
|
|
|
176
176
|
}
|
|
177
177
|
return event;
|
|
178
178
|
});
|
|
179
|
-
const service =
|
|
179
|
+
const service = Service59.of({
|
|
180
180
|
hook: {
|
|
181
181
|
sdk: register(() => sdkHooks, (next) => sdkHooks = next),
|
|
182
182
|
language: register(() => languageHooks, (next) => languageHooks = next)
|
|
@@ -809,6 +809,6 @@ function providerErrorMessage(error) {
|
|
|
809
809
|
const prefix = error.statusCode === undefined ? "Provider request failed" : `Provider request failed with HTTP ${error.statusCode}`;
|
|
810
810
|
return error.message.trim() !== "" ? error.message : message ?? (code === undefined ? prefix : `${prefix}: ${code}`);
|
|
811
811
|
}
|
|
812
|
-
var
|
|
812
|
+
var node62 = makeLocationNode({ service: Service59, layer: locationLayer2, deps: [] });
|
|
813
813
|
|
|
814
|
-
export { InitError2,
|
|
814
|
+
export { InitError2, Service59, locationLayer2, node62, exports_aisdk };
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./workspace-
|
|
4
|
+
} from "./workspace-v4n861w0.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./workspace-
|
|
6
|
+
Service67,
|
|
7
|
+
node71
|
|
8
|
+
} from "./workspace-684x0ekb.js";
|
|
9
9
|
import {
|
|
10
10
|
reconcile2,
|
|
11
11
|
create3
|
|
@@ -26,17 +26,17 @@ __export(exports_vcs, {
|
|
|
26
26
|
BranchList: () => BranchList2,
|
|
27
27
|
DiffError: () => DiffError2,
|
|
28
28
|
FileStatus: () => FileStatus2,
|
|
29
|
-
Info: () =>
|
|
29
|
+
Info: () => Info24,
|
|
30
30
|
Mode: () => Mode2,
|
|
31
|
-
Service: () =>
|
|
31
|
+
Service: () => Service66,
|
|
32
32
|
Vcs: () => exports_vcs,
|
|
33
|
-
node: () =>
|
|
33
|
+
node: () => node70
|
|
34
34
|
});
|
|
35
35
|
import path from "path";
|
|
36
36
|
import { Cause, Context, Effect, FiberSet, Layer, Schema, Semaphore, Stream } from "effect";
|
|
37
37
|
import { FileDiff } from "@opencode/schema/file-diff";
|
|
38
38
|
import { FileSystem } from "@opencode/schema/filesystem";
|
|
39
|
-
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as
|
|
39
|
+
import { Base as Base2, BranchList as BranchList2, FileStatus as FileStatus2, Info as Info24, Mode as Mode2 } from "@opencode/schema/vcs";
|
|
40
40
|
import { VcsEvent } from "@opencode/schema/vcs-event";
|
|
41
41
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
42
42
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
@@ -45,11 +45,11 @@ class DiffError2 extends Schema.TaggedError()("Vcs.DiffError", {
|
|
|
45
45
|
}) {
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
class
|
|
48
|
+
class Service66 extends Context.Service()("@opencode/Vcs") {
|
|
49
49
|
}
|
|
50
|
-
var layer = Layer.effect(
|
|
50
|
+
var layer = Layer.effect(Service66, Effect.gen(function* () {
|
|
51
51
|
const fs = yield* FSUtil.Service;
|
|
52
|
-
const location = yield*
|
|
52
|
+
const location = yield* Service67;
|
|
53
53
|
const bus = yield* Service79;
|
|
54
54
|
const root = yield* Effect.scope;
|
|
55
55
|
const fork = yield* FiberSet.makeRuntime();
|
|
@@ -62,7 +62,7 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
62
62
|
canonical: location.project.canonical,
|
|
63
63
|
...vcs ? { store: vcs.store } : {}
|
|
64
64
|
};
|
|
65
|
-
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(
|
|
65
|
+
const decodeInfo = Schema.decodeUnknownEffect(Schema.toType(Info24));
|
|
66
66
|
const decodeBase = Schema.decodeUnknownEffect(Schema.NullOr(Base2));
|
|
67
67
|
const decodeBranches = Schema.decodeUnknownEffect(BranchList2);
|
|
68
68
|
const decodeStatus = Schema.decodeUnknownEffect(Schema.Array(FileStatus2));
|
|
@@ -115,7 +115,7 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
115
115
|
const isBranchMetadata = vcs.type === "git" ? (file) => path.basename(file) === "HEAD" && FSUtil.contains(store, file) : (file) => path.resolve(file) === path.join(store, "branch");
|
|
116
116
|
yield* bus.subscribe(FileSystem.Event.Changed).pipe(Stream.filter((event) => isBranchMetadata(event.data.file)), Stream.runForEach((event) => refresh().pipe(Effect.catchCauseIf((cause) => !Cause.hasInterrupts(cause), (cause) => Effect.logWarning("vcs refresh failed", { file: event.data.file, cause })), Effect.withSpan("Vcs.refreshBranch", { attributes: { file: event.data.file } }))), Effect.forkScoped({ startImmediately: true }));
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return Service66.of({
|
|
119
119
|
transform: state.transform,
|
|
120
120
|
reload: state.reload,
|
|
121
121
|
info: Effect.fn("Vcs.info")(function* () {
|
|
@@ -161,10 +161,10 @@ var layer = Layer.effect(Service18, Effect.gen(function* () {
|
|
|
161
161
|
})
|
|
162
162
|
});
|
|
163
163
|
}));
|
|
164
|
-
var
|
|
165
|
-
service:
|
|
164
|
+
var node70 = makeLocationNode({
|
|
165
|
+
service: Service66,
|
|
166
166
|
layer,
|
|
167
|
-
deps: [FSUtil.node,
|
|
167
|
+
deps: [FSUtil.node, node71, node84]
|
|
168
168
|
});
|
|
169
169
|
|
|
170
|
-
export { Base2, BranchList2, FileStatus2,
|
|
170
|
+
export { Base2, BranchList2, FileStatus2, Info24, Mode2, DiffError2, Service66, node70, exports_vcs };
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
managesTransactionsNatively2,
|
|
3
3
|
EffectSQLiteSession2,
|
|
4
4
|
EffectSQLiteTransaction2
|
|
5
|
-
} from "./workspace-
|
|
5
|
+
} from "./workspace-1d4zzn34.js";
|
|
6
6
|
import {
|
|
7
7
|
EffectSQLiteDatabase2,
|
|
8
8
|
DefaultServices2,
|
|
9
9
|
make22,
|
|
10
10
|
makeWithDefaults2
|
|
11
|
-
} from "./workspace-
|
|
11
|
+
} from "./workspace-kz97c3qe.js";
|
|
12
12
|
import {
|
|
13
13
|
__export
|
|
14
14
|
} from "./workspace-9rqn6x4v.js";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "./workspace-
|
|
2
|
+
Service45,
|
|
3
|
+
node49
|
|
4
|
+
} from "./workspace-d2f1arkd.js";
|
|
5
5
|
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from "./workspace-
|
|
6
|
+
Service67,
|
|
7
|
+
node71
|
|
8
|
+
} from "./workspace-684x0ekb.js";
|
|
9
9
|
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
} from "./workspace-
|
|
10
|
+
Service44,
|
|
11
|
+
node48
|
|
12
|
+
} from "./workspace-nckzcwnb.js";
|
|
13
13
|
import {
|
|
14
14
|
names2,
|
|
15
15
|
discover2
|
|
@@ -22,10 +22,10 @@ import {
|
|
|
22
22
|
var exports_source = {};
|
|
23
23
|
__export(exports_source, {
|
|
24
24
|
ConfigPluginSource: () => exports_source,
|
|
25
|
-
Service: () =>
|
|
25
|
+
Service: () => Service7,
|
|
26
26
|
empty: () => empty2,
|
|
27
|
-
layer: () =>
|
|
28
|
-
node: () =>
|
|
27
|
+
layer: () => layer5,
|
|
28
|
+
node: () => node9
|
|
29
29
|
});
|
|
30
30
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
31
31
|
import { Host } from "@opencode/plugin/host";
|
|
@@ -33,13 +33,13 @@ import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
|
33
33
|
import { Context, Effect, Layer, Option, PubSub, Stream } from "effect";
|
|
34
34
|
import path from "path";
|
|
35
35
|
import { fileURLToPath, pathToFileURL } from "url";
|
|
36
|
-
class
|
|
36
|
+
class Service7 extends Context.Service()("@opencode/ConfigPluginSource") {
|
|
37
37
|
}
|
|
38
|
-
var
|
|
39
|
-
const config = yield*
|
|
40
|
-
const watcher = yield*
|
|
38
|
+
var layer5 = Layer.effect(Service7, Effect.gen(function* () {
|
|
39
|
+
const config = yield* Service44;
|
|
40
|
+
const watcher = yield* Service45;
|
|
41
41
|
const fs = yield* FSUtil.Service;
|
|
42
|
-
const location = yield*
|
|
42
|
+
const location = yield* Service67;
|
|
43
43
|
const configuredChanges = yield* PubSub.unbounded();
|
|
44
44
|
const watched = new Set;
|
|
45
45
|
const watchConfiguredSources = Effect.fn("ConfigPluginSource.watchConfiguredSources")(function* (entries, operations) {
|
|
@@ -58,7 +58,7 @@ var layer7 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
58
58
|
yield* updates.pipe(Stream.runForEach(() => PubSub.publish(configuredChanges, undefined)), Effect.catchCause((cause) => Effect.logError("configured plugin watch failed", { target: operation.target, cause })), Effect.forkScoped({ startImmediately: true }));
|
|
59
59
|
}
|
|
60
60
|
});
|
|
61
|
-
return
|
|
61
|
+
return Service7.of({
|
|
62
62
|
operations: Effect.fn("ConfigPluginSource.operations")(function* () {
|
|
63
63
|
const entries = yield* config.entries();
|
|
64
64
|
const operations = yield* scan(fs, location, entries);
|
|
@@ -70,14 +70,14 @@ var layer7 = Layer.effect(Service10, Effect.gen(function* () {
|
|
|
70
70
|
})), Stream.fromPubSub(configuredChanges))
|
|
71
71
|
});
|
|
72
72
|
}));
|
|
73
|
-
var
|
|
74
|
-
service:
|
|
75
|
-
layer:
|
|
76
|
-
deps: [
|
|
73
|
+
var node9 = makeLocationNode({
|
|
74
|
+
service: Service7,
|
|
75
|
+
layer: layer5,
|
|
76
|
+
deps: [node48, FSUtil.node, node49, node71]
|
|
77
77
|
});
|
|
78
78
|
var empty2 = makeLocationNode({
|
|
79
|
-
service:
|
|
80
|
-
layer: Layer.succeed(
|
|
79
|
+
service: Service7,
|
|
80
|
+
layer: Layer.succeed(Service7, Service7.of({
|
|
81
81
|
operations: () => Effect.succeed([]),
|
|
82
82
|
changes: () => Stream.never
|
|
83
83
|
})),
|
|
@@ -137,4 +137,4 @@ function isPluginSource(entries, file) {
|
|
|
137
137
|
return entries.some((entry) => entry.type === "directory" && names2.some((directory) => FSUtil.contains(path.join(entry.path, directory), file)));
|
|
138
138
|
}
|
|
139
139
|
|
|
140
|
-
export {
|
|
140
|
+
export { Service7, layer5, node9, empty2, exports_source };
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
AbsolutePath2
|
|
3
3
|
} from "./workspace-922hggd3.js";
|
|
4
4
|
import {
|
|
5
|
-
|
|
6
|
-
} from "./workspace-
|
|
5
|
+
Service67
|
|
6
|
+
} from "./workspace-684x0ekb.js";
|
|
7
7
|
import {
|
|
8
|
-
|
|
9
|
-
} from "./workspace-
|
|
8
|
+
Service35
|
|
9
|
+
} from "./workspace-x1szhx45.js";
|
|
10
10
|
import {
|
|
11
|
-
|
|
12
|
-
} from "./workspace-
|
|
11
|
+
Service11
|
|
12
|
+
} from "./workspace-9cn3k246.js";
|
|
13
13
|
import {
|
|
14
14
|
NotFound2
|
|
15
15
|
} from "./workspace-2a5m3afh.js";
|
|
@@ -23,8 +23,8 @@ import {
|
|
|
23
23
|
FileContent2,
|
|
24
24
|
TextPage2,
|
|
25
25
|
ListPage2,
|
|
26
|
-
|
|
27
|
-
} from "./workspace-
|
|
26
|
+
Service5
|
|
27
|
+
} from "./workspace-2p2zqrax.js";
|
|
28
28
|
import {
|
|
29
29
|
__export
|
|
30
30
|
} from "./workspace-9rqn6x4v.js";
|
|
@@ -32,17 +32,17 @@ import {
|
|
|
32
32
|
// src/tool/plugin/read.ts
|
|
33
33
|
var exports_read = {};
|
|
34
34
|
__export(exports_read, {
|
|
35
|
-
Input: () =>
|
|
36
|
-
Plugin: () =>
|
|
35
|
+
Input: () => Input10,
|
|
36
|
+
Plugin: () => Plugin11,
|
|
37
37
|
ReadTool: () => exports_read,
|
|
38
|
-
name: () =>
|
|
38
|
+
name: () => name10,
|
|
39
39
|
toModelContent: () => toModelContent6
|
|
40
40
|
});
|
|
41
41
|
import { basename, dirname, join } from "path";
|
|
42
42
|
import { ToolFailure } from "@opencode/ai";
|
|
43
43
|
import { Effect, Schema } from "effect";
|
|
44
44
|
import { FSUtil } from "@opencode/util/fs-util";
|
|
45
|
-
var
|
|
45
|
+
var name10 = "read";
|
|
46
46
|
var FILENAME = "AGENTS.md";
|
|
47
47
|
var LocationInput = Schema.Struct({
|
|
48
48
|
path: Schema.String.annotate({ description: "File or directory to read" }),
|
|
@@ -53,21 +53,21 @@ var LocationInput = Schema.Struct({
|
|
|
53
53
|
description: "The maximum number of lines or directory entries to read (defaults to 2000)"
|
|
54
54
|
})
|
|
55
55
|
});
|
|
56
|
-
var
|
|
56
|
+
var Input10 = LocationInput;
|
|
57
57
|
var Output = Schema.Union([FileContent2, TextPage2, ListPage2]);
|
|
58
|
-
var
|
|
58
|
+
var Plugin11 = {
|
|
59
59
|
id: "opencode.tool.read",
|
|
60
60
|
effect: Effect.fn("ReadTool.Plugin")(function* (ctx) {
|
|
61
|
-
const reader = yield*
|
|
62
|
-
const access = yield*
|
|
63
|
-
const sessionInstructions = yield*
|
|
61
|
+
const reader = yield* Service5;
|
|
62
|
+
const access = yield* Service35;
|
|
63
|
+
const sessionInstructions = yield* Service11;
|
|
64
64
|
const fs = yield* FSUtil.Service;
|
|
65
|
-
const location = yield*
|
|
65
|
+
const location = yield* Service67;
|
|
66
66
|
yield* ctx.tool.transform((editor) => editor.add({
|
|
67
|
-
name:
|
|
67
|
+
name: name10,
|
|
68
68
|
options: { codemode: false },
|
|
69
69
|
description: "Read the contents of a file or directory. Supports text files, images, and PDFs. Images and PDFs are presented directly to the model. Each text line is prefixed by its 1-based line number as <line>: <content>. The prefix is for reference and is not part of the file content. Directory entries are returned one per line. Use offset and limit to read large files or directories in sections. Prefer one larger read over many small slices, and use grep to find specific content in large files.",
|
|
70
|
-
input:
|
|
70
|
+
input: Input10,
|
|
71
71
|
output: Output,
|
|
72
72
|
execute: (input, context) => {
|
|
73
73
|
return Effect.gen(function* () {
|
|
@@ -179,4 +179,4 @@ var toModelContent6 = (path, offset, output) => {
|
|
|
179
179
|
`);
|
|
180
180
|
};
|
|
181
181
|
|
|
182
|
-
export {
|
|
182
|
+
export { name10, Input10, Plugin11, toModelContent6, exports_read };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Service79,
|
|
3
3
|
node84
|
|
4
|
-
} from "./workspace-
|
|
4
|
+
} from "./workspace-v4n861w0.js";
|
|
5
5
|
import {
|
|
6
6
|
__export
|
|
7
7
|
} from "./workspace-9rqn6x4v.js";
|
|
@@ -16,8 +16,8 @@ __export(exports_form, {
|
|
|
16
16
|
Field: () => Field2,
|
|
17
17
|
Fields: () => Fields2,
|
|
18
18
|
Form: () => exports_form,
|
|
19
|
-
ID: () =>
|
|
20
|
-
Info: () =>
|
|
19
|
+
ID: () => ID16,
|
|
20
|
+
Info: () => Info31,
|
|
21
21
|
InvalidAnswerError: () => InvalidAnswerError2,
|
|
22
22
|
InvalidFormError: () => InvalidFormError2,
|
|
23
23
|
NotFoundError: () => NotFoundError10,
|
|
@@ -35,8 +35,8 @@ import { Cache, Context, Deferred, Duration, Effect, Exit, Layer, Option, Schema
|
|
|
35
35
|
import { makeLocationNode } from "@opencode/util/effect/app-node";
|
|
36
36
|
import { Event as Event19 } from "@opencode/schema/form";
|
|
37
37
|
var RETENTION = Duration.minutes(10);
|
|
38
|
-
var
|
|
39
|
-
var
|
|
38
|
+
var ID16 = Form.ID;
|
|
39
|
+
var Info31 = Form.Info;
|
|
40
40
|
var Field2 = Form.Field;
|
|
41
41
|
var Fields2 = Form.Fields;
|
|
42
42
|
var When2 = Form.When;
|
|
@@ -45,7 +45,7 @@ var Answer2 = Form.Answer;
|
|
|
45
45
|
var Reply3 = Form.Reply;
|
|
46
46
|
|
|
47
47
|
class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
48
|
-
id:
|
|
48
|
+
id: ID16
|
|
49
49
|
}) {
|
|
50
50
|
get message() {
|
|
51
51
|
return `Form not found: ${this.id}`;
|
|
@@ -53,7 +53,7 @@ class NotFoundError10 extends Schema.TaggedError()("Form.NotFoundError", {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledError", {
|
|
56
|
-
id:
|
|
56
|
+
id: ID16
|
|
57
57
|
}) {
|
|
58
58
|
get message() {
|
|
59
59
|
return `Form already settled: ${this.id}`;
|
|
@@ -61,7 +61,7 @@ class AlreadySettledError2 extends Schema.TaggedError()("Form.AlreadySettledErro
|
|
|
61
61
|
}
|
|
62
62
|
|
|
63
63
|
class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError", {
|
|
64
|
-
id:
|
|
64
|
+
id: ID16
|
|
65
65
|
}) {
|
|
66
66
|
get message() {
|
|
67
67
|
return `Form already exists: ${this.id}`;
|
|
@@ -69,7 +69,7 @@ class AlreadyExistsError2 extends Schema.TaggedError()("Form.AlreadyExistsError"
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class InvalidAnswerError2 extends Schema.TaggedError()("Form.InvalidAnswerError", {
|
|
72
|
-
id:
|
|
72
|
+
id: ID16,
|
|
73
73
|
message: Schema.String
|
|
74
74
|
}) {
|
|
75
75
|
}
|
|
@@ -89,7 +89,7 @@ var layer25 = Layer.effect(Service77, Effect.gen(function* () {
|
|
|
89
89
|
});
|
|
90
90
|
const requireEntry = Effect.fn("Form.requireEntry")((id) => Cache.getSuccess(forms, id).pipe(Effect.flatMap((entry) => Effect.fromOption(entry, () => new NotFoundError10({ id })))));
|
|
91
91
|
const create = Effect.fn("Form.create")((input) => Effect.uninterruptible(Effect.gen(function* () {
|
|
92
|
-
const id = input.id ??
|
|
92
|
+
const id = input.id ?? ID16.create();
|
|
93
93
|
const existing = yield* Cache.getSuccess(forms, id);
|
|
94
94
|
if (Option.isSome(existing))
|
|
95
95
|
return yield* new AlreadyExistsError2({ id });
|
|
@@ -307,4 +307,4 @@ function isDateTime(value) {
|
|
|
307
307
|
return !Number.isNaN(new Date(value).getTime());
|
|
308
308
|
}
|
|
309
309
|
|
|
310
|
-
export {
|
|
310
|
+
export { ID16, Info31, Field2, Fields2, When2, State3, Answer2, Reply3, NotFoundError10, AlreadySettledError2, AlreadyExistsError2, InvalidAnswerError2, InvalidFormError2, Service77, layer25, node82, validateAnswer2, validateFields2, exports_form, Event19 };
|
|
@@ -7,18 +7,18 @@ import {
|
|
|
7
7
|
} from "./workspace-tfgscs23.js";
|
|
8
8
|
import {
|
|
9
9
|
ID13
|
|
10
|
-
} from "./workspace-
|
|
10
|
+
} from "./workspace-0qxam8dj.js";
|
|
11
11
|
import {
|
|
12
12
|
Slug2
|
|
13
13
|
} from "./workspace-gebd4c9n.js";
|
|
14
14
|
import {
|
|
15
15
|
Service80,
|
|
16
16
|
node85
|
|
17
|
-
} from "./workspace-
|
|
17
|
+
} from "./workspace-hwddf2sa.js";
|
|
18
18
|
import {
|
|
19
19
|
Service79,
|
|
20
20
|
node84
|
|
21
|
-
} from "./workspace-
|
|
21
|
+
} from "./workspace-v4n861w0.js";
|
|
22
22
|
import {
|
|
23
23
|
ProjectTable2
|
|
24
24
|
} from "./workspace-8p4f9s12.js";
|
|
@@ -26,9 +26,9 @@ import {
|
|
|
26
26
|
WorktreeTable2
|
|
27
27
|
} from "./workspace-cfpkc3c9.js";
|
|
28
28
|
import {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
} from "./workspace-
|
|
29
|
+
Service67,
|
|
30
|
+
node71
|
|
31
|
+
} from "./workspace-684x0ekb.js";
|
|
32
32
|
import {
|
|
33
33
|
DirectoryUnavailableError2,
|
|
34
34
|
canonical2
|
|
@@ -46,24 +46,24 @@ import {
|
|
|
46
46
|
// src/worktree.ts
|
|
47
47
|
var exports_worktree2 = {};
|
|
48
48
|
__export(exports_worktree2, {
|
|
49
|
-
CreateInput: () =>
|
|
49
|
+
CreateInput: () => CreateInput2,
|
|
50
50
|
DestinationExistsError: () => DestinationExistsError2,
|
|
51
51
|
DirectoryUnavailableError: () => DirectoryUnavailableError2,
|
|
52
|
-
Event: () =>
|
|
53
|
-
Info: () =>
|
|
52
|
+
Event: () => Event4,
|
|
53
|
+
Info: () => Info3,
|
|
54
54
|
InvalidDirectoryError: () => InvalidDirectoryError2,
|
|
55
55
|
List: () => List2,
|
|
56
56
|
ListEntry: () => ListEntry3,
|
|
57
57
|
OperationError: () => OperationError2,
|
|
58
58
|
RefreshResult: () => RefreshResult2,
|
|
59
59
|
RemoveInput: () => RemoveInput2,
|
|
60
|
-
Service: () =>
|
|
60
|
+
Service: () => Service16,
|
|
61
61
|
SourceDirectoryNotFoundError: () => SourceDirectoryNotFoundError2,
|
|
62
62
|
StrategyID: () => StrategyID2,
|
|
63
63
|
StrategyUnavailableError: () => StrategyUnavailableError2,
|
|
64
64
|
UnsupportedLocationError: () => UnsupportedLocationError2,
|
|
65
65
|
Worktree: () => exports_worktree2,
|
|
66
|
-
node: () =>
|
|
66
|
+
node: () => node20
|
|
67
67
|
});
|
|
68
68
|
import { Context, Effect, Layer, Schema } from "effect";
|
|
69
69
|
import { and, asc, desc, eq, isNull, sql } from "drizzle-orm";
|
|
@@ -76,13 +76,13 @@ import { AppProcess } from "@opencode/util/process";
|
|
|
76
76
|
import { ChildProcess } from "effect/unstable/process";
|
|
77
77
|
import { OperationError as OperationError2 } from "@opencode/schema/worktree";
|
|
78
78
|
var StrategyID2 = Worktree.StrategyID;
|
|
79
|
-
var
|
|
79
|
+
var CreateInput2 = Worktree.CreateInput;
|
|
80
80
|
var RemoveInput2 = Worktree.RemoveInput;
|
|
81
81
|
var RefreshResult2 = Schema.Struct({
|
|
82
82
|
updated: Schema.Array(AbsolutePath2),
|
|
83
83
|
removed: Schema.Array(AbsolutePath2)
|
|
84
84
|
}).annotate({ identifier: "Worktree.RefreshResult" });
|
|
85
|
-
var
|
|
85
|
+
var Info3 = Worktree.Info;
|
|
86
86
|
var List2 = Worktree.List;
|
|
87
87
|
var ListEntry3 = Worktree.ListEntry;
|
|
88
88
|
|
|
@@ -100,17 +100,17 @@ class StrategyUnavailableError2 extends Schema.TaggedError()("Worktree.StrategyU
|
|
|
100
100
|
|
|
101
101
|
class UnsupportedLocationError2 extends Schema.TaggedError()("Worktree.UnsupportedLocationError", { directory: AbsolutePath2 }) {
|
|
102
102
|
}
|
|
103
|
-
var
|
|
103
|
+
var Event4 = Worktree.Event;
|
|
104
104
|
|
|
105
|
-
class
|
|
105
|
+
class Service16 extends Context.Service()("@opencode/v2/Worktree") {
|
|
106
106
|
}
|
|
107
|
-
var layer = Layer.effect(
|
|
107
|
+
var layer = Layer.effect(Service16, Effect.gen(function* () {
|
|
108
108
|
const fs = yield* FSUtil.Service;
|
|
109
109
|
const database = yield* Service80;
|
|
110
110
|
const db = database.db;
|
|
111
111
|
const bus = yield* Service79;
|
|
112
112
|
const processService = yield* AppProcess.Service;
|
|
113
|
-
const location = yield*
|
|
113
|
+
const location = yield* Service67;
|
|
114
114
|
const global = yield* Global.Service;
|
|
115
115
|
const projectID = location.project.id;
|
|
116
116
|
const local = location.workspaceID ? Effect.fail(new UnsupportedLocationError2({ directory: location.directory })) : Effect.void;
|
|
@@ -135,7 +135,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
135
135
|
});
|
|
136
136
|
const changed = Effect.fnUntraced(function* (update) {
|
|
137
137
|
if (update)
|
|
138
|
-
yield* bus.publish(
|
|
138
|
+
yield* bus.publish(Event4.Updated, { projectID });
|
|
139
139
|
});
|
|
140
140
|
const ops = {
|
|
141
141
|
list: Effect.fnUntraced(function* () {
|
|
@@ -257,7 +257,7 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
257
257
|
yield* changed(changes.updated.length > 0 || changes.removed.length > 0);
|
|
258
258
|
return changes;
|
|
259
259
|
});
|
|
260
|
-
return
|
|
260
|
+
return Service16.of({
|
|
261
261
|
transform: state.transform,
|
|
262
262
|
reload: state.reload,
|
|
263
263
|
list: Effect.fn("Worktree.list")(function* () {
|
|
@@ -269,10 +269,10 @@ var layer = Layer.effect(Service22, Effect.gen(function* () {
|
|
|
269
269
|
refresh
|
|
270
270
|
});
|
|
271
271
|
}));
|
|
272
|
-
var
|
|
273
|
-
service:
|
|
272
|
+
var node20 = makeLocationNode({
|
|
273
|
+
service: Service16,
|
|
274
274
|
layer,
|
|
275
|
-
deps: [FSUtil.node, node77, node84, node85, AppProcess.node,
|
|
275
|
+
deps: [FSUtil.node, node77, node84, node85, AppProcess.node, node71, Global.node]
|
|
276
276
|
});
|
|
277
277
|
function operationError(strategy, operation, error) {
|
|
278
278
|
if (error instanceof WorktreeError2 || error instanceof DirectoryUnavailableError2 || error instanceof Worktree.OperationError)
|
|
@@ -282,4 +282,4 @@ function operationError(strategy, operation, error) {
|
|
|
282
282
|
});
|
|
283
283
|
}
|
|
284
284
|
|
|
285
|
-
export { StrategyID2,
|
|
285
|
+
export { StrategyID2, CreateInput2, RemoveInput2, RefreshResult2, Info3, List2, ListEntry3, SourceDirectoryNotFoundError2, DestinationExistsError2, InvalidDirectoryError2, StrategyUnavailableError2, UnsupportedLocationError2, Event4, Service16, node20, exports_worktree2, OperationError2 };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "./workspace-
|
|
2
|
+
Service47
|
|
3
|
+
} from "./workspace-yhqzjv42.js";
|
|
4
4
|
import {
|
|
5
5
|
__export
|
|
6
6
|
} from "./workspace-9rqn6x4v.js";
|
|
@@ -19,7 +19,7 @@ var FORCE_KILL_AFTER = Duration.seconds(2);
|
|
|
19
19
|
var OUTGOING_CAPACITY = 64;
|
|
20
20
|
var MAX_FRAME_BYTES = 16 * 1024 * 1024;
|
|
21
21
|
var make2 = Effect.fnUntraced(function* (options) {
|
|
22
|
-
const environment = yield*
|
|
22
|
+
const environment = yield* Service47;
|
|
23
23
|
const scope = yield* Effect.scope;
|
|
24
24
|
const outgoing = yield* Queue.bounded(OUTGOING_CAPACITY);
|
|
25
25
|
const buffer = new ReadBuffer;
|