@uipath/case-tool 1.203.0-preview.205 → 1.204.0-preview.206

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.
Files changed (85) hide show
  1. package/README.md +6 -1
  2. package/dist/THIRD-PARTY-NOTICES.md +48 -9
  3. package/dist/authoring-0hr88kff.js +623 -0
  4. package/dist/{case-api-v6cjyrfw.js → case-api-gdaj9469.js} +5 -5
  5. package/dist/case-bindings-service-c2mze9vj.js +476 -0
  6. package/dist/{case-debug-studio-web-service-shg84pn8.js → case-debug-studio-web-service-cc0vj7md.js} +11 -10
  7. package/dist/case-described-io-service-cpe5h2ks.js +132 -0
  8. package/dist/{case-format-service-q345a2fd.js → case-format-service-qwyjyt0y.js} +2 -2
  9. package/dist/{case-pack-service-29rza2q2.js → case-pack-service-47yrvmg0.js} +11 -11
  10. package/dist/case-shape-reader-mw58avr0.js +13 -0
  11. package/dist/case-splice-service-9zvw19ca.js +312 -0
  12. package/dist/{case-validate-service-2n2bqc1g.js → case-validate-service-vrvx19c1.js} +415 -1449
  13. package/dist/{connector-enrichment-service-h662r92z.js → connector-enrichment-service-rg87npf0.js} +20 -18
  14. package/dist/{connector-lookup-service-y7x6xsc6.js → connector-lookup-service-c49pvfwb.js} +7 -7
  15. package/dist/{connector-task-spec-qm6q8qma.js → connector-task-spec-t3tjeeqt.js} +86 -26
  16. package/dist/{debug-service-8x087xxt.js → debug-service-vf5mw0nr.js} +3 -3
  17. package/dist/{embedded-file-reader-0sjt4nkj.js → embedded-file-reader-v8c2yj2a.js} +2 -2
  18. package/dist/{enrichment-service-7vbxcwge.js → enrichment-service-78b0gqck.js} +8 -7
  19. package/dist/index-hhsf00x8.js +15 -0
  20. package/dist/{index-fz4ttsde.js → index-j2r3jb6c.js} +5 -3
  21. package/dist/{index-jxj2jz45.js → index-rgw7caht.js} +416 -87
  22. package/dist/{index-k4xz16db.js → index-wmffgzmr.js} +12522 -7316
  23. package/dist/{index-va9sm89y.js → index-ynnr55wk.js} +59 -27
  24. package/dist/index.js +15 -11
  25. package/dist/{input-reader-pnh948bq.js → input-reader-bb0ptk2v.js} +2 -2
  26. package/dist/migration-diagnosis-ag2sgd1e.js +71 -0
  27. package/dist/{node-strategy-gc4sg6a2.js → node-strategy-5pz40tee.js} +1 -1
  28. package/dist/{node-sync-service-mehbp4qq.js → node-sync-service-xw3tpfj5.js} +6 -6
  29. package/dist/out-target-1f4n9vqb.js +70 -0
  30. package/dist/{packager-tool-wefb1zw3.js → packager-tool-0p3td5zv.js} +8 -7
  31. package/dist/packager-tool-21qfsbxn.js +17 -0
  32. package/dist/{strict-sdd-audit-8e2fh9jg.js → packager-tool-4e56rmwe.js} +2771 -1746
  33. package/dist/{packager-tool-sfkyb4kz.js → packager-tool-4rqd21wc.js} +194 -2
  34. package/dist/packager-tool-57pzrd0g.js +32 -0
  35. package/dist/{packager-tool-kpcjnxd1.js → packager-tool-58kx79ta.js} +586 -113
  36. package/dist/{packager-tool-hrdan5ms.js → packager-tool-5qghkdd0.js} +2 -2
  37. package/dist/packager-tool-5qp9xza1.js +10 -0
  38. package/dist/packager-tool-8a9yqfq7.js +76 -0
  39. package/dist/{packager-tool-40vq60aa.js → packager-tool-8mpxsyje.js} +4 -4
  40. package/dist/{packager-tool-e3k5gzd3.js → packager-tool-a6wztj6y.js} +669 -100
  41. package/dist/{packager-tool-p0zh9hw6.js → packager-tool-ayevyw80.js} +5 -5
  42. package/dist/packager-tool-b250k6w4.js +75 -0
  43. package/dist/packager-tool-bfgdz1zh.js +73 -0
  44. package/dist/{packager-tool-p7jgrm5r.js → packager-tool-cmwets3m.js} +1 -1
  45. package/dist/{packager-tool-d4sjk46c.js → packager-tool-cv05dwac.js} +18 -21
  46. package/dist/packager-tool-d7jjng8a.js +21 -0
  47. package/dist/packager-tool-dthjwajc.js +13 -0
  48. package/dist/{packager-tool-zcsm7dsj.js → packager-tool-e760vtgg.js} +4 -4
  49. package/dist/packager-tool-f78ntj5g.js +228 -0
  50. package/dist/{packager-tool-2xfyykm0.js → packager-tool-ggbvxvey.js} +320 -200
  51. package/dist/{packager-tool-6karkrc8.js → packager-tool-jx0yq0b5.js} +6 -6
  52. package/dist/{packager-tool-cg2j4rma.js → packager-tool-kacqd7h7.js} +4 -4
  53. package/dist/packager-tool-mknccck5.js +24 -0
  54. package/dist/{packager-tool-sv0d6wb6.js → packager-tool-nj4seavy.js} +7 -3
  55. package/dist/{packager-tool-adcaxdhs.js → packager-tool-paepfv5d.js} +1 -1
  56. package/dist/{packager-tool-052kvydg.js → packager-tool-pm646ag4.js} +1 -1
  57. package/dist/{packager-tool-dd8bq6az.js → packager-tool-rgpdaxbx.js} +548 -108
  58. package/dist/{packager-tool-8q7vzh65.js → packager-tool-s3e2kepj.js} +455 -13
  59. package/dist/{packager-tool-r84ng21s.js → packager-tool-sag9gz55.js} +3 -1
  60. package/dist/{packager-tool-0mj06yen.js → packager-tool-sq931c23.js} +5 -22
  61. package/dist/{packager-tool-yrsrzz1a.js → packager-tool-v99ygh9f.js} +23 -8
  62. package/dist/packager-tool-wj9d9mqe.js +267 -0
  63. package/dist/{packager-tool-hz1mz8fs.js → packager-tool-wjaya2k2.js} +2 -2
  64. package/dist/packager-tool-xcd87qyx.js +44 -0
  65. package/dist/{packager-tool-0v3s8r01.js → packager-tool-xdxr3ync.js} +4 -2
  66. package/dist/{packager-tool-61hxhgeg.js → packager-tool-xkgq5fkf.js} +3 -3
  67. package/dist/packager-tool.js +6 -6
  68. package/dist/{project-artifacts-8snev67g.js → project-artifacts-wzrhketn.js} +1 -1
  69. package/dist/resolved-check-p99hysaw.js +50 -0
  70. package/dist/{resourcesSyncService-pmfwz9cd.js → resourcesSyncService-1ezvhcbc.js} +25 -18
  71. package/dist/rule-group-members-zje7n3kf.js +76 -0
  72. package/dist/sdd-convert-service-gp9733qv.js +1962 -0
  73. package/dist/{sdd-lookup-x08j9g9m.js → sdd-lookup-vpjej1kt.js} +2 -2
  74. package/dist/sdd-resolve-service-4hx64x3z.js +288 -0
  75. package/dist/strict-case-rules-ksy8q7pg.js +731 -0
  76. package/dist/strict-entry-points-v14d7y50.js +124 -0
  77. package/dist/strict-sdd-audit-k6hh0mbr.js +23 -0
  78. package/dist/task-selector-8bjn35dv.js +57 -0
  79. package/dist/tool.js +15 -11
  80. package/dist/{trigger-enrichment-service-xexg7qbk.js → trigger-enrichment-service-pjw5ysny.js} +41 -23
  81. package/package.json +2 -2
  82. package/dist/authoring-kngaggwm.js +0 -360
  83. package/dist/case-bindings-service-1wxfghzd.js +0 -240
  84. package/dist/packager-tool-83qnybab.js +0 -1564
  85. package/dist/strict-case-rules-x6t0vb40.js +0 -409
