alpha-cli-toolkit 1.1.0 → 1.2.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.
package/bin/alpha.js CHANGED
@@ -1,4 +1,5 @@
1
1
  #!/usr/bin/env node
2
+ require('dotenv').config();
2
3
  const { Command } = require('commander');
3
4
  const chalk = require('chalk');
4
5
  const gradient = require('gradient-string');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "alpha-cli-toolkit",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Autonomous Agent Toolkit for Crypto & TradFi market data powered by Nansen.",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/utils/auth.js CHANGED
@@ -78,9 +78,9 @@ async function authenticateViaBrowser() {
78
78
  });
79
79
 
80
80
  server.listen(0, async () => {
81
- const FRONTEND_URL = process.env.FRONTEND_URL;
81
+ const FRONTEND_URL = process.env.FRONTEND_URL || 'https://alpha-cli-ui.vercel.app';
82
82
  const port = server.address().port;
83
- const loginUrl = `${FRONTEND_URL}/?callback=${encodeURIComponent(FRONTEND_URL)}`;
83
+ const loginUrl = `${FRONTEND_URL}/?callback=${encodeURIComponent(`http://localhost:${port}`)}`;
84
84
 
85
85
  // Dynamic import for `open` (ESM-only since v9)
86
86
  const open = (await import('open')).default;