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

推荐订阅源

N
Netflix TechBlog - Medium
T
The Blog of Author Tim Ferriss
aimingoo的专栏
aimingoo的专栏
A
About on SuperTechFans
Stack Overflow Blog
Stack Overflow Blog
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
H
Hackread – Cybersecurity News, Data Breaches, AI and More
人人都是产品经理
人人都是产品经理
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
J
Java Code Geeks
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
MongoDB | Blog
MongoDB | Blog
L
LangChain Blog
WordPress大学
WordPress大学
小众软件
小众软件
IT之家
IT之家
腾讯CDC
月光博客
月光博客
量子位
Blog — PlanetScale
Blog — PlanetScale
P
Proofpoint News Feed
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

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 config doc baseline assertions · openclaw/o...
steipete · 2026-05-11 · via Recent Commits to openclaw:main

@@ -36,6 +36,18 @@ describe("config doc baseline integration", () => {

3636

return sharedByPathPromise;

3737

}

383839+

function requireEntry(

40+

byPath: Map<string, ConfigDocBaselineEntry>,

41+

entryPath: string,

42+

): ConfigDocBaselineEntry {

43+

const entry = byPath.get(entryPath);

44+

expect(entry).toBeDefined();

45+

if (!entry) {

46+

throw new Error(`expected config doc baseline entry for ${entryPath}`);

47+

}

48+

return entry;

49+

}

50+3951

it("is deterministic across repeated runs", async () => {

4052

const first = await getSharedRendered();

4153

const { baseline } = first;

@@ -50,18 +62,17 @@ describe("config doc baseline integration", () => {

5062

it("includes core, channel, and plugin config metadata", async () => {

5163

const byPath = await getSharedByPath();

526453-

expect(byPath.get("gateway.auth.token")).toMatchObject({

54-

kind: "core",

55-

sensitive: true,

56-

});

57-

expect(byPath.get("channels.telegram.botToken")).toMatchObject({

58-

kind: "channel",

59-

sensitive: true,

60-

});

61-

expect(byPath.get("plugins.entries.voice-call.config.twilio.authToken")).toMatchObject({

62-

kind: "plugin",

63-

sensitive: true,

64-

});

65+

const gatewayToken = requireEntry(byPath, "gateway.auth.token");

66+

expect(gatewayToken.kind).toBe("core");

67+

expect(gatewayToken.sensitive).toBe(true);

68+69+

const telegramToken = requireEntry(byPath, "channels.telegram.botToken");

70+

expect(telegramToken.kind).toBe("channel");

71+

expect(telegramToken.sensitive).toBe(true);

72+73+

const twilioToken = requireEntry(byPath, "plugins.entries.voice-call.config.twilio.authToken");

74+

expect(twilioToken.kind).toBe("plugin");

75+

expect(twilioToken.sensitive).toBe(true);

6576

});

66776778

it("preserves help text and tags from merged schema hints", async () => {

@@ -83,44 +94,38 @@ describe("config doc baseline integration", () => {

8394

it("uses human-readable channel metadata for top-level channel sections", async () => {

8495

const byPath = await getSharedByPath();

859686-

expect(byPath.get("channels.discord")).toMatchObject({

87-

label: "Discord",

88-

help: "very well supported right now.",

89-

});

90-

expect(byPath.get("channels.msteams")).toMatchObject({

91-

label: "Microsoft Teams",

92-

help: "Teams SDK; enterprise support.",

93-

});

94-

expect(byPath.get("channels.matrix")).toMatchObject({

95-

label: "Matrix",

96-

help: "open protocol; install the plugin to enable.",

97-

});

98-

expect(byPath.get("channels.msteams")?.label).not.toContain("@openclaw/");

99-

expect(byPath.get("channels.matrix")?.help).not.toContain("homeserver");

97+

const discordEntry = requireEntry(byPath, "channels.discord");

98+

expect(discordEntry.label).toBe("Discord");

99+

expect(discordEntry.help).toBe("very well supported right now.");

100+101+

const msteamsEntry = requireEntry(byPath, "channels.msteams");

102+

expect(msteamsEntry.label).toBe("Microsoft Teams");

103+

expect(msteamsEntry.help).toBe("Teams SDK; enterprise support.");

104+

expect(msteamsEntry.label).not.toContain("@openclaw/");

105+106+

const matrixEntry = requireEntry(byPath, "channels.matrix");

107+

expect(matrixEntry.label).toBe("Matrix");

108+

expect(matrixEntry.help).toBe("open protocol; install the plugin to enable.");

109+

expect(matrixEntry.help).not.toContain("homeserver");

100110

});

101111102112

it("matches array help hints that still use [] notation", async () => {

103113

const byPath = await getSharedByPath();

104114105-

expect(byPath.get("session.sendPolicy.rules.*.match.keyPrefix")).toMatchObject({

106-

help: expect.stringContaining("prefer rawKeyPrefix when exact full-key matching is required"),

107-

sensitive: false,

108-

});

115+

const keyPrefixEntry = requireEntry(byPath, "session.sendPolicy.rules.*.match.keyPrefix");

116+

expect(keyPrefixEntry.help).toContain(

117+

"prefer rawKeyPrefix when exact full-key matching is required",

118+

);

119+

expect(keyPrefixEntry.sensitive).toBe(false);

109120

});

110121111122

it("walks union branches for nested config keys", async () => {

112123

const byPath = await getSharedByPath();

113124114-

expect(byPath.get("bindings.*")).toMatchObject({

115-

hasChildren: true,

116-

});

117-

expect(byPath.get("bindings.*.type")).toMatchObject({ path: "bindings.*.type" });

118-

expect(byPath.get("bindings.*.match.channel")).toMatchObject({

119-

path: "bindings.*.match.channel",

120-

});

121-

expect(byPath.get("bindings.*.match.peer.id")).toMatchObject({

122-

path: "bindings.*.match.peer.id",

123-

});

125+

expect(requireEntry(byPath, "bindings.*").hasChildren).toBe(true);

126+

expect(requireEntry(byPath, "bindings.*.type").path).toBe("bindings.*.type");

127+

expect(requireEntry(byPath, "bindings.*.match.channel").path).toBe("bindings.*.match.channel");

128+

expect(requireEntry(byPath, "bindings.*.match.peer.id").path).toBe("bindings.*.match.peer.id");

124129

});

125130126131

it("supports check mode for stale hash files", async () => {