@visa/cli 4.1.0-rc.185 → 4.1.0-rc.187

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.
@@ -296,7 +296,7 @@ approve — you poll to completion yourself:
296
296
  confirming the caps — **card with a passkey, wallet with their sign-in session**. You
297
297
  cannot approve on their behalf.
298
298
  - [ ] **Poll to activation from MCP.** Call `agent_connect_poll` (`{"attachId":"<from
299
- agent_connect>"}`; or resume by `agentId`) — one bounded poll per call. It returns
299
+ agent_connect>"}`; or resume by `agentId`) — one bounded poll per call. It returns
300
300
  `{"ok":false,"state":"...","blockedByKind":"awaiting_human_approval"}` while pending;
301
301
  call again until `{"ok":true,"state":"grant_activated","caps":...}` (wallet also
302
302
  returns `fundAddress`). Activation registers the delegated signer + caps: wallet writes
@@ -338,6 +338,20 @@ challenge without paying), `wallet_pay` / `wallet_directory_pay` (pay, policy-en
338
338
  `wallet_fund` (funding address + faucet), and `wallet_export` (export key material —
339
339
  dangerous). All spending is gated by the owner-approved local policy caps.
340
340
 
341
+ ## Cancelling pending ceremonies
342
+
343
+ If a pairing or spending ceremony was started mistakenly, needs updated caps/rails, or the human chooses to abandon it, cancel it explicitly rather than letting it sit or waiting for its TTL:
344
+
345
+ 1. **Cancelling identity pairing:**
346
+ - **MCP:** `enroll_agent { action: "cancel", pairingId: "<pairingId>" }` or `agent_pairing_cancel { pairingId: "<pairingId>" }`.
347
+ - **CLI:** `visa agent cancel <pairingId>`.
348
+ - Requires the immutable `pairingId` from the start step. Clears local pending state and releases the ceremony server-side. Replays return typed `already_terminal`.
349
+
350
+ 2. **Cancelling spending-grant (connect) ceremonies:**
351
+ - **MCP:** `agent_connect_cancel { attachId: "<attachId>" }` or `agent_connect { action: "cancel", attachId: "<attachId>" }`.
352
+ - **CLI:** `visa agent grant-cancel <attachId>`.
353
+ - Requires the immutable `attachId` (`ca_...`). Releases the owner-side hold and purges local pending files so a fresh grant ceremony can be started immediately. Replaying returns `already_terminal` / `noop`. Subsequent polls report `rejected` without resurrecting local state.
354
+
341
355
  ## Core flow
342
356
 
343
357
  - [ ] Establish the owner session ("Sign in first" above) if this runtime does not have
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visa/cli",
3
- "version": "4.1.0-rc.185",
3
+ "version": "4.1.0-rc.187",
4
4
  "description": "Visa CLI runtime for stable agent identity and separately authorized payment capabilities",
5
5
  "bin": {
6
6
  "visa-cli": "./bin/visa-cli.js",
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.185",
4
+ "version": "4.1.0-rc.187",
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.185",
12
+ "version": "4.1.0-rc.187",
13
13
  "transport": {
14
14
  "type": "stdio"
15
15
  },