testdriverai 4.1.3 → 4.1.4

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 (4) hide show
  1. package/agent.js +1082 -0
  2. package/index.js +30 -1075
  3. package/package.json +1 -1
  4. package/main.js +0 -37
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.1.3",
3
+ "version": "4.1.4",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "main.js",
6
6
  "bin": {
package/main.js DELETED
@@ -1,37 +0,0 @@
1
- #!/usr/bin/env node
2
- const config = require("./lib/config");
3
- const { emitter, events } = require("./lib/events.js");
4
-
5
- if (!config.TD_OVERLAY) {
6
- require("./index.js");
7
- } else {
8
- // Intercept all stdout and stderr calls (works with console as well)
9
- const originalStdoutWrite = process.stdout.write.bind(process.stdout);
10
- process.stdout.write = (...args) => {
11
- const [data, encoding] = args;
12
- emitter.emit(
13
- events.terminal.stdout,
14
- data.toString(typeof encoding === "string" ? encoding : undefined),
15
- );
16
- originalStdoutWrite(...args);
17
- };
18
-
19
- const originalStderrWrite = process.stderr.write.bind(process.stderr);
20
- process.stderr.write = (...args) => {
21
- const [data, encoding] = args;
22
- emitter.emit(
23
- events.terminal.stderr,
24
- data.toString(typeof encoding === "string" ? encoding : undefined),
25
- );
26
- originalStderrWrite(...args);
27
- };
28
-
29
- require("./lib/overlay.js")
30
- .electronProcessPromise.then(() => {
31
- require("./index.js");
32
- })
33
- .catch((err) => {
34
- console.error(err);
35
- process.exit(1);
36
- });
37
- }