testdriverai 4.1.7 → 4.1.8

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 CHANGED
@@ -640,10 +640,10 @@ const firstPrompt = async () => {
640
640
  // this is how we parse user input
641
641
  // notice that the AI is only called if the input is not a command
642
642
  rl.on("line", async (input) => {
643
+ if (!isInteractive) return;
643
644
  emitter.emit(events.interactive, false);
644
645
  await setTerminalApp();
645
-
646
- setTerminalWindowTransparency(true);
646
+ // setTerminalWindowTransparency(true);
647
647
  errorCounts = {};
648
648
 
649
649
  // append this to commandHistoryFile
@@ -676,7 +676,7 @@ const firstPrompt = async () => {
676
676
  await humanInput(input, true);
677
677
  }
678
678
 
679
- setTerminalWindowTransparency(false);
679
+ // setTerminalWindowTransparency(false);
680
680
  promptUser();
681
681
  });
682
682
 
@@ -991,9 +991,11 @@ const embed = async (file, depth) => {
991
991
  log.log("info", `${file} (end)`);
992
992
  };
993
993
 
994
+ let isInteractive = false;
994
995
  emitter.on(events.interactive, (data) => {
996
+ isInteractive = data;
995
997
  if (!terminalApp) return;
996
- if (data) {
998
+ if (isInteractive) {
997
999
  showTerminal(terminalApp);
998
1000
  } else {
999
1001
  hideTerminal(terminalApp);
@@ -13,7 +13,7 @@ module.exports = (inputVersion) => {
13
13
  // Compare major and minor versions
14
14
  if (
15
15
  inputParsed.major === currentParsed.major &&
16
- inputParsed.minor >= currentParsed.minor
16
+ inputParsed.minor <= currentParsed.minor
17
17
  ) {
18
18
  return true;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.1.7",
3
+ "version": "4.1.8",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {