refactor: trim extension test hooks

This commit is contained in:
Peter Steinberger
2026-05-01 14:32:25 +01:00
parent f221bc85a0
commit 0fe007f71b
15 changed files with 2 additions and 69 deletions

View File

@@ -1,3 +1 @@
export { createDedupeCache } from "openclaw/plugin-sdk/core";
export { createPersistentDedupe } from "openclaw/plugin-sdk/persistent-dedupe";
export { readJsonFileWithFallback } from "openclaw/plugin-sdk/json-store";

View File

@@ -648,9 +648,4 @@ export async function monitorIMessageProvider(opts: MonitorIMessageOpts = {}): P
}
}
export const __testing = {
resolveIMessageRuntimeGroupPolicy: resolveOpenProviderRuntimeGroupPolicy,
resolveDefaultGroupPolicy,
};
export const resolveIMessageRuntimeGroupPolicy = resolveOpenProviderRuntimeGroupPolicy;

View File

@@ -33,15 +33,11 @@ export {
warnMissingProviderGroupPolicyFallbackOnce,
} from "openclaw/plugin-sdk/runtime-group-policy";
export { evaluateSenderGroupAccessForPolicy } from "openclaw/plugin-sdk/group-access";
export {
getAgentScopedMediaLocalRoots,
resolveChannelMediaMaxBytes,
} from "openclaw/plugin-sdk/media-runtime";
export { 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";

View File

@@ -1,5 +1 @@
export {
listMattermostAccountIds,
resolveMattermostAccount,
type ResolvedMattermostAccount,
} from "./mattermost/accounts.js";
export { resolveMattermostAccount, type ResolvedMattermostAccount } from "./mattermost/accounts.js";

View File

@@ -16,8 +16,6 @@ import { resolveMSTeamsAllowlistMatch, resolveMSTeamsRouteConfig } from "../poli
import { getMSTeamsRuntime } from "../runtime.js";
import type { MSTeamsTurnContext } from "../sdk-types.js";
export type MSTeamsResolvedSenderAccess = Awaited<ReturnType<typeof resolveMSTeamsSenderAccess>>;
export async function resolveMSTeamsSenderAccess(params: {
cfg: OpenClawConfig;
activity: MSTeamsTurnContext["activity"];

View File

@@ -1,6 +1,4 @@
export {
buildSecretInputSchema,
hasConfiguredSecretInput,
normalizeResolvedSecretInputString,
normalizeSecretInputString,
} from "openclaw/plugin-sdk/secret-input";

View File

@@ -276,8 +276,3 @@ export async function resolveComposeServiceUrl(
}
return (await isHealthy(`${baseUrl}healthz`, fetchImpl)) ? baseUrl : null;
}
export const __testing = {
fetchHealthUrl,
normalizeDockerServiceStatus,
};

View File

@@ -1,4 +1,3 @@
import type { Command } from "commander";
import {
createLazyCliRuntimeLoader,
createLiveTransportQaCliRegistration,
@@ -31,7 +30,3 @@ export const discordQaCliRegistration: LiveTransportQaCliRegistration =
sutAccountHelp: "Temporary Discord account id inside the QA gateway config",
run: runQaDiscord,
});
export function registerDiscordQaCli(qa: Command) {
discordQaCliRegistration.register(qa);
}

View File

@@ -518,15 +518,3 @@ export function startQaCredentialLeaseHeartbeat(
},
};
}
export const __testing = {
DEFAULT_ACQUIRE_TIMEOUT_MS,
DEFAULT_ENDPOINT_PREFIX,
DEFAULT_HEARTBEAT_INTERVAL_MS,
DEFAULT_LEASE_TTL_MS,
computeAcquireBackoffMs,
normalizeQaCredentialRole,
normalizeQaCredentialSource,
parsePositiveIntegerEnv,
resolveConvexCredentialBrokerConfig,
};

View File

@@ -1,4 +1,3 @@
import type { Command } from "commander";
import {
createLazyCliRuntimeLoader,
createLiveTransportQaCliRegistration,
@@ -31,7 +30,3 @@ export const telegramQaCliRegistration: LiveTransportQaCliRegistration =
sutAccountHelp: "Temporary Telegram account id inside the QA gateway config",
run: runQaTelegram,
});
export function registerTelegramQaCli(qa: Command) {
telegramQaCliRegistration.register(qa);
}

View File

@@ -63,7 +63,3 @@ export async function resolveQaNodeExecPath(params?: {
}
return resolved;
}
export const __testing = {
isNodeExecPath,
};

View File

@@ -496,13 +496,3 @@ export async function listQaCredentialSets(options: ListQaCredentialSetsOptions)
},
});
}
export const __testing = {
DEFAULT_ENDPOINT_PREFIX,
DEFAULT_HTTP_TIMEOUT_MS,
normalizeConvexSiteUrl,
normalizeEndpointPrefix,
normalizeStatus,
parsePositiveIntegerEnv,
resolveAdminConfig,
};

View File

@@ -273,8 +273,3 @@ export async function resolveComposeServiceUrl(
}
return (await isHealthy(`${baseUrl}healthz`, fetchImpl)) ? baseUrl : null;
}
export const __testing = {
fetchHealthUrl,
normalizeDockerServiceStatus,
};

View File

@@ -1,7 +1,6 @@
export {
buildPluginBindingResolvedText,
parsePluginBindingApprovalCustomId,
readChannelAllowFromStore,
recordInboundSession,
resolveConversationLabel,
resolvePluginConversationBindingApproval,

View File

@@ -1,7 +1,6 @@
export {
loadSessionStore,
resolveSessionStoreEntry,
resolveStorePath,
} from "openclaw/plugin-sdk/session-store-runtime";
export { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
export { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/media-runtime";