enton-cli 0.1.1 → 0.1.2

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 +40 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -9,6 +9,39 @@
9
9
  * enton auth login # Authenticate with ENTON
10
10
  * enton watch AAPL,TSLA # Watch mode for real-time prices
11
11
  */
12
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ var desc = Object.getOwnPropertyDescriptor(m, k);
15
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16
+ desc = { enumerable: true, get: function() { return m[k]; } };
17
+ }
18
+ Object.defineProperty(o, k2, desc);
19
+ }) : (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ o[k2] = m[k];
22
+ }));
23
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
24
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
25
+ }) : function(o, v) {
26
+ o["default"] = v;
27
+ });
28
+ var __importStar = (this && this.__importStar) || (function () {
29
+ var ownKeys = function(o) {
30
+ ownKeys = Object.getOwnPropertyNames || function (o) {
31
+ var ar = [];
32
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
33
+ return ar;
34
+ };
35
+ return ownKeys(o);
36
+ };
37
+ return function (mod) {
38
+ if (mod && mod.__esModule) return mod;
39
+ var result = {};
40
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
41
+ __setModuleDefault(result, mod);
42
+ return result;
43
+ };
44
+ })();
12
45
  var __importDefault = (this && this.__importDefault) || function (mod) {
13
46
  return (mod && mod.__esModule) ? mod : { "default": mod };
14
47
  };
@@ -21,6 +54,12 @@ const watch_1 = require("./commands/watch");
21
54
  const config_1 = require("./commands/config");
22
55
  const manager_1 = require("./config/manager");
23
56
  const chalk_1 = __importDefault(require("chalk"));
57
+ const fs = __importStar(require("fs"));
58
+ const path = __importStar(require("path"));
59
+ // Get version from package.json
60
+ const packageJsonPath = path.join(__dirname, '..', 'package.json');
61
+ const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8'));
62
+ const VERSION = packageJson.version;
24
63
  const program = new commander_1.Command();
25
64
  // ASCII art banner
26
65
  const banner = `
@@ -31,7 +70,7 @@ ${chalk_1.default.cyan('╚═════════════════
31
70
  program
32
71
  .name('enton')
33
72
  .description('AI-powered financial assistant - like Claude Code, but for finance')
34
- .version('0.1.0')
73
+ .version(VERSION)
35
74
  .option('-j, --json', 'Output response as JSON')
36
75
  .option('-q, --quiet', 'Minimal output (no banner)')
37
76
  .argument('[query...]', 'Direct query to ENTON')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "enton-cli",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "ENTON - AI-powered financial assistant CLI. Like Claude Code, but for finance.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",