@catena/cli 0.10.0 → 0.11.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
@@ -181,9 +181,10 @@ npx @catena/cli mpp --url https://api.example.com/paid \
181
181
 
182
182
  The CLI recognizes structurally valid EVM `evm/charge` and `usdc/charge`
183
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.
184
+ server. Base and Base Sepolia are supported where enabled. Arc support is
185
+ rolling out. Payments use the agent's normal send capability, counterparty
186
+ allowlist, spend limits, and approval flow. The recipient must already be a
187
+ saved counterparty wallet rail.
187
188
 
188
189
  The command accepts the same request-body, header, output, profile, and JSON
189
190
  flags as `x402`; run `mpp --help` for details. If approval is required, approve
@@ -333,6 +334,38 @@ To check whether a transfer completed, run `intents get <id>` with the returned
333
334
  intent id. A separate invocation without an explicit key is a new transfer, even
334
335
  when its inputs match an earlier command.
335
336
 
337
+ ### Sends that cross chains
338
+
339
+ A `send` to a counterparty wallet on the other side of the Base and Arc lane is
340
+ an ordinary `send`. When the account cannot pay it from its balance on the
341
+ rail's network, the send crosses chains under the same intent: the first
342
+ signature burns the amount toward the account's own address on the other chain,
343
+ and `intents continue` signs the send to the counterparty once the funds land.
344
+ One intent covers the whole payment, so policy, spend limits and any approval
345
+ are evaluated once. Gas on both legs is paid by Catena.
346
+
347
+ ```bash
348
+ npx @catena/cli send --rail cprl_... --amount 250.00 --method on-chain
349
+ npx @catena/cli intents get int_...
350
+ npx @catena/cli intents continue int_...
351
+ ```
352
+
353
+ The result carries `crossChain` when the send crossed. Its `nextStep` says what
354
+ to do: `wait` and poll `intents get`, `continue` and run `intents continue`,
355
+ `done`, or `blocked` with `failureReason` set. A network the provider does not
356
+ sponsor yet answers `wallet_send_action_not_yet_enabled` rather than charging
357
+ the agent; on `intents continue` the intent stays at `continue`, so try again
358
+ later.
359
+
360
+ ### `intents continue`
361
+
362
+ Sign the second leg of a send that crossed chains, once `intents get` shows
363
+ `crossChain.nextStep` as `continue`. Optional: `--idempotency-key`.
364
+
365
+ ```bash
366
+ npx @catena/cli intents continue int_...
367
+ ```
368
+
336
369
  ### `accounts balance`
337
370
 
338
371
  Read an account balance through the policy engine.