@visa/cli 5.0.0-rc.417 → 5.0.0-rc.419

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/install.ps1 CHANGED
@@ -188,15 +188,14 @@ foreach ($commandName in $cliCommandNames) {
188
188
  Write-Host ""
189
189
  if ($verifiedCommand) {
190
190
  Write-Host " Visa CLI $visaVersion installed." -ForegroundColor Green
191
- Write-Host " Connect an AI client with: $verifiedCommand connect <client>" -ForegroundColor Cyan
192
- # Same door as install.sh, same reason: this line used to name the retired
193
- # setup ceremony. `pnpm lint:docs-sync` reads this file too.
194
- Write-Host " Then create your agent with: visa connect" -ForegroundColor Cyan
191
+ # Same one next step as install.sh: an angle-bracket placeholder is a redirection when
192
+ # pasted. `pnpm lint:docs-sync` reads this file too.
193
+ Write-Host " Next: visa connect" -ForegroundColor Cyan
195
194
  Write-Host " Or ask your agent to call its connect tool. You approve it in the browser." -ForegroundColor Cyan
196
195
  Write-Host ""
197
196
  } else {
198
197
  $primaryCommand = $cliCommandNames | Select-Object -First 1
199
198
  Write-Host " Installed but '$primaryCommand' was not runnable from PATH yet." -ForegroundColor Yellow
200
- Write-Host " Close and reopen PowerShell, then run: $primaryCommand connect <client>" -ForegroundColor Yellow
199
+ Write-Host " Close and reopen PowerShell, then run: visa connect" -ForegroundColor Yellow
201
200
  Write-Host ""
202
201
  }
package/install.sh CHANGED
@@ -72,16 +72,24 @@ NPM_OUTPUT=""
72
72
  NPM_EXIT=0
73
73
  NPM_OUTPUT="$(npm install -g "$PACKAGE" 2>&1)" || NPM_EXIT=$?
74
74
 
75
+ # No permission to write npm's global folder (a system Node): install once more
76
+ # under a folder this user owns, instead of handing back manual steps (T33).
77
+ USER_PREFIX=""
78
+ if [ "$NPM_EXIT" -ne 0 ] && echo "$NPM_OUTPUT" | grep -qiE 'EACCES|permission denied|access denied'; then
79
+ USER_PREFIX="$HOME/.npm-global"
80
+ printf " ${DIM}No permission for npm's global folder. Running: npm install -g --prefix ~/.npm-global ${PACKAGE}${RESET}\n"
81
+ mkdir -p "$USER_PREFIX"
82
+ NPM_EXIT=0
83
+ NPM_OUTPUT="$(npm install -g --prefix "$USER_PREFIX" "$PACKAGE" 2>&1)" || NPM_EXIT=$?
84
+ export PATH="$USER_PREFIX/bin:$PATH"
85
+ fi
86
+
75
87
  if [ "$NPM_EXIT" -ne 0 ]; then
76
88
  echo "$NPM_OUTPUT"
77
89
  echo ""
78
90
 
79
91
  if echo "$NPM_OUTPUT" | grep -qiE 'EACCES|permission denied|access denied'; then
80
- warn "Permission problem. Fix with a user-scoped npm prefix:"
81
- warn " mkdir -p ~/.npm-global"
82
- warn " npm config set prefix ~/.npm-global"
83
- warn ' export PATH="$HOME/.npm-global/bin:$PATH"'
84
- warn "Add the export line to your shell profile, then rerun this installer."
92
+ warn "npm could not write to ~/.npm-global either. Check that your home folder is writable, then rerun this installer."
85
93
  elif echo "$NPM_OUTPUT" | grep -qiE 'UNABLE_TO_GET_ISSUER_CERT|SELF_SIGNED_CERT|CERT_HAS_EXPIRED'; then
86
94
  warn "Certificate/proxy problem. If you are on a corporate network,"
87
95
  warn "use a personal network or ask IT for the npm certificate configuration."
@@ -104,16 +112,18 @@ fi
104
112
  echo ""
105
113
  if [ -n "$VISA_VERSION" ]; then
106
114
  ok "Visa CLI ${VISA_VERSION} installed."
107
- info "Connect an AI client with: visa-cli connect <client>"
108
- # The door, named as the shell sees it. This line used to name the retired
109
- # setup ceremony, so an owner who followed it to the letter got
110
- # legacy_door_removed at the end of a clean install (owner report,
111
- # 2026-09-15). `pnpm lint:docs-sync` now reads this file.
112
- info "Then create your agent with: visa connect"
115
+ # One runnable next step (T16). `visa connect` mounts the app it runs in and
116
+ # names that app's restart; a pasted placeholder in angle brackets is a shell
117
+ # redirection. `pnpm lint:docs-sync` reads this file.
118
+ if [ -n "$USER_PREFIX" ]; then
119
+ # The one line that keeps it on PATH in new shells.
120
+ info "Add to your shell profile: export PATH=\"\$HOME/.npm-global/bin:\$PATH\""
121
+ fi
122
+ info "Next: visa connect"
113
123
  info "Or ask your agent to call its connect tool. You approve it in the browser."
114
124
  else
115
125
  warn "Installed, but 'visa-cli' was not found on PATH."
116
- warn "Restart your shell, then run: visa-cli connect <client>"
126
+ warn "Restart your shell, then run: visa connect"
117
127
  fi
118
128
  echo ""
119
129
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visa/cli",
3
- "version": "5.0.0-rc.417",
3
+ "version": "5.0.0-rc.419",
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",
@@ -60,6 +60,7 @@
60
60
  "@visa/financial-core": "workspace:*",
61
61
  "@visa/identity": "workspace:*",
62
62
  "@visa/contracts": "workspace:*",
63
+ "@visa/integration-taskmarket": "workspace:*",
63
64
  "@visa/observability": "workspace:*",
64
65
  "@visa/shared": "workspace:*",
65
66
  "@visa/wallet": "workspace:*",
package/server.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
3
3
  "name": "io.github.visa-crypto-labs/visa-cli",
4
- "version": "5.0.0-rc.417",
4
+ "version": "5.0.0-rc.419",
5
5
  "title": "Visa CLI",
6
6
  "description": "Connect an owner-approved agent, then discover and pay supported Tempo MPP services within its limits.",
7
7
  "websiteUrl": "https://web-visa-code-preview.up.railway.app/docs",
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "registryType": "npm",
11
11
  "identifier": "@visa/cli",
12
- "version": "5.0.0-rc.417",
12
+ "version": "5.0.0-rc.419",
13
13
  "transport": {
14
14
  "type": "stdio"
15
15
  },