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

推荐订阅源

宝玉的分享
宝玉的分享
Engineering at Meta
Engineering at Meta
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 三生石上(FineUI控件)
T
Tailwind CSS Blog
Apple Machine Learning Research
Apple Machine Learning Research
Hugging Face - Blog
Hugging Face - Blog
爱范儿
爱范儿
博客园 - 司徒正美
人人都是产品经理
人人都是产品经理
Jina AI
Jina AI
博客园 - 叶小钗
雷峰网
雷峰网
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
博客园 - Franky
WordPress大学
WordPress大学
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
阮一峰的网络日志
阮一峰的网络日志
量子位

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: tighten codex plugin inventory assertions · opencla...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -45,7 +45,7 @@ describe("Codex plugin inventory", () => {

4545

]);

4646

}

4747

if (method === "plugin/read") {

48-

expect(params).toMatchObject({

48+

expect(params).toEqual({

4949

marketplacePath: "/marketplaces/openai-curated",

5050

pluginName: "google-calendar",

5151

});

@@ -56,13 +56,21 @@ describe("Codex plugin inventory", () => {

5656

});

57575858

expect(inventory.records).toHaveLength(1);

59-

expect(inventory.records[0]).toMatchObject({

60-

policy: { pluginName: "google-calendar" },

61-

summary: { installed: true, enabled: true },

62-

appOwnership: "proven",

63-

ownedAppIds: ["google-calendar-app"],

64-

apps: [{ id: "google-calendar-app", accessible: true, enabled: true }],

65-

});

59+

const record = inventory.records[0];

60+

expect(record?.policy.pluginName).toBe("google-calendar");

61+

expect(record?.summary.installed).toBe(true);

62+

expect(record?.summary.enabled).toBe(true);

63+

expect(record?.appOwnership).toBe("proven");

64+

expect(record?.ownedAppIds).toStrictEqual(["google-calendar-app"]);

65+

expect(record?.apps).toStrictEqual([

66+

{

67+

id: "google-calendar-app",

68+

name: "google-calendar-app",

69+

accessible: true,

70+

enabled: true,

71+

needsAuth: false,

72+

},

73+

]);

6674

expect(calls).toEqual(["plugin/list", "plugin/read"]);

6775

});

6876

@@ -108,7 +116,7 @@ describe("Codex plugin inventory", () => {

108116

return listed;

109117

}

110118

if (method === "plugin/read") {

111-

expect(params).toMatchObject({

119+

expect(params).toEqual({

112120

marketplacePath: "/marketplaces/openai-curated",

113121

pluginName: "github",

114122

});

@@ -119,12 +127,13 @@ describe("Codex plugin inventory", () => {

119127

});

120128121129

expect(inventory.records).toHaveLength(1);

122-

expect(inventory.records[0]).toMatchObject({

123-

policy: { pluginName: "github" },

124-

summary: { id: "openai-curated/github", installed: true, enabled: true },

125-

appOwnership: "proven",

126-

ownedAppIds: ["github-app"],

127-

});

130+

const record = inventory.records[0];

131+

expect(record?.policy.pluginName).toBe("github");

132+

expect(record?.summary.id).toBe("openai-curated/github");

133+

expect(record?.summary.installed).toBe(true);

134+

expect(record?.summary.enabled).toBe(true);

135+

expect(record?.appOwnership).toBe("proven");

136+

expect(record?.ownedAppIds).toStrictEqual(["github-app"]);

128137

expect(inventory.diagnostics.map((diagnostic) => diagnostic.code)).not.toContain(

129138

"plugin_missing",

130139

);

@@ -166,19 +175,19 @@ describe("Codex plugin inventory", () => {

166175

},

167176

});

168177169-

expect(inventory.records[0]).toMatchObject({

170-

appOwnership: "proven",

171-

authRequired: true,

172-

ownedAppIds: ["google-calendar-app"],

173-

apps: [

174-

{

175-

id: "google-calendar-app",

176-

accessible: false,

177-

enabled: false,

178-

needsAuth: true,

179-

},

180-

],

181-

});

178+

const record = inventory.records[0];

179+

expect(record?.appOwnership).toBe("proven");

180+

expect(record?.authRequired).toBe(true);

181+

expect(record?.ownedAppIds).toStrictEqual(["google-calendar-app"]);

182+

expect(record?.apps).toStrictEqual([

183+

{

184+

id: "google-calendar-app",

185+

name: "google-calendar-app",

186+

accessible: false,

187+

enabled: false,

188+

needsAuth: true,

189+

},

190+

]);

182191

});

183192184193

it("marks display-name-only app matches ambiguous instead of exposing app ids", async () => {