aether-code 0.3.0 → 0.3.1

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.
@@ -16,7 +16,7 @@ import { fetchBalance, AetherError } from "../src/api.js";
16
16
  import { writeConfigFile, getConfig, CONFIG_PATH } from "../src/config.js";
17
17
  import { c, errorLine, divider } from "../src/render.js";
18
18
 
19
- const VERSION = "0.3.0";
19
+ const VERSION = "0.3.1";
20
20
 
21
21
  const HELP = `${c.bold("aether")} — uncensored AI coding agent
22
22
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aether-code",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "Uncensored AI coding agent for your terminal. Type `aether` to launch the interactive REPL — like Claude Code, with no refusal layer.",
5
5
  "homepage": "https://trynoguard.com",
6
6
  "repository": {
package/src/agent.js CHANGED
@@ -76,10 +76,12 @@ export async function runAgent({
76
76
  c.dim(` ${res.creditsCharged ?? 0} cr · ${res.usage?.prompt_tokens ?? 0}→${res.usage?.completion_tokens ?? 0} tokens · finish: ${res.finish_reason}\n`),
77
77
  );
78
78
 
79
- // Push assistant message into history
79
+ // Push assistant message into history. Coerce null → "" — some upstream
80
+ // APIs (Venice in particular) reject assistant messages with null content
81
+ // even when tool_calls is set. Empty string is the safest universal value.
80
82
  messages.push({
81
83
  role: "assistant",
82
- content: res.message.content,
84
+ content: res.message.content ?? "",
83
85
  tool_calls: res.message.tool_calls,
84
86
  });
85
87
 
package/src/repl.js CHANGED
@@ -15,7 +15,7 @@ import { fetchBalance, AetherError } from "./api.js";
15
15
  import { runSetup } from "./setup.js";
16
16
  import { c, errorLine } from "./render.js";
17
17
 
18
- const VERSION = "0.2.0";
18
+ const VERSION = "0.3.1";
19
19
  const MODEL_NAME = "Aether Core";
20
20
 
21
21
  const SHORTCUTS = `