@versot/vaguspi 0.1.5 → 0.1.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/dist/bin.js +22 -1
- package/dist/bin.js.map +2 -2
- package/gui/assets/index-D-BjCzLC.js +19 -0
- package/gui/index.html +9 -2
- package/package.json +1 -1
- package/gui/assets/index-DL6d29Yn.js +0 -19
package/dist/bin.js
CHANGED
|
@@ -1064,8 +1064,29 @@ var VagusEngine = class _VagusEngine {
|
|
|
1064
1064
|
if (entry.type !== "message" || !entry.message)
|
|
1065
1065
|
continue;
|
|
1066
1066
|
const role = String(entry.message.role);
|
|
1067
|
-
if (role === "toolResult")
|
|
1067
|
+
if (role === "toolResult") {
|
|
1068
|
+
const m = entry.message;
|
|
1069
|
+
if (typeof m.toolCallId === "string") {
|
|
1070
|
+
const tid = m.toolCallId;
|
|
1071
|
+
const res = resultsById.get(tid);
|
|
1072
|
+
views.push({
|
|
1073
|
+
role: "tool",
|
|
1074
|
+
text: "",
|
|
1075
|
+
toolCalls: [{
|
|
1076
|
+
id: tid,
|
|
1077
|
+
name: typeof m.toolName === "string" ? m.toolName : "tool",
|
|
1078
|
+
args: "",
|
|
1079
|
+
...res ? {
|
|
1080
|
+
result: truncateDisplay(res.result, 2e4),
|
|
1081
|
+
isError: res.isError,
|
|
1082
|
+
...res.diff !== void 0 ? { diff: res.diff } : {},
|
|
1083
|
+
...res.patch !== void 0 ? { patch: res.patch } : {}
|
|
1084
|
+
} : {}
|
|
1085
|
+
}]
|
|
1086
|
+
});
|
|
1087
|
+
}
|
|
1068
1088
|
continue;
|
|
1089
|
+
}
|
|
1069
1090
|
const entryTs = new Date(entry.timestamp).getTime();
|
|
1070
1091
|
if (role === "user")
|
|
1071
1092
|
closeTurn();
|