alpha-cli-toolkit 1.2.0 → 1.3.0

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.
Files changed (2) hide show
  1. package/bin/alpha.js +2 -2
  2. package/package.json +1 -1
package/bin/alpha.js CHANGED
@@ -7,7 +7,7 @@ const Table = require('cli-table3');
7
7
  const { authenticateViaBrowser, getToken, clearToken } = require('../utils/auth');
8
8
 
9
9
  const program = new Command();
10
- const BACKEND_URL = process.env.ALPHA_BACKEND_URL;
10
+ const BACKEND_URL = process.env.ALPHA_BACKEND_URL || 'https://alpha-cli.onrender.com/api';
11
11
 
12
12
  program
13
13
  .name('alpha')
@@ -71,7 +71,7 @@ program
71
71
  }
72
72
 
73
73
  // Backend health
74
- const healthUrl = BACKEND_URL ? `${BACKEND_URL.replace(/\/api$/, '')}/health` : 'http://localhost:4000/health';
74
+ const healthUrl = `${BACKEND_URL.replace(/\/api$/, '')}/health`;
75
75
  try {
76
76
  const { data } = await axios.get(healthUrl, { timeout: 3000 });
77
77
  console.log(chalk.green(' ✅ Backend online') + chalk.grey(` (${data.timestamp})`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alpha-cli-toolkit",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Autonomous Agent Toolkit for Crypto & TradFi market data powered by Nansen.",
5
5
  "main": "index.js",
6
6
  "scripts": {