UNPKG

openclaw

Version:

Multi-channel AI gateway with extensible messaging integrations

16 lines (15 loc) • 631 B
import { n as sanitizeForLog } from "./ansi-DyIsQZAA.mjs"; //#region src/commands/doctor/emit-notes.ts /** Strip terminal control sequences from a potentially multi-line doctor note. */ function sanitizeDoctorNote(note) { return note.split("\n").map(sanitizeForLog).join("\n"); } function emitDoctorNotes(params) { for (const [title, notes] of [ ["Doctor changes", params.changeNotes], ["Doctor info", params.infoNotes], ["Doctor warnings", params.warningNotes] ]) for (const message of notes ?? []) params.note(sanitizeDoctorNote(message), title); } //#endregion export { sanitizeDoctorNote as n, emitDoctorNotes as t };