@krishivpb60/aether-ai-cli 1.1.2 → 1.1.4

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@krishivpb60/aether-ai-cli",
3
- "version": "1.1.2",
3
+ "version": "1.1.4",
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": {
@@ -196,16 +196,16 @@ export async function callGoogleGemini(prompt, systemPrompt, apiKey, model = "ge
196
196
  let buffer = "";
197
197
  let finishReason = "";
198
198
 
199
- let braceCount = 0;
200
- let jsonStart = -1;
201
- let inString = false;
202
- let escape = false;
203
-
204
199
  while (true) {
205
200
  const { done, value } = await reader.read();
206
201
  if (done) break;
207
202
  buffer += decoder.decode(value, { stream: true });
208
203
 
204
+ let braceCount = 0;
205
+ let jsonStart = -1;
206
+ let inString = false;
207
+ let escape = false;
208
+
209
209
  for (let i = 0; i < buffer.length; i++) {
210
210
  const char = buffer[i];
211
211
  if (inString) {
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 VERSION = "1.0.0";
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.