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

推荐订阅源

V
Visual Studio Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
G
Google Developers Blog
J
Java Code Geeks
爱范儿
爱范儿
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
人人都是产品经理
人人都是产品经理
Martin Fowler
Martin Fowler
IT之家
IT之家
博客园_首页
B
Blog RSS Feed
Google DeepMind News
Google DeepMind News
B
Blog
U
Unit 42
Apple Machine Learning Research
Apple Machine Learning Research
L
LangChain Blog
Stack Overflow Blog
Stack Overflow Blog
罗磊的独立博客
N
Netflix TechBlog - Medium
T
Tailwind CSS Blog
博客园 - 聂微东
腾讯CDC
A
About on SuperTechFans

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
test: fill plugin registry repair records · openclaw/open...
shakkernerd · 2026-05-12 · via Recent Commits to openclaw:main

@@ -220,6 +220,38 @@ function createCurrentIndexWithNpmRecord(params: {

220220

};

221221

}

222222223+

function expectedPluginIndexRecord(params: {

224+

rootDir: string;

225+

pluginId: string;

226+

origin: "bundled" | "global";

227+

packageName?: string;

228+

packageVersion?: string;

229+

}) {

230+

return {

231+

pluginId: params.pluginId,

232+

...(params.packageName ? { packageName: params.packageName } : {}),

233+

...(params.packageVersion ? { packageVersion: params.packageVersion } : {}),

234+

manifestPath: path.join(params.rootDir, "openclaw.plugin.json"),

235+

manifestHash: expect.any(String),

236+

manifestFile: {

237+

size: expect.any(Number),

238+

mtimeMs: expect.any(Number),

239+

ctimeMs: expect.any(Number),

240+

},

241+

source: path.join(params.rootDir, "index.ts"),

242+

rootDir: params.rootDir,

243+

origin: params.origin,

244+

enabled: true,

245+

startup: {

246+

sidecar: false,

247+

memory: false,

248+

deferConfiguredChannelFullLoadUntilAfterListen: false,

249+

agentHarnesses: [],

250+

},

251+

compat: [],

252+

};

253+

}

254+223255

describe("maybeRepairPluginRegistryState", () => {

224256

it("refreshes an existing registry during repair", async () => {

225257

const stateDir = makeTempDir();

@@ -239,20 +271,10 @@ describe("maybeRepairPluginRegistryState", () => {

239271

const persisted = await readRequiredPersistedInstalledPluginIndex(stateDir);

240272

expect(persisted.refreshReason).toBe("migration");

241273

expect(persisted.plugins).toStrictEqual([

242-

expect.objectContaining({

243-

compat: [],

244-

enabled: true,

245-

manifestPath: path.join(pluginDir, "openclaw.plugin.json"),

246-

origin: "global",

274+

expectedPluginIndexRecord({

247275

pluginId: "demo",

248276

rootDir: pluginDir,

249-

source: path.join(pluginDir, "index.ts"),

250-

startup: {

251-

agentHarnesses: [],

252-

deferConfiguredChannelFullLoadUntilAfterListen: false,

253-

memory: false,

254-

sidecar: false,

255-

},

277+

origin: "global",

256278

}),

257279

]);

258280

});

@@ -365,22 +387,12 @@ describe("maybeRepairPluginRegistryState", () => {

365387

const persisted = await readRequiredPersistedInstalledPluginIndex(stateDir);

366388

expect(persisted.refreshReason).toBe("migration");

367389

expect(persisted.plugins).toStrictEqual([

368-

expect.objectContaining({

369-

compat: [],

370-

enabled: true,

371-

manifestPath: path.join(bundledDir, "openclaw.plugin.json"),

390+

expectedPluginIndexRecord({

391+

pluginId: "google-meet",

392+

rootDir: bundledDir,

372393

origin: "bundled",

373394

packageName: "@openclaw/google-meet",

374395

packageVersion: "2026.5.3",

375-

pluginId: "google-meet",

376-

rootDir: bundledDir,

377-

source: path.join(bundledDir, "index.ts"),

378-

startup: {

379-

agentHarnesses: [],

380-

deferConfiguredChannelFullLoadUntilAfterListen: false,

381-

memory: false,

382-

sidecar: false,

383-

},

384396

}),

385397

]);

386398

expect(vi.mocked(note).mock.calls.join("\n")).toContain(

@@ -438,22 +450,12 @@ describe("maybeRepairPluginRegistryState", () => {

438450

expect(persisted.installRecords).toStrictEqual({});

439451

expect(persisted.refreshReason).toBe("migration");

440452

expect(persisted.plugins).toStrictEqual([

441-

expect.objectContaining({

442-

compat: [],

443-

enabled: true,

444-

manifestPath: path.join(bundledDir, "openclaw.plugin.json"),

453+

expectedPluginIndexRecord({

454+

pluginId: "google-meet",

455+

rootDir: bundledDir,

445456

origin: "bundled",

446457

packageName: "@openclaw/google-meet",

447458

packageVersion: "2026.5.3",

448-

pluginId: "google-meet",

449-

rootDir: bundledDir,

450-

source: path.join(bundledDir, "index.ts"),

451-

startup: {

452-

agentHarnesses: [],

453-

deferConfiguredChannelFullLoadUntilAfterListen: false,

454-

memory: false,

455-

sidecar: false,

456-

},

457459

}),

458460

]);

459461

});