UNPKG

@jjdenhertog/ai-driven-development

Version:

AI-driven development workflow with learning capabilities for Claude

17 lines 712 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.logToSession = logToSession; const node_fs_1 = require("node:fs"); const node_path_1 = require("node:path"); const fs_extra_1 = require("fs-extra"); function logToSession(logPath, message) { const timestamp = new Date().toISOString(); const logEntry = `[${timestamp}] ${message}\n`; // Ensure the directory exists (0, fs_extra_1.ensureDirSync)((0, node_path_1.dirname)(logPath)); // Create file if it doesn't exist if (!(0, node_fs_1.existsSync)(logPath)) (0, node_fs_1.writeFileSync)(logPath, ''); (0, node_fs_1.appendFileSync)(logPath, logEntry); } //# sourceMappingURL=logToSession.js.map