@jaw.id/cli 0.1.4 → 0.1.6

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,52 +137,14 @@
137
137
  "version.js"
138
138
  ]
139
139
  },
140
- "mcp": {
140
+ "config:set": {
141
141
  "aliases": [],
142
142
  "args": {},
143
- "description": "Start the MCP server for AI agents (stdio transport)",
144
- "examples": [
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.",
143
+ "description": "Set one or more configuration values. Accepts key=value pairs or a single key value.",
179
144
  "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"
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"
186
148
  ],
187
149
  "flags": {
188
150
  "output": {
@@ -229,49 +191,31 @@
229
191
  "name": "quiet",
230
192
  "allowNo": false,
231
193
  "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"
249
194
  }
250
195
  },
251
196
  "hasDynamicHelp": false,
252
197
  "hiddenAliases": [],
253
- "id": "rpc:call",
198
+ "id": "config:set",
254
199
  "pluginAlias": "@jaw.id/cli",
255
200
  "pluginName": "@jaw.id/cli",
256
201
  "pluginType": "core",
257
- "strict": true,
202
+ "strict": false,
258
203
  "enableJsonFlag": false,
259
204
  "isESM": true,
260
205
  "relativePath": [
261
206
  "dist",
262
207
  "commands",
263
- "rpc",
264
- "call.js"
208
+ "config",
209
+ "set.js"
265
210
  ]
266
211
  },
267
- "config:set": {
212
+ "config:show": {
268
213
  "aliases": [],
269
214
  "args": {},
270
- "description": "Set one or more configuration values. Accepts key=value pairs or a single key value.",
215
+ "description": "Show current CLI configuration",
271
216
  "examples": [
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"
217
+ "<%= config.bin %> config show",
218
+ "<%= config.bin %> config show --output json"
275
219
  ],
276
220
  "flags": {
277
221
  "output": {
@@ -322,27 +266,27 @@
322
266
  },
323
267
  "hasDynamicHelp": false,
324
268
  "hiddenAliases": [],
325
- "id": "config:set",
269
+ "id": "config:show",
326
270
  "pluginAlias": "@jaw.id/cli",
327
271
  "pluginName": "@jaw.id/cli",
328
272
  "pluginType": "core",
329
- "strict": false,
273
+ "strict": true,
330
274
  "enableJsonFlag": false,
331
275
  "isESM": true,
332
276
  "relativePath": [
333
277
  "dist",
334
278
  "commands",
335
279
  "config",
336
- "set.js"
280
+ "show.js"
337
281
  ]
338
282
  },
339
- "config:show": {
283
+ "config:write": {
340
284
  "aliases": [],
341
285
  "args": {},
342
- "description": "Show current CLI configuration",
286
+ "description": "Write full config from inline JSON or a file path to ~/.jaw/config.json.",
343
287
  "examples": [
344
- "<%= config.bin %> config show",
345
- "<%= config.bin %> config show --output json"
288
+ "<%= config.bin %> config write '{\"apiKey\":\"...\",\"defaultChain\":84532}'",
289
+ "<%= config.bin %> config write ./jaw-config.json"
346
290
  ],
347
291
  "flags": {
348
292
  "output": {
@@ -393,27 +337,66 @@
393
337
  },
394
338
  "hasDynamicHelp": false,
395
339
  "hiddenAliases": [],
396
- "id": "config:show",
340
+ "id": "config:write",
397
341
  "pluginAlias": "@jaw.id/cli",
398
342
  "pluginName": "@jaw.id/cli",
399
343
  "pluginType": "core",
400
- "strict": true,
344
+ "strict": false,
401
345
  "enableJsonFlag": false,
402
346
  "isESM": true,
403
347
  "relativePath": [
404
348
  "dist",
405
349
  "commands",
406
350
  "config",
407
- "show.js"
351
+ "write.js"
408
352
  ]
409
353
  },
410
- "config:write": {
354
+ "mcp": {
411
355
  "aliases": [],
412
356
  "args": {},
413
- "description": "Write full config from inline JSON or a file path to ~/.jaw/config.json.",
357
+ "description": "Start the MCP server for AI agents (stdio transport)",
414
358
  "examples": [
415
- "<%= config.bin %> config write '{\"apiKey\":\"...\",\"defaultChain\":84532}'",
416
- "<%= config.bin %> config write ./jaw-config.json"
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.",
393
+ "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"
417
400
  ],
418
401
  "flags": {
419
402
  "output": {
@@ -460,22 +443,39 @@
460
443
  "name": "quiet",
461
444
  "allowNo": false,
462
445
  "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": "config:write",
467
+ "id": "rpc:call",
468
468
  "pluginAlias": "@jaw.id/cli",
469
469
  "pluginName": "@jaw.id/cli",
470
470
  "pluginType": "core",
471
- "strict": false,
471
+ "strict": true,
472
472
  "enableJsonFlag": false,
473
473
  "isESM": true,
474
474
  "relativePath": [
475
475
  "dist",
476
476
  "commands",
477
- "config",
478
- "write.js"
477
+ "rpc",
478
+ "call.js"
479
479
  ]
480
480
  },
481
481
  "session:revoke": {
@@ -699,5 +699,5 @@
699
699
  ]
700
700
  }
701
701
  },
702
- "version": "0.1.4"
702
+ "version": "0.1.6"
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.4",
4
+ "version": "0.1.6",
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.3",
107
+ "@jaw.id/core": "0.4.5",
108
108
  "@modelcontextprotocol/sdk": "^1.12.1",
109
109
  "@oclif/core": "^4.3.0",
110
110
  "open": "^10.1.0",