@visa/cli 4.1.0-rc.35 → 4.1.0-rc.37
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 +232 -230
- package/dist/mcp-server/index.js +164 -162
- package/dist/skills/pair-visa-agent/SKILL.md +27 -1
- package/native/bin/win32-x64/visa-keychain-win.exe +0 -0
- package/package.json +1 -1
- package/server.json +2 -2
|
@@ -6,7 +6,7 @@ allowed-tools: Bash(visa:*) Bash(visa-cli:*) Bash(node:*) Bash(npm:*) Bash(npx:*
|
|
|
6
6
|
metadata:
|
|
7
7
|
author: visa
|
|
8
8
|
homepage: https://visacli.sh/agents
|
|
9
|
-
version: '0.6.
|
|
9
|
+
version: '0.6.5'
|
|
10
10
|
# OpenClaw-namespaced extension (agentskills.io keeps `metadata` free-form, so
|
|
11
11
|
# non-standard runtime config lives here — `user-invocable` is not a standard
|
|
12
12
|
# top-level field). OpenClaw auto-installs `install[]` when `requires.bins` are
|
|
@@ -151,6 +151,32 @@ It returns `browserUrl` + `confirmCode` **immediately** and finishes the claim i
|
|
|
151
151
|
tell the user it will pair automatically. Use the step-by-step flow below only when
|
|
152
152
|
`pair` isn't available (older build) or you need the plugin/MCP tools.
|
|
153
153
|
|
|
154
|
+
## Returning & already-connected — do NOT re-pair
|
|
155
|
+
|
|
156
|
+
If `pair`/`enroll` returns **`already_connected`** (or `alreadyConnected: true`), this
|
|
157
|
+
device is **already set up** as an agent — a fresh pairing is neither needed nor
|
|
158
|
+
possible (re-pairing an existing identity silently dead-ends). Do this instead:
|
|
159
|
+
|
|
160
|
+
1. **Tell the user plainly:** "This device is already connected as `<name>.visa`."
|
|
161
|
+
Read the name from the response. Do **not** start another hand-off. `--new` /
|
|
162
|
+
`force:true` exists only if they explicitly want a _second, separate_ agent.
|
|
163
|
+
2. **Report status honestly — "connected" is five separate things**, not one. Never
|
|
164
|
+
imply the agent can spend just because it's connected:
|
|
165
|
+
- **Identity** — connected (`.visa` name bound to _this user's_ account). ✓ once `already_connected`.
|
|
166
|
+
- **Spending** — a _separate human approval_. If `keyBound`/spend isn't set, say:
|
|
167
|
+
"To let me pay, approve spending in your **account settings → agent card → Spend**."
|
|
168
|
+
You **cannot** self-grant it; never tell the user to run `visa agent add-rail`
|
|
169
|
+
(it refuses identity-only agents).
|
|
170
|
+
- **Mesh (`.visa` messaging)** — with `SUBWAY_MESH=visa`, a returning device now
|
|
171
|
+
registers on `pair`; if `meshRegistered` is false, `visa register <name>` joins it.
|
|
172
|
+
- **Trusted (TAP)** — follows spend/provisioning; don't promise it before then.
|
|
173
|
+
3. **Scope everything to the user.** The identity is bound to the account the user
|
|
174
|
+
signed in with (their email); the wallet + spend limits are theirs. Speak in terms
|
|
175
|
+
of "your agent / your account / the limits you approved," never a shared identity.
|
|
176
|
+
|
|
177
|
+
The paid wallet keeps working regardless of the account's spend flag — see "What you
|
|
178
|
+
can do once paired." Missing **spend** blocks _checkout mandates_, not local x402 pay.
|
|
179
|
+
|
|
154
180
|
## Core flow
|
|
155
181
|
|
|
156
182
|
Copy this checklist and track progress:
|
|
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.37",
|
|
5
5
|
"title": "Visa CLI",
|
|
6
6
|
"description": "Visa Verified Agent payments for coding agents. Enroll a .visa identity, pair a delegated self-custodial wallet with human-approved spend caps, and discover and pay x402 services — all 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.37",
|
|
13
13
|
"transport": {
|
|
14
14
|
"type": "stdio"
|
|
15
15
|
},
|