@@ -125,6 +125,29 @@ async function ensureProjectId(projectPath, fs) {
125
125
  }
126
126
  return crypto.randomUUID();
127
127
  }
128
+ async function ensureProjectIdInOperateFile(operateFilePath, fallbackProjectId, fs) {
129
+ if (!await fs.exists(operateFilePath)) {
130
+ return;
131
+ }
132
+ const parsed = await readJsonObject(fs, operateFilePath);
133
+ if (!parsed) {
134
+ return;
135
+ }
136
+ if (isNonEmptyString(parsed.projectId)) {
137
+ return;
138
+ }
139
+ await writeJsonObject(fs, operateFilePath, {
140
+ ...parsed,
141
+ projectId: fallbackProjectId
142
+ });
143
+ }
144
+ async function writeOrBackfillOperateProjectId(operateFilePath, projectId, fs, createIfMissing) {
145
+ if (await fs.exists(operateFilePath)) {
146
+ await ensureProjectIdInOperateFile(operateFilePath, projectId, fs);
147
+ return;
148
+ }
149
+ await createIfMissing();
150
+ }
128
151
 
129
152
  // ../packager/packager-core/src/services/nuget-packager.ts
130
153
  function escapeXml(str) {
@@ -292,6 +315,175 @@ if (!_global[REGISTRY_KEY]) {
292
315
  _global[REGISTRY_KEY] = new ToolsFactoryRepository;
293
316
  }
294
317
  var toolsFactoryRepository = _global[REGISTRY_KEY];
318
+
319
+ // ../packager/packager-core/src/models/nuget-constants.ts
320
+ var NugetConstants = {
321
+ OutputFolderName: "bundle",
322
+ ContentFolderName: "content",
323
+ OperateFileName: "operate.json",
324
+ EntryPointsFileName: "entry-points.json",
325
+ PackageDescriptorFileName: "package-descriptor.json",
326
+ BindingsV2FileName: "bindings_v2.json",
327
+ BindingsFileId: "bindings.json"
328
+ };
329
+
330
+ // ../packager/packager-core/src/services/content-operate-file.ts
331
+ var OPERATE_SCHEMA = "https://cloud.uipath.com/draft/2024-12/operate";
332
+ async function resolveEntryPointMain(fs, sourceFolder) {
333
+ const entryPointsFilePath = Path.join(sourceFolder, NugetConstants.EntryPointsFileName);
334
+ if (!await fs.exists(entryPointsFilePath)) {
335
+ return "";
336
+ }
337
+ const content = await fs.readFile(entryPointsFilePath);
338
+ if (!content) {
339
+ return "";
340
+ }
341
+ try {
342
+ const parsed = JSON.parse(new TextDecoder().decode(content));
343
+ return parsed.entryPoints?.[0]?.filePath ?? "";
344
+ } catch {
345
+ return "";
346
+ }
347
+ }
348
+ async function writeContentOperateFile(fs, params) {
349
+ const operateFilePath = Path.join(params.contentFolder, NugetConstants.OperateFileName);
350
+ await writeOrBackfillOperateProjectId(operateFilePath, params.projectId, fs, async () => {
351
+ const main = await resolveEntryPointMain(fs, params.contentFolder);
352
+ const operateFileModel = {
353
+ $schema: OPERATE_SCHEMA,
354
+ contentType: params.contentType,
355
+ projectId: params.projectId,
356
+ main,
357
+ targetFramework: "Portable",
358
+ runtimeOptions: {
359
+ isAttended: false,
360
+ requiresUserInteraction: false
361
+ }
362
+ };
363
+ await fs.writeFile(operateFilePath, JSON.stringify(operateFileModel, null, 2));
364
+ });
365
+ }
366
+ async function ensureContentOperateFile(fs, params) {
367
+ const projectId = params.projectStorageId ?? await ensureProjectId(params.projectPath, fs);
368
+ await writeContentOperateFile(fs, {
369
+ contentFolder: params.contentFolder,
370
+ projectId,
371
+ contentType: params.contentType
372
+ });
373
+ }
374
+ // ../packager/packager-core/src/models/tool-result.ts
375
+ class ToolResult {
376
+ errorCode;
377
+ message;
378
+ packages;
379
+ details;
380
+ instructions;
381
+ constructor(errorCode, message, packages = [], instructions) {
382
+ this.errorCode = errorCode;
383
+ this.message = message;
384
+ this.packages = packages;
385
+ this.instructions = instructions;
386
+ }
387
+ get isSuccess() {
388
+ return this.errorCode === "SUCCESS" /* Success */;
389
+ }
390
+ static success() {
391
+ return new ToolResult("SUCCESS" /* Success */);
392
+ }
393
+ static error(errorCode, message, instructions) {
394
+ return new ToolResult(errorCode, message, [], instructions);
395
+ }
396
+ }
397
+
398
+ // ../packager/packager-core/src/services/project-tool.ts
399
+ class ProjectTool {
400
+ fileSystem;
401
+ logger;
402
+ static ProjectFileName = "project.uiproj";
403
+ constructor(fileSystem, logger) {
404
+ this.fileSystem = fileSystem;
405
+ this.logger = logger;
406
+ }
407
+ async restoreAsync(_options, _cancellationToken) {
408
+ this.logger.info("Restore operation is a noop");
409
+ return ToolResult.success();
410
+ }
411
+ async validateAsync(_options, _cancellationToken) {
412
+ this.logger.info("Validate operation is a noop");
413
+ return ToolResult.success();
414
+ }
415
+ async buildAsync(_options, _cancellationToken) {
416
+ this.logger.info("Build operation is a noop");
417
+ return ToolResult.success();
418
+ }
419
+ async packAsync(_options, _cancellationToken) {
420
+ this.logger.info("Pack operation is a noop");
421
+ return ToolResult.success();
422
+ }
423
+ async cleanupAsync(_options, _cancellationToken) {
424
+ this.logger.info("Cleanup operation is a noop");
425
+ return ToolResult.success();
426
+ }
427
+ async getUiProjectAsync(projectPath) {
428
+ const filePath = Path.join(projectPath, ProjectTool.ProjectFileName);
429
+ if (!await this.fileSystem.exists(filePath)) {
430
+ return;
431
+ }
432
+ const raw = await this.fileSystem.readFile(filePath);
433
+ if (!raw) {
434
+ return;
435
+ }
436
+ const json = typeof raw === "string" ? raw : new TextDecoder("utf-8").decode(raw);
437
+ return JSON.parse(json);
438
+ }
439
+ async dispose() {}
440
+ }
441
+ // ../packager/packager-core/src/filesystem/temporary-storage-service.ts
442
+ class TemporaryStorageService {
443
+ fileSystem;
444
+ _tempFolderPath = null;
445
+ constructor(fileSystem) {
446
+ this.fileSystem = fileSystem;
447
+ }
448
+ async getTempFolderPath() {
449
+ if (!this._tempFolderPath) {
450
+ const systemTempDir = await this.fileSystem.getTempDir();
451
+ const uniqueFolderName = this.generateUniqueFolderName();
452
+ this._tempFolderPath = Path.join(systemTempDir, uniqueFolderName);
453
+ await this.fileSystem.mkdir(this._tempFolderPath);
454
+ }
455
+ return this._tempFolderPath;
456
+ }
457
+ generateUniqueFolderName() {
458
+ const timestamp = Date.now();
459
+ const random = Math.random().toString(36).substring(2, 10);
460
+ return `tool-temp-${timestamp}-${random}`;
461
+ }
462
+ async getTempSubfolderPathAsync(subfolder) {
463
+ const tempFolderPath = await this.getTempFolderPath();
464
+ const inputPath = Path.join(tempFolderPath, subfolder);
465
+ await this.fileSystem.mkdir(inputPath);
466
+ return inputPath;
467
+ }
468
+ async cleanup() {
469
+ try {
470
+ if (!this._tempFolderPath) {
471
+ return;
472
+ }
473
+ try {
474
+ const stats = await this.fileSystem.stat(this._tempFolderPath);
475
+ if (!stats) {
476
+ return;
477
+ }
478
+ } catch {
479
+ return;
480
+ }
481
+ const _pathToCleanup = this._tempFolderPath;
482
+ await this.fileSystem.rm(this._tempFolderPath);
483
+ this._tempFolderPath = null;
484
+ } catch {}
485
+ }
486
+ }
295
487
  // ../packager/packager-core/src/i18n/types.ts
296
488
  function isPluralForm(value) {
297
489
  return typeof value === "object" && value !== null && "other" in value;
@@ -1115,6 +1307,6 @@ I18nManager.registerTranslations("zh-cn", zh_CN);
1115
1307
  I18nManager.registerTranslations("zh-tw", zh_TW);
1116
1308
  I18nManager.registerTranslations("zu", zu);
1117
1309
  I18nManager.setLocale("en");
1118
- export { ensureProjectId, NugetPackager, toolsFactoryRepository };
1310
+ export { Path, TemporaryStorageService, NugetConstants, ToolResult, ensureProjectId, ensureContentOperateFile, NugetPackager, ProjectTool, toolsFactoryRepository };
1119
1311
 
1120
- //# debugId=D3514638EC5C638064756E2164756E21
1312
+ //# debugId=D78B926691074C7664756E2164756E21
@@ -0,0 +1,32 @@
1
+ import {
2
+ loadCaseSchemaAsync
3
+ } from "./packager-tool-cmwets3m.js";
4
+
5
+ // src/services/case-schema-version.ts
6
+ var MIN_SUPPORTED_MAJOR = 20;
7
+ async function resolveCaseSchemaVersion() {
8
+ const { LATEST_CASE_SCHEMA_VERSION } = await loadCaseSchemaAsync();
9
+ if (parseCaseSchemaVersion(LATEST_CASE_SCHEMA_VERSION) === null) {
10
+ throw new Error(`@uipath/case-schema exports a LATEST_CASE_SCHEMA_VERSION that is not "<major>.<minor>.<patch>": ${String(LATEST_CASE_SCHEMA_VERSION)}`);
11
+ }
12
+ return LATEST_CASE_SCHEMA_VERSION;
13
+ }
14
+ function parseCaseSchemaVersion(version) {
15
+ if (typeof version !== "string")
16
+ return null;
17
+ const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(version);
18
+ if (!match)
19
+ return null;
20
+ return {
21
+ major: Number.parseInt(match[1], 10),
22
+ minor: Number.parseInt(match[2], 10),
23
+ patch: Number.parseInt(match[3], 10)
24
+ };
25
+ }
26
+ function compareCaseSchemaVersions(a, b) {
27
+ return a.major - b.major || a.minor - b.minor || a.patch - b.patch;
28
+ }
29
+
30
+ export { MIN_SUPPORTED_MAJOR, resolveCaseSchemaVersion, parseCaseSchemaVersion, compareCaseSchemaVersions };
31
+
32
+ //# debugId=11DAE5CFC88DAB2564756E2164756E21