chore: bump version to 0.1434

This commit is contained in:
arkon
2026-01-30 11:30:51 +01:00
parent da5d86a84f
commit 7dfd97df58
15 changed files with 1300 additions and 122 deletions
+18
View File
@@ -1882,6 +1882,8 @@ export class RalphTracker extends EventEmitter {
clear(): void {
// Clear debounce timers to prevent stale emissions after clear
this.clearDebounceTimers();
// Stop fix plan file watcher to prevent memory leak
this.stopWatchingFixPlan();
this._loopState = createInitialRalphTrackerState(); // This sets enabled: false
this._todos.clear();
this._taskNumberToContent.clear();
@@ -2765,4 +2767,20 @@ export class RalphTracker extends EventEmitter {
return this._checkpointIterations.includes(currentIteration) &&
currentIteration > this._lastCheckpointIteration;
}
/**
* Clean up all resources and release memory.
*
* Call this when the session is being destroyed to prevent memory leaks.
* Stops file watchers, clears all timers, data, and removes event listeners.
*/
destroy(): void {
this.clearDebounceTimers();
this.stopWatchingFixPlan();
this._todos.clear();
this._taskNumberToContent.clear();
this._completionPhraseCount.clear();
this._planTasks.clear();
this.removeAllListeners();
}
}