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

推荐订阅源

WordPress大学
WordPress大学
H
Help Net Security
Jina AI
Jina AI
V
V2EX
G
Google Developers Blog
B
Blog
GbyAI
GbyAI
U
Unit 42
爱范儿
爱范儿
腾讯CDC
Engineering at Meta
Engineering at Meta
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
小众软件
小众软件
D
DataBreaches.Net
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
博客园 - 聂微东
The Cloudflare Blog
I
InfoQ
Microsoft Azure Blog
Microsoft Azure Blog
Hugging Face - Blog
Hugging Face - Blog
大猫的无限游戏
大猫的无限游戏

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
ci: time-box package acceptance legacy compat · openclaw/...
steipete · 2026-04-27 · via Recent Commits to openclaw:main

@@ -38,6 +38,31 @@ else

3838

exit 1

3939

fi

4040

export OPENCLAW_ENTRY

41+

PACKAGE_VERSION="$(node -p 'require("./package.json").version')"

42+

OPENCLAW_PACKAGE_ACCEPTANCE_LEGACY_COMPAT="$(

43+

node - "$PACKAGE_VERSION" <<'NODE'

44+

const version = process.argv[2] || "";

45+

const match = /^(\d{4})\.(\d{1,2})\.(\d{1,2})(?:[-+].*)?$/.exec(version);

46+

if (!match) {

47+

console.log("0");

48+

process.exit(0);

49+

}

50+

const value = [Number(match[1]), Number(match[2]), Number(match[3])];

51+

const max = [2026, 4, 25];

52+

for (let i = 0; i < value.length; i += 1) {

53+

if (value[i] < max[i]) {

54+

console.log("1");

55+

process.exit(0);

56+

}

57+

if (value[i] > max[i]) {

58+

console.log("0");

59+

process.exit(0);

60+

}

61+

}

62+

console.log("1");

63+

NODE

64+

)"

65+

export OPENCLAW_PACKAGE_ACCEPTANCE_LEGACY_COMPAT

41664267

home_dir=$(mktemp -d "/tmp/openclaw-plugins-e2e.XXXXXX")

4368

export HOME="$home_dir"

@@ -562,12 +587,21 @@ const indexPath = path.join(process.env.HOME, ".openclaw", "plugins", "installs.

562587

const index = JSON.parse(fs.readFileSync(indexPath, "utf8"));

563588

const configPath = path.join(process.env.HOME, ".openclaw", "openclaw.json");

564589

const config = fs.existsSync(configPath) ? JSON.parse(fs.readFileSync(configPath, "utf8")) : {};

565-

const installRecords = index.installRecords ?? index.records ?? config.plugins?.installs ?? {};

590+

const allowLegacyCompat = process.env.OPENCLAW_PACKAGE_ACCEPTANCE_LEGACY_COMPAT === "1";

591+

if (!allowLegacyCompat && !index.installRecords) {

592+

throw new Error("expected modern installRecords in installed plugin index");

593+

}

594+

const installRecords = allowLegacyCompat

595+

? index.installRecords ?? index.records ?? config.plugins?.installs ?? {}

596+

: index.installRecords ?? {};

566597

for (const id of ["marketplace-shortcut", "marketplace-direct"]) {

567598

const record = installRecords[id];

568599

if (!record) {

569-

console.log(`legacy package did not persist marketplace install record for ${id}`);

570-

continue;

600+

if (allowLegacyCompat) {

601+

console.log(`legacy package did not persist marketplace install record for ${id}`);

602+

continue;

603+

}

604+

throw new Error(`missing marketplace install record for ${id}`);

571605

}

572606

if (record.source !== "marketplace") {

573607

throw new Error(`unexpected source for ${id}: ${record.source}`);

@@ -853,7 +887,13 @@ const indexPath = path.join(process.env.HOME, ".openclaw", "plugins", "installs.

853887

const index = JSON.parse(fs.readFileSync(indexPath, "utf8"));

854888

const configPath = path.join(process.env.HOME, ".openclaw", "openclaw.json");

855889

const config = fs.existsSync(configPath) ? JSON.parse(fs.readFileSync(configPath, "utf8")) : {};

856-

const installRecords = index.installRecords ?? index.records ?? config.plugins?.installs ?? {};

890+

const allowLegacyCompat = process.env.OPENCLAW_PACKAGE_ACCEPTANCE_LEGACY_COMPAT === "1";

891+

if (!allowLegacyCompat && !index.installRecords) {

892+

throw new Error("expected modern installRecords in installed plugin index");

893+

}

894+

const installRecords = allowLegacyCompat

895+

? index.installRecords ?? index.records ?? config.plugins?.installs ?? {}

896+

: index.installRecords ?? {};

857897

const record = installRecords[pluginId];

858898

if (!record) throw new Error(`missing ClawHub install record for ${pluginId}`);

859899

if (record.source !== "clawhub") {