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

推荐订阅源

WordPress大学
WordPress大学
Cyberwarzone
Cyberwarzone
The GitHub Blog
The GitHub Blog
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
小众软件
小众软件
Recent Announcements
Recent Announcements
博客园 - 三生石上(FineUI控件)
Security Archives - TechRepublic
Security Archives - TechRepublic
W
WeLiveSecurity
Cloudbric
Cloudbric
博客园 - 司徒正美
美团技术团队
N
News and Events Feed by Topic
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
PCI Perspectives
PCI Perspectives
宝玉的分享
宝玉的分享
H
Help Net Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Google DeepMind News
Google DeepMind News
Help Net Security
Help Net Security
Last Week in AI
Last Week in AI
S
Schneier on Security
N
News | PayPal Newsroom
B
Blog RSS Feed
L
LINUX DO - 最新话题
T
Troy Hunt's Blog
S
Secure Thoughts
雷峰网
雷峰网
aimingoo的专栏
aimingoo的专栏
L
Lohrmann on Cybersecurity
G
Google Developers Blog
Microsoft Azure Blog
Microsoft Azure Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
T
Tenable Blog
S
Securelist
L
LangChain Blog
Recent Commits to openclaw:main
Recent Commits to openclaw:main
I
InfoQ
H
Heimdal Security Blog
Cisco Talos Blog
Cisco Talos Blog
F
Full Disclosure
Y
Y Combinator Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
K
Kaspersky official blog
T
Tailwind CSS Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
阮一峰的网络日志
阮一峰的网络日志
C
Cisco Blogs

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: trim doctor command hotspots · openclaw/openclaw@c66f16a test: isolate agent auth and spawn hotspots · openclaw/openclaw@9285935 test: stabilize MCP startup disposal race · openclaw/openclaw@dd9d2eb test: merge browser contract server suites · openclaw/openclaw@5817a76 test: narrow ollama provider discovery setup · openclaw/openclaw@a0d9598 build: declare qa-lab aimock runtime dependency · openclaw/openclaw@24431e5 test: speed up safe-bins exec harness · openclaw/openclaw@ee856ab test: preserve tool helpers in embedded runner mocks · openclaw/openclaw@acd86a0 refactor: move memory embeddings into provider plugins · openclaw/openclaw@77e6e4c test: reuse system-run temp fixtures · openclaw/openclaw@7e9ff0f test: trim hotspot wait overhead · openclaw/openclaw@12a59b0 Check: avoid duplicate boundary prep · openclaw/openclaw@baf11b8 test: reduce hotspot fixture overhead · openclaw/openclaw@3a59edd feat(ui): overhaul settings and slash command UX (#67819) thanks @Bun… · openclaw/openclaw@2cfb660 QA Matrix: exit cleanly on failure · openclaw/openclaw@42805d2 QA Matrix: isolate scenario coverage · openclaw/openclaw@7e659e1 Matrix: refresh crypto bootstrap state · openclaw/openclaw@94081d8 QA Lab: add provider registry · openclaw/openclaw@bb7e982 Matrix: add plugin changelog · openclaw/openclaw@4acab55 test: trim more hotspot overhead · openclaw/openclaw@f485311 test: trim remaining hotspot tests · openclaw/openclaw@6ba8626 test: narrow hotspot mocks · openclaw/openclaw@dbc8179 test: isolate gemini embedding request helpers · openclaw/openclaw@cd330f5 test: trim memory and mcp hotspots · openclaw/openclaw@fd48dfa test: slim provider registry mocks · openclaw/openclaw@2e08c77 test: harden Parallels update smoke · openclaw/openclaw@1a98090 feat: default Anthropic to Opus 4.7 · openclaw/openclaw@628b454 fix: harden node-host shell payload mutability checks · openclaw/openclaw@75c551e fix: land node-host approval binding for native binaries (#66731) (th… · openclaw/openclaw@29919bb CI: add daily schedule to CodeQL workflow (#67645) · openclaw/openclaw@69d25f5 fix(gateway): capture config hash after plugin auto-enable to prevent… · openclaw/openclaw@8c11210 fix: repair sanitized replay tool results before send (#67620) (thank… · openclaw/openclaw@c3c7a99 fix: restrict HTML timeout short-circuit to transient statuses · openclaw/openclaw@de129a6 fix: keep TUI watchdog bound to active run (#67401) (thanks @xantorres) · openclaw/openclaw@3525273 Gateway/skills: dedupe skills prefix-match + drop dead fallback on log · openclaw/openclaw@d7f489f Extensions/lmstudio: back off inference preload after consecutive fai… · openclaw/openclaw@b555214 TUI/streaming: add watchdog that resets the activity indicator after … · openclaw/openclaw@f44ab20 Agents/tool-loop: enable unknown-tool stream guard by default · openclaw/openclaw@36ed367 Gateway/skills: invalidate session skills snapshot on config write · openclaw/openclaw@b23d59a fix: classify HTML provider error pages correctly (#67642) (thanks @s… · openclaw/openclaw@e588e90 fix(skills): remove unused model-usage import (#67641) · openclaw/openclaw@55f05df docs(changelog): credit codex fix superseded PRs · openclaw/openclaw@e485f24 fix(openai-codex): normalize stale transport metadata in resolution a… · openclaw/openclaw@90801ba CI: pin Docker-related GitHub Actions (#67632) · openclaw/openclaw@f697b01 Android: modernize WebView and discovery API usage (#67627) · openclaw/openclaw@44a6e50 fix(deps): bump hono to 4.12.14 and @hono/node-server to 1.19.14 (GHS… · openclaw/openclaw@fbccc18 fix(deps): bump dompurify to 3.4.0 (#67614) · openclaw/openclaw@2c2dc00 CI: add explicit permissions to all workflow jobs (fixes code-scannin… · openclaw/openclaw@01b7516 fix: register bundled TTS providers and route overrides correctly (#6… · openclaw/openclaw@6ea3cdd fix: align host tilde paths with OS home (#62804) (thanks @stainlu) · openclaw/openclaw@ecfaf64 fix: flush creds queue before reconnect socket open (#67464) (thanks … · openclaw/openclaw@405c63f fix: strip standalone <function> tool call tags from visible text (#6… · openclaw/openclaw@78df859 fix(agents): preserve cli session metadata before transcript persist … · openclaw/openclaw@898fd04 docs(changelog): move cli transcript entry · openclaw/openclaw@c1817c6 fix(agents): normalize cli transcript api field · openclaw/openclaw@3a3fae0 docs(changelog): note cli transcript persistence · openclaw/openclaw@6c343f1 fix(agents): persist cli transcript turns · openclaw/openclaw@b8ef507 fix(msteams): harden security-sensitive flows (#65841) · openclaw/openclaw@c56b56e [Dashboard] Fix exec approval modal overflow for long command content… · openclaw/openclaw@053c5b0 Docs: remove QA changelog entry · openclaw/openclaw@7fd5771 QA: fix private runtime source loading (#67428) · openclaw/openclaw@d5933af docs(gateway): correct protocol.md schema path, hello-ok example, aut… · openclaw/openclaw@489404d CI: pin Node 22 runners to 22.18.0 · openclaw/openclaw@4ffa621 models.authStatus: normalize provider ids + tighten env-backed escape… · openclaw/openclaw@f2fdb9d Update CHANGELOG.md · openclaw/openclaw@7694a92 test(parallels): clean up npm update guard jobs · openclaw/openclaw@045ea7b Plugins: prefer scanDir override paths · openclaw/openclaw@b2974da fix(dreaming): default storage.mode to "separate" so phase blocks sto… · openclaw/openclaw@8c392f0 fix(memory-core): skip dreaming transcript ingestion via session stor… · openclaw/openclaw@a1b01f0 fix: dedupe replayed exec.finished node events (#67281) · openclaw/openclaw@5dcf526
test: clear installed plugin index store broad matchers · openclaw/openclaw@dc112f8
steipete · 2026-05-10 · via Recent Commits to openclaw:main

@@ -79,6 +79,69 @@ function createCandidate(rootDir: string, options: { id?: string } = {}): Plugin

7979

};

