diff --git a/packages/opencode/src/plugin/shared.ts b/packages/opencode/src/plugin/shared.ts index 0613ef1d2e..ee2ee6dd71 100644 --- a/packages/opencode/src/plugin/shared.ts +++ b/packages/opencode/src/plugin/shared.ts @@ -89,7 +89,7 @@ export async function resolvePathPluginTarget(spec: string) { } export async function checkPluginCompatibility(target: string, opencodeVersion: string) { - if (!semver.valid(opencodeVersion) || semver.eq(opencodeVersion, "0.0.0")) return + if (!semver.valid(opencodeVersion) || semver.major(opencodeVersion) === 0) return const pkg = await readPluginPackage(target).catch(() => undefined) if (!pkg) return const engines = pkg.json.engines