testdriverai 4.2.22 → 4.2.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 +8 -0
- package/package.json +1 -1
package/agent.js
CHANGED
|
@@ -734,6 +734,14 @@ const firstPrompt = async () => {
|
|
|
734
734
|
analytics.track("input", { input });
|
|
735
735
|
|
|
736
736
|
logger.info(""); // adds a nice break between submissions
|
|
737
|
+
|
|
738
|
+
let interpolationVars = JSON.parse(process.env["TD_INTERPOLATION_VARS"] || '{}');
|
|
739
|
+
|
|
740
|
+
// Inject environment variables into any ${VAR} strings
|
|
741
|
+
input = parser.interpolate(input, process.env);
|
|
742
|
+
|
|
743
|
+
// Inject any vars from the TD_INTERPOLATION_VARS variable (typically from the action)
|
|
744
|
+
input = parser.interpolate(input, interpolationVars);
|
|
737
745
|
|
|
738
746
|
let commands = input
|
|
739
747
|
.split(" ")
|