1
0

Add rewriteInProgress and llmBuffer to store and folder objects

This commit is contained in:
Victor Giers
2025-12-07 22:53:59 +01:00
parent 4b330d0a7f
commit 58e79310cc

10
main.js
View File

@@ -68,7 +68,9 @@ const store = new Store({
closeToTray: true, closeToTray: true,
needsRelocation: false, needsRelocation: false,
dailyCommitStats: {}, dailyCommitStats: {},
giteaToken: '' giteaToken: '',
rewriteInProgress: false,
llmBuffer: []
} }
}); });
@@ -81,7 +83,9 @@ folders = folders.map(f => {
const hasGit = fs.existsSync(path.join(f.path, '.git')); const hasGit = fs.existsSync(path.join(f.path, '.git'));
return { return {
...f, ...f,
monitoring: (f.monitoring && hasGit && !f.needsRelocation) monitoring: (f.monitoring && hasGit && !f.needsRelocation),
rewriteInProgress: f.rewriteInProgress || false,
llmBuffer: f.llmBuffer || []
}; };
}); });
store.set('folders', folders); store.set('folders', folders);
@@ -123,6 +127,8 @@ function createTray(win) {
if (Array.isArray(folders)) { if (Array.isArray(folders)) {
folders = folders.map(f => ({ folders = folders.map(f => ({
...f, ...f,
rewriteInProgress: f.rewriteInProgress || false,
llmBuffer: f.llmBuffer || [],
//linesChanged: 0, // zurück auf 0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! //linesChanged: 0, // zurück auf 0 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
//llmCandidates: [] // leeres Array //llmCandidates: [] // leeres Array
})); }));