8080

}

818182+

function requirePersisted(index: InstalledPluginIndex | null): InstalledPluginIndex {

83+

expect(index).not.toBeNull();

84+

if (!index) {

85+

throw new Error("Expected persisted installed plugin index");

86+

}

87+

return index;

88+

}

89+90+

function expectPluginIds(index: InstalledPluginIndex, expected: string[]) {

91+

expect(index.plugins.map((plugin) => plugin.pluginId)).toEqual(expected);

92+

}

93+94+

function expectPluginFields(

95+

index: InstalledPluginIndex,

96+

pluginId: string,

97+

expected: Record<string, unknown>,

98+

) {

99+

const plugin = index.plugins.find((candidate) => candidate.pluginId === pluginId);

100+

expect(plugin, pluginId).toBeDefined();

101+

if (!plugin) {

102+

throw new Error(`Missing plugin ${pluginId}`);

103+

}

104+

for (const [key, value] of Object.entries(expected)) {

105+

expect(plugin[key as keyof typeof plugin], key).toEqual(value);

106+

}

107+

}

108+109+

function expectInstallRecord(

110+

index: InstalledPluginIndex,

111+

pluginId: string,

112+

expected: Record<string, unknown>,

113+

) {

114+

const record = index.installRecords[pluginId];

115+

expect(record, pluginId).toBeDefined();

116+

if (!record) {

117+

throw new Error(`Missing install record ${pluginId}`);

118+

}

119+

for (const [key, value] of Object.entries(expected)) {

120+

expect(record[key as keyof typeof record], key).toEqual(value);

121+

}

122+

}

