From 74bd209f4850087541148b99368f8ca38bf9a706 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Fri, 1 May 2026 12:55:19 +0100 Subject: [PATCH] refactor: trim auto reply test helper exports --- src/auto-reply/reply/commands-subagents.test-helpers.ts | 2 +- .../reply/dispatch-from-config.shared.test-harness.ts | 6 +----- .../test-helpers/command-auth-registry-fixture.ts | 2 +- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/auto-reply/reply/commands-subagents.test-helpers.ts b/src/auto-reply/reply/commands-subagents.test-helpers.ts index cbf9f117423..91beb33f2e5 100644 --- a/src/auto-reply/reply/commands-subagents.test-helpers.ts +++ b/src/auto-reply/reply/commands-subagents.test-helpers.ts @@ -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", diff --git a/src/auto-reply/reply/dispatch-from-config.shared.test-harness.ts b/src/auto-reply/reply/dispatch-from-config.shared.test-harness.ts index 9124e5e6093..e14f40dbeae 100644 --- a/src/auto-reply/reply/dispatch-from-config.shared.test-harness.ts +++ b/src/auto-reply/reply/dispatch-from-config.shared.test-harness.ts @@ -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 }; diff --git a/src/auto-reply/test-helpers/command-auth-registry-fixture.ts b/src/auto-reply/test-helpers/command-auth-registry-fixture.ts index ac8f4c1efd5..31f0bf7ae8b 100644 --- a/src/auto-reply/test-helpers/command-auth-registry-fixture.ts +++ b/src/auto-reply/test-helpers/command-auth-registry-fixture.ts @@ -59,7 +59,7 @@ function resolveChannelAllowFrom( return Array.isArray(allowFrom) ? allowFrom : undefined; } -export const createCommandAuthRegistry = () => +const createCommandAuthRegistry = () => createTestRegistry([ { pluginId: "discord",