testdriverai 4.1.8 → 4.1.9

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
@@ -62,6 +62,11 @@ let rl;
62
62
  // list of prompts that the user has given us
63
63
  let tasks = [];
64
64
 
65
+ let isInteractive = false;
66
+ emitter.on(events.interactive, (data) => {
67
+ isInteractive = data;
68
+ });
69
+
65
70
  // get args from terminal
66
71
  const args = process.argv.slice(2);
67
72
 
@@ -991,17 +996,6 @@ const embed = async (file, depth) => {
991
996
  log.log("info", `${file} (end)`);
992
997
  };
993
998
 
994
- let isInteractive = false;
995
- emitter.on(events.interactive, (data) => {
996
- isInteractive = data;
997
- if (!terminalApp) return;
998
- if (isInteractive) {
999
- showTerminal(terminalApp);
1000
- } else {
1001
- hideTerminal(terminalApp);
1002
- }
1003
- });
1004
-
1005
999
  (async () => {
1006
1000
  // console.log(await system.getPrimaryDisplay());
1007
1001
 
package/lib/redraw.js CHANGED
@@ -128,9 +128,9 @@ async function checkCondition(resolve, startTime, timeoutMs) {
128
128
  }
129
129
 
130
130
  // // log redraw as output
131
- let redrawText = screenHasRedrawn ? chalk.green(`✓`) : chalk.dim(`${diffPercent}/${redrawThresholdPercent}%`);
132
- let networkText = networkSettled ? chalk.green(`✓`) : chalk.dim(`${Math.floor((networkCooldownMs - (Date.now() - lastUnsettled)) / 1000)}/${Math.floor(networkCooldownMs/1000)}s`);
133
- let timeoutText = isTimeout ? chalk.green(`✓`) : chalk.dim(`${Math.floor((timeElapsed)/1000)}/${(timeoutMs / 1000)}s`);
131
+ let redrawText = screenHasRedrawn ? chalk.green(`y`) : chalk.dim(`${diffPercent}/${redrawThresholdPercent}%`);
132
+ let networkText = networkSettled ? chalk.green(`y`) : chalk.dim(`${Math.floor((networkCooldownMs - (Date.now() - lastUnsettled)) / 1000)}/${Math.floor(networkCooldownMs/1000)}s`);
133
+ let timeoutText = isTimeout ? chalk.green(`y`) : chalk.dim(`${Math.floor((timeElapsed)/1000)}/${(timeoutMs / 1000)}s`);
134
134
 
135
135
  console.log(` `, chalk.dim('redraw='), redrawText, chalk.dim('network='), networkText, chalk.dim('timeout='), timeoutText);
136
136
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.1.8",
3
+ "version": "4.1.9",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {