@jjdenhertog/ai-driven-development
Version:
AI-driven development workflow with learning capabilities for Claude
20 lines • 718 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.createSession = createSession;
const fs_extra_1 = require("fs-extra");
const node_path_1 = require("node:path");
const config_1 = require("../../config");
function createSession(taskId) {
const timestamp = new Date()
.toISOString()
.replace(/[.:]/g, '-');
// Always use absolute path to worktree output directory
const logsDir = (0, node_path_1.join)(config_1.TASKS_OUTPUT_DIR, taskId, timestamp);
(0, fs_extra_1.ensureDirSync)(logsDir);
const logPath = (0, node_path_1.join)(logsDir, `aidev.jsonl`);
return {
logsDir,
logPath
};
}
//# sourceMappingURL=createSession.js.map