testdriverai 4.1.38 → 4.1.40

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.
Files changed (2) hide show
  1. package/agent.js +4 -6
  2. 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
  }
@@ -1076,7 +1073,8 @@ const start = async () => {
1076
1073
  errorLimit = 100;
1077
1074
  run(thisFile);
1078
1075
  } else if (thisCommand == "init") {
1079
- init();
1076
+ await init();
1077
+ process.exit(0);
1080
1078
  }
1081
1079
  };
1082
1080
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.1.38",
3
+ "version": "4.1.40",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {