mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 10:41:37 +00:00
refactor: dedupe chat envelope + daemon output + skills UI
This commit is contained in:
8
src/daemon/output.ts
Normal file
8
src/daemon/output.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
import { colorize, isRich, theme } from "../terminal/theme.js";
|
||||
|
||||
export const toPosixPath = (value: string) => value.replace(/\\/g, "/");
|
||||
|
||||
export function formatLine(label: string, value: string): string {
|
||||
const rich = isRich();
|
||||
return `${colorize(rich, theme.muted, `${label}:`)} ${colorize(rich, theme.command, value)}`;
|
||||
}
|
||||
Reference in New Issue
Block a user