aether-code 0.36.4 → 0.36.6
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 +10 -0
- package/src/repl.js +23 -3
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.36.
|
|
31
|
+
const VERSION = "0.36.6";
|
|
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.36.
|
|
3
|
+
"version": "0.36.6",
|
|
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
|
@@ -77,6 +77,7 @@ export function promptBox({ history = [], placeholder = "", mode = "review", sup
|
|
|
77
77
|
let drawn = 0;
|
|
78
78
|
let lastSigint = 0;
|
|
79
79
|
const clipImages = [];
|
|
80
|
+
let resizeHandler = null;
|
|
80
81
|
|
|
81
82
|
const termW = () => Math.max(30, (process.stdout.columns || 80) - 2);
|
|
82
83
|
|
|
@@ -132,6 +133,7 @@ export function promptBox({ history = [], placeholder = "", mode = "review", sup
|
|
|
132
133
|
};
|
|
133
134
|
|
|
134
135
|
const finish = (result) => {
|
|
136
|
+
if (resizeHandler) process.stdout.removeListener("resize", resizeHandler);
|
|
135
137
|
process.stdin.removeListener("keypress", onKey);
|
|
136
138
|
if (process.stdin.isTTY) process.stdin.setRawMode(false);
|
|
137
139
|
process.stdin.pause();
|
|
@@ -215,5 +217,13 @@ export function promptBox({ history = [], placeholder = "", mode = "review", sup
|
|
|
215
217
|
process.stdin.resume();
|
|
216
218
|
process.stdin.on("keypress", onKey);
|
|
217
219
|
draw(true);
|
|
220
|
+
resizeHandler = () => {
|
|
221
|
+
let vr = process.stdout.rows || 24;
|
|
222
|
+
if (process.platform === "win32" && !process.env.WT_SESSION && vr > 60) vr = 24;
|
|
223
|
+
process.stdout.write("\x1b[2J\x1b[H");
|
|
224
|
+
process.stdout.write(`\x1b[${Math.max(1, vr - 3)};1H`);
|
|
225
|
+
draw(true);
|
|
226
|
+
};
|
|
227
|
+
process.stdout.on("resize", resizeHandler);
|
|
218
228
|
});
|
|
219
229
|
}
|
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.36.
|
|
12
|
+
const VERSION = "0.36.6";
|
|
13
13
|
const MODEL_NAME = "Aether Core";
|
|
14
14
|
|
|
15
15
|
const MODEL_ALIASES = {
|
|
@@ -146,8 +146,8 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
|
|
|
146
146
|
const echoBar = `\x1b[48;5;236m ${echoDisplay}${" ".repeat(echoPad)}\x1b[0m`;
|
|
147
147
|
|
|
148
148
|
const vr = getVisibleRows();
|
|
149
|
-
|
|
150
|
-
|
|
149
|
+
let scrollEnd = Math.max(4, vr - 4);
|
|
150
|
+
let promptRow = scrollEnd + 1;
|
|
151
151
|
|
|
152
152
|
// Clear screen, print banner + echo, draw static prompt at bottom,
|
|
153
153
|
// then set scroll region so agent output stays above the prompt.
|
|
@@ -161,6 +161,25 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
|
|
|
161
161
|
const agentRow = Math.min(bLines.length + 2, scrollEnd);
|
|
162
162
|
process.stdout.write(`\x1b[1;${scrollEnd}r\x1b[${agentRow};1H`);
|
|
163
163
|
|
|
164
|
+
const onResize = () => {
|
|
165
|
+
const newVr = getVisibleRows();
|
|
166
|
+
const newScrollEnd = Math.max(4, newVr - 4);
|
|
167
|
+
const newPromptRow = newScrollEnd + 1;
|
|
168
|
+
process.stdout.write(
|
|
169
|
+
"\x1b7" +
|
|
170
|
+
"\x1b[r" +
|
|
171
|
+
`\x1b[${promptRow};1H\x1b[J`,
|
|
172
|
+
);
|
|
173
|
+
drawStaticPrompt(newPromptRow, state);
|
|
174
|
+
process.stdout.write(
|
|
175
|
+
`\x1b[1;${newScrollEnd}r` +
|
|
176
|
+
"\x1b8",
|
|
177
|
+
);
|
|
178
|
+
scrollEnd = newScrollEnd;
|
|
179
|
+
promptRow = newPromptRow;
|
|
180
|
+
};
|
|
181
|
+
process.stdout.on("resize", onResize);
|
|
182
|
+
|
|
164
183
|
const t0 = Date.now();
|
|
165
184
|
let result;
|
|
166
185
|
try {
|
|
@@ -175,6 +194,7 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, unsafe
|
|
|
175
194
|
mcpManager,
|
|
176
195
|
});
|
|
177
196
|
} finally {
|
|
197
|
+
process.stdout.removeListener("resize", onResize);
|
|
178
198
|
process.stdout.write("\x1b[r");
|
|
179
199
|
}
|
|
180
200
|
const elapsed = Date.now() - t0;
|