codecrucible-synth
Version:
Production-Ready AI Development Platform with Multi-Voice Synthesis, Smithery MCP Integration, Enterprise Security, and Zero-Timeout Reliability
33 lines (31 loc) âĸ 928 B
text/typescript
export interface CLIOutputManager {
outputError: (message: string, exitCode?: number) => void;
outputInfo: (message: string) => void;
outputDebug: (message: string) => void;
outputProgress: (message: string) => void;
configure: (options: Record<string, unknown>) => void;
}
export function createCLIOutputManager(): CLIOutputManager {
return {
outputError: (message: string, exitCode?: number) => {
console.error('â', message);
if (exitCode !== undefined) {
process.exit(exitCode);
}
},
outputInfo: (message: string) => {
console.log('âšī¸', message);
},
outputDebug: (message: string) => {
if (process.env.DEBUG) {
console.log('đ', message);
}
},
outputProgress: (message: string) => {
console.log('âŗ', message);
},
configure: (_options: Record<string, unknown>) => {
// Configuration logic
},
};
}