@visa/cli 5.0.0-rc.407 → 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 +13 -7
- package/dist/cli.js +172 -172
- package/dist/enrollment-finisher.js +125 -0
- package/dist/mcp-server/index.js +306 -306
- package/dist/merchant-ucp-mcp/index.js +6 -6
- package/package.json +1 -4
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -256,13 +256,18 @@ the held agent answers again. `--restart` never touches the
|
|
|
256
256
|
installed `pair-visa-agent` skill; `--force-skill` replaces it, moving a locally
|
|
257
257
|
edited copy to `.visa-cli-managed/backups/` first.
|
|
258
258
|
|
|
259
|
-
`visa connect --setup <key>` picks up an agent the owner started on
|
|
260
|
-
website.
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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.
|
|
266
271
|
|
|
267
272
|
The agent's keys (wallet, card and TAP) live in the operating system's
|
|
268
273
|
store: the macOS Keychain, Windows data protection (DPAPI), or the Linux Secret
|
|
@@ -553,6 +558,7 @@ Deterministic preconditions always resolve to a specific code:
|
|
|
553
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` |
|
|
554
559
|
| Windows DPAPI refused the device key (usually a different Windows user) | `dpapi_locked_or_unavailable` | `platform` |
|
|
555
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` |
|
|
556
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` |
|