@neeter/server
Advanced tools
@@ -141,6 +141,7 @@ import { PushChannel } from "./push-channel.js"; | ||
| const text = extractToolResultText(block); | ||
| const isError = block.is_error === true; | ||
| const toolName = this.toolNames.get(block.tool_use_id); | ||
| events.push({ | ||
| event: "tool_result", | ||
| data: JSON.stringify({ toolUseId: block.tool_use_id, result: text }), | ||
| data: JSON.stringify({ toolUseId: block.tool_use_id, result: text, isError }), | ||
| }); | ||
@@ -147,0 +148,0 @@ if (this.config.onToolResult && toolName) { |
+2
-2
| { | ||
| "name": "@neeter/server", | ||
| "version": "0.10.8", | ||
| "version": "0.10.9", | ||
| "description": "Hono server toolkit for building chat UIs on top of the Claude Agent SDK", | ||
@@ -24,3 +24,3 @@ "license": "MIT", | ||
| "dependencies": { | ||
| "@neeter/types": "0.10.8" | ||
| "@neeter/types": "0.10.9" | ||
| }, | ||
@@ -27,0 +27,0 @@ "peerDependencies": { |
45489
0.17%1021
0.1%+ Added
- Removed
Updated