@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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/cli.mjs +6 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remcp/remcp",
3
- "version": "0.2.214",
3
+ "version": "0.2.215",
4
4
  "description": "ReMCP device client: pair a computer with ReMCP and run the outbound-only agent that hosts the local MCP runtime.",
5
5
  "type": "module",
6
6
  "license": "MIT",
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
- console.log('Usage metrics enabled and the agent restarted to apply it.');
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
- console.log('Usage metrics disabled and the agent restarted to apply it.');
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]');