@visa/cli 2.4.0-rc.1 → 2.4.0-rc.11
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/README.md +48 -32
- package/dist/cli.js +120 -120
- package/dist/mcp-server/index.js +20 -20
- package/install.ps1 +1 -1
- package/install.sh +14 -7
- package/package.json +5 -5
- package/server.json +2 -2
package/install.ps1
CHANGED
package/install.sh
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
2
|
# Visa CLI installer for macOS and Linux
|
|
3
|
-
# Usage:
|
|
3
|
+
# Usage: curl -fsSL https://app.visacli.sh/cli | bash
|
|
4
4
|
#
|
|
5
5
|
# The entire body is wrapped in _visa_install() so bash must parse the full
|
|
6
6
|
# file before executing anything — prevents partial-download execution if
|
|
@@ -113,23 +113,30 @@ if [ -n "$VISA_VERSION" ]; then
|
|
|
113
113
|
ok "Visa CLI ${VISA_VERSION} installed."
|
|
114
114
|
# Hand off straight into setup so install -> setup -> signed-in is one
|
|
115
115
|
# uninterrupted flow. Hardening:
|
|
116
|
-
# * Auto-launch only when
|
|
117
|
-
#
|
|
118
|
-
#
|
|
116
|
+
# * Auto-launch only when output streams are real terminals and setup can
|
|
117
|
+
# read from either stdin or /dev/tty. That keeps `curl ... | bash` usable:
|
|
118
|
+
# the script arrives on stdin, while setup prompts still read from the
|
|
119
|
+
# user's terminal. CI and redirected output print the next step instead.
|
|
119
120
|
# * Invoke "$VISA_BIN" (the path verified just above), never a bare
|
|
120
121
|
# "visa-cli" re-resolved through $PATH at call time.
|
|
121
122
|
# * Pass only the literal "setup" argument — "$@" is never forwarded — so
|
|
122
123
|
# nothing the script's caller controls reaches the installed binary.
|
|
123
|
-
if [ -t
|
|
124
|
+
if [ -t 1 ] && [ -t 2 ] && { [ -t 0 ] || [ -r /dev/tty ]; }; then
|
|
124
125
|
echo ""
|
|
125
126
|
info "Continuing to setup..."
|
|
126
127
|
echo ""
|
|
127
|
-
|
|
128
|
+
SETUP_EXIT=0
|
|
129
|
+
if [ -t 0 ]; then
|
|
130
|
+
"$VISA_BIN" setup || SETUP_EXIT=$?
|
|
131
|
+
else
|
|
132
|
+
"$VISA_BIN" setup </dev/tty || SETUP_EXIT=$?
|
|
133
|
+
fi
|
|
134
|
+
if [ "$SETUP_EXIT" -ne 0 ]; then
|
|
128
135
|
echo ""
|
|
129
136
|
warn "Setup exited before completion. Visa CLI is installed."
|
|
130
137
|
warn "run 'visa-cli setup' when you're ready to finish."
|
|
131
138
|
exit 1
|
|
132
|
-
|
|
139
|
+
fi
|
|
133
140
|
exit 0
|
|
134
141
|
else
|
|
135
142
|
info "Run 'visa-cli setup' to get started."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visa/cli",
|
|
3
|
-
"version": "2.4.0-rc.
|
|
3
|
+
"version": "2.4.0-rc.11",
|
|
4
4
|
"description": "AI-powered payments for Claude Code",
|
|
5
5
|
"bin": {
|
|
6
6
|
"visa-cli": "./bin/visa-cli.js"
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"@changesets/changelog-git": "^0.2.1",
|
|
53
53
|
"@changesets/cli": "^2.31.0",
|
|
54
54
|
"@types/jest": "^30.0.0",
|
|
55
|
-
"@types/node": "^25.9.
|
|
56
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
57
|
-
"@typescript-eslint/parser": "^8.
|
|
55
|
+
"@types/node": "^25.9.1",
|
|
56
|
+
"@typescript-eslint/eslint-plugin": "^8.60.0",
|
|
57
|
+
"@typescript-eslint/parser": "^8.60.0",
|
|
58
58
|
"@types/express": "^5.0.0",
|
|
59
59
|
"esbuild": "^0.27.4",
|
|
60
60
|
"express": "^4.21.0",
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
"eslint-config-prettier": "^10.1.8",
|
|
63
63
|
"jest": "^29.7.0",
|
|
64
64
|
"prettier": "^3.8.3",
|
|
65
|
-
"ts-jest": "^29.4.
|
|
65
|
+
"ts-jest": "^29.4.11",
|
|
66
66
|
"typescript": "^5.7.0"
|
|
67
67
|
},
|
|
68
68
|
"engines": {
|
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": "2.4.0-rc.
|
|
4
|
+
"version": "2.4.0-rc.11",
|
|
5
5
|
"title": "Visa CLI",
|
|
6
6
|
"description": "AI-powered payments and creative tools for coding agents. Generate images, music, video, query crypto prices, and make purchases — 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": "2.4.0-rc.
|
|
12
|
+
"version": "2.4.0-rc.11",
|
|
13
13
|
"transport": {
|
|
14
14
|
"type": "stdio"
|
|
15
15
|
},
|