@towns-labs/wallet 7.0.0 → 7.1.0

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 (3) hide show
  1. package/README.md +22 -0
  2. package/dist/cli.js +195 -195
  3. package/package.json +3 -3
package/README.md CHANGED
@@ -172,6 +172,12 @@ Send USDC on Polygon with JSON output:
172
172
  tw account send 10 0x1111111111111111111111111111111111111111 --chain polygon --env prod --json
173
173
  ```
174
174
 
175
+ Send using a specific local session by name (without changing active session):
176
+
177
+ ```bash
178
+ tw account send 1 0x1111111111111111111111111111111111111111 --profile agent --session worker-2
179
+ ```
180
+
175
181
  Local dev defaults to Anvil:
176
182
 
177
183
  ```bash
@@ -241,6 +247,8 @@ tw account send 1 0x1111111111111111111111111111111111111111 \
241
247
  --env prod --chain base --session-file ./worker-1.session.json
242
248
  ```
243
249
 
250
+ `--session` and `--session-file` are mutually exclusive.
251
+
244
252
  ## Account Status
245
253
 
246
254
  Show compact readiness status:
@@ -295,6 +303,10 @@ Grant full wildcard access (explicit opt-in):
295
303
  echo "my-password" | tw session create worker-admin --profile agent --full-access --password-stdin
296
304
  ```
297
305
 
306
+ `--full-access` is mutually exclusive with `--target`, `--selector`, `--spend-limit`, `--spend-limit-raw`, and `--spend-period`.
307
+ Omitting both `--target` and `--selector` uses wildcard call permissions by default; you do not need to pass magic wildcard values.
308
+ `--spend-limit` accepts human USDC amounts (for example `10` = `10 USDC`). Use `--spend-limit-raw` for base units.
309
+
298
310
  ## Session List
299
311
 
300
312
  List local sessions:
@@ -355,6 +367,10 @@ Rotate to an explicit new session name:
355
367
  echo "my-password" | tw session rotate --profile agent --new-name worker-3 --password-stdin
356
368
  ```
357
369
 
370
+ `--full-access` is mutually exclusive with `--target`, `--selector`, `--spend-limit`, `--spend-limit-raw`, and `--spend-period`.
371
+ Omitting both `--target` and `--selector` uses wildcard call permissions by default; you do not need to pass magic wildcard values.
372
+ `--spend-limit` accepts human USDC amounts (for example `10` = `10 USDC`). Use `--spend-limit-raw` for base units.
373
+
358
374
  Resume interrupted rotation:
359
375
 
360
376
  ```bash
@@ -417,6 +433,12 @@ Grant spend permission for daily USDC limit:
417
433
  echo "my-password" | tw permissions grant agent-key --type spend --token USDC --spend-limit 100 --period day --profile agent --password-stdin --json
418
434
  ```
419
435
 
436
+ For raw base units instead of human USDC amounts, use:
437
+
438
+ ```bash
439
+ echo "my-password" | tw permissions grant agent-key --type spend --token USDC --spend-limit-raw 100000000 --period day --profile agent --password-stdin --json
440
+ ```
441
+
420
442
  ## Permissions Revoke
421
443
 
422
444
  Revoke one rule by stable rule id: