refactor: unwrap PluginMeta namespace + self-reexport (#22945)

This commit is contained in:
Kit Langton 2026-04-16 20:02:05 -04:00 committed by GitHub
commit 974fa1b8b1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8,7 +8,6 @@ import { Flock } from "@opencode-ai/shared/util/flock"
import { parsePluginSpecifier, pluginSource } from "./shared" import { parsePluginSpecifier, pluginSource } from "./shared"
export namespace PluginMeta {
type Source = "file" | "npm" type Source = "file" | "npm"
export type Theme = { export type Theme = {
@ -185,4 +184,5 @@ export namespace PluginMeta {
const file = storePath() const file = storePath()
return Flock.withLock(lock(file), async () => read(file)) return Flock.withLock(lock(file), async () => read(file))
} }
}
export * as PluginMeta from "./meta"