@krishivpb60/aether-ai-cli 1.1.2 → 1.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.
- package/package.json +1 -1
- package/src/cli.js +7 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krishivpb60/aether-ai-cli",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"description": "Aether Core AI — A cyberpunk command-line AI assistant with multi-mode reasoning, 12-node failover mesh, file context injection, and offline fallbacks.",
|
|
5
5
|
"main": "src/cli.js",
|
|
6
6
|
"bin": {
|
package/src/cli.js
CHANGED
|
@@ -3,6 +3,9 @@
|
|
|
3
3
|
// Universal AI Gateway — Supports 13+ providers
|
|
4
4
|
// ═══════════════════════════════════════════════════════════
|
|
5
5
|
|
|
6
|
+
import { readFileSync } from "node:fs";
|
|
7
|
+
import { fileURLToPath } from "node:url";
|
|
8
|
+
import { dirname, join } from "node:path";
|
|
6
9
|
import { Command } from "commander";
|
|
7
10
|
import chalk from "chalk";
|
|
8
11
|
import { Marked } from "marked";
|
|
@@ -50,7 +53,10 @@ const getMarked = () => new Marked(markedTerminal({
|
|
|
50
53
|
hr: (h) => colors.dim(h),
|
|
51
54
|
}));
|
|
52
55
|
|
|
53
|
-
const
|
|
56
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
57
|
+
const __dirname = dirname(__filename);
|
|
58
|
+
const pkg = JSON.parse(readFileSync(join(__dirname, "../package.json"), "utf8"));
|
|
59
|
+
const VERSION = pkg.version;
|
|
54
60
|
|
|
55
61
|
/**
|
|
56
62
|
* Sets up and runs the Aether CLI.
|