aether-code 0.35.4 → 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.
- package/bin/aether-code.js +1 -1
- package/package.json +1 -1
- package/src/box-input.js +2 -2
- package/src/render.js +1 -1
- package/src/repl.js +13 -2
package/bin/aether-code.js
CHANGED
|
@@ -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.
|
|
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
|
+
"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}
|
|
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.
|
|
12
|
+
const VERSION = "0.35.5";
|
|
13
13
|
const MODEL_NAME = "Aether Core";
|
|
14
14
|
|
|
15
15
|
const MODEL_ALIASES = {
|
|
@@ -100,7 +100,7 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
|
|
|
100
100
|
const inputHistory = [];
|
|
101
101
|
|
|
102
102
|
while (true) {
|
|
103
|
-
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 });
|
|
104
104
|
if (raw === EXIT_SIGNAL) { console.log(c.gray("bye.")); return; }
|
|
105
105
|
const line = (raw ?? "").trim();
|
|
106
106
|
if (!line) continue;
|
|
@@ -113,6 +113,17 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
|
|
|
113
113
|
continue;
|
|
114
114
|
}
|
|
115
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
|
+
|
|
116
127
|
const t0 = Date.now();
|
|
117
128
|
const result = await runAgent({
|
|
118
129
|
initialPrompt: line,
|