mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 06:00:43 +00:00
refactor: trim messaging runtime barrels
This commit is contained in:
@@ -3,9 +3,7 @@ export {
|
||||
ensurePortAvailable,
|
||||
extractErrorCode,
|
||||
formatErrorMessage,
|
||||
generateSecureToken,
|
||||
hasProxyEnvConfigured,
|
||||
isBlockedHostnameOrIp,
|
||||
isNotFoundPathError,
|
||||
isPathInside,
|
||||
isPrivateNetworkAllowedByPolicy,
|
||||
@@ -14,7 +12,6 @@ export {
|
||||
openFileWithinRoot,
|
||||
redactSensitiveText,
|
||||
resolvePinnedHostnameWithPolicy,
|
||||
resolvePreferredOpenClawTmpDir,
|
||||
safeEqualSecret,
|
||||
SafeOpenError,
|
||||
SsrFBlockedError,
|
||||
|
||||
@@ -208,8 +208,10 @@ vi.mock("./monitor/reply.runtime.js", async () => {
|
||||
const actual = await vi.importActual<typeof import("./monitor/reply.runtime.js")>(
|
||||
"./monitor/reply.runtime.js",
|
||||
);
|
||||
const replyResolver: typeof actual.getReplyFromConfig = (...args) =>
|
||||
slackTestState.replyMock(...args) as ReturnType<typeof actual.getReplyFromConfig>;
|
||||
type DispatchParams = Parameters<typeof actual.dispatchInboundMessage>[0];
|
||||
type ReplyResolver = NonNullable<DispatchParams["replyResolver"]>;
|
||||
const replyResolver: ReplyResolver = (...args) =>
|
||||
slackTestState.replyMock(...args) as ReturnType<ReplyResolver>;
|
||||
return {
|
||||
...actual,
|
||||
dispatchInboundMessage: (params: Parameters<typeof actual.dispatchInboundMessage>[0]) =>
|
||||
@@ -217,7 +219,6 @@ vi.mock("./monitor/reply.runtime.js", async () => {
|
||||
...params,
|
||||
replyResolver,
|
||||
}),
|
||||
getReplyFromConfig: replyResolver,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
export {
|
||||
chunkMarkdownTextWithMode,
|
||||
createReplyDispatcherWithTyping,
|
||||
createReplyReferencePlanner,
|
||||
dispatchInboundMessage,
|
||||
finalizeInboundContext,
|
||||
getReplyFromConfig,
|
||||
isSilentReplyText,
|
||||
resolveTextChunkLimit,
|
||||
settleReplyDispatcher,
|
||||
SILENT_REPLY_TOKEN,
|
||||
} from "openclaw/plugin-sdk/reply-runtime";
|
||||
|
||||
@@ -1,8 +1,6 @@
|
||||
export {
|
||||
evaluateSessionFreshness,
|
||||
loadSessionStore,
|
||||
recordSessionMetaFromInbound,
|
||||
resolveGroupSessionKey,
|
||||
resolveSessionKey,
|
||||
resolveSessionResetPolicy,
|
||||
resolveSessionResetType,
|
||||
@@ -16,7 +14,3 @@ export {
|
||||
getRuntimeConfigSourceSnapshot,
|
||||
} from "openclaw/plugin-sdk/runtime-config-snapshot";
|
||||
export { resolveChannelContextVisibilityMode } from "openclaw/plugin-sdk/context-visibility-runtime";
|
||||
export {
|
||||
resolveChannelGroupPolicy,
|
||||
resolveChannelGroupRequireMention,
|
||||
} from "openclaw/plugin-sdk/channel-policy";
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
export { resolveIdentityNamePrefix } from "openclaw/plugin-sdk/agent-runtime";
|
||||
export {
|
||||
formatInboundEnvelope,
|
||||
resolveEnvelopeFormatOptions,
|
||||
} from "openclaw/plugin-sdk/channel-envelope";
|
||||
export { formatInboundEnvelope } from "openclaw/plugin-sdk/channel-envelope";
|
||||
export { resolveInboundSessionEnvelopeContext } from "openclaw/plugin-sdk/channel-inbound";
|
||||
export { toLocationContext } from "openclaw/plugin-sdk/channel-location";
|
||||
export { createChannelReplyPipeline } from "openclaw/plugin-sdk/channel-reply-pipeline";
|
||||
export { shouldComputeCommandAuthorized } from "openclaw/plugin-sdk/command-detection";
|
||||
export {
|
||||
recordSessionMetaFromInbound,
|
||||
resolveChannelContextVisibilityMode,
|
||||
} from "../config.runtime.js";
|
||||
export { resolveChannelContextVisibilityMode } from "../config.runtime.js";
|
||||
export { getAgentScopedMediaLocalRoots } from "openclaw/plugin-sdk/media-runtime";
|
||||
export type LoadConfigFn = typeof import("../config.runtime.js").getRuntimeConfig;
|
||||
export {
|
||||
@@ -31,10 +25,6 @@ export {
|
||||
type resolveAgentRoute,
|
||||
} from "openclaw/plugin-sdk/routing";
|
||||
export { logVerbose, shouldLogVerbose, type getChildLogger } from "openclaw/plugin-sdk/runtime-env";
|
||||
export {
|
||||
readStoreAllowFromForDmPolicy,
|
||||
resolveDmGroupAccessWithCommandGate,
|
||||
resolvePinnedMainDmOwnerFromAllowlist,
|
||||
} from "openclaw/plugin-sdk/security-runtime";
|
||||
export { resolvePinnedMainDmOwnerFromAllowlist } from "openclaw/plugin-sdk/security-runtime";
|
||||
export { resolveMarkdownTableMode } from "openclaw/plugin-sdk/markdown-table-runtime";
|
||||
export { jidToE164, normalizeE164 } from "../../text-runtime.js";
|
||||
|
||||
Reference in New Issue
Block a user