@uipath/case-tool 1.206.0-preview.301 → 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-ygfggamz.js → case-debug-solution-projects-5tr4pwbs.js} +2 -2
  12. package/dist/{case-debug-studio-web-service-hcbrw6f5.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-2kjqnhdt.js → case-validate-service-fxvq4qx7.js} +146 -38
  19. package/dist/{connector-enrichment-service-wq282h58.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-62t7j9km.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-8h77h81c.js → index-2j5tfjwv.js} +129 -76
  36. package/dist/{index-katfc3yn.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-m4zksnxd.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-tqn0a5bg.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-3aeetcr4.js → packager-tool-178xtejt.js} +191 -154
  63. package/dist/{packager-tool-gkmvcbkr.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-m4x2n2bx.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-81wpefzk.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-pg0qpfg8.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-7c14mwnb.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-27bstvae.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-mpj6ypwk.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-5x04aa70.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-krtxycbe.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,9 +1,9 @@
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
- } from "./packager-tool-6ewsbrnb.js";
6
+ } from "./packager-tool-j8mnpsv8.js";
7
7
 
8
8
  // src/services/sdd-lookup.ts
9
9
  var SDD_FILE_NAME = "sdd.md";
@@ -1,18 +1,21 @@
1
- import"./packager-tool-z070caqq.js";
1
+ import"./packager-tool-p64w2wrt.js";
2
2
  import {
3
3
  catchError2
4
- } from "./packager-tool-6ewsbrnb.js";
4
+ } from "./packager-tool-j8mnpsv8.js";
5
5
  import {
6
6
  namedValue
7
- } from "./packager-tool-fcektt1g.js";
7
+ } from "./packager-tool-0nbcqyvp.js";
8
8
  import {
9
9
  comparableFolder
10
10
  } from "./packager-tool-yaertxsw.js";
11
+ import {
12
+ pullFailureNextStep
13
+ } from "./packager-tool-34ttsx9q.js";
11
14
  import {
12
15
  MISSING_RESOURCE_INDEX,
13
16
  loadResourceIndex,
14
17
  loadIndexMetadata
15
- } from "./packager-tool-k871wgpe.js";
18
+ } from "./packager-tool-j53d4vv1.js";
16
19
  import {
17
20
  byCodeUnit
18
21
  } from "./packager-tool-1c30ttpm.js";
@@ -140,6 +143,7 @@ var resolveSddResources = async (model, options = {}) => {
140
143
  const indexes = new Map;
141
144
  const pulledAt = new Map;
142
145
  const missingIndexes = new Set;
146
+ const unavailable = new Map;
143
147
  const indexFor = async (cacheFile) => {
144
148
  const cached = indexes.get(cacheFile);
145
149
  if (cached !== undefined)
@@ -152,6 +156,18 @@ var resolveSddResources = async (model, options = {}) => {
152
156
  }
153
157
  if (error !== undefined || entries === null) {
154
158
  missingIndexes.add(cacheFile);
159
+ const [, meta] = await catchError2(loadIndexMetadata(cacheFile));
160
+ const failure = meta?.lastError;
161
+ if (typeof failure?.httpStatus === "number") {
162
+ unavailable.set(cacheFile, {
163
+ index: cacheFile,
164
+ at: new Date(failure.at).toISOString(),
165
+ httpStatus: failure.httpStatus,
166
+ errorCode: failure.errorCode ?? null,
167
+ retry: failure.retry ?? null,
168
+ message: failure.message
169
+ });
170
+ }
155
171
  return;
156
172
  }
157
173
  const rows = entries;
@@ -219,11 +235,12 @@ var resolveSddResources = async (model, options = {}) => {
219
235
  }
220
236
  const entries = await indexFor(mapping.cacheFile);
221
237
  if (entries === undefined) {
238
+ const failed = unavailable.get(mapping.cacheFile);
222
239
  resolved.push({
223
240
  ...base,
224
241
  ...empty,
225
242
  cacheFile: mapping.cacheFile,
226
- rationale: `the \`${mapping.cacheFile}\` index is not pulled, so this task was not searched — run \`uip maestro case registry pull\``
243
+ rationale: failed === undefined ? `the \`${mapping.cacheFile}\` index is not pulled, so this task was not searched — run \`uip maestro case registry pull\`` : `the \`${mapping.cacheFile}\` index is unavailable: its last \`registry pull\` failed with HTTP ${failed.httpStatus} at ${failed.at}, so this task was not searched`
227
244
  });
228
245
  continue;
229
246
  }
@@ -275,6 +292,7 @@ var resolveSddResources = async (model, options = {}) => {
275
292
  scope: {
276
293
  indexes: [...indexes.keys()].sort(byCodeUnit),
277
294
  missingIndexes: [...missingIndexes].sort(byCodeUnit),
295
+ unavailableIndexes: [...unavailable.values()].sort((a, b) => byCodeUnit(a.index, b.index)),
278
296
  siblingsChecked: options.siblings !== undefined,
279
297
  cache: cacheAge(pulledAt, options.now ?? Date.now())
280
298
  }
@@ -304,6 +322,15 @@ var cacheAge = (recorded, now) => {
304
322
  maxAgeSeconds: CACHE_MAX_AGE_SECONDS
305
323
  };
306
324
  };
325
+ var missingIndexWarning = (index, unavailable) => {
326
+ const failed = unavailable.find((entry) => entry.index === index);
327
+ if (failed === undefined) {
328
+ return `The \`${index}\` index is not pulled, so tasks needing it were not searched. Run \`uip maestro case registry pull\`.`;
329
+ }
330
+ const catalog = index.startsWith("typecache-") ? "Connector catalog unavailable" : `The \`${index}\` catalog is unavailable`;
331
+ const source = index.startsWith("typecache-") ? "Studio Web TypeCache" : "the tenant";
332
+ return `${catalog}: the last pull of \`${index}\` failed with HTTP ${failed.httpStatus} from ${source} at ${failed.at}, so tasks needing it were not searched. ${pullFailureNextStep(failed.errorCode, failed.retry, source)}`;
333
+ };
307
334
  var staleCacheWarning = (cache) => {
308
335
  if (cache?.stale !== true)
309
336
  return;
@@ -318,9 +345,10 @@ var staleCacheWarning = (cache) => {
318
345
  return `Resolved against a cache that may not match the tenant: ${reasons.join("; and ")}. Run \`uip maestro case registry pull --force\`, then resolve again.`;
319
346
  };
320
347
  export {
348
+ missingIndexWarning,
321
349
  resolveCacheFiles,
322
350
  resolveSddResources,
323
351
  staleCacheWarning
324
352
  };
325
353
 
326
- //# debugId=CCC5F49466629B0864756E2164756E21
354
+ //# debugId=1C5AD31FA3D11A8C64756E2164756E21
@@ -1,9 +1,9 @@
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
- } from "./packager-tool-6ewsbrnb.js";
6
+ } from "./packager-tool-j8mnpsv8.js";
7
7
  import {
8
8
  RESOURCE_TYPES
9
9
  } from "./packager-tool-jv5byaww.js";
@@ -23,7 +23,7 @@ var uipxNearCwd = async (dirs) => {
23
23
  return;
24
24
  };
25
25
  var loadSiblings = async (cacheFiles) => {
26
- const { findSolutionFromCwd, solutionSearchDirs } = await import("./index-krtxycbe.js");
26
+ const { findSolutionFromCwd, solutionSearchDirs } = await import("./index-prn518fr.js");
27
27
  const ctx = await findSolutionFromCwd();
28
28
  if (ctx === null) {
29
29
  const unread = await uipxNearCwd(solutionSearchDirs());
@@ -32,7 +32,7 @@ var loadSiblings = async (cacheFiles) => {
32
32
  }
33
33
  return;
34
34
  }
35
- const { loadResourceEnrichmentMap, readLocalResourcesForType } = await import("./localSolutionDiscovery-9pj8mzye.js");
35
+ const { loadResourceEnrichmentMap, readLocalResourcesForType } = await import("./localSolutionDiscovery-5sqz9dkr.js");
36
36
  const enrichment = await loadResourceEnrichmentMap(ctx.solutionDir);
37
37
  const byCacheFile = new Map;
38
38
  for (const cacheFile of new Set(cacheFiles)) {
@@ -0,0 +1,11 @@
1
+ import {
2
+ getSolutionAuthContext2
3
+ } from "./packager-tool-kh9gs4d5.js";
4
+ import"./packager-tool-c0pavv0s.js";
5
+ import"./packager-tool-n3r5apbb.js";
6
+ import"./packager-tool-p64w2wrt.js";
7
+ export {
8
+ getSolutionAuthContext2 as getSolutionAuthContext
9
+ };
10
+
11
+ //# debugId=8C64D22B8E0C22F864756E2164756E21
@@ -11,10 +11,10 @@ import {
11
11
  describeProjectsWithoutProcessResource2,
12
12
  explainNodeTypeWithoutProcessResource2,
13
13
  resourcesRefreshCommand2
14
- } from "./packager-tool-bjt8b2nz.js";
15
- import"./packager-tool-17b466mr.js";
16
- import"./packager-tool-6ewsbrnb.js";
17
- import"./packager-tool-z070caqq.js";
14
+ } from "./packager-tool-5s476jdt.js";
15
+ import"./packager-tool-hrd44w8g.js";
16
+ import"./packager-tool-j8mnpsv8.js";
17
+ import"./packager-tool-p64w2wrt.js";
18
18
  export {
19
19
  buildInSolutionNodes2 as buildInSolutionNodes,
20
20
  describeProjectsWithoutProcessResource2 as describeProjectsWithoutProcessResource,
@@ -9,14 +9,16 @@ import {
9
9
  readActivityTypeId,
10
10
  ACTIVITY_TYPE_ID_PATH,
11
11
  activityTypeIdMessage
12
- } from "./packager-tool-p0rdmmvk.js";
12
+ } from "./packager-tool-2xemp3b1.js";
13
13
  import {
14
14
  EXPRESSION_NAMESPACES
15
15
  } from "./packager-tool-mk9fmzdy.js";
16
16
  import {
17
- parse,
17
+ parse
18
+ } from "./packager-tool-4seehsme.js";
19
+ import {
18
20
  JINT_GLOBALS
19
- } from "./packager-tool-scy94jyb.js";
21
+ } from "./packager-tool-3k5j706w.js";
20
22
  import {
21
23
  byCodeUnit
22
24
  } from "./packager-tool-1c30ttpm.js";
@@ -116,6 +118,18 @@ var jsSyntaxError = (source) => {
116
118
  return error instanceof SyntaxError ? error.message : null;
117
119
  }
118
120
  };
