@visa/cli 5.0.0-rc.394 → 5.0.0-rc.396

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
@@ -200,9 +200,12 @@ Re-run `visa connect` any time to see what is mounted and finish whatever is
200
200
  unfinished; every step is idempotent. To ask what this machine can do from
201
201
  inside an agent, call `get_status`.
202
202
 
203
- Two browser approvals remain: the sign-in page, then the protected-agent page
204
- where the owner approves the device and its limits. Each prints one URL and one
205
- short code at a time. Never relay the code on the owner's behalf.
203
+ A signed-out machine that holds no agent gets one URL and one short code: the
204
+ owner signs in on the protected-agent page, types the code once (it signs the
205
+ terminal in and binds its request), then approves the device and its limits as
206
+ a separate press. A machine that already holds an agent, or a Visa web that
207
+ does not yet offer this, signs in on its own page first, so the owner sees two
208
+ URLs and two codes, one at a time. Never relay the code on the owner's behalf.
206
209
 
207
210
  After the device is approved, the owner's page sets up the agent's key on
208
211
  their Tempo wallet (it asks for USDC.e first if the wallet is empty, and keeps
@@ -220,6 +223,14 @@ are kept as `*.replaced-<time>` backups). `--restart` never touches the
220
223
  installed `pair-visa-agent` skill; `--force-skill` replaces it, moving a locally
221
224
  edited copy to `.visa-cli-managed/backups/` first.
222
225
 
226
+ `visa connect --setup <key>` picks up an agent the owner started on the Visa
227
+ website. That page shows the exact line to run once the agent exists. The
228
+ approval link this prints carries the key, and the owner's page binds this
229
+ machine to that agent instead of making a new one. Running the same line again
230
+ resumes the same approval. A setup can be picked up by one computer only; a
231
+ second gets `web_start_already_adopted`. In a chat, pass `setup` to
232
+ `agent_enroll` with the same key.
233
+
223
234
  The agent's keys (wallet, card and TAP) live in the operating system's
224
235
  store: the macOS Keychain, Windows data protection (DPAPI), or the Linux Secret
225
236
  Service; a server without one uses an owner-only `0600` file only when
@@ -319,7 +330,7 @@ a name that was ever real has to stay readable here.
319
330
  | Tool | Description |
320
331
  |------|-------------|
321
332
  | `get_status` | Everything about this machine in one answer: the owner signed in, the agent this machine holds, its limits, its capabilities, and what is owed next |
322
- | `agent_enroll` | The one door. Idempotent, and runs whichever leg is owed: signs the owner in when the session lapsed, answers `already_connected` when this machine already holds a usable agent (so an agent that exists is never answered by minting a second one), and enrolls when none is held. One Approve certifies this machine's wallet, card and TAP keys. On a new computer, the owner can choose "replacing" on the approval page to move an existing agent there; the old computer's keys stop. Pass `restart: true` to force a fresh enrollment |
333
+ | `agent_enroll` | The one door. Idempotent, and runs whichever leg is owed: signs the owner in when the session lapsed, answers `already_connected` when this machine already holds a usable agent (so an agent that exists is never answered by minting a second one), and enrolls when none is held. One Approve certifies this machine's wallet, card and TAP keys. On a new computer, the owner can choose "replacing" on the approval page to move an existing agent there; the old computer's keys stop. Pass `restart: true` to force a fresh enrollment, or `setup: "<key>"` to pick up the agent the owner started on the Visa website |
323
334
  | `discover` | Find something to pay for. Takes search text (by default it searches paid services the wallet pays on Tempo), or one URL to read its live charge without paying |
324
335
  | `pay` | Pay **from the agent wallet**: MPP on Tempo, in USDC.e. Search text searches; a URL whose 402 offers a Tempo charge pays (without `max` it returns the price and what the agent can spend now). A merchant with no Tempo charge, or a directory listing id, is refused with `merchant_not_supported`. A merchant checkout URL is refused by name — that is `purchase_create` |
325
336
  | `history` | Receipts, across every rail, with reconciliation when a payment's outcome is unresolved. Tempo payments are listed under `tempoPayments` |