import type { ChannelOutboundAdapter } from "openclaw/plugin-sdk/channel-contract"; import type { ChannelPlugin } from "openclaw/plugin-sdk/core"; import { resolveOutboundSendDep } from "openclaw/plugin-sdk/outbound-runtime"; import { collectStatusIssuesFromLastError } from "openclaw/plugin-sdk/status-helpers"; import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime";
function normalizeIMessageTestHandle(raw: string): string {
let trimmed = raw.trim(); if (!trimmed) { return"";
}
while (trimmed) { const lowered = normalizeLowercaseStringOrEmpty(trimmed); if (lowered.startsWith("imessage:")) {
trimmed = trimmed.slice("imessage:".length).trim(); continue;
} if (lowered.startsWith("sms:")) {
trimmed = trimmed.slice("sms:".length).trim(); continue;
} if (lowered.startsWith("auto:")) {
trimmed = trimmed.slice("auto:".length).trim(); continue;
} break;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.