grepmax 0.26.74 → 0.26.75
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.75",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Robert Owens",
|
|
16
16
|
"email": "robowens@me.com"
|
package/README.md
CHANGED
|
@@ -528,7 +528,7 @@ The package includes a separate prune-only helper with pinned Lance 12 dependenc
|
|
|
528
528
|
|
|
529
529
|
`gmax recover --table /path/to/lancedb/chunks.lance --json` reads the durable recovery receipt without starting a daemon or preparing Python. `--check` samples admission without pruning. `--prune --version <current-version> --cutoff <absolute-ISO-timestamp>` explicitly requests one offline prune. A prior uncertain attempt requires `--acknowledge-uncertain <attempt-id>` after inspection. Recovery never creates/clears quarantine, stops other owners, retries automatically or enables rewriting.
|
|
530
530
|
|
|
531
|
-
Production recovery currently requires macOS, a persistent `autostart-disabled` file in the selected store home, and closed store owners. Recovery alone uses known healthy memory/kernel pressure
|
|
531
|
+
Production recovery currently requires macOS, a persistent `autostart-disabled` file in the selected store home, and closed store owners. Recovery alone uses known healthy memory/kernel pressure and the shared aggregate resource budget; normal development retains its configured guard policy. Immediately free RAM is measured for diagnostics but has no fixed minimum: macOS can reclaim cached memory, so a low free-page count alone must not prevent cleanup. The helper reserves 512 MiB of admission capacity; this is not an OS-enforced footprint cap. Recovery samples have an eight-second total ceiling, including the established five-second kernel probe allowance, with fresh sampling at deletion admission and five-second heartbeat scheduling. Unknown, stale, warning or critical measurements refuse/interrupt recovery. Pruning needs at least 1 MiB of measured metadata disk headroom, not full-table rewrite space. Initial wheel setup requires 512 MiB; an existing environment is checked against the lock offline without that download-space requirement.
|
|
532
532
|
|
|
533
533
|
The child waits for launch and deletion admission tokens, with verified helper PID/start identity recorded as the primary exclusive owner. Existing readers retain exclusion if the parent dies while the helper is alive. Current/tagged/post-cutoff metadata is verified after pruning; recovery refuses more than 256 protected versions before deletion to bound verification. Interrupted attempts require verification and explicit acknowledgement before retry. Linux/APFS fixtures exercise native retention and interruption; supported production host admission is tested separately and still runs freshly for each operation.
|
|
534
534
|
|
|
@@ -65,10 +65,15 @@ function assertRecoveryAdmission(storeDir, budget) {
|
|
|
65
65
|
const snapshot = budget.check();
|
|
66
66
|
if ((snapshot === null || snapshot === void 0 ? void 0 : snapshot.platform) !== "darwin")
|
|
67
67
|
throw new Error("Production recovery admission currently requires macOS host measurements");
|
|
68
|
+
// os.freemem() reports immediately free pages, not all memory macOS can
|
|
69
|
+
// reclaim. Requiring an idle 512MiB here refused cleanup on a healthy host
|
|
70
|
+
// as the file cache changed. Strict pressure/aggregate checks above and the
|
|
71
|
+
// shared 512MiB reservation below govern helper admission; free pages remain
|
|
72
|
+
// measured diagnostics, never a substitute for those checks.
|
|
68
73
|
if (snapshot.physicalFreeMb === null ||
|
|
69
74
|
!Number.isFinite(snapshot.physicalFreeMb) ||
|
|
70
|
-
snapshot.physicalFreeMb <
|
|
71
|
-
throw new Error("
|
|
75
|
+
snapshot.physicalFreeMb < 0)
|
|
76
|
+
throw new Error("Measured physical free memory is unavailable");
|
|
72
77
|
return snapshot;
|
|
73
78
|
}
|
|
74
79
|
function admitPrune(storeDir, budget = createRecoveryBudget()) {
|
package/package.json
CHANGED