@visa/cli 4.1.0-rc.67 → 4.1.0-rc.69
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/dist/cli.js +292 -292
- package/dist/mcp-server/index.js +222 -222
- package/dist/skills/pair-visa-agent/SKILL.md +19 -9
- package/native/bin/win32-x64/visa-keychain-win.exe +0 -0
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -202,15 +202,25 @@ setup step. Follow this sequence:
|
|
|
202
202
|
operation, so this runtime needs a live owner session before `grant-wallet`:
|
|
203
203
|
`agent_login` (MCP) or `visa agent login` (CLI). Without a session the grant has
|
|
204
204
|
no account to delegate from.
|
|
205
|
-
- [ ] **
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
205
|
+
- [ ] **Initiate the wallet grant from MCP — no shelling.** Call `agent_connect`
|
|
206
|
+
(`{"rail":"wallet","ceiling":"<usd>","perTransaction":"<usd>"}`); omit `agentId`
|
|
207
|
+
to target the most recently paired agent. It creates the delegation request and
|
|
208
|
+
returns `{ url, code, attachId, willGrant, expiresAt }`. Present the bare `url`
|
|
209
|
+
and `code` to the human exactly as returned — the crypto approval happens in the
|
|
210
|
+
browser and **cannot** run inline in chat. Prefer this over the raw
|
|
211
|
+
`visa agent grant-wallet <agentId>` CLI ceremony; `setup_agent` (`{"rail":"wallet"}`)
|
|
212
|
+
still sequences identity → wallet → policy → ready if you need the next-step map.
|
|
213
|
+
If `agent_connect` returns `{"code":"session_required"}`, run `agent_login` first.
|
|
214
|
+
- [ ] **Owner approves the wallet.** The human opens the `url` and confirms the wallet
|
|
215
|
+
grant on the **v4 agent dashboard** (`app.visacli.sh/agent/enroll`), approving with
|
|
216
|
+
their **sign-in session — no passkey** — and confirming the caps. You cannot approve
|
|
217
|
+
on their behalf.
|
|
218
|
+
- [ ] **Finish from MCP with `agent_connect_poll`.** Call `agent_connect_poll`
|
|
219
|
+
(`{"attachId":"<from agent_connect>"}`; or resume by `agentId`) — each call runs one
|
|
220
|
+
bounded poll. It returns `{"ok":false,"state":"...","blockedByKind":"awaiting_human_approval"}`
|
|
221
|
+
while pending; call again until it returns `{"ok":true,"state":"grant_activated","fundAddress":...,"caps":...}`.
|
|
222
|
+
Activation registers the delegated Turnkey signer + caps and writes the delegated
|
|
223
|
+
Turnkey credential (`turnkey.json`) to this runtime. It never spends.
|
|
214
224
|
- [ ] **Confirm the real wallet** with `wallet_status` (or `visa wallet show`). Only a
|
|
215
225
|
provisioned/delegated credential — not the served tool list — means the wallet is
|
|
216
226
|
usable; `agent_capabilities.wallet.available` reflects this.
|
|
Binary file
|
package/package.json
CHANGED
package/server.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-10-17/server.schema.json",
|
|
3
3
|
"name": "io.github.visa-crypto-labs/visa-cli",
|
|
4
|
-
"version": "4.1.0-rc.
|
|
4
|
+
"version": "4.1.0-rc.69",
|
|
5
5
|
"title": "Visa CLI",
|
|
6
6
|
"description": "Pair a human-approved agent identity, configure payment capabilities separately, and discover and pay x402 services from your AI coding assistant.",
|
|
7
7
|
"websiteUrl": "https://github.com/Visa-Crypto-Labs/Visa-mono/tree/main/packages/cli#readme",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
{
|
|
10
10
|
"registryType": "npm",
|
|
11
11
|
"identifier": "@visa/cli",
|
|
12
|
-
"version": "4.1.0-rc.
|
|
12
|
+
"version": "4.1.0-rc.69",
|
|
13
13
|
"transport": {
|
|
14
14
|
"type": "stdio"
|
|
15
15
|
},
|