mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-08 02:52:15 +00:00
chore(deadcode): remove unused plugin version validator
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
// Bundled Extension Manifest script supports OpenClaw repository automation.
|
||||
import { validateMinHostVersion } from "../../src/plugins/min-host-version.ts";
|
||||
import {
|
||||
MIN_HOST_VERSION_FORMAT,
|
||||
parseMinHostVersionRequirement,
|
||||
} from "../../src/plugins/min-host-version.ts";
|
||||
import { isRecord } from "../../src/utils.js";
|
||||
|
||||
export type ExtensionPackageJson = {
|
||||
@@ -35,7 +38,11 @@ export function collectBundledExtensionManifestErrors(extensions: BundledExtensi
|
||||
`bundled extension '${extension.id}' manifest invalid | openclaw.install.npmSpec must be a non-empty string`,
|
||||
);
|
||||
}
|
||||
const minHostVersionError = validateMinHostVersion(install?.minHostVersion);
|
||||
const minHostVersionError =
|
||||
install?.minHostVersion === undefined ||
|
||||
parseMinHostVersionRequirement(install.minHostVersion)
|
||||
? null
|
||||
: MIN_HOST_VERSION_FORMAT;
|
||||
if (minHostVersionError) {
|
||||
errors.push(`bundled extension '${extension.id}' manifest invalid | ${minHostVersionError}`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user