mirror of
https://github.com/siteboon/claudecodeui.git
synced 2026-05-31 00:55:42 +08:00
feat: implement basic file watcher and session updater
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
import { getConnection } from '@/shared/database/connection.js';
|
||||
|
||||
export const workspaceOriginalPathsDb = {
|
||||
createWorkspacePath(workspacePath: string): void {
|
||||
const db = getConnection();
|
||||
db.prepare(`
|
||||
INSERT INTO workspace_original_paths (workspace_path)
|
||||
VALUES (?)
|
||||
ON CONFLICT(workspace_path) DO NOTHING
|
||||
`).run(workspacePath);
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user