@uipath/packager-tool-workflowcompiler-browser 1.204.0-preview.255 → 1.205.0-preview.256

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 CHANGED
@@ -1,1247 +1,16 @@
1
- // src/i18n/index.ts
2
- import { I18nManager } from "@uipath/solutionpackager-tool-core";
3
- // src/i18n/locales/de.json
4
- var de_default = {
5
- toolWorkflowCompilerBrowser: {
6
- info: {
7
- connectingToHub: "Connecting to SignalR hub: {url}",
8
- remoteAgentStartedExecution: "Remote agent started execution",
9
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
10
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
11
- distributingPackages: "Distributing packages for {count} project(s)",
12
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
13
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
14
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
15
- offloadingInputArguments: "Eingabeargumente sind zu groß ({length} Zeichen), um sie inline zu senden; sie werden als Dateianhang hochgeladen"
16
- },
17
- errors: {
18
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
19
- signalRConnectionFailed: "Failed to connect to SignalR hub",
20
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
21
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
22
- noResultForProject: "No result for project",
23
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
24
- hubConnectionClosed: "Hub connection closed unexpectedly",
25
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
26
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
27
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
28
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
29
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
30
- noMatchingProject: "No matching project found for path: {projectPath}",
31
- noOutputForProject: "No output found for project {designId}",
32
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
33
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
34
- createAttachmentFailed: "Anhang für Eingabeargumente konnte nicht erstellt werden ({status}): {errorText}",
35
- attachmentResponseMalformed: "Die Antwort auf die Anhangerstellung enthielt keine ID und keine Blob-URI",
36
- uploadInputArgumentsFailed: "Datei mit Eingabeargumenten konnte nicht hochgeladen werden ({status}): {statusText}"
37
- }
38
- }
39
- };
40
-
41
- // src/i18n/locales/en.ts
42
- var en = {
43
- toolWorkflowCompilerBrowser: {
44
- info: {
45
- startingRemoteAgent: "Starting remote {operation} agent for {count} project(s): {paths}",
46
- connectingToHub: "Connecting to SignalR hub: {url}",
47
- remoteAgentStartedExecution: "Remote agent started execution",
48
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
49
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
50
- distributingPackages: "Distributing packages for {count} project(s)",
51
- skippingRemoteCompilation: "No connection info available — skipping remote compilation for workflow compiler projects",
52
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
53
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
54
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
55
- offloadingInputArguments: "Input arguments are too large ({length} chars) to send inline; uploading them as a file attachment"
56
- },
57
- errors: {
58
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
59
- signalRConnectionFailed: "Failed to connect to SignalR hub",
60
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
61
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
62
- agentFailed: "{operation} agent failed with status {status} (code {errorCode})",
63
- noResultForProject: "No result for project",
64
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
65
- hubConnectionClosed: "Hub connection closed unexpectedly",
66
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
67
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
68
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
69
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
70
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
71
- noMatchingProject: "No matching project found for path: {projectPath}",
72
- noOutputForProject: "No output found for project {designId}",
73
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
74
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
75
- bundleOperationMismatch: "Cannot mix {sessionOperation} and {entryOperation} in the same context",
76
- createAttachmentFailed: "Failed to create input arguments attachment ({status}): {errorText}",
77
- attachmentResponseMalformed: "Attachment creation response did not include an id and blob URI",
78
- uploadInputArgumentsFailed: "Failed to upload input arguments file ({status}): {statusText}"
79
- }
80
- }
81
- };
82
- // src/i18n/locales/es.json
83
- var es_default = {
84
- toolWorkflowCompilerBrowser: {
85
- info: {
86
- connectingToHub: "Connecting to SignalR hub: {url}",
87
- remoteAgentStartedExecution: "Remote agent started execution",
88
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
89
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
90
- distributingPackages: "Distributing packages for {count} project(s)",
91
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
92
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
93
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
94
- offloadingInputArguments: "Los argumentos de entrada son demasiado grandes ({length} caracteres) para enviarlos en línea; se cargarán como un archivo adjunto"
95
- },
96
- errors: {
97
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
98
- signalRConnectionFailed: "Failed to connect to SignalR hub",
99
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
100
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
101
- noResultForProject: "No result for project",
102
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
103
- hubConnectionClosed: "Hub connection closed unexpectedly",
104
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
105
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
106
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
107
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
108
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
109
- noMatchingProject: "No matching project found for path: {projectPath}",
110
- noOutputForProject: "No output found for project {designId}",
111
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
112
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
113
- createAttachmentFailed: "No se pudo crear el archivo adjunto de argumentos de entrada ({status}): {errorText}",
114
- attachmentResponseMalformed: "La respuesta de creación del archivo adjunto no incluía un id ni un URI de blob",
115
- uploadInputArgumentsFailed: "No se pudo cargar el archivo de argumentos de entrada ({status}): {statusText}"
116
- }
117
- }
118
- };
119
- // src/i18n/locales/es-MX.json
120
- var es_MX_default = {
121
- toolWorkflowCompilerBrowser: {
122
- info: {
123
- connectingToHub: "Connecting to SignalR hub: {url}",
124
- remoteAgentStartedExecution: "Remote agent started execution",
125
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
126
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
127
- distributingPackages: "Distributing packages for {count} project(s)",
128
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
129
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
130
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
131
- offloadingInputArguments: "Los argumentos de entrada son demasiado grandes ({length} caracteres) para enviarlos en línea; se cargarán como un archivo adjunto"
132
- },
133
- errors: {
134
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
135
- signalRConnectionFailed: "Failed to connect to SignalR hub",
136
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
137
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
138
- noResultForProject: "No result for project",
139
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
140
- hubConnectionClosed: "Hub connection closed unexpectedly",
141
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
142
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
143
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
144
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
145
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
146
- noMatchingProject: "No matching project found for path: {projectPath}",
147
- noOutputForProject: "No output found for project {designId}",
148
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
149
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
150
- createAttachmentFailed: "No se pudo crear el archivo adjunto de argumentos de entrada ({status}): {errorText}",
151
- attachmentResponseMalformed: "La respuesta de creación del archivo adjunto no incluía un id ni un URI de blob",
152
- uploadInputArgumentsFailed: "No se pudo cargar el archivo de argumentos de entrada ({status}): {statusText}"
153
- }
154
- }
155
- };
156
- // src/i18n/locales/fr.json
157
- var fr_default = {
158
- toolWorkflowCompilerBrowser: {
159
- info: {
160
- connectingToHub: "Connecting to SignalR hub: {url}",
161
- remoteAgentStartedExecution: "Remote agent started execution",
162
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
163
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
164
- distributingPackages: "Distributing packages for {count} project(s)",
165
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
166
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
167
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
168
- offloadingInputArguments: "Les arguments d'entrée sont trop volumineux ({length} caractères) pour être envoyés en ligne ; ils seront chargés en tant que pièce jointe"
169
- },
170
- errors: {
171
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
172
- signalRConnectionFailed: "Failed to connect to SignalR hub",
173
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
174
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
175
- noResultForProject: "No result for project",
176
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
177
- hubConnectionClosed: "Hub connection closed unexpectedly",
178
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
179
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
180
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
181
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
182
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
183
- noMatchingProject: "No matching project found for path: {projectPath}",
184
- noOutputForProject: "No output found for project {designId}",
185
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
186
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
187
- createAttachmentFailed: "Échec de la création de la pièce jointe des arguments d'entrée ({status}) : {errorText}",
188
- attachmentResponseMalformed: "La réponse de création de la pièce jointe ne contenait pas d'id ni d'URI de blob",
189
- uploadInputArgumentsFailed: "Échec du chargement du fichier des arguments d'entrée ({status}) : {statusText}"
190
- }
191
- }
192
- };
193
- // src/i18n/locales/ja.json
194
- var ja_default = {
195
- toolWorkflowCompilerBrowser: {
196
- info: {
197
- connectingToHub: "Connecting to SignalR hub: {url}",
198
- remoteAgentStartedExecution: "Remote agent started execution",
199
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
200
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
201
- distributingPackages: "Distributing packages for {count} project(s)",
202
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
203
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
204
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
205
- offloadingInputArguments: "入力引数が大きすぎるため ({length} 文字)、インラインで送信できません。ファイル添付としてアップロードします"
206
- },
207
- errors: {
208
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
209
- signalRConnectionFailed: "Failed to connect to SignalR hub",
210
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
211
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
212
- noResultForProject: "No result for project",
213
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
214
- hubConnectionClosed: "Hub connection closed unexpectedly",
215
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
216
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
217
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
218
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
219
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
220
- noMatchingProject: "No matching project found for path: {projectPath}",
221
- noOutputForProject: "No output found for project {designId}",
222
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
223
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
224
- createAttachmentFailed: "入力引数の添付ファイルの作成に失敗しました ({status}):{errorText}",
225
- attachmentResponseMalformed: "添付ファイルの作成応答に id と blob URI が含まれていませんでした",
226
- uploadInputArgumentsFailed: "入力引数ファイルのアップロードに失敗しました ({status}):{statusText}"
227
- }
228
- }
229
- };
230
- // src/i18n/locales/ko.json
231
- var ko_default = {
232
- toolWorkflowCompilerBrowser: {
233
- info: {
234
- connectingToHub: "Connecting to SignalR hub: {url}",
235
- remoteAgentStartedExecution: "Remote agent started execution",
236
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
237
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
238
- distributingPackages: "Distributing packages for {count} project(s)",
239
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
240
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
241
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
242
- offloadingInputArguments: "입력 인수가 너무 커서({length}자) 인라인으로 보낼 수 없습니다. 파일 첨부로 업로드합니다"
243
- },
244
- errors: {
245
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
246
- signalRConnectionFailed: "Failed to connect to SignalR hub",
247
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
248
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
249
- noResultForProject: "No result for project",
250
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
251
- hubConnectionClosed: "Hub connection closed unexpectedly",
252
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
253
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
254
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
255
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
256
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
257
- noMatchingProject: "No matching project found for path: {projectPath}",
258
- noOutputForProject: "No output found for project {designId}",
259
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
260
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
261
- createAttachmentFailed: "입력 인수 첨부 파일을 만들지 못했습니다({status}): {errorText}",
262
- attachmentResponseMalformed: "첨부 파일 생성 응답에 id와 blob URI가 포함되어 있지 않습니다",
263
- uploadInputArgumentsFailed: "입력 인수 파일을 업로드하지 못했습니다({status}): {statusText}"
264
- }
265
- }
266
- };
267
- // src/i18n/locales/pt.json
268
- var pt_default = {
269
- toolWorkflowCompilerBrowser: {
270
- info: {
271
- connectingToHub: "Connecting to SignalR hub: {url}",
272
- remoteAgentStartedExecution: "Remote agent started execution",
273
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
274
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
275
- distributingPackages: "Distributing packages for {count} project(s)",
276
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
277
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
278
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
279
- offloadingInputArguments: "Os argumentos de entrada são demasiado grandes ({length} carateres) para serem enviados inline; serão carregados como um anexo de ficheiro"
280
- },
281
- errors: {
282
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
283
- signalRConnectionFailed: "Failed to connect to SignalR hub",
284
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
285
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
286
- noResultForProject: "No result for project",
287
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
288
- hubConnectionClosed: "Hub connection closed unexpectedly",
289
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
290
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
291
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
292
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
293
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
294
- noMatchingProject: "No matching project found for path: {projectPath}",
295
- noOutputForProject: "No output found for project {designId}",
296
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
297
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
298
- createAttachmentFailed: "Falha ao criar o anexo dos argumentos de entrada ({status}): {errorText}",
299
- attachmentResponseMalformed: "A resposta de criação do anexo não incluía um id nem um URI de blob",
300
- uploadInputArgumentsFailed: "Falha ao carregar o ficheiro de argumentos de entrada ({status}): {statusText}"
301
- }
302
- }
303
- };
304
- // src/i18n/locales/pt-BR.json
305
- var pt_BR_default = {
306
- toolWorkflowCompilerBrowser: {
307
- info: {
308
- connectingToHub: "Connecting to SignalR hub: {url}",
309
- remoteAgentStartedExecution: "Remote agent started execution",
310
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
311
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
312
- distributingPackages: "Distributing packages for {count} project(s)",
313
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
314
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
315
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
316
- offloadingInputArguments: "Os argumentos de entrada são muito grandes ({length} caracteres) para serem enviados inline; eles serão carregados como um anexo de arquivo"
317
- },
318
- errors: {
319
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
320
- signalRConnectionFailed: "Failed to connect to SignalR hub",
321
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
322
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
323
- noResultForProject: "No result for project",
324
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
325
- hubConnectionClosed: "Hub connection closed unexpectedly",
326
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
327
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
328
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
329
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
330
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
331
- noMatchingProject: "No matching project found for path: {projectPath}",
332
- noOutputForProject: "No output found for project {designId}",
333
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
334
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
335
- createAttachmentFailed: "Falha ao criar o anexo dos argumentos de entrada ({status}): {errorText}",
336
- attachmentResponseMalformed: "A resposta de criação do anexo não incluiu um id nem uma URI de blob",
337
- uploadInputArgumentsFailed: "Falha ao fazer upload do arquivo de argumentos de entrada ({status}): {statusText}"
338
- }
339
- }
340
- };
341
- // src/i18n/locales/ro.json
342
- var ro_default = {
343
- toolWorkflowCompilerBrowser: {
344
- info: {
345
- connectingToHub: "Connecting to SignalR hub: {url}",
346
- remoteAgentStartedExecution: "Remote agent started execution",
347
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
348
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
349
- distributingPackages: "Distributing packages for {count} project(s)",
350
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
351
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
352
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
353
- offloadingInputArguments: "Argumentele de intrare sunt prea mari ({length} caractere) pentru a fi trimise inline; vor fi încărcate ca atașament de fișier"
354
- },
355
- errors: {
356
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
357
- signalRConnectionFailed: "Failed to connect to SignalR hub",
358
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
359
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
360
- noResultForProject: "No result for project",
361
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
362
- hubConnectionClosed: "Hub connection closed unexpectedly",
363
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
364
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
365
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
366
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
367
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
368
- noMatchingProject: "No matching project found for path: {projectPath}",
369
- noOutputForProject: "No output found for project {designId}",
370
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
371
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
372
- createAttachmentFailed: "Crearea atașamentului cu argumentele de intrare a eșuat ({status}): {errorText}",
373
- attachmentResponseMalformed: "Răspunsul de creare a atașamentului nu a inclus un id și un URI de blob",
374
- uploadInputArgumentsFailed: "Încărcarea fișierului cu argumentele de intrare a eșuat ({status}): {statusText}"
375
- }
376
- }
377
- };
378
- // src/i18n/locales/ru.json
379
- var ru_default = {
380
- toolWorkflowCompilerBrowser: {
381
- info: {
382
- connectingToHub: "Connecting to SignalR hub: {url}",
383
- remoteAgentStartedExecution: "Remote agent started execution",
384
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
385
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
386
- distributingPackages: "Distributing packages for {count} project(s)",
387
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
388
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
389
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
390
- offloadingInputArguments: "Входные аргументы слишком велики ({length} символов) для встроенной отправки; они будут загружены как вложение файла"
391
- },
392
- errors: {
393
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
394
- signalRConnectionFailed: "Failed to connect to SignalR hub",
395
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
396
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
397
- noResultForProject: "No result for project",
398
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
399
- hubConnectionClosed: "Hub connection closed unexpectedly",
400
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
401
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
402
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
403
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
404
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
405
- noMatchingProject: "No matching project found for path: {projectPath}",
406
- noOutputForProject: "No output found for project {designId}",
407
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
408
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
409
- createAttachmentFailed: "Не удалось создать вложение с входными аргументами ({status}): {errorText}",
410
- attachmentResponseMalformed: "Ответ на создание вложения не содержал id и blob-URI",
411
- uploadInputArgumentsFailed: "Не удалось загрузить файл входных аргументов ({status}): {statusText}"
412
- }
413
- }
414
- };
415
- // src/i18n/locales/tr.json
416
- var tr_default = {
417
- toolWorkflowCompilerBrowser: {
418
- info: {
419
- connectingToHub: "Connecting to SignalR hub: {url}",
420
- remoteAgentStartedExecution: "Remote agent started execution",
421
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
422
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
423
- distributingPackages: "Distributing packages for {count} project(s)",
424
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
425
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
426
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
427
- offloadingInputArguments: "Giriş bağımsız değişkenleri satır içi gönderilemeyecek kadar büyük ({length} karakter); dosya eki olarak yüklenecek"
428
- },
429
- errors: {
430
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
431
- signalRConnectionFailed: "Failed to connect to SignalR hub",
432
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
433
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
434
- noResultForProject: "No result for project",
435
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
436
- hubConnectionClosed: "Hub connection closed unexpectedly",
437
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
438
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
439
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
440
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
441
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
442
- noMatchingProject: "No matching project found for path: {projectPath}",
443
- noOutputForProject: "No output found for project {designId}",
444
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
445
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
446
- createAttachmentFailed: "Giriş bağımsız değişkenleri eki oluşturulamadı ({status}): {errorText}",
447
- attachmentResponseMalformed: "Ek oluşturma yanıtı bir kimlik ve blob URI'si içermiyordu",
448
- uploadInputArgumentsFailed: "Giriş bağımsız değişkenleri dosyası yüklenemedi ({status}): {statusText}"
449
- }
450
- }
451
- };
452
- // src/i18n/locales/zh-CN.json
453
- var zh_CN_default = {
454
- toolWorkflowCompilerBrowser: {
455
- info: {
456
- connectingToHub: "Connecting to SignalR hub: {url}",
457
- remoteAgentStartedExecution: "Remote agent started execution",
458
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
459
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
460
- distributingPackages: "Distributing packages for {count} project(s)",
461
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
462
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
463
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
464
- offloadingInputArguments: "输入参数过大({length} 个字符),无法内联发送;将作为文件附件上传"
465
- },
466
- errors: {
467
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
468
- signalRConnectionFailed: "Failed to connect to SignalR hub",
469
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
470
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
471
- noResultForProject: "No result for project",
472
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
473
- hubConnectionClosed: "Hub connection closed unexpectedly",
474
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
475
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
476
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
477
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
478
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
479
- noMatchingProject: "No matching project found for path: {projectPath}",
480
- noOutputForProject: "No output found for project {designId}",
481
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
482
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
483
- createAttachmentFailed: "无法创建输入参数附件 ({status}):{errorText}",
484
- attachmentResponseMalformed: "附件创建响应未包含 id 和 blob URI",
485
- uploadInputArgumentsFailed: "无法上传输入参数文件 ({status}):{statusText}"
486
- }
487
- }
488
- };
489
- // src/i18n/locales/zh-TW.json
490
- var zh_TW_default = {
491
- toolWorkflowCompilerBrowser: {
492
- info: {
493
- connectingToHub: "Connecting to SignalR hub: {url}",
494
- remoteAgentStartedExecution: "Remote agent started execution",
495
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
496
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
497
- distributingPackages: "Distributing packages for {count} project(s)",
498
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
499
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
500
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
501
- offloadingInputArguments: "輸入引數過大({length} 個字元),無法內嵌傳送;將以檔案附件形式上傳"
502
- },
503
- errors: {
504
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
505
- signalRConnectionFailed: "Failed to connect to SignalR hub",
506
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
507
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
508
- noResultForProject: "No result for project",
509
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
510
- hubConnectionClosed: "Hub connection closed unexpectedly",
511
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
512
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
513
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
514
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
515
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
516
- noMatchingProject: "No matching project found for path: {projectPath}",
517
- noOutputForProject: "No output found for project {designId}",
518
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
519
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
520
- createAttachmentFailed: "無法建立輸入引數附件 ({status}):{errorText}",
521
- attachmentResponseMalformed: "附件建立回應未包含 id 和 blob URI",
522
- uploadInputArgumentsFailed: "無法上傳輸入引數檔案 ({status}):{statusText}"
523
- }
524
- }
525
- };
526
- // src/i18n/locales/zu.json
527
- var zu_default = {
528
- toolWorkflowCompilerBrowser: {
529
- info: {
530
- connectingToHub: "Connecting to SignalR hub: {url}",
531
- remoteAgentStartedExecution: "Remote agent started execution",
532
- downloadingArchive: "Downloading pack result archive from bucket {bucketId}",
533
- extractingArchive: "Extracting archive ({size} bytes) to {path}",
534
- distributingPackages: "Distributing packages for {count} project(s)",
535
- cleaningUpTempDir: "Cleaning up temporary directory {path}",
536
- deletingBucket: "Deleting temporary storage bucket {bucketId}",
537
- copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
538
- offloadingInputArguments: "Izimpikiswano zokufaka zinkulu kakhulu ({length} izinhlamvu) ukuze zithunyelwe ngaphakathi; zizolayishwa njengesinamathiselo sefayela"
539
- },
540
- errors: {
541
- missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
542
- signalRConnectionFailed: "Failed to connect to SignalR hub",
543
- hubConnectionFailed: "Failed to connect to SignalR hub at {url}: {message}",
544
- packSucceededNoBucket: "Pack succeeded but no BucketId was returned",
545
- noResultForProject: "No result for project",
546
- beginSessionFailed: "BeginSession failed ({status}): {errorText}",
547
- hubConnectionClosed: "Hub connection closed unexpectedly",
548
- packAgentDisconnected: "Pack agent disconnected unexpectedly",
549
- deleteBucketFailed: "Unable to delete temporary storage bucket on Orchestrator: {statusText}",
550
- cleanupBucketFailed: "Unable to cleanup remote bucket {bucketId}: {message}",
551
- getBucketUriFailed: "Failed to get bucket read URI ({status}): {errorText}",
552
- downloadArchiveFailed: "Failed to download archive from bucket ({status}): {statusText}",
553
- noMatchingProject: "No matching project found for path: {projectPath}",
554
- noOutputForProject: "No output found for project {designId}",
555
- distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
556
- sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
557
- createAttachmentFailed: "Yehlulekile ukudala isinamathiselo sezimpikiswano zokufaka ({status}): {errorText}",
558
- attachmentResponseMalformed: "Impendulo yokudala isinamathiselo ayifakanga i-id ne-blob URI",
559
- uploadInputArgumentsFailed: "Yehlulekile ukulayisha ifayela lezimpikiswano zokufaka ({status}): {statusText}"
560
- }
561
- }
562
- };
563
-
564
- // src/i18n/index.ts
565
- I18nManager.registerTranslations("en", en);
566
- I18nManager.registerTranslations("de", de_default);
567
- I18nManager.registerTranslations("es", es_default);
568
- I18nManager.registerTranslations("es-MX", es_MX_default);
569
- I18nManager.registerTranslations("fr", fr_default);
570
- I18nManager.registerTranslations("ja", ja_default);
571
- I18nManager.registerTranslations("ko", ko_default);
572
- I18nManager.registerTranslations("pt", pt_default);
573
- I18nManager.registerTranslations("pt-BR", pt_BR_default);
574
- I18nManager.registerTranslations("ro", ro_default);
575
- I18nManager.registerTranslations("ru", ru_default);
576
- I18nManager.registerTranslations("tr", tr_default);
577
- I18nManager.registerTranslations("zh-CN", zh_CN_default);
578
- I18nManager.registerTranslations("zh-TW", zh_TW_default);
579
- I18nManager.registerTranslations("zu", zu_default);
580
-
581
1
  // src/workflow-compiler-tool-factory.ts
