Skip to content

Commit e34bff2

Browse files
authored
refactor(plugin-sdk): collapse internal config-schema facade usage onto one module (#104665)
1 parent 8310c56 commit e34bff2

27 files changed

Lines changed: 134 additions & 61 deletions

extensions/discord/config-api.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
// Discord API module exposes the plugin public contract.
2-
export {
3-
buildChannelConfigSchema,
4-
DiscordConfigSchema,
5-
} from "openclaw/plugin-sdk/bundled-channel-config-schema";
2+
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
3+
export { DiscordConfigSchema } from "openclaw/plugin-sdk/bundled-channel-config-schema";

extensions/feishu/src/channel-runtime-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export type {
88

99
export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-resolution";
1010
export { createActionGate } from "openclaw/plugin-sdk/channel-actions";
11-
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
11+
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
1212
export {
1313
buildProbeChannelStatusSummary,
1414
createDefaultChannelRuntimeState,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// Googlechat API module exposes the plugin public contract.
2+
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
23
export { GoogleChatConfigSchema } from "openclaw/plugin-sdk/bundled-channel-config-schema";
3-
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";

extensions/googlechat/runtime-api.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export {
99
readReactionParams,
1010
readStringParam,
1111
} from "openclaw/plugin-sdk/channel-actions";
12-
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
12+
export { buildChannelConfigSchema, GoogleChatConfigSchema } from "./config-api.js";
1313
export type {
1414
ChannelMessageActionAdapter,
1515
ChannelMessageActionName,
@@ -25,7 +25,6 @@ export { createChannelMessageReplyPipeline } from "openclaw/plugin-sdk/channel-o
2525
export { PAIRING_APPROVED_MESSAGE } from "openclaw/plugin-sdk/channel-status";
2626
export { chunkTextForOutbound } from "openclaw/plugin-sdk/text-chunking";
2727
export type { OpenClawConfig } from "openclaw/plugin-sdk/config-contracts";
28-
export { GoogleChatConfigSchema } from "openclaw/plugin-sdk/bundled-channel-config-schema";
2928
export {
3029
GROUP_POLICY_BLOCKED_LABEL,
3130
resolveAllowlistProviderRuntimeGroupPolicy,

extensions/imessage/config-api.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
// Imessage API module exposes the plugin public contract.
2-
export {
3-
buildChannelConfigSchema,
4-
IMessageConfigSchema,
5-
} from "openclaw/plugin-sdk/bundled-channel-config-schema";
2+
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
3+
export { IMessageConfigSchema } from "openclaw/plugin-sdk/bundled-channel-config-schema";

extensions/irc/src/runtime-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export type {
1717
} from "openclaw/plugin-sdk/config-contracts";
1818
export type { OutboundReplyPayload } from "openclaw/plugin-sdk/reply-payload";
1919
export { DEFAULT_ACCOUNT_ID } from "openclaw/plugin-sdk/account-id";
20-
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
20+
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
2121
export {
2222
PAIRING_APPROVED_MESSAGE,
2323
buildBaseChannelStatusSummary,

extensions/matrix/src/config-schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Matrix helper module supports config schema behavior.
2-
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
32
import {
43
AllowFromListSchema,
4+
buildChannelConfigSchema,
55
buildNestedDmConfigSchema,
66
ContextVisibilityModeSchema,
77
GroupPolicySchema,

extensions/matrix/src/runtime-api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export {
1414
readStringParam,
1515
ToolAuthorizationError,
1616
} from "openclaw/plugin-sdk/channel-actions";
17-
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
17+
export { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
1818
export type { ChannelPlugin } from "openclaw/plugin-sdk/channel-core";
1919
export type {
2020
BaseProbeResult,

extensions/mattermost/src/config-schema-core.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
GroupPolicySchema,
66
MarkdownConfigSchema,
77
requireOpenAllowFrom,
8-
} from "openclaw/plugin-sdk/channel-config-primitives";
8+
} from "openclaw/plugin-sdk/channel-config-schema";
99
import { z } from "zod";
1010
import { buildSecretInputSchema } from "./secret-input.js";
1111

extensions/mattermost/src/config-surface.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Mattermost helper module supports config surface behavior.
2-
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-primitives";
2+
import { buildChannelConfigSchema } from "openclaw/plugin-sdk/channel-config-schema";
33
import { MattermostConfigSchema } from "./config-schema-core.js";
44
import { mattermostChannelConfigUiHints } from "./config-ui-hints.js";
55

0 commit comments

Comments
 (0)