refactor: trim auto reply test helper exports

This commit is contained in:
Peter Steinberger
2026-05-01 12:55:19 +01:00
parent 25f832531c
commit 74bd209f48
3 changed files with 3 additions and 7 deletions

View File

@@ -3,7 +3,7 @@ import type { OpenClawConfig } from "../../config/types.openclaw.js";
import type { handleSubagentsSendAction } from "./commands-subagents/action-send.js";
import type { InlineDirectives } from "./directive-handling.js";
export function buildSubagentRun(): SubagentRunRecord {
function buildSubagentRun(): SubagentRunRecord {
return {
runId: "run-1",
childSessionKey: "agent:main:subagent:abc",

View File

@@ -132,16 +132,12 @@ export {
hookMocks,
internalHookMocks,
mocks,
pluginConversationBindingMocks,
sessionBindingMocks,
sessionStoreMocks,
replyMediaPathMocks,
runtimePluginMocks,
threadInfoMocks,
ttsMocks,
};
export function parseGenericThreadSessionInfo(sessionKey: string | undefined) {
function parseGenericThreadSessionInfo(sessionKey: string | undefined) {
const trimmed = sessionKey?.trim();
if (!trimmed) {
return { baseSessionKey: undefined, threadId: undefined };

View File

@@ -59,7 +59,7 @@ function resolveChannelAllowFrom(
return Array.isArray(allowFrom) ? allowFrom : undefined;
}
export const createCommandAuthRegistry = () =>
const createCommandAuthRegistry = () =>
createTestRegistry([
{
pluginId: "discord",