582
2
  import {
583
- ProjectTypes
584
- } from "@uipath/solutionpackager-tool-core";
585
-
586
- // src/project-bundle-executor.ts
3
+ getSharedRemoteAgentBundleExecutor
4
+ } from "@uipath/packager-remote-agent-browser";
587
5
  import {
588
- normalizeIgnoredRules,
589
- PackJobTargetKind,
590
- ToolErrorCodes as ToolErrorCodes2,
591
- ToolResult as ToolResult2,
592
- toRelativeUrl as toRelativeUrl2,
593
- translate as translate3
594
- } from "@uipath/solutionpackager-tool-core";
595
-
596
- // src/cleanup-result.ts
597
- import { toProjectCleanupInfoFromRemote } from "@uipath/solutionpackager-tool-core";
598
-
599
- // src/pack-result-processor.ts
600
- import {
601
- ToolErrorCodes,
602
- ToolResult,
603
- toRelativeUrl,
604
- translate,
605
- ZipService
606
- } from "@uipath/solutionpackager-tool-core";
607
-
608
- class PackResultProcessor {
609
- fileSystem;
610
- logger;
611
- zipService;
612
- constructor(fileSystem, logger, zipService = new ZipService(fileSystem)) {
613
- this.fileSystem = fileSystem;
614
- this.logger = logger;
615
- this.zipService = zipService;
616
- }
617
- async processAsync(bucketId, projects, context) {
618
- const connection = context.connection;
619
- const results = new Map;
620
- const tempDir = await this.fileSystem.getTempDir();
621
- const extractPath = `${tempDir}/pack-result-${context.id}`;
622
- try {
623
- this.logger?.info(translate.t("toolWorkflowCompilerBrowser.info.downloadingArchive", { bucketId }));
624
- const zipData = await this.downloadArchiveAsync(bucketId, connection);
625
- this.logger?.info(translate.t("toolWorkflowCompilerBrowser.info.extractingArchive", { size: zipData.length, path: extractPath }));
626
- await this.zipService.extractAsync(zipData, extractPath);
627
- this.logger?.info(translate.t("toolWorkflowCompilerBrowser.info.distributingPackages", { count: projects.size }));
628
- await this.distributePackages(extractPath, projects, context, results);
629
- } catch (error) {
630
- const message = error instanceof Error ? error.message : String(error);
631
- for (const [projectPath] of projects) {
632
- if (!results.has(projectPath)) {
633
- results.set(projectPath, ToolResult.error("PackResultError", message));
634
- }
635
- }
636
- } finally {
637
- this.logger?.info(translate.t("toolWorkflowCompilerBrowser.info.cleaningUpTempDir", { path: extractPath }));
638
- await this.fileSystem.rm(extractPath).catch(() => {});
639
- await this.deleteBucketAsync(bucketId, connection);
640
- }
641
- return results;
642
- }
643
- async downloadArchiveAsync(bucketId, connection) {
644
- const blobAccess = await this.getReadUriAsync(bucketId, connection);
645
- return await this.downloadBlobAsync(blobAccess);
646
- }
647
- async deleteBucketAsync(bucketId, connection) {
648
- try {
649
- if (!bucketId) {
650
- return;
651
- }
652
- const baseUrl = toRelativeUrl(connection.cloudUrl);
653
- const url = `${baseUrl}/orchestrator_/odata/Buckets(${bucketId})`;
654
- this.logger?.info(translate.t("toolWorkflowCompilerBrowser.info.deletingBucket", {
655
- bucketId
656
- }));
657
- const response = await fetch(url, {
658
- method: "DELETE",
659
- headers: {
660
- Authorization: `Bearer ${connection.accessToken}`,
661
- "X-UIPATH-OrganizationUnitId": connection.folderId ?? ""
662
- }
663
- });
664
- if (!response.ok) {
665
- throw new Error(translate.t("toolWorkflowCompilerBrowser.errors.deleteBucketFailed", { statusText: response.statusText }));
666
- }
667
- } catch (error) {
668
- const message = error instanceof Error ? error.message : String(error);
669
- this.logger?.warn(translate.t("toolWorkflowCompilerBrowser.errors.cleanupBucketFailed", { bucketId, message }));
670
- }
671
- }
672
- async getReadUriAsync(bucketId, connection) {
673
- const baseUrl = toRelativeUrl(connection.cloudUrl);
674
- const url = `${baseUrl}/orchestrator_/odata/Buckets(${bucketId})` + `/UiPath.Server.Configuration.OData.GetReadUri` + `?path=rpa-packages.zip&expiryInMinutes=0`;
675
- const response = await fetch(url, {
676
- method: "GET",
677
- headers: {
678
- Authorization: `Bearer ${connection.accessToken}`,
679
- "X-UIPATH-OrganizationUnitId": connection.folderId ?? ""
680
- }
681
- });
682
- if (!response.ok) {
683
- const errorText = await response.text();
684
- throw new Error(translate.t("toolWorkflowCompilerBrowser.errors.getBucketUriFailed", { status: response.status, errorText }));
685
- }
686
- return await response.json();
687
- }
688
- async downloadBlobAsync(blobAccess) {
689
- const headers = {};
690
- if (blobAccess.Headers) {
691
- for (const [key, value] of Object.entries(blobAccess.Headers)) {
692
- headers[key] = value;
693
- }
694
- }
695
- const response = await fetch(blobAccess.Uri, {
696
- method: blobAccess.Verb || "GET",
697
- headers
698
- });
699
- if (!response.ok) {
700
- throw new Error(translate.t("toolWorkflowCompilerBrowser.errors.downloadArchiveFailed", {
701
- status: response.status,
702
- statusText: response.statusText
703
- }));
704
- }
705
- const buffer = await response.arrayBuffer();
706
- return new Uint8Array(buffer);
707
- }
708
- async distributePackages(extractPath, projects, context, results) {
709
- for (const [projectPath, entry] of projects) {
710
- const project = context.projects.find((p) => p.ProjectPath === projectPath);
711
- if (!project) {
712
- results.set(projectPath, ToolResult.error("PackResultError", translate.t("toolWorkflowCompilerBrowser.errors.noMatchingProject", { projectPath })));
713
- continue;
714
- }
715
- const designId = project.Id;
716
- const projectFilesDir = `${extractPath}/${designId}`;
717
- const outputPath = entry.options.outputPath;
718
- try {
719
- const exists = await this.fileSystem.exists(projectFilesDir);
720
- if (!exists) {
721
- results.set(projectPath, ToolResult.error("PackResultError", translate.t("toolWorkflowCompilerBrowser.errors.noOutputForProject", { designId })));
722
- continue;
723
- }
724
- const files = await this.fileSystem.readdir(projectFilesDir);
725
- const outputFiles = [];
726
- await this.fileSystem.mkdir(outputPath);
727
- this.logger?.info(translate.t("toolWorkflowCompilerBrowser.info.copyingFiles", {
728
- count: files.length,
729
- designId,
730
- path: outputPath
731
- }));
732
- for (const fileName of files) {
733
- const srcFile = `${projectFilesDir}/${fileName}`;
734
- const destFile = `${outputPath}/${fileName}`;
735
- const data = await this.fileSystem.readFile(srcFile);
736
- if (data) {
737
- await this.fileSystem.writeFile(destFile, data);
738
- outputFiles.push(destFile);
739
- }
740
- }
741
- results.set(projectPath, new ToolResult(ToolErrorCodes.Success, undefined, outputFiles));
742
- } catch (error) {
743
- const message = error instanceof Error ? error.message : String(error);
744
- results.set(projectPath, ToolResult.error("PackResultError", translate.t("toolWorkflowCompilerBrowser.errors.distributePackagesFailed", { designId, message })));
745
- }
746
- }
747
- }
748
- }
749
-
750
- // src/packager-hub-connection.ts
751
- import {
752
- HttpTransportType,
753
- HubConnectionBuilder,
754
- HubConnectionState
755
- } from "@microsoft/signalr";
756
- import {
757
- LogMessage,
758
- translate as translate2
6
+ ProjectTypes
759
7
  } from "@uipath/solutionpackager-tool-core";
