@turbotic/taai-agent 0.0.5 → 0.0.7
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/run.js +2 -5
- package/package.json +1 -1
package/build/run.js
CHANGED
|
@@ -86,12 +86,9 @@ class Runner {
|
|
|
86
86
|
if (!this.dependencies.find((dep) => dep.name === 'jsonwebtoken')) {
|
|
87
87
|
this.dependencies.push({
|
|
88
88
|
name: 'jsonwebtoken',
|
|
89
|
-
version: '
|
|
89
|
+
version: '^9.0.3'
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
// if (this.dependencies.length === 0) {
|
|
93
|
-
// return;
|
|
94
|
-
// }
|
|
95
92
|
return new Promise((resolve, reject) => {
|
|
96
93
|
var _a, _b;
|
|
97
94
|
const cmd = `npm install ${this.dependencies.map((dep) => `${dep.name}@${dep.version}`).join(' ')}`;
|
|
@@ -739,7 +736,7 @@ class Runner {
|
|
|
739
736
|
resume = false;
|
|
740
737
|
}
|
|
741
738
|
const scriptFramePath = path_1.default.join(__dirname, '..', 'script-frame', 'build', 'index.js');
|
|
742
|
-
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`;
|
|
743
740
|
// Reset buffers for new run
|
|
744
741
|
this.__stdoutBuffer = '';
|
|
745
742
|
this.__stderrBuffer = '';
|