@catena/cli 0.9.0 → 0.10.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.
package/README.md CHANGED
@@ -7,12 +7,12 @@ and submit policy-checked money movement intents.
7
7
  Run it without installing:
8
8
 
9
9
  ```bash
10
- pnpm dlx @catena/cli <command> [args]
10
+ npx @catena/cli <command> [args]
11
11
  ```
12
12
 
13
- The package exposes the `catena` binary. Examples use `pnpm dlx @catena/cli` so
14
- they work directly from npm; pnpm selects `catena` because it is the package's
15
- only executable.
13
+ The package exposes the `catena` binary. Examples use `npx @catena/cli` so they
14
+ work directly from npm; npx selects `catena` because it is the package's only
15
+ executable.
16
16
 
17
17
  ## How it works
18
18
 
@@ -31,7 +31,7 @@ browser, so `link` cannot store a credential there. Set `CATENA_SECRET_KEY` to
31
31
  the agent's P-256 secret key instead:
32
32
 
33
33
  ```bash
34
- CATENA_SECRET_KEY="<64 hex characters>" pnpm dlx @catena/cli whoami
34
+ CATENA_SECRET_KEY="<64 hex characters>" npx @catena/cli whoami
35
35
  ```
36
36
 
37
37
  Create the key in the Catena console: open the agent, select the **Secret keys**
@@ -57,14 +57,14 @@ agent id. Use `--name` to suggest a name when the console creates a new agent;
57
57
  the approving operator can edit it before approval.
58
58
 
59
59
  ```bash
60
- pnpm dlx @catena/cli link --name "Hermes Runtime"
60
+ npx @catena/cli link --name "Hermes Runtime"
61
61
  ```
62
62
 
63
63
  To link a specific existing agent, ask the Catena customer for the agent id
64
64
  shown in the Catena console. It looks like `agent_...`.
65
65
 
66
66
  ```bash
67
- pnpm dlx @catena/cli link <agent-id>
67
+ npx @catena/cli link <agent-id>
68
68
  ```
69
69
 
70
70
  The browser approval window stays open for up to 5 minutes. If the approval is
@@ -85,8 +85,8 @@ Connect the selected profile to an agent. Omit `agent-id` to create or choose an
85
85
  agent from the Catena console.
86
86
 
87
87
  ```bash
88
- pnpm dlx @catena/cli link --name "Hermes Runtime"
89
- pnpm dlx @catena/cli link <agent-id>
88
+ npx @catena/cli link --name "Hermes Runtime"
89
+ npx @catena/cli link <agent-id>
90
90
  ```
91
91
 
92
92
  ### `unlink`
@@ -94,7 +94,7 @@ pnpm dlx @catena/cli link <agent-id>
94
94
  Disconnect the selected profile from its agent and remove its local credential.
95
95
 
96
96
  ```bash
97
- pnpm dlx @catena/cli unlink
97
+ npx @catena/cli unlink
98
98
  ```
99
99
 
100
100
  ### `profiles current`
@@ -102,7 +102,7 @@ pnpm dlx @catena/cli unlink
102
102
  Show the selected credential profile and its routing metadata.
103
103
 
104
104
  ```bash
105
- pnpm dlx @catena/cli profiles current
105
+ npx @catena/cli profiles current
106
106
  ```
107
107
 
108
108
  ### `profiles list`
@@ -110,7 +110,7 @@ pnpm dlx @catena/cli profiles current
110
110
  List linked credential profiles and mark the selected default profile.
111
111
 
112
112
  ```bash
113
- pnpm dlx @catena/cli profiles list
113
+ npx @catena/cli profiles list
114
114
  ```
115
115
 
116
116
  ### `profiles use <profile>`
@@ -118,7 +118,7 @@ pnpm dlx @catena/cli profiles list
118
118
  Set the selected default profile. The profile must already be linked.
119
119
 
120
120
  ```bash
121
- pnpm dlx @catena/cli profiles use mcp
121
+ npx @catena/cli profiles use mcp
122
122
  ```
123
123
 
124
124
  ### `whoami`
@@ -126,7 +126,7 @@ pnpm dlx @catena/cli profiles use mcp
126
126
  Show which agent the selected profile is linked to.
127
127
 
128
128
  ```bash
129
- pnpm dlx @catena/cli whoami
129
+ npx @catena/cli whoami
130
130
  ```
131
131
 
132
132
  ### `policy show`
@@ -135,7 +135,7 @@ Show the policy assigned to the linked agent. Read this before creating
135
135
  counterparties or submitting intents.
136
136
 
