@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 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" ? `${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`;
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 = '';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@turbotic/taai-agent",
3
- "version": "0.0.6",
3
+ "version": "0.0.8",
4
4
  "main": "build/index.js",
5
5
  "bin": {
6
6
  "taai-agent": "build/index.js"