grepmax 0.7.38 → 0.7.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.
package/dist/commands/setup.js
CHANGED
|
@@ -118,29 +118,12 @@ exports.setup = new commander_1.Command("setup")
|
|
|
118
118
|
return;
|
|
119
119
|
}
|
|
120
120
|
const selectedTier = config_1.MODEL_TIERS[modelTier];
|
|
121
|
-
// Step 5: Embed mode
|
|
121
|
+
// Step 5: Embed mode — auto-detect, no prompt needed
|
|
122
122
|
const isAppleSilicon = process.arch === "arm64" && process.platform === "darwin";
|
|
123
|
-
const embedMode =
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
value: "gpu",
|
|
128
|
-
label: "Yes — use GPU acceleration",
|
|
129
|
-
hint: "~3x faster indexing and search via MLX",
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
value: "cpu",
|
|
133
|
-
label: "No — use CPU",
|
|
134
|
-
hint: "Works on all platforms (Intel, Linux, Windows)",
|
|
135
|
-
},
|
|
136
|
-
],
|
|
137
|
-
initialValue: (_c = existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.embedMode) !== null && _c !== void 0 ? _c : (isAppleSilicon ? "gpu" : "cpu"),
|
|
138
|
-
});
|
|
139
|
-
if (p.isCancel(embedMode)) {
|
|
140
|
-
p.cancel("Setup cancelled");
|
|
141
|
-
yield (0, exit_1.gracefulExit)();
|
|
142
|
-
return;
|
|
143
|
-
}
|
|
123
|
+
const embedMode = (_c = existingConfig === null || existingConfig === void 0 ? void 0 : existingConfig.embedMode) !== null && _c !== void 0 ? _c : (isAppleSilicon ? "gpu" : "cpu");
|
|
124
|
+
p.log.info(isAppleSilicon
|
|
125
|
+
? "Apple Silicon detected — using GPU acceleration (MLX)"
|
|
126
|
+
: "Using CPU embeddings (ONNX)");
|
|
144
127
|
const mlxModel = embedMode === "gpu" ? selectedTier.mlxModel : undefined;
|
|
145
128
|
// Step 6: Write configs
|
|
146
129
|
(0, index_config_1.writeSetupConfig)(paths.configPath, {
|
package/package.json
CHANGED