@remcp/remcp 0.2.182 → 0.2.184
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/package.json +1 -1
- package/src/cli.mjs +3 -1
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -212,7 +212,9 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
212
212
|
const service = persistentServiceState(cfg);
|
|
213
213
|
const currentInstall = currentInstallationInfo(cfg);
|
|
214
214
|
const serviceInstall = serviceInstallationInfo(cfg);
|
|
215
|
-
|
|
215
|
+
// Prefer the runtime installed beside this CLI. npm may resolve a different
|
|
216
|
+
// global prefix when a shell launches this entry with another Node version.
|
|
217
|
+
const installedRuntime = currentInstall.runtimeVersion || installedVersion(cfg.runtime.packageName);
|
|
216
218
|
const targetClient = String(advertised?.cliVersion || '').trim() || null;
|
|
217
219
|
const targetRuntime = String(advertised?.runtime || '').trim() || null;
|
|
218
220
|
const configuredRuntime = String(cfg.runtime.packageSpec || '');
|