@uipath/case-tool 1.201.0-preview.133 → 1.202.0-preview.134

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 (96) hide show
  1. package/dist/{authoring-aaaqwck3.js → authoring-jj4zkqer.js} +74 -48
  2. package/dist/{browser-strategy-rkcvc6tn.js → browser-strategy-6atc7v8s.js} +3 -3
  3. package/dist/case-api-2nfc0ynz.js +381 -0
  4. package/dist/case-debug-studio-web-service-e31g6mrp.js +335 -0
  5. package/dist/{case-pack-service-rvyqh3x3.js → case-pack-service-ye4shs12.js} +11 -18
  6. package/dist/case-validate-service-mayc7mw1.js +2114 -0
  7. package/dist/connector-enrichment-service-83pqstp8.js +60 -0
  8. package/dist/connector-lookup-service-59kkbbwm.js +22 -0
  9. package/dist/connector-task-spec-c54daswf.js +1250 -0
  10. package/dist/{de-5KVP66U6-t37qr521.js → de-5KVP66U6-1bnf4zt5.js} +54 -54
  11. package/dist/{de-5HU6GFWV-zheyw6d2.js → de-7XQXX2DK-tqdy5n2b.js} +857 -845
  12. package/dist/debug-service-77n8tv17.js +57 -0
  13. package/dist/{en-MABQK6C4-nkzq2j8t.js → en-5ZGC5VQ3-h581y30k.js} +897 -897
  14. package/dist/{en-4KXU7N7B-24v330b5.js → en-X3S6IZ5J-nhkg6pwn.js} +55 -61
  15. package/dist/enrichment-service-27j145k3.js +421 -0
  16. package/dist/{es-MX-POESXYP2-9538722k.js → es-MX-U2VN3SZW-anynsmd8.js} +857 -845
  17. package/dist/{es-MX-XAVLOQW3-47a405kf.js → es-MX-XAVLOQW3-q00km2y7.js} +54 -54
  18. package/dist/{es-VFPNVMP5-6sftsdxe.js → es-VFPNVMP5-bx2c337j.js} +54 -54
  19. package/dist/{es-LUTYN7U7-ye5zn4sn.js → es-ZGCPPOME-8gazspjj.js} +857 -845
  20. package/dist/{fr-E5MDO4EG-f3x1jeqw.js → fr-E5MDO4EG-c3mkty2t.js} +54 -54
  21. package/dist/{fr-LJIK56LW-xf3xf2kh.js → fr-T3G5GZCT-y3f7xb1q.js} +857 -845
  22. package/dist/index-67s20rhx.js +630 -0
  23. package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
  24. package/dist/index-k4xz16db.js +63712 -0
  25. package/dist/{index-p50kx6jv.js → index-k5tbd184.js} +276 -276
  26. package/dist/index-kwxe1vep.js +143 -0
  27. package/dist/{index-cncq089f.js → index-mhe5065f.js} +163 -80
  28. package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
  29. package/dist/index.js +16 -17
  30. package/dist/{index.umd.min-drpc57vn.js → index.umd.min-fqefd9kn.js} +3 -3
  31. package/dist/input-reader-vprf0kv6.js +11 -0
  32. package/dist/{ja-FGEGLBJ3-w9byjhze.js → ja-BI5K3JDZ-77zat4z2.js} +857 -845
  33. package/dist/{ja-DPO5PPLO-fmbg7zt2.js → ja-DPO5PPLO-mysfmznx.js} +54 -54
  34. package/dist/{js-yaml-cggj6w7q.js → js-yaml-87tvr6f6.js} +16 -16
  35. package/dist/known-types-qryebm95.js +15 -0
  36. package/dist/{ko-ITOPNIYI-aqy82jk8.js → ko-ITOPNIYI-hmxd2asd.js} +54 -54
  37. package/dist/{ko-TUAK3G3A-s25w0ckg.js → ko-JOBF5V7N-4bv0mjje.js} +857 -845
  38. package/dist/{node-strategy-8gzp67xs.js → node-strategy-0267x5e5.js} +130 -14
  39. package/dist/node-sync-service-15hccr1y.js +38 -0
  40. package/dist/{packager-tool-9qecd4wb.js → packager-tool-0gctz400.js} +5 -2
  41. package/dist/packager-tool-0mj06yen.js +65 -0
  42. package/dist/{packager-tool-1cb0d5e0.js → packager-tool-0v3s8r01.js} +2 -2
  43. package/dist/packager-tool-134mvmcm.js +3040 -0
  44. package/dist/packager-tool-13kkvf2n.js +356 -0
  45. package/dist/packager-tool-1j44c5z3.js +1217 -0
  46. package/dist/packager-tool-1jsabv93.js +6717 -0
  47. package/dist/packager-tool-1v6h5met.js +852 -0
  48. package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
  49. package/dist/packager-tool-37ww3cn0.js +80 -0
  50. package/dist/packager-tool-3mdhyhk6.js +4892 -0
  51. package/dist/packager-tool-50hjsghv.js +1125 -0
  52. package/dist/{packager-tool-3wygxefb.js → packager-tool-58q3tvh7.js} +10 -10
  53. package/dist/packager-tool-5ww9gbj3.js +6865 -0
  54. package/dist/{packager-tool-w3h8xrnv.js → packager-tool-66s6vs1k.js} +71 -3
  55. package/dist/{packager-tool-zqa5k9f7.js → packager-tool-a190917w.js} +990 -2287
  56. package/dist/{packager-tool-p9j43p8h.js → packager-tool-a42jnpy5.js} +3 -9
  57. package/dist/packager-tool-ay3zvfcv.js +54 -0
  58. package/dist/{packager-tool-jysvpt8p.js → packager-tool-c23zrhj8.js} +2 -2
  59. package/dist/packager-tool-dqs5qy9s.js +2327 -0
  60. package/dist/{packager-tool-wvqz81mx.js → packager-tool-gtzs471w.js} +3 -2
  61. package/dist/{packager-tool-we1phz71.js → packager-tool-hxw1a9ac.js} +31 -3
  62. package/dist/{packager-tool-8t401j6x.js → packager-tool-jhdf8gt1.js} +5054 -17851
  63. package/dist/packager-tool-ncedqc8m.js +77 -0
  64. package/dist/packager-tool-p7jgrm5r.js +15 -0
  65. package/dist/packager-tool-q24fc6jm.js +546 -0
  66. package/dist/packager-tool-r84ng21s.js +57 -0
  67. package/dist/packager-tool-sv0d6wb6.js +173 -0
  68. package/dist/packager-tool-ty1t2byf.js +27 -0
  69. package/dist/packager-tool-vepqrsse.js +23 -0
  70. package/dist/{packager-tool-5arsyj36.js → packager-tool-yc4kw997.js} +4 -2
  71. package/dist/{packager-tool-zx48pq4v.js → packager-tool-ygwa3sc0.js} +1997 -1174
  72. package/dist/packager-tool.js +91 -5
  73. package/dist/project-artifacts-9e7bs1vq.js +14 -0
  74. package/dist/{pt-BR-7XGDXRDJ-espnkgrj.js → pt-BR-7DYX2YPT-fqxqzqtf.js} +857 -845
  75. package/dist/{pt-BR-BXURWX4W-xzyndmrx.js → pt-BR-BXURWX4W-bwfcwhk1.js} +54 -54
  76. package/dist/{pt-TMVOOITK-myha14p9.js → pt-HTXGGX6Y-97t21dty.js} +857 -845
  77. package/dist/{pt-YI4VE4YQ-521681zf.js → pt-YI4VE4YQ-wdkn2dcf.js} +54 -54
  78. package/dist/resourcesSyncService-jnze5zjq.js +683 -0
  79. package/dist/{ro-2VALF3S5-cdz5afkr.js → ro-KTNQ3MNU-y08n1x5g.js} +857 -845
  80. package/dist/{ro-RKXZUG7Z-pdztdafr.js → ro-RKXZUG7Z-nndrrsq7.js} +54 -54
  81. package/dist/{ru-GSCT4ARZ-qj8dm4dp.js → ru-GSCT4ARZ-1sa9wbr8.js} +1 -1
  82. package/dist/ru-WBLQ5B2U-8r3c7v6d.js +10 -0
  83. package/dist/strict-case-rules-303vjvas.js +377 -0
  84. package/dist/strict-sdd-audit-qdmc9e1y.js +1024 -0
  85. package/dist/tool.js +17 -18
  86. package/dist/{tr-AA6O2WSR-bj9n80k8.js → tr-AA6O2WSR-86ba4bdf.js} +54 -54
  87. package/dist/{tr-RIFCEXFH-hgkb4g8y.js → tr-XHSSPNK7-cmqyc4wd.js} +857 -845
  88. package/dist/trigger-enrichment-service-46b8k7ex.js +340 -0
  89. package/dist/{zh-CN-IP3FMXWM-1cfarhcp.js → zh-CN-2EHQT23P-mr63c4xz.js} +857 -845
  90. package/dist/{zh-CN-R2KLHXQV-x6gnk2n0.js → zh-CN-R2KLHXQV-agqr45ds.js} +54 -54
  91. package/dist/{zh-TW-AGIDXIPF-n6r6w7vy.js → zh-TW-MGZCE5BT-c4ekmrz9.js} +857 -845
  92. package/dist/{zh-TW-RJGCQANM-tt8j5wv2.js → zh-TW-RJGCQANM-w0x3qc1p.js} +54 -54
  93. package/package.json +2 -2
  94. package/dist/index-8bsngk9y.js +0 -247140
  95. package/dist/packager-tool-qtwqp3q5.js +0 -13607
  96. package/dist/ru-WBLQ5B2U-8xd4gpv2.js +0 -10