137
137
  ```bash
138
- pnpm dlx @catena/cli policy show
138
+ npx @catena/cli policy show
139
139
  ```
140
140
 
141
141
  The policy includes `policyCapabilities` rows. Each row grants one `read`,
@@ -148,7 +148,7 @@ counterparty creation.
148
148
  Ask a person to approve a temporary increase to one policy limit.
149
149
 
150
150
  ```bash
151
- pnpm dlx @catena/cli policy request-override \
151
+ npx @catena/cli policy request-override \
152
152
  --account acct_... \
153
153
  --amount 500 \
154
154
  --duration 4h \
@@ -175,14 +175,15 @@ Fetch an MPP-protected HTTP endpoint and pay a supported USDC charge from a
175
175
  wallet account:
176
176
 
177
177
  ```bash
178
- pnpm dlx @catena/cli mpp --url https://api.example.com/paid \
178
+ npx @catena/cli mpp --url https://api.example.com/paid \
179
179
  --account acct_... --max-amount 0.25
180
180
  ```
181
181
 
182
- Initial support covers `evm/charge` and `usdc/charge` for native USDC on Base
183
- and Base Sepolia. Payments use the agent's normal send capability, counterparty
184
- allowlist, spend limits, and approval flow. The recipient must already be a
185
- saved counterparty wallet rail.
182
+ The CLI recognizes structurally valid EVM `evm/charge` and `usdc/charge`
183
+ challenges and leaves network and canonical USDC support to the connected
184
+ server. Current support includes Base and Base Sepolia. Payments use the agent's
185
+ normal send capability, counterparty allowlist, spend limits, and approval flow.
186
+ The recipient must already be a saved counterparty wallet rail.
186
187
 
187
188
  The command accepts the same request-body, header, output, profile, and JSON
188
189
  flags as `x402`; run `mpp --help` for details. If approval is required, approve
@@ -195,7 +196,7 @@ retrying so the resource is not paid twice.
195
196
  List the accounts available under the agent's policy.
196
197
 
197
198
  ```bash
198
- pnpm dlx @catena/cli accounts list
199
+ npx @catena/cli accounts list
199
200
  ```
200
201
 
201
202
  ### `counterparties list`
@@ -204,7 +205,7 @@ List counterparties, their status, and their rails. Use rail ids from this
204
205
  output with `send`.
205
206
 
206
207
  ```bash
207
- pnpm dlx @catena/cli counterparties list
208
+ npx @catena/cli counterparties list
208
209
  ```
209
210
 
210
211
  ### `counterparties create`
@@ -214,7 +215,7 @@ saves the counterparty without sending an email. The command returns an intent
214
215
  envelope; policy may complete it, block it, or route it to approval.
215
216
 
216
217
  ```bash
217
- pnpm dlx @catena/cli counterparties create \
218
+ npx @catena/cli counterparties create \
218
219
  --name "Acme Vendor" \
219
220
  --email billing@acme.test
220
221
  ```
@@ -232,7 +233,7 @@ Request creation of a bank-rail counterparty. The command returns an intent
232
233
  envelope; policy may complete it, block it, or route it to approval.
233
234
 
234
235
  ```bash
235
- pnpm dlx @catena/cli counterparties create bank \
236
+ npx @catena/cli counterparties create bank \
236
237
  --name "Acme Vendor" \
237
238
  --bank-name "Chase" \
238
239
  --routing-number 021000021 \
@@ -256,15 +257,15 @@ Request creation of a wallet-rail counterparty. The command returns an intent
256
257
  envelope; policy may complete it, block it, or route it to approval.
257
258
 
258
259
  ```bash
259
- pnpm dlx @catena/cli counterparties create wallet \
260
+ npx @catena/cli counterparties create wallet \
260
261
  --name "DAO Treasury" \
261
262
  --address 0xAbC123...
262
263
  ```
263
264
 
264
265
  Required flags: `--name`, `--address`.
265
266
 
266
- Optional flags: `--network` (defaults to `base`; Base is the only supported
267
- wallet network), `--email`, `--idempotency-key`.
267
+ Optional flags: `--network` (defaults to `base`; availability depends on the
268
+ connected environment), `--email`, `--idempotency-key`.
268
269
 
269
270
  ### `counterparties request-details`
270
271
 
@@ -272,7 +273,7 @@ Ask an existing counterparty to provide bank details, wallet details, or both.
272
273
  The request follows policy and may require human approval.
273
274
 
274
275
  ```bash
275
- pnpm dlx @catena/cli counterparties request-details cp_... --bank
276
+ npx @catena/cli counterparties request-details cp_... --bank
276
277
  ```
277
278
 
