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

推荐订阅源

Jina AI
Jina AI
N
Netflix TechBlog - Medium
P
Proofpoint News Feed
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
D
DataBreaches.Net
人人都是产品经理
人人都是产品经理
aimingoo的专栏
aimingoo的专栏
Stack Overflow Blog
Stack Overflow Blog
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
阮一峰的网络日志
阮一峰的网络日志
I
InfoQ
F
Fortinet All Blogs
J
Java Code Geeks
Last Week in AI
Last Week in AI
美团技术团队
大猫的无限游戏
大猫的无限游戏
有赞技术团队
有赞技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
博客园_首页
量子位
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
小众软件
小众软件

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(clawsweeper): address review for clawsweeper-commit-o...
openclaw-clo · 2026-04-30 · via Recent Commits to openclaw:main

@@ -9,6 +9,108 @@ import {

99

} from "./component-custom-id.js";

10101111

const API_SOURCE_PATH = resolve(dirname(fileURLToPath(import.meta.url)), "../api.ts");

12+

const itOnSupportedNode = Number(process.versions.node.split(".")[0]) >= 22 ? it : it.skip;

13+14+

const FORMER_PUBLIC_API_EXPORTS = [

15+

"DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS",

16+

"DISCORD_ATTACHMENT_TOTAL_TIMEOUT_MS",

17+

"DISCORD_COMPONENT_ATTACHMENT_PREFIX",

18+

"DISCORD_COMPONENT_CUSTOM_ID_KEY",

19+

"DISCORD_DEFAULT_INBOUND_WORKER_TIMEOUT_MS",

20+

"DISCORD_DEFAULT_LISTENER_TIMEOUT_MS",

21+

"DISCORD_MODAL_CUSTOM_ID_KEY",

22+

"DiscordApplicationSummary",

23+

"DiscordComponentBlock",

24+

"DiscordComponentBuildResult",

25+

"DiscordComponentButtonSpec",

26+

"DiscordComponentButtonStyle",

27+

"DiscordComponentEntry",

28+

"DiscordComponentMessageSpec",

29+

"DiscordComponentModalFieldType",

30+

"DiscordComponentSectionAccessory",

31+

"DiscordComponentSelectOption",

32+

"DiscordComponentSelectSpec",

33+

"DiscordComponentSelectType",

34+

"DiscordCredentialStatus",

35+

"DiscordFormModal",

36+

"DiscordInteractiveHandlerContext",

37+

"DiscordInteractiveHandlerRegistration",

38+

"DiscordModalEntry",

39+

"DiscordModalFieldDefinition",

40+

"DiscordModalFieldSpec",

41+

"DiscordModalSpec",

42+

"DiscordPluralKitConfig",

43+

"DiscordPrivilegedIntentStatus",

44+

"DiscordPrivilegedIntentsSummary",

45+

"DiscordProbe",

46+

"DiscordSendComponents",

47+

"DiscordSendEmbeds",

48+

"DiscordSendResult",

49+

"DiscordTarget",

50+

"DiscordTargetKind",

51+

"DiscordTargetParseOptions",

52+

"DiscordTokenResolution",

53+

"InspectedDiscordAccount",

54+

"PluralKitMemberInfo",

55+

"PluralKitMessageInfo",

56+

"PluralKitSystemInfo",

57+

"ResolvedDiscordAccount",

58+

"buildDiscordComponentCustomId",

59+

"buildDiscordComponentMessage",

60+

"buildDiscordComponentMessageFlags",

61+

"buildDiscordInteractiveComponents",

62+

"buildDiscordModalCustomId",

63+

"collectDiscordSecurityAuditFindings",

64+

"collectDiscordStatusIssues",

65+

"createDiscordActionGate",

66+

"createDiscordFormModal",

67+

"discordPlugin",

68+

"discordSetupPlugin",

69+

"fetchDiscordApplicationId",

70+

"fetchDiscordApplicationSummary",

71+

"fetchPluralKitMessageInfo",

72+

"formatDiscordComponentEventText",

73+

"getDiscordExecApprovalApprovers",

74+

"handleDiscordMessageAction",

75+

"handleDiscordSubagentDeliveryTarget",

76+

"handleDiscordSubagentEnded",

77+

"handleDiscordSubagentSpawning",

78+

"inspectDiscordAccount",

79+

"isDiscordExecApprovalApprover",

80+

"isDiscordExecApprovalClientEnabled",

81+

"listDiscordAccountIds",

82+

"listDiscordDirectoryGroupsFromConfig",

83+

"listDiscordDirectoryPeersFromConfig",

84+

"listEnabledDiscordAccounts",

85+

"looksLikeDiscordTargetId",

86+

"mergeDiscordAccountConfig",

87+

"normalizeDiscordMessagingTarget",

88+

"normalizeDiscordOutboundTarget",

89+

"normalizeExplicitDiscordSessionKey",

90+

"parseApplicationIdFromToken",

91+

"parseDiscordComponentCustomId",

92+

"parseDiscordComponentCustomIdForCarbon",

93+

"parseDiscordComponentCustomIdForInteraction",

94+

"parseDiscordModalCustomId",

95+

"parseDiscordModalCustomIdForCarbon",

96+

"parseDiscordModalCustomIdForInteraction",

97+

"parseDiscordTarget",

98+

"probeDiscord",

99+

"readDiscordComponentSpec",

100+

"resolveDefaultDiscordAccountId",

101+

"resolveDiscordAccount",

102+

"resolveDiscordAccountConfig",

103+

"resolveDiscordChannelId",

104+

"resolveDiscordComponentAttachmentName",

105+

"resolveDiscordGroupRequireMention",

106+

"resolveDiscordGroupToolPolicy",

107+

"resolveDiscordMaxLinesPerMessage",

108+

"resolveDiscordPrivilegedIntentsFromFlags",

109+

"resolveDiscordRuntimeGroupPolicy",

110+

"resolveDiscordTarget",

111+

"shouldSuppressLocalDiscordExecApprovalPrompt",

112+

"tryHandleDiscordMessageActionGuildAdmin",

113+

] as const;

