grepmax 0.26.19 → 0.26.20
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.20",
|
|
14
14
|
"author": {
|
|
15
15
|
"name": "Robert Owens",
|
|
16
16
|
"email": "robowens@me.com"
|
package/dist/commands/llm.js
CHANGED
|
@@ -93,7 +93,11 @@ exports.llm
|
|
|
93
93
|
try {
|
|
94
94
|
const { ensureDaemonRunning, sendDaemonCommand } = yield Promise.resolve().then(() => __importStar(require("../lib/utils/daemon-client")));
|
|
95
95
|
if (!(yield ensureDaemonRunning())) {
|
|
96
|
-
|
|
96
|
+
const { autostartDisabledUndo } = yield Promise.resolve().then(() => __importStar(require("../lib/utils/autostart")));
|
|
97
|
+
const undo = autostartDisabledUndo();
|
|
98
|
+
console.error(undo
|
|
99
|
+
? `Daemon autostart is disabled and the LLM server needs the daemon. Re-enable with: ${undo}`
|
|
100
|
+
: "Failed to start daemon");
|
|
97
101
|
process.exitCode = 1;
|
|
98
102
|
return;
|
|
99
103
|
}
|
package/dist/commands/repair.js
CHANGED
|
@@ -14,6 +14,7 @@ const commander_1 = require("commander");
|
|
|
14
14
|
const config_1 = require("../config");
|
|
15
15
|
const index_config_1 = require("../lib/index/index-config");
|
|
16
16
|
const vector_db_1 = require("../lib/store/vector-db");
|
|
17
|
+
const autostart_1 = require("../lib/utils/autostart");
|
|
17
18
|
const daemon_client_1 = require("../lib/utils/daemon-client");
|
|
18
19
|
const exit_1 = require("../lib/utils/exit");
|
|
19
20
|
const project_registry_1 = require("../lib/utils/project-registry");
|
|
@@ -38,8 +39,12 @@ Examples:
|
|
|
38
39
|
try {
|
|
39
40
|
if (opts.rebuild) {
|
|
40
41
|
const running = yield (0, daemon_client_1.ensureDaemonRunning)();
|
|
41
|
-
if (!running)
|
|
42
|
-
|
|
42
|
+
if (!running) {
|
|
43
|
+
const undo = (0, autostart_1.autostartDisabledUndo)();
|
|
44
|
+
throw new Error(undo
|
|
45
|
+
? `daemon autostart is disabled and --rebuild needs the daemon; re-enable with: ${undo}`
|
|
46
|
+
: "failed to start the gmax daemon");
|
|
47
|
+
}
|
|
43
48
|
const ping = yield (0, daemon_client_1.sendDaemonCommand)({ cmd: "ping" }, { timeoutMs: 10000 });
|
|
44
49
|
const capabilities = ping.capabilities && typeof ping.capabilities === "object"
|
|
45
50
|
? ping.capabilities
|
|
@@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.autostartDisabledReason = autostartDisabledReason;
|
|
37
37
|
exports.isAutostartDisabled = isAutostartDisabled;
|
|
38
|
+
exports.autostartDisabledUndo = autostartDisabledUndo;
|
|
38
39
|
exports.autostartDisabledNotice = autostartDisabledNotice;
|
|
39
40
|
const fs = __importStar(require("node:fs"));
|
|
40
41
|
const config_1 = require("../../config");
|
|
@@ -70,12 +71,18 @@ function isAutostartDisabled() {
|
|
|
70
71
|
* kill switch is on, or null when it isn't. Names the specific undo step so
|
|
71
72
|
* the message is actionable whichever way autostart was disabled.
|
|
72
73
|
*/
|
|
73
|
-
|
|
74
|
+
/** The shell command that re-enables autostart, or null when it is not disabled. */
|
|
75
|
+
function autostartDisabledUndo() {
|
|
74
76
|
const reason = autostartDisabledReason();
|
|
75
77
|
if (!reason)
|
|
76
78
|
return null;
|
|
77
|
-
|
|
79
|
+
return reason === "env"
|
|
78
80
|
? "unset GMAX_NO_AUTOSTART"
|
|
79
81
|
: `rm ${config_1.PATHS.autostartDisabledFile}`;
|
|
82
|
+
}
|
|
83
|
+
function autostartDisabledNotice() {
|
|
84
|
+
const undo = autostartDisabledUndo();
|
|
85
|
+
if (!undo)
|
|
86
|
+
return null;
|
|
80
87
|
return `Daemon autostart is disabled — running in-process. Re-enable with: ${undo}`;
|
|
81
88
|
}
|
package/package.json
CHANGED