@uipath/case-tool 1.205.0-preview.281 → 1.206.0-preview.282

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 (211) hide show
  1. package/dist/THIRD-PARTY-NOTICES.md +68 -7
  2. package/dist/applicationinsights-web-8m26566f.js +17209 -0
  3. package/dist/{authoring-kqh34zzm.js → authoring-vg90pqrn.js} +488 -213
  4. package/dist/bindings-v2-1da35xsc.js +27 -0
  5. package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-627rrg7z.js} +6 -7
  6. package/dist/{business-rule-export-ey588rv7.js → business-rule-export-jv60r9jf.js} +3 -7
  7. package/dist/carry-forward-sfdnta6q.js +52 -0
  8. package/dist/{case-api-sme7esce.js → case-api-by95rf40.js} +38 -37
  9. package/dist/{case-bindings-service-cht20gqt.js → case-bindings-service-pp3c9g1e.js} +93 -45
  10. package/dist/{case-debug-solution-projects-qqd3h10v.js → case-debug-solution-projects-je7h4hmq.js} +3 -7
  11. package/dist/{case-debug-studio-web-service-nqzmwbr5.js → case-debug-studio-web-service-d83h3atd.js} +48 -45
  12. package/dist/{case-described-io-service-dx1f4nxe.js → case-described-io-service-tsm8r189.js} +33 -15
  13. package/dist/case-event-trigger-bindings-qbs8ywf5.js +17 -0
  14. package/dist/{case-format-service-6aew6tqc.js → case-format-service-3sab2297.js} +9 -10
  15. package/dist/{case-pack-service-pqq8wnfd.js → case-pack-service-txnv711n.js} +47 -42
  16. package/dist/case-schema-version-cw0h2nrv.js +18 -0
  17. package/dist/case-shape-reader-xaxmrd40.js +14 -0
  18. package/dist/{case-splice-service-s5gccctq.js → case-splice-service-6y35w83e.js} +139 -51
  19. package/dist/{case-validate-service-vq38va33.js → case-validate-service-hz0j90we.js} +234 -170
  20. package/dist/connector-enrichment-service-sjjmb9dy.js +56 -0
  21. package/dist/connector-library-1yw5r47w.js +99 -0
  22. package/dist/connector-lookup-service-yerhg9cd.js +20 -0
  23. package/dist/connector-task-shape-bgywpbqc.js +13 -0
  24. package/dist/{de-WLW6KWOJ-2qnsqdtw.js → de-2BEKRUMY-x4dx0nn9.js} +190 -10
  25. package/dist/{de-UZI7FJDO-mwvc4cxe.js → de-AI7ML6JM-km47f8k4.js} +20 -5
  26. package/dist/debug-service-h4jxbn1r.js +56 -0
  27. package/dist/{embedded-file-reader-r66242ey.js → embedded-file-reader-0228j82a.js} +1 -4
  28. package/dist/en-LAVDF7IQ-yzy20n6d.js +254 -0
  29. package/dist/en-X6T4SP2Y-xm47mf18.js +2752 -0
  30. package/dist/{enrichment-service-hv7ff88p.js → enrichment-service-wpprec7k.js} +36 -37
  31. package/dist/{es-5THCNRFN-tqwyrdgy.js → es-7ZTQTGKN-11sj0yjx.js} +190 -10
  32. package/dist/{es-MX-5RELIXKI-9jhqtddc.js → es-MX-7KJZPEQN-1fq0a9jr.js} +20 -5
  33. package/dist/{es-MX-TWZBRAXK-gqd9swzw.js → es-MX-IHGRIEWH-g63p0gb4.js} +191 -11
  34. package/dist/{es-4UBUTCQA-m1ytpyx2.js → es-SPNKTD5Y-vw5cbgv5.js} +20 -5
  35. package/dist/filter-engine-dh9s90gb.js +10 -0
  36. package/dist/first-party-service-ahcc6xc6.js +8 -0
  37. package/dist/{fr-CERONSRC-edpxhbmb.js → fr-7ZDL4MVO-pd27vwh6.js} +191 -11
  38. package/dist/{fr-VBM5WRC2-63z7w4mh.js → fr-AXJGUT53-hdg3pmd4.js} +20 -5
  39. package/dist/index-21kns9qg.js +10 -0
  40. package/dist/{index-fyc0k5dd.js → index-5pzp2qeb.js} +5350 -3271
  41. package/dist/{connector-task-spec-pzfzmfr5.js → index-9f8naxbk.js} +320 -144
  42. package/dist/{index-5dxh9z60.js → index-a7y7etmy.js} +6 -5
  43. package/dist/{index-ekwtgx7y.js → index-ec115v05.js} +309 -287
  44. package/dist/index-j9t2k52h.js +35 -0
  45. package/dist/index-myf7b4a5.js +26 -0
  46. package/dist/index-nj3axvya.js +159 -0
  47. package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
  48. package/dist/index-pg9wmyrf.js +36 -0
  49. package/dist/index-z2qk2qn6.js +24 -0
  50. package/dist/index.js +19 -25
  51. package/dist/index.umd.min-ttg1qc0x.js +7814 -0
  52. package/dist/{init-entry-points-hhpv3e3f.js → init-entry-points-pc128f7z.js} +22 -35
  53. package/dist/input-reader-9ym8mkbc.js +10 -0
  54. package/dist/{ja-43QL7CGO-c3q8gre9.js → ja-C7GZV6YP-hvtbngr5.js} +20 -5
  55. package/dist/{ja-U2MCNHGT-gz0ap1jk.js → ja-LGAM5HKR-sgrtjqjh.js} +190 -10
  56. package/dist/{jmespath-e4a59c8w.js → jmespath-wwym30dp.js} +1 -1
  57. package/dist/{js-yaml-87cdx6bm.js → js-yaml-a2bk27p6.js} +1 -3
  58. package/dist/known-types-gak9by1w.js +11 -0
  59. package/dist/{ko-XAUYQWDR-zp81gjp4.js → ko-7B4SUZB7-c8wr20sc.js} +190 -10
  60. package/dist/{ko-TLL6Z6CD-wrt3n8a9.js → ko-Q24HSSL4-5vn55pte.js} +20 -5
  61. package/dist/localSolutionDiscovery-48d1bnkj.js +15 -0
  62. package/dist/{migration-diagnosis-ns5cw4e3.js → migration-diagnosis-myqqgwj0.js} +1 -4
  63. package/dist/{node-strategy-v442hwgd.js → node-strategy-2mqzg36t.js} +15 -18
  64. package/dist/node-sync-service-y8b5w1rd.js +56 -0
  65. package/dist/{out-target-wjgmna0r.js → out-target-eqsttq1k.js} +18 -22
  66. package/dist/{packager-tool-f8vwy92w.js → packager-tool-0te1tyhf.js} +186 -16
  67. package/dist/{packager-tool-ydyvtknp.js → packager-tool-0w4fsdzv.js} +44 -20
  68. package/dist/{packager-tool-8ftat1vn.js → packager-tool-17b466mr.js} +59158 -59666
  69. package/dist/packager-tool-1nfdj0zm.js +425 -0
  70. package/dist/packager-tool-1wgav5ma.js +139 -0
  71. package/dist/{packager-tool-b1nw50ev.js → packager-tool-265h946t.js} +256 -486
  72. package/dist/{packager-tool-nj4seavy.js → packager-tool-35c9npcy.js} +26 -7
  73. package/dist/{packager-tool-r0x3qh59.js → packager-tool-388vyja1.js} +185 -29
  74. package/dist/packager-tool-3m8482sw.js +78 -0
  75. package/dist/packager-tool-3r23qsca.js +4832 -0
  76. package/dist/packager-tool-3xehbdyd.js +1302 -0
  77. package/dist/packager-tool-4avchhz8.js +539 -0
  78. package/dist/{packager-tool-9kvkzc05.js → packager-tool-5w0gjcck.js} +4 -4
  79. package/dist/packager-tool-68648y3j.js +6 -0
  80. package/dist/{packager-tool-1yh8g550.js → packager-tool-6an893wm.js} +12 -3
  81. package/dist/{packager-tool-aagnvyba.js → packager-tool-76zhn5pa.js} +131 -432
  82. package/dist/packager-tool-7x1tmb8a.js +46 -0
  83. package/dist/{packager-tool-kyrm4e5m.js → packager-tool-9ar5829n.js} +781 -741
  84. package/dist/{packager-tool-4p11fvf4.js → packager-tool-b2q8m9pq.js} +10 -13
  85. package/dist/packager-tool-bg3tdpva.js +27 -0
  86. package/dist/{packager-tool-wr12ndwk.js → packager-tool-ccejfs0r.js} +252 -468
  87. package/dist/{packager-tool-yn33pw57.js → packager-tool-dn9d4ywm.js} +246 -225
  88. package/dist/{packager-tool-kdhey8gz.js → packager-tool-e02jkmrq.js} +41 -29
  89. package/dist/{packager-tool-sq931c23.js → packager-tool-e1tx5mqg.js} +1 -1
  90. package/dist/{packager-tool-qn3zkrrc.js → packager-tool-ehjw672b.js} +32 -15
  91. package/dist/packager-tool-gy4yjqhf.js +178 -0
  92. package/dist/packager-tool-h2ar8xf8.js +222 -0
  93. package/dist/{packager-tool-v2kcgjbf.js → packager-tool-j6nfje7t.js} +5 -4
  94. package/dist/packager-tool-k0ar6cn7.js +295 -0
  95. package/dist/packager-tool-kz7zz79p.js +71 -0
  96. package/dist/{packager-tool-1gwbq864.js → packager-tool-m5384a1s.js} +66 -82
  97. package/dist/{packager-tool-9e59z4d6.js → packager-tool-me8gd22q.js} +82 -83
  98. package/dist/packager-tool-mk9fmzdy.js +20 -0
  99. package/dist/{packager-tool-yfmby4dd.js → packager-tool-mkt1njk2.js} +630 -689
  100. package/dist/{packager-tool-gdtpsdn7.js → packager-tool-mm1x18d6.js} +223 -28
  101. package/dist/{packager-tool-mqy97y5f.js → packager-tool-p5gs9xqy.js} +14 -14
  102. package/dist/{packager-tool-83v804p7.js → packager-tool-psmb758n.js} +3108 -2627
  103. package/dist/packager-tool-q26hncjr.js +13 -0
  104. package/dist/packager-tool-q9fnx278.js +77 -0
  105. package/dist/{packager-tool-ezds6t5e.js → packager-tool-s12s1dp6.js} +11 -11
  106. package/dist/packager-tool-scy94jyb.js +5424 -0
  107. package/dist/{packager-tool-yn7r7zq2.js → packager-tool-snesn0bt.js} +177 -96
  108. package/dist/{packager-tool-d8e2mrkq.js → packager-tool-tgehy324.js} +56 -56
  109. package/dist/{packager-tool-tqn0j6f9.js → packager-tool-v11fx4dk.js} +7 -7
  110. package/dist/{packager-tool-67vy1fz3.js → packager-tool-v6rkp2ay.js} +24 -92
  111. package/dist/{packager-tool-9sd483vs.js → packager-tool-vs7gqa4r.js} +15 -15
  112. package/dist/packager-tool-vyavrbym.js +488 -0
  113. package/dist/{packager-tool-b098y4a2.js → packager-tool-wbksf242.js} +97 -97
  114. package/dist/{packager-tool-2sn7d8fd.js → packager-tool-x74mmjkw.js} +9 -13
  115. package/dist/{packager-tool-7hw344bt.js → packager-tool-xb16e3tz.js} +5 -5
  116. package/dist/{packager-tool-a17g0pj1.js → packager-tool-xd1wbvay.js} +10 -8
  117. package/dist/{packager-tool-1yfw674x.js → packager-tool-xehhk3c3.js} +10 -5
  118. package/dist/packager-tool-yh8mmj3p.js +123 -0
  119. package/dist/{packager-tool-hdxtgckw.js → packager-tool-z070caqq.js} +56 -12
  120. package/dist/{packager-tool-b250k6w4.js → packager-tool-z1fw9a8v.js} +41 -9
  121. package/dist/{packager-tool-0gctz400.js → packager-tool-z9fmqtm6.js} +4 -4
  122. package/dist/{packager-tool-mzf4gmph.js → packager-tool-zbx189j3.js} +11 -8
  123. package/dist/{packager-tool-zf8f9pmm.js → packager-tool-zrbnms9b.js} +3 -4
  124. package/dist/packager-tool.js +10 -11
  125. package/dist/prepare-uip-ad7mfs8t.js +92 -0
  126. package/dist/{project-artifacts-bgyyb0dm.js → project-artifacts-q0c0zghw.js} +2 -6
  127. package/dist/{pt-BR-USP2T7GD-pedn77m1.js → pt-BR-BIUJXIPU-2sqzhr8y.js} +20 -5
  128. package/dist/{pt-BR-GNQNAAZ2-xadharv4.js → pt-BR-PHLFHMXZ-n6de4s7z.js} +191 -11
  129. package/dist/{pt-RMIAKZB4-67enhx3m.js → pt-MHX6JGAX-xfgvdqwg.js} +20 -5
  130. package/dist/{pt-TO2DARY2-ftcce1bv.js → pt-N7ZTJT4W-d6c67xcn.js} +190 -10
  131. package/dist/{resolved-check-aqw7568y.js → resolved-check-dz8eqrf6.js} +2 -3
  132. package/dist/{resourcesSyncService-8ac6ncq2.js → resourcesSyncService-yrhhh62m.js} +81 -141
  133. package/dist/{ro-GHOBYW2S-mhnqsgaa.js → ro-3RKJNGJZ-xqj14e3d.js} +20 -5
  134. package/dist/{ro-WUYJV6OW-a8d9qy1n.js → ro-FLNXVYJI-ytrwabg2.js} +190 -10
  135. package/dist/ru-GSCT4ARZ-c2cfq4h1.js +7 -0
  136. package/dist/ru-WBLQ5B2U-bf20yr5y.js +7 -0
  137. package/dist/{rule-group-members-zje7n3kf.js → rule-group-members-p0nv1rmj.js} +1 -3
  138. package/dist/rule-type-declaration-s2nxpcfy.js +77 -0
  139. package/dist/{sdd-convert-service-8jpew7vz.js → sdd-convert-service-ffbx00k6.js} +481 -504
  140. package/dist/{sdd-lookup-fe900sdb.js → sdd-lookup-sah7wj5j.js} +8 -9
  141. package/dist/{sdd-resolve-service-qdtmxw9b.js → sdd-resolve-service-6nt10vhq.js} +28 -20
  142. package/dist/{sdd-resolve-siblings-8gf9zjwf.js → sdd-resolve-siblings-ap8j1c8h.js} +11 -14
  143. package/dist/solution-auth-a1p22hq1.js +11 -0
  144. package/dist/solution-discovery-r1y550sz.js +33 -0
  145. package/dist/{strict-case-rules-4tjcaznr.js → strict-case-rules-045kbjvv.js} +16 -28
  146. package/dist/{strict-entry-points-g2pd4mf4.js → strict-entry-points-40ha9afz.js} +15 -14
  147. package/dist/strict-sdd-audit-bp7fq2tg.js +26 -0
  148. package/dist/{task-selector-8bjn35dv.js → task-selector-jt60hdbt.js} +1 -3
  149. package/dist/{task-type-declaration-7a8fqdvs.js → task-type-declaration-yhczvj05.js} +9 -9
  150. package/dist/tool.js +18 -24
  151. package/dist/{tr-M3F5A6AU-bb0tg39m.js → tr-7AIZZWZ6-pdzp9n0p.js} +190 -10
  152. package/dist/{tr-GDTLECMM-k5fhmq13.js → tr-PQLUUHPC-qsb7btxn.js} +20 -5
  153. package/dist/{trigger-enrichment-service-agvnhdf7.js → trigger-enrichment-service-z8kxy6qr.js} +53 -57
  154. package/dist/trigger-entry-point-id-751v48qd.js +14 -0
  155. package/dist/{zh-CN-C5G4PC7C-ds9gkptg.js → zh-CN-CN2ARPFS-e0p2qrxf.js} +190 -10
  156. package/dist/{zh-CN-I5D7WHBD-sr5h0a98.js → zh-CN-OHNTHZRI-b0hjkfqn.js} +20 -5
  157. package/dist/{zh-TW-62HZIG6O-787kdwex.js → zh-TW-7RUFEVFK-qd7myw31.js} +190 -10
  158. package/dist/{zh-TW-2AVLM723-288pkc1z.js → zh-TW-E4D3Y6ZR-tn3bmzz5.js} +20 -5
  159. package/package.json +2 -2
  160. package/dist/canvas-notes-86fxx1t8.js +0 -19
  161. package/dist/case-event-trigger-bindings-g9ftnm4x.js +0 -16
  162. package/dist/case-schema-version-h820ne16.js +0 -20
  163. package/dist/case-shape-reader-dsbraetf.js +0 -13
  164. package/dist/connector-enrichment-service-6kskfevq.js +0 -65
  165. package/dist/connector-lookup-service-yyn8kkw7.js +0 -22
  166. package/dist/connector-task-shape-mpazkf7s.js +0 -14
  167. package/dist/debug-service-7q98j726.js +0 -59
  168. package/dist/en-EJCBA3LK-dtpdghgj.js +0 -146
  169. package/dist/en-M7GQYBV2-5nfmpnfz.js +0 -2018
  170. package/dist/filter-engine-7ep90g7f.js +0 -11
  171. package/dist/first-party-service-srxaftkn.js +0 -27
  172. package/dist/index-0d7qc2gs.js +0 -282
  173. package/dist/index-jmv5by9z.js +0 -666
  174. package/dist/index-kmp9fmhb.js +0 -25
  175. package/dist/index-n9qvnx4x.js +0 -29
  176. package/dist/index-ngs0a2he.js +0 -15
  177. package/dist/index-xq6ajhgq.js +0 -157
  178. package/dist/index.umd.min-fqefd9kn.js +0 -7814
  179. package/dist/input-reader-c7wz8ra2.js +0 -11
  180. package/dist/known-types-5b6yrsqn.js +0 -16
  181. package/dist/localSolutionDiscovery-yyx234ak.js +0 -13
  182. package/dist/node-sync-service-2ezr3akv.js +0 -57
  183. package/dist/packager-tool-53w8skv5.js +0 -262
  184. package/dist/packager-tool-6z1hsm2h.js +0 -143
  185. package/dist/packager-tool-93mdeqay.js +0 -18
  186. package/dist/packager-tool-9kf3fqtr.js +0 -23
  187. package/dist/packager-tool-bfgdz1zh.js +0 -73
  188. package/dist/packager-tool-e15kqpyh.js +0 -266
  189. package/dist/packager-tool-gmykn1ef.js +0 -5365
  190. package/dist/packager-tool-jysvpt8p.js +0 -11
  191. package/dist/packager-tool-pcvhcn2k.js +0 -2019
  192. package/dist/packager-tool-rk25wp3c.js +0 -28
  193. package/dist/packager-tool-sc961w0q.js +0 -16
  194. package/dist/packager-tool-wekqkmgn.js +0 -265
  195. package/dist/packager-tool-yc4kw997.js +0 -13
  196. package/dist/packager-tool-zgpsnxkd.js +0 -13189
  197. package/dist/ru-GSCT4ARZ-1sa9wbr8.js +0 -10
  198. package/dist/ru-WBLQ5B2U-s4em88p0.js +0 -10
  199. package/dist/solution-auth-30yycqtv.js +0 -14
  200. package/dist/solution-discovery-e9mamp6w.js +0 -38
  201. package/dist/strict-sdd-audit-q7tb9yj7.js +0 -25
  202. package/dist/trigger-entry-point-id-yhqwnkx9.js +0 -15
  203. /package/dist/{packager-tool-5qp9xza1.js → packager-tool-1c30ttpm.js} +0 -0
  204. /package/dist/{packager-tool-mknccck5.js → packager-tool-1h7abxw6.js} +0 -0
  205. /package/dist/{packager-tool-9y1w2wds.js → packager-tool-fcektt1g.js} +0 -0
  206. /package/dist/{packager-tool-k6jbedyc.js → packager-tool-hcdnc420.js} +0 -0
  207. /package/dist/{packager-tool-7nxppa3d.js → packager-tool-jv5byaww.js} +0 -0
  208. /package/dist/{packager-tool-qa9gftnj.js → packager-tool-mxgybnmt.js} +0 -0
  209. /package/dist/{packager-tool-87y6xw3a.js → packager-tool-nfhtwa72.js} +0 -0
  210. /package/dist/{packager-tool-cv05dwac.js → packager-tool-p0rdmmvk.js} +0 -0
  211. /package/dist/{packager-tool-21qfsbxn.js → packager-tool-yaertxsw.js} +0 -0
