@uipath/packager-tool-workflowcompiler 0.0.14

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.
@@ -0,0 +1,40 @@
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
+ },
16
+ "pathResolver": {
17
+ "info": {
18
+ "usingCached": "[PathResolver] Using cached compiler path: {path}",
19
+ "usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
20
+ "resolving": "[PathResolver] Resolving workflow compiler path...",
21
+ "checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
22
+ "foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
23
+ "checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
24
+ "foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
25
+ "notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
26
+ "restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
27
+ "runningDotnetRestore": "[PathResolver] Running dotnet restore...",
28
+ "restoreCompleted": "[PathResolver] dotnet restore completed",
29
+ "installCompleted": "[PathResolver] Compiler restored successfully",
30
+ "cleaningUp": "[PathResolver] Cleaning up temp directory",
31
+ "resolved": "[PathResolver] Compiler resolved at: {path}"
32
+ },
33
+ "errors": {
34
+ "unsupportedPlatform": "Unsupported platform: {platform}",
35
+ "compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
36
+ "dotnetRestoreFailed": "dotnet restore failed: {details}"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
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
+ },
16
+ "pathResolver": {
17
+ "info": {
18
+ "usingCached": "[PathResolver] Using cached compiler path: {path}",
19
+ "usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
20
+ "resolving": "[PathResolver] Resolving workflow compiler path...",
21
+ "checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
22
+ "foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
23
+ "checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
24
+ "foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
25
+ "notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
26
+ "restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
27
+ "runningDotnetRestore": "[PathResolver] Running dotnet restore...",
28
+ "restoreCompleted": "[PathResolver] dotnet restore completed",
29
+ "installCompleted": "[PathResolver] Compiler restored successfully",
30
+ "cleaningUp": "[PathResolver] Cleaning up temp directory",
31
+ "resolved": "[PathResolver] Compiler resolved at: {path}"
32
+ },
33
+ "errors": {
34
+ "unsupportedPlatform": "Unsupported platform: {platform}",
35
+ "compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
36
+ "dotnetRestoreFailed": "dotnet restore failed: {details}"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
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
+ },
16
+ "pathResolver": {
17
+ "info": {
18
+ "usingCached": "[PathResolver] Using cached compiler path: {path}",
19
+ "usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
20
+ "resolving": "[PathResolver] Resolving workflow compiler path...",
21
+ "checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
22
+ "foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
23
+ "checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
24
+ "foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
25
+ "notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
26
+ "restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
27
+ "runningDotnetRestore": "[PathResolver] Running dotnet restore...",
28
+ "restoreCompleted": "[PathResolver] dotnet restore completed",
29
+ "installCompleted": "[PathResolver] Compiler restored successfully",
30
+ "cleaningUp": "[PathResolver] Cleaning up temp directory",
31
+ "resolved": "[PathResolver] Compiler resolved at: {path}"
32
+ },
33
+ "errors": {
34
+ "unsupportedPlatform": "Unsupported platform: {platform}",
35
+ "compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
36
+ "dotnetRestoreFailed": "dotnet restore failed: {details}"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
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
+ },
16
+ "pathResolver": {
17
+ "info": {
18
+ "usingCached": "[PathResolver] Using cached compiler path: {path}",
19
+ "usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
20
+ "resolving": "[PathResolver] Resolving workflow compiler path...",
21
+ "checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
22
+ "foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
23
+ "checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
24
+ "foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
25
+ "notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
26
+ "restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
27
+ "runningDotnetRestore": "[PathResolver] Running dotnet restore...",
28
+ "restoreCompleted": "[PathResolver] dotnet restore completed",
29
+ "installCompleted": "[PathResolver] Compiler restored successfully",
30
+ "cleaningUp": "[PathResolver] Cleaning up temp directory",
31
+ "resolved": "[PathResolver] Compiler resolved at: {path}"
32
+ },
33
+ "errors": {
34
+ "unsupportedPlatform": "Unsupported platform: {platform}",
35
+ "compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
36
+ "dotnetRestoreFailed": "dotnet restore failed: {details}"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
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
+ },
16
+ "pathResolver": {
17
+ "info": {
18
+ "usingCached": "[PathResolver] Using cached compiler path: {path}",
19
+ "usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
20
+ "resolving": "[PathResolver] Resolving workflow compiler path...",
21
+ "checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
22
+ "foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
23
+ "checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
24
+ "foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
25
+ "notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
26
+ "restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
27
+ "runningDotnetRestore": "[PathResolver] Running dotnet restore...",
28
+ "restoreCompleted": "[PathResolver] dotnet restore completed",
29
+ "installCompleted": "[PathResolver] Compiler restored successfully",
30
+ "cleaningUp": "[PathResolver] Cleaning up temp directory",
31
+ "resolved": "[PathResolver] Compiler resolved at: {path}"
32
+ },
33
+ "errors": {
34
+ "unsupportedPlatform": "Unsupported platform: {platform}",
35
+ "compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
36
+ "dotnetRestoreFailed": "dotnet restore failed: {details}"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
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
+ },
16
+ "pathResolver": {
17
+ "info": {
18
+ "usingCached": "[PathResolver] Using cached compiler path: {path}",
19
+ "usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
20
+ "resolving": "[PathResolver] Resolving workflow compiler path...",
21
+ "checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
22
+ "foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
23
+ "checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
24
+ "foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
25
+ "notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
26
+ "restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
27
+ "runningDotnetRestore": "[PathResolver] Running dotnet restore...",
28
+ "restoreCompleted": "[PathResolver] dotnet restore completed",
29
+ "installCompleted": "[PathResolver] Compiler restored successfully",
30
+ "cleaningUp": "[PathResolver] Cleaning up temp directory",
31
+ "resolved": "[PathResolver] Compiler resolved at: {path}"
32
+ },
33
+ "errors": {
34
+ "unsupportedPlatform": "Unsupported platform: {platform}",
35
+ "compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
36
+ "dotnetRestoreFailed": "dotnet restore failed: {details}"
37
+ }
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,40 @@
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
+ },
16
+ "pathResolver": {
17
+ "info": {
18
+ "usingCached": "[PathResolver] Using cached compiler path: {path}",
19
+ "usingExplicitPath": "[PathResolver] Using explicit compiler path: {path}",
20
+ "resolving": "[PathResolver] Resolving workflow compiler path...",
21
+ "checkingEnvVar": "[PathResolver] Checking environment variable location: {path}",
22
+ "foundViaEnv": "[PathResolver] Found compiler via UIPATH_WORKFLOWCOMPILER_LOCATION",
23
+ "checkingNuGetCache": "[PathResolver] Checking NuGet cache: {path}",
24
+ "foundInNuGetCache": "[PathResolver] Found compiler in NuGet cache",
25
+ "notFoundStartingInstall": "[PathResolver] Compiler not found, starting dotnet restore...",
26
+ "restoringPackage": "[PathResolver] Restoring NuGet package \"{packageName}\" v{version} for platform \"{platform}\" via dotnet restore...",
27
+ "runningDotnetRestore": "[PathResolver] Running dotnet restore...",
28
+ "restoreCompleted": "[PathResolver] dotnet restore completed",
29
+ "installCompleted": "[PathResolver] Compiler restored successfully",
30
+ "cleaningUp": "[PathResolver] Cleaning up temp directory",
31
+ "resolved": "[PathResolver] Compiler resolved at: {path}"
32
+ },
33
+ "errors": {
34
+ "unsupportedPlatform": "Unsupported platform: {platform}",
35
+ "compilerNotFoundAfterRestore": "Compiler not found in NuGet cache after dotnet restore.",
36
+ "dotnetRestoreFailed": "dotnet restore failed: {details}"
37
+ }
38
+ }
39
+ }
40
+ }
package/src/index.ts ADDED
@@ -0,0 +1,22 @@
1
+ // ============================================================================
2
+ // Initialize i18n (registers tool-workflowcompiler translations)
3
+ // ============================================================================
4
+
5
+ import "./i18n/index.js";
6
+
7
+ // ============================================================================
8
+ // Self-register Workflow Compiler tool factory with the singleton repository
9
+ // ============================================================================
10
+
11
+ import { toolsFactoryRepository } from "@uipath/solutionpackager-tool-core";
12
+ import { WorkflowCompilerToolFactory } from "./workflow-compiler-tool-factory.js";
13
+
14
+ toolsFactoryRepository.registerProjectToolFactory(
15
+ new WorkflowCompilerToolFactory(),
16
+ );
17
+
18
+ // ============================================================================
19
+ // Export setup function for consumers to configure compiler path or version
20
+ // ============================================================================
21
+
22
+ export { setupWorkflowCompiler } from "./workflow-compiler-config.js";
@@ -0,0 +1,46 @@
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
21
+ */
22
+ export interface IOutputLog extends IOutputMessage {
23
+ type: OutputMessageType.Log;
24
+ message: string;
25
+ logLevel: "Information" | "Warning" | "Error";
26
+ }
27
+
28
+ /**
29
+ * Progress update from workflow compiler output
30
+ */
31
+ export interface IOutputProgress extends IOutputMessage {
32
+ type: OutputMessageType.Progress;
33
+ percentage?: number;
34
+ message?: string;
35
+ }
36
+
37
+ /**
38
+ * Result from workflow compiler execution
39
+ */
40
+ export interface IOutputResult extends IOutputMessage {
41
+ type: OutputMessageType.Result;
42
+ errorCode: string;
43
+ message?: string;
44
+ outputPackages: string[];
45
+ elapsed?: number;
46
+ }
@@ -0,0 +1,32 @@
1
+ export const DEFAULT_WORKFLOW_COMPILER_VERSION = "26.0.0-alpha.22366";
2
+
3
+ export const workflowCompilerConfig = {
4
+ workflowCompilerPath: undefined as string | undefined,
5
+ workflowCompilerVersion: DEFAULT_WORKFLOW_COMPILER_VERSION as string,
6
+ };
7
+
8
+ /**
9
+ * Configure the workflow compiler tool.
10
+ *
11
+ * @param options.compilerPath - Explicit path to the compiler executable (skips all resolution logic).
12
+ * @param options.version - NuGet package version to download. Defaults to {@link DEFAULT_WORKFLOW_COMPILER_VERSION}.
13
+ *
14
+ * @example
15
+ * ```ts
16
+ * import { setupWorkflowCompiler } from "@uipath/packager-tool-workflowcompiler";
17
+ *
18
+ * setupWorkflowCompiler({ compilerPath: "/path/to/UiPath.WorkflowCompiler.exe" });
19
+ * setupWorkflowCompiler({ version: "26.0.0-alpha.22366" });
20
+ * ```
21
+ */
22
+ export function setupWorkflowCompiler(options: {
23
+ compilerPath?: string;
24
+ version?: string;
25
+ }): void {
26
+ if (options.compilerPath !== undefined) {
27
+ workflowCompilerConfig.workflowCompilerPath = options.compilerPath;
28
+ }
29
+ if (options.version !== undefined) {
30
+ workflowCompilerConfig.workflowCompilerVersion = options.version;
31
+ }
32
+ }