@visa/cli 4.1.0-rc.162 → 4.1.0-rc.164

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.
@@ -79,6 +79,7 @@ mcp_servers:
79
79
  | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
80
80
  | OpenClaw | Install `@visa/visa-cli-openclaw` for the `pair_agent_*` tools and bundled skill. The plugin auto-mounts the Visa MCP server. The MCP or raw CLI surfaces remain valid alternatives. |
81
81
  | Hermes | Run `visa-cli connect hermes`, install `pair-visa-agent/SKILL.md` under `~/.hermes/skills/`, and use `enroll_agent`. `hermes claw migrate` can import an existing OpenClaw setup. |
82
+ | Codex | Run `visa agent skill --runtime codex`. It plants the skill under `~/.codex/skills/` and mounts the Visa MCP server into `~/.codex/config.toml` in the same step. |
82
83
  | Other runtime | Put `visa` on `PATH`, mount the same MCP server if supported, or use the raw `visa agent enroll` and `visa agent enroll-claim` commands as the universal fallback. |
83
84
 
84
85
  The skill itself can be installed with `visa agent skill`. Pass `--runtime <name>` or
@@ -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.7.0'
9
+ version: '0.7.1'
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
@@ -40,6 +40,16 @@ protocol v2 has one ceremony and three equivalent ways to drive it:
40
40
  Use the first surface available. Do not mix this flow with older pairing or login flows;
41
41
  all three surfaces above wrap the same v2 enrollment ceremony and local pending state.
42
42
 
43
+ **Console handoff codes are a separate, compound ceremony.** When the human brings a
44
+ one-time code minted by the Console's Create-agent flow, claim it instead of pairing:
45
+ the code carries server-held, pre-approved terms and resolves identity + spending in one
46
+ run (card auto-activates from the mint consent; wallet still needs one browser approval).
47
+ The MCP tool `agent_handoff_claim` exists only on `@visa/cli` **4.1.0-rc.159 and newer**
48
+ — on an older CLI it is absent from the served tool list and the only path is shelling
49
+ `visa agent handoff-claim <code> --format json`, a different integration with different
50
+ failure modes (the approval URL and verification code arrive mid-run as a structured
51
+ stderr frame). Never assume the tool from documentation alone: check the served list.
52
+
43
53
  ## What pairing establishes
44
54
 
45
55
  Pairing activates an agent identity on this runtime:
@@ -67,8 +77,8 @@ npm install -g @visa/cli@rc
67
77
  visa agent skill
68
78
  ```
69
79
 
70
- `visa agent skill` auto-detects OpenClaw, Hermes, and Claude Code, falling back to the
71
- project-local `./.agents/skills`. Pass `--runtime <name>` or `--dir <path>` to choose a
80
+ `visa agent skill` auto-detects OpenClaw, Hermes, Claude Code, and Codex, falling back to
81
+ the project-local `./.agents/skills`. Pass `--runtime <name>` or `--dir <path>` to choose a
72
82
  target, `--force` to overwrite, or `--print` to read without writing. Reload or restart
73
83
  the agent runtime after installation so it registers the skill.
74
84
 
@@ -134,9 +144,16 @@ mcp_servers:
134
144
  ```
135
145
 
136
146
  Hermes also loads skills **per profile** from `~/.hermes/profiles/<profile>/skills/`, not
137
- from `~/.hermes/skills/` on a multi-profile box, install with an explicit target:
138
- `visa agent skill --dir ~/.hermes/profiles/<profile>/skills`. A flat-dir install exits 0
139
- and is silently never loaded.
147
+ from `~/.hermes/skills/`. `visa agent skill --runtime hermes` resolves this automatically:
148
+ it targets the single profile when exactly one exists (or the one named by
149
+ `HERMES_PROFILE`), and **fails loudly** on a multi-profile box instead of planting into
150
+ the flat dir nothing reads — pass `--dir ~/.hermes/profiles/<profile>/skills` to choose.
151
+
152
+ **Hermes sanitizes MCP server names when registering tools.** A server declared
153
+ `visa-cli` in `mcp_servers:` registers its tools as `mcp__visa_cli__<tool>` — with an
154
+ UNDERSCORE, not the declared hyphen. Anything that hardcodes `mcp__visa-cli__<tool>` gets
155
+ `unknown tool` on every call while looking correct in review. Read tool names off the
156
+ live registry; never derive them from the config key.
140
157
 
141
158
  In Hermes, `hermes claw migrate` can also import this skill and MCP configuration from an
142
159
  existing OpenClaw installation. See `RUNTIMES.md` for the complete runtime map.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visa/cli",
3
- "version": "4.1.0-rc.162",
3
+ "version": "4.1.0-rc.164",
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.162",
4
+ "version": "4.1.0-rc.164",
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.162",
12
+ "version": "4.1.0-rc.164",
13
13
  "transport": {
14
14
  "type": "stdio"
15
15
  },