UNPKG

cmte

Version:

Design by Committee™ except it's just you and LLMs

26 lines 670 B
export class OutputManager { constructor(showThinking, showPrompts) { this.showThinking = showThinking; this.showPrompts = showPrompts; } getOutputPath(params) { const { basePath, isThinking, thinkingIndex } = params; if (!isThinking) { return `${basePath}.o.md`; } return this.showThinking ? `${basePath}-thinking-${thinkingIndex + 1}.o.md` : null; } getPromptPath(params) { if (!this.showPrompts) return null; const { basePath, isThinking, thinkingIndex } = params; return isThinking ? `${basePath}-thinking-${thinkingIndex + 1}.prompt.md` : `${basePath}.prompt.md`; } }