testdriverai 4.1.7 → 4.1.8
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 +6 -4
- package/lib/valid-version.js +1 -1
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -640,10 +640,10 @@ const firstPrompt = async () => {
|
|
|
640
640
|
// this is how we parse user input
|
|
641
641
|
// notice that the AI is only called if the input is not a command
|
|
642
642
|
rl.on("line", async (input) => {
|
|
643
|
+
if (!isInteractive) return;
|
|
643
644
|
emitter.emit(events.interactive, false);
|
|
644
645
|
await setTerminalApp();
|
|
645
|
-
|
|
646
|
-
setTerminalWindowTransparency(true);
|
|
646
|
+
// setTerminalWindowTransparency(true);
|
|
647
647
|
errorCounts = {};
|
|
648
648
|
|
|
649
649
|
// append this to commandHistoryFile
|
|
@@ -676,7 +676,7 @@ const firstPrompt = async () => {
|
|
|
676
676
|
await humanInput(input, true);
|
|
677
677
|
}
|
|
678
678
|
|
|
679
|
-
setTerminalWindowTransparency(false);
|
|
679
|
+
// setTerminalWindowTransparency(false);
|
|
680
680
|
promptUser();
|
|
681
681
|
});
|
|
682
682
|
|
|
@@ -991,9 +991,11 @@ const embed = async (file, depth) => {
|
|
|
991
991
|
log.log("info", `${file} (end)`);
|
|
992
992
|
};
|
|
993
993
|
|
|
994
|
+
let isInteractive = false;
|
|
994
995
|
emitter.on(events.interactive, (data) => {
|
|
996
|
+
isInteractive = data;
|
|
995
997
|
if (!terminalApp) return;
|
|
996
|
-
if (
|
|
998
|
+
if (isInteractive) {
|
|
997
999
|
showTerminal(terminalApp);
|
|
998
1000
|
} else {
|
|
999
1001
|
hideTerminal(terminalApp);
|
package/lib/valid-version.js
CHANGED