test: narrow mattermost nested runtime barrel

This commit is contained in:
Peter Steinberger
2026-04-24 12:43:06 +01:00
parent 68b9ad4205
commit 6944d7025d
2 changed files with 60 additions and 1 deletions

View File

@@ -1 +1,56 @@
export * from "../../runtime-api.js";
export type {
BaseProbeResult,
ChannelAccountSnapshot,
ChannelDirectoryEntry,
ChatType,
HistoryEntry,
OpenClawConfig,
OpenClawPluginApi,
ReplyPayload,
} from "openclaw/plugin-sdk/core";
export type { RuntimeEnv } from "openclaw/plugin-sdk/runtime";
export { buildAgentMediaPayload } from "openclaw/plugin-sdk/agent-media-payload";
export { resolveAllowlistMatchSimple } from "openclaw/plugin-sdk/allow-from";
export { logInboundDrop } from "openclaw/plugin-sdk/channel-inbound";
export { createChannelPairingController } from "openclaw/plugin-sdk/channel-pairing";
export {
DM_GROUP_ACCESS_REASON,
readStoreAllowFromForDmPolicy,
resolveDmGroupAccessWithLists,
resolveEffectiveAllowFromLists,
} from "openclaw/plugin-sdk/channel-policy";
export { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline";
export { logTypingFailure } from "openclaw/plugin-sdk/channel-feedback";
export {
buildModelsProviderData,
listSkillCommandsForAgents,
resolveControlCommandGate,
} from "openclaw/plugin-sdk/command-auth";
export {
isDangerousNameMatchingEnabled,
resolveAllowlistProviderRuntimeGroupPolicy,
resolveDefaultGroupPolicy,
warnMissingProviderGroupPolicyFallbackOnce,
} from "openclaw/plugin-sdk/config-runtime";
export { evaluateSenderGroupAccessForPolicy } from "openclaw/plugin-sdk/group-access";
export {
getAgentScopedMediaLocalRoots,
resolveChannelMediaMaxBytes,
} from "openclaw/plugin-sdk/media-runtime";
export { loadOutboundMediaFromUrl } from "openclaw/plugin-sdk/outbound-media";
export {
DEFAULT_GROUP_HISTORY_LIMIT,
buildPendingHistoryContextFromMap,
clearHistoryEntriesIfEnabled,
recordPendingHistoryEntryIfEnabled,
} from "openclaw/plugin-sdk/reply-history";
export { registerPluginHttpRoute } from "openclaw/plugin-sdk/webhook-targets";
export {
isRequestBodyLimitError,
readRequestBodyWithLimit,
} from "openclaw/plugin-sdk/webhook-ingress";
export {
isTrustedProxyAddress,
parseStrictPositiveInteger,
resolveClientIp,
} from "openclaw/plugin-sdk/core";

View File

@@ -38,6 +38,10 @@ vi.mock("../../runtime-api.js", () => ({
loadOutboundMediaFromUrl: mockState.loadOutboundMediaFromUrl,
}));
vi.mock("./runtime-api.js", () => ({
loadOutboundMediaFromUrl: mockState.loadOutboundMediaFromUrl,
}));
vi.mock("openclaw/plugin-sdk/config-runtime", () => ({
requireRuntimeConfig: (cfg: unknown) => {
if (cfg) {