278
279
  Pass at least one of `--bank` or `--wallet`. `--idempotency-key` is optional.
@@ -283,7 +284,7 @@ The outstanding-invitation conflict remains independent of idempotency.
283
284
  Request a USD send to a counterparty rail.
284
285
 
285
286
  ```bash
286
- pnpm dlx @catena/cli send \
287
+ npx @catena/cli send \
287
288
  --rail cprl_... \
288
289
  --amount 125.00 \
289
290
  --method ach
@@ -318,7 +319,7 @@ when its inputs match an earlier command.
318
319
  Request a USD transfer between two accounts visible to the agent.
319
320
 
320
321
  ```bash
321
- pnpm dlx @catena/cli transfer \
322
+ npx @catena/cli transfer \
322
323
  --from acct_... \
323
324
  --to acct_... \
324
325
  --amount 125.00
@@ -337,7 +338,7 @@ when its inputs match an earlier command.
337
338
  Read an account balance through the policy engine.
338
339
 
339
340
  ```bash
340
- pnpm dlx @catena/cli accounts balance acct_...
341
+ npx @catena/cli accounts balance acct_...
341
342
  ```
342
343
 
343
344
  ### `accounts transactions`
@@ -347,7 +348,7 @@ same read access as `accounts balance` and never creates an intent. Returns
347
348
  `{ accountId, transactions, total }` newest-first.
348
349
 
349
350
  ```bash
350
- pnpm dlx @catena/cli accounts transactions acct_...
351
+ npx @catena/cli accounts transactions acct_...
351
352
  ```
352
353
 
353
354
  Optional flags: `--start` / `--end` (ISO 8601 bounds), `--limit` (default 50,
@@ -360,7 +361,7 @@ Read an account deposit address through the policy engine. `--network` and
360
361
  `--asset` default to `base` and `usdc`.
361
362
 
362
363
  ```bash
363
- pnpm dlx @catena/cli accounts deposit-address acct_... --network base --asset usdc
364
+ npx @catena/cli accounts deposit-address acct_... --network base --asset usdc
364
365
  ```
365
366
 
366
367
  ### `intents get`
@@ -368,7 +369,7 @@ pnpm dlx @catena/cli accounts deposit-address acct_... --network base --asset us
368
369
  Look up the current state of an intent created by this agent.
369
370
 
370
371
  ```bash
371
- pnpm dlx @catena/cli intents get int_...
372
+ npx @catena/cli intents get int_...
372
373
  ```
373
374
 
374
375
  The response includes a `data` field carrying the associated result once one
@@ -389,9 +390,9 @@ stdin. Use stdin (or `--` before the argument) when the message starts with `-`
389
390
  or spans multiple lines.
390
391
 
391
392
  ```bash
392
- pnpm dlx @catena/cli feedback "The transfer flow worked great"
393
+ npx @catena/cli feedback "The transfer flow worked great"
393
394
 
394
- pnpm dlx @catena/cli feedback <<'EOF'
395
+ npx @catena/cli feedback <<'EOF'
395
396
  - transfer failed
396
397
  - policy was confusing
397
398
  EOF
@@ -404,8 +405,8 @@ with code 1.
404
405
 
405
406
  `send` and `transfer` exit as soon as the intent is created and any immediate
406
407
  next action is submitted. Inspect the returned `.status` and `.reasons` fields,
407
- then use `pnpm dlx @catena/cli intents get <intent-id>` to check whether it
408
- later completes, requires approval, or fails.
408
+ then use `npx @catena/cli intents get <intent-id>` to check whether it later
409
+ completes, requires approval, or fails.
409
410
 
410
411
  ## Configuration
411
412
 
@@ -419,11 +420,11 @@ later completes, requires approval, or fails.
419
420
  Every command supports `--help`.
420
421
 
421
422
  ```bash
422
- pnpm dlx @catena/cli --help
423
- pnpm dlx @catena/cli send --help
424
- pnpm dlx @catena/cli counterparties create --help
425
- pnpm dlx @catena/cli counterparties create email --help
426
- pnpm dlx @catena/cli counterparties create bank --help
427
- pnpm dlx @catena/cli counterparties create wallet --help
428
- pnpm dlx @catena/cli counterparties request-details --help
423
+ npx @catena/cli --help
424
+ npx @catena/cli send --help
425
+ npx @catena/cli counterparties create --help
426
+ npx @catena/cli counterparties create email --help
427
+ npx @catena/cli counterparties create bank --help
428
+ npx @catena/cli counterparties create wallet --help
429
+ npx @catena/cli counterparties request-details --help
429
430
  ```