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.
- package/agent.js +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 == "
|
|
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 (
|
|
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);
|