@@ -1,9 +1,9 @@
1
1
  import {
2
- catchError,
2
+ catchError2,
3
3
  logger,
4
4
  quoteForShell,
5
5
  unsupportedSolutionProjectType
6
- } from "./packager-tool-83v804p7.js";
6
+ } from "./packager-tool-psmb758n.js";
7
7
 
8
8
  // ../solution-sdk/src/solution-file.ts
9
9
  var STUDIO_WEB_PROJECT_TYPE_OVERRIDES = {
@@ -15,44 +15,6 @@ function normalizeProjectType(projectType) {
15
15
  function toPortableRelativePath(relativePath) {
16
16
  return relativePath.replace(/\\/g, "/");
17
17
  }
18
- async function readUipxFile(fs, solutionDir) {
19
- const dirEntries = await fs.readdir(solutionDir);
20
- const uipxFileName = dirEntries.find((f) => f.endsWith(".uipx"));
21
- if (!uipxFileName) {
22
- throw new Error(`No .uipx file found in ${solutionDir}. Run 'uip solution init' first.`);
23
- }
24
- const uipxContent = await fs.readFile(fs.path.join(solutionDir, uipxFileName), "utf-8");
25
- if (!uipxContent) {
26
- throw new Error(`Could not read .uipx file: ${uipxFileName} is empty or missing.`);
27
- }
28
- const [parseError, parsed] = catchError(() => JSON.parse(uipxContent));
29
- if (parseError) {
30
- throw new Error(`Invalid .uipx file: could not parse JSON in ${uipxFileName}.`);
31
- }
32
- const uipx = validateUipxFile(parsed, uipxFileName);
33
- return { uipx, uipxFileName };
34
- }
35
- function validateUipxFile(parsed, uipxFileName) {
36
- if (!isRecord(parsed)) {
37
- throw new Error(`Invalid .uipx file: ${uipxFileName} must contain a JSON object.`);
38
- }
39
- if (typeof parsed.SolutionId !== "string" || !parsed.SolutionId.trim()) {
40
- throw new Error("Invalid .uipx file: missing SolutionId.");
41
- }
42
- if (!Array.isArray(parsed.Projects) || parsed.Projects.length === 0) {
43
- throw new Error("Invalid .uipx file: missing Projects.");
44
- }
45
- for (const [index, project] of parsed.Projects.entries()) {
46
- if (!isRecord(project)) {
47
- throw new Error(`Invalid .uipx file: Projects[${index}] must be an object.`);
48
- }
49
- if (typeof project.ProjectRelativePath !== "string" || !project.ProjectRelativePath.trim()) {
50
- const pathHint = typeof project.Path === "string" ? " Found Path, but .uipx uses ProjectRelativePath." : "";
51
- throw new Error(`Invalid .uipx file: Projects[${index}] is missing ProjectRelativePath.${pathHint} Use 'uip solution projects add' to add projects, or set ProjectRelativePath to the project file path, for example "Foo/project.uiproj".`);
52
- }
53
- }
54
- return parsed;
55
- }
56
18
  function isRecord(value) {
57
19
  return typeof value === "object" && value !== null && !Array.isArray(value);
58
20
  }
@@ -96,7 +58,7 @@ async function autoScaffoldSolution(fs, baseDir, projectName) {
96
58
  SolutionFile: solutionFile
97
59
  };
98
60
  }
99
- async function prepareProjectLocation(fs, candidateProjectDir, projectName, options = {}) {
61
+ async function prepareProjectLocation2(fs, candidateProjectDir, projectName, options = {}) {
100
62
  const resolved = fs.path.resolve(candidateProjectDir);
101
63
  if (options.skipRegistration) {
102
64
  return { projectDir: resolved };
@@ -112,45 +74,38 @@ async function prepareProjectLocation(fs, candidateProjectDir, projectName, opti
112
74
  return { projectDir, autoCreatedSolution };
113
75
  }
114
76
  async function warnIfCandidateDirShadowed(fs, candidateDir, projectDir) {
115
- const [, exists] = await catchError(fs.exists(candidateDir));
77
+ const [, exists] = await catchError2(fs.exists(candidateDir));
116
78
  if (!exists) {
117
79
  return;
118
80
  }
119
- const [, entries] = await catchError(fs.readdir(candidateDir));
81
+ const [, entries] = await catchError2(fs.readdir(candidateDir));
120
82
  if (!entries || entries.length === 0) {
121
83
  return;
122
84
  }
123
85
  logger.warn(`An existing directory "${candidateDir}" was left untouched. ` + `The project was created inside the auto-created solution at "${projectDir}". ` + "Run init from inside an existing solution, or pass --skip-solution-registration, if you meant to use the existing directory.");
124
86
  }
125
- function resolveSolutionDir(fs, inputPath) {
126
- const resolved = fs.path.resolve(inputPath);
127
- if (resolved.endsWith(".uipx")) {
128
- return fs.path.dirname(resolved);
129
- }
130
- return resolved;
131
- }
132
87
  async function updateUipxSolutionId(fs, uipxPath, newSolutionId) {
133
- const [readError, content] = await catchError(fs.readFile(uipxPath, "utf-8"));
88
+ const [readError, content] = await catchError2(fs.readFile(uipxPath, "utf-8"));
134
89
  if (readError || !content) {
135
90
  logger.error(`Could not read .uipx file for update: ${readError?.message ?? "empty file"}`);
136
91
  return;
137
92
  }
138
- const [parseError, parsed] = catchError(() => JSON.parse(content));
93
+ const [parseError, parsed] = catchError2(() => JSON.parse(content));
139
94
  if (parseError) {
140
95
  logger.error(`Could not parse .uipx file for update: ${parseError.message}`);
141
96
  return;
142
97
  }
143
98
  parsed.SolutionId = newSolutionId;
144
- const [writeError] = await catchError(fs.writeFile(uipxPath, JSON.stringify(parsed, null, 4)));
99
+ const [writeError] = await catchError2(fs.writeFile(uipxPath, JSON.stringify(parsed, null, 4)));
145
100
  if (writeError) {
146
101
  logger.error(`Could not update .uipx with new SolutionId: ${writeError.message}`);
147
102
  } else {
148
103
  logger.info(`Updated .uipx with Studio Web SolutionId: ${newSolutionId}`);
149
104
  }
150
105
  }
151
- async function findSolutionFile(fs, projectPath) {
106
+ async function findSolutionFile2(fs, projectPath) {
152
107
  const parentDir = fs.path.resolve(projectPath, "..");
153
- const [dirError, entries] = await catchError(fs.readdir(parentDir));
108
+ const [dirError, entries] = await catchError2(fs.readdir(parentDir));
154
109
  if (dirError) {
155
110
  logger.error(`Could not read parent directory for .uipx file: ${dirError.message}`);
156
111
  return;
@@ -161,12 +116,12 @@ async function findSolutionFile(fs, projectPath) {
161
116
  return;
162
117
  }
163
118
  const uipxPath = fs.path.join(parentDir, uipxFile);
164
- const [readError, content] = await catchError(fs.readFile(uipxPath, "utf-8"));
119
+ const [readError, content] = await catchError2(fs.readFile(uipxPath, "utf-8"));
165
120
  if (readError || content === null) {
166
121
  logger.error(`Could not read .uipx file: ${readError?.message ?? "file returned null"}`);
167
122
  return;
168
123
  }
169
- const [parseError, parsed] = catchError(() => JSON.parse(content));
124
+ const [parseError, parsed] = catchError2(() => JSON.parse(content));
170
125
  if (parseError) {
171
126
  logger.error(`Could not parse .uipx file: ${parseError.message}`);
172
127
  return;
@@ -183,9 +138,9 @@ async function findSolutionFile(fs, projectPath) {
183
138
  projectId: projectId ?? crypto.randomUUID()
184
139
  };
185
140
  }
186
- async function updateSolutionFile(fs, projectPath, newSolutionId) {
141
+ async function updateSolutionFile2(fs, projectPath, newSolutionId) {
187
142
  const parentDir = fs.path.resolve(projectPath, "..");
188
- const [dirError, entries] = await catchError(fs.readdir(parentDir));
143
+ const [dirError, entries] = await catchError2(fs.readdir(parentDir));
189
144
  if (dirError)
190
145
  return;
191
146
  const uipxFile = entries.find((entry) => entry.endsWith(".uipx"));
@@ -194,7 +149,7 @@ async function updateSolutionFile(fs, projectPath, newSolutionId) {
194
149
  const uipxPath = fs.path.join(parentDir, uipxFile);
195
150
  await updateUipxSolutionId(fs, uipxPath, newSolutionId);
196
151
  }
197
- async function tryRegisterProjectInParentSolution(fs, projectDir, options) {
152
+ async function tryRegisterProjectInParentSolution2(fs, projectDir, options) {
198
153
  if (options?.skipRegistration) {
199
154
  return {
200
155
  Status: "OptedOut",
@@ -202,7 +157,7 @@ async function tryRegisterProjectInParentSolution(fs, projectDir, options) {
202
157
  Instructions: buildOptedOutInstructions(fs.path.resolve(projectDir))
203
158
  };
204
159
  }
205
- const [registrationError, registration] = await catchError(registerProjectInParentSolution(fs, projectDir));
160
+ const [registrationError, registration] = await catchError2(registerProjectInParentSolution(fs, projectDir));
206
161
  if (registrationError) {
207
162
  return {
208
163
  Status: "Failed",
@@ -294,7 +249,7 @@ async function registerProjectInParentSolution(fs, projectDir) {
294
249
  Id: projectId
295
250
  });
296
251
  solution.content.Projects = solution.projects;
297
- const [writeError] = await catchError(fs.writeFile(solutionFile, `${JSON.stringify(solution.content, null, 2)}
252
+ const [writeError] = await catchError2(fs.writeFile(solutionFile, `${JSON.stringify(solution.content, null, 2)}
298
253
  `));
299
254
  if (writeError) {
300
255
  return {
@@ -317,7 +272,7 @@ async function registerProjectInParentSolution(fs, projectDir) {
317
272
  async function findNearestParentUipxFile(fs, projectDir) {
318
273
  let currentDir = fs.path.dirname(fs.path.resolve(projectDir));
319
274
  while (true) {
320
- const [readDirError, entries] = await catchError(fs.readdir(currentDir));
275
+ const [readDirError, entries] = await catchError2(fs.readdir(currentDir));
321
276
  if (readDirError) {
322
277
  return {
323
278
  status: "skipped",
@@ -382,11 +337,11 @@ async function findProjectFile(fs, projectDir) {
382
337
  ];
383
338
  }
384
339
  async function readProjectManifest(fs, filePath, useProjectJson) {
385
- const [readError, rawContent] = await catchError(fs.readFile(filePath, "utf-8"));
340
+ const [readError, rawContent] = await catchError2(fs.readFile(filePath, "utf-8"));
386
341
  if (readError || !rawContent) {
387
342
  return [readError ?? new Error(`Unable to read ${filePath}.`), null];
388
343
  }
389
- const [parseError, parsed] = catchError(() => JSON.parse(rawContent));
344
+ const [parseError, parsed] = catchError2(() => JSON.parse(rawContent));
390
345
  if (parseError) {
391
346
  return [
392
347
  new Error(`Invalid JSON in project file: ${parseError.message}`),
@@ -410,14 +365,14 @@ async function readProjectManifest(fs, filePath, useProjectJson) {
410
365
  ];
411
366
  }
412
367
  async function readSolutionManifest(fs, solutionFile) {
413
- const [readError, rawContent] = await catchError(fs.readFile(solutionFile, "utf-8"));
368
+ const [readError, rawContent] = await catchError2(fs.readFile(solutionFile, "utf-8"));
414
369
  if (readError || !rawContent) {
415
370
  return [
416
371
  readError ?? new Error(`Unable to read solution file: ${solutionFile}`),
417
372
  null
418
373
  ];
419
374
  }
420
- const [parseError, parsed] = catchError(() => JSON.parse(rawContent));
375
+ const [parseError, parsed] = catchError2(() => JSON.parse(rawContent));
421
376
  if (parseError) {
422
377
  return [
423
378
  new Error(`Invalid JSON in solution file: ${parseError.message}`),
@@ -494,29 +449,6 @@ function buildOptedOutInstructions(projectDir) {
494
449
  ].join(`
495
450
  `);
496
451
  }
497
- async function isProjectRegisteredInSolution(fs, projectDir, solutionFile) {
498
- const [readErr, manifest] = await readSolutionManifest(fs, solutionFile);
499
- if (readErr) {
500
- throw readErr;
501
- }
502
- if (!manifest) {
503
- throw new Error(`Unable to read solution manifest: ${solutionFile}`);
504
- }
505
- const solutionDir = fs.path.dirname(solutionFile);
506
- const projectDirReal = await canonicalizePath(fs, projectDir);
507
- for (const project of manifest.projects) {
508
- const candidateDir = fs.path.resolve(solutionDir, fs.path.dirname(toPortableRelativePath(project.ProjectRelativePath)));
509
- const candidateReal = await canonicalizePath(fs, candidateDir);
510
- if (candidateReal === projectDirReal) {
511
- return true;
512
- }
513
- }
514
- return false;
515
- }
516
- async function canonicalizePath(fs, p) {
517
- const [err, real] = await catchError(fs.realpath(p));
518
- return err || !real ? p : real;
519
- }
520
452
  async function findSolutionFileUpward(fs, startDir) {
521
453
  let dir = startDir;
522
454
  while (true) {
@@ -536,6 +468,6 @@ async function findSolutionFileUpward(fs, startDir) {
536
468
  }
537
469
  }
538
470
 
539
- export { normalizeProjectType, toPortableRelativePath, readUipxFile, createSolutionManifest, autoScaffoldSolution, prepareProjectLocation, resolveSolutionDir, updateUipxSolutionId, findSolutionFile, updateSolutionFile, tryRegisterProjectInParentSolution, findNearestParentUipxFile, readSolutionManifest, isProjectRegisteredInSolution, findSolutionFileUpward };
471
+ export { normalizeProjectType, toPortableRelativePath, prepareProjectLocation2, findSolutionFile2, updateSolutionFile2, tryRegisterProjectInParentSolution2, findSolutionFileUpward };
540
472
 
541
- //# debugId=DDAB1B523F5F442564756E2164756E21
473
+ //# debugId=9696975038F1793864756E2164756E21
@@ -1,19 +1,19 @@
1
1
  import {
2
- catchError,
3
- hashContent,
4
- logger
5
- } from "./packager-tool-83v804p7.js";
2
+ getFileSystem2
3
+ } from "./packager-tool-z070caqq.js";
6
4
  import {
7
- getFileSystem
8
- } from "./packager-tool-hdxtgckw.js";
5
+ catchError2,
6
+ logger,
7
+ hashContent
8
+ } from "./packager-tool-psmb758n.js";
9
9
 
10
10
  // src/utils/resourcesStorage.ts
11
11
  async function resolveResourcesStorageDir() {
12
- const fs = getFileSystem();
12
+ const fs = getFileSystem2();
13
13
  return fs.path.join(fs.env.homedir(), ".uip", "case-resources");
14
14
  }
15
15
  async function saveResourceIndex(resources, resourceType) {
16
- const fs = getFileSystem();
16
+ const fs = getFileSystem2();
17
17
  const dir = await resolveResourcesStorageDir();
18
18
  await fs.mkdir(dir);
19
19
  const indexPath = fs.path.join(dir, `${resourceType}-index.json`);
@@ -30,40 +30,40 @@ async function saveResourceIndex(resources, resourceType) {
30
30
  }
31
31
  var MISSING_RESOURCE_INDEX = "No resource index found. Please run 'uip maestro case registry pull' to sync resources first.";
32
32
  async function loadResourceIndex(resourceType) {
33
- const fs = getFileSystem();
33
+ const fs = getFileSystem2();
34
34
  const dir = await resolveResourcesStorageDir();
35
35
  const indexPath = fs.path.join(dir, `${resourceType}-index.json`);
36
36
  if (!await fs.exists(indexPath)) {
37
37
  throw new Error(MISSING_RESOURCE_INDEX);
38
38
  }
39
- const [readError, content] = await catchError(fs.readFile(indexPath, "utf-8"));
39
+ const [readError, content] = await catchError2(fs.readFile(indexPath, "utf-8"));
40
40
  if (readError) {
41
41
  throw new Error(`Failed to load resource index: ${readError instanceof Error ? readError.message : String(readError)}`);
42
42
  }
43
43
  if (content === null || content.trim() === "") {
44
44
  throw new Error(MISSING_RESOURCE_INDEX);
45
45
  }
46
- const [parseError, parsed] = await catchError(Promise.resolve().then(() => JSON.parse(content)));
46
+ const [parseError, parsed] = await catchError2(Promise.resolve().then(() => JSON.parse(content)));
47
47
  if (parseError) {
48
48
  throw new Error(MISSING_RESOURCE_INDEX);
49
49
  }
50
50
  return parsed;
51
51
  }
52
52
  async function saveIndexMetadata(metadata, resourceType) {
53
- const fs = getFileSystem();
53
+ const fs = getFileSystem2();
54
54
  const dir = await resolveResourcesStorageDir();
55
55
  await fs.mkdir(dir);
56
56
  const metaPath = fs.path.join(dir, `${resourceType}-index.meta.json`);
57
57
  await fs.writeFile(metaPath, JSON.stringify(metadata, null, 2));
58
58
  }
59
59
  async function loadIndexMetadata(resourceType) {
60
- const fs = getFileSystem();
60
+ const fs = getFileSystem2();
61
61
  const dir = await resolveResourcesStorageDir();
62
62
  const metaPath = fs.path.join(dir, `${resourceType}-index.meta.json`);
63
63
  if (!await fs.exists(metaPath)) {
64
64
  return null;
65
65
  }
66
- const [error, metadata] = await catchError((async () => {
66
+ const [error, metadata] = await catchError2((async () => {
67
67
  const content = await fs.readFile(metaPath, "utf-8");
68
68
  if (content === null) {
69
69
  return null;
@@ -78,4 +78,4 @@ async function loadIndexMetadata(resourceType) {
78
78
 
79
79
  export { saveResourceIndex, MISSING_RESOURCE_INDEX, loadResourceIndex, saveIndexMetadata, loadIndexMetadata };
80
80
 
81
- //# debugId=E65140A55E0A21A964756E2164756E21
81
+ //# debugId=377727CE5B72E2C464756E2164756E21