refactor: dedupe chat envelope + daemon output + skills UI

This commit is contained in:
Peter Steinberger
2026-02-15 03:41:04 +00:00
parent 7a8bbefbb3
commit d31e0dee55
10 changed files with 131 additions and 165 deletions

8
src/daemon/output.ts Normal file
View 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)}`;
}