121
+ var jsFunctionBodySyntaxError = (source) => {
122
+ try {
123
+ parse(source, {
124
+ ecmaVersion: "latest",
125
+ sourceType: "script",
126
+ allowReturnOutsideFunction: true
127
+ });
128
+ return null;
129
+ } catch (error) {
130
+ return error instanceof SyntaxError ? error.message : null;
131
+ }
132
+ };
119
133
  var interpolationEnd = (source, from) => {
120
134
  let index = from;
121
135
  let depth = 1;
@@ -293,10 +307,40 @@ var checkJsExpressionScope = (parsed) => {
293
307
  return issues;
294
308
  };
295
309
 
296
- // src/services/strict-case-rules.ts
297
- var FORMAL_ARG_ID = /^v[A-Za-z0-9]{8}$/;
310
+ // src/services/strict-script-rules.ts
298
311
  var asRecord2 = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
299
312
  var asArray = (value) => Array.isArray(value) ? value : [];
313
+ var checkScriptSyntax = (nodes) => nodes.flatMap((node) => {
314
+ const nodeId = typeof node.id === "string" ? node.id : "?";
315
+ return asArray(asRecord2(node.data)?.tasks).flatMap((lane) => asArray(lane).flatMap((entry) => {
316
+ const task = asRecord2(entry);
317
+ if (task?.type !== "script")
318
+ return [];
319
+ const script = asRecord2(task.data)?.script;
320
+ if (typeof script !== "string" || script.trim() === "")
321
+ return [];
322
+ const body = script.startsWith("=") ? script.slice(1) : script;
323
+ if (body.trim() === "")
324
+ return [];
325
+ const error = jsFunctionBodySyntaxError(body);
326
+ if (error === null)
327
+ return [];
328
+ const taskId = typeof task.id === "string" ? task.id : "?";
329
+ return [
330
+ {
331
+ code: "STRICT_SCRIPT_SYNTAX",
332
+ path: `nodes[${nodeId}].data.tasks[${taskId}].data.script`,
333
+ severity: "error",
334
+ message: `The script does not parse as JavaScript: ${error}. The body is compiled into the case as written, so the task fails when it runs. A script task's body reads case state through \`vars\` and returns its result: \`return { … }\`.`
335
+ }
336
+ ];
337
+ }));
338
+ });
339
+
340
+ // src/services/strict-case-rules.ts
341
+ var FORMAL_ARG_ID = /^v[A-Za-z0-9]{8}$/;
342
+ var asRecord3 = (value) => typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
343
+ var asArray2 = (value) => Array.isArray(value) ? value : [];
300
344
  var nodeType = (node) => typeof node.type === "string" ? node.type : "";
301
345
  var isStage = (node) => nodeType(node).startsWith("case-management:Stage") || nodeType(node) === "case-management:Stage";
302
346
  var checkStagesHaveTasks = (nodes) => {
@@ -304,9 +348,9 @@ var checkStagesHaveTasks = (nodes) => {
304
348
  for (const node of nodes) {
305
349
  if (!isStage(node))
306
350
  continue;
307
- const data = asRecord2(node.data);
308
- const lanes = asArray(data?.tasks);
309
- const taskCount = lanes.reduce((total, lane) => total + asArray(lane).length, 0);
351
+ const data = asRecord3(node.data);
352
+ const lanes = asArray2(data?.tasks);
353
+ const taskCount = lanes.reduce((total, lane) => total + asArray2(lane).length, 0);
310
354
  if (taskCount > 0)
311
355
  continue;
312
356
  const id = typeof node.id === "string" ? node.id : "?";
@@ -350,8 +394,8 @@ var argumentCompanionIssues = (variable, name, path, triggerIds) => {
350
394
  var checkVariableContract = (variables, triggerIds) => {
351
395
  const issues = [];
352
396
  for (const slot of ["inputs", "outputs", "inputOutputs"]) {
353
- asArray(variables?.[slot]).forEach((entry, index) => {
354
- const variable = asRecord2(entry);
397
+ asArray2(variables?.[slot]).forEach((entry, index) => {
398
+ const variable = asRecord3(entry);
355
399
  if (!variable)
356
400
  return;
357
401
  const name = typeof variable.name === "string" ? variable.name : `#${index}`;
@@ -384,10 +428,10 @@ var checkVariableContract = (variables, triggerIds) => {
384
428
  };
385
429
  var checkInputOutputCompanions = (variables, nodes) => {
386
430
  const issues = [];
387
- const companions = new Set(asArray(variables?.inputOutputs).map((entry) => asRecord2(entry)?.name).filter((name) => typeof name === "string"));
431
+ const companions = new Set(asArray2(variables?.inputOutputs).map((entry) => asRecord3(entry)?.name).filter((name) => typeof name === "string"));
388
432
  const unbound = (name) => !companions.has(name);
389
- asArray(variables?.inputs).forEach((entry) => {
390
- const variable = asRecord2(entry);
433
+ asArray2(variables?.inputs).forEach((entry) => {
434
+ const variable = asRecord3(entry);
391
435
  const name = variable?.name;
392
436
  if (typeof name !== "string" || !unbound(name))
393
437
  return;
@@ -400,15 +444,15 @@ var checkInputOutputCompanions = (variables, nodes) => {
400
444
  });
401
445
  for (const node of nodes) {
402
446
  const nodeId = typeof node.id === "string" ? node.id : "?";
403
- const data = asRecord2(node.data);
404
- for (const lane of asArray(data?.tasks)) {
405
- for (const task of asArray(lane)) {
406
- const taskRecord = asRecord2(task);
447
+ const data = asRecord3(node.data);
448
+ for (const lane of asArray2(data?.tasks)) {
449
+ for (const task of asArray2(lane)) {
450
+ const taskRecord = asRecord3(task);
407
451
  if (!taskRecord)
408
452
  continue;
409
453
  const taskId = typeof taskRecord.id === "string" ? taskRecord.id : "?";
410
- for (const output of asArray(asRecord2(taskRecord.data)?.outputs)) {
411
- const record = asRecord2(output);
454
+ for (const output of asArray2(asRecord3(taskRecord.data)?.outputs)) {
455
+ const record = asRecord3(output);
412
456
  if (record?.custom !== true)
413
457
  continue;
414
458
  const variableName = record.var;
@@ -433,7 +477,7 @@ var checkConnectorRuleContext = (nodes, bindings) => {
433
477
  const visitRule = (rule, path) => {
434
478
  if (rule.rule !== "wait-for-connector")
435
479
  return;
436
- const context = asRecord2(rule.uipath)?.context;
480
+ const context = asRecord3(rule.uipath)?.context;
437
481
  const missing = missingContextKeys(context, true, bindings);
438
482
  if (missing.length > 0) {
439
483
  issues.push({
@@ -455,13 +499,13 @@ var checkConnectorRuleContext = (nodes, bindings) => {
455
499
  }
456
500
  };
457
501
  const visitConditions = (conditions, path) => {
458
- asArray(conditions).forEach((condition, conditionIndex) => {
459
- const record = asRecord2(condition);
502
+ asArray2(conditions).forEach((condition, conditionIndex) => {
503
+ const record = asRecord3(condition);
460
504
  if (!record)
461
505
  return;
462
- asArray(record.rules).forEach((group, groupIndex) => {
463
- asArray(group).forEach((rule, ruleIndex) => {
464
- const ruleRecord = asRecord2(rule);
506
+ asArray2(record.rules).forEach((group, groupIndex) => {
507
+ asArray2(group).forEach((rule, ruleIndex) => {
508
+ const ruleRecord = asRecord3(rule);
465
509
  if (!ruleRecord)
466
510
  return;
467
511
  visitRule(ruleRecord, `${path}[${conditionIndex}].rules[${groupIndex}][${ruleIndex}]`);
@@ -471,12 +515,12 @@ var checkConnectorRuleContext = (nodes, bindings) => {
471
515
  };
472
516
  for (const node of nodes) {
473
517
  const id = typeof node.id === "string" ? node.id : "?";
474
- const data = asRecord2(node.data);
518
+ const data = asRecord3(node.data);
475
519
  visitConditions(data?.entryConditions, `nodes[${id}].data.entryConditions`);
476
520
  visitConditions(data?.exitConditions, `nodes[${id}].data.exitConditions`);
477
- for (const lane of asArray(data?.tasks)) {
478
- for (const task of asArray(lane)) {
479
- const taskRecord = asRecord2(task);
521
+ for (const lane of asArray2(data?.tasks)) {
522
+ for (const task of asArray2(lane)) {
523
+ const taskRecord = asRecord3(task);
480
524
  if (!taskRecord)
481
525
  continue;
482
526
  const taskId = typeof taskRecord.id === "string" ? taskRecord.id : "?";
@@ -521,10 +565,10 @@ var recipientIssues = (recipient, path) => {
521
565
  };
522
566
  var checkActionRecipientShape = (nodes) => nodes.flatMap((node) => {
523
567
  const nodeId = typeof node.id === "string" ? node.id : "?";
524
- const lanes = asArray(asRecord2(node.data)?.tasks);
525
- return lanes.flatMap((lane) => asArray(lane).flatMap((task) => {
526
- const taskRecord = asRecord2(task);
527
- const recipient = asRecord2(asRecord2(taskRecord?.data)?.recipient);
568
+ const lanes = asArray2(asRecord3(node.data)?.tasks);
569
+ return lanes.flatMap((lane) => asArray2(lane).flatMap((task) => {
570
+ const taskRecord = asRecord3(task);
571
+ const recipient = asRecord3(asRecord3(taskRecord?.data)?.recipient);
528
572
  if (!taskRecord || !recipient)
529
573
  return [];
530
574
  const taskId = typeof taskRecord.id === "string" ? taskRecord.id : "?";
@@ -559,7 +603,7 @@ var collectBindingReferences = (value, path, found) => {
559
603
  });
560
604
  return;
561
605
  }
562
- const record = asRecord2(value);
606
+ const record = asRecord3(value);
563
607
  if (record === undefined)
564
608
  return;
565
609
  for (const [key, entry] of Object.entries(record)) {
@@ -570,13 +614,13 @@ var isBindingReference = (value) => typeof value === "string" && value.startsWit
570
614
  var checkTaskBindings = (nodes) => {
571
615
  const issues = [];
572
616
  for (const node of nodes) {
573
- const stage = asRecord2(node.data);
617
+ const stage = asRecord3(node.data);
574
618
  const stageName = typeof stage?.label === "string" ? stage.label : "";
575
- for (const lane of asArray(stage?.tasks)) {
576
- for (const task of asArray(lane)) {
577
- const taskRecord = asRecord2(task);
619
+ for (const lane of asArray2(stage?.tasks)) {
620
+ for (const task of asArray2(lane)) {
621
+ const taskRecord = asRecord3(task);
578
622
  const type = taskRecord?.type;
579
- const data = asRecord2(taskRecord?.data);
623
+ const data = asRecord3(taskRecord?.data);
580
624
  if (typeof type !== "string" || !NAME_BOUND_TASK_TYPES.has(type) || data === undefined) {
581
625
  continue;
582
626
  }
@@ -613,11 +657,11 @@ var checkTaskBindings = (nodes) => {
613
657
  var resourceTaskCount = (nodes) => {
614
658
  let count = 0;
615
659
  for (const node of nodes) {
616
- for (const lane of asArray(asRecord2(node.data)?.tasks)) {
617
- for (const task of asArray(lane)) {
618
- const taskRecord = asRecord2(task);
660
+ for (const lane of asArray2(asRecord3(node.data)?.tasks)) {
661
+ for (const task of asArray2(lane)) {
662
+ const taskRecord = asRecord3(task);
619
663
  const type = taskRecord?.type;
620
- if (typeof type === "string" && RESOURCE_TASK_TYPES.has(type) && Object.keys(asRecord2(taskRecord?.data) ?? {}).length > 0) {
664
+ if (typeof type === "string" && RESOURCE_TASK_TYPES.has(type) && Object.keys(asRecord3(taskRecord?.data) ?? {}).length > 0) {
621
665
  count += 1;
622
666
  }
623
667
  }
@@ -627,7 +671,7 @@ var resourceTaskCount = (nodes) => {
627
671
  };
628
672
  var checkResourceBindings = (parsed, nodes) => {
629
673
  const issues = [];
630
- const bindings = asArray(parsed.bindings).map((entry) => asRecord2(entry)).filter((entry) => entry !== undefined);
674
+ const bindings = asArray2(parsed.bindings).map((entry) => asRecord3(entry)).filter((entry) => entry !== undefined);
631
675
  const bindingIds = new Set(bindings.map((entry) => entry.id).filter((id) => typeof id === "string"));
632
676
  const seenIds = new Set;
633
677
  const reportedIds = new Set;
@@ -700,7 +744,7 @@ var checkResourceBindings = (parsed, nodes) => {
700
744
  };
701
745
  var runStrictCaseRules = (parsed) => {
702
746
  const nodes = Array.isArray(parsed.nodes) ? parsed.nodes : [];
703
- const variables = asRecord2(parsed.variables);
747
+ const variables = asRecord3(parsed.variables);
704
748
  const triggerIds = new Set(nodes.flatMap((node) => (nodeType(node) === "uipath.case.trigger" || nodeType(node) === "case-management:Trigger") && typeof node.id === "string" ? [node.id] : []));
705
749
  return [
706
750
  ...checkStagesHaveTasks(nodes),
@@ -710,6 +754,7 @@ var runStrictCaseRules = (parsed) => {
710
754
  ...checkInputOutputCompanions(variables, nodes),
711
755
  ...checkConnectorRuleContext(nodes, parsed.bindings),
712
756
  ...checkActionRecipientShape(nodes),
757
+ ...checkScriptSyntax(nodes),
713
758
  ...checkResourceBindings(parsed, nodes),
714
759
  ...checkConnectionBindings(parsed)
715
760
  ];
@@ -718,4 +763,4 @@ export {
718
763
  runStrictCaseRules
719
764
  };
720
765
 
721
- //# debugId=56FE7E0C9B05D87764756E2164756E21
766
+ //# debugId=0B9F0C4409EE149064756E2164756E21
@@ -1,14 +1,14 @@
1
- import"./packager-tool-z070caqq.js";
2
- import"./packager-tool-6ewsbrnb.js";
3
- import"./packager-tool-h2ar8xf8.js";
4
- import"./packager-tool-65vr263d.js";
1
+ import"./packager-tool-p64w2wrt.js";
2
+ import"./packager-tool-j8mnpsv8.js";
3
+ import"./packager-tool-00ck60cc.js";
4
+ import"./packager-tool-qzyb1eac.js";
5
5
  import {
6
6
  entryPointIdsByNode2
7
- } from "./packager-tool-t8qx6hvn.js";
7
+ } from "./packager-tool-dv2vtyg0.js";
8
8
  import {
9
9
  currentTriggers2,
10
10
  entryPointIdOf2
11
- } from "./packager-tool-1hpd2gmh.js";
11
+ } from "./packager-tool-225b9qhq.js";
12
12
  import"./packager-tool-68648y3j.js";
13
13
 
14
14
  // src/services/strict-entry-points.ts
@@ -0,0 +1,28 @@
1
+ import {
2
+ VARIABLE_PLACEMENT2,
3
+ DEFAULT_GROUP2,
4
+ parseSddToJson2,
5
+ auditCaseplanAgainstSdd2
6
+ } from "./packager-tool-3hzsw5r7.js";
7
+ import"./packager-tool-yh8mmj3p.js";
8
+ import"./packager-tool-exrjwmew.js";
9
+ import"./packager-tool-engs9gvj.js";
10
+ import"./packager-tool-0nbcqyvp.js";
11
+ import"./packager-tool-mk9fmzdy.js";
12
+ import"./packager-tool-bw4fsdq4.js";
13
+ import"./packager-tool-jydreskq.js";
14
+ import"./packager-tool-nfhtwa72.js";
15
+ import"./packager-tool-4seehsme.js";
16
+ import"./packager-tool-1wgav5ma.js";
17
+ import"./packager-tool-68648y3j.js";
18
+ import"./packager-tool-00ck60cc.js";
19
+ import"./packager-tool-j8mnpsv8.js";
20
+ import"./packager-tool-p64w2wrt.js";
21
+ export {
22
+ DEFAULT_GROUP2 as DEFAULT_GROUP,
23
+ VARIABLE_PLACEMENT2 as VARIABLE_PLACEMENT,
24
+ auditCaseplanAgainstSdd2 as auditCaseplanAgainstSdd,
25
+ parseSddToJson2 as parseSddToJson
26
+ };
27
+
28
+ //# debugId=30489C0CA929408664756E2164756E21