@remcp/remcp 0.2.214 → 0.2.215
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 +6 -4
package/package.json
CHANGED
package/src/cli.mjs
CHANGED
|
@@ -236,14 +236,16 @@ export async function main(argv = process.argv.slice(2)) {
|
|
|
236
236
|
}
|
|
237
237
|
if (action === 'on' || action === 'enable') {
|
|
238
238
|
console.log(JSON.stringify(setTelemetry(true), null, 2));
|
|
239
|
-
restartPersistentServiceIfInstalled(loadConfig(false)
|
|
240
|
-
|
|
239
|
+
const restarted = restartPersistentServiceIfInstalled(loadConfig(false),
|
|
240
|
+
{ deferLinux: flags['defer-restart'] === true, deferWindows: flags['defer-restart'] === true });
|
|
241
|
+
console.log(restarted ? 'Usage telemetry enabled; agent reload requested.' : 'Usage telemetry enabled for the next agent start.');
|
|
241
242
|
return;
|
|
242
243
|
}
|
|
243
244
|
if (action === 'off' || action === 'disable') {
|
|
244
245
|
console.log(JSON.stringify(setTelemetry(false), null, 2));
|
|
245
|
-
restartPersistentServiceIfInstalled(loadConfig(false)
|
|
246
|
-
|
|
246
|
+
const restarted = restartPersistentServiceIfInstalled(loadConfig(false),
|
|
247
|
+
{ deferLinux: flags['defer-restart'] === true, deferWindows: flags['defer-restart'] === true });
|
|
248
|
+
console.log(restarted ? 'Usage telemetry disabled; agent reload requested.' : 'Usage telemetry disabled for the next agent start.');
|
|
247
249
|
return;
|
|
248
250
|
}
|
|
249
251
|
throw new Error('Usage: remcp telemetry [status|on|off]');
|