nervepay 1.3.0 → 1.3.2

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.
@@ -427,12 +427,14 @@ async function deviceNodePairing(options) {
427
427
  method: 'connect',
428
428
  params: {
429
429
  role: 'operator',
430
+ minProtocol: 1,
431
+ maxProtocol: 1,
430
432
  scopes: ['operator.read', 'operator.write'],
431
433
  client: {
432
- id: `nervepay-cli-${crypto.randomUUID().slice(0, 8)}`,
434
+ id: crypto.randomUUID(),
433
435
  version: '1.2.6',
434
- platform: 'cli',
435
- mode: 'pairing',
436
+ platform: process.platform,
437
+ mode: 'node',
436
438
  },
437
439
  device: {
438
440
  id: deviceId,
@@ -465,8 +467,12 @@ async function deviceNodePairing(options) {
465
467
  };
466
468
  ws.send(JSON.stringify(pairReq));
467
469
  } else {
468
- lastError = `Connect rejected: ${frame.error || 'Unknown error'}`;
470
+ const errDetail = typeof frame.error === 'object'
471
+ ? JSON.stringify(frame.error)
472
+ : (frame.error || 'Unknown error');
473
+ lastError = `Connect rejected: ${errDetail}`;
469
474
  console.error(chalk.red(` ${lastError}`));
475
+ if (frame.payload) console.error(chalk.gray(' Payload:'), JSON.stringify(frame.payload));
470
476
  ws.close();
471
477
  settle(reject, new Error(lastError));
472
478
  }
@@ -482,8 +488,12 @@ async function deviceNodePairing(options) {
482
488
  console.log(chalk.gray(` Approve with: openclaw devices approve ${requestId}`));
483
489
  console.log(chalk.gray(` Timeout: ${options.timeout}s\n`));
484
490
  } else {
485
- lastError = `Pair request rejected: ${frame.error || 'Unknown error'}`;
491
+ const errDetail = typeof frame.error === 'object'
492
+ ? JSON.stringify(frame.error)
493
+ : (frame.error || 'Unknown error');
494
+ lastError = `Pair request rejected: ${errDetail}`;
486
495
  console.error(chalk.red(` ${lastError}`));
496
+ if (frame.payload) console.error(chalk.gray(' Payload:'), JSON.stringify(frame.payload));
487
497
  ws.close();
488
498
  settle(reject, new Error(lastError));
489
499
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nervepay",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "NervePay plugin for OpenClaw - Self-sovereign identity, vault, and orchestration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",