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

推荐订阅源

Y
Y Combinator Blog
The GitHub Blog
The GitHub Blog
Vercel News
Vercel News
D
DataBreaches.Net
MongoDB | Blog
MongoDB | Blog
H
Help Net Security
小众软件
小众软件
美团技术团队
T
The Blog of Author Tim Ferriss
爱范儿
爱范儿
D
Docker
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
博客园 - 聂微东
Blog — PlanetScale
Blog — PlanetScale
H
Hackread – Cybersecurity News, Data Breaches, AI and More
罗磊的独立博客
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
V
V2EX
S
SegmentFault 最新的问题
云风的 BLOG
云风的 BLOG
B
Blog
雷峰网
雷峰网
The Cloudflare Blog

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(plugin-sdk): keep compat facades out of core graph · ...
steipete · 2026-04-29 · via Recent Commits to openclaw:main

@@ -12,10 +12,6 @@ import {

1212

} from "./facade-loader.js";

1313

import { getRuntimeConfig, getRuntimeConfigSnapshot } from "./runtime-config-snapshot.js";

141415-

export type {

16-

DiscordComponentBuildResult,

17-

DiscordComponentMessageSpec,

18-

} from "../../extensions/discord/api.js";

1915

export type { ChannelMessageActionAdapter, ChannelMessageActionName } from "./channel-contract.js";

2016

export type { ChannelPlugin } from "./channel-core.js";

2117

export type { OpenClawConfig } from "./config-types.js";

@@ -41,6 +37,43 @@ export { DiscordConfigSchema } from "./bundled-channel-config-schema.js";

41374238

export type DiscordAccountConfig = NonNullable<NonNullable<OpenClawConfig["channels"]>["discord"]>;

433940+

export type DiscordComponentMessageSpec = {

41+

text?: string;

42+

reusable?: boolean;

43+

container?: {

44+

accentColor?: string | number;

45+

spoiler?: boolean;

46+

};

47+

blocks?: unknown[];

48+

modal?: unknown;

49+

};

50+51+

export type DiscordComponentBuildResult = {

52+

components: unknown[];

53+

entries: unknown[];

54+

modals: unknown[];

55+

};

56+57+

export type DiscordComponentSendOpts = {

58+

cfg?: OpenClawConfig;

59+

accountId?: string;

60+

replyTo?: string;

61+

files?: unknown;

62+

mediaReadFile?: (filePath: string) => Promise<Buffer>;

63+

filename?: string;

64+

textLimit?: number;

65+

maxLinesPerMessage?: number;

66+

tableMode?: unknown;

67+

chunkMode?: unknown;

68+

[key: string]: unknown;

69+

};

70+71+

export type DiscordComponentSendResult = {

72+

id?: string;

73+

channel_id?: string;

74+

[key: string]: unknown;

75+

};

76+4477

export type ResolvedDiscordAccount = {

4578

accountId: string;

4679

enabled: boolean;

@@ -70,9 +103,29 @@ type DirectoryConfigParams = {

70103

accountId?: string | null;

71104

};

72105106+

type BuildDiscordComponentMessage = (params: {

107+

spec: DiscordComponentMessageSpec;

108+

fallbackText?: string;

109+

sessionKey?: string;

110+

agentId?: string;

111+

accountId?: string;

112+

}) => DiscordComponentBuildResult;

113+114+

type EditDiscordComponentMessage = (

115+

to: string,

116+

messageId: string,

117+

spec: DiscordComponentMessageSpec,

118+

opts: DiscordComponentSendOpts,

119+

) => Promise<DiscordComponentSendResult>;

120+121+

type RegisterBuiltDiscordComponentMessage = (params: {

122+

buildResult: DiscordComponentBuildResult;

123+

messageId: string;

124+

}) => void;

125+73126

type DiscordApiFacadeModule = {

74127

collectDiscordStatusIssues: (accounts: ChannelAccountSnapshot[]) => ChannelStatusIssue[];

75-

buildDiscordComponentMessage: typeof import("../../extensions/discord/api.js").buildDiscordComponentMessage;

128+

buildDiscordComponentMessage: BuildDiscordComponentMessage;

76129

discordOnboardingAdapter?: NonNullable<ChannelPlugin<ResolvedDiscordAccount>["setup"]>;

77130

inspectDiscordAccount: (params: { cfg: OpenClawConfig; accountId?: string | null }) => unknown;

78131

listDiscordAccountIds: (cfg: OpenClawConfig) => string[];

@@ -95,8 +148,8 @@ type DiscordApiFacadeModule = {

95148

};

9614997150

type DiscordRuntimeFacadeModule = {

98-

editDiscordComponentMessage: typeof import("../../extensions/discord/runtime-api.js").editDiscordComponentMessage;

99-

registerBuiltDiscordComponentMessage: typeof import("../../extensions/discord/runtime-api.js").registerBuiltDiscordComponentMessage;

151+

editDiscordComponentMessage: EditDiscordComponentMessage;

152+

registerBuiltDiscordComponentMessage: RegisterBuiltDiscordComponentMessage;

100153

autoBindSpawnedDiscordSubagent: (params: {

101154

cfg: OpenClawConfig;

102155

accountId?: string;