@visa/cli 4.1.0-rc.121 → 4.1.0-rc.123
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 +324 -321
- package/dist/mcp-server/index.js +255 -252
- package/native/bin/win32-x64/visa-keychain-win.exe +0 -0
- package/package.json +1 -1
- package/server.json +2 -2
package/README.md
CHANGED
|
@@ -128,9 +128,9 @@ receives a delegated, capped, revocable signer (it can never mint one itself).
|
|
|
128
128
|
With a wallet delegated, set caps before funding:
|
|
129
129
|
|
|
130
130
|
```bash
|
|
131
|
-
visa wallet limits --per-transaction 0.25 --daily 2.00
|
|
132
|
-
visa wallet show
|
|
133
|
-
visa wallet fund
|
|
131
|
+
visa wallet limits --agent <agent-id> --per-transaction 0.25 --daily 2.00
|
|
132
|
+
visa wallet show --agent <agent-id> # address, network, policy
|
|
133
|
+
visa wallet fund --agent <agent-id> # funding instructions
|
|
134
134
|
```
|
|
135
135
|
|
|
136
136
|
Fund the wallet with USDC only after limits are set. Payments are gasless — no ETH is ever needed. Mainnet (Base) is the production default; set `VISA_V4_NETWORK=base-sepolia` for testnet, where `visa wallet fund` points at the faucet.
|
|
@@ -140,9 +140,9 @@ Fund the wallet with USDC only after limits are set. Payments are gasless — no
|
|
|
140
140
|
```bash
|
|
141
141
|
visa find "current weather by city" --max 0.10 # discovery; spends nothing
|
|
142
142
|
visa inspect <listing-id> # fetches the live 402 challenge; spends nothing
|
|
143
|
-
visa pay <listing-id> --max 0.05
|
|
144
|
-
visa activity
|
|
145
|
-
visa receipt <receipt-id>
|
|
143
|
+
visa pay <listing-id> --agent <agent-id> --max 0.05 # policy check → sign → settle
|
|
144
|
+
visa activity --agent <agent-id> # recent payments
|
|
145
|
+
visa receipt <receipt-id> --agent <agent-id> # journaled proof with on-chain tx
|
|
146
146
|
|
|
147
147
|
# Advanced direct-URL mode uses the same probe, policy, and receipt path.
|
|
148
148
|
visa inspect --url https://provider.example/paid
|
|
@@ -156,6 +156,11 @@ owned by `apps/mpp`, and VIC uses the checkout/mandate surface. Unsupported
|
|
|
156
156
|
rails are refused before signing. The wallet exposes no agent key-export
|
|
157
157
|
command.
|
|
158
158
|
|
|
159
|
+
Each wallet-enabled agent has an isolated Turnkey credential, policy, journal,
|
|
160
|
+
receipts, and paid-response directory. `--agent` / the MCP `agent` field may be
|
|
161
|
+
omitted while exactly one wallet authority exists; with multiple authorities it
|
|
162
|
+
is required so the CLI never guesses which agent can spend.
|
|
163
|
+
|
|
159
164
|
## MCP tools (v4 surface)
|
|
160
165
|
|
|
161
166
|
| Tool | Description |
|
|
@@ -256,8 +261,9 @@ visa-cli feedback # submit feedback
|
|
|
256
261
|
| `~/.visa-cli/pairings/` | Pending ceremony verifier or runtime identity key (owner-only mode 0600 on macOS/Linux; v2 pairing currently disabled on Windows) |
|
|
257
262
|
| `~/.visa-cli/agents/` | Activated agent identity, runtime private key, and signed activation credentials (owner-only mode 0600 on macOS/Linux; v2 pairing currently disabled on Windows) |
|
|
258
263
|
| `~/.visa-cli/session-recovery/` | Pending login-only PKCE verifier and pinned web origin (owner-only mode 0600 on macOS/Linux) |
|
|
264
|
+
| `~/.visa-cli/removed-agents/` | Records of agents deleted on the server, kept 30 days then dropped. Written automatically; nothing reads it |
|
|
259
265
|
| `~/.visa-mcp/agent-credential.json` | Legacy checkout-credential compatibility record (mode 0600) |
|
|
260
|
-
| `~/.visa-v4/
|
|
266
|
+
| `~/.visa-v4/agents/<agentId>/` | Per-agent Turnkey credential, spend policy, reservation journal, receipts, and paid responses — never edit by hand |
|
|
261
267
|
|
|
262
268
|
## Troubleshooting
|
|
263
269
|
|