Skip to content

Commit 6944d70

Browse files
committed
test: narrow mattermost nested runtime barrel
1 parent 68b9ad4 commit 6944d70

2 files changed

Lines changed: 60 additions & 1 deletion

File tree

Lines changed: 56 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,56 @@
1-
export * from "../../runtime-api.js";
1+
export type {
2+
BaseProbeResult,
3+
ChannelAccountSnapshot,
4+
ChannelDirectoryEntry,
5+
ChatType,
6+
HistoryEntry,
7+
OpenClawConfig,
8+
OpenClawPluginApi,
9+
ReplyPayload,
10+
} from "openclaw/plugin-sdk/core";
11+
export type { RuntimeEnv } from "openclaw/plugin-sdk/runtime";
12+
export { buildAgentMediaPayload } from "openclaw/plugin-sdk/agent-media-payload";
13+
export { resolveAllowlistMatchSimple } from "openclaw/plugin-sdk/allow-from";
14+
export { logInboundDrop } from "openclaw/plugin-sdk/channel-inbound";
15+
export { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
16+
export {
17+
DM_GROUP_ACCESS_REASON,
18+
readStoreAllowFromForDmPolicy,
19+
resolveDmGroupAccessWithLists,
20+
resolveEffectiveAllowFromLists,
21+
} from "openclaw/plugin-sdk/channel-policy";
22+
export { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline";
23+
export { logTypingFailure } from "openclaw/plugin-sdk/channel-feedback";
24+
export {
25+
buildModelsProviderData,
26+
listSkillCommandsForAgents,
27+
resolveControlCommandGate,
28+
} from "openclaw/plugin-sdk/command-auth";
29+
export {
30+
isDangerousNameMatchingEnabled,
31+
resolveAllowlistProviderRuntimeGroupPolicy,
32+
resolveDefaultGroupPolicy,
33+
warnMissingProviderGroupPolicyFallbackOnce,
34+
} from "openclaw/plugin-sdk/config-runtime";
35+
export { evaluateSenderGroupAccessForPolicy } from "openclaw/plugin-sdk/group-access";
36+
export {
37+
getAgentScopedMediaLocalRoots,
38+
resolveChannelMediaMaxBytes,
39+
} from "openclaw/plugin-sdk/media-runtime";
40+
export { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
41+
export {
42+
DEFAULT_GROUP_HISTORY_LIMIT,
43+
buildPendingHistoryContextFromMap,
44+
clearHistoryEntriesIfEnabled,
45+
recordPendingHistoryEntryIfEnabled,
46+
} from "openclaw/plugin-sdk/reply-history";
47+
export { registerPluginHttpRoute } from "openclaw/plugin-sdk/webhook-targets";
48+
export {
49+
isRequestBodyLimitError,
50+
readRequestBodyWithLimit,
51+
} from "openclaw/plugin-sdk/webhook-ingress";
52+
export {
53+
isTrustedProxyAddress,
54+
parseStrictPositiveInteger,
55+
resolveClientIp,
56+
} from "openclaw/plugin-sdk/core";

extensions/mattermost/src/mattermost/send.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ vi.mock("../../runtime-api.js", () => ({
3838
loadOutboundMediaFromUrl: mockState.loadOutboundMediaFromUrl,
3939
}));
4040

41+
vi.mock("./runtime-api.js", () => ({
42+
loadOutboundMediaFromUrl: mockState.loadOutboundMediaFromUrl,
43+
}));
44+
4145
vi.mock("openclaw/plugin-sdk/config-runtime", () => ({
4246
requireRuntimeConfig: (cfg: unknown) => {
4347
if (cfg) {

0 commit comments

Comments
 (0)