mirror of https://github.com/openclaw/openclaw.git
fix(plugins): use runtime version for plugin API compatibility check
OPENCLAW_PLUGIN_API_VERSION was hardcoded to "1.2.0" while ClawHub-published plugins require >=2026.3.22, making all plugin installs via ClawHub fail with "requires plugin API >=2026.3.22, but this OpenClaw runtime exposes 1.2.0". Use resolveRuntimeServiceVersion() (already imported) to read the actual version from package.json at runtime. Fixes #53038
This commit is contained in:
parent
d25ad66069
commit
447e074bf4
|
|
@ -16,7 +16,7 @@ import {
|
|||
import { resolveRuntimeServiceVersion } from "../version.js";
|
||||
import { installPluginFromArchive, type InstallPluginResult } from "./install.js";
|
||||
|
||||
export const OPENCLAW_PLUGIN_API_VERSION = "1.2.0";
|
||||
export const OPENCLAW_PLUGIN_API_VERSION = resolveRuntimeServiceVersion();
|
||||
export const CLAWHUB_INSTALL_ERROR_CODE = {
|
||||
INVALID_SPEC: "invalid_spec",
|
||||
PACKAGE_NOT_FOUND: "package_not_found",
|
||||
|
|
|
|||
Loading…
Reference in New Issue