minara 0.1.1 → 0.1.3

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/dist/index.js +4 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1,7 +1,10 @@
1
1
  #!/usr/bin/env node
2
+ import { createRequire } from 'node:module';
2
3
  import { Command } from 'commander';
3
4
  import chalk from 'chalk';
4
5
  import { loginCommand } from './commands/login.js';
6
+ const require = createRequire(import.meta.url);
7
+ const { version } = require('../package.json');
5
8
  import { logoutCommand } from './commands/logout.js';
6
9
  import { accountCommand } from './commands/account.js';
7
10
  import { assetsCommand } from './commands/assets.js';
@@ -18,7 +21,7 @@ import { configCommand } from './commands/config.js';
18
21
  const program = new Command();
19
22
  program
20
23
  .name('minara')
21
- .version('0.1.0')
24
+ .version(version)
22
25
  .description(chalk.bold('Minara CLI') +
23
26
  ' — Your AI-powered digital finance assistant in the terminal.\n\n' +
24
27
  ' Login, swap, trade perps, copy-trade, and chat with Minara AI.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "minara",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "CLI client for Minara.ai — login, trade, deposit/withdraw, chat and more from your terminal.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",