testdriverai 5.3.12 → 5.3.13
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/agent.js +3 -2
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -378,7 +378,7 @@ const runCommand = async (command, depth, shouldSave) => {
|
|
|
378
378
|
}
|
|
379
379
|
|
|
380
380
|
if (response && typeof response === "string") {
|
|
381
|
-
return await actOnMarkdown(response, depth,
|
|
381
|
+
return await actOnMarkdown(response, depth, false, false, false);
|
|
382
382
|
}
|
|
383
383
|
} catch (error) {
|
|
384
384
|
return await haveAIResolveError(
|
|
@@ -403,6 +403,7 @@ const executeCommands = async (
|
|
|
403
403
|
) => {
|
|
404
404
|
if (commands?.length) {
|
|
405
405
|
for (const command of commands) {
|
|
406
|
+
|
|
406
407
|
if (pushToHistory) {
|
|
407
408
|
executionHistory[executionHistory.length - 1]?.commands.push(command);
|
|
408
409
|
}
|
|
@@ -738,7 +739,7 @@ const actOnMarkdown = async (
|
|
|
738
739
|
depth,
|
|
739
740
|
pushToHistory = false,
|
|
740
741
|
dry = false,
|
|
741
|
-
shouldSave,
|
|
742
|
+
shouldSave = false,
|
|
742
743
|
) => {
|
|
743
744
|
logger.debug("%j", {
|
|
744
745
|
message: "actOnMarkdown called",
|