@uipath/case-tool 1.206.0-preview.303 → 1.207.0-preview.305

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 (150) hide show
  1. package/README.md +7 -90
  2. package/dist/THIRD-PARTY-NOTICES.md +162 -7
  3. package/dist/{authoring-wt5ngnjb.js → authoring-qqev46bh.js} +233 -63
  4. package/dist/{bindings-v2-x100hvcy.js → bindings-v2-wjgg92tj.js} +4 -4
  5. package/dist/{browser-strategy-627rrg7z.js → browser-strategy-qc6htsnf.js} +1 -1
  6. package/dist/{business-rule-export-pggs7x01.js → business-rule-export-0pbc3ysq.js} +2 -2
  7. package/dist/{carry-forward-gxsadrqb.js → carry-forward-tj5yrqf6.js} +6 -6
  8. package/dist/{case-api-a6v5beat.js → case-api-bfwmvkb8.js} +24 -28
  9. package/dist/{case-bindings-service-9zemt0r2.js → case-bindings-service-5r7c70kz.js} +5 -5
  10. package/dist/case-catalog-h4fjn6q3.js +304 -0
  11. package/dist/{case-debug-solution-projects-c300019s.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
  12. package/dist/{case-debug-studio-web-service-b6xe8es1.js → case-debug-studio-web-service-7smzvq4c.js} +10 -9
  13. package/dist/{case-described-io-service-8dw21x2y.js → case-described-io-service-ddsvkz8w.js} +5 -5
  14. package/dist/{case-event-trigger-bindings-pmad4dev.js → case-event-trigger-bindings-8nd78j4e.js} +5 -5
  15. package/dist/{case-format-service-xjvnx3jd.js → case-format-service-4mzszgfb.js} +2 -2
  16. package/dist/case-pack-service-bp7sh20v.js +297 -0
  17. package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
  18. package/dist/{case-validate-service-p324kcry.js → case-validate-service-fxvq4qx7.js} +146 -38
  19. package/dist/{connector-enrichment-service-9wnew5a0.js → connector-enrichment-service-x0w721wj.js} +26 -25
  20. package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
  21. package/dist/{connector-lookup-service-v8r2htmg.js → connector-lookup-service-51pca3bf.js} +8 -8
  22. package/dist/{connector-task-shape-bgywpbqc.js → connector-task-shape-s2zny4gf.js} +3 -3
  23. package/dist/{de-AI7ML6JM-km47f8k4.js → de-B6IFKV43-9sk50xx0.js} +164 -2
  24. package/dist/{de-2BEKRUMY-x4dx0nn9.js → de-HF4GJ4EK-xrrajtht.js} +1277 -10
  25. package/dist/{debug-service-tm92ws5e.js → debug-service-hf2wb4tw.js} +9 -4
  26. package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
  27. package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
  28. package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-7f4sdff5.js} +17 -17
  29. package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
  30. package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
  31. package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
  32. package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
  33. package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
  34. package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
  35. package/dist/{index-n1ndwwsz.js → index-2j5tfjwv.js} +129 -76
  36. package/dist/{index-kc1h1yf6.js → index-ezxmyhan.js} +4 -4
  37. package/dist/{index-j2gw61z0.js → index-gb75pv5a.js} +111 -65
  38. package/dist/index-prn518fr.js +36 -0
  39. package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
  40. package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
  41. package/dist/index-wkmh1h6w.js +26 -0
  42. package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
  43. package/dist/index.js +13 -11
  44. package/dist/init-entry-points-52kvvbg9.js +15 -0
  45. package/dist/input-reader-zr71xcm9.js +13 -0
  46. package/dist/integration-service-fetcher-bpbz1gcx.js +68 -0
  47. package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
  48. package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
  49. package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
  50. package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
  51. package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
  52. package/dist/library-option-pbvkt66g.js +13 -0
  53. package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
  54. package/dist/manifest-rhee8kem.js +32 -0
  55. package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
  56. package/dist/{node-sync-service-7n5960qy.js → node-sync-service-q1a37d6n.js} +21 -15
  57. package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
  58. package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
  59. package/dist/{packager-tool-rfdkx9c9.js → packager-tool-00qmds4s.js} +254 -69
  60. package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
  61. package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
  62. package/dist/{packager-tool-anvg0etj.js → packager-tool-178xtejt.js} +191 -154
  63. package/dist/{packager-tool-j69tzg52.js → packager-tool-1dsedy7x.js} +59 -34
  64. package/dist/packager-tool-1yew22sn.js +9 -0
  65. package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
  66. package/dist/{packager-tool-z4phaas7.js → packager-tool-2x40ye7a.js} +21 -7
  67. package/dist/{packager-tool-p0rdmmvk.js → packager-tool-2xemp3b1.js} +2 -2
  68. package/dist/packager-tool-34ttsx9q.js +18 -0
  69. package/dist/{packager-tool-3zy717ga.js → packager-tool-36vkdb3h.js} +2 -2
  70. package/dist/{packager-tool-7hcpmn4g.js → packager-tool-380ac64s.js} +61 -11
  71. package/dist/{packager-tool-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
  72. package/dist/packager-tool-3k5j706w.js +73 -0
  73. package/dist/{packager-tool-scy94jyb.js → packager-tool-4seehsme.js} +2 -72
  74. package/dist/{packager-tool-es77jvky.js → packager-tool-4w7nzx18.js} +360 -44
  75. package/dist/{packager-tool-4avchhz8.js → packager-tool-57970zfm.js} +12 -7
  76. package/dist/{packager-tool-bjt8b2nz.js → packager-tool-5s476jdt.js} +13 -13
  77. package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
  78. package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
  79. package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
  80. package/dist/packager-tool-c9h0rwgv.js +31 -0
  81. package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
  82. package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
  83. package/dist/{packager-tool-m4kp6a7j.js → packager-tool-ej14cxen.js} +22 -22
  84. package/dist/{packager-tool-5w0gjcck.js → packager-tool-engs9gvj.js} +1 -1
  85. package/dist/{packager-tool-stdwmgvd.js → packager-tool-exrjwmew.js} +202 -83
  86. package/dist/{task-type-declaration-yhczvj05.js → packager-tool-f9n5mk1c.js} +8 -12
  87. package/dist/{packager-tool-b2q8m9pq.js → packager-tool-fspmvh6g.js} +5 -4
  88. package/dist/packager-tool-geh2qybm.js +179 -0
  89. package/dist/{packager-tool-17b466mr.js → packager-tool-hrd44w8g.js} +7561 -6408
  90. package/dist/{packager-tool-snesn0bt.js → packager-tool-j1etnthk.js} +19 -14
  91. package/dist/{packager-tool-k871wgpe.js → packager-tool-j53d4vv1.js} +18 -4
  92. package/dist/{packager-tool-6ewsbrnb.js → packager-tool-j8mnpsv8.js} +329 -149
  93. package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
  94. package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
  95. package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
  96. package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
  97. package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
  98. package/dist/packager-tool-n6h4bz4d.js +22 -0
  99. package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
  100. package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
  101. package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
  102. package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
  103. package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
  104. package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
  105. package/dist/packager-tool-vmfd007q.js +27 -0
  106. package/dist/packager-tool-wvf6b31h.js +50 -0
  107. package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
  108. package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
  109. package/dist/{packager-tool-jkwpw95j.js → packager-tool-z13dp55w.js} +3393 -3092
  110. package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
  111. package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
  112. package/dist/packager-tool.js +2 -2
  113. package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
  114. package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-77yctm8b.js} +1 -1
  115. package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
  116. package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
  117. package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
  118. package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
  119. package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
  120. package/dist/{resourcesSyncService-y5r4k43w.js → resourcesSyncService-gegbd8b8.js} +49 -26
  121. package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
  122. package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
  123. package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
  124. package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
  125. package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
  126. package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
  127. package/dist/{sdd-resolve-siblings-xsm2ktkq.js → sdd-resolve-siblings-qz7gwws5.js} +4 -4
  128. package/dist/solution-auth-yb1twb9d.js +11 -0
  129. package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
  130. package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
  131. package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
  132. package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
  133. package/dist/taggable-variables-gc58xb0s.js +6094 -0
  134. package/dist/task-type-declaration-b0ejzhc6.js +15 -0
  135. package/dist/tool.js +13 -11
  136. package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
  137. package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
  138. package/dist/{trigger-enrichment-service-dzkht78s.js → trigger-enrichment-service-bsj58ppa.js} +33 -32
  139. package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
  140. package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
  141. package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
  142. package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
  143. package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
  144. package/package.json +2 -2
  145. package/dist/case-pack-service-adhg30nq.js +0 -167
  146. package/dist/index-garh9kcd.js +0 -35
  147. package/dist/input-reader-pjt4a914.js +0 -10
  148. package/dist/packager-tool-v11fx4dk.js +0 -25
  149. package/dist/solution-auth-a1p22hq1.js +0 -11
  150. package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./packager-tool-z070caqq.js";
