@uipath/solution-tool 1.199.0-preview.113 → 1.199.0-preview.119
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/dist/deploy.js +2 -2
- package/dist/init.js +2 -2
- package/dist/pack.js +76 -17
- package/dist/publish.js +2 -2
- package/dist/tool.js +5 -5
- package/package.json +2 -2
package/dist/deploy.js
CHANGED
|
@@ -37772,7 +37772,7 @@ class JSONApiResponse2 {
|
|
|
37772
37772
|
var package_default2 = {
|
|
37773
37773
|
name: "@uipath/solution-sdk",
|
|
37774
37774
|
license: "MIT",
|
|
37775
|
-
version: "1.199.0-preview.
|
|
37775
|
+
version: "1.199.0-preview.119",
|
|
37776
37776
|
repository: {
|
|
37777
37777
|
type: "git",
|
|
37778
37778
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -43452,4 +43452,4 @@ export {
|
|
|
43452
43452
|
activateDeploymentAsync
|
|
43453
43453
|
};
|
|
43454
43454
|
|
|
43455
|
-
//# debugId=
|
|
43455
|
+
//# debugId=447737D3B356941564756E2164756E21
|
package/dist/init.js
CHANGED
|
@@ -31019,7 +31019,7 @@ function querystringSingleKey(key, value, keyPrefix = "") {
|
|
|
31019
31019
|
var package_default = {
|
|
31020
31020
|
name: "@uipath/solution-sdk",
|
|
31021
31021
|
license: "MIT",
|
|
31022
|
-
version: "1.199.0-preview.
|
|
31022
|
+
version: "1.199.0-preview.119",
|
|
31023
31023
|
repository: {
|
|
31024
31024
|
type: "git",
|
|
31025
31025
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -48844,4 +48844,4 @@ export {
|
|
|
48844
48844
|
SolutionInitError
|
|
48845
48845
|
};
|
|
48846
48846
|
|
|
48847
|
-
//# debugId=
|
|
48847
|
+
//# debugId=DD9D79AF1C6FA08864756E2164756E21
|
package/dist/pack.js
CHANGED
|
@@ -214109,7 +214109,7 @@ init_dist();
|
|
|
214109
214109
|
// ../packager/packager-tool-flow/package.json
|
|
214110
214110
|
var package_default = {
|
|
214111
214111
|
name: "@uipath/packager-tool-flow",
|
|
214112
|
-
version: "1.199.0-preview.
|
|
214112
|
+
version: "1.199.0-preview.119",
|
|
214113
214113
|
description: "UiPath Flow tool implementation",
|
|
214114
214114
|
type: "module",
|
|
214115
214115
|
exports: {
|
|
@@ -218467,6 +218467,7 @@ class WorkflowCompilerExecutor {
|
|
|
218467
218467
|
return new Promise((resolve3) => {
|
|
218468
218468
|
let result = null;
|
|
218469
218469
|
const fallbackErrors = [];
|
|
218470
|
+
const analyzerFindings = [];
|
|
218470
218471
|
const childProcess4 = this.spawnProcess(executable, commandArgs, workflowCompilerConfig.dotnetEnv);
|
|
218471
218472
|
let stdoutEnded = false;
|
|
218472
218473
|
let stderrEnded = false;
|
|
@@ -218482,7 +218483,7 @@ class WorkflowCompilerExecutor {
|
|
|
218482
218483
|
errorCode: result.errorCode
|
|
218483
218484
|
}));
|
|
218484
218485
|
const toolResult = new ToolResult(result.errorCode, result.message, result.outputPackages);
|
|
218485
|
-
toolResult.details = getAdditionalResultDetails(result);
|
|
218486
|
+
toolResult.details = withAnalyzerFindings(getAdditionalResultDetails(result), analyzerFindings);
|
|
218486
218487
|
resolve3(toolResult);
|
|
218487
218488
|
} else {
|
|
218488
218489
|
const exitCode = childProcess4.exitCode ?? -1;
|
|
@@ -218512,8 +218513,8 @@ class WorkflowCompilerExecutor {
|
|
|
218512
218513
|
checkComplete();
|
|
218513
218514
|
}
|
|
218514
218515
|
};
|
|
218515
|
-
this.setupStdoutHandling(childProcess4, streamCompletion, (r2) => result = r2);
|
|
218516
|
-
this.setupStderrHandling(childProcess4, streamCompletion, fallbackErrors);
|
|
218516
|
+
this.setupStdoutHandling(childProcess4, streamCompletion, (r2) => result = r2, analyzerFindings);
|
|
218517
|
+
this.setupStderrHandling(childProcess4, streamCompletion, fallbackErrors, analyzerFindings);
|
|
218517
218518
|
this.setupProcessEventHandlers(childProcess4, streamCompletion, resolve3);
|
|
218518
218519
|
this.setupCancellationHandler(childProcess4, cancellationToken, resolve3);
|
|
218519
218520
|
});
|
|
@@ -218535,7 +218536,7 @@ class WorkflowCompilerExecutor {
|
|
|
218535
218536
|
command: fullCommand.join(" ")
|
|
218536
218537
|
}));
|
|
218537
218538
|
}
|
|
218538
|
-
setupStdoutHandling(childProcess4, streamCompletion, onResult) {
|
|
218539
|
+
setupStdoutHandling(childProcess4, streamCompletion, onResult, analyzerFindings) {
|
|
218539
218540
|
if (!childProcess4.stdout) {
|
|
218540
218541
|
streamCompletion.markStdoutEnded();
|
|
218541
218542
|
return;
|
|
@@ -218549,24 +218550,29 @@ class WorkflowCompilerExecutor {
|
|
|
218549
218550
|
for (const line of lines) {
|
|
218550
218551
|
if (!line.trim())
|
|
218551
218552
|
continue;
|
|
218552
|
-
this.processOutputLine(line, onResult);
|
|
218553
|
+
this.processOutputLine(line, onResult, analyzerFindings);
|
|
218553
218554
|
}
|
|
218554
218555
|
});
|
|
218555
218556
|
childProcess4.stdout.on("end", () => {
|
|
218556
218557
|
if (buffer.trim()) {
|
|
218557
|
-
this.processOutputLine(buffer, onResult);
|
|
218558
|
+
this.processOutputLine(buffer, onResult, analyzerFindings);
|
|
218558
218559
|
}
|
|
218559
218560
|
streamCompletion.markStdoutEnded();
|
|
218560
218561
|
});
|
|
218561
218562
|
}
|
|
218562
|
-
processOutputLine(line, onResult) {
|
|
218563
|
+
processOutputLine(line, onResult, analyzerFindings) {
|
|
218563
218564
|
const entry = this.parseOutputEntry(line);
|
|
218564
218565
|
if (!entry)
|
|
218565
218566
|
return;
|
|
218566
218567
|
if (entry.type === "Result") {
|
|
218567
218568
|
onResult(entry);
|
|
218568
218569
|
} else if (entry.type === "Log") {
|
|
218569
|
-
|
|
218570
|
+
const log = entry;
|
|
218571
|
+
const finding = toAnalyzerFinding(log);
|
|
218572
|
+
if (finding) {
|
|
218573
|
+
analyzerFindings.push(finding);
|
|
218574
|
+
}
|
|
218575
|
+
this.logMessage(log);
|
|
218570
218576
|
} else if (entry.type === "Progress") {
|
|
218571
218577
|
this.logProgress(entry);
|
|
218572
218578
|
}
|
|
@@ -218589,7 +218595,7 @@ class WorkflowCompilerExecutor {
|
|
|
218589
218595
|
const separator = percent && progress.message ? " - " : "";
|
|
218590
218596
|
this.logger.progress(`${percent}${separator}${progress.message ?? ""}`);
|
|
218591
218597
|
}
|
|
218592
|
-
setupStderrHandling(childProcess4, streamCompletion, fallbackErrors) {
|
|
218598
|
+
setupStderrHandling(childProcess4, streamCompletion, fallbackErrors, analyzerFindings) {
|
|
218593
218599
|
if (!childProcess4.stderr) {
|
|
218594
218600
|
streamCompletion.markStderrEnded();
|
|
218595
218601
|
return;
|
|
@@ -218603,20 +218609,25 @@ class WorkflowCompilerExecutor {
|
|
|
218603
218609
|
for (const line of lines) {
|
|
218604
218610
|
if (!line.trim())
|
|
218605
218611
|
continue;
|
|
218606
|
-
this.processErrorLine(line, fallbackErrors);
|
|
218612
|
+
this.processErrorLine(line, fallbackErrors, analyzerFindings);
|
|
218607
218613
|
}
|
|
218608
218614
|
});
|
|
218609
218615
|
childProcess4.stderr.on("end", () => {
|
|
218610
218616
|
if (buffer.trim()) {
|
|
218611
|
-
this.processErrorLine(buffer, fallbackErrors);
|
|
218617
|
+
this.processErrorLine(buffer, fallbackErrors, analyzerFindings);
|
|
218612
218618
|
}
|
|
218613
218619
|
streamCompletion.markStderrEnded();
|
|
218614
218620
|
});
|
|
218615
218621
|
}
|
|
218616
|
-
processErrorLine(line, fallbackErrors) {
|
|
218622
|
+
processErrorLine(line, fallbackErrors, analyzerFindings) {
|
|
218617
218623
|
const entry = this.parseOutputEntry(line);
|
|
218618
218624
|
if (entry && entry.type === "Log") {
|
|
218619
|
-
|
|
218625
|
+
const log = entry;
|
|
218626
|
+
const finding = toAnalyzerFinding(log);
|
|
218627
|
+
if (finding) {
|
|
218628
|
+
analyzerFindings.push(finding);
|
|
218629
|
+
}
|
|
218630
|
+
this.logger.error(log.message);
|
|
218620
218631
|
} else {
|
|
218621
218632
|
fallbackErrors.push(line);
|
|
218622
218633
|
this.logger.error(line);
|
|
@@ -218680,6 +218691,54 @@ function getAdditionalResultDetails(result) {
|
|
|
218680
218691
|
}
|
|
218681
218692
|
return Object.keys(details).length > 0 ? details : undefined;
|
|
218682
218693
|
}
|
|
218694
|
+
var ANALYZER_LOG_SOURCE = "Analyzer";
|
|
218695
|
+
function withAnalyzerFindings(details, findings) {
|
|
218696
|
+
const fromEnvelope = details?.findings;
|
|
218697
|
+
if (findings.length === 0 || Array.isArray(fromEnvelope) && fromEnvelope.length > 0) {
|
|
218698
|
+
return details;
|
|
218699
|
+
}
|
|
218700
|
+
return { ...details, findings };
|
|
218701
|
+
}
|
|
218702
|
+
function toAnalyzerFinding(log) {
|
|
218703
|
+
if (log.source !== ANALYZER_LOG_SOURCE) {
|
|
218704
|
+
return;
|
|
218705
|
+
}
|
|
218706
|
+
const message = parseAnalyzerMessage(log.data) ?? {};
|
|
218707
|
+
const activityId = message.ActivityId;
|
|
218708
|
+
const item = message.Item;
|
|
218709
|
+
return {
|
|
218710
|
+
...message,
|
|
218711
|
+
ErrorCode: message.ErrorCode ?? log.code,
|
|
218712
|
+
Description: message.Description ?? log.message,
|
|
218713
|
+
FilePath: message.FilePath ?? log.filePath,
|
|
218714
|
+
ErrorSeverity: message.ErrorSeverity ?? toErrorSeverity(log.logLevel),
|
|
218715
|
+
ActivityIdRef: activityId?.IdRef ?? log.id,
|
|
218716
|
+
AnalyzerItemName: item?.Name,
|
|
218717
|
+
AnalyzerItemType: item?.Type
|
|
218718
|
+
};
|
|
218719
|
+
}
|
|
218720
|
+
function toErrorSeverity(logLevel) {
|
|
218721
|
+
switch (logLevel) {
|
|
218722
|
+
case "Debug":
|
|
218723
|
+
case "Trace":
|
|
218724
|
+
return "Verbose";
|
|
218725
|
+
case "Information":
|
|
218726
|
+
return "Info";
|
|
218727
|
+
default:
|
|
218728
|
+
return logLevel;
|
|
218729
|
+
}
|
|
218730
|
+
}
|
|
218731
|
+
function parseAnalyzerMessage(data) {
|
|
218732
|
+
if (!data) {
|
|
218733
|
+
return;
|
|
218734
|
+
}
|
|
218735
|
+
try {
|
|
218736
|
+
const parsed = JSON.parse(data);
|
|
218737
|
+
return typeof parsed === "object" && parsed !== null && !Array.isArray(parsed) ? parsed : undefined;
|
|
218738
|
+
} catch {
|
|
218739
|
+
return;
|
|
218740
|
+
}
|
|
218741
|
+
}
|
|
218683
218742
|
|
|
218684
218743
|
// ../packager/packager-tool-workflowcompiler/src/workflow-compiler-tool.ts
|
|
218685
218744
|
class WorkflowCompilerTool extends ProjectTool {
|
|
@@ -250674,7 +250733,7 @@ var sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
|
|
|
250674
250733
|
var package_default3 = {
|
|
250675
250734
|
name: "@uipath/project-packager",
|
|
250676
250735
|
license: "MIT",
|
|
250677
|
-
version: "1.199.0-preview.
|
|
250736
|
+
version: "1.199.0-preview.119",
|
|
250678
250737
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
250679
250738
|
type: "module",
|
|
250680
250739
|
main: "./dist/index.js",
|
|
@@ -262839,7 +262898,7 @@ var sdkUserAgentHostToken23 = singleton23("SdkUserAgentHostToken");
|
|
|
262839
262898
|
var package_default4 = {
|
|
262840
262899
|
name: "@uipath/project-packager",
|
|
262841
262900
|
license: "MIT",
|
|
262842
|
-
version: "1.199.0-preview.
|
|
262901
|
+
version: "1.199.0-preview.119",
|
|
262843
262902
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
262844
262903
|
type: "module",
|
|
262845
262904
|
main: "./dist/index.js",
|
|
@@ -281637,4 +281696,4 @@ export {
|
|
|
281637
281696
|
packSolutionAsync
|
|
281638
281697
|
};
|
|
281639
281698
|
|
|
281640
|
-
//# debugId=
|
|
281699
|
+
//# debugId=C6C744A31BA8FBCC64756E2164756E21
|
package/dist/publish.js
CHANGED
|
@@ -30734,7 +30734,7 @@ class TextApiResponse2 {
|
|
|
30734
30734
|
var package_default2 = {
|
|
30735
30735
|
name: "@uipath/solution-sdk",
|
|
30736
30736
|
license: "MIT",
|
|
30737
|
-
version: "1.199.0-preview.
|
|
30737
|
+
version: "1.199.0-preview.119",
|
|
30738
30738
|
repository: {
|
|
30739
30739
|
type: "git",
|
|
30740
30740
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -33509,4 +33509,4 @@ export {
|
|
|
33509
33509
|
publishSolutionAsync
|
|
33510
33510
|
};
|
|
33511
33511
|
|
|
33512
|
-
//# debugId=
|
|
33512
|
+
//# debugId=2AA07D56FDFC2E6864756E2164756E21
|
package/dist/tool.js
CHANGED
|
@@ -30536,7 +30536,7 @@ import"./packager-tool.js";
|
|
|
30536
30536
|
var package_default = {
|
|
30537
30537
|
name: "@uipath/solution-tool",
|
|
30538
30538
|
license: "MIT",
|
|
30539
|
-
version: "1.199.0-preview.
|
|
30539
|
+
version: "1.199.0-preview.119",
|
|
30540
30540
|
description: "Create, pack, publish, and deploy UiPath Automation Solutions.",
|
|
30541
30541
|
repository: {
|
|
30542
30542
|
type: "git",
|
|
@@ -64413,7 +64413,7 @@ var sdkUserAgentHostToken22 = singleton22("SdkUserAgentHostToken");
|
|
|
64413
64413
|
var package_default2 = {
|
|
64414
64414
|
name: "@uipath/project-packager",
|
|
64415
64415
|
license: "MIT",
|
|
64416
|
-
version: "1.199.0-preview.
|
|
64416
|
+
version: "1.199.0-preview.119",
|
|
64417
64417
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
64418
64418
|
type: "module",
|
|
64419
64419
|
main: "./dist/index.js",
|
|
@@ -76559,7 +76559,7 @@ var sdkUserAgentHostToken23 = singleton23("SdkUserAgentHostToken");
|
|
|
76559
76559
|
var package_default3 = {
|
|
76560
76560
|
name: "@uipath/project-packager",
|
|
76561
76561
|
license: "MIT",
|
|
76562
|
-
version: "1.199.0-preview.
|
|
76562
|
+
version: "1.199.0-preview.119",
|
|
76563
76563
|
description: "UiPath Project Packager - core library for packing individual UiPath projects",
|
|
76564
76564
|
type: "module",
|
|
76565
76565
|
main: "./dist/index.js",
|
|
@@ -82120,7 +82120,7 @@ class TextApiResponse2 {
|
|
|
82120
82120
|
var package_default5 = {
|
|
82121
82121
|
name: "@uipath/solution-sdk",
|
|
82122
82122
|
license: "MIT",
|
|
82123
|
-
version: "1.199.0-preview.
|
|
82123
|
+
version: "1.199.0-preview.119",
|
|
82124
82124
|
repository: {
|
|
82125
82125
|
type: "git",
|
|
82126
82126
|
url: "https://github.com/UiPath/cli.git",
|
|
@@ -108785,4 +108785,4 @@ export {
|
|
|
108785
108785
|
metadata
|
|
108786
108786
|
};
|
|
108787
108787
|
|
|
108788
|
-
//# debugId=
|
|
108788
|
+
//# debugId=BA73D9F178E69A6664756E2164756E21
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/solution-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.199.0-preview.
|
|
4
|
+
"version": "1.199.0-preview.119",
|
|
5
5
|
"description": "Create, pack, publish, and deploy UiPath Automation Solutions.",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"dist"
|
|
47
47
|
],
|
|
48
48
|
"private": false,
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "9237653cf731fb275714c8ee5aab5dc057424b42"
|
|
50
50
|
}
|