summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAiden Cline <[email protected]>2025-12-31 11:28:06 -0600
committerAiden Cline <[email protected]>2025-12-31 11:28:06 -0600
commite0450e74fbdb81e9c398ad69913d504ea658575a (patch)
tree703cb798b0b0d63e2f72171e8353eba863e67d16
parent094af4dc7dfccbf57f3e821b4c4f96d3253abcb2 (diff)
downloadopencode-e0450e74fbdb81e9c398ad69913d504ea658575a.tar.gz
opencode-e0450e74fbdb81e9c398ad69913d504ea658575a.zip
fix: plugin & mode globs
-rw-r--r--packages/opencode/src/config/config.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/opencode/src/config/config.ts b/packages/opencode/src/config/config.ts
index 012e3e12f..34bb6654e 100644
--- a/packages/opencode/src/config/config.ts
+++ b/packages/opencode/src/config/config.ts
@@ -259,7 +259,7 @@ export namespace Config {
return result
}
- const MODE_GLOB = new Bun.Glob("{mode,modes}/**/*.md")
+ const MODE_GLOB = new Bun.Glob("{mode,modes}/*.md")
async function loadMode(dir: string) {
const result: Record<string, Agent> = {}
for await (const item of MODE_GLOB.scan({
@@ -288,7 +288,7 @@ export namespace Config {
return result
}
- const PLUGIN_GLOB = new Bun.Glob("{plugin,plugins}/**/*.{ts,js}")
+ const PLUGIN_GLOB = new Bun.Glob("{plugin,plugins}/*.{ts,js}")
async function loadPlugin(dir: string) {
const plugins: string[] = []