760
- class PackagerHubConnection {
761
- logger;
762
- hubConnection = null;
763
- completionResolve = null;
764
- completionReject = null;
765
- constructor(logger) {
766
- this.logger = logger;
767
- }
768
- async connectAsync(hubUrl, accessToken) {
769
- try {
770
- this.hubConnection = this.buildConnection(hubUrl, accessToken);
771
- this.registerHandlers();
772
- this.registerOnClose();
773
- await this.hubConnection.start();
774
- } catch (error) {
775
- if (error instanceof Error && error.message.toLowerCase().includes("websocket")) {
776
- this.hubConnection = this.buildConnection(hubUrl, accessToken, true);
777
- this.registerHandlers();
778
- this.registerOnClose();
779
- await this.hubConnection.start();
780
- } else {
781
- throw error;
782
- }
783
- }
784
- }
785
- buildConnection(hubUrl, accessToken, disableWs = false) {
786
- return new HubConnectionBuilder().withUrl(hubUrl, {
787
- accessTokenFactory: () => accessToken,
788
- transport: disableWs ? HttpTransportType.ServerSentEvents | HttpTransportType.LongPolling : undefined
789
- }).withAutomaticReconnect().build();
790
- }
791
- registerOnClose() {
792
- this.hubConnection?.onclose((error) => {
793
- this.logger?.info(`[PackagerHub] onclose fired. error=${error?.message ?? "none"}, hasReject=${!!this.completionReject}, hasResolve=${!!this.completionResolve}`);
794
- if (this.completionReject) {
795
- this.completionReject(error ?? new Error(translate2.t("toolWorkflowCompilerBrowser.errors.hubConnectionClosed")));
796
- this.completionResolve = null;
797
- this.completionReject = null;
798
- }
799
- });
800
- }
801
- waitForCompletionAsync() {
802
- return new Promise((resolve, reject) => {
803
- this.completionResolve = resolve;
804
- this.completionReject = reject;
805
- });
806
- }
807
- async disconnectAsync() {
808
- if (this.hubConnection && this.hubConnection.state !== HubConnectionState.Disconnected) {
809
- await this.hubConnection.stop();
810
- }
811
- this.hubConnection = null;
812
- }
813
- registerHandlers() {
814
- if (!this.hubConnection)
815
- return;
816
- this.hubConnection.on("SetExecutionCompleted" /* SetExecutionCompleted */, (jsonCommand) => {
817
- this.onExecutionCompleted(jsonCommand);
818
- });
819
- this.hubConnection.on("SetLogMessage" /* SetLogMessage */, (jsonCommand) => {
820
- this.onLogMessage(jsonCommand);
821
- });
822
- this.hubConnection.on("SetExecutionStarted" /* SetExecutionStarted */, (_jsonCommand) => {
823
- this.logger?.info(translate2.t("toolWorkflowCompilerBrowser.info.remoteAgentStartedExecution"));
824
- });
825
- this.hubConnection.on("PeerDisconnected" /* PeerDisconnected */, () => {
826
- this.logger?.info(`[PackagerHub] PeerDisconnected received. hasReject=${!!this.completionReject}`);
827
- if (this.completionReject) {
828
- this.completionReject(new Error(translate2.t("toolWorkflowCompilerBrowser.errors.packAgentDisconnected")));
829
- this.completionResolve = null;
830
- this.completionReject = null;
831
- }
832
- });
833
- }
834
- onLogMessage(jsonCommand) {
835
- if (!this.logger)
836
- return;
837
- const command = JSON.parse(jsonCommand);
838
- const agentLog = command.Argument1;
839
- const logMessage = new LogMessage(agentLog.message, agentLog.logLevel, {
840
- source: agentLog.source,
841
- sourceTarget: agentLog.sourceTarget,
842
- progress: agentLog.progress,
843
- code: agentLog.code,
844
- filePath: agentLog.filePath,
845
- line: agentLog.line,
846
- id: agentLog.id
847
- }, agentLog.timestamp);
848
- this.logger.logMessage(logMessage);
849
- }
850
- onExecutionCompleted(jsonCommand) {
851
- this.logger?.info(`[PackagerHub] onExecutionCompleted called. hasResolve=${!!this.completionResolve}, raw=${jsonCommand}`);
852
- if (!this.completionResolve) {
853
- this.logger?.warn(`[PackagerHub] onExecutionCompleted: completionResolve is null, ignoring result`);
854
- return;
855
- }
856
- const command = JSON.parse(jsonCommand);
857
- const jobResult = command.Argument1;
858
- this.logger?.info(`[PackagerHub] onExecutionCompleted parsed: errorCode=${jobResult.ErrorCode}, status=${jobResult.Status}, message=${jobResult.Message}, bucketId=${jobResult.BucketId}`);
859
- this.completionResolve({
860
- errorCode: jobResult.ErrorCode,
861
- status: jobResult.Status,
862
- message: jobResult.Message,
863
- bucketId: jobResult.BucketId,
864
- changedFilesByProject: jobResult.ChangedFilesByProject,
865
- unusedDependenciesByProject: jobResult.UnusedDependenciesByProject
866
- });
867
- this.completionResolve = null;
868
- this.completionReject = null;
869
- }
870
- }
871
-
872
- // src/project-bundle-executor.ts
873
- class ProjectBundleExecutor {
874
- toolFactory;
875
- fileSystem;
876
- static SESSION_TIMEOUT_MS = 1800000;
877
- static MAX_INLINE_INPUT_ARGUMENTS_LENGTH = 1e4;
878
- sessions = new Map;
879
- pendingSessionCreations = new Map;
880
- constructor(toolFactory, fileSystem) {
881
- this.toolFactory = toolFactory;
882
- this.fileSystem = fileSystem;
883
- }
884
- async packAsync(options, context) {
885
- return this.enqueueAsync(context, {
886
- operation: "Pack" /* Pack */,
887
- options,
888
- resolve: () => {}
889
- });
890
- }
891
- async validateAsync(options, context) {
892
- return this.enqueueAsync(context, {
893
- operation: "Validate" /* Validate */,
894
- options,
895
- resolve: () => {}
896
- });
897
- }
898
- async cleanupAsync(options, context) {
899
- if (context.downloadUrl && !options.dryRun && !context.solutionId && !context.projectId) {
900
- return ToolResult2.error(ToolErrorCodes2.InternalError, "Cleanup save-back requires a solutionId or projectId for downloaded workspaces.");
901
- }
902
- return this.enqueueAsync(context, {
903
- operation: "Cleanup" /* Cleanup */,
904
- options,
905
- resolve: () => {}
906
- });
907
- }
908
- async enqueueAsync(context, entry) {
909
- const projectPath = entry.options.projectPath;
910
- context.logger?.info(`[BundleExecutor] ${entry.operation}Async called for project: ${projectPath}`);
911
- const session = await this.getSessionAsync(context, entry.operation);
912
- if (session.operation !== entry.operation) {
913
- return ToolResult2.error("BundleOperationMismatch", translate3.t("toolWorkflowCompilerBrowser.errors.bundleOperationMismatch", {
914
- sessionOperation: session.operation,
915
- entryOperation: entry.operation
916
- }));
917
- }
918
- const promise = new Promise((resolve) => {
919
- entry.resolve = resolve;
920
- });
921
- session.projects.set(projectPath, entry);
922
- const allReceived = session.projects.size === session.expectedCount;
923
- context.logger?.info(`[BundleExecutor] session (${session.operation}): ${session.projects.size}/${session.expectedCount} projects received. allReceived=${allReceived}`);
924
- if (allReceived) {
925
- clearTimeout(session.timeout);
926
- await this.runAgentAsync(session, context);
927
- this.sessions.delete(context.id);
928
- }
929
- return promise;
930
- }
931
- getSessionAsync(context, operation) {
932
- const existing = this.sessions.get(context.id);
933
- if (existing) {
934
- return Promise.resolve(existing);
935
- }
936
- let pending = this.pendingSessionCreations.get(context.id);
937
- if (!pending) {
938
- pending = this.createSessionAsync(context, operation);
939
- this.pendingSessionCreations.set(context.id, pending);
940
- }
941
- return pending;
942
- }
943
- async createSessionAsync(context, operation) {
944
- const expectedCount = this.countCompatibleProjects(context);
945
- const session = {
946
- operation,
947
- expectedCount,
948
- projects: new Map
949
- };
950
- session.timeout = setTimeout(() => {
951
- if (session.projects.size < session.expectedCount) {
952
- context.logger?.error(`[BundleExecutor] Session timed out after ${ProjectBundleExecutor.SESSION_TIMEOUT_MS}ms: ` + `received ${session.projects.size}/${session.expectedCount} projects`);
953
- this.resolveAll(session, ToolResult2.error("SessionTimeoutError", translate3.t("toolWorkflowCompilerBrowser.errors.sessionTimeout", {
954
- received: session.projects.size,
955
- expected: session.expectedCount
956
- })));
957
- this.sessions.delete(context.id);
958
- }
959
- }, ProjectBundleExecutor.SESSION_TIMEOUT_MS);
960
- this.sessions.set(context.id, session);
961
- this.pendingSessionCreations.delete(context.id);
962
- return session;
963
- }
964
- async runAgentAsync(session, context) {
965
- const projectPaths = [...session.projects.keys()];
966
- context.logger?.info(translate3.t("toolWorkflowCompilerBrowser.info.startingRemoteAgent", {
967
- operation: session.operation,
968
- count: session.expectedCount,
969
- paths: projectPaths.join(", ")
970
- }));
971
- const connection = context.connection;
972
- context.logger?.info(`[BundleExecutor] connection info: cloudUrl=${connection?.cloudUrl ?? "MISSING"}, hasToken=${!!connection?.accessToken}, folderId=${connection?.folderId ?? "MISSING"}`);
973
- if (!connection?.cloudUrl || !connection.accessToken || !connection.folderId) {
974
- this.resolveAll(session, ToolResult2.error("ConnectionError", translate3.t("toolWorkflowCompilerBrowser.errors.missingConnectionInfo")));
975
- return;
976
- }
977
- const sessionId = crypto.randomUUID();
978
- const hubConnection = await this.connectToHubAsync(connection, sessionId, context.logger);
979
- if (!hubConnection) {
980
- this.resolveAll(session, ToolResult2.error("SignalRConnectionError", translate3.t("toolWorkflowCompilerBrowser.errors.signalRConnectionFailed")));
981
- return;
982
- }
983
- try {
984
- context.logger?.info(`[BundleExecutor] Sending BeginSession...`);
985
- await this.sendBeginSessionAsync(session, context, connection, sessionId);
986
- context.logger?.info(`[BundleExecutor] BeginSession succeeded. Waiting for completion...`);
987
- const result = await hubConnection.waitForCompletionAsync();
988
- context.logger?.info(`[BundleExecutor] Got result: errorCode=${result.errorCode}, status=${result.status}, message=${result.message}, bucketId=${result.bucketId}`);
989
- await this.handleAgentResultAsync(result, session, context);
990
- } catch (error) {
991
- const message = error instanceof Error ? error.message : String(error);
992
- context.logger?.error(`[BundleExecutor] runAgentAsync caught error: ${message}`);
993
- this.resolveAll(session, ToolResult2.error(`${session.operation}AgentError`, message));
994
- } finally {
995
- await hubConnection.disconnectAsync();
996
- }
997
- }
998
- async connectToHubAsync(connection, sessionId, logger) {
999
- const relativeBase = toRelativeUrl2(connection.cloudUrl);
1000
- const hubUrl = `${relativeBase}/orchestrator_/signalr/robotdebug?sessionId=${sessionId}`;
1001
- logger?.info(translate3.t("toolWorkflowCompilerBrowser.info.connectingToHub", {
1002
- url: hubUrl
1003
- }));
1004
- const hubConnection = new PackagerHubConnection(logger);
1005
- try {
1006
- await hubConnection.connectAsync(hubUrl, connection.accessToken);
1007
- return hubConnection;
1008
- } catch (error) {
1009
- const message = error instanceof Error ? error.message : String(error);
1010
- logger?.error(translate3.t("toolWorkflowCompilerBrowser.errors.hubConnectionFailed", { url: hubUrl, message }));
1011
- return null;
1012
- }
1013
- }
1014
- async handleAgentResultAsync(result, session, context) {
1015
- if (result.errorCode !== 0 || result.status !== 0 /* Succeeded */) {
1016
- this.resolveAll(session, ToolResult2.error(`${session.operation}AgentError`, result.message ?? translate3.t("toolWorkflowCompilerBrowser.errors.agentFailed", {
1017
- operation: session.operation,
1018
- status: result.status,
1019
- errorCode: result.errorCode
1020
- })));
1021
- return;
1022
- }
1023
- if (session.operation === "Pack" /* Pack */) {
1024
- await this.handlePackBucketAsync(result, session, context);
1025
- return;
1026
- }
1027
- if (session.operation === "Cleanup" /* Cleanup */) {
1028
- this.resolveCleanup(result, session, context);
1029
- return;
1030
- }
1031
- this.resolveAll(session, ToolResult2.success());
1032
- }
1033
- resolveCleanup(result, session, context) {
1034
- for (const [projectPath, entry] of session.projects) {
1035
- const details = {};
1036
- if (result.changedFilesByProject) {
1037
- details.changedFilesByProject = result.changedFilesByProject;
1038
- }
1039
- const designId = context.projects.find((p) => p.ProjectPath === projectPath)?.Id;
1040
- const raw = designId ? result.unusedDependenciesByProject?.[designId] : undefined;
1041
- if (raw) {
1042
- details.projectCleanup = toProjectCleanupInfoFromRemote(raw);
1043
- }
1044
- const projectResult = ToolResult2.success();
1045
- if (Object.keys(details).length > 0) {
1046
- projectResult.details = details;
1047
- }
1048
- entry.resolve(projectResult);
1049
- }
1050
- }
1051
- async handlePackBucketAsync(result, session, context) {
1052
- if (result.bucketId == null) {
1053
- this.resolveAll(session, ToolResult2.error("PackAgentError", translate3.t("toolWorkflowCompilerBrowser.errors.packSucceededNoBucket")));
1054
- return;
1055
- }
1056
- const packEntries = new Map;
1057
- for (const [projectPath, entry] of session.projects) {
1058
- if (entry.operation === "Pack" /* Pack */) {
1059
- packEntries.set(projectPath, { options: entry.options });
1060
- }
1061
- }
1062
- const resultProcessor = new PackResultProcessor(this.fileSystem, context.logger);
1063
- const perProjectResults = await resultProcessor.processAsync(result.bucketId, packEntries, context);
1064
- for (const [projectPath, entry] of session.projects) {
1065
- const projectResult = perProjectResults.get(projectPath);
1066
- entry.resolve(projectResult ?? ToolResult2.error("PackResultError", translate3.t("toolWorkflowCompilerBrowser.errors.noResultForProject")));
1067
- }
1068
- }
1069
- async sendBeginSessionAsync(session, context, connection, sessionId) {
1070
- const relativeBase = toRelativeUrl2(connection.cloudUrl);
1071
- const onLocalRobot = context.jobTarget?.kind === PackJobTargetKind.LocalRobot;
1072
- const url = onLocalRobot ? `${relativeBase}/orchestrator_/api/RobotDebug/BeginSession` : `${relativeBase}/orchestrator_/api/serverless/jobs`;
1073
- context.logger?.info(`[BundleExecutor] BeginSession URL: ${url} (target=${context.jobTarget?.kind ?? PackJobTargetKind.Serverless})`);
1074
- const firstEntry = session.projects.values().next().value;
1075
- const opts = firstEntry.options;
1076
- const skipAnalyze = "skipAnalyze" in opts ? opts.skipAnalyze : false;
1077
- const skipValidate = "skipValidate" in opts ? opts.skipValidate : false;
1078
- const ignoredRules = normalizeIgnoredRules("ignoredRules" in opts ? opts.ignoredRules : undefined);
1079
- const rpaProjects = [...session.projects.entries()].map(([projectPath, entry]) => {
1080
- const project = context.projects.find((p) => p.ProjectPath === projectPath);
1081
- return {
1082
- RelativePath: project?.ProjectRelativePath ?? "",
1083
- DesignId: project?.Id ?? "",
1084
- ProjectStorageId: entry.operation === "Pack" /* Pack */ ? entry.options.projectStorageId ?? "" : "",
1085
- PackageId: entry.operation === "Pack" /* Pack */ ? entry.options.package.id : ""
1086
- };
1087
- });
1088
- const executorInfo = {
1089
- Command: session.operation,
1090
- SupportedProtocolVersions: ["2.0"],
1091
- DownloadUrl: context.downloadUrl ?? "",
1092
- SolutionId: context.solutionId ?? "",
1093
- ProjectId: context.projectId ?? "",
1094
- SessionId: sessionId,
1095
- ProfileKey: "StudioWeb",
1096
- LicenseType: "Development",
1097
- LogLevel: opts.logLevel ?? "Warning",
1098
- Culture: "en-US",
1099
- DownloadTimeoutInSeconds: 300,
1100
- SkipAnalyze: String(skipAnalyze),
1101
- SkipValidate: String(skipValidate),
1102
- TargetFramework: context.targetFramework,
1103
- RpaProjects: rpaProjects,
1104
- WorkflowCompilerVersion: context.workflowCompilerVersion ?? ""
1105
- };
1106
- if (ignoredRules.length > 0) {
1107
- executorInfo.IgnoredRules = ignoredRules;
1108
- }
1109
- if (firstEntry.operation === "Pack" /* Pack */) {
1110
- executorInfo.Configuration = context.configuration;
1111
- const pkg = firstEntry.options.package;
1112
- executorInfo.Package = {
1113
- Name: pkg.id,
1114
- Version: pkg.version,
1115
- Author: pkg.author ?? "",
1116
- Description: pkg.description ?? "",
1117
- ReleaseNotes: pkg.releaseNotes ?? "",
1118
- Tags: pkg.tags ?? "",
1119
- IconUrl: pkg.iconUrl ?? "",
1120
- ProjectUrl: pkg.projectUrl ?? "",
1121
- RepositoryType: pkg.repositoryType ?? "",
1122
- RepositoryUrl: pkg.repositoryUrl ?? "",
1123
- RepositoryBranch: pkg.repositoryBranch ?? "",
1124
- RepositoryCommit: pkg.repositoryCommit ?? ""
1125
- };
1126
- executorInfo.Name = pkg.id;
1127
- executorInfo.Version = pkg.version;
1128
- executorInfo.Author = pkg.author ?? "";
1129
- executorInfo.Description = pkg.description ?? "";
1130
- executorInfo.ReleaseNotes = pkg.releaseNotes ?? "";
1131
- if (context.localSourcePath) {
1132
- if (onLocalRobot && context.jobTarget?.machineSessionIds?.length) {
1133
- executorInfo.LocalSourcePath = context.localSourcePath;
1134
- } else {
1135
- context.logger?.warn("[BundleExecutor] Dropping localSourcePath: the pack job is not pinned to a local robot machine session.");
1136
- }
1137
- }
1138
- }
1139
- if (firstEntry.operation === "Cleanup" /* Cleanup */) {
1140
- executorInfo.DryRun = firstEntry.options.dryRun;
1141
- executorInfo.SkipImports = firstEntry.options.skipImports;
1142
- if (context.lockKey) {
1143
- executorInfo.LockKey = context.lockKey;
1144
- }
1145
- }
1146
- const inputArguments = JSON.stringify(executorInfo);
1147
- const body = onLocalRobot ? {
1148
- source: "StudioWeb",
1149
- targetFramework: context.targetFramework,
1150
- runtimeType: "Development",
1151
- runAsMe: true,
1152
- jobsCount: 1,
1153
- strategy: "ModernJobsCount",
1154
- requiresUserInteraction: false,
1155
- ...context.jobTarget?.machineSessionIds?.length ? {
1156
- machineSessionIds: context.jobTarget.machineSessionIds
1157
- } : {}
1158
- } : {
1159
- source: "StudioWeb",
1160
- targetFramework: context.targetFramework,
1161
- jobType: "PublishStudioProject"
1162
- };
1163
- if (inputArguments.length > ProjectBundleExecutor.MAX_INLINE_INPUT_ARGUMENTS_LENGTH) {
1164
- context.logger?.info(translate3.t("toolWorkflowCompilerBrowser.info.offloadingInputArguments", { length: inputArguments.length }));
1165
- body.inputFile = await this.uploadInputArgumentsFileAsync(inputArguments, connection, context.logger);
1166
- } else {
1167
- body.inputArguments = inputArguments;
1168
- }
1169
- const headers = {
1170
- "Content-Type": "application/json",
1171
- Authorization: `Bearer ${connection.accessToken}`,
1172
- "X-UIPATH-OrganizationUnitId": connection.folderId ?? ""
1173
- };
1174
- if (connection.tenantId) {
1175
- headers["x-uipath-tenantid"] = connection.tenantId;
1176
- }
1177
- const response = await fetch(url, {
1178
- method: "POST",
1179
- headers,
1180
- body: JSON.stringify(body)
1181
- });
1182
- if (!response.ok) {
1183
- const errorText = await response.text();
1184
- throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.beginSessionFailed", { status: response.status, errorText }));
1185
- }
1186
- }
1187
- async uploadInputArgumentsFileAsync(inputArguments, connection, logger) {
1188
- const baseUrl = toRelativeUrl2(connection.cloudUrl);
1189
- const attachmentsUrl = `${baseUrl}/orchestrator_/odata/Attachments`;
1190
- const headers = {
1191
- "Content-Type": "application/json",
1192
- Authorization: `Bearer ${connection.accessToken}`,
1193
- "X-UIPATH-OrganizationUnitId": connection.folderId ?? ""
1194
- };
1195
- if (connection.tenantId) {
1196
- headers["x-uipath-tenantid"] = connection.tenantId;
1197
- }
1198
- const createResponse = await fetch(attachmentsUrl, {
1199
- method: "POST",
1200
- headers,
1201
- body: JSON.stringify({ name: "input.json" })
1202
- });
1203
- if (!createResponse.ok) {
1204
- const errorText = await createResponse.text();
1205
- throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.createAttachmentFailed", { status: createResponse.status, errorText }));
1206
- }
1207
- const attachment = await createResponse.json();
1208
- const attachmentId = attachment.Id ?? attachment.id ?? "";
1209
- const writeUri = attachment.BlobFileAccess?.Uri ?? attachment.blobFileAccess?.Uri;
1210
- if (!attachmentId || !writeUri) {
1211
- throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.attachmentResponseMalformed"));
1212
- }
1213
- const uploadResponse = await fetch(writeUri, {
1214
- method: "PUT",
1215
- headers: {
1216
- "Content-Type": "application/octet-stream",
1217
- "x-ms-blob-type": "BlockBlob"
1218
- },
1219
- body: inputArguments
1220
- });
1221
- if (!uploadResponse.ok) {
1222
- throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.uploadInputArgumentsFailed", {
1223
- status: uploadResponse.status,
1224
- statusText: uploadResponse.statusText
1225
- }));
1226
- }
1227
- logger?.info(`[BundleExecutor] Uploaded input arguments as attachment ${attachmentId}`);
1228
- return attachmentId;
1229
- }
1230
- resolveAll(session, result) {
1231
- for (const [, entry] of session.projects) {
1232
- entry.resolve(result);
1233
- }
1234
- }
1235
- countCompatibleProjects(context) {
1236
- return context.projects.filter((p) => p.ProjectPath != null && this.toolFactory.supportedTypes.includes(p.Type)).length;
1237
- }
1238
- }
1239
8
 
