mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-07 15:30:44 +00:00
11 lines
432 B
TypeScript
11 lines
432 B
TypeScript
export const EXEC_NO_OUTPUT_PLACEHOLDER = "(no output)";
|
|
|
|
export function renderExecOutputText(value: string | undefined): string {
|
|
return value || EXEC_NO_OUTPUT_PLACEHOLDER;
|
|
}
|
|
|
|
export function renderExecUpdateText(params: { tailText?: string; warnings: string[] }): string {
|
|
const warningText = params.warnings.length ? `${params.warnings.join("\n")}\n\n` : "";
|
|
return warningText + renderExecOutputText(params.tailText);
|
|
}
|