@uipath/packager-tool-workflowcompiler 1.202.0 → 1.203.0-preview.160
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/index.js +33 -24
- package/dist/workflow-compiler-config.d.ts +2 -2
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -657,7 +657,7 @@ import {
|
|
|
657
657
|
} from "@uipath/solutionpackager-tool-core";
|
|
658
658
|
|
|
659
659
|
// src/workflow-compiler-config.ts
|
|
660
|
-
var DEFAULT_WORKFLOW_COMPILER_VERSION = "26.0.
|
|
660
|
+
var DEFAULT_WORKFLOW_COMPILER_VERSION = "26.0.202-cloud.24987";
|
|
661
661
|
var DEFAULT_DOTNET_PATH = "dotnet";
|
|
662
662
|
var workflowCompilerConfig = {
|
|
663
663
|
workflowCompilerPath: undefined,
|
|
@@ -1034,7 +1034,7 @@ function addSdkUserAgentHeader(headers, userAgent) {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
var package_default = {
|
|
1036
1036
|
name: "@uipath/packager-orchestrator-client",
|
|
1037
|
-
version: "1.
|
|
1037
|
+
version: "1.203.0",
|
|
1038
1038
|
description: "UiPath packager client for Orchestrator package-feed interaction (feed discovery + NuGet source composition)",
|
|
1039
1039
|
type: "module",
|
|
1040
1040
|
private: true,
|
|
@@ -1058,7 +1058,7 @@ var package_default = {
|
|
|
1058
1058
|
"dist",
|
|
1059
1059
|
"src"
|
|
1060
1060
|
],
|
|
1061
|
-
author: "",
|
|
1061
|
+
author: "UiPath",
|
|
1062
1062
|
license: "SEE LICENSE IN LICENSE.txt",
|
|
1063
1063
|
repository: {
|
|
1064
1064
|
type: "git",
|
|
@@ -1525,7 +1525,7 @@ class WorkflowCompilerExecutor {
|
|
|
1525
1525
|
return new Promise((resolve) => {
|
|
1526
1526
|
let result = null;
|
|
1527
1527
|
const fallbackErrors = [];
|
|
1528
|
-
const
|
|
1528
|
+
const findings = [];
|
|
1529
1529
|
const childProcess = this.spawnProcess(executable, commandArgs, workflowCompilerConfig.dotnetEnv);
|
|
1530
1530
|
let stdoutEnded = false;
|
|
1531
1531
|
let stderrEnded = false;
|
|
@@ -1541,7 +1541,7 @@ class WorkflowCompilerExecutor {
|
|
|
1541
1541
|
errorCode: result.errorCode
|
|
1542
1542
|
}));
|
|
1543
1543
|
const toolResult = new ToolResult(result.errorCode, result.message, result.outputPackages);
|
|
1544
|
-
toolResult.details =
|
|
1544
|
+
toolResult.details = withFindings(getAdditionalResultDetails(result), findings);
|
|
1545
1545
|
resolve(toolResult);
|
|
1546
1546
|
} else {
|
|
1547
1547
|
const exitCode = childProcess.exitCode ?? -1;
|
|
@@ -1571,8 +1571,8 @@ class WorkflowCompilerExecutor {
|
|
|
1571
1571
|
checkComplete();
|
|
1572
1572
|
}
|
|
1573
1573
|
};
|
|
1574
|
-
this.setupStdoutHandling(childProcess, streamCompletion, (r) => result = r,
|
|
1575
|
-
this.setupStderrHandling(childProcess, streamCompletion, fallbackErrors,
|
|
1574
|
+
this.setupStdoutHandling(childProcess, streamCompletion, (r) => result = r, findings);
|
|
1575
|
+
this.setupStderrHandling(childProcess, streamCompletion, fallbackErrors, findings);
|
|
1576
1576
|
this.setupProcessEventHandlers(childProcess, streamCompletion, resolve);
|
|
1577
1577
|
this.setupCancellationHandler(childProcess, cancellationToken, resolve);
|
|
1578
1578
|
});
|
|
@@ -1594,7 +1594,7 @@ class WorkflowCompilerExecutor {
|
|
|
1594
1594
|
command: fullCommand.join(" ")
|
|
1595
1595
|
}));
|
|
1596
1596
|
}
|
|
1597
|
-
setupStdoutHandling(childProcess, streamCompletion, onResult,
|
|
1597
|
+
setupStdoutHandling(childProcess, streamCompletion, onResult, findings) {
|
|
1598
1598
|
if (!childProcess.stdout) {
|
|
1599
1599
|
streamCompletion.markStdoutEnded();
|
|
1600
1600
|
return;
|
|
@@ -1608,17 +1608,17 @@ class WorkflowCompilerExecutor {
|
|
|
1608
1608
|
for (const line of lines) {
|
|
1609
1609
|
if (!line.trim())
|
|
1610
1610
|
continue;
|
|
1611
|
-
this.processOutputLine(line, onResult,
|
|
1611
|
+
this.processOutputLine(line, onResult, findings);
|
|
1612
1612
|
}
|
|
1613
1613
|
});
|
|
1614
1614
|
childProcess.stdout.on("end", () => {
|
|
1615
1615
|
if (buffer.trim()) {
|
|
1616
|
-
this.processOutputLine(buffer, onResult,
|
|
1616
|
+
this.processOutputLine(buffer, onResult, findings);
|
|
1617
1617
|
}
|
|
1618
1618
|
streamCompletion.markStdoutEnded();
|
|
1619
1619
|
});
|
|
1620
1620
|
}
|
|
1621
|
-
processOutputLine(line, onResult,
|
|
1621
|
+
processOutputLine(line, onResult, findings) {
|
|
1622
1622
|
const entry = this.parseOutputEntry(line);
|
|
1623
1623
|
if (!entry)
|
|
1624
1624
|
return;
|
|
@@ -1626,9 +1626,9 @@ class WorkflowCompilerExecutor {
|
|
|
1626
1626
|
onResult(entry);
|
|
1627
1627
|
} else if (entry.type === "Log") {
|
|
1628
1628
|
const log = entry;
|
|
1629
|
-
const finding =
|
|
1629
|
+
const finding = toFinding(log);
|
|
1630
1630
|
if (finding) {
|
|
1631
|
-
|
|
1631
|
+
findings.push(finding);
|
|
1632
1632
|
}
|
|
1633
1633
|
this.logMessage(log);
|
|
1634
1634
|
} else if (entry.type === "Progress") {
|
|
@@ -1653,7 +1653,7 @@ class WorkflowCompilerExecutor {
|
|
|
1653
1653
|
const separator = percent && progress.message ? " - " : "";
|
|
1654
1654
|
this.logger.progress(`${percent}${separator}${progress.message ?? ""}`);
|
|
1655
1655
|
}
|
|
1656
|
-
setupStderrHandling(childProcess, streamCompletion, fallbackErrors,
|
|
1656
|
+
setupStderrHandling(childProcess, streamCompletion, fallbackErrors, findings) {
|
|
1657
1657
|
if (!childProcess.stderr) {
|
|
1658
1658
|
streamCompletion.markStderrEnded();
|
|
1659
1659
|
return;
|
|
@@ -1667,23 +1667,23 @@ class WorkflowCompilerExecutor {
|
|
|
1667
1667
|
for (const line of lines) {
|
|
1668
1668
|
if (!line.trim())
|
|
1669
1669
|
continue;
|
|
1670
|
-
this.processErrorLine(line, fallbackErrors,
|
|
1670
|
+
this.processErrorLine(line, fallbackErrors, findings);
|
|
1671
1671
|
}
|
|
1672
1672
|
});
|
|
1673
1673
|
childProcess.stderr.on("end", () => {
|
|
1674
1674
|
if (buffer.trim()) {
|
|
1675
|
-
this.processErrorLine(buffer, fallbackErrors,
|
|
1675
|
+
this.processErrorLine(buffer, fallbackErrors, findings);
|
|
1676
1676
|
}
|
|
1677
1677
|
streamCompletion.markStderrEnded();
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
|
-
processErrorLine(line, fallbackErrors,
|
|
1680
|
+
processErrorLine(line, fallbackErrors, findings) {
|
|
1681
1681
|
const entry = this.parseOutputEntry(line);
|
|
1682
1682
|
if (entry && entry.type === "Log") {
|
|
1683
1683
|
const log = entry;
|
|
1684
|
-
const finding =
|
|
1684
|
+
const finding = toFinding(log);
|
|
1685
1685
|
if (finding) {
|
|
1686
|
-
|
|
1686
|
+
findings.push(finding);
|
|
1687
1687
|
}
|
|
1688
1688
|
this.logger.error(log.message);
|
|
1689
1689
|
} else {
|
|
@@ -1749,16 +1749,24 @@ function getAdditionalResultDetails(result) {
|
|
|
1749
1749
|
}
|
|
1750
1750
|
return Object.keys(details).length > 0 ? details : undefined;
|
|
1751
1751
|
}
|
|
1752
|
-
var
|
|
1753
|
-
|
|
1752
|
+
var FINDING_LOG_SOURCES = new Set([
|
|
1753
|
+
"Other",
|
|
1754
|
+
"Analyzer",
|
|
1755
|
+
"Validator",
|
|
1756
|
+
"Compiler"
|
|
1757
|
+
]);
|
|
1758
|
+
function withFindings(details, findings) {
|
|
1754
1759
|
const fromEnvelope = details?.findings;
|
|
1755
1760
|
if (findings.length === 0 || Array.isArray(fromEnvelope) && fromEnvelope.length > 0) {
|
|
1756
1761
|
return details;
|
|
1757
1762
|
}
|
|
1758
1763
|
return { ...details, findings };
|
|
1759
1764
|
}
|
|
1760
|
-
function
|
|
1761
|
-
if (log.source
|
|
1765
|
+
function toFinding(log) {
|
|
1766
|
+
if (!log.source || !FINDING_LOG_SOURCES.has(log.source)) {
|
|
1767
|
+
return;
|
|
1768
|
+
}
|
|
1769
|
+
if (!log.filePath && !log.code) {
|
|
1762
1770
|
return;
|
|
1763
1771
|
}
|
|
1764
1772
|
const message = parseAnalyzerMessage(log.data) ?? {};
|
|
@@ -1766,6 +1774,7 @@ function toAnalyzerFinding(log) {
|
|
|
1766
1774
|
const item = message.Item;
|
|
1767
1775
|
return {
|
|
1768
1776
|
...message,
|
|
1777
|
+
Source: log.source,
|
|
1769
1778
|
ErrorCode: message.ErrorCode ?? log.code,
|
|
1770
1779
|
Description: message.Description ?? log.message,
|
|
1771
1780
|
FilePath: message.FilePath ?? log.filePath,
|
|
@@ -2148,4 +2157,4 @@ export {
|
|
|
2148
2157
|
setupWorkflowCompiler
|
|
2149
2158
|
};
|
|
2150
2159
|
|
|
2151
|
-
//# debugId=
|
|
2160
|
+
//# debugId=4F5B518067D8A01364756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const DEFAULT_WORKFLOW_COMPILER_VERSION = "26.0.
|
|
1
|
+
export declare const DEFAULT_WORKFLOW_COMPILER_VERSION = "26.0.202-cloud.24987";
|
|
2
2
|
/** The dotnet host used when no consumer pins one: whatever `dotnet` PATH resolves to. */
|
|
3
3
|
export declare const DEFAULT_DOTNET_PATH = "dotnet";
|
|
4
4
|
export declare const workflowCompilerConfig: {
|
|
@@ -20,7 +20,7 @@ export declare const workflowCompilerConfig: {
|
|
|
20
20
|
* import { setupWorkflowCompiler } from "@uipath/packager-tool-workflowcompiler";
|
|
21
21
|
*
|
|
22
22
|
* setupWorkflowCompiler({ compilerPath: "/path/to/UiPath.WorkflowCompiler.dll" });
|
|
23
|
-
* setupWorkflowCompiler({ version: "26.0.
|
|
23
|
+
* setupWorkflowCompiler({ version: "26.0.202-cloud.24987" });
|
|
24
24
|
* setupWorkflowCompiler({
|
|
25
25
|
* compilerPath: "/path/to/UiPath.WorkflowCompiler.dll",
|
|
26
26
|
* dotnetPath: "/path/to/bundled/dotnet",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/packager-tool-workflowcompiler",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.203.0-preview.160",
|
|
4
4
|
"description": "UiPath Workflow Compiler tool implementation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"files": [
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
|
-
"author": "",
|
|
21
|
+
"author": "UiPath",
|
|
22
22
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@uipath/solutionpackager-tool-core": "1.
|
|
24
|
+
"@uipath/solutionpackager-tool-core": "1.203.0"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {},
|
|
27
|
-
"gitHead": "
|
|
27
|
+
"gitHead": "3a42062ba731afca4595ba9aa8a80afc9667528d"
|
|
28
28
|
}
|