@uipath/packager-tool-workflowcompiler-browser 0.0.33 → 1.197.0-preview.64
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/i18n/locales/en.d.ts +4 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +173 -64
- package/dist/pack-result-processor.d.ts +2 -2
- package/dist/project-bundle-executor.d.ts +14 -5
- package/package.json +30 -59
- package/src/i18n/locales/de.json +6 -2
- package/src/i18n/locales/en.ts +8 -0
- package/src/i18n/locales/es-MX.json +6 -2
- package/src/i18n/locales/es.json +6 -2
- package/src/i18n/locales/fr.json +6 -2
- package/src/i18n/locales/ja.json +6 -2
- package/src/i18n/locales/ko.json +6 -2
- package/src/i18n/locales/pt-BR.json +6 -2
- package/src/i18n/locales/pt.json +6 -2
- package/src/i18n/locales/ro.json +6 -2
- package/src/i18n/locales/ru.json +6 -2
- package/src/i18n/locales/tr.json +6 -2
- package/src/i18n/locales/zh-CN.json +6 -2
- package/src/i18n/locales/zh-TW.json +6 -2
- package/src/i18n/locales/zu.json +6 -2
- package/src/index.ts +3 -5
- package/src/pack-result-processor.ts +3 -5
- package/src/packager-hub-connection.ts +15 -40
- package/src/project-bundle-executor.ts +146 -2
|
@@ -15,6 +15,7 @@ export declare const en: {
|
|
|
15
15
|
readonly cleaningUpTempDir: "Cleaning up temporary directory {path}";
|
|
16
16
|
readonly deletingBucket: "Deleting temporary storage bucket {bucketId}";
|
|
17
17
|
readonly copyingFiles: "Copying {count} file(s) for project {designId} to {path}";
|
|
18
|
+
readonly offloadingInputArguments: "Input arguments are too large ({length} chars) to send inline; uploading them as a file attachment";
|
|
18
19
|
};
|
|
19
20
|
readonly errors: {
|
|
20
21
|
readonly missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)";
|
|
@@ -35,6 +36,9 @@ export declare const en: {
|
|
|
35
36
|
readonly distributePackagesFailed: "Failed to distribute packages for {designId}: {message}";
|
|
36
37
|
readonly sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects";
|
|
37
38
|
readonly bundleOperationMismatch: "Cannot mix {sessionOperation} and {entryOperation} in the same context";
|
|
39
|
+
readonly createAttachmentFailed: "Failed to create input arguments attachment ({status}): {errorText}";
|
|
40
|
+
readonly attachmentResponseMalformed: "Attachment creation response did not include an id and blob URI";
|
|
41
|
+
readonly uploadInputArgumentsFailed: "Failed to upload input arguments file ({status}): {statusText}";
|
|
38
42
|
};
|
|
39
43
|
};
|
|
40
44
|
};
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
// src/index.ts
|
|
2
|
-
import { toolsFactoryRepository } from "@uipath/solutionpackager-tool-core";
|
|
3
|
-
|
|
4
1
|
// src/i18n/index.ts
|
|
5
2
|
import { I18nManager } from "@uipath/solutionpackager-tool-core";
|
|
6
3
|
// src/i18n/locales/de.json
|
|
@@ -14,7 +11,8 @@ var de_default = {
|
|
|
14
11
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
15
12
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
16
13
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
17
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
18
16
|
},
|
|
19
17
|
errors: {
|
|
20
18
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -32,7 +30,10 @@ var de_default = {
|
|
|
32
30
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
33
31
|
noOutputForProject: "No output found for project {designId}",
|
|
34
32
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
35
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
36
37
|
}
|
|
37
38
|
}
|
|
38
39
|
};
|
|
@@ -50,7 +51,8 @@ var en = {
|
|
|
50
51
|
skippingRemoteCompilation: "No connection info available — skipping remote compilation for workflow compiler projects",
|
|
51
52
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
52
53
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
53
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
54
56
|
},
|
|
55
57
|
errors: {
|
|
56
58
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -70,7 +72,10 @@ var en = {
|
|
|
70
72
|
noOutputForProject: "No output found for project {designId}",
|
|
71
73
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
72
74
|
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects",
|
|
73
|
-
bundleOperationMismatch: "Cannot mix {sessionOperation} and {entryOperation} in the same context"
|
|
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}"
|
|
74
79
|
}
|
|
75
80
|
}
|
|
76
81
|
};
|
|
@@ -85,7 +90,8 @@ var es_default = {
|
|
|
85
90
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
86
91
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
87
92
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
88
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
89
95
|
},
|
|
90
96
|
errors: {
|
|
91
97
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -103,7 +109,10 @@ var es_default = {
|
|
|
103
109
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
104
110
|
noOutputForProject: "No output found for project {designId}",
|
|
105
111
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
106
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
107
116
|
}
|
|
108
117
|
}
|
|
109
118
|
};
|
|
@@ -118,7 +127,8 @@ var es_MX_default = {
|
|
|
118
127
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
119
128
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
120
129
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
121
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
122
132
|
},
|
|
123
133
|
errors: {
|
|
124
134
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -136,7 +146,10 @@ var es_MX_default = {
|
|
|
136
146
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
137
147
|
noOutputForProject: "No output found for project {designId}",
|
|
138
148
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
139
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
140
153
|
}
|
|
141
154
|
}
|
|
142
155
|
};
|
|
@@ -151,7 +164,8 @@ var fr_default = {
|
|
|
151
164
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
152
165
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
153
166
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
154
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
155
169
|
},
|
|
156
170
|
errors: {
|
|
157
171
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -169,7 +183,10 @@ var fr_default = {
|
|
|
169
183
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
170
184
|
noOutputForProject: "No output found for project {designId}",
|
|
171
185
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
172
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
173
190
|
}
|
|
174
191
|
}
|
|
175
192
|
};
|
|
@@ -184,7 +201,8 @@ var ja_default = {
|
|
|
184
201
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
185
202
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
186
203
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
187
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
204
|
+
copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
|
|
205
|
+
offloadingInputArguments: "入力引数が大きすぎるため ({length} 文字)、インラインで送信できません。ファイル添付としてアップロードします"
|
|
188
206
|
},
|
|
189
207
|
errors: {
|
|
190
208
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -202,7 +220,10 @@ var ja_default = {
|
|
|
202
220
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
203
221
|
noOutputForProject: "No output found for project {designId}",
|
|
204
222
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
205
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
206
227
|
}
|
|
207
228
|
}
|
|
208
229
|
};
|
|
@@ -217,7 +238,8 @@ var ko_default = {
|
|
|
217
238
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
218
239
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
219
240
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
220
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
241
|
+
copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
|
|
242
|
+
offloadingInputArguments: "입력 인수가 너무 커서({length}자) 인라인으로 보낼 수 없습니다. 파일 첨부로 업로드합니다"
|
|
221
243
|
},
|
|
222
244
|
errors: {
|
|
223
245
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -235,7 +257,10 @@ var ko_default = {
|
|
|
235
257
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
236
258
|
noOutputForProject: "No output found for project {designId}",
|
|
237
259
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
238
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
239
264
|
}
|
|
240
265
|
}
|
|
241
266
|
};
|
|
@@ -250,7 +275,8 @@ var pt_default = {
|
|
|
250
275
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
251
276
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
252
277
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
253
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
254
280
|
},
|
|
255
281
|
errors: {
|
|
256
282
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -268,7 +294,10 @@ var pt_default = {
|
|
|
268
294
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
269
295
|
noOutputForProject: "No output found for project {designId}",
|
|
270
296
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
271
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
272
301
|
}
|
|
273
302
|
}
|
|
274
303
|
};
|
|
@@ -283,7 +312,8 @@ var pt_BR_default = {
|
|
|
283
312
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
284
313
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
285
314
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
286
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
287
317
|
},
|
|
288
318
|
errors: {
|
|
289
319
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -301,7 +331,10 @@ var pt_BR_default = {
|
|
|
301
331
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
302
332
|
noOutputForProject: "No output found for project {designId}",
|
|
303
333
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
304
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
305
338
|
}
|
|
306
339
|
}
|
|
307
340
|
};
|
|
@@ -316,7 +349,8 @@ var ro_default = {
|
|
|
316
349
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
317
350
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
318
351
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
319
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
320
354
|
},
|
|
321
355
|
errors: {
|
|
322
356
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -334,7 +368,10 @@ var ro_default = {
|
|
|
334
368
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
335
369
|
noOutputForProject: "No output found for project {designId}",
|
|
336
370
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
337
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
338
375
|
}
|
|
339
376
|
}
|
|
340
377
|
};
|
|
@@ -349,7 +386,8 @@ var ru_default = {
|
|
|
349
386
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
350
387
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
351
388
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
352
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
389
|
+
copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
|
|
390
|
+
offloadingInputArguments: "Входные аргументы слишком велики ({length} символов) для встроенной отправки; они будут загружены как вложение файла"
|
|
353
391
|
},
|
|
354
392
|
errors: {
|
|
355
393
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -367,7 +405,10 @@ var ru_default = {
|
|
|
367
405
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
368
406
|
noOutputForProject: "No output found for project {designId}",
|
|
369
407
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
370
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
371
412
|
}
|
|
372
413
|
}
|
|
373
414
|
};
|
|
@@ -382,7 +423,8 @@ var tr_default = {
|
|
|
382
423
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
383
424
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
384
425
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
385
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
386
428
|
},
|
|
387
429
|
errors: {
|
|
388
430
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -400,7 +442,10 @@ var tr_default = {
|
|
|
400
442
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
401
443
|
noOutputForProject: "No output found for project {designId}",
|
|
402
444
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
403
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
404
449
|
}
|
|
405
450
|
}
|
|
406
451
|
};
|
|
@@ -415,7 +460,8 @@ var zh_CN_default = {
|
|
|
415
460
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
416
461
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
417
462
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
418
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
463
|
+
copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
|
|
464
|
+
offloadingInputArguments: "输入参数过大({length} 个字符),无法内联发送;将作为文件附件上传"
|
|
419
465
|
},
|
|
420
466
|
errors: {
|
|
421
467
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -433,7 +479,10 @@ var zh_CN_default = {
|
|
|
433
479
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
434
480
|
noOutputForProject: "No output found for project {designId}",
|
|
435
481
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
436
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
437
486
|
}
|
|
438
487
|
}
|
|
439
488
|
};
|
|
@@ -448,7 +497,8 @@ var zh_TW_default = {
|
|
|
448
497
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
449
498
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
450
499
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
451
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
500
|
+
copyingFiles: "Copying {count} file(s) for project {designId} to {path}",
|
|
501
|
+
offloadingInputArguments: "輸入引數過大({length} 個字元),無法內嵌傳送;將以檔案附件形式上傳"
|
|
452
502
|
},
|
|
453
503
|
errors: {
|
|
454
504
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -466,7 +516,10 @@ var zh_TW_default = {
|
|
|
466
516
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
467
517
|
noOutputForProject: "No output found for project {designId}",
|
|
468
518
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
469
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
470
523
|
}
|
|
471
524
|
}
|
|
472
525
|
};
|
|
@@ -481,7 +534,8 @@ var zu_default = {
|
|
|
481
534
|
distributingPackages: "Distributing packages for {count} project(s)",
|
|
482
535
|
cleaningUpTempDir: "Cleaning up temporary directory {path}",
|
|
483
536
|
deletingBucket: "Deleting temporary storage bucket {bucketId}",
|
|
484
|
-
copyingFiles: "Copying {count} file(s) for project {designId} to {path}"
|
|
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"
|
|
485
539
|
},
|
|
486
540
|
errors: {
|
|
487
541
|
missingConnectionInfo: "Missing connection info (cloudUrl, accessToken, or folderId)",
|
|
@@ -499,7 +553,10 @@ var zu_default = {
|
|
|
499
553
|
noMatchingProject: "No matching project found for path: {projectPath}",
|
|
500
554
|
noOutputForProject: "No output found for project {designId}",
|
|
501
555
|
distributePackagesFailed: "Failed to distribute packages for {designId}: {message}",
|
|
502
|
-
sessionTimeout: "Session timed out waiting for projects: received {received} of {expected} expected projects"
|
|
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}"
|
|
503
560
|
}
|
|
504
561
|
}
|
|
505
562
|
};
|
|
@@ -546,10 +603,10 @@ class PackResultProcessor {
|
|
|
546
603
|
fileSystem;
|
|
547
604
|
logger;
|
|
548
605
|
zipService;
|
|
549
|
-
constructor(fileSystem, logger) {
|
|
606
|
+
constructor(fileSystem, logger, zipService = new ZipService(fileSystem)) {
|
|
550
607
|
this.fileSystem = fileSystem;
|
|
551
608
|
this.logger = logger;
|
|
552
|
-
this.zipService =
|
|
609
|
+
this.zipService = zipService;
|
|
553
610
|
}
|
|
554
611
|
async processAsync(bucketId, projects, context) {
|
|
555
612
|
const connection = context.connection;
|
|
@@ -691,24 +748,9 @@ import {
|
|
|
691
748
|
HubConnectionState
|
|
692
749
|
} from "@microsoft/signalr";
|
|
693
750
|
import {
|
|
694
|
-
LogLevel,
|
|
695
751
|
LogMessage,
|
|
696
752
|
translate as translate2
|
|
697
753
|
} from "@uipath/solutionpackager-tool-core";
|
|
698
|
-
function toLogLevel(level) {
|
|
699
|
-
switch (level) {
|
|
700
|
-
case "Debug":
|
|
701
|
-
return LogLevel.Debug;
|
|
702
|
-
case "Information":
|
|
703
|
-
return LogLevel.Info;
|
|
704
|
-
case "Warning":
|
|
705
|
-
return LogLevel.Warn;
|
|
706
|
-
case "Error":
|
|
707
|
-
return LogLevel.Error;
|
|
708
|
-
default:
|
|
709
|
-
return LogLevel.Info;
|
|
710
|
-
}
|
|
711
|
-
}
|
|
712
754
|
class PackagerHubConnection {
|
|
713
755
|
logger;
|
|
714
756
|
hubConnection = null;
|
|
@@ -788,16 +830,15 @@ class PackagerHubConnection {
|
|
|
788
830
|
return;
|
|
789
831
|
const command = JSON.parse(jsonCommand);
|
|
790
832
|
const agentLog = command.Argument1;
|
|
791
|
-
const
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
});
|
|
833
|
+
const logMessage = new LogMessage(agentLog.message, agentLog.logLevel, {
|
|
834
|
+
source: agentLog.source,
|
|
835
|
+
sourceTarget: agentLog.sourceTarget,
|
|
836
|
+
progress: agentLog.progress,
|
|
837
|
+
code: agentLog.code,
|
|
838
|
+
filePath: agentLog.filePath,
|
|
839
|
+
line: agentLog.line,
|
|
840
|
+
id: agentLog.id
|
|
841
|
+
}, agentLog.timestamp);
|
|
801
842
|
this.logger.logMessage(logMessage);
|
|
802
843
|
}
|
|
803
844
|
onExecutionCompleted(jsonCommand) {
|
|
@@ -825,6 +866,7 @@ class ProjectBundleExecutor {
|
|
|
825
866
|
toolFactory;
|
|
826
867
|
fileSystem;
|
|
827
868
|
static SESSION_TIMEOUT_MS = 1800000;
|
|
869
|
+
static MAX_INLINE_INPUT_ARGUMENTS_LENGTH = 1e4;
|
|
828
870
|
sessions = new Map;
|
|
829
871
|
pendingSessionCreations = new Map;
|
|
830
872
|
constructor(toolFactory, fileSystem) {
|
|
@@ -995,6 +1037,7 @@ class ProjectBundleExecutor {
|
|
|
995
1037
|
return {
|
|
996
1038
|
RelativePath: project?.ProjectRelativePath ?? "",
|
|
997
1039
|
DesignId: project?.Id ?? "",
|
|
1040
|
+
ProjectStorageId: entry.operation === "Pack" /* Pack */ ? entry.options.projectStorageId ?? "" : "",
|
|
998
1041
|
PackageId: entry.operation === "Pack" /* Pack */ ? entry.options.package.id : ""
|
|
999
1042
|
};
|
|
1000
1043
|
});
|
|
@@ -1017,17 +1060,38 @@ class ProjectBundleExecutor {
|
|
|
1017
1060
|
if (firstEntry.operation === "Pack" /* Pack */) {
|
|
1018
1061
|
executorInfo.Configuration = context.configuration;
|
|
1019
1062
|
const pkg = firstEntry.options.package;
|
|
1063
|
+
executorInfo.Package = {
|
|
1064
|
+
Name: pkg.id,
|
|
1065
|
+
Version: pkg.version,
|
|
1066
|
+
Author: pkg.author ?? "",
|
|
1067
|
+
Description: pkg.description ?? "",
|
|
1068
|
+
ReleaseNotes: pkg.releaseNotes ?? "",
|
|
1069
|
+
Tags: pkg.tags ?? "",
|
|
1070
|
+
IconUrl: pkg.iconUrl ?? "",
|
|
1071
|
+
ProjectUrl: pkg.projectUrl ?? "",
|
|
1072
|
+
RepositoryType: pkg.repositoryType ?? "",
|
|
1073
|
+
RepositoryUrl: pkg.repositoryUrl ?? "",
|
|
1074
|
+
RepositoryBranch: pkg.repositoryBranch ?? "",
|
|
1075
|
+
RepositoryCommit: pkg.repositoryCommit ?? ""
|
|
1076
|
+
};
|
|
1020
1077
|
executorInfo.Name = pkg.id;
|
|
1021
1078
|
executorInfo.Version = pkg.version;
|
|
1022
1079
|
executorInfo.Author = pkg.author ?? "";
|
|
1023
1080
|
executorInfo.Description = pkg.description ?? "";
|
|
1081
|
+
executorInfo.ReleaseNotes = pkg.releaseNotes ?? "";
|
|
1024
1082
|
}
|
|
1083
|
+
const inputArguments = JSON.stringify(executorInfo);
|
|
1025
1084
|
const body = {
|
|
1026
1085
|
source: "StudioWeb",
|
|
1027
1086
|
targetFramework: context.targetFramework,
|
|
1028
|
-
jobType: "PublishStudioProject"
|
|
1029
|
-
inputArguments: JSON.stringify(executorInfo)
|
|
1087
|
+
jobType: "PublishStudioProject"
|
|
1030
1088
|
};
|
|
1089
|
+
if (inputArguments.length > ProjectBundleExecutor.MAX_INLINE_INPUT_ARGUMENTS_LENGTH) {
|
|
1090
|
+
context.logger?.info(translate3.t("toolWorkflowCompilerBrowser.info.offloadingInputArguments", { length: inputArguments.length }));
|
|
1091
|
+
body.inputFile = await this.uploadInputArgumentsFileAsync(inputArguments, connection, context.logger);
|
|
1092
|
+
} else {
|
|
1093
|
+
body.inputArguments = inputArguments;
|
|
1094
|
+
}
|
|
1031
1095
|
const headers = {
|
|
1032
1096
|
"Content-Type": "application/json",
|
|
1033
1097
|
Authorization: `Bearer ${connection.accessToken}`,
|
|
@@ -1046,6 +1110,49 @@ class ProjectBundleExecutor {
|
|
|
1046
1110
|
throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.beginSessionFailed", { status: response.status, errorText }));
|
|
1047
1111
|
}
|
|
1048
1112
|
}
|
|
1113
|
+
async uploadInputArgumentsFileAsync(inputArguments, connection, logger) {
|
|
1114
|
+
const baseUrl = toRelativeUrl2(connection.cloudUrl);
|
|
1115
|
+
const attachmentsUrl = `${baseUrl}/orchestrator_/odata/Attachments`;
|
|
1116
|
+
const headers = {
|
|
1117
|
+
"Content-Type": "application/json",
|
|
1118
|
+
Authorization: `Bearer ${connection.accessToken}`,
|
|
1119
|
+
"X-UIPATH-OrganizationUnitId": connection.folderId ?? ""
|
|
1120
|
+
};
|
|
1121
|
+
if (connection.tenantId) {
|
|
1122
|
+
headers["x-uipath-tenantid"] = connection.tenantId;
|
|
1123
|
+
}
|
|
1124
|
+
const createResponse = await fetch(attachmentsUrl, {
|
|
1125
|
+
method: "POST",
|
|
1126
|
+
headers,
|
|
1127
|
+
body: JSON.stringify({ name: "input.json" })
|
|
1128
|
+
});
|
|
1129
|
+
if (!createResponse.ok) {
|
|
1130
|
+
const errorText = await createResponse.text();
|
|
1131
|
+
throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.createAttachmentFailed", { status: createResponse.status, errorText }));
|
|
1132
|
+
}
|
|
1133
|
+
const attachment = await createResponse.json();
|
|
1134
|
+
const attachmentId = attachment.Id ?? attachment.id ?? "";
|
|
1135
|
+
const writeUri = attachment.BlobFileAccess?.Uri ?? attachment.blobFileAccess?.Uri;
|
|
1136
|
+
if (!attachmentId || !writeUri) {
|
|
1137
|
+
throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.attachmentResponseMalformed"));
|
|
1138
|
+
}
|
|
1139
|
+
const uploadResponse = await fetch(writeUri, {
|
|
1140
|
+
method: "PUT",
|
|
1141
|
+
headers: {
|
|
1142
|
+
"Content-Type": "application/octet-stream",
|
|
1143
|
+
"x-ms-blob-type": "BlockBlob"
|
|
1144
|
+
},
|
|
1145
|
+
body: inputArguments
|
|
1146
|
+
});
|
|
1147
|
+
if (!uploadResponse.ok) {
|
|
1148
|
+
throw new Error(translate3.t("toolWorkflowCompilerBrowser.errors.uploadInputArgumentsFailed", {
|
|
1149
|
+
status: uploadResponse.status,
|
|
1150
|
+
statusText: uploadResponse.statusText
|
|
1151
|
+
}));
|
|
1152
|
+
}
|
|
1153
|
+
logger?.info(`[BundleExecutor] Uploaded input arguments as attachment ${attachmentId}`);
|
|
1154
|
+
return attachmentId;
|
|
1155
|
+
}
|
|
1049
1156
|
resolveAll(session, result) {
|
|
1050
1157
|
for (const [, entry] of session.projects) {
|
|
1051
1158
|
entry.resolve(result);
|
|
@@ -1112,6 +1219,8 @@ class WorkflowCompilerToolFactory {
|
|
|
1112
1219
|
return this.bundleExecutor;
|
|
1113
1220
|
}
|
|
1114
1221
|
}
|
|
1222
|
+
export {
|
|
1223
|
+
WorkflowCompilerToolFactory
|
|
1224
|
+
};
|
|
1115
1225
|
|
|
1116
|
-
|
|
1117
|
-
toolsFactoryRepository.registerProjectToolFactory(new WorkflowCompilerToolFactory);
|
|
1226
|
+
//# debugId=7131BE6BC75CD59264756E2164756E21
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type IFileSystem, type IProjectPackOptions, type IToolLogger, type ProjectOperationContext, ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
1
|
+
import { type IFileSystem, type IProjectPackOptions, type IToolLogger, type IZipService, type ProjectOperationContext, ToolResult } from "@uipath/solutionpackager-tool-core";
|
|
2
2
|
interface ProjectResultEntry {
|
|
3
3
|
options: IProjectPackOptions;
|
|
4
4
|
}
|
|
@@ -6,7 +6,7 @@ export declare class PackResultProcessor {
|
|
|
6
6
|
private readonly fileSystem;
|
|
7
7
|
private readonly logger?;
|
|
8
8
|
private readonly zipService;
|
|
9
|
-
constructor(fileSystem: IFileSystem, logger?: IToolLogger | undefined);
|
|
9
|
+
constructor(fileSystem: IFileSystem, logger?: IToolLogger | undefined, zipService?: IZipService);
|
|
10
10
|
processAsync(bucketId: number, projects: Map<string, ProjectResultEntry>, context: ProjectOperationContext): Promise<Map<string, ToolResult>>;
|
|
11
11
|
private downloadArchiveAsync;
|
|
12
12
|
private deleteBucketAsync;
|
|
@@ -7,15 +7,16 @@ export interface IProjectBundleExecutor {
|
|
|
7
7
|
packAsync(options: IProjectPackOptions, context: ProjectOperationContext): Promise<ToolResult>;
|
|
8
8
|
validateAsync(options: IProjectValidateOptions, context: ProjectOperationContext): Promise<ToolResult>;
|
|
9
9
|
}
|
|
10
|
-
/**
|
|
11
|
-
* Coordinates pack or validate of multiple projects within a single operation context.
|
|
12
|
-
* Waits until all compatible projects have submitted their options,
|
|
13
|
-
* then executes a single bundled remote-agent operation and resolves all pending promises.
|
|
14
|
-
*/
|
|
15
10
|
export declare class ProjectBundleExecutor implements IProjectBundleExecutor {
|
|
16
11
|
private readonly toolFactory;
|
|
17
12
|
private readonly fileSystem;
|
|
18
13
|
static readonly SESSION_TIMEOUT_MS = 1800000;
|
|
14
|
+
/**
|
|
15
|
+
* Maximum length (in characters) of the inline `inputArguments` payload
|
|
16
|
+
* accepted by the serverless jobs endpoint. Beyond this the arguments must
|
|
17
|
+
* be uploaded as a file attachment and referenced via `inputFile`.
|
|
18
|
+
*/
|
|
19
|
+
static readonly MAX_INLINE_INPUT_ARGUMENTS_LENGTH = 10000;
|
|
19
20
|
private readonly sessions;
|
|
20
21
|
private readonly pendingSessionCreations;
|
|
21
22
|
constructor(toolFactory: IProjectToolFactory, fileSystem: IFileSystem);
|
|
@@ -29,6 +30,14 @@ export declare class ProjectBundleExecutor implements IProjectBundleExecutor {
|
|
|
29
30
|
private handleAgentResultAsync;
|
|
30
31
|
private handlePackBucketAsync;
|
|
31
32
|
private sendBeginSessionAsync;
|
|
33
|
+
/**
|
|
34
|
+
* Uploads the input arguments JSON as a file attachment and returns the
|
|
35
|
+
* attachment id, to be passed as `inputFile` on the serverless job request.
|
|
36
|
+
* Mirrors the two-step flow used by the Orchestrator UI: create the
|
|
37
|
+
* attachment (which returns a signed blob write URI) then PUT the contents
|
|
38
|
+
* to that URI using the storage-provided headers.
|
|
39
|
+
*/
|
|
40
|
+
private uploadInputArgumentsFileAsync;
|
|
32
41
|
private resolveAll;
|
|
33
42
|
private countCompatibleProjects;
|
|
34
43
|
}
|