nansen-cli 1.16.0 → 1.16.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.16.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#249](https://github.com/nansen-ai/nansen-cli/pull/249) [`0c17437`](https://github.com/nansen-ai/nansen-cli/commit/0c17437cf65d8b4f0516ede386adefec57d8ab3d) Thanks [@0xlaveen](https://github.com/0xlaveen)! - Add `pm` to top-level COMMAND_ALIASES so `nansen pm <subcommand>` works (previously only `nansen research pm <subcommand>` resolved the alias)
8
+
9
+ - [#244](https://github.com/nansen-ai/nansen-cli/pull/244) [`6427a9f`](https://github.com/nansen-ai/nansen-cli/commit/6427a9fdb7295dee94d7aed10cdb0164c46c7d73) Thanks [@Nicolai1205](https://github.com/Nicolai1205)! - Add 7 new agent skills: nansen-token-search, nansen-sm-trend, nansen-wallet-cluster, nansen-wallet-compare, nansen-token-indicators, nansen-cross-chain-flow, nansen-batch-wallet. All validated against live API.
10
+
3
11
  ## 1.16.0
4
12
 
5
13
  ### Minor Changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nansen-cli",
3
- "version": "1.16.0",
3
+ "version": "1.16.1",
4
4
  "description": "Command-line interface for Nansen API - designed for AI agents",
5
5
  "main": "src/index.js",
6
6
  "type": "module",
package/src/cli.js CHANGED
@@ -654,8 +654,8 @@ export async function compareWallets(api, params = {}) {
654
654
  shared_counterparties: sharedCpAddrs,
655
655
  shared_tokens: sharedTokens,
656
656
  balances: [
657
- { address: addr1, total_usd: tokens1.reduce((sum, t) => sum + (t.balance_usd || 0), 0) },
658
- { address: addr2, total_usd: tokens2.reduce((sum, t) => sum + (t.balance_usd || 0), 0) },
657
+ { address: addr1, total_usd: tokens1.reduce((sum, t) => sum + (t.value_usd ?? t.balance_usd ?? 0), 0) },
658
+ { address: addr2, total_usd: tokens2.reduce((sum, t) => sum + (t.value_usd ?? t.balance_usd ?? 0), 0) },
659
659
  ],
660
660
  };
661
661
  }
@@ -1240,6 +1240,9 @@ export function buildCommands(deps = {}) {
1240
1240
  },
1241
1241
 
1242
1242
  'prediction-market': async (args, apiInstance, flags, options) => {
1243
+ if (Date.now() < new Date('2026-03-16T00:00:00Z').getTime()) {
1244
+ process.stderr.write('⚠️ PnL data for prediction markets is temporarily unavailable while we improve accuracy. We\'ll update once resolved.\n');
1245
+ }
1243
1246
  const subcommand = args[0] || 'help';
1244
1247
  const marketId = options['market-id'];
1245
1248
  const address = options.address;
@@ -1345,7 +1348,8 @@ export const COMMAND_ALIASES = {
1345
1348
  'tgm': 'token', // Token God Mode
1346
1349
  'sm': 'smart-money', // Smart Money
1347
1350
  'prof': 'profiler', // Profiler
1348
- 'port': 'portfolio' // Portfolio
1351
+ 'port': 'portfolio', // Portfolio
1352
+ 'pm': 'prediction-market' // Prediction Market
1349
1353
  };
1350
1354
 
1351
1355
  // Aliases used inside the 'research' namespace