@uipath/packager-tool-workflowcompiler-browser 0.0.29 → 1.196.0

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.
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "toolWorkflowCompilerBrowser": {
3
3
  "info": {
4
- "startingRemotePackAgent": "Starting remote pack agent for {count} project(s): {paths}",
5
4
  "connectingToHub": "Connecting to SignalR hub: {url}",
6
5
  "remoteAgentStartedExecution": "Remote agent started execution",
7
6
  "downloadingArchive": "Downloading pack result archive from bucket {bucketId}",
@@ -9,14 +8,14 @@
9
8
  "distributingPackages": "Distributing packages for {count} project(s)",
10
9
  "cleaningUpTempDir": "Cleaning up temporary directory {path}",
11
10
  "deletingBucket": "Deleting temporary storage bucket {bucketId}",
12
- "copyingFiles": "Copying {count} file(s) for project {designId} to {path}"
11
+ "copyingFiles": "Copying {count} file(s) for project {designId} to {path}",
12
+ "offloadingInputArguments": "输入参数过大({length} 个字符),无法内联发送;将作为文件附件上传"
13
13
  },
14
14
  "errors": {
15
15
  "missingConnectionInfo": "Missing connection info (cloudUrl, accessToken, or folderId)",
16
16
  "signalRConnectionFailed": "Failed to connect to SignalR hub",
17
17
  "hubConnectionFailed": "Failed to connect to SignalR hub at {url}: {message}",
18
18
  "packSucceededNoBucket": "Pack succeeded but no BucketId was returned",
19
- "packAgentFailed": "Pack agent failed with status {status} (code {errorCode})",
20
19
  "noResultForProject": "No result for project",
21
20
  "beginSessionFailed": "BeginSession failed ({status}): {errorText}",
22
21
  "hubConnectionClosed": "Hub connection closed unexpectedly",
@@ -28,7 +27,10 @@
28
27
  "noMatchingProject": "No matching project found for path: {projectPath}",
29
28
  "noOutputForProject": "No output found for project {designId}",
30
29
  "distributePackagesFailed": "Failed to distribute packages for {designId}: {message}",
31
- "sessionTimeout": "Session timed out waiting for projects: received {received} of {expected} expected projects"
30
+ "sessionTimeout": "Session timed out waiting for projects: received {received} of {expected} expected projects",
31
+ "createAttachmentFailed": "无法创建输入参数附件 ({status}):{errorText}",
32
+ "attachmentResponseMalformed": "附件创建响应未包含 id 和 blob URI",
33
+ "uploadInputArgumentsFailed": "无法上传输入参数文件 ({status}):{statusText}"
32
34
  }
33
35
  }
34
36
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "toolWorkflowCompilerBrowser": {
3
3
  "info": {
4
- "startingRemotePackAgent": "Starting remote pack agent for {count} project(s): {paths}",
5
4
  "connectingToHub": "Connecting to SignalR hub: {url}",
6
5
  "remoteAgentStartedExecution": "Remote agent started execution",
7
6
  "downloadingArchive": "Downloading pack result archive from bucket {bucketId}",
@@ -9,14 +8,14 @@
9
8
  "distributingPackages": "Distributing packages for {count} project(s)",
10
9
  "cleaningUpTempDir": "Cleaning up temporary directory {path}",
11
10
  "deletingBucket": "Deleting temporary storage bucket {bucketId}",
12
- "copyingFiles": "Copying {count} file(s) for project {designId} to {path}"
11
+ "copyingFiles": "Copying {count} file(s) for project {designId} to {path}",
12
+ "offloadingInputArguments": "輸入引數過大({length} 個字元),無法內嵌傳送;將以檔案附件形式上傳"
13
13
  },
14
14
  "errors": {
15
15
  "missingConnectionInfo": "Missing connection info (cloudUrl, accessToken, or folderId)",
16
16
  "signalRConnectionFailed": "Failed to connect to SignalR hub",
17
17
  "hubConnectionFailed": "Failed to connect to SignalR hub at {url}: {message}",
18
18
  "packSucceededNoBucket": "Pack succeeded but no BucketId was returned",
19
- "packAgentFailed": "Pack agent failed with status {status} (code {errorCode})",
20
19
  "noResultForProject": "No result for project",
21
20
  "beginSessionFailed": "BeginSession failed ({status}): {errorText}",
22
21
  "hubConnectionClosed": "Hub connection closed unexpectedly",
@@ -28,7 +27,10 @@
28
27
  "noMatchingProject": "No matching project found for path: {projectPath}",
29
28
  "noOutputForProject": "No output found for project {designId}",
30
29
  "distributePackagesFailed": "Failed to distribute packages for {designId}: {message}",
31
- "sessionTimeout": "Session timed out waiting for projects: received {received} of {expected} expected projects"
30
+ "sessionTimeout": "Session timed out waiting for projects: received {received} of {expected} expected projects",
31
+ "createAttachmentFailed": "無法建立輸入引數附件 ({status}):{errorText}",
32
+ "attachmentResponseMalformed": "附件建立回應未包含 id 和 blob URI",
33
+ "uploadInputArgumentsFailed": "無法上傳輸入引數檔案 ({status}):{statusText}"
32
34
  }
33
35
  }
