@invizi/cli 0.1.7 → 0.1.9

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.
@@ -172,6 +172,8 @@ function formatTable(stats, address, days) {
172
172
  lines.push(` Best: ${best.coin} ${formatUsd(best.netPnl)}`);
173
173
  if (worst.netPnl < 0)
174
174
  lines.push(` Worst: ${worst.coin} ${formatUsd(worst.netPnl)}`);
175
+ lines.push('');
176
+ lines.push(` Fetched: ${new Date().toISOString().replace('T', ' ').slice(0, 19)} UTC`);
175
177
  return lines.join('\n');
176
178
  }
177
179
  function formatCoinDetail(fills, coin) {
package/dist/config.js CHANGED
@@ -22,8 +22,8 @@ export function loadConfig(configPath = getConfigPath()) {
22
22
  }
23
23
  }
24
24
  export function saveConfig(config, configPath = getConfigPath()) {
25
- mkdirSync(dirname(configPath), { recursive: true });
26
- writeFileSync(configPath, JSON.stringify(config, null, 2));
25
+ mkdirSync(dirname(configPath), { recursive: true, mode: 0o700 });
26
+ writeFileSync(configPath, JSON.stringify(config, null, 2), { mode: 0o600 });
27
27
  }
28
28
  export function resolveApiUrl(config, env = process.env) {
29
29
  return config.apiUrl || env.INVIZI_API_URL || env.INVIZI_SERVER || DEFAULT_API_URL;
package/dist/invizi.js CHANGED
@@ -9,7 +9,7 @@ function showLocalHelp() {
9
9
  Invizi CLI
10
10
 
11
11
  Data:
12
- invizi context Market regime, macro, yields, options, HLP
12
+ invizi context Market overview, macro, yields, options, HLP
13
13
  invizi context -c SOL + coin data, flow, positions, trade history
14
14
  invizi scout <COIN> Quick coin scan (price, funding, RSI, OBI)
15
15
  invizi market BTC/ETH/SOL prices, fear/greed, funding extremes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@invizi/cli",
3
- "version": "0.1.7",
3
+ "version": "0.1.9",
4
4
  "description": "Invizi CLI",
5
5
  "type": "module",
6
6
  "bin": {