testdriverai 4.1.21 → 4.1.23

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 +2 -2
  2. package/package.json +1 -1
package/agent.js CHANGED
@@ -333,7 +333,7 @@ const runCommand = async (command, depth) => {
333
333
  try {
334
334
  let response;
335
335
 
336
- if (command.command == "embed") {
336
+ if (command.command == "run") {
337
337
  response = await embed(command.file, depth);
338
338
  } else if (command.command == "if") {
339
339
  response = await iffy(
@@ -350,7 +350,7 @@ const runCommand = async (command, depth) => {
350
350
  return await actOnMarkdown(response, depth);
351
351
  }
352
352
  } catch (error) {
353
- if (error.fatal) {
353
+ if (thisCommand == "run") {
354
354
  console.log("");
355
355
  log.log("info", chalk.red("Fatal Error") + `\n${error.message}`);
356
356
  await summarize(error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "testdriverai",
3
- "version": "4.1.21",
3
+ "version": "4.1.23",
4
4
  "description": "Next generation autonomous AI agent for end-to-end testing of web & desktop",
5
5
  "main": "index.js",
6
6
  "bin": {