testdriverai 5.7.15 → 5.7.16

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/curl.sh ADDED
@@ -0,0 +1,13 @@
1
+ curl -X POST "https://forums.testdriver.ai/users" \
2
+ -H "Content-Type: application/json" \
3
+ -H "Api-Key: YOUR_ADMIN_API_KEY" \
4
+ -H "Api-Username: admin" \
5
+ -d '{
6
+ "name": "Jane Doe",
7
+ "email": "jane.doe@example.com",
8
+ "username": "janedoe",
9
+ "active": false,
10
+ "approved": true,
11
+ "email_verified": false,
12
+ "staged": false
13
+ }'
package/index.js CHANGED
@@ -1,25 +1,4 @@
1
1
  #!/usr/bin/env node
2
-
3
- // being called on server with
4
- // {
5
- // TD_SPEAK: false,
6
- // TD_ANALYTICS: true,
7
- // TD_NOTIFY: false,
8
- // TD_MINIMIZE: false,
9
- // TD_API_ROOT: 'https://api.testdriver.ai',
10
- // TD_API_KEY: 'xxx',
11
- // TD_DEV: undefined,
12
- // TD_PROFILE: false,
13
- // TD_OVERLAY: true,
14
- // TD_SECRET: 'xxx',
15
- // TD_VM: true,
16
- // TD_OVERLAY_ID: null,
17
- // TD_VM_RESOLUTION: [ 1920, 1080 ],
18
- // TD_IPC_ID: 'testdriverai_4708',
19
- // TD_INTERPOLATION_VARS: '{"TD_WEBSITE":"https://testdriver-sandbox.vercel.app","TD_VM_RESOLUTION":"1920x1080"}',
20
- // TD_WEBSITE: 'https://testdriver-sandbox.vercel.app'
21
- // }
22
-
23
2
  const config = require("./lib/config.js");
24
3
 
25
4
  // We need to initialize the IPC server quickly
@@ -27,9 +6,6 @@ require("./lib/ipc.js");
27
6
  const { emitter, events } = require("./lib/events.js");
28
7
  const { logger } = require("./lib/logger.js");
29
8
 
30
- logger.info('Config is')
31
- console.log(config)
32
-
33
9
  if (process.argv[2] === "--help" || process.argv[2] === "-h") {
34
10
  console.log("Command: testdriverai [init, run, edit] [yaml filepath]");
35
11
  process.exit(0);
package/lib/overlay.js CHANGED
@@ -24,7 +24,6 @@ module.exports.createOverlayProcess = ({ id, detached = false } = {}) => {
24
24
 
25
25
  // Fork the Electron process with overlay.js as an argument
26
26
  electronProcess = fork(electronCliPath, args, {
27
- stdio: "inherit",
28
27
  env: {
29
28
  ...process.env,
30
29
  TD_OVERLAY_ID: id,
@@ -36,12 +35,6 @@ module.exports.createOverlayProcess = ({ id, detached = false } = {}) => {
36
35
  throw error;
37
36
  }
38
37
  return new Promise((resolve, reject) => {
39
- electronProcess.on("spawn", () => {
40
- // electronProcess.stdout.on("data", (data) => {
41
- // logger.info(`ELECTRON: ${data.toString()}`);
42
- // });
43
- resolve(electronProcess);
44
- });
45
38
  electronProcess.on("error", reject);
46
39
  electronProcess.on("exit", (code) => {
47
40
  reject(new Error(`Electron process exited with code ${code}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "5.7.15",
3
+ "version": "5.7.16",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {