import { normalizeLowercaseStringOrEmpty } from "openclaw/plugin-sdk/text-runtime"; import {
mapStreamingModeToSlackLegacyDraftStreamMode,
resolveSlackNativeStreaming,
resolveSlackStreamingMode,
type SlackLegacyDraftStreamMode,
type StreamingMode,
} from "./streaming-compat.js";
export type SlackStreamMode = SlackLegacyDraftStreamMode;
export type SlackStreamingMode = StreamingMode; const DEFAULT_STREAM_MODE: SlackStreamMode = "replace";
export function resolveSlackStreamMode(raw: unknown): SlackStreamMode { if (typeof raw !== "string") { return DEFAULT_STREAM_MODE;
} const normalized = normalizeLowercaseStringOrEmpty(raw); if (normalized === "replace" || normalized === "status_final" || normalized === "append") { return normalized;
} return DEFAULT_STREAM_MODE;
}
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.