@amaranthic/hernex 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -6,6 +6,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ---
8
8
 
9
+ ## [0.5.1] - 2026-11-14
10
+
11
+ ### Summary
12
+
13
+ Version `0.5.1` resolves an issue where Vercel AI SDK leaked raw debug dumps, unformatted stack traces, and HTTP request headers to `stderr` upon model or stream failure. It also decouples `customFetch` options from Bun's global `fetch` type, standardizing custom fetch injection across Node.js and Bun environments.
14
+
15
+ ---
16
+
17
+ ### Fixed
18
+
19
+ - **Raw AI SDK Error Leak in Turn Generator**:
20
+ - Explicitly passed an `onError` handler to `streamOptions` in `runTurn` to prevent Vercel AI SDK from falling back to its default `({ error }) => console.error(error)` behavior.
21
+ - Ensures failed turns bubble exclusively through Hernex's structured turn generator `catch` block, rolling back conversation messages, yielding clean `{ type: "error", origin: "engine", ... }` events, and invoking `hooks.onError`.
22
+ - Added unit test coverage verifying that `console.error` is not invoked when model streaming encounters provider errors or connection failures.
23
+
24
+ - **Standardized `FetchFunction` Type Definition**:
25
+ - Exported standard `FetchFunction` type decoupled from Bun-specific namespace extensions (`fetch.preconnect`).
26
+ - Updated `WebFetchToolOptions`, `WebSearchToolOptions`, and internal DuckDuckGo search options to accept `FetchFunction | typeof fetch`.
27
+
28
+ ---
29
+
9
30
  ## [0.5.0] - 2026-11-12
10
31
 
11
32
  ### Summary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amaranthic/hernex",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Unified AI agent runtime, microkernel engine, and tool harnesses built on Vercel AI SDK",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",