aether-code 0.16.4 → 0.17.0
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/repl.js +23 -19
package/bin/aether-code.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "aether-code",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
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/repl.js
CHANGED
|
@@ -17,7 +17,7 @@ import { c, errorLine } from "./render.js";
|
|
|
17
17
|
import { checkForUpdate } from "./update-check.js";
|
|
18
18
|
import { promptBoxed, EXIT_SIGNAL } from "./ink-input.js";
|
|
19
19
|
|
|
20
|
-
const VERSION = "0.
|
|
20
|
+
const VERSION = "0.17.0";
|
|
21
21
|
const MODEL_NAME = "Aether Core";
|
|
22
22
|
|
|
23
23
|
const SHORTCUTS = `
|
|
@@ -100,28 +100,32 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, maxTur
|
|
|
100
100
|
process.env.AETHER_NO_INK !== "1" &&
|
|
101
101
|
(process.env.AETHER_INK === "1" || !legacyWinConsole);
|
|
102
102
|
let inkBroken = false;
|
|
103
|
-
let rl = null;
|
|
104
103
|
|
|
105
104
|
// The Ink box carries its own status bar; the plain prompt doesn't, so show a
|
|
106
105
|
// one-line hint up front when we won't be using Ink.
|
|
107
106
|
if (!useInk) console.log(` ${c.cyan("/help")}${c.dim(" shortcuts")} ${c.cyan("/exit")}${c.dim(" quit")}\n`);
|
|
108
107
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
console.log(c.gray(`\n(Press Ctrl+C again within 1.5s to exit, or type ${c.cyan("/exit")})`));
|
|
118
|
-
});
|
|
119
|
-
return rl;
|
|
120
|
-
}
|
|
121
|
-
|
|
108
|
+
// Fresh readline interface PER PROMPT. A single persistent interface
|
|
109
|
+
// conflicted with the per-confirmation readline interfaces the tools open
|
|
110
|
+
// during a turn (each [y/N] prompt). When a tool's interface closed it left
|
|
111
|
+
// the REPL's stdin dead — so after finishing a request aether printed the
|
|
112
|
+
// prompt and immediately EXITED instead of waiting for the next message.
|
|
113
|
+
// Opening a fresh one each prompt guarantees only one interface exists at a
|
|
114
|
+
// time, so the REPL keeps running until the user /exits. Returns EXIT_SIGNAL
|
|
115
|
+
// on a double Ctrl+C.
|
|
122
116
|
function readlineQuestion() {
|
|
123
|
-
|
|
124
|
-
|
|
117
|
+
return new Promise((resolve) => {
|
|
118
|
+
const r = readline.createInterface({ input: process.stdin, output: process.stdout, historySize: 200 });
|
|
119
|
+
let lastSigint = 0;
|
|
120
|
+
r.on("SIGINT", () => {
|
|
121
|
+
const now = Date.now();
|
|
122
|
+
if (now - lastSigint < 1500) { r.close(); resolve(EXIT_SIGNAL); return; }
|
|
123
|
+
lastSigint = now;
|
|
124
|
+
process.stdout.write(c.gray(`\n(Press Ctrl+C again within 1.5s to exit, or type ${c.cyan("/exit")})\n`));
|
|
125
|
+
r.prompt();
|
|
126
|
+
});
|
|
127
|
+
r.question(c.magenta("> "), (ans) => { r.close(); resolve(ans); });
|
|
128
|
+
});
|
|
125
129
|
}
|
|
126
130
|
|
|
127
131
|
// Returns the next raw input line, or EXIT_SIGNAL to quit.
|
|
@@ -143,7 +147,7 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, maxTur
|
|
|
143
147
|
|
|
144
148
|
while (true) {
|
|
145
149
|
const raw = await nextLine();
|
|
146
|
-
if (raw === EXIT_SIGNAL) { console.log(c.gray("bye."));
|
|
150
|
+
if (raw === EXIT_SIGNAL) { console.log(c.gray("bye.")); return; }
|
|
147
151
|
const line = (raw ?? "").trim();
|
|
148
152
|
if (!line) continue;
|
|
149
153
|
|
|
@@ -155,7 +159,7 @@ export async function runRepl({ cwd: initialCwd, autoYes: initialAutoYes, maxTur
|
|
|
155
159
|
// Slash command?
|
|
156
160
|
if (line.startsWith("/") || line === "?") {
|
|
157
161
|
const handled = await handleSlash(line, state);
|
|
158
|
-
if (handled === "exit")
|
|
162
|
+
if (handled === "exit") return;
|
|
159
163
|
printStatusLine(state);
|
|
160
164
|
continue;
|
|
161
165
|
}
|