@@ -19,12 +19,14 @@ var __toESM = (mod, isNodeMode, target) => {
19
19
  }
20
20
  target = mod != null ? __create(__getProtoOf(mod)) : {};
21
21
  const to = isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target;
22
- for (let key of __getOwnPropNames(mod))
23
- if (!__hasOwnProp.call(to, key))
24
- __defProp(to, key, {
25
- get: __accessProp.bind(mod, key),
26
- enumerable: true
27
- });
22
+ if (mod && typeof mod === "object" || typeof mod === "function") {
23
+ for (let key of __getOwnPropNames(mod))
24
+ if (!__hasOwnProp.call(to, key))
25
+ __defProp(to, key, {
26
+ get: __accessProp.bind(mod, key),
27
+ enumerable: true
28
+ });
29
+ }
28
30
  if (canCache)
29
31
  cache.set(mod, to);
30
32
  return to;
@@ -47,4 +49,4 @@ var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
49
 
48
50
  export { __toESM, __commonJS, __export, __require };
49
51
 
50
- //# debugId=42F86BC5AE2E70AC64756E2164756E21
52
+ //# debugId=7B09EB233830E89F64756E2164756E21
@@ -0,0 +1,80 @@
1
+ import {
2
+ catchError,
3
+ hashContent,
4
+ logger
5
+ } from "./packager-tool-ygwa3sc0.js";
6
+ import {
7
+ getFileSystem
8
+ } from "./packager-tool-0v3s8r01.js";
9
+
10
+ // src/utils/resourcesStorage.ts
11
+ async function resolveResourcesStorageDir() {
12
+ const fs = getFileSystem();
13
+ return fs.path.join(fs.env.homedir(), ".uip", "case-resources");
14
+ }
15
+ async function saveResourceIndex(resources, resourceType) {
16
+ const fs = getFileSystem();
17
+ const dir = await resolveResourcesStorageDir();
18
+ await fs.mkdir(dir);
19
+ const indexPath = fs.path.join(dir, `${resourceType}-index.json`);
20
+ const content = JSON.stringify(resources, null, 2);
21
+ await fs.writeFile(indexPath, content);
22
+ logger.debug(`Saved ${resources.length} ${resourceType} resources to index. Updating metadata...`);
23
+ const hash = await hashContent(content);
24
+ await saveIndexMetadata({
25
+ lastSync: Date.now(),
26
+ count: resources.length,
27
+ hash
28
+ }, resourceType);
29
+ return resources.length;
30
+ }
31
+ async function loadResourceIndex(resourceType) {
32
+ const fs = getFileSystem();
33
+ const dir = await resolveResourcesStorageDir();
34
+ const indexPath = fs.path.join(dir, `${resourceType}-index.json`);
35
+ if (!await fs.exists(indexPath)) {
36
+ throw new Error("No resource index found. Please run 'uip maestro case registry pull' to sync resources first.");
37
+ }
38
+ const [readError, content] = await catchError(fs.readFile(indexPath, "utf-8"));
39
+ if (readError) {
40
+ throw new Error(`Failed to load resource index: ${readError instanceof Error ? readError.message : String(readError)}`);
41
+ }
42
+ if (content === null || content.trim() === "") {
43
+ throw new Error("No resource index found. Please run 'uip maestro case registry pull' to sync resources first.");
44
+ }
45
+ const [parseError, parsed] = await catchError(Promise.resolve().then(() => JSON.parse(content)));
46
+ if (parseError) {
47
+ throw new Error("No resource index found. Please run 'uip maestro case registry pull' to sync resources first.");
48
+ }
49
+ return parsed;
50
+ }
51
+ async function saveIndexMetadata(metadata, resourceType) {
52
+ const fs = getFileSystem();
53
+ const dir = await resolveResourcesStorageDir();
54
+ await fs.mkdir(dir);
55
+ const metaPath = fs.path.join(dir, `${resourceType}-index.meta.json`);
56
+ await fs.writeFile(metaPath, JSON.stringify(metadata, null, 2));
57
+ }
58
+ async function loadIndexMetadata(resourceType) {
59
+ const fs = getFileSystem();
60
+ const dir = await resolveResourcesStorageDir();
61
+ const metaPath = fs.path.join(dir, `${resourceType}-index.meta.json`);
62
+ if (!await fs.exists(metaPath)) {
63
+ return null;
64
+ }
65
+ const [error, metadata] = await catchError((async () => {
66
+ const content = await fs.readFile(metaPath, "utf-8");
67
+ if (content === null) {
68
+ return null;
69
+ }
70
+ return JSON.parse(content);
71
+ })());
72
+ if (error) {
73
+ return null;
74
+ }
75
+ return metadata;
76
+ }
77
+
78
+ export { saveResourceIndex, loadResourceIndex, saveIndexMetadata, loadIndexMetadata };
79
+
80
+ //# debugId=5B29295616C3417264756E2164756E21