mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 05:20:43 +00:00
refactor: trim extension test hooks
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -648,9 +648,4 @@ export async function monitorIMessageProvider(opts: MonitorIMessageOpts = {}): P
|
||||
}
|
||||
}
|
||||
|
||||
export const __testing = {
|
||||
resolveIMessageRuntimeGroupPolicy: resolveOpenProviderRuntimeGroupPolicy,
|
||||
resolveDefaultGroupPolicy,
|
||||
};
|
||||
|
||||
export const resolveIMessageRuntimeGroupPolicy = resolveOpenProviderRuntimeGroupPolicy;
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -1,5 +1 @@
|
||||
export {
|
||||
listMattermostAccountIds,
|
||||
resolveMattermostAccount,
|
||||
type ResolvedMattermostAccount,
|
||||
} from "./mattermost/accounts.js";
|
||||
export { resolveMattermostAccount, type ResolvedMattermostAccount } from "./mattermost/accounts.js";
|
||||
|
||||
@@ -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"];
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
export {
|
||||
buildSecretInputSchema,
|
||||
hasConfiguredSecretInput,
|
||||
normalizeResolvedSecretInputString,
|
||||
normalizeSecretInputString,
|
||||
} from "openclaw/plugin-sdk/secret-input";
|
||||
|
||||
@@ -276,8 +276,3 @@ export async function resolveComposeServiceUrl(
|
||||
}
|
||||
return (await isHealthy(`${baseUrl}healthz`, fetchImpl)) ? baseUrl : null;
|
||||
}
|
||||
|
||||
export const __testing = {
|
||||
fetchHealthUrl,
|
||||
normalizeDockerServiceStatus,
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -63,7 +63,3 @@ export async function resolveQaNodeExecPath(params?: {
|
||||
}
|
||||
return resolved;
|
||||
}
|
||||
|
||||
export const __testing = {
|
||||
isNodeExecPath,
|
||||
};
|
||||
|
||||
@@ -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,
|
||||
};
|
||||
|
||||
@@ -273,8 +273,3 @@ export async function resolveComposeServiceUrl(
|
||||
}
|
||||
return (await isHealthy(`${baseUrl}healthz`, fetchImpl)) ? baseUrl : null;
|
||||
}
|
||||
|
||||
export const __testing = {
|
||||
fetchHealthUrl,
|
||||
normalizeDockerServiceStatus,
|
||||
};
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
export {
|
||||
buildPluginBindingResolvedText,
|
||||
parsePluginBindingApprovalCustomId,
|
||||
readChannelAllowFromStore,
|
||||
recordInboundSession,
|
||||
resolveConversationLabel,
|
||||
resolvePluginConversationBindingApproval,
|
||||
|
||||
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user