aether-code 0.35.3 → 0.35.5

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.
@@ -28,7 +28,7 @@ import {
28
28
  import readline from "node:readline";
29
29
  import { c, errorLine, divider, setTerminalTitle } from "../src/render.js";
30
30
 
31
- const VERSION = "0.35.3";
31
+ const VERSION = "0.35.5";
32
32
 
33
33
  /**
34
34
  * Try to start MCP servers from ~/.aether/mcp.json. Returns a started
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aether-code",
3
- "version": "0.35.3",
3
+ "version": "0.35.5",
4
4
  "description": "Uncensored AI coding agent for your terminal — Claude Code alternative with MCP support. Reads code, writes files, runs commands. Drives IDA Pro, Roblox Studio, Wireshark, Blender, and any MCP server. No refusal layer.",
5
5
  "homepage": "https://trynoguard.com",
6
6
  "repository": {
package/src/box-input.js CHANGED
@@ -61,7 +61,7 @@ function grabClipboardImage() {
61
61
  return null;
62
62
  }
63
63
 
64
- export function promptBox({ history = [], placeholder = "", mode = "review" } = {}) {
64
+ export function promptBox({ history = [], placeholder = "", mode = "review", suppressEcho = false } = {}) {
65
65
  return new Promise((resolve) => {
66
66
  if (!process.stdin.isTTY) {
67
67
  const rl = readline.createInterface({ input: process.stdin, output: process.stdout });
@@ -142,7 +142,7 @@ export function promptBox({ history = [], placeholder = "", mode = "review" } =
142
142
  finalResult = userText ? `${userText} ${imgRefs}` : `What is in this image? ${imgRefs}`;
143
143
  }
144
144
 
145
- if (finalResult && finalResult !== EXIT_SIGNAL) {
145
+ if (!suppressEcho && finalResult && finalResult !== EXIT_SIGNAL) {
146
146
  const echoText = (result || "").trim();
147
147
  const imgTag = clipImages.length > 0
148
148
  ? ` [+${clipImages.length} image${clipImages.length > 1 ? "s" : ""}]`
package/src/render.js CHANGED
@@ -186,7 +186,7 @@ export function turnStats({ elapsed, tokensIn, tokensOut, tools, credits }) {
186
186
  parts.push(`${fmtTokens(tokensIn)}->${fmtTokens(tokensOut)} tokens`);
187
187
  }
188
188
  if (tools > 0) parts.push(`${tools} tool call${tools === 1 ? "" : "s"}`);
189
- if (credits > 0) parts.push(`${credits} cr`);
189
+ if (credits > 0) parts.push(`${credits} credit${credits === 1 ? "" : "s"}`);
190
190
  return parts.length > 0 ? c.dim(` Brewed for ${parts.join(" \xB7 ")}`) : "";
191
191
  }
192
192
 
package/src/repl.js CHANGED
@@ -9,7 +9,7 @@ import { c, errorLine, turnStats } from "./render.js";
9
9
  import { autoUpdate } from "./update-check.js";
10
10
  import { promptBox, EXIT_SIGNAL } from "./box-input.js";
11
11
 
12
- const VERSION = "0.35.3";
12
+ const VERSION = "0.35.5";
13
13
  const MODEL_NAME = "Aether Core";
14
14
 
15
15
  const MODEL_ALIASES = {
@@ -88,16 +88,19 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
88
88
  let extraLines = 0;
89
89
  if (updateMsg) { console.log(updateMsg); extraLines++; }
90
90
 
91
- // Push prompt to bottom of screen — big empty gap like Claude Code
91
+ // Push prompt to bottom — use cursor positioning (not filler) so the banner
92
+ // stays visible. Filler breaks on cmd.exe when process.stdout.rows returns
93
+ // the scroll-buffer height (~300) instead of the visible window height (~25).
92
94
  const rows = process.stdout.rows || 24;
93
- const promptLines = 4; // rule + "> " input + rule + status bar
94
- const filler = Math.max(0, rows - bannerLineCount - extraLines - promptLines - 1);
95
- for (let i = 0; i < filler; i++) console.log("");
95
+ const promptHeight = 4; // rule + "> " input + rule + status bar
96
+ const contentEnd = bannerLineCount + extraLines + 1;
97
+ const promptRow = Math.max(contentEnd + 1, rows - promptHeight + 1);
98
+ process.stdout.write(`\x1b[${promptRow};1H`);
96
99
 
97
100
  const inputHistory = [];
98
101
 
99
102
  while (true) {
100
- const raw = await promptBox({ history: inputHistory, mode: state.autoYes ? "auto-yes" : "review" });
103
+ const raw = await promptBox({ history: inputHistory, mode: state.autoYes ? "auto-yes" : "review", suppressEcho: true });
101
104
  if (raw === EXIT_SIGNAL) { console.log(c.gray("bye.")); return; }
102
105
  const line = (raw ?? "").trim();
103
106
  if (!line) continue;
@@ -110,6 +113,17 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
110
113
  continue;
111
114
  }
112
115
 
116
+ // Clear screen and reprint banner so chat output starts at the top
117
+ process.stdout.write("\x1b[2J\x1b[H");
118
+ printBanner(state);
119
+
120
+ // Print the echo bar (user's message) right below the banner
121
+ const echoDisplay = line.length > 200 ? line.slice(0, 197) + "..." : line;
122
+ const echoCols = process.stdout.columns || 80;
123
+ const echoLen = echoDisplay.length + 2;
124
+ const echoPad = Math.max(0, echoCols - echoLen);
125
+ process.stdout.write(`\x1b[48;5;236m ${echoDisplay}${" ".repeat(echoPad)}\x1b[0m\n`);
126
+
113
127
  const t0 = Date.now();
114
128
  const result = await runAgent({
115
129
  initialPrompt: line,
@@ -141,11 +155,7 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
141
155
  credits: result.totalCredits ?? 0,
142
156
  });
143
157
  if (stats) console.log(stats);
144
- // Chatbox layout — pin prompt to bottom, content scrolls up
145
- const rowsNow = process.stdout.rows || 24;
146
- const promptHeight = 4; // rule + prompt + rule + status
147
- const gap = Math.max(0, rowsNow - promptHeight - 1);
148
- for (let i = 0; i < gap; i++) console.log("");
158
+ console.log("");
149
159
  }
150
160
  }
151
161