From c09bf9812aaf9f4a0bec932f062bca4e90ef5f86 Mon Sep 17 00:00:00 2001 From: Vincent Koc Date: Sun, 5 Apr 2026 07:37:59 +0100 Subject: [PATCH] fix(build): restore main build on current agent api --- src/infra/clawhub.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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;