@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,7 +1,7 @@
1
1
  import {
2
2
  EXTERNAL_SERVICE_TYPES,
3
3
  externalServiceType
4
- } from "./packager-tool-h2ar8xf8.js";
4
+ } from "./packager-tool-00ck60cc.js";
5
5
 
6
6
  // src/services/connector-task-types.ts
7
7
  var CONNECTOR_TASK_TYPES = new Set([
@@ -1,25 +1,25 @@
1
1
  import {
2
2
  catchError2
3
- } from "./packager-tool-6ewsbrnb.js";
3
+ } from "./packager-tool-j8mnpsv8.js";
4
4
  import {
5
- STAGE_SELECTOR_RULES,
6
- TASK_SELECTOR_RULES,
7
- parseIfCell,
8
5
  expandXrefs,
9
6
  canonicalExpression,
10
- unquoteLiteral
11
- } from "./packager-tool-stdwmgvd.js";
7
+ unquoteLiteral,
8
+ STAGE_SELECTOR_RULES,
9
+ TASK_SELECTOR_RULES,
10
+ parseIfCell
11
+ } from "./packager-tool-exrjwmew.js";
12
12
  import {
13
13
  BINDING_REFERENCE_PREFIX
14
14
  } from "./packager-tool-nfhtwa72.js";
15
15
  import {
16
16
  connectionPairFor
17
- } from "./packager-tool-b2q8m9pq.js";
17
+ } from "./packager-tool-fspmvh6g.js";
18
18
  import {
19
19
  referenceSpellings,
20
20
  indexKey,
21
21
  scopedSlaKey
22
- } from "./packager-tool-5w0gjcck.js";
22
+ } from "./packager-tool-engs9gvj.js";
23
23
  import {
24
24
  prefixedId
25
25
  } from "./packager-tool-1h7abxw6.js";
@@ -485,4 +485,4 @@ var exitConditionFor = (condition, context) => {
485
485
 
486
486
  export { emitBusinessEvents, connectorInputs, connectorContextFor, RULE_VOCABULARY, parseWhen, entryConditionFor, caseExitRuleFor, exitConditionFor };
487
487
 
488
- //# debugId=1A5D045F6F14E87464756E2164756E21
488
+ //# debugId=2186ED5925F5E11D64756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getAuthContext2
3
- } from "./packager-tool-dn9d4ywm.js";
3
+ } from "./packager-tool-c0pavv0s.js";
4
4
 
5
5
  // ../solution-sdk/src/solution-auth.ts
