diff --git a/src/infra/clawhub.ts b/src/infra/clawhub.ts index af80722c29c..46c76407bfc 100644 --- a/src/infra/clawhub.ts +++ b/src/infra/clawhub.ts @@ -2,7 +2,6 @@ import { createHash } from "node:crypto"; import fs from "node:fs/promises"; import os from "node:os"; import path from "node:path"; -import type { ExternalPluginCompatibility } from "../../packages/plugin-package-contract/src/index.js"; import { isAtLeast, parseSemver } from "./runtime-guard.js"; import { compareComparableSemver, parseComparableSemver } from "./semver-compare.js"; import { createTempDownloadTarget } from "./temp-download.js"; @@ -12,7 +11,13 @@ const DEFAULT_FETCH_TIMEOUT_MS = 30_000; export type ClawHubPackageFamily = "skill" | "code-plugin" | "bundle-plugin"; export type ClawHubPackageChannel = "official" | "community" | "private"; -export type ClawHubPackageCompatibility = ExternalPluginCompatibility; +// Keep aligned with @openclaw/plugin-package-contract ExternalPluginCompatibility. +export type ClawHubPackageCompatibility = { + pluginApiRange?: string; + builtWithOpenClawVersion?: string; + pluginSdkVersion?: string; + minGatewayVersion?: string; +}; export type ClawHubPackageListItem = { name: string; displayName: string;