@turbotic/taai-agent 0.0.6 → 0.0.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/build/index.js +1 -0
- package/build/run.js +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -289,6 +289,7 @@ if (process.env.RUN_ON_LOCAL_ENVIRONMENT === 'true') {
|
|
|
289
289
|
try {
|
|
290
290
|
const runner = new run_1.Runner(queuePayload.automationId);
|
|
291
291
|
process.env.EXECUTION_ID = queuePayload.executionId;
|
|
292
|
+
process.env.SCRIPT_RUNNER_JWT_SECRET = queuePayload.signingSecret;
|
|
292
293
|
yield runner.run(ack, queuePayload);
|
|
293
294
|
console.log('Execution done');
|
|
294
295
|
yield ack();
|
package/build/run.js
CHANGED
|
@@ -736,7 +736,7 @@ class Runner {
|
|
|
736
736
|
resume = false;
|
|
737
737
|
}
|
|
738
738
|
const scriptFramePath = path_1.default.join(__dirname, '..', 'script-frame', 'build', 'index.js');
|
|
739
|
-
const cmd = this.automationVersion === "3" ?
|
|
739
|
+
const cmd = this.automationVersion === "3" ? `node ${scriptFramePath} -a ${resume === true ? 'resume' : 'run'} ${resume === true ? '-t ' + runTokenId : ''} -e ${process.env.EXECUTION_ID} -u ${agentEndpoint} ${runFromStepId ? '-s ' + runFromStepId : ''} ${runOne ? '-o' : ''} ${temporaryRunTokenId ? '--tempTokenId ' + temporaryRunTokenId : ''}` : `node code.js`;
|
|
740
740
|
// Reset buffers for new run
|
|
741
741
|
this.__stdoutBuffer = '';
|
|
742
742
|
this.__stderrBuffer = '';
|