Tests: move cron direct-text delivery to dispatch seam

This commit is contained in:
Peter Steinberger
2026-04-07 09:21:33 +08:00
parent 64c18bc77b
commit d8dbacb900
3 changed files with 29 additions and 51 deletions

View File

@@ -1,10 +1,10 @@
import type { ChannelDoctorLegacyConfigRule } from "openclaw/plugin-sdk/channel-contract";
import type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime";
import {
ELEVENLABS_TALK_PROVIDER_ID,
isRecord,
migrateElevenLabsLegacyTalkConfig,
} from "./config-compat.js";
import { ELEVENLABS_TALK_PROVIDER_ID, migrateElevenLabsLegacyTalkConfig } from "./config-compat.js";
function isRecord(value: unknown): value is Record<string, unknown> {
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
}
export function hasLegacyTalkFields(value: unknown): boolean {
const talk = isRecord(value) ? value : null;