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

推荐订阅源

Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
量子位
Y
Y Combinator Blog
IT之家
IT之家
博客园 - 聂微东
L
LangChain Blog
爱范儿
爱范儿
H
Help Net Security
GbyAI
GbyAI
F
Fortinet All Blogs
B
Blog
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
C
Check Point Blog
博客园 - 三生石上(FineUI控件)
小众软件
小众软件
D
DataBreaches.Net
Last Week in AI
Last Week in AI
WordPress大学
WordPress大学
B
Blog RSS Feed
酷 壳 – CoolShell
酷 壳 – CoolShell
宝玉的分享
宝玉的分享

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(update): prefer npm during post-core repair · opencla...
steipete · 2026-05-21 · via Recent Commits to openclaw:main

@@ -1209,6 +1209,67 @@ describe("repairMissingConfiguredPluginInstalls", () => {

12091209

});

12101210

});

121112111212+

it("prefers npm over ClawHub during post-core repair", async () => {

1213+

const npmRoot = makeTempDir();

1214+

const packageDir = path.join(npmRoot, "node_modules", "@openclaw", "whatsapp");

1215+

mocks.resolveDefaultPluginNpmDir.mockReturnValue(npmRoot);

1216+

mocks.listChannelPluginCatalogEntries.mockReturnValue([

1217+

{

1218+

id: "whatsapp",

1219+

pluginId: "whatsapp",

1220+

meta: { label: "WhatsApp" },

1221+

install: {

1222+

clawhubSpec: "clawhub:@openclaw/whatsapp",

1223+

npmSpec: "@openclaw/whatsapp",

1224+

},

1225+

},

1226+

]);

1227+

mocks.installPluginFromClawHub.mockResolvedValue({

1228+

ok: false,

1229+

error: 'Plugin "@openclaw/whatsapp" requires plugin API >=2026.5.18.',

1230+

});

1231+

mocks.installPluginFromNpmSpec.mockResolvedValue({

1232+

ok: true,

1233+

pluginId: "whatsapp",

1234+

targetDir: packageDir,

1235+

version: "1.2.3",

1236+

npmResolution: {

1237+

name: "@openclaw/whatsapp",

1238+

version: "1.2.3",

1239+

resolvedSpec: "@openclaw/whatsapp@1.2.3",

1240+

integrity: "sha512-whatsapp",

1241+

resolvedAt: "2026-05-01T00:00:00.000Z",

1242+

},

1243+

});

1244+1245+

const { repairMissingConfiguredPluginInstalls } =

1246+

await import("./missing-configured-plugin-install.js");

1247+

const result = await repairMissingConfiguredPluginInstalls({

1248+

cfg: {

1249+

plugins: {

1250+

entries: {

1251+

whatsapp: { enabled: true },

1252+

},

1253+

},

1254+

channels: {

1255+

whatsapp: { enabled: true },

1256+

},

1257+

},

1258+

env: {

1259+

OPENCLAW_UPDATE_POST_CORE_CONVERGENCE: "1",

1260+

},

1261+

});

1262+1263+

expect(mocks.installPluginFromClawHub).not.toHaveBeenCalled();

1264+

expectRecordFields(mockCallArg(mocks.installPluginFromNpmSpec), {

1265+

spec: expectedNpmInstallSpec("@openclaw/whatsapp"),

1266+

npmDir: npmRoot,

1267+

mode: "install",

1268+

});

1269+

expect(result.warnings).toEqual([]);

1270+

expect(result.records.whatsapp?.installPath).toBe(packageDir);

1271+

});

1272+12121273

it("repairs missing external payload during post-core convergence even with OPENCLAW_UPDATE_IN_PROGRESS=1", async () => {

12131274

const records = {

12141275

discord: {