123+124+

async function expectPersistedIndex(

125+

stateDir: string,

126+

expected: {

127+

refreshReason?: string;

128+

pluginIds?: string[];

129+

installRecords?: Record<string, Record<string, unknown>>;

130+

},

131+

) {

132+

const persisted = requirePersisted(await readPersistedInstalledPluginIndex({ stateDir }));

133+

if (expected.refreshReason !== undefined) {

134+

expect(persisted.refreshReason).toBe(expected.refreshReason);

135+

}

136+

if (expected.pluginIds) {

137+

expectPluginIds(persisted, expected.pluginIds);

138+

}

139+

for (const [pluginId, fields] of Object.entries(expected.installRecords ?? {})) {

140+

expectInstallRecord(persisted, pluginId, fields);

141+

}

142+

return persisted;

143+

}

144+82145

describe("installed plugin index persistence", () => {

83146

it("resolves the persisted index path under the state plugins directory", () => {

84147

const stateDir = makeTempDir();

@@ -101,7 +164,10 @@ describe("installed plugin index persistence", () => {

101164

if (process.platform !== "win32") {

102165

expect(fs.statSync(filePath).mode & 0o777).toBe(0o600);

103166

}

104-

await expect(readPersistedInstalledPluginIndex({ stateDir })).resolves.toMatchObject(index);

167+

const persisted = requirePersisted(await readPersistedInstalledPluginIndex({ stateDir }));

168+

expect(persisted.version).toBe(index.version);

169+

expect(persisted.policyHash).toBe(index.policyHash);

170+

expectPluginIds(persisted, ["demo"]);

105171

});

106172107173

it("does not preserve prototype poison keys from persisted index JSON", async () => {

@@ -128,12 +194,9 @@ describe("installed plugin index persistence", () => {

128194129195

const persisted = await readPersistedInstalledPluginIndex({ stateDir });

130196131-

expect(persisted).toMatchObject({

132-

plugins: [expect.objectContaining({ pluginId: "demo" })],

133-

installRecords: {

134-

demo: expect.objectContaining({ source: "npm" }),

135-

},

136-

});

197+

const persistedIndex = requirePersisted(persisted);

198+

expectPluginIds(persistedIndex, ["demo"]);

199+

expectInstallRecord(persistedIndex, "demo", { source: "npm" });

137200

expect(Object.prototype.hasOwnProperty.call(persisted as object, "__proto__")).toBe(false);

138201

expect(Object.prototype.hasOwnProperty.call(persisted?.installRecords ?? {}, "__proto__")).toBe(

139202

false,

@@ -174,16 +237,15 @@ describe("installed plugin index persistence", () => {

174237

VITEST: "true",

175238

};

176239177-

await expect(

178-

inspectPersistedInstalledPluginIndex({ stateDir, candidates: [candidate], env }),

179-

).resolves.toMatchObject({

180-

state: "missing",

181-

refreshReasons: ["missing"],

182-

persisted: null,

183-

current: {

184-

plugins: [expect.objectContaining({ pluginId: "demo" })],

185-

},

240+

const missingInspect = await inspectPersistedInstalledPluginIndex({

241+

stateDir,

242+

candidates: [candidate],

243+

env,

186244

});

245+

expect(missingInspect.state).toBe("missing");

246+

expect(missingInspect.refreshReasons).toEqual(["missing"]);

247+

expect(missingInspect.persisted).toBeNull();

248+

expectPluginIds(missingInspect.current, ["demo"]);

187249188250

const current = await refreshPersistedInstalledPluginIndex({

189251

reason: "manual",

@@ -192,40 +254,34 @@ describe("installed plugin index persistence", () => {

192254

env,

193255

});

194256195-

await expect(

196-

inspectPersistedInstalledPluginIndex({ stateDir, candidates: [candidate], env }),

197-

).resolves.toMatchObject({

198-

state: "fresh",

199-

refreshReasons: [],

200-

persisted: current,

201-

current: {

202-

plugins: [expect.objectContaining({ pluginId: "demo", enabled: true })],

203-

},

257+

const freshInspect = await inspectPersistedInstalledPluginIndex({

258+

stateDir,

259+

candidates: [candidate],

260+

env,

204261

});

262+

expect(freshInspect.state).toBe("fresh");

263+

expect(freshInspect.refreshReasons).toEqual([]);

264+

expect(freshInspect.persisted).toEqual(current);

265+

expectPluginFields(freshInspect.current, "demo", { enabled: true });

205266206-

await expect(

207-

inspectPersistedInstalledPluginIndex({

208-

stateDir,

209-

candidates: [candidate],

210-

config: {

211-

plugins: {

212-

entries: {

213-

demo: {

214-

enabled: false,

215-

},

267+

const policyInspect = await inspectPersistedInstalledPluginIndex({

268+

stateDir,

269+

candidates: [candidate],

270+

config: {

271+

plugins: {

272+

entries: {

273+

demo: {

274+

enabled: false,

216275

},

217276

},

218277

},

219-

env,

220-

}),

221-

).resolves.toMatchObject({

222-

state: "stale",

223-

refreshReasons: ["policy-changed"],

224-

persisted: current,

225-

current: {

226-

plugins: [expect.objectContaining({ pluginId: "demo", enabled: false })],

227278

},

279+

env,

228280

});

281+

expect(policyInspect.state).toBe("stale");

282+

expect(policyInspect.refreshReasons).toEqual(["policy-changed"]);

283+

expect(policyInspect.persisted).toEqual(current);

284+

expectPluginFields(policyInspect.current, "demo", { enabled: false });

229285230286

fs.writeFileSync(

231287

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

@@ -238,20 +294,15 @@ describe("installed plugin index persistence", () => {

238294

"utf8",

239295

);

240296241-

await expect(

242-

inspectPersistedInstalledPluginIndex({ stateDir, candidates: [candidate], env }),

243-

).resolves.toMatchObject({

244-

state: "stale",

245-

refreshReasons: ["stale-manifest"],

246-

persisted: current,

247-

current: {

248-

plugins: [

249-

expect.objectContaining({

250-

pluginId: "demo",

251-

}),

252-

],

253-

},

297+

const staleManifestInspect = await inspectPersistedInstalledPluginIndex({

298+

stateDir,

299+

candidates: [candidate],

300+

env,

254301

});

302+

expect(staleManifestInspect.state).toBe("stale");

303+

expect(staleManifestInspect.refreshReasons).toEqual(["stale-manifest"]);

304+

expect(staleManifestInspect.persisted).toEqual(current);

305+

expectPluginIds(staleManifestInspect.current, ["demo"]);

255306

});

256307257308

it("refreshes and persists a rebuilt index without loading plugin runtime", async () => {

@@ -273,9 +324,9 @@ describe("installed plugin index persistence", () => {

273324274325

expect(index.refreshReason).toBe("manual");

275326

expect(index.plugins.map((plugin) => plugin.pluginId)).toEqual(["demo"]);

276-

await expect(readPersistedInstalledPluginIndex({ stateDir })).resolves.toMatchObject({

327+

await expectPersistedIndex(stateDir, {

277328

refreshReason: "manual",

278-

plugins: [expect.objectContaining({ pluginId: "demo" })],

329+

pluginIds: ["demo"],

279330

});

280331

});

281332

@@ -324,7 +375,7 @@ describe("installed plugin index persistence", () => {

324375

});

325376326377

expect(refreshed.plugins).toHaveLength(initial.plugins.length);

327-

expect(refreshed.plugins[0]).toMatchObject({

378+

expectPluginFields(refreshed, "demo", {

328379

pluginId: "demo",

329380

enabled: false,

330381

manifestHash: initial.plugins[0]?.manifestHash,

@@ -399,25 +450,21 @@ describe("installed plugin index persistence", () => {

399450

},

400451

});

401452402-

expect(index).toMatchObject({

403-

installRecords: {

404-

missing: {

405-

source: "npm",

406-

spec: "missing-plugin@1.0.0",

407-

installPath: path.join(stateDir, "plugins", "missing"),

408-

},

409-

},

410-

plugins: [],

453+

expectInstallRecord(index, "missing", {

454+

source: "npm",

455+

spec: "missing-plugin@1.0.0",

456+

installPath: path.join(stateDir, "plugins", "missing"),

411457

});

412-

await expect(readPersistedInstalledPluginIndex({ stateDir })).resolves.toMatchObject({

458+

expectPluginIds(index, []);

459+

await expectPersistedIndex(stateDir, {

460+

pluginIds: [],

413461

installRecords: {

414462

missing: {

415463

source: "npm",

416464

spec: "missing-plugin@1.0.0",

417465

installPath: path.join(stateDir, "plugins", "missing"),

418466

},

419467

},

420-

plugins: [],

421468

});

422469

});

423470

@@ -466,34 +513,34 @@ describe("installed plugin index persistence", () => {

466513

},

467514

});

468515469-

const expected = {

516+

const expectedRecord = {

517+

source: "clawhub",

518+

spec: "clawhub:clawpack-demo@2026.5.1-beta.2",

519+

installPath,

520+

version: "2026.5.1-beta.2",

521+

integrity: "sha256-archive",

522+

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

523+

clawhubUrl: "https://clawhub.ai",

524+

clawhubPackage: "clawpack-demo",

525+

clawhubFamily: "code-plugin",

526+

clawhubChannel: "official",

527+

artifactKind: "npm-pack",

528+

artifactFormat: "tgz",

529+

npmIntegrity: "sha512-clawpack",

530+

npmShasum: "1".repeat(40),

531+

npmTarballName: "clawpack-demo-2026.5.1-beta.2.tgz",

532+

clawpackSha256: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

533+

clawpackSpecVersion: 1,

534+

clawpackManifestSha256: "bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",

535+

clawpackSize: 4096,

536+

};

537+

expectInstallRecord(index, "clawpack-demo", expectedRecord);

538+

expectPluginIds(index, []);

539+

await expectPersistedIndex(stateDir, {

540+

pluginIds: [],

470541

installRecords: {

471-

"clawpack-demo": {

472-

source: "clawhub",

473-

spec: "clawhub:clawpack-demo@2026.5.1-beta.2",

474-

installPath,

475-

version: "2026.5.1-beta.2",

476-

integrity: "sha256-archive",

477-

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

478-

clawhubUrl: "https://clawhub.ai",

479-

clawhubPackage: "clawpack-demo",

480-

clawhubFamily: "code-plugin",

481-

clawhubChannel: "official",

482-

artifactKind: "npm-pack",

483-

artifactFormat: "tgz",

484-

npmIntegrity: "sha512-clawpack",

485-

npmShasum: "1".repeat(40),

486-

npmTarballName: "clawpack-demo-2026.5.1-beta.2.tgz",

487-

clawpackSha256: "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",

488-

clawpackSpecVersion: 1,

489-

clawpackManifestSha256:

490-

"bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb",

491-

clawpackSize: 4096,

492-

},

542+

"clawpack-demo": expectedRecord,

493543

},

494-

plugins: [],

495-

};

496-

expect(index).toMatchObject(expected);

497-

await expect(readPersistedInstalledPluginIndex({ stateDir })).resolves.toMatchObject(expected);

544+

});

498545

});

499546

});