6
6
  async function getSolutionAuthContext2(options) {
@@ -16,6 +16,8 @@ async function getSolutionAuthContext2(options) {
16
16
  return {
17
17
  accessToken: ctx.accessToken,
18
18
  basePath,
19
+ baseUrl: ctx.baseUrl,
20
+ organizationName: ctx.organizationName,
19
21
  organizationId,
20
22
  tenantName,
21
23
  identity: ctx.identity
@@ -24,4 +26,4 @@ async function getSolutionAuthContext2(options) {
24
26
 
25
27
  export { getSolutionAuthContext2 };
26
28
 
27
- //# debugId=59B6698CEFEA9F4764756E2164756E21
29
+ //# debugId=A1BC8AA35686C4D764756E2164756E21
@@ -3,9 +3,17 @@ import {
3
3
  logger,
4
4
  quoteForShell,
5
5
  unsupportedSolutionProjectType
6
- } from "./packager-tool-6ewsbrnb.js";
6
+ } from "./packager-tool-j8mnpsv8.js";
7
7
 
8
8
  // ../solution-sdk/src/solution-file.ts
9
+ class SolutionFileError extends Error {
10
+ errorCode;
11
+ constructor(message, errorCode) {
12
+ super(message);
13
+ this.name = "SolutionFileError";
14
+ this.errorCode = errorCode;
15
+ }
16
+ }
9
17
  var STUDIO_WEB_PROJECT_TYPE_OVERRIDES = {
10
18
  ProcessOrchestration: "processOrchestration"
11
19
  };
@@ -84,6 +92,29 @@ async function warnIfCandidateDirShadowed(fs, candidateDir, projectDir) {
84
92
  }
85
93
  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.");
86
94
  }
95
+ var DEFAULT_UIPX_INDENT = " ";
96
+ function escapeRegExp(text) {
97
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
98
+ }
99
+ function withSolutionId(content, parsed, newSolutionId) {
100
+ const previous = parsed.SolutionId;
101
+ if (typeof previous === "string") {
102
+ const pattern = new RegExp(`("SolutionId"\\s*:\\s*")${escapeRegExp(previous)}(")`, "g");
103
+ const matches = content.match(pattern) ?? [];
104
+ if (matches.length === 1) {
105
+ return content.replace(pattern, (_match, open, close) => `${open}${newSolutionId}${close}`);
106
+ }
107
+ }
108
+ const indent = content.match(/^([ \t]+)"/m)?.[1] ?? DEFAULT_UIPX_INDENT;
109
+ const text = JSON.stringify({ ...parsed, SolutionId: newSolutionId }, null, indent);
110
+ const eol = content.includes(`\r
111
+ `) ? `\r
112
+ ` : `
113
+ `;
114
+ const body = text.replace(/\n/g, eol);
115
+ return content.endsWith(`
116
+ `) ? `${body}${eol}` : body;
117
+ }
87
118
  async function updateUipxSolutionId(fs, uipxPath, newSolutionId) {
88
119
  const [readError, content] = await catchError2(fs.readFile(uipxPath, "utf-8"));
89
120
  if (readError || !content) {
@@ -95,13 +126,21 @@ async function updateUipxSolutionId(fs, uipxPath, newSolutionId) {
95
126
  logger.error(`Could not parse .uipx file for update: ${parseError.message}`);
96
127
  return;
97
128
  }
98
- parsed.SolutionId = newSolutionId;
99
- const [writeError] = await catchError2(fs.writeFile(uipxPath, JSON.stringify(parsed, null, 4)));
129
+ if (parsed.SolutionId === newSolutionId) {
130
+ return;
131
+ }
132
+ const [writeError] = await catchError2(fs.writeFile(uipxPath, withSolutionId(content, parsed, newSolutionId)));
100
133
  if (writeError) {
101
134
  logger.error(`Could not update .uipx with new SolutionId: ${writeError.message}`);
102
- } else {
103
- logger.info(`Updated .uipx with Studio Web SolutionId: ${newSolutionId}`);
135
+ return;
104
136
  }
137
+ const from = typeof parsed.SolutionId === "string" ? parsed.SolutionId : undefined;
138
+ logger.warn(from ? `Rewrote SolutionId in ${uipxPath}: ${from} -> ${newSolutionId} (Studio Web's id for this solution).` : `Wrote SolutionId ${newSolutionId} into ${uipxPath} (Studio Web's id for this solution).`);
139
+ return {
140
+ Path: uipxPath,
141
+ ...from ? { From: from } : {},
142
+ To: newSolutionId
143
+ };
105
144
  }
106
145
  async function findSolutionFile2(fs, projectPath) {
107
146
  const parentDir = fs.path.resolve(projectPath, "..");
@@ -147,7 +186,7 @@ async function updateSolutionFile2(fs, projectPath, newSolutionId) {
147
186
  if (!uipxFile)
148
187
  return;
149
188
  const uipxPath = fs.path.join(parentDir, uipxFile);
150
- await updateUipxSolutionId(fs, uipxPath, newSolutionId);
189
+ return updateUipxSolutionId(fs, uipxPath, newSolutionId);
151
190
  }
152
191
  async function tryRegisterProjectInParentSolution2(fs, projectDir, options) {
153
192
  if (options?.skipRegistration) {
@@ -249,8 +288,7 @@ async function registerProjectInParentSolution(fs, projectDir) {
249
288
  Id: projectId
250
289
  });
251
290
  solution.content.Projects = solution.projects;
252
- const [writeError] = await catchError2(fs.writeFile(solutionFile, `${JSON.stringify(solution.content, null, 2)}
253
- `));
291
+ const [writeError] = await catchError2(writeSolutionManifest(fs, solutionFile, solution.content));
254
292
  if (writeError) {
255
293
  return {
256
294
  Status: "Failed",
@@ -269,6 +307,30 @@ async function registerProjectInParentSolution(fs, projectDir) {
269
307
  Instructions: buildRegistrationSuccessInstructions(solutionDir)
270
308
  };
271
309
  }
310
+ async function writeSolutionManifest(fs, solutionFile, content) {
311
+ const [, previous] = await catchError2(fs.readFile(solutionFile, "utf-8"));
312
+ const before = typeof previous === "string" ? previous : "";
313
+ const bom = before.startsWith("\uFEFF");
314
+ const crlf = before.includes(`\r
315
+ `);
316
+ const indent = /\n([ \t]+)\S/.exec(before.replace(/\r\n/g, `
317
+ `))?.[1] ?? " ";
318
+ const finalNewline = before === "" || /\n$/.test(before);
319
+ let text = JSON.stringify(content, null, indent) + (finalNewline ? `
320
+ ` : "");
321
+ if (crlf)
322
+ text = text.replace(/\n/g, `\r
323
+ `);
324
+ if (bom)
325
+ text = `\uFEFF${text}`;
326
+ const temp = `${solutionFile}.${crypto.randomUUID()}.tmp`;
327
+ await fs.writeFile(temp, text);
328
+ const [renameError] = await catchError2(fs.rename(temp, solutionFile));
329
+ if (renameError) {
330
+ await catchError2(fs.rm(temp));
331
+ throw renameError;
332
+ }
333
+ }
272
334
  async function findNearestParentUipxFile(fs, projectDir) {
273
335
  let currentDir = fs.path.dirname(fs.path.resolve(projectDir));
274
336
  while (true) {
@@ -372,7 +434,7 @@ async function readSolutionManifest(fs, solutionFile) {
372
434
  null
373
435
  ];
374
436
  }
375
- const [parseError, parsed] = catchError2(() => JSON.parse(rawContent));
437
+ const [parseError, parsed] = catchError2(() => JSON.parse(rawContent.replace(/^\uFEFF/, "")));
376
438
  if (parseError) {
377
439
  return [
378
440
  new Error(`Invalid JSON in solution file: ${parseError.message}`),
@@ -458,16 +520,61 @@ async function findSolutionFileUpward(fs, startDir) {
458
520
  return fs.path.join(dir, files[0]);
459
521
  }
460
522
  if (files.length > 1) {
461
- throw new Error(`Multiple .uipx files found in ${dir}. Please specify which solution file to use.`);
523
+ throw new SolutionFileError(`Multiple .uipx files found in ${dir}. Please specify which solution file to use.`, "invalid_argument");
462
524
  }
463
525
  const parent = fs.path.dirname(dir);
464
526
  if (parent === dir) {
465
- throw new Error(`No .uipx solution file found (searched from ${startDir} to filesystem root)`);
527
+ throw new SolutionFileError(`No .uipx solution file found (searched from ${startDir} to filesystem root)`, "not_found");
466
528
  }
467
529
  dir = parent;
468
530
  }
469
531
  }
470
532
 
471
- export { normalizeProjectType, toPortableRelativePath, prepareProjectLocation2, findSolutionFile2, updateSolutionFile2, tryRegisterProjectInParentSolution2, findSolutionFileUpward };
533
+ // ../solution-sdk/src/resources/services/resource-name.ts
534
+ var MAX_RESOURCE_NAME_LENGTH2 = 256;
535
+ var UNSAFE_NAME_CHARS = /[\\/:*?"<>|]/;
536
+ function hasControlChar(value) {
537
+ for (let i = 0;i < value.length; i++) {
538
+ if (value.charCodeAt(i) < 32)
539
+ return true;
540
+ }
541
+ return false;
542
+ }
543
+ function hasUnsafeNameChars2(name) {
544
+ return UNSAFE_NAME_CHARS.test(name) || hasControlChar(name);
545
+ }
546
+ function validateResourceName2(name, options = {}) {
547
+ const optionName = options.optionName ?? "--name";
548
+ if (name.trim() === "") {
549
+ return {
550
+ ok: false,
551
+ message: `${optionName} must not be blank`,
552
+ instructions: "Pass a non-empty resource name."
553
+ };
554
+ }
555
+ if (name.length > MAX_RESOURCE_NAME_LENGTH2) {
556
+ return {
557
+ ok: false,
558
+ message: `${optionName} exceeds the ${MAX_RESOURCE_NAME_LENGTH2}-character limit (got ${name.length})`,
559
+ instructions: "Shorten the resource name. Orchestrator name limits are kind-specific (queues cap at 50, assets at 256)."
560
+ };
561
+ }
562
+ if (hasUnsafeNameChars2(name)) {
563
+ return {
564
+ ok: false,
565
+ message: `${optionName} contains unsafe characters`,
566
+ instructions: 'Resource names cannot contain path separators (/, \\), control characters, or any of: : * ? " < > |'
567
+ };
568
+ }
569
+ return { ok: true };
570
+ }
571
+ function assertValidResourceName2(name, options = {}) {
572
+ const result = validateResourceName2(name, options);
573
+ if (!result.ok) {
574
+ throw new Error(`${result.message}. ${result.instructions}`);
575
+ }
576
+ }
577
+
578
+ export { SolutionFileError, normalizeProjectType, toPortableRelativePath, prepareProjectLocation2, findSolutionFile2, updateSolutionFile2, tryRegisterProjectInParentSolution2, findSolutionFileUpward, MAX_RESOURCE_NAME_LENGTH2, hasUnsafeNameChars2, validateResourceName2, assertValidResourceName2 };
472
579
 
473
- //# debugId=9696975038F1793864756E2164756E21
580
+ //# debugId=4CDE99BB4170678E64756E2164756E21
@@ -1,6 +1,8 @@
1
1
  // ../auth/src/constants.ts
2
2
  var UIPATH_HOME_DIR = ".uipath";
3
3
  var AUTH_FILENAME = ".auth";
4
+ var AUTH_FILE_MODE = 384;
5
+ var AUTH_DIR_MODE = 448;
4
6
  var DEFAULT_BASE_URL = "https://cloud.uipath.com";
5
7
  var DEFAULT_AUTH_TIMEOUT_MS2 = 5 * 60 * 1000;
6
8
  var AUTH_TIMEOUT_ERROR_CODE2 = "EAUTHTIMEOUT";
@@ -8,6 +10,6 @@ var AUTH_CANCELLED_ERROR_CODE2 = "EAUTHCANCELLED";
8
10
  var AUTH_RECLAIMED_ERROR_CODE2 = "EAUTHRECLAIMED";
9
11
  var DEFAULT_REDIRECT_URI = "http://localhost:8104/oidc/login";
10
12
 
11
- export { UIPATH_HOME_DIR, AUTH_FILENAME, DEFAULT_BASE_URL, DEFAULT_AUTH_TIMEOUT_MS2, AUTH_TIMEOUT_ERROR_CODE2, AUTH_CANCELLED_ERROR_CODE2, AUTH_RECLAIMED_ERROR_CODE2, DEFAULT_REDIRECT_URI };
13
+ export { UIPATH_HOME_DIR, AUTH_FILENAME, AUTH_FILE_MODE, AUTH_DIR_MODE, DEFAULT_BASE_URL, DEFAULT_AUTH_TIMEOUT_MS2, AUTH_TIMEOUT_ERROR_CODE2, AUTH_CANCELLED_ERROR_CODE2, AUTH_RECLAIMED_ERROR_CODE2, DEFAULT_REDIRECT_URI };
12
14
 
13
- //# debugId=E7C257634482E5EF64756E2164756E21
15
+ //# debugId=BFA3F5E01354E13164756E2164756E21
@@ -0,0 +1,22 @@
1
+ // src/services/validate-issue-lines.ts
2
+ var SLA_CONTRACT_CODES = new Set([
3
+ ...["ROOT", "STAGE"].flatMap((scope) => [
4
+ "SLA_ABOVE_MAX_MINUTES",
5
+ "SLA_BELOW_MIN_MINUTES",
6
+ "SLA_COUNT_NON_POSITIVE",
7
+ "SLA_NO_CONDITION",
8
+ "ESCALATION_ATRISK_PERCENTAGE_OUT_OF_RANGE"
9
+ ].map((rule) => `CASE_MGMT_${scope}_${rule}`)),
10
+ "CASE_MGMT_SLA_NAME_DUPLICATE",
11
+ "CASE_MGMT_SLA_NAME_INVALID",
12
+ "CASE_MGMT_SLA_NAME_MISSING",
13
+ "CASE_MGMT_ESCALATION_NAME_DUPLICATE",
14
+ "CASE_MGMT_ESCALATION_NAME_INVALID",
15
+ "CASE_MGMT_ESCALATION_NAME_MISSING"
16
+ ]);
17
+ var slaErrors = (issues) => issues.filter((i) => i.severity === "error" && SLA_CONTRACT_CODES.has(i.code));
18
+ var issueLine = (issue) => ` - [${issue.severity}] [${issue.path}] ${issue.message}`;
19
+
20
+ export { slaErrors, issueLine };
21
+
22
+ //# debugId=F3C7AC5FF581261A64756E2164756E21