netheriteai-code 0.2.3 → 0.2.5
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/package.json +1 -1
- package/src/agent.js +6 -3
- package/src/tui.js +1 -1
package/package.json
CHANGED
package/src/agent.js
CHANGED
|
@@ -151,11 +151,14 @@ export async function runAgentTurn({ workspaceRoot, model, history, userPrompt,
|
|
|
151
151
|
});
|
|
152
152
|
|
|
153
153
|
const toolCalls = normalizeToolCalls(assistant);
|
|
154
|
-
|
|
154
|
+
const assistantMessage = {
|
|
155
155
|
role: "assistant",
|
|
156
156
|
content: assistant.content || "",
|
|
157
|
-
|
|
158
|
-
|
|
157
|
+
};
|
|
158
|
+
if (toolCalls && toolCalls.length) {
|
|
159
|
+
assistantMessage.tool_calls = toolCalls;
|
|
160
|
+
}
|
|
161
|
+
messages.push(assistantMessage);
|
|
159
162
|
|
|
160
163
|
if (singleFileTurn) {
|
|
161
164
|
const generated = extractGeneratedCode(assistant.content || "");
|
package/src/tui.js
CHANGED
|
@@ -1083,7 +1083,7 @@ export function runTui({
|
|
|
1083
1083
|
frame.paintText(inputTop + 1 + index, 4, pad(line, contentWidth - 5), `${COLORS.panel}${COLORS.fg}`);
|
|
1084
1084
|
});
|
|
1085
1085
|
if (cursorVisible) {
|
|
1086
|
-
const cursorLine =
|
|
1086
|
+
const cursorLine = inputLines.length - 1;
|
|
1087
1087
|
const cursorCol = 4 + inputLines[cursorLine].length;
|
|
1088
1088
|
paintInputCursor(frame, inputTop + 1 + cursorLine, cursorCol);
|
|
1089
1089
|
}
|