nervepay 1.4.6 → 1.4.9

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/dist/index.js +17 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -37,7 +37,7 @@ export default function register(api) {
37
37
  },
38
38
  },
39
39
  },
40
- handler: async (params) => {
40
+ execute: async (params) => {
41
41
  const result = await identity.registerPendingIdentity(client, params);
42
42
  // Update client config with new credentials
43
43
  client.updateConfig({
@@ -55,7 +55,7 @@ export default function register(api) {
55
55
  name: 'nervepay_whoami',
56
56
  description: 'Test authentication and get current agent info',
57
57
  parameters: { type: 'object', properties: {} },
58
- handler: async () => {
58
+ execute: async () => {
59
59
  return await identity.whoami(client);
60
60
  },
61
61
  });
@@ -72,7 +72,7 @@ export default function register(api) {
72
72
  },
73
73
  },
74
74
  },
75
- handler: async (params) => {
75
+ execute: async (params) => {
76
76
  return await identity.verifyAgent(client, params.did);
77
77
  },
78
78
  });
@@ -89,7 +89,7 @@ export default function register(api) {
89
89
  },
90
90
  },
91
91
  },
92
- handler: async (params) => {
92
+ execute: async (params) => {
93
93
  return await identity.resolveDid(client, params.did);
94
94
  },
95
95
  });
@@ -123,7 +123,7 @@ export default function register(api) {
123
123
  },
124
124
  },
125
125
  },
126
- handler: async (params) => {
126
+ execute: async (params) => {
127
127
  // Send pairing request
128
128
  const request = await gateway.createPairingRequest(client, params);
129
129
  return {
@@ -147,7 +147,7 @@ export default function register(api) {
147
147
  },
148
148
  },
149
149
  },
150
- handler: async (params) => {
150
+ execute: async (params) => {
151
151
  return await gateway.getPairingRequestStatus(client, params.request_id);
152
152
  },
153
153
  });
@@ -176,7 +176,7 @@ export default function register(api) {
176
176
  },
177
177
  },
178
178
  },
179
- handler: async (params) => {
179
+ execute: async (params) => {
180
180
  return await gateway.completePairing(client, params);
181
181
  },
182
182
  });
@@ -184,7 +184,7 @@ export default function register(api) {
184
184
  name: 'nervepay_list_gateways',
185
185
  description: 'List all connected gateways',
186
186
  parameters: { type: 'object', properties: {} },
187
- handler: async () => {
187
+ execute: async () => {
188
188
  return await gateway.listGateways(client);
189
189
  },
190
190
  });
@@ -201,7 +201,7 @@ export default function register(api) {
201
201
  },
202
202
  },
203
203
  },
204
- handler: async (params) => {
204
+ execute: async (params) => {
205
205
  return await gateway.healthCheckGateway(client, params.gateway_id);
206
206
  },
207
207
  });
@@ -212,7 +212,7 @@ export default function register(api) {
212
212
  name: 'nervepay_list_secrets',
213
213
  description: 'List all available secrets stored in the vault. Use this when the user asks "what secrets do I have?" or "list my API keys". Returns only secret names, not values.',
214
214
  parameters: { type: 'object', properties: {} },
215
- handler: async () => {
215
+ execute: async () => {
216
216
  return await vault.listSecrets(client);
217
217
  },
218
218
  });
@@ -229,7 +229,7 @@ export default function register(api) {
229
229
  },
230
230
  },
231
231
  },
232
- handler: async (params) => {
232
+ execute: async (params) => {
233
233
  return await vault.getSecret(client, params.secret_name);
234
234
  },
235
235
  });
@@ -247,7 +247,7 @@ export default function register(api) {
247
247
  },
248
248
  },
249
249
  },
250
- handler: async (params) => {
250
+ execute: async (params) => {
251
251
  return await vault.getSecrets(client, params.secret_names);
252
252
  },
253
253
  });
@@ -280,7 +280,7 @@ export default function register(api) {
280
280
  },
281
281
  },
282
282
  },
283
- handler: async (params) => {
283
+ execute: async (params) => {
284
284
  return await orchestration.createOrchestration(client, params);
285
285
  },
286
286
  });
@@ -297,7 +297,7 @@ export default function register(api) {
297
297
  },
298
298
  },
299
299
  },
300
- handler: async (params) => {
300
+ execute: async (params) => {
301
301
  return await orchestration.startOrchestration(client, params.orchestration_id);
302
302
  },
303
303
  });
@@ -314,7 +314,7 @@ export default function register(api) {
314
314
  },
315
315
  },
316
316
  },
317
- handler: async (params) => {
317
+ execute: async (params) => {
318
318
  return await orchestration.getOrchestration(client, params.orchestration_id);
319
319
  },
320
320
  });
@@ -336,7 +336,7 @@ export default function register(api) {
336
336
  },
337
337
  },
338
338
  },
339
- handler: async (params) => {
339
+ execute: async (params) => {
340
340
  return await orchestration.listTasks(client, params.orchestration_id, {
341
341
  status: params.status,
342
342
  });
@@ -682,7 +682,7 @@ export default function register(api) {
682
682
  api.registerCommand({
683
683
  name: 'nervepay-status',
684
684
  description: 'Show NervePay plugin status and configuration',
685
- handler: async (ctx) => {
685
+ execute: async (ctx) => {
686
686
  const hasIdentity = !!(config.agentDid && config.privateKey);
687
687
  let identityInfo = '';
688
688
  if (hasIdentity) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nervepay",
3
- "version": "1.4.6",
3
+ "version": "1.4.9",
4
4
  "description": "NervePay plugin for OpenClaw - Self-sovereign identity, vault, and orchestration",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",