@uipath/packager-tool-workflowcompiler 1.202.0-preview.141 → 1.202.0-preview.142
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/package.json +4 -8
- package/src/i18n/index.ts +0 -45
- package/src/i18n/locales/de.json +0 -41
- package/src/i18n/locales/en.ts +0 -62
- package/src/i18n/locales/es-MX.json +0 -41
- package/src/i18n/locales/es.json +0 -41
- package/src/i18n/locales/fr.json +0 -41
- package/src/i18n/locales/ja.json +0 -41
- package/src/i18n/locales/ko.json +0 -41
- package/src/i18n/locales/pt-BR.json +0 -41
- package/src/i18n/locales/pt.json +0 -41
- package/src/i18n/locales/ro.json +0 -41
- package/src/i18n/locales/ru.json +0 -41
- package/src/i18n/locales/tr.json +0 -41
- package/src/i18n/locales/zh-CN.json +0 -41
- package/src/i18n/locales/zh-TW.json +0 -41
- package/src/i18n/locales/zu.json +0 -41
- package/src/index.ts +0 -28
- package/src/output-entry.ts +0 -53
- package/src/workflow-cleanup-details.ts +0 -4
- package/src/workflow-compiler-config.ts +0 -57
- package/src/workflow-compiler-executor.ts +0 -530
- package/src/workflow-compiler-path-resolver.ts +0 -302
- package/src/workflow-compiler-tool-factory.ts +0 -82
- package/src/workflow-compiler-tool.ts +0 -519
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"toolWorkflowcompiler": {
|
|
3
|
-
"lifecycle": {
|
|
4
|
-
"started": "[WorkflowCompiler] {operation} started",
|
|
5
|
-
"command": "[WorkflowCompiler] Command: {command}",
|
|
6
|
-
"completed": "[WorkflowCompiler] {operation} completed in {elapsed}ms with code: {errorCode}",
|
|
7
|
-
"cancelled": "[WorkflowCompiler] Operation cancelled"
|
|
8
|
-
},
|
|
9
|
-
"errors": {
|
|
10
|
-
"processExited": "Process exited with code {exitCode}",
|
|
11
|
-
"failed": "[WorkflowCompiler] {operation} failed: {errorMessage}",
|
|
12
|
-
"processError": "[WorkflowCompiler] Process error: {message}",
|
|
13
|
-
"startFailed": "Failed to start workflow compiler: {message}",
|
|
14
|
-
"operationCancelled": "Operation cancelled",
|
|
15
|
-
"dotnetNotAvailable": "The .NET SDK 8.0 is required by the workflow compiler, but the 'dotnet' CLI was not found on PATH. Install SDK 8.0 from https://dotnet.microsoft.com/download/dotnet/8.0, then re-run this command."
|
|
16
|
-
},
|
|
17
|
-
"pathResolver": {
|
|
18
|
-
"info": {
|
|
19
|
-
"usingCached": "[PathResolver] Using cached compiler path: {path}",
|
|
20
|
-
"usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
|
|
21
|
-
"resolving": "[PathResolver] Resolving workflow compiler path...",
|
|
22
|
-
"checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
|
|
23
|
-
"foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
|
|
24
|
-
"checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
|
|
25
|
-
"foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
|
|
26
|
-
"notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
|
|
27
|
-
"restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
|
|
28
|
-
"runningDotnetRestore": "[PathResolver] Running dotnet restore...",
|
|
29
|
-
"restoreCompleted": "[PathResolver] dotnet restore completed",
|
|
30
|
-
"installCompleted": "[PathResolver] Compiler restored successfully",
|
|
31
|
-
"cleaningUp": "[PathResolver] Cleaning up temp directory",
|
|
32
|
-
"resolved": "[PathResolver] Compiler resolved at: {path}"
|
|
33
|
-
},
|
|
34
|
-
"errors": {
|
|
35
|
-
"unsupportedPlatform": "Unsupported platform: {platform}",
|
|
36
|
-
"compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
|
|
37
|
-
"dotnetRestoreFailed": "dotnet restore failed: {details}"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"toolWorkflowcompiler": {
|
|
3
|
-
"lifecycle": {
|
|
4
|
-
"started": "[WorkflowCompiler] {operation} started",
|
|
5
|
-
"command": "[WorkflowCompiler] Command: {command}",
|
|
6
|
-
"completed": "[WorkflowCompiler] {operation} completed in {elapsed}ms with code: {errorCode}",
|
|
7
|
-
"cancelled": "[WorkflowCompiler] Operation cancelled"
|
|
8
|
-
},
|
|
9
|
-
"errors": {
|
|
10
|
-
"processExited": "Process exited with code {exitCode}",
|
|
11
|
-
"failed": "[WorkflowCompiler] {operation} failed: {errorMessage}",
|
|
12
|
-
"processError": "[WorkflowCompiler] Process error: {message}",
|
|
13
|
-
"startFailed": "Failed to start workflow compiler: {message}",
|
|
14
|
-
"operationCancelled": "Operation cancelled",
|
|
15
|
-
"dotnetNotAvailable": "The .NET SDK 8.0 is required by the workflow compiler, but the 'dotnet' CLI was not found on PATH. Install SDK 8.0 from https://dotnet.microsoft.com/download/dotnet/8.0, then re-run this command."
|
|
16
|
-
},
|
|
17
|
-
"pathResolver": {
|
|
18
|
-
"info": {
|
|
19
|
-
"usingCached": "[PathResolver] Using cached compiler path: {path}",
|
|
20
|
-
"usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
|
|
21
|
-
"resolving": "[PathResolver] Resolving workflow compiler path...",
|
|
22
|
-
"checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
|
|
23
|
-
"foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
|
|
24
|
-
"checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
|
|
25
|
-
"foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
|
|
26
|
-
"notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
|
|
27
|
-
"restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
|
|
28
|
-
"runningDotnetRestore": "[PathResolver] Running dotnet restore...",
|
|
29
|
-
"restoreCompleted": "[PathResolver] dotnet restore completed",
|
|
30
|
-
"installCompleted": "[PathResolver] Compiler restored successfully",
|
|
31
|
-
"cleaningUp": "[PathResolver] Cleaning up temp directory",
|
|
32
|
-
"resolved": "[PathResolver] Compiler resolved at: {path}"
|
|
33
|
-
},
|
|
34
|
-
"errors": {
|
|
35
|
-
"unsupportedPlatform": "Unsupported platform: {platform}",
|
|
36
|
-
"compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
|
|
37
|
-
"dotnetRestoreFailed": "dotnet restore failed: {details}"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
package/src/i18n/locales/zu.json
DELETED
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"toolWorkflowcompiler": {
|
|
3
|
-
"lifecycle": {
|
|
4
|
-
"started": "[WorkflowCompiler] {operation} started",
|
|
5
|
-
"command": "[WorkflowCompiler] Command: {command}",
|
|
6
|
-
"completed": "[WorkflowCompiler] {operation} completed in {elapsed}ms with code: {errorCode}",
|
|
7
|
-
"cancelled": "[WorkflowCompiler] Operation cancelled"
|
|
8
|
-
},
|
|
9
|
-
"errors": {
|
|
10
|
-
"processExited": "Process exited with code {exitCode}",
|
|
11
|
-
"failed": "[WorkflowCompiler] {operation} failed: {errorMessage}",
|
|
12
|
-
"processError": "[WorkflowCompiler] Process error: {message}",
|
|
13
|
-
"startFailed": "Failed to start workflow compiler: {message}",
|
|
14
|
-
"operationCancelled": "Operation cancelled",
|
|
15
|
-
"dotnetNotAvailable": "The .NET SDK 8.0 is required by the workflow compiler, but the 'dotnet' CLI was not found on PATH. Install SDK 8.0 from https://dotnet.microsoft.com/download/dotnet/8.0, then re-run this command."
|
|
16
|
-
},
|
|
17
|
-
"pathResolver": {
|
|
18
|
-
"info": {
|
|
19
|
-
"usingCached": "[PathResolver] Using cached compiler path: {path}",
|
|
20
|
-
"usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
|
|
21
|
-
"resolving": "[PathResolver] Resolving workflow compiler path...",
|
|
22
|
-
"checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
|
|
23
|
-
"foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
|
|
24
|
-
"checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
|
|
25
|
-
"foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
|
|
26
|
-
"notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
|
|
27
|
-
"restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
|
|
28
|
-
"runningDotnetRestore": "[PathResolver] Running dotnet restore...",
|
|
29
|
-
"restoreCompleted": "[PathResolver] dotnet restore completed",
|
|
30
|
-
"installCompleted": "[PathResolver] Compiler restored successfully",
|
|
31
|
-
"cleaningUp": "[PathResolver] Cleaning up temp directory",
|
|
32
|
-
"resolved": "[PathResolver] Compiler resolved at: {path}"
|
|
33
|
-
},
|
|
34
|
-
"errors": {
|
|
35
|
-
"unsupportedPlatform": "Unsupported platform: {platform}",
|
|
36
|
-
"compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
|
|
37
|
-
"dotnetRestoreFailed": "dotnet restore failed: {details}"
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
// ============================================================================
|
|
2
|
-
// Initialize i18n (registers tool-workflowcompiler translations)
|
|
3
|
-
// ============================================================================
|
|
4
|
-
|
|
5
|
-
import "./i18n/index.js";
|
|
6
|
-
|
|
7
|
-
// ============================================================================
|
|
8
|
-
// Workflow Compiler tool factory. Consumers register it explicitly via
|
|
9
|
-
// `toolsFactoryRepository.registerProjectToolFactory(new WorkflowCompilerToolFactory())`.
|
|
10
|
-
// ============================================================================
|
|
11
|
-
|
|
12
|
-
export { WorkflowCompilerToolFactory } from "./workflow-compiler-tool-factory.js";
|
|
13
|
-
|
|
14
|
-
// ============================================================================
|
|
15
|
-
// Export setup function for consumers to configure compiler path or version
|
|
16
|
-
// ============================================================================
|
|
17
|
-
|
|
18
|
-
export { setupWorkflowCompiler } from "./workflow-compiler-config.js";
|
|
19
|
-
|
|
20
|
-
// ============================================================================
|
|
21
|
-
// Tool-specific cleanup detail. Surfaced via `ProjectCleanupInfo.toolDetails`;
|
|
22
|
-
// only consumers that want WorkflowCompiler specifics import these types.
|
|
23
|
-
// ============================================================================
|
|
24
|
-
|
|
25
|
-
export type {
|
|
26
|
-
CleanedWorkflowDetail,
|
|
27
|
-
WorkflowCleanupDetails,
|
|
28
|
-
} from "./workflow-cleanup-details.js";
|
package/src/output-entry.ts
DELETED
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Message type from workflow compiler output
|
|
3
|
-
*/
|
|
4
|
-
export enum OutputMessageType {
|
|
5
|
-
Log = "Log",
|
|
6
|
-
Progress = "Progress",
|
|
7
|
-
Result = "Result",
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Base output message from workflow compiler
|
|
12
|
-
*/
|
|
13
|
-
export interface IOutputMessage {
|
|
14
|
-
type: OutputMessageType;
|
|
15
|
-
toolId?: string;
|
|
16
|
-
inputId?: string;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Log message from workflow compiler output. Analyzer findings are reported only here.
|
|
21
|
-
*/
|
|
22
|
-
export interface IOutputLog extends IOutputMessage {
|
|
23
|
-
type: OutputMessageType.Log;
|
|
24
|
-
message: string;
|
|
25
|
-
logLevel: "Trace" | "Debug" | "Information" | "Warning" | "Error" | "None";
|
|
26
|
-
source?: string;
|
|
27
|
-
code?: string;
|
|
28
|
-
filePath?: string;
|
|
29
|
-
id?: string;
|
|
30
|
-
/** Serialized `AnalyzerMessage`. */
|
|
31
|
-
data?: string;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Progress update from workflow compiler output
|
|
36
|
-
*/
|
|
37
|
-
export interface IOutputProgress extends IOutputMessage {
|
|
38
|
-
type: OutputMessageType.Progress;
|
|
39
|
-
percentage?: number;
|
|
40
|
-
message?: string;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Result from workflow compiler execution
|
|
45
|
-
*/
|
|
46
|
-
export interface IOutputResult extends IOutputMessage {
|
|
47
|
-
type: OutputMessageType.Result;
|
|
48
|
-
errorCode: string;
|
|
49
|
-
message?: string;
|
|
50
|
-
outputPackages: string[];
|
|
51
|
-
elapsed?: number;
|
|
52
|
-
[key: string]: unknown;
|
|
53
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_WORKFLOW_COMPILER_VERSION = "26.0.198-alpha.24031";
|
|
2
|
-
|
|
3
|
-
/** The dotnet host used when no consumer pins one: whatever `dotnet` PATH resolves to. */
|
|
4
|
-
export const DEFAULT_DOTNET_PATH = "dotnet";
|
|
5
|
-
|
|
6
|
-
export const workflowCompilerConfig = {
|
|
7
|
-
workflowCompilerPath: undefined as string | undefined,
|
|
8
|
-
workflowCompilerVersion: DEFAULT_WORKFLOW_COMPILER_VERSION as string,
|
|
9
|
-
// The dotnet host used to launch `UiPath.WorkflowCompiler.dll`. Defaults to `dotnet` on PATH.
|
|
10
|
-
// Consumers that ship a bundled runtime (e.g. rpa-tool resolving Robot/Studio's .NET) point this
|
|
11
|
-
// at the bundled muxer so the compiler runs under that runtime instead of a machine-wide install.
|
|
12
|
-
dotnetPath: DEFAULT_DOTNET_PATH as string,
|
|
13
|
-
// Extra environment variables for the compiler process (e.g. DOTNET_ROOT / DOTNET_MULTILEVEL_LOOKUP).
|
|
14
|
-
// Merged over the inherited process env. Undefined means inherit the parent env unchanged.
|
|
15
|
-
dotnetEnv: undefined as Record<string, string> | undefined,
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Configure the workflow compiler tool.
|
|
20
|
-
*
|
|
21
|
-
* @param options.compilerPath - Explicit path to UiPath.WorkflowCompiler.dll (skips all resolution logic).
|
|
22
|
-
* @param options.version - NuGet package version to download. Defaults to {@link DEFAULT_WORKFLOW_COMPILER_VERSION}.
|
|
23
|
-
* @param options.dotnetPath - dotnet host to launch the compiler with. Defaults to `dotnet` on PATH.
|
|
24
|
-
* @param options.dotnetEnv - Extra env vars for the compiler process (merged over the inherited env).
|
|
25
|
-
*
|
|
26
|
-
* @example
|
|
27
|
-
* ```ts
|
|
28
|
-
* import { setupWorkflowCompiler } from "@uipath/packager-tool-workflowcompiler";
|
|
29
|
-
*
|
|
30
|
-
* setupWorkflowCompiler({ compilerPath: "/path/to/UiPath.WorkflowCompiler.dll" });
|
|
31
|
-
* setupWorkflowCompiler({ version: "26.0.198-alpha.24031" });
|
|
32
|
-
* setupWorkflowCompiler({
|
|
33
|
-
* compilerPath: "/path/to/UiPath.WorkflowCompiler.dll",
|
|
34
|
-
* dotnetPath: "/path/to/bundled/dotnet",
|
|
35
|
-
* dotnetEnv: { DOTNET_ROOT: "/path/to/bundled", DOTNET_MULTILEVEL_LOOKUP: "0" },
|
|
36
|
-
* });
|
|
37
|
-
* ```
|
|
38
|
-
*/
|
|
39
|
-
export function setupWorkflowCompiler(options: {
|
|
40
|
-
compilerPath?: string;
|
|
41
|
-
version?: string;
|
|
42
|
-
dotnetPath?: string;
|
|
43
|
-
dotnetEnv?: Record<string, string>;
|
|
44
|
-
}): void {
|
|
45
|
-
if (options.compilerPath !== undefined) {
|
|
46
|
-
workflowCompilerConfig.workflowCompilerPath = options.compilerPath;
|
|
47
|
-
}
|
|
48
|
-
if (options.version !== undefined) {
|
|
49
|
-
workflowCompilerConfig.workflowCompilerVersion = options.version;
|
|
50
|
-
}
|
|
51
|
-
if (options.dotnetPath !== undefined) {
|
|
52
|
-
workflowCompilerConfig.dotnetPath = options.dotnetPath;
|
|
53
|
-
}
|
|
54
|
-
if (options.dotnetEnv !== undefined) {
|
|
55
|
-
workflowCompilerConfig.dotnetEnv = options.dotnetEnv;
|
|
56
|
-
}
|
|
57
|
-
}
|