chore: generate

This commit is contained in:
opencode-agent[bot]
2026-06-07 05:25:52 +00:00
parent 106f8e94d6
commit 21a644fef5
12 changed files with 40 additions and 50 deletions
+4 -4
View File
@@ -52,10 +52,10 @@ const themeSource: ThemeSource = {
export async function discoverThemes(directories: string[]) {
const result: Record<string, unknown> = {}
for (const directory of directories) {
const files = await Glob.scan("themes/*.json", { cwd: directory, absolute: true, dot: true, symlink: true })
for (const file of files) {
result[path.basename(file, ".json")] = JSON.parse(await readFile(file, "utf8")) as unknown
}
const files = await Glob.scan("themes/*.json", { cwd: directory, absolute: true, dot: true, symlink: true })
for (const file of files) {
result[path.basename(file, ".json")] = JSON.parse(await readFile(file, "utf8")) as unknown
}
}
return result
}