@visa/cli 5.0.0-rc.406 → 5.0.0-rc.408

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
@@ -227,6 +227,10 @@ known). A revoked agent is also `revoked` in `pairing.agents[].state`. Reopening
227
227
  the approval link, in the same tab or a new one, lands on the same approval;
228
228
  it never asks again for a code the terminal has already used.
229
229
 
230
+ If the owner's approval window closes before they approve, `visa connect` and
231
+ `agent_enroll` say the link expired (`enrollment_expired`) instead of offering
232
+ it again; `visa connect --restart` (`restart: true`) makes a new link.
233
+
230
234
  On a machine that already holds its agent, `visa connect` (and `agent_enroll`)
231
235
  also looks after the agent's card key. That key's certificate runs to the end
232
236
  of the card approval it was issued under, and renewing the limits in the
@@ -252,13 +256,18 @@ the held agent answers again. `--restart` never touches the
252
256
  installed `pair-visa-agent` skill; `--force-skill` replaces it, moving a locally
253
257
  edited copy to `.visa-cli-managed/backups/` first.
254
258
 
255
- `visa connect --setup <key>` picks up an agent the owner started on the Visa
256
- website. That page shows the exact line to run once the agent exists. The
257
- approval link this prints carries the key, and the owner's page binds this
258
- machine to that agent instead of making a new one. Running the same line again
259
- resumes the same approval. A setup can be picked up by one computer only; a
260
- second gets `web_start_already_adopted`. In a chat, pass `setup` to
261
- `agent_enroll` with the same key.
259
+ `visa connect [client] --setup <key>` picks up an agent the owner started on
260
+ the Visa website. Once the owner approves it there, that page shows one line to
261
+ paste, `curl -fsSL https://app.visacli.sh/cli | bash && visa-cli connect <client> --setup <key>`,
262
+ which installs the CLI, mounts it in that client and carries the key. This
263
+ command tells the owner's open page which terminal it is (its challenge, code
264
+ and device keys, under the key), and the page adopts this machine for that
265
+ agent on its own: no link to open, no code to type, no second approval. It
266
+ opens no browser; the link and code it prints are the way back if the page was
267
+ closed. Running the same line again resumes the same approval. A setup can be
268
+ picked up by one computer only; a second gets `web_start_already_adopted`, and a
269
+ terminal signed in to another account is still refused. In a chat, pass `setup`
270
+ to `agent_enroll` with the same key.
262
271
 
263
272
  The agent's keys (wallet, card and TAP) live in the operating system's
264
273
  store: the macOS Keychain, Windows data protection (DPAPI), or the Linux Secret
@@ -545,15 +554,12 @@ Deterministic preconditions always resolve to a specific code:
545
554
  | Listing is not x402 (`pay`) | `invalid_argument` | `caller` |
546
555
  | Activity id not found or not attributable (`visa://receipt/{id}`) | `activity_entry_not_found` | `caller` |
547
556
  | A retired parameter was sent (`history` with `id` or `merchants`) | `invalid_argument` | `caller` |
548
- | The bundled signer is missing from this install (`agent_enroll`, `pay`) | `native_runtime_signer_not_installed` | `platform` |
549
- | The bundled signer is present but cannot be made executable | `native_runtime_signer_not_executable` | `platform` |
550
- | No signer is built for this OS/CPU | `native_runtime_platform_unsupported` | `platform` |
551
- | The signer could not be started (the `error` text carries the spawn errno) | `native_runtime_unavailable` | `platform` |
552
- | The signer exited (the `error` text carries its exit code and last stderr) | `native_runtime_closed` | `platform` |
553
- | The login keychain is locked or unavailable to the signer | `keychain_locked_or_unavailable` | `platform` |
557
+ | The login keychain is locked or unavailable to the agent-key store | `keychain_locked_or_unavailable` | `platform` |
554
558
  | The Linux keyring is locked, missing, or did not answer in time | `secret_service_locked_or_unavailable`, `secret_service_unavailable`, `secret_service_timeout` | `platform` |
555
559
  | Windows DPAPI refused the device key (usually a different Windows user) | `dpapi_locked_or_unavailable` | `platform` |
556
560
  | `visa connect --restart` while this computer's setup still waits for the owner's device approval (run `visa connect` to reopen it) | `enrollment_device_approval_pending` | `platform` |
561
+ | `visa connect --ceiling/--per-transaction` (`agent_enroll` `ceiling`/`per_transaction`) with limits different from the setup already waiting for approval; nothing changed. Run `visa connect` without them to reopen it, or `--restart` (`restart: true`) to ask for the new limits | `invalid_argument` | `caller` |
562
+ | The owner's approval link expired before they approved it (`visa connect`, `agent_enroll`); run `visa connect --restart` (`restart: true`) for a new link | `enrollment_expired` | `caller` |
557
563
  | The signer refused: this key is bound to another purpose, or an identity key was asked for a financial proof (nothing was signed or sent; update the CLI) | `key_purpose_mismatch`, `legacy_custody_profile_required` | `platform` |
558
564
  | The signer refused: the request named another agent or runtime than the key is bound to | `identity_binding_mismatch` | `platform` |
559
565
  | The signer refused a proof timestamp outside its window (the machine clock is wrong) | `proof_time_invalid` | `platform` |