惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
Engineering at Meta
Engineering at Meta
月光博客
月光博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
T
Tailwind CSS Blog
博客园 - Franky
The GitHub Blog
The GitHub Blog
大猫的无限游戏
大猫的无限游戏
The Cloudflare Blog
B
Blog RSS Feed
云风的 BLOG
云风的 BLOG
小众软件
小众软件
罗磊的独立博客
Microsoft Azure Blog
Microsoft Azure Blog
I
InfoQ
美团技术团队
H
Hackread – Cybersecurity News, Data Breaches, AI and More
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
C
Check Point Blog
WordPress大学
WordPress大学
博客园 - 【当耐特】
博客园 - 司徒正美
D
Docker

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
fix(plugins): reject incompatible package plugin API inst...
rohitjavvadi · 2026-05-29 · via Recent Commits to openclaw:main

@@ -541,6 +541,22 @@ function matchWildcardComparator(token: string): "any" | "none" | null {

541541

return operator === ">" || operator === "<" ? "none" : "any";

542542

}

543543544+

function shouldPreservePluginApiPrereleaseFloor(target: string): boolean {

545+

return Boolean(

546+

parseComparableSemver(normalizePartialComparableVersion(target).version)?.prerelease?.length,

547+

);

548+

}

549+550+

function normalizePluginApiVersionForComparator(version: string, target: string): string {

551+

const normalizedCorrection = normalizeCalVerNumericCorrectionForPluginApi(version);

552+

if (normalizedCorrection) {

553+

return normalizedCorrection;

554+

}

555+

return shouldPreservePluginApiPrereleaseFloor(target)

556+

? version

557+

: normalizeCalVerCorrectionForPluginApi(version);

558+

}

559+544560

function satisfiesComparator(version: string, token: string): boolean {

545561

const trimmed = token.trim();

546562

if (!trimmed) {

@@ -553,8 +569,9 @@ function satisfiesComparator(version: string, token: string): boolean {

553569

if (trimmed.startsWith("^")) {

554570

const base = trimmed.slice(1).trim();

555571

const upperBound = upperBoundForCaret(base);

556-

const lowerCmp = compareSemver(version, base);

557-

const upperCmp = upperBound ? compareSemver(version, upperBound) : null;

572+

const comparableVersion = normalizePluginApiVersionForComparator(version, base);

573+

const lowerCmp = compareSemver(comparableVersion, base);

574+

const upperCmp = upperBound ? compareSemver(comparableVersion, upperBound) : null;

558575

return lowerCmp != null && upperCmp != null && lowerCmp >= 0 && upperCmp < 0;

559576

}

560577

@@ -567,8 +584,9 @@ function satisfiesComparator(version: string, token: string): boolean {

567584

if (!target) {

568585

return false;

569586

}

587+

const comparableVersion = normalizePluginApiVersionForComparator(version, target);

570588

const normalizedTarget = normalizePartialComparableVersion(target);

571-

const cmp = compareSemver(version, normalizedTarget.version);

589+

const cmp = compareSemver(comparableVersion, normalizedTarget.version);

572590

if (cmp == null) {

573591

return false;

574592

}

@@ -595,7 +613,15 @@ function satisfiesSemverRange(version: string, range: string): boolean {

595613

return tokens.every((token) => satisfiesComparator(version, token));

596614

}

597615598-

const OPENCLAW_CALVER_STABLE_CORRECTION_PATTERN = /^[vV]?(\d{4}\.\d{1,2}\.\d{1,2})-\d+$/;

616+

const OPENCLAW_CALVER_STABLE_CORRECTION_PATTERN =

617+

/^[vV]?(\d{4}\.\d{1,2}\.\d{1,2})(?:-\d+|-(?:alpha|beta|rc)\.\d+)$/i;

618+

const OPENCLAW_CALVER_NUMERIC_CORRECTION_PATTERN = /^[vV]?(\d{4}\.\d{1,2}\.\d{1,2})-\d+$/;

619+620+

function normalizeCalVerNumericCorrectionForPluginApi(

621+

pluginApiVersion: string,

622+

): string | undefined {

623+

return OPENCLAW_CALVER_NUMERIC_CORRECTION_PATTERN.exec(pluginApiVersion.trim())?.[1];

624+

}

599625600626

function normalizeCalVerCorrectionForPluginApi(pluginApiVersion: string): string {

601627

const match = OPENCLAW_CALVER_STABLE_CORRECTION_PATTERN.exec(pluginApiVersion.trim());

@@ -1263,10 +1289,7 @@ export function satisfiesPluginApiRange(

12631289

if (!pluginApiRange) {

12641290

return true;

12651291

}

1266-

return satisfiesSemverRange(

1267-

normalizeCalVerCorrectionForPluginApi(pluginApiVersion),

1268-

pluginApiRange,

1269-

);

1292+

return satisfiesSemverRange(pluginApiVersion, pluginApiRange);

12701293

}

1271129412721295

export function satisfiesGatewayMinimum(