34
36
  }
@@ -1,7 +1,6 @@
1
1
  {
2
2
  "toolWorkflowCompilerBrowser": {
3
3
  "info": {
4
- "startingRemotePackAgent": "Starting remote pack agent for {count} project(s): {paths}",
5
4
  "connectingToHub": "Connecting to SignalR hub: {url}",
6
5
  "remoteAgentStartedExecution": "Remote agent started execution",
7
6
  "downloadingArchive": "Downloading pack result archive from bucket {bucketId}",
@@ -9,14 +8,14 @@
9
8
  "distributingPackages": "Distributing packages for {count} project(s)",
10
9
  "cleaningUpTempDir": "Cleaning up temporary directory {path}",
11
10
  "deletingBucket": "Deleting temporary storage bucket {bucketId}",
12
- "copyingFiles": "Copying {count} file(s) for project {designId} to {path}"
11
+ "copyingFiles": "Copying {count} file(s) for project {designId} to {path}",
12
+ "offloadingInputArguments": "Izimpikiswano zokufaka zinkulu kakhulu ({length} izinhlamvu) ukuze zithunyelwe ngaphakathi; zizolayishwa njengesinamathiselo sefayela"
13
13
  },
14
14
  "errors": {
15
15
  "missingConnectionInfo": "Missing connection info (cloudUrl, accessToken, or folderId)",
16
16
  "signalRConnectionFailed": "Failed to connect to SignalR hub",
17
17
  "hubConnectionFailed": "Failed to connect to SignalR hub at {url}: {message}",
18
18
  "packSucceededNoBucket": "Pack succeeded but no BucketId was returned",
19
- "packAgentFailed": "Pack agent failed with status {status} (code {errorCode})",
20
19
  "noResultForProject": "No result for project",
21
20
  "beginSessionFailed": "BeginSession failed ({status}): {errorText}",
22
21
  "hubConnectionClosed": "Hub connection closed unexpectedly",
@@ -28,7 +27,10 @@
28
27
  "noMatchingProject": "No matching project found for path: {projectPath}",
29
28
  "noOutputForProject": "No output found for project {designId}",
30
29
  "distributePackagesFailed": "Failed to distribute packages for {designId}: {message}",
31
- "sessionTimeout": "Session timed out waiting for projects: received {received} of {expected} expected projects"
30
+ "sessionTimeout": "Session timed out waiting for projects: received {received} of {expected} expected projects",
31
+ "createAttachmentFailed": "Yehlulekile ukudala isinamathiselo sezimpikiswano zokufaka ({status}): {errorText}",
32
+ "attachmentResponseMalformed": "Impendulo yokudala isinamathiselo ayifakanga i-id ne-blob URI",
33
+ "uploadInputArgumentsFailed": "Yehlulekile ukulayisha ifayela lezimpikiswano zokufaka ({status}): {statusText}"
32
34
  }
33
35
  }
34
36
  }
@@ -3,6 +3,7 @@ import {
3
3
  type IFileSystem,
4
4
  type IProjectPackOptions,
5
5
  type IToolLogger,
6
+ type IZipService,
6
7
  type ProjectOperationContext,
7
8
  ToolErrorCodes,
8
9
  ToolResult,
@@ -22,14 +23,11 @@ interface ProjectResultEntry {
22
23
  }
23
24
 
24
25
  export class PackResultProcessor {
25
- private readonly zipService: ZipService;
26
-
27
26
  constructor(
28
27
  private readonly fileSystem: IFileSystem,
29
28
  private readonly logger?: IToolLogger,
30
- ) {
31
- this.zipService = new ZipService(fileSystem);
32
- }
29
+ private readonly zipService: IZipService = new ZipService(fileSystem),
30
+ ) {}
33
31
 
34
32
  async processAsync(
35
33
  bucketId: number,
@@ -219,7 +217,7 @@ export class PackResultProcessor {
219
217
  results: Map<string, ToolResult>,
220
218
  ): Promise<void> {
221
219
  for (const [projectPath, entry] of projects) {
222
- const project = context.solution.Projects.find(
220
+ const project = context.projects.find(
223
221
  (p) => p.ProjectPath === projectPath,
224
222
  );
225
223
 
@@ -6,7 +6,6 @@ import {
6
6
  } from "@microsoft/signalr";
7
7
  import {
8
8
  type IToolLogger,
9
- LogLevel,
10
9
  LogMessage,
11
10
  translate,
12
11
  } from "@uipath/solutionpackager-tool-core";
@@ -37,33 +36,6 @@ interface PackJobResult {
37
36
  BucketId?: number;
38
37
  }
39
38
 
40
- interface PackAgentLogMessage {
41
- Message: string;
42
- LogLevel: string;
43
- Source?: string;
44
- SourceTarget?: string;
45
- Progress?: number;
46
- Code?: string;
47
- FilePath?: string;
48
- Line?: string;
49
- Id?: string;
50
- }
51
-
52
- function toLogLevel(level: string): LogLevel {
53
- switch (level) {
54
- case "Debug":
55
- return LogLevel.Debug;
56
- case "Information":
57
- return LogLevel.Info;
58
- case "Warning":
59
- return LogLevel.Warn;
60
- case "Error":
61
- return LogLevel.Error;
62
- default:
63
- return LogLevel.Info;
64
- }
65
- }
66
-
67
39
  enum PackagerCommandType {
68
40
  PeerDisconnected = "PeerDisconnected",
69
41
  SetLogMessage = "SetLogMessage",
@@ -209,20 +181,23 @@ export class PackagerHubConnection {
209
181
  private onLogMessage(jsonCommand: string): void {
210
182
  if (!this.logger) return;
211
183
 
212
- const command: ExecutorCommand<PackAgentLogMessage> =
213
- JSON.parse(jsonCommand);
184
+ const command: ExecutorCommand<LogMessage> = JSON.parse(jsonCommand);
214
185
  const agentLog = command.Argument1;
215
186
 
216
- const logLevel = toLogLevel(agentLog.LogLevel);
217
- const logMessage = new LogMessage(agentLog.Message, logLevel, {
218
- source: agentLog.Source,
219
- sourceTarget: agentLog.SourceTarget,
220
- progress: agentLog.Progress,
221
- code: agentLog.Code,
222
- filePath: agentLog.FilePath,
223
- line: agentLog.Line,
224
- id: agentLog.Id,
225
- });
187
+ const logMessage = new LogMessage(
188
+ agentLog.message,
189
+ agentLog.logLevel,
190
+ {
191
+ source: agentLog.source,
192
+ sourceTarget: agentLog.sourceTarget,
193
+ progress: agentLog.progress,
194
+ code: agentLog.code,
195
+ filePath: agentLog.filePath,
196
+ line: agentLog.line,
197
+ id: agentLog.id,
198
+ },
199
+ agentLog.timestamp,
200
+ );
226
201
  this.logger.logMessage(logMessage);
227
202
  }
228
203