mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 07:40:44 +00:00
refactor: trim auto reply test helper exports
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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 };
|
||||
|
||||
@@ -59,7 +59,7 @@ function resolveChannelAllowFrom(
|
||||
return Array.isArray(allowFrom) ? allowFrom : undefined;
|
||||
}
|
||||
|
||||
export const createCommandAuthRegistry = () =>
|
||||
const createCommandAuthRegistry = () =>
|
||||
createTestRegistry([
|
||||
{
|
||||
pluginId: "discord",
|
||||
|
||||
Reference in New Issue
Block a user