3
+ } from "./packager-tool-p64w2wrt.js";
4
4
  import {
5
5
  catchError2,
6
6
  logger
7
- } from "./packager-tool-6ewsbrnb.js";
7
+ } from "./packager-tool-j8mnpsv8.js";
8
+ import"./packager-tool-wvf6b31h.js";
8
9
  import {
9
10
  stripJsonStringGuard
10
- } from "./packager-tool-h2ar8xf8.js";
11
+ } from "./packager-tool-00ck60cc.js";
11
12
  import {
12
13
  EXTERNAL_TASK_TYPES,
13
14
  CONTAINER_INPUT_TASK_TYPES,
@@ -16,24 +17,25 @@ import {
16
17
  serviceTypesFor,
17
18
  isMappedExecution,
18
19
  serviceTypeFor
19
- } from "./packager-tool-7x1tmb8a.js";
20
+ } from "./packager-tool-jydreskq.js";
20
21
  import {
21
22
  RESULT_OUTPUT_NAME,
22
23
  RESULT_OUTPUT_SOURCE
23
- } from "./packager-tool-wy3a65rx.js";
24
+ } from "./packager-tool-bw4fsdq4.js";
24
25
  import {
25
26
  contextEntries,
26
27
  contextEntry,
28
+ entryValue,
27
29
  missingContextKeys,
28
30
  readActivityTypeId,
29
31
  ACTIVITY_TYPE_ID_PATH,
30
32
  activityTypeIdMessage
31
- } from "./packager-tool-p0rdmmvk.js";
33
+ } from "./packager-tool-2xemp3b1.js";
32
34
  import {
33
35
  validateIntSvcNode
34
- } from "./packager-tool-jkwpw95j.js";
35
- import"./packager-tool-q26hncjr.js";
36
- import"./packager-tool-dn9d4ywm.js";
36
+ } from "./packager-tool-z13dp55w.js";
37
+ import"./packager-tool-n3r5apbb.js";
38
+ import"./packager-tool-c0pavv0s.js";
37
39
  import {
38
40
  gateKey,
39
41
  canonicalVariableType
@@ -51,8 +53,11 @@ import {
51
53
  BINDING_REFERENCE_PREFIX
52
54
  } from "./packager-tool-nfhtwa72.js";
53
55
  import {
54
- readRegistryLedger
55
- } from "./packager-tool-z1fw9a8v.js";
56
+ readRegistryLedger,
57
+ VARIABLE_GROUPS,
58
+ DECLARING_GROUPS,
59
+ asRecord
60
+ } from "./packager-tool-y69796fy.js";
56
61
  import {
57
62
  VALID_TASK_ENTRY_RULE_TYPES,
58
63
  VALID_STAGE_ENTRY_RULE_TYPES,
@@ -61,21 +66,46 @@ import {
61
66
  VALID_CASE_COMPLETION_RULE_TYPES,
62
67
  VALID_CASE_EXIT_RULE_TYPES
63
68
  } from "./packager-tool-35c9npcy.js";
69
+ import {
70
+ VALID_BINDING_ID_REGEX,
71
+ invalidBindingIdMessage
72
+ } from "./packager-tool-zte9svtn.js";
64
73
  import {
65
74
  loadCaseSchemaAsync
66
75
  } from "./packager-tool-zrbnms9b.js";
67
76
  import"./packager-tool-68648y3j.js";
68
77
 
78
+ // src/services/binding-id-findings.ts
79
+ var bindingIdFindings = (parsed) => {
80
+ if (!Array.isArray(parsed.bindings))
81
+ return [];
82
+ const issues = [];
83
+ for (const raw of parsed.bindings) {
84
+ const id = raw?.id;
85
+ if (typeof id !== "string" || VALID_BINDING_ID_REGEX.test(id)) {
86
+ continue;
87
+ }
88
+ const { message, instruction } = invalidBindingIdMessage(id);
89
+ issues.push({
90
+ code: "CASE_MGMT_BINDING_ID_NOT_IDENTIFIER",
91
+ path: `bindings[${id}].id`,
92
+ severity: "error",
93
+ message: `${message} ${instruction} Then run 'uip maestro case bindings sync <file>' so bindings_v2.json follows.`
94
+ });
95
+ }
96
+ return issues;
97
+ };
98
+
69
99
  // src/services/case-validators/business-rule-output-validator.ts
70
- var asRecord = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
100
+ var asRecord2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
71
101
  var OUTPUT_READ = `=${RESULT_OUTPUT_NAME}`;
72
102
  var knownDecisions = (outputs) => {
73
103
  for (const entry of outputs) {
74
- const row = asRecord(entry);
104
+ const row = asRecord2(entry);
75
105
  if (row?.source !== RESULT_OUTPUT_SOURCE)
76
106
  continue;
77
- const schema = asRecord(row.body ?? row._jsonSchema);
78
- const properties = asRecord(schema?.properties);
107
+ const schema = asRecord2(row.body ?? row._jsonSchema);
108
+ const properties = asRecord2(schema?.properties);
79
109
  if (properties) {
80
110
  const names = Object.keys(properties);
81
111
  if (names.length > 0)
@@ -96,7 +126,7 @@ var businessRuleOutputSourceValidator = {
96
126
  id: "uipath-business-rule-output-source",
97
127
  appliesTo: (task) => task.type === "business-rule",
98
128
  validate: (task, ctx) => {
99
- const data = asRecord(task.data);
129
+ const data = asRecord2(task.data);
100
130
  const outputs = Array.isArray(data?.outputs) ? data.outputs : [];
101
131
  const decisions = knownDecisions(outputs);
102
132
  if (decisions === undefined || decisions.has(RESULT_OUTPUT_NAME)) {
@@ -105,7 +135,7 @@ var businessRuleOutputSourceValidator = {
105
135
  const name = task.displayName ?? task.id ?? "task";
106
136
  const issues = [];
107
137
  for (const entry of outputs) {
108
- const row = asRecord(entry);
138
+ const row = asRecord2(entry);
109
139
  const source = row?.source;
110
140
  if (typeof source !== "string")
111
141
  continue;
@@ -342,15 +372,24 @@ var VALUE_FIELD = {
342
372
  timeDate: "timeDate",
343
373
  timeCycle: "timeCycle"
344
374
  };
345
- function issue(stageId, taskId, code, message) {
375
+ function issue(stageId, taskId, code, message, severity = "error") {
346
376
  return {
347
377
  code,
348
378
  path: `nodes[${stageId}].data.tasks[${taskId ?? "?"}].data`,
349
379
  message,
350
- severity: "error"
380
+ severity
351
381
  };
352
382
  }
353
- var timerTaskValidator = {
383
+ function outputsIssues(task, ctx) {
384
+ const data = task.data;
385
+ if (!Array.isArray(data?.outputs) || data.outputs.length === 0)
386
+ return [];
387
+ const name = task.displayName ?? task.id ?? "wait-for-timer task";
388
+ return [
389
+ issue(ctx.stageId, task.id, "TIMER_TASK_OUTPUTS_IGNORED", `Timer task "${name}" declares "data.outputs", but pack drops them on a wait-for-timer task, so no variable is written. Move the writes to a script task placed after the timer.`, "warning")
390
+ ];
391
+ }
392
+ var timerConfigValidator = {
354
393
  id: "uipath-wait-for-timer",
355
394
  appliesTo: (task) => task.type === "wait-for-timer",
356
395
  validate: (task, ctx) => {
@@ -383,9 +422,16 @@ var timerTaskValidator = {
383
422
  return [];
384
423
  }
385
424
  };
425
+ var timerTaskValidator = {
426
+ ...timerConfigValidator,
427
+ validate: (task, ctx) => [
428
+ ...timerConfigValidator.validate(task, ctx),
429
+ ...outputsIssues(task, ctx)
430
+ ]
431
+ };
386
432
  // src/services/case-validators/strict-task-validators.ts
387
433
  var TRIGGER_TASK_TYPES = new Set(["wait-for-connector"]);
388
- var asRecord2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
434
+ var asRecord3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
389
435
  var asArray = (value) => Array.isArray(value) ? value : [];
390
436
  var VARS_READS = [
391
437
  /\bvars\.([A-Za-z_$][A-Za-z0-9_$]*)/g,
@@ -400,7 +446,7 @@ var readsIdentifier = (expression, name) => {
400
446
  }
401
447
  return false;
402
448
  };
403
- var taskData = (task) => asRecord2(task.data);
449
+ var taskData = (task) => asRecord3(task.data);
404
450
  var taskLabel = (task) => task.displayName ?? task.id ?? "task";
405
451
  var taskPath = (stageId, task) => `nodes[${stageId}].data.tasks[${task.id ?? "?"}]`;
406
452
  var serviceTypeMismatch = (task, stageId, context) => {
@@ -451,7 +497,7 @@ var strictConnectorContextValidator = {
451
497
  const serviceTypeIssue = serviceTypeMismatch(task, ctx.stageId, context);
452
498
  if (serviceTypeIssue !== undefined)
453
499
  issues.push(serviceTypeIssue);
454
- const bodyInput = TRIGGER_TASK_TYPES.has(task.type ?? "") ? undefined : asArray(taskData(task)?.inputs).map((entry) => asRecord2(entry)).find((entry) => entry?.name === "body");
500
+ const bodyInput = TRIGGER_TASK_TYPES.has(task.type ?? "") ? undefined : asArray(taskData(task)?.inputs).map((entry) => asRecord3(entry)).find((entry) => entry?.name === "body");
455
501
  if (bodyInput !== undefined && !bodyInput.target) {
456
502
  issues.push({
457
503
  code: "STRICT_CONNECTOR_BODY_TARGET",
@@ -512,12 +558,12 @@ var strictOutputShapeValidator = {
512
558
  const base = `${taskPath(ctx.stageId, task)}.data.outputs`;
513
559
  const writtenAt = new Map;
514
560
  asArray(taskData(task)?.outputs).forEach((entry, index) => {
515
- const name = asRecord2(entry)?.var;
561
+ const name = asRecord3(entry)?.var;
516
562
  if (typeof name === "string" && name !== "" && !writtenAt.has(name))
517
563
  writtenAt.set(name, index);
518
564
  });
519
565
  asArray(taskData(task)?.outputs).forEach((entry, index) => {
520
- const output = asRecord2(entry);
566
+ const output = asRecord3(entry);
521
567
  if (!output)
522
568
  return;
523
569
  const label = typeof output.name === "string" ? output.name : `#${index}`;
@@ -558,7 +604,7 @@ var strictInputReferenceValidator = {
558
604
  const issues = [];
559
605
  const base = `${taskPath(ctx.stageId, task)}.data.inputs`;
560
606
  asArray(taskData(task)?.inputs).forEach((entry, index) => {
561
- const input = asRecord2(entry);
607
+ const input = asRecord3(entry);
562
608
  if (!input)
563
609
  return;
564
610
  const label = typeof input.name === "string" ? input.name : `#${index}`;
@@ -581,6 +627,8 @@ var strictInputReferenceValidator = {
581
627
  }
582
628
  if (/^=vars\.[A-Za-z0-9_]+$/.test(value))
583
629
  return;
630
+ if (String(task.type) === "script" && label === "vars" && value === "=vars")
631
+ return;
584
632
  issues.push({
585
633
  code: "STRICT_INPUT_REF_FORM",
586
634
  path: `${base}[${label}]`,
@@ -628,8 +676,32 @@ var strictTaskElementIdValidator = {
628
676
  ];
629
677
  }
630
678
  };
679
+ var DOCUMENT_EXTRACTION_CONTEXT_KEYS = [
680
+ "folderKey",
681
+ "modelName",
682
+ "digitizationMode"
683
+ ];
684
+ var strictDocumentExtractionContextValidator = {
685
+ id: "strict-document-extraction-context",
686
+ appliesTo: (task) => String(task.type) === "document-extraction" && Object.keys(taskData(task) ?? {}).length > 0,
687
+ validate: (task, ctx) => {
688
+ const context = taskData(task)?.context;
689
+ const missing = DOCUMENT_EXTRACTION_CONTEXT_KEYS.filter((key) => entryValue(context, key) === undefined);
690
+ if (missing.length === 0)
691
+ return [];
692
+ return [
693
+ {
694
+ code: "STRICT_DOCUMENT_EXTRACTION_CONTEXT_INCOMPLETE",
695
+ path: `${taskPath(ctx.stageId, task)}.data.context`,
696
+ severity: "error",
697
+ message: `Document extraction task "${taskLabel(task)}" has no ` + `value for context entries: ${missing.join(", ")}. ` + "Without folderKey and modelName, pack writes the task " + "with no IXP activity; without digitizationMode, the " + "engine rejects it. Either way the task never runs. Add " + "them to data.context: folderKey and modelName are the " + "deployment's FolderKey and DeploymentName from " + "`uip ixp deployments list <project-name>`, and " + 'digitizationMode is "fileUpload". Each entry is ' + '{ "name": "<key>", "type": "string", "value": "<value>" } ' + "in the data.context array, e.g. " + '{ "name": "digitizationMode", "type": "string", "value": "fileUpload" }.'
698
+ }
699
+ ];
700
+ }
701
+ };
631
702
  var strictTaskValidators = [
632
703
  strictConnectorContextValidator,
704
+ strictDocumentExtractionContextValidator,
633
705
  strictOutputShapeValidator,
634
706
  strictInputReferenceValidator,
635
707
  strictActionCatalogValidator,
@@ -677,20 +749,48 @@ var findRegistryLedger = async (fs, casePlanPath) => {
677
749
  return;
678
750
  };
679
751
 
752
+ // src/services/variable-element-id-findings.ts
753
+ var variableElementIdFindings = (parsed) => {
754
+ const variables = asRecord(parsed.variables);
755
+ if (variables === undefined)
756
+ return [];
757
+ const issues = [];
758
+ for (const group of DECLARING_GROUPS) {
759
+ const entries = variables[group];
760
+ if (!Array.isArray(entries))
761
+ continue;
762
+ for (const [at, raw] of entries.entries()) {
763
+ const entry = asRecord(raw);
764
+ if (entry === undefined)
765
+ continue;
766
+ if (typeof entry.elementId === "string" && entry.elementId !== "") {
767
+ continue;
768
+ }
769
+ const id = typeof entry.id === "string" ? entry.id : undefined;
770
+ const name = typeof entry.name === "string" ? entry.name : id ?? String(at);
771
+ issues.push({
772
+ code: "CASE_MGMT_VARIABLE_ELEMENT_ID_MISSING",
773
+ path: `variables.${group}[${name}].elementId`,
774
+ severity: "warning",
775
+ message: `Variable "${name}" has no elementId. Full validation only counts a declaration that has one, so "=vars.${id ?? name}" reports "Variable 'vars.${id ?? name}' does not exist" (--skeleton skips that check, --skeleton-v2 for references inside tasks). Set "elementId": "root" for case state, or the trigger node's id for an In argument.`
776
+ });
777
+ }
778
+ }
779
+ return issues;
780
+ };
781
+
680
782
  // src/services/variable-type-findings.ts
681
- var GROUPS = ["inputs", "outputs", "inputOutputs"];
682
- var asRecord3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
683
783
  var variableTypeFindings = (parsed) => {
684
- const variables = asRecord3(parsed.variables);
784
+ const variables = asRecord(parsed.variables);
685
785
  if (variables === undefined)
686
786
  return [];
687
787
  const issues = [];
688
- for (const group of GROUPS) {
788
+ for (const group of VARIABLE_GROUPS) {
689
789
  const entries = variables[group];
690
790
  if (!Array.isArray(entries))
691
791
  continue;
692
792
  for (const [at, raw] of entries.entries()) {
693
- const entry = asRecord3(raw);
793
+ const entry = asRecord(raw);
694
794
  const type = entry?.type;
695
795
  if (typeof type !== "string")
696
796
  continue;
@@ -720,6 +820,12 @@ var mapCanvasSeverity = (severity) => {
720
820
  const normalized = (severity ?? "error").toUpperCase();
721
821
  return normalized === "CRITICAL" || normalized === "ERROR" ? "error" : "warning";
722
822
  };
823
+ var withDescription = (message, description) => {
824
+ const detail = description?.trim();
825
+ if (!detail || message.includes(detail))
826
+ return message;
827
+ return `${message.replace(/\.$/, "")}. ${detail}`;
828
+ };
723
829
  var checksTaskContent = (profile) => profile === "full" || profile === "strict";
724
830
  var SKELETON_V2_SKIPPED_CANVAS_CODES = new Set([
725
831
  "CASE_MGMT_STAGE_TASKS_MISSING",
@@ -1862,7 +1968,7 @@ var findRecipientShapeDefects = (nodes) => {
1862
1968
  return found;
1863
1969
  };
1864
1970
  var CONDITION_KEYS = {
1865
- entry: new Set(["id", "displayName", "rules", "isInterrupting"]),
1971
+ entry: new Set(["id", "displayName", "rules", "isInterrupting", "edgeIds"]),
1866
1972
  exit: new Set([
1867
1973
  "id",
1868
1974
  "displayName",
@@ -1971,6 +2077,8 @@ class CaseValidateService {
1971
2077
  const taskContent = checksTaskContent(profile);
1972
2078
  const slaContent = profile !== "skeleton";
1973
2079
  issues.push(...variableTypeFindings(parsed));
2080
+ issues.push(...variableElementIdFindings(parsed));
2081
+ issues.push(...bindingIdFindings(parsed));
1974
2082
  const name = parsed.name;
1975
2083
  if (typeof name !== "string" || name.trim() === "") {
1976
2084
  issues.push({
@@ -2435,7 +2543,7 @@ Validating: ${absolutePath}
2435
2543
  issues.push({
2436
2544
  code: ce.code,
2437
2545
  path: ce.elementId ? `nodes[${ce.elementId}]` : "(root)",
2438
- message: ce.message,
2546
+ message: withDescription(ce.message, ce.description),
2439
2547
  severity: mapCanvasSeverity(ce.severity)
2440
2548
  });
2441
2549
  }
@@ -2448,7 +2556,7 @@ Validating: ${absolutePath}
2448
2556
  issues.push(...this.runSupplementalRules(parsed, profile));
2449
2557
  }
2450
2558
  if (diskResult.valid && profile === "strict") {
2451
- const { runStrictCaseRules } = await import("./strict-case-rules-045kbjvv.js");
2559
+ const { runStrictCaseRules } = await import("./strict-case-rules-x1sytx3e.js");
2452
2560
  issues.push(...runStrictCaseRules(parsed));
2453
2561
  issues.push(...await this.checkBindingsSidecar(absolutePath, parsed));
2454
2562
  issues.push(...await this.checkEntryPointsSidecar(absolutePath, parsed));
@@ -2456,7 +2564,7 @@ Validating: ${absolutePath}
2456
2564
  const sddPath = this.fs.path.resolve(options.sddPath);
2457
2565
  if (await this.fs.exists(sddPath)) {
2458
2566
  const sddText = await this.fs.readFile(sddPath, "utf-8") ?? "";
2459
- const { auditCaseplanAgainstSdd } = await import("./strict-sdd-audit-6es2j6fs.js");
2567
+ const { auditCaseplanAgainstSdd } = await import("./strict-sdd-audit-z1bg2zr0.js");
2460
2568
  issues.push(...auditCaseplanAgainstSdd(parsed, sddText, this.fs.path.basename(sddPath), await findRegistryLedger(this.fs, absolutePath)));
2461
2569
  } else {
2462
2570
  issues.push({
@@ -2499,13 +2607,13 @@ Validating: ${absolutePath}
2499
2607
  if (parseError) {
2500
2608
  return unreadable(`is not JSON (${parseError.message})`);
2501
2609
  }
2502
- const { checkEntryPoints } = await import("./strict-entry-points-wd85a81g.js");
2610
+ const { checkEntryPoints } = await import("./strict-entry-points-anxeg692.js");
2503
2611
  return checkEntryPoints(document, parsed, this.fs.path.basename(candidate), this.fs.path.basename(casePlanPath));
2504
2612
  }
2505
2613
  return [];
2506
2614
  }
2507
2615
  async checkBindingsSidecar(casePlanPath, parsed) {
2508
- const { compareCaseBindingsV2 } = await import("./case-bindings-service-9zemt0r2.js");
2616
+ const { compareCaseBindingsV2 } = await import("./case-bindings-service-5r7c70kz.js");
2509
2617
  const [error, comparison] = await catchError2(compareCaseBindingsV2(casePlanPath, parsed));
2510
2618
  if (error || comparison === undefined)
2511
2619
  return [];
@@ -2609,4 +2717,4 @@ export {
2609
2717
  CaseValidateService
2610
2718
  };
2611
2719
 
2612
- //# debugId=9A8A859F3408925664756E2164756E21
2720
+ //# debugId=A9B7D9A95742658464756E2164756E21
@@ -11,33 +11,34 @@ import {
11
11
  extractFieldDefinitions2,
12
12
  enrichConnectorRegistryEntry2,
13
13
  enrichConnectorActivity2
14
- } from "./packager-tool-m4kp6a7j.js";
15
- import"./packager-tool-7hcpmn4g.js";
16
- import"./packager-tool-k871wgpe.js";
17
- import"./packager-tool-wy3a65rx.js";
18
- import"./packager-tool-7x1tmb8a.js";
19
- import"./packager-tool-3r23qsca.js";
20
- import"./packager-tool-scy94jyb.js";
21
- import"./packager-tool-rfdkx9c9.js";
22
- import"./packager-tool-3zy717ga.js";
23
- import"./packager-tool-j69tzg52.js";
24
- import"./packager-tool-jkwpw95j.js";
14
+ } from "./packager-tool-ej14cxen.js";
15
+ import"./packager-tool-bw4fsdq4.js";
16
+ import"./packager-tool-jydreskq.js";
17
+ import"./packager-tool-380ac64s.js";
18
+ import"./packager-tool-j53d4vv1.js";
19
+ import"./packager-tool-ef43cy32.js";
20
+ import"./packager-tool-4seehsme.js";
21
+ import"./packager-tool-00qmds4s.js";
22
+ import"./packager-tool-36vkdb3h.js";
25
23
  import"./packager-tool-xb16e3tz.js";
26
- import"./packager-tool-v11fx4dk.js";
27
- import"./packager-tool-ad8v11jd.js";
28
- import"./packager-tool-bjt8b2nz.js";
29
- import"./packager-tool-17b466mr.js";
24
+ import"./packager-tool-1dsedy7x.js";
25
+ import"./packager-tool-z13dp55w.js";
26
+ import"./packager-tool-c9h0rwgv.js";
27
+ import"./packager-tool-p4c1g2sj.js";
28
+ import"./packager-tool-5s476jdt.js";
29
+ import"./packager-tool-hrd44w8g.js";
30
30
  import"./packager-tool-jv5byaww.js";
31
- import"./packager-tool-cdvrca04.js";
32
- import"./packager-tool-5dptce1y.js";
33
- import"./packager-tool-pq9xv4vq.js";
34
- import"./packager-tool-es77jvky.js";
35
- import"./packager-tool-dn9d4ywm.js";
36
- import"./packager-tool-q26hncjr.js";
31
+ import"./packager-tool-x9z4krtr.js";
32
+ import"./packager-tool-rzxnm9yj.js";
33
+ import"./packager-tool-zte9svtn.js";
34
+ import"./packager-tool-4w7nzx18.js";
35
+ import"./packager-tool-wvf6b31h.js";
36
+ import"./packager-tool-c0pavv0s.js";
37
+ import"./packager-tool-n3r5apbb.js";
37
38
  import"./packager-tool-68648y3j.js";
38
- import"./packager-tool-h2ar8xf8.js";
39
- import"./packager-tool-6ewsbrnb.js";
40
- import"./packager-tool-z070caqq.js";
39
+ import"./packager-tool-00ck60cc.js";
40
+ import"./packager-tool-j8mnpsv8.js";
41
+ import"./packager-tool-p64w2wrt.js";
41
42
  export {
42
43
  buildConnectorContext2 as buildConnectorContext,
43
44
  buildParameterInputs2 as buildParameterInputs,
@@ -53,4 +54,4 @@ export {
53
54
  resolveActivityOperation2 as resolveActivityOperation
54
55
  };
55
56
 
56
- //# debugId=408225B705CFC65464756E2164756E21
57
+ //# debugId=19FD4D009282B1C764756E2164756E21
@@ -3,12 +3,15 @@ var FLOW_SDK_LIBRARY_URL = "https://download.uipath.com/maestro/registry/library
3
3
  var MOUNT_PATH = "/library";
4
4
  var LIBRARY_JSON = `${MOUNT_PATH}/integrations/library-json`;
5
5
  var READ_TEXT_SLOT = "uipath.maestro-builder-sdk.readText";
6
+ var CACHE_KEY_URL = "https://connector-library.invalid/library-json.zip";
6
7
 
7
8
  class ConnectorLibraryError extends Error {
8
9
  errorCode;
9
- constructor(message, errorCode) {
10
+ unreachable;
11
+ constructor(message, errorCode, unreachable = errorCode === "network_error") {
10
12
  super(message);
11
13
  this.errorCode = errorCode;
14
+ this.unreachable = unreachable;
12
15
  }
13
16
  }
14
17
  function createConnectorLibraryLoader(deps) {
@@ -49,15 +52,16 @@ async function loadLibrary({
49
52
  fetch: fetch2,
50
53
  openCache
51
54
  }) {
52
- const sha256 = expectedChecksum(await (await fetchOk(fetch2, `${url}.sha256`)).text(), url);
53
- const key = new Request(`${url}?sha256=${sha256}`);
55
+ const sidecar = `${url}.sha256`;
56
+ const sha256 = expectedChecksum(await readBody(sidecar, await fetchOk(fetch2, sidecar), (r) => r.text()), url);
57
+ const key = new Request(`${CACHE_KEY_URL}?sha256=${sha256}`);
54
58
  const cache = await openCache().catch(() => {
55
59
  return;
56
60
  });
57
61
  const cached = await cache?.match(key);
58
62
  if (cached)
59
63
  return { sha256, archive: await cached.blob() };
60
- const archive = await (await fetchOk(fetch2, url)).blob();
64
+ const archive = await readBody(url, await fetchOk(fetch2, url), (r) => r.blob());
61
65
  const actual = hex(await crypto.subtle.digest("SHA-256", await archive.arrayBuffer()));
62
66
  if (actual !== sha256) {
63
67
  throw new ConnectorLibraryError(`${url} does not match its checksum: expected ${sha256}, received ${actual}`, "server_error");
@@ -80,10 +84,20 @@ async function fetchOk(fetch2, url) {
80
84
  }
81
85
  return response;
82
86
  }
87
+ async function readBody(url, response, read) {
88
+ try {
89
+ return await read(response);
90
+ } catch (error) {
91
+ if (error instanceof TypeError || error instanceof Error && error.name === "AbortError") {
92
+ throw new ConnectorLibraryError(`downloading ${url} failed: ${error.message}`, "network_error");
93
+ }
94
+ throw error;
95
+ }
96
+ }
83
97
  function expectedChecksum(body, url) {
84
98
  const hash = body.trim().split(/\s+/, 1)[0]?.toLowerCase() ?? "";
85
99
  if (!/^[a-f0-9]{64}$/.test(hash)) {
86
- throw new ConnectorLibraryError(`${url}.sha256 is not a sha256 checksum`, "server_error");
100
+ throw new ConnectorLibraryError(`${url}.sha256 is not a sha256 checksum`, "server_error", true);
87
101
  }
88
102
  return hash;
89
103
  }
@@ -96,4 +110,4 @@ export {
96
110
  sessionConnectorLibrary
97
111
  };
98
112
 
99
- //# debugId=714515F8E06CF78B64756E2164756E21
113
+ //# debugId=30F04C602D387CF664756E2164756E21
@@ -2,15 +2,15 @@ import {
2
2
  lookupTypeCacheEntry2,
3
3
  caseTypeCacheSource2,
4
4
  fetchConnectorConnections2
5
- } from "./packager-tool-7hcpmn4g.js";
6
- import"./packager-tool-k871wgpe.js";
7
- import"./packager-tool-jkwpw95j.js";
5
+ } from "./packager-tool-380ac64s.js";
6
+ import"./packager-tool-j53d4vv1.js";
7
+ import"./packager-tool-z13dp55w.js";
8
8
  import"./packager-tool-jv5byaww.js";
9
- import"./packager-tool-dn9d4ywm.js";
10
- import"./packager-tool-q26hncjr.js";
11
- import"./packager-tool-h2ar8xf8.js";
12
- import"./packager-tool-6ewsbrnb.js";
13
- import"./packager-tool-z070caqq.js";
9
+ import"./packager-tool-c0pavv0s.js";
10
+ import"./packager-tool-n3r5apbb.js";
11
+ import"./packager-tool-00ck60cc.js";
12
+ import"./packager-tool-j8mnpsv8.js";
13
+ import"./packager-tool-p64w2wrt.js";
14
14
  export {
15
15
  caseTypeCacheSource2 as caseTypeCacheSource,
16
16
  fetchConnectorConnections2 as fetchConnectorConnections,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  designerConnectorShape2,
3
3
  designerShapeConnectorTasks2
4
- } from "./packager-tool-xd1wbvay.js";
5
- import"./packager-tool-7x1tmb8a.js";
4
+ } from "./packager-tool-pq61r2f1.js";
5
+ import"./packager-tool-jydreskq.js";
6
6
  import"./packager-tool-68648y3j.js";
7
- import"./packager-tool-h2ar8xf8.js";
7
+ import"./packager-tool-00ck60cc.js";
8
8
  export {
9
9
  designerConnectorShape2 as designerConnectorShape,
10
10
  designerShapeConnectorTasks2 as designerShapeConnectorTasks