openclaw
Version:
Multi-channel AI gateway with extensible messaging integrations
10 lines (9 loc) • 430 B
JavaScript
import { n as SILENT_REPLY_TOKEN } from "./tokens-CcE6ESvH.mjs";
//#region src/auto-reply/reply/mixed-silent-reply-tokens.ts
/** Removes one standalone leading control line without changing the remaining text. */
function stripMixedSilentReplyTokens(e) {
const t = `${SILENT_REPLY_TOKEN}\n`;
return e.slice(0, t.length).toUpperCase() === t ? e.slice(t.length) : null;
}
//#endregion
export { stripMixedSilentReplyTokens as t };