testdriverai 4.1.38 → 4.1.39
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 +2 -5
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -863,9 +863,6 @@ ${regression}
|
|
|
863
863
|
// it parses the markdown file and executes the codeblocks exactly as if they were
|
|
864
864
|
// generated by the AI in a single prompt
|
|
865
865
|
let run = async (file, overwrite = false, shouldExit = true) => {
|
|
866
|
-
// parse potential string value for exit
|
|
867
|
-
shouldExit = shouldExit === "false" ? false : true;
|
|
868
|
-
overwrite = overwrite === "false" ? false : true;
|
|
869
866
|
|
|
870
867
|
setTerminalWindowTransparency(true);
|
|
871
868
|
|
|
@@ -937,13 +934,13 @@ ${yaml.dump(step)}
|
|
|
937
934
|
await actOnMarkdown(markdown, 0, true);
|
|
938
935
|
}
|
|
939
936
|
|
|
940
|
-
if (overwrite) {
|
|
937
|
+
if (overwrite || overwrite == "true") {
|
|
941
938
|
await save({ filepath: file });
|
|
942
939
|
}
|
|
943
940
|
|
|
944
941
|
setTerminalWindowTransparency(false);
|
|
945
942
|
|
|
946
|
-
if (shouldExit) {
|
|
943
|
+
if (shouldExit || shouldExit == "true") {
|
|
947
944
|
await summarize();
|
|
948
945
|
await exit(false);
|
|
949
946
|
}
|