grepmax 0.26.37 → 0.26.39
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"name": "grepmax",
|
|
11
11
|
"source": "./plugins/grepmax",
|
|
12
12
|
"description": "Semantic code search for Claude Code. Automatically indexes your project and provides intelligent search capabilities.",
|
|
13
|
-
"version": "0.26.
|
|
13
|
+
"version": "0.26.39",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Robert Owens",
|
|
16
16
|
"email": "robowens@me.com"
|
|
@@ -304,10 +304,15 @@ class VectorDB {
|
|
|
304
304
|
(0, logger_1.log)("vectordb", `Periodic maintenance failed: ${err}`);
|
|
305
305
|
}
|
|
306
306
|
}));
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
// Compare against the promise actually stored, not `run`: `.finally()`
|
|
308
|
+
// returns a new promise, so checking `run` never matched and the field
|
|
309
|
+
// latched non-null forever — isMaintenanceActive() then read true for the
|
|
310
|
+
// daemon's whole life, silently blocking every recycle and idle shutdown.
|
|
311
|
+
const tracked = run.finally(() => {
|
|
312
|
+
if (this.maintenancePromise === tracked)
|
|
309
313
|
this.maintenancePromise = null;
|
|
310
314
|
});
|
|
315
|
+
this.maintenancePromise = tracked;
|
|
311
316
|
}, MAINTENANCE_INTERVAL_MS);
|
|
312
317
|
this.maintenanceTimer.unref();
|
|
313
318
|
}
|
package/package.json
CHANGED