1211413115

function collectExportedNames(): Set<string> {

14116

const source = ts.createSourceFile(

@@ -46,21 +148,24 @@ describe("discord public API barrel", () => {

46148

it("keeps compatibility exports for existing @openclaw/discord/api.js consumers", () => {

47149

const exportedNames = collectExportedNames();

48150151+

for (const exportName of FORMER_PUBLIC_API_EXPORTS) {

152+

expect(exportedNames).toContain(exportName);

153+

}

154+

});

155+156+

itOnSupportedNode("links restored runtime compatibility exports", async () => {

157+

const api = await import("../api.js");

158+49159

for (const exportName of [

50-

"DISCORD_ATTACHMENT_IDLE_TIMEOUT_MS",

51-

"buildDiscordInteractiveComponents",

52-

"handleDiscordMessageAction",

53-

"isDiscordExecApprovalApprover",

54-

"isDiscordExecApprovalClientEnabled",

55-

"parseApplicationIdFromToken",

56-

"parseDiscordComponentCustomIdForCarbon",

57-

"parseDiscordSendTarget",

58-

"parseDiscordTarget",

59-

"probeDiscord",

60-

"resolveDiscordChannelId",

61-

"resolveDiscordPrivilegedIntentsFromFlags",

160+

"DISCORD_COMPONENT_CUSTOM_ID_KEY",

161+

"buildDiscordComponentMessageFlags",

162+

"createDiscordFormModal",

163+

"handleDiscordSubagentSpawning",

164+

"listEnabledDiscordAccounts",

165+

"resolveDiscordRuntimeGroupPolicy",

166+

"tryHandleDiscordMessageActionGuildAdmin",

62167

]) {

63-

expect(exportedNames).toContain(exportName);

168+

expect(api).toHaveProperty(exportName);

64169

}

65170

});

66171