1240
9
  // src/workflow-compiler-tool.ts
1241
10
  import {
1242
11
  ProjectTool,
1243
- ToolErrorCodes as ToolErrorCodes3,
1244
- ToolResult as ToolResult3
12
+ ToolErrorCodes,
13
+ ToolResult
1245
14
  } from "@uipath/solutionpackager-tool-core";
1246
15
 
1247
16
  class WorkflowCompilerTool extends ProjectTool {
@@ -1254,27 +23,27 @@ class WorkflowCompilerTool extends ProjectTool {
1254
23
  }
1255
24
  async restoreAsync(_options, _cancellationToken) {
1256
25
  this.logger.warn("Restore operation is not supported in browser environment");
1257
- return ToolResult3.success();
26
+ return ToolResult.success();
1258
27
  }
1259
28
  async validateAsync(options, _cancellationToken) {
1260
29
  if (!this.context) {
1261
- return ToolResult3.error(ToolErrorCodes3.InternalError, "Validate operation requires a project operation context");
30
+ return ToolResult.error(ToolErrorCodes.InternalError, "Validate operation requires a project operation context");
1262
31
  }
1263
32
  return this.bundleExecutor.validateAsync(options, this.context);
1264
33
  }
1265
34
  async buildAsync(_options, _cancellationToken) {
1266
35
  this.logger.warn("Build operation is not supported in browser environment");
1267
- return ToolResult3.success();
36
+ return ToolResult.success();
1268
37
  }
1269
38
  async packAsync(options, _cancellationToken) {
1270
39
  if (!this.context) {
1271
- return ToolResult3.error(ToolErrorCodes3.InternalError, "Pack operation requires a project operation context");
40
+ return ToolResult.error(ToolErrorCodes.InternalError, "Pack operation requires a project operation context");
1272
41
  }
1273
42
  return this.bundleExecutor.packAsync(options, this.context);
1274
43
  }
1275
44
  async cleanupAsync(options, _cancellationToken) {
1276
45
  if (!this.context) {
1277
- return ToolResult3.error(ToolErrorCodes3.InternalError, "Cleanup operation requires a project operation context");
46
+ return ToolResult.error(ToolErrorCodes.InternalError, "Cleanup operation requires a project operation context");
1278
47
  }
1279
48
  return this.bundleExecutor.cleanupAsync(options, this.context);
1280
49
  }
@@ -1283,24 +52,22 @@ class WorkflowCompilerTool extends ProjectTool {
1283
52
  // src/workflow-compiler-tool-factory.ts
1284
53
  class WorkflowCompilerToolFactory {
1285
54
  bundleExecutor;
55
+ delegatesToRemoteAgent = true;
1286
56
  supportedTypes = [
1287
57
  ProjectTypes.Process,
1288
58
  ProjectTypes.Library,
1289
59
  ProjectTypes.Tests,
1290
60
  ProjectTypes.WebApp
1291
61
  ];
1292
- async createAsync(logger, fileSystem, context) {
1293
- return new WorkflowCompilerTool(fileSystem, logger, this.getBundleExecutor(fileSystem), context);
62
+ constructor(bundleExecutor) {
63
+ this.bundleExecutor = bundleExecutor;
1294
64
  }
1295
- getBundleExecutor(fileSystem) {
1296
- if (!this.bundleExecutor) {
1297
- this.bundleExecutor = new ProjectBundleExecutor(this, fileSystem);
1298
- }
1299
- return this.bundleExecutor;
65
+ async createAsync(logger, fileSystem, context) {
66
+ return new WorkflowCompilerTool(fileSystem, logger, this.bundleExecutor ?? getSharedRemoteAgentBundleExecutor(fileSystem), context);
1300
67
  }
1301
68
  }
1302
69
  export {
1303
70
  WorkflowCompilerToolFactory
1304
71
  };
1305
72
 
1306
- //# debugId=587F7D204E593C1564756E2164756E21
73
+ //# debugId=7A45F6FA7ACAA00E64756E2164756E21