From 5bd5da261732a1fce6a94ffa4d348dd6c80887cf Mon Sep 17 00:00:00 2001 From: Clawd Date: Sat, 28 Feb 2026 15:26:21 -0800 Subject: Fix .gitignore: ignore dist/, .claude-flow/, and sync-conflict files Remove accidentally committed build artifacts and working files. --- dist/main/db/projects.js | 28 ---------------------------- 1 file changed, 28 deletions(-) delete mode 100644 dist/main/db/projects.js (limited to 'dist/main/db/projects.js') diff --git a/dist/main/db/projects.js b/dist/main/db/projects.js deleted file mode 100644 index af36cc0..0000000 --- a/dist/main/db/projects.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.listProjects = listProjects; -exports.getProject = getProject; -exports.createProject = createProject; -exports.deleteProject = deleteProject; -const index_1 = require("./index"); -const uuid_1 = require("uuid"); -function listProjects() { - return (0, index_1.getDb)() - .prepare("SELECT * FROM projects ORDER BY updated_at DESC") - .all(); -} -function getProject(id) { - return (0, index_1.getDb)() - .prepare("SELECT * FROM projects WHERE id = ?") - .get(id); -} -function createProject(name, projectPath) { - const db = (0, index_1.getDb)(); - const id = (0, uuid_1.v4)(); - const now = Math.floor(Date.now() / 1000); - db.prepare("INSERT INTO projects (id, name, path, created_at, updated_at) VALUES (?, ?, ?, ?, ?)").run(id, name, projectPath, now, now); - return { id, name, path: projectPath, created_at: now, updated_at: now }; -} -function deleteProject(id) { - (0, index_1.getDb)().prepare("DELETE FROM projects WHERE id = ?").run(id); -} -- cgit v1.2.3