@jaw.id/cli 0.1.3 → 0.1.4

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/oclif.manifest.json +88 -88
  2. package/package.json +2 -2
@@ -137,14 +137,52 @@
137
137
  "version.js"
138
138
  ]
139
139
  },
140
- "config:set": {
140
+ "mcp": {
141
141
  "aliases": [],
142
142
  "args": {},
143
- "description": "Set one or more configuration values. Accepts key=value pairs or a single key value.",
143
+ "description": "Start the MCP server for AI agents (stdio transport)",
144
144
  "examples": [
145
- "<%= config.bin %> config set apiKey=your-api-key defaultChain=8453",
146
- "<%= config.bin %> config set ens=yourdomain.eth sessionExpiry=14",
147
- "<%= config.bin %> config set apiKey your-api-key"
145
+ "<%= config.bin %> mcp"
146
+ ],
147
+ "flags": {},
148
+ "hasDynamicHelp": false,
149
+ "hiddenAliases": [],
150
+ "id": "mcp",
151
+ "pluginAlias": "@jaw.id/cli",
152
+ "pluginName": "@jaw.id/cli",
153
+ "pluginType": "core",
154
+ "strict": true,
155
+ "enableJsonFlag": false,
156
+ "isESM": true,
157
+ "relativePath": [
158
+ "dist",
159
+ "commands",
160
+ "mcp",
161
+ "index.js"
162
+ ]
163
+ },
164
+ "rpc:call": {
165
+ "aliases": [],
166
+ "args": {
167
+ "method": {
168
+ "description": "EIP-1193 RPC method name",
169
+ "name": "method",
170
+ "required": true
171
+ },
172
+ "params": {
173
+ "description": "Method parameters as JSON string",
174
+ "name": "params",
175
+ "required": false
176
+ }
177
+ },
178
+ "description": "Execute any JAW.id RPC method via the browser bridge or local session key.",
179
+ "examples": [
180
+ "<%= config.bin %> rpc call wallet_sendCalls '{\"calls\":[{\"to\":\"0x...\",\"value\":\"0x0\"}]}'",
181
+ "<%= config.bin %> rpc call personal_sign '\"Hello World\"'",
182
+ "<%= config.bin %> rpc call wallet_getAssets",
183
+ "<%= config.bin %> rpc call eth_requestAccounts",
184
+ "<%= config.bin %> rpc call wallet_getCallsStatus '\"0x...\"'",
185
+ "<%= config.bin %> rpc call wallet_sendCalls '{\"calls\":[...]}' --session"
148
186
  ],
149
187
  "flags": {
150
188
  "output": {
@@ -191,31 +229,49 @@
191
229
  "name": "quiet",
192
230
  "allowNo": false,
193
231
  "type": "boolean"
232
+ },
233
+ "timeout": {
234
+ "char": "t",
235
+ "description": "Request timeout in seconds",
236
+ "name": "timeout",
237
+ "default": 120,
238
+ "hasDynamicHelp": false,
239
+ "multiple": false,
240
+ "type": "option"
241
+ },
242
+ "session": {
243
+ "char": "s",
244
+ "description": "Use local session key (auto mode)",
245
+ "env": "JAW_SESSION",
246
+ "name": "session",
247
+ "allowNo": false,
248
+ "type": "boolean"
194
249
  }
195
250
  },
196
251
  "hasDynamicHelp": false,
197
252
  "hiddenAliases": [],
198
- "id": "config:set",
253
+ "id": "rpc:call",
199
254
  "pluginAlias": "@jaw.id/cli",
200
255
  "pluginName": "@jaw.id/cli",
201
256
  "pluginType": "core",
202
- "strict": false,
257
+ "strict": true,
203
258
  "enableJsonFlag": false,
204
259
  "isESM": true,
205
260
  "relativePath": [
206
261
  "dist",
207
262
  "commands",
208
- "config",
209
- "set.js"
263
+ "rpc",
264
+ "call.js"
210
265
  ]
211
266
  },
212
- "config:show": {
267
+ "config:set": {
213
268
  "aliases": [],
214
269
  "args": {},
215
- "description": "Show current CLI configuration",
270
+ "description": "Set one or more configuration values. Accepts key=value pairs or a single key value.",
216
271
  "examples": [
217
- "<%= config.bin %> config show",
218
- "<%= config.bin %> config show --output json"
272
+ "<%= config.bin %> config set apiKey=your-api-key defaultChain=8453",
273
+ "<%= config.bin %> config set ens=yourdomain.eth sessionExpiry=14",
274
+ "<%= config.bin %> config set apiKey your-api-key"
219
275
  ],
220
276
  "flags": {
221
277
  "output": {
@@ -266,27 +322,27 @@
266
322
  },
267
323
  "hasDynamicHelp": false,
268
324
  "hiddenAliases": [],
269
- "id": "config:show",
325
+ "id": "config:set",
270
326
  "pluginAlias": "@jaw.id/cli",
271
327
  "pluginName": "@jaw.id/cli",
272
328
  "pluginType": "core",
273
- "strict": true,
329
+ "strict": false,
274
330
  "enableJsonFlag": false,
275
331
  "isESM": true,
276
332
  "relativePath": [
277
333
  "dist",
278
334
  "commands",
279
335
  "config",
280
- "show.js"
336
+ "set.js"
281
337
  ]
282
338
  },
283
- "config:write": {
339
+ "config:show": {
284
340
  "aliases": [],
285
341
  "args": {},
286
- "description": "Write full config from inline JSON or a file path to ~/.jaw/config.json.",
342
+ "description": "Show current CLI configuration",
287
343
  "examples": [
288
- "<%= config.bin %> config write '{\"apiKey\":\"...\",\"defaultChain\":84532}'",
289
- "<%= config.bin %> config write ./jaw-config.json"
344
+ "<%= config.bin %> config show",
345
+ "<%= config.bin %> config show --output json"
290
346
  ],
291
347
  "flags": {
292
348
  "output": {
@@ -337,66 +393,27 @@
337
393
  },
338
394
  "hasDynamicHelp": false,
339
395
  "hiddenAliases": [],
340
- "id": "config:write",
396
+ "id": "config:show",
341
397
  "pluginAlias": "@jaw.id/cli",
342
398
  "pluginName": "@jaw.id/cli",
343
399
  "pluginType": "core",
344
- "strict": false,
400
+ "strict": true,
345
401
  "enableJsonFlag": false,
346
402
  "isESM": true,
347
403
  "relativePath": [
348
404
  "dist",
349
405
  "commands",
350
406
  "config",
351
- "write.js"
407
+ "show.js"
352
408
  ]
353
409
  },
354
- "mcp": {
410
+ "config:write": {
355
411
  "aliases": [],
356
412
  "args": {},
357
- "description": "Start the MCP server for AI agents (stdio transport)",
358
- "examples": [
359
- "<%= config.bin %> mcp"
360
- ],
361
- "flags": {},
362
- "hasDynamicHelp": false,
363
- "hiddenAliases": [],
364
- "id": "mcp",
365
- "pluginAlias": "@jaw.id/cli",
366
- "pluginName": "@jaw.id/cli",
367
- "pluginType": "core",
368
- "strict": true,
369
- "enableJsonFlag": false,
370
- "isESM": true,
371
- "relativePath": [
372
- "dist",
373
- "commands",
374
- "mcp",
375
- "index.js"
376
- ]
377
- },
378
- "rpc:call": {
379
- "aliases": [],
380
- "args": {
381
- "method": {
382
- "description": "EIP-1193 RPC method name",
383
- "name": "method",
384
- "required": true
385
- },
386
- "params": {
387
- "description": "Method parameters as JSON string",
388
- "name": "params",
389
- "required": false
390
- }
391
- },
392
- "description": "Execute any JAW.id RPC method via the browser bridge or local session key.",
413
+ "description": "Write full config from inline JSON or a file path to ~/.jaw/config.json.",
393
414
  "examples": [
394
- "<%= config.bin %> rpc call wallet_sendCalls '{\"calls\":[{\"to\":\"0x...\",\"value\":\"0x0\"}]}'",
395
- "<%= config.bin %> rpc call personal_sign '\"Hello World\"'",
396
- "<%= config.bin %> rpc call wallet_getAssets",
397
- "<%= config.bin %> rpc call eth_requestAccounts",
398
- "<%= config.bin %> rpc call wallet_getCallsStatus '\"0x...\"'",
399
- "<%= config.bin %> rpc call wallet_sendCalls '{\"calls\":[...]}' --session"
415
+ "<%= config.bin %> config write '{\"apiKey\":\"...\",\"defaultChain\":84532}'",
416
+ "<%= config.bin %> config write ./jaw-config.json"
400
417
  ],
401
418
  "flags": {
402
419
  "output": {
@@ -443,39 +460,22 @@
443
460
  "name": "quiet",
444
461
  "allowNo": false,
445
462
  "type": "boolean"
446
- },
447
- "timeout": {
448
- "char": "t",
449
- "description": "Request timeout in seconds",
450
- "name": "timeout",
451
- "default": 120,
452
- "hasDynamicHelp": false,
453
- "multiple": false,
454
- "type": "option"
455
- },
456
- "session": {
457
- "char": "s",
458
- "description": "Use local session key (auto mode)",
459
- "env": "JAW_SESSION",
460
- "name": "session",
461
- "allowNo": false,
462
- "type": "boolean"
463
463
  }
464
464
  },
465
465
  "hasDynamicHelp": false,
466
466
  "hiddenAliases": [],
467
- "id": "rpc:call",
467
+ "id": "config:write",
468
468
  "pluginAlias": "@jaw.id/cli",
469
469
  "pluginName": "@jaw.id/cli",
470
470
  "pluginType": "core",
471
- "strict": true,
471
+ "strict": false,
472
472
  "enableJsonFlag": false,
473
473
  "isESM": true,
474
474
  "relativePath": [
475
475
  "dist",
476
476
  "commands",
477
- "rpc",
478
- "call.js"
477
+ "config",
478
+ "write.js"
479
479
  ]
480
480
  },
481
481
  "session:revoke": {
@@ -699,5 +699,5 @@
699
699
  ]
700
700
  }
701
701
  },
702
- "version": "0.1.3"
702
+ "version": "0.1.4"
703
703
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jaw.id/cli",
3
3
  "description": "CLI + MCP Server for JAW.id smart accounts — for humans and AI agents",
4
- "version": "0.1.3",
4
+ "version": "0.1.4",
5
5
  "license": "MIT",
6
6
  "type": "module",
7
7
  "bin": {
@@ -104,7 +104,7 @@
104
104
  }
105
105
  },
106
106
  "dependencies": {
107
- "@jaw.id/core": "0.4.2",
107
+ "@jaw.id/core": "0.4.3",
108
108
  "@modelcontextprotocol/sdk": "^1.12.1",
109
109
  "@oclif/core": "^4.3.0",
110
110
  "open": "^10.1.0",