@visa/cli 5.0.0-rc.401 → 5.0.0-rc.402
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 +5 -6
- package/dist/cli.js +7 -7
- package/dist/mcp-server/index.js +313 -320
- package/dist/merchant-ucp-mcp/index.js +5 -5
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -171,8 +171,7 @@ The server now exposes:
|
|
|
171
171
|
- JSON Schema 2020-12 tool inputs and outputs, `structuredContent`, namespaced result metadata, cache hints, and receipt `resource_link` blocks.
|
|
172
172
|
- Resources for agent status, capabilities, recent activity, and canonical `visa://receipt/{transactionId}` receipts.
|
|
173
173
|
- Prompts for pairing/funding, spend inspection, safe purchasing, and receipt reconciliation, with completion support.
|
|
174
|
-
-
|
|
175
|
-
- Recovery of existing approval continuations through multi-round-trip `input_required` URL elicitation with HMAC-protected, client-bound request state. New wallet `pay` calls do not start card approval work.
|
|
174
|
+
- No `io.modelcontextprotocol/tasks` extension: it only ever carried the retired card checkout, so `tasks/*` requests answer JSON-RPC `-32601` and a replayed `requestState` continuation answers `-32602`. A wallet `pay` that needs the owner's approval is resumed by calling `pay` again with the same `economicIntentId`.
|
|
176
175
|
- The `io.modelcontextprotocol/ui` Visa Control Center MCP App at `ui://visa/control-center`.
|
|
177
176
|
|
|
178
177
|
Visa sidebands no longer pollute business JSON. Clients receive keys such as `io.visa/visa-receipt` and `io.visa/update-available` in result `_meta`.
|
|
@@ -306,8 +305,7 @@ The rail comes from the target. You never name it:
|
|
|
306
305
|
discover { "query": "current weather by city" } # nothing is spent
|
|
307
306
|
pay { "target": "<listing-id>", "max": "0.05", ... } # probe, policy check, sign, settle
|
|
308
307
|
pay { "target": "https://provider.example/paid", "max": "0.05" }
|
|
309
|
-
history {} # this agent's payments
|
|
310
|
-
history { "id": "<activity-id>" } # one receipt, with its proof
|
|
308
|
+
history {} # this agent's payments, with their proof
|
|
311
309
|
```
|
|
312
310
|
|
|
313
311
|
Owners read spend across every rail in the Console's Activity feed.
|
|
@@ -369,7 +367,7 @@ a name that was ever real has to stay readable here.
|
|
|
369
367
|
| `wallet_directory_pay` | **Removed.** Use `pay` |
|
|
370
368
|
| `wallet_history` | **Removed.** Use `history` |
|
|
371
369
|
| `wallet_fund` | **Removed.** The funding address is in `get_status` |
|
|
372
|
-
| `checkout_merchants` | **Removed.**
|
|
370
|
+
| `checkout_merchants` | **Removed.** Card purchases are read with `purchase_retrieve` |
|
|
373
371
|
| `reset` | **Removed.** Use `visa disconnect --all` |
|
|
374
372
|
|
|
375
373
|
Ground rules the tooling enforces — work with them, not around them:
|
|
@@ -528,7 +526,8 @@ Deterministic preconditions always resolve to a specific code:
|
|
|
528
526
|
| The owner's spending approval for this agent has run out (`pay`, card purchases); nothing was charged, and the owner renews it at the `remedyUrl` limits page with the same limits | `grant_expired` | `platform` |
|
|
529
527
|
| The owner pressed Decline on this exact "Ask me each time" payment (wallet or card); nothing was charged and it is never paid | `owner_declined` | `caller` |
|
|
530
528
|
| Listing is not x402 (`pay`) | `invalid_argument` | `caller` |
|
|
531
|
-
| Activity id not found or not attributable (`
|
|
529
|
+
| Activity id not found or not attributable (`visa://receipt/{id}`) | `activity_entry_not_found` | `caller` |
|
|
530
|
+
| A retired parameter was sent (`history` with `id` or `merchants`) | `invalid_argument` | `caller` |
|
|
532
531
|
| The bundled signer is missing from this install (`agent_enroll`, `pay`) | `native_runtime_signer_not_installed` | `platform` |
|
|
533
532
|
| The bundled signer is present but cannot be made executable | `native_runtime_signer_not_executable` | `platform` |
|
|
534
533
|
| No signer is built for this OS/CPU | `native_runtime_platform_unsupported` | `platform` |
|