@uipath/case-tool 1.206.0-preview.306 → 1.207.0-preview.307

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 (155) hide show
  1. package/README.md +7 -90
  2. package/dist/THIRD-PARTY-NOTICES.md +164 -9
  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-56a4wtat.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-r60m9e6a.js → case-debug-solution-projects-b2rsts1n.js} +2 -2
  12. package/dist/{case-debug-studio-web-service-my6vezsd.js → case-debug-studio-web-service-39gj6045.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-17rj6kqt.js +297 -0
  17. package/dist/{case-splice-service-8deak994.js → case-splice-service-tpp2syvn.js} +7 -7
  18. package/dist/{case-validate-service-pesq63n9.js → case-validate-service-m2kk0fme.js} +146 -38
  19. package/dist/{connector-enrichment-service-e0z27bhh.js → connector-enrichment-service-s5y68svm.js} +26 -25
  20. package/dist/{connector-library-1yw5r47w.js → connector-library-844myxz2.js} +20 -6
  21. package/dist/{connector-lookup-service-rpmsy37q.js → connector-lookup-service-g5qw6a1n.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/{embedded-file-reader-pxpwcq3n.js → embedded-file-reader-k94wt612.js} +16 -16
  27. package/dist/{en-LAVDF7IQ-yzy20n6d.js → en-5JIPZTS5-c68n8taw.js} +4 -2
  28. package/dist/{en-X6T4SP2Y-xm47mf18.js → en-ETY46SDS-far9tmsf.js} +66 -2
  29. package/dist/{enrichment-service-hzsn1aqp.js → enrichment-service-dm5kvwhy.js} +17 -17
  30. package/dist/{es-SPNKTD5Y-vw5cbgv5.js → es-AQW6PFIU-q2mz247f.js} +164 -2
  31. package/dist/{es-7ZTQTGKN-11sj0yjx.js → es-IYP2OLUY-98xsbyd5.js} +1271 -10
  32. package/dist/{es-MX-IHGRIEWH-g63p0gb4.js → es-MX-D2MN3U37-0y5q0nbe.js} +1276 -10
  33. package/dist/{es-MX-7KJZPEQN-1fq0a9jr.js → es-MX-KWITVBWE-w49gknha.js} +164 -2
  34. package/dist/{first-party-service-6b9ajm57.js → first-party-service-qfg2m05s.js} +1 -1
  35. package/dist/{fr-7ZDL4MVO-pd27vwh6.js → fr-NISALSPL-vzfmygd7.js} +1277 -10
  36. package/dist/{fr-AXJGUT53-hdg3pmd4.js → fr-RNWK2TMC-dpyzj366.js} +164 -2
  37. package/dist/{index-0m89asqv.js → index-59sh1kv0.js} +129 -76
  38. package/dist/index-b3n9b1bf.js +36 -0
  39. package/dist/{index-amqqhge1.js → index-ewg6ygg0.js} +1 -1
  40. package/dist/{index-j2gw61z0.js → index-r16ndadh.js} +3030 -764
  41. package/dist/{index-nj3axvya.js → index-rk82650j.js} +7 -5
  42. package/dist/{index-pg9wmyrf.js → index-t6fnts8a.js} +2 -2
  43. package/dist/index-wkmh1h6w.js +26 -0
  44. package/dist/{index-v8jen5rh.js → index-xy5fcn8e.js} +4 -4
  45. package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
  46. package/dist/index.js +13 -11
  47. package/dist/init-entry-points-52kvvbg9.js +15 -0
  48. package/dist/input-reader-zr71xcm9.js +13 -0
  49. package/dist/integration-service-fetcher-n6d0dwba.js +68 -0
  50. package/dist/{ja-C7GZV6YP-hvtbngr5.js → ja-DH4I3GEF-ywyhhppa.js} +164 -2
  51. package/dist/{ja-LGAM5HKR-sgrtjqjh.js → ja-HTS2Q4YG-4ahnq47y.js} +1277 -10
  52. package/dist/{known-types-gak9by1w.js → known-types-a5d0evdm.js} +2 -2
  53. package/dist/{ko-7B4SUZB7-c8wr20sc.js → ko-3JFGTMNY-qnf1bnef.js} +1271 -10
  54. package/dist/{ko-Q24HSSL4-5vn55pte.js → ko-R5BCWVO7-whzgmh6q.js} +164 -2
  55. package/dist/library-option-pbvkt66g.js +13 -0
  56. package/dist/{localSolutionDiscovery-9pj8mzye.js → localSolutionDiscovery-5sqz9dkr.js} +5 -5
  57. package/dist/manifest-rhee8kem.js +32 -0
  58. package/dist/{node-strategy-2mqzg36t.js → node-strategy-aaf2qe6c.js} +2 -2
  59. package/dist/{node-sync-service-zvwk08cj.js → node-sync-service-phye3746.js} +21 -15
  60. package/dist/{out-target-gtg3we44.js → out-target-02x6x6nk.js} +5 -5
  61. package/dist/{packager-tool-h2ar8xf8.js → packager-tool-00ck60cc.js} +25 -24
  62. package/dist/{packager-tool-388vyja1.js → packager-tool-0gmnk7sb.js} +2 -2
  63. package/dist/{packager-tool-fcektt1g.js → packager-tool-0nbcqyvp.js} +10 -9
  64. package/dist/{packager-tool-wg91yz70.js → packager-tool-1jtrz02q.js} +61 -11
  65. package/dist/packager-tool-1yew22sn.js +9 -0
  66. package/dist/{packager-tool-1hpd2gmh.js → packager-tool-225b9qhq.js} +1 -1
  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-cqkbf2fg.js → packager-tool-3hzsw5r7.js} +906 -41
  71. package/dist/packager-tool-3k5j706w.js +73 -0
  72. package/dist/{packager-tool-8h6tqbps.js → packager-tool-41j8ppy2.js} +59 -34
  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-8n13ny0q.js → packager-tool-70a6y6t1.js} +3393 -3092
  78. package/dist/{packager-tool-0xj79bbd.js → packager-tool-8kcwawyg.js} +13 -4
  79. package/dist/{packager-tool-wy3a65rx.js → packager-tool-bw4fsdq4.js} +27 -13
  80. package/dist/{packager-tool-dn9d4ywm.js → packager-tool-c0pavv0s.js} +66 -10
  81. package/dist/packager-tool-c9h0rwgv.js +31 -0
  82. package/dist/{packager-tool-t8qx6hvn.js → packager-tool-dv2vtyg0.js} +4 -4
  83. package/dist/{packager-tool-3r23qsca.js → packager-tool-ef43cy32.js} +213 -231
  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-k9z8yg4f.js → packager-tool-jepvcpj7.js} +22 -8
  94. package/dist/{packager-tool-7x1tmb8a.js → packager-tool-jydreskq.js} +1 -1
  95. package/dist/{packager-tool-r5pha7xq.js → packager-tool-k08k9g2y.js} +9 -9
  96. package/dist/{packager-tool-bg3tdpva.js → packager-tool-kh9gs4d5.js} +4 -2
  97. package/dist/{packager-tool-8467kcz9.js → packager-tool-m7s4n455.js} +120 -13
  98. package/dist/{packager-tool-5ytjvsfb.js → packager-tool-mbm0kd8w.js} +22 -22
  99. package/dist/{packager-tool-q26hncjr.js → packager-tool-n3r5apbb.js} +4 -2
  100. package/dist/packager-tool-n6h4bz4d.js +22 -0
  101. package/dist/{packager-tool-4t71ya0d.js → packager-tool-nqz24dxf.js} +254 -69
  102. package/dist/{packager-tool-ad8v11jd.js → packager-tool-p4c1g2sj.js} +1032 -819
  103. package/dist/{packager-tool-z070caqq.js → packager-tool-p64w2wrt.js} +30 -8
  104. package/dist/{packager-tool-xd1wbvay.js → packager-tool-pq61r2f1.js} +1 -1
  105. package/dist/{packager-tool-65vr263d.js → packager-tool-qzyb1eac.js} +1 -1
  106. package/dist/{packager-tool-5dptce1y.js → packager-tool-rzxnm9yj.js} +2 -2
  107. package/dist/{packager-tool-jjkypwge.js → packager-tool-s8jxyjgj.js} +15 -4
  108. package/dist/{init-entry-points-5xzn81bb.js → packager-tool-t6xwkhht.js} +12 -10
  109. package/dist/packager-tool-vmfd007q.js +27 -0
  110. package/dist/packager-tool-wvf6b31h.js +50 -0
  111. package/dist/{packager-tool-cdvrca04.js → packager-tool-x9z4krtr.js} +1036 -259
  112. package/dist/{packager-tool-z1fw9a8v.js → packager-tool-y69796fy.js} +19 -11
  113. package/dist/{packager-tool-f93rmjxx.js → packager-tool-z3k461re.js} +191 -154
  114. package/dist/{packager-tool-9m7jbv7t.js → packager-tool-zbfwp75m.js} +4 -4
  115. package/dist/{packager-tool-pq9xv4vq.js → packager-tool-zte9svtn.js} +11 -4
  116. package/dist/packager-tool.js +2 -2
  117. package/dist/{prepare-uip-ad7mfs8t.js → prepare-uip-2hcb65bn.js} +39 -6
  118. package/dist/{project-artifacts-pfcn65cg.js → project-artifacts-jaj95t3d.js} +1 -1
  119. package/dist/{pt-BR-BIUJXIPU-2sqzhr8y.js → pt-BR-6TBBEDQS-y3f2vg5d.js} +164 -2
  120. package/dist/{pt-BR-PHLFHMXZ-n6de4s7z.js → pt-BR-7H7BP5DT-z2e5aaj1.js} +1276 -10
  121. package/dist/{pt-N7ZTJT4W-d6c67xcn.js → pt-QWGSZKMD-m50nrkx8.js} +1271 -10
  122. package/dist/{pt-MHX6JGAX-xfgvdqwg.js → pt-ZSQC5RZ3-8kp3g1z5.js} +164 -2
  123. package/dist/{resolved-check-dz8eqrf6.js → resolved-check-kwgy875v.js} +1 -1
  124. package/dist/{resourcesSyncService-7j2m0tv0.js → resourcesSyncService-5gcxp8r5.js} +49 -26
  125. package/dist/{ro-FLNXVYJI-ytrwabg2.js → ro-B7G474JK-9k2jjk88.js} +1271 -10
  126. package/dist/{ro-3RKJNGJZ-xqj14e3d.js → ro-P33AQ6ZL-s92z1mgg.js} +164 -2
  127. package/dist/{rule-type-declaration-ze0saj5r.js → rule-type-declaration-a0fk7fe7.js} +12 -11
  128. package/dist/{sdd-convert-service-m8e615a1.js → sdd-convert-service-2ag3xjpj.js} +120 -621
  129. package/dist/{sdd-lookup-fwj6x364.js → sdd-lookup-wgm5ctnd.js} +2 -2
  130. package/dist/{sdd-resolve-service-dvg387wx.js → sdd-resolve-service-epygyb0n.js} +34 -6
  131. package/dist/{sdd-resolve-siblings-jc2788nm.js → sdd-resolve-siblings-bg4qmawq.js} +4 -4
  132. package/dist/solution-auth-yb1twb9d.js +11 -0
  133. package/dist/{solution-definition-helper-6zwd9hjs.js → solution-definition-helper-qjj01xh0.js} +1 -1
  134. package/dist/{solution-discovery-gfdqhgt2.js → solution-discovery-t0nkzpm3.js} +4 -4
  135. package/dist/{strict-case-rules-045kbjvv.js → strict-case-rules-x1sytx3e.js} +91 -46
  136. package/dist/{strict-entry-points-wd85a81g.js → strict-entry-points-anxeg692.js} +6 -6
  137. package/dist/strict-sdd-audit-z1bg2zr0.js +28 -0
  138. package/dist/taggable-variables-gc58xb0s.js +6094 -0
  139. package/dist/task-type-declaration-b0ejzhc6.js +15 -0
  140. package/dist/tool.js +13 -11
  141. package/dist/{tr-7AIZZWZ6-pdzp9n0p.js → tr-FX7WCKK2-x3rx9fjt.js} +1271 -10
  142. package/dist/{tr-PQLUUHPC-qsb7btxn.js → tr-XD73CQAA-tb2nrpyp.js} +164 -2
  143. package/dist/{trigger-enrichment-service-8nfz9p7h.js → trigger-enrichment-service-zn229s6b.js} +33 -32
  144. package/dist/{trigger-entry-point-id-4j9rk3kp.js → trigger-entry-point-id-hre2ewts.js} +1 -1
  145. package/dist/{zh-CN-OHNTHZRI-b0hjkfqn.js → zh-CN-GWP3B2EM-c07fm17a.js} +164 -2
  146. package/dist/{zh-CN-CN2ARPFS-e0p2qrxf.js → zh-CN-NCMB6YM5-drw9bnxg.js} +1271 -10
  147. package/dist/{zh-TW-E4D3Y6ZR-tn3bmzz5.js → zh-TW-2DLUOA7C-9khqnr4r.js} +164 -2
  148. package/dist/{zh-TW-7RUFEVFK-qd7myw31.js → zh-TW-UNIEJPLE-4vxzbphe.js} +1272 -11
  149. package/package.json +2 -2
  150. package/dist/case-pack-service-adhg30nq.js +0 -167
  151. package/dist/index-9fxd19z9.js +0 -35
  152. package/dist/input-reader-pjt4a914.js +0 -10
  153. package/dist/packager-tool-v11fx4dk.js +0 -25
  154. package/dist/solution-auth-a1p22hq1.js +0 -11
  155. package/dist/strict-sdd-audit-6es2j6fs.js +0 -26
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  catchError2,
3
+ RESULTS,
3
4
  redactTokens,
4
5
  parseAuthChallenge,
5
- RESULTS,
6
6
  summarizePlatformBody,
7
7
  logger,
8
8
  getSdkUserAgentToken,
9
9
  addSdkUserAgentHeader,
10
10
  installSdkUserAgentHeader
11
- } from "./packager-tool-6ewsbrnb.js";
11
+ } from "./packager-tool-j8mnpsv8.js";
12
12
  import {
13
13
  zipSync
14
14
  } from "./packager-tool-wbksf242.js";
@@ -501,7 +501,7 @@ var package_default = {
501
501
  name: "@uipath/solution-sdk",
502
502
  author: "UiPath",
503
503
  license: "SEE LICENSE IN LICENSE.txt",
504
- version: "1.206.0-preview.306",
504
+ version: "1.207.0-preview.307",
505
505
  repository: {
506
506
  type: "git",
507
507
  url: "https://github.com/UiPath/cli.git",
@@ -542,6 +542,10 @@ var package_default = {
542
542
  "./project-context": {
543
543
  types: "./dist/src/project-context.d.ts",
544
544
  default: "./dist/project-context.js"
545
+ },
546
+ "./invocation-graph": {
547
+ types: "./dist/src/invocation-graph.d.ts",
548
+ default: "./dist/invocation-graph.js"
545
549
  }
546
550
  },
547
551
  bin: {
@@ -552,7 +556,7 @@ var package_default = {
552
556
  ],
553
557
  private: false,
554
558
  scripts: {
555
- build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.ts ./src/project-context.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
559
+ build: "bun build ./src/index.ts ./src/resources/index.ts ./src/solution-auth.ts ./src/deployment-search.ts ./src/package-search.ts ./src/project-context.ts ./src/invocation-graph.ts --outdir dist --format esm --target node --splitting --sourcemap=linked && bun build ./src/scripts/generate-sdk.ts --outdir dist/scripts --format esm --target node --sourcemap=linked && tsc -p tsconfig.build.json --noCheck",
556
560
  generate: "bun run src/scripts/generate-sdk.ts",
557
561
  lint: "biome check .",
558
562
  test: "vitest run",
@@ -566,7 +570,7 @@ var package_default = {
566
570
  "@uipath/filesystem": "workspace:*",
567
571
  "@uipath/orchestrator-sdk": "workspace:*",
568
572
  "@uipath/pipelines-sdk": "workspace:*",
569
- "@uipath/resource-builder-sdk": "2026.11.0-alpha0531-4969",
573
+ "@uipath/resource-builder-sdk": "1.0.0-s207-18596",
570
574
  "@uipath/solutionpackager-tool-core": "workspace:*",
571
575
  "@uipath/studioweb-sdk": "workspace:*",
572
576
  "@types/node": "^25.5.2",
@@ -974,14 +978,16 @@ async function mirrorTree(fs, srcDir, relativeBase, destBaseDir, ignoreRules) {
974
978
  if (rootRel) {
975
979
  await fs.mkdir(fs.path.join(destBaseDir, rootRel));
976
980
  }
977
- return;
981
+ return [];
978
982
  }
983
+ const copied = [];
979
984
  for (const f of files) {
980
985
  const relPath = fs.path.relative(relativeBase, f);
981
986
  const destPath = fs.path.join(destBaseDir, relPath);
982
987
  const data = await fs.readFile(f);
983
988
  if (data) {
984
989
  await fs.writeFile(destPath, data);
990
+ copied.push(f);
985
991
  } else {
986
992
  logger.warn(`Skipping empty or unreadable file: ${f}`);
987
993
  }
@@ -993,6 +999,7 @@ async function mirrorTree(fs, srcDir, relativeBase, destBaseDir, ignoreRules) {
993
999
  }
994
1000
  await fs.mkdir(fs.path.join(destBaseDir, relPath));
995
1001
  }
1002
+ return copied;
996
1003
  }
997
1004
  async function buildSolutionPackageFromDir2(fs, solutionDir) {
998
1005
  const absoluteSolutionDir = fs.path.resolve(solutionDir);
@@ -1112,6 +1119,7 @@ function buildAuthRefusalInstructions({
1112
1119
  const closing = bodySuffix ? `If the grants and the tenant are already right, report the platform ` + `response, including its traceId.${bodySuffix}` : challenge.error ? `If the grants and the tenant are already right, report that reason ` + `together with the request path and status above.` : `If the grants and the tenant are already right, report the request ` + `path and status above — Studio Web returned no response body and ` + `no authentication challenge, so there is nothing further to quote.`;
1113
1120
  return `Studio Web ${refusal} while ${what}. ${diagnosis}${actor}${tenant}` + `Nothing was uploaded and nothing ran, so the ${subject} is not the ` + `cause. ${closing}`;
1114
1121
  }
1122
+ var INVALID_FILE_NAME_ERROR_CODE = "20039";
1115
1123
  function buildSolutionUploadFailureOutput2(err, options = {}) {
1116
1124
  const stage = err.operation === "overwrite" ? "overwrite-solution" : "import-solution";
1117
1125
  const authRefusal = isAuthRefusal(err.status);
@@ -1132,7 +1140,8 @@ function buildSolutionUploadFailureOutput2(err, options = {}) {
1132
1140
  identityType: options.identityType,
1133
1141
  clientId: options.clientId
1134
1142
  }) : undefined;
1135
- const Instructions = authInstructions ?? (err.operation === "overwrite" ? `Studio Web refused to replace the contents of solution ` + `${target}. Nothing was uploaded and nothing ran, so the ` + `${subject} is not the cause: do not re-author it, and do not ` + `copy the project into another solution. Confirm that ${target} ` + `is a solution you can still write to, and that it is the one ` + `this project should publish to — it comes from the SolutionId ` + `recorded in the enclosing solution file. If it is right, report ` + `the platform response.${bodySuffix}` : `Studio Web refused to import the solution package. Nothing was ` + `uploaded and nothing ran, so no part of the ${subject} executed ` + `— but the package itself may be what was rejected.${importHint} ` + `Report the platform response if the ${subject} is ` + `well-formed.${bodySuffix}`);
1143
+ const invalidFileName = err.parsedErrorCode === INVALID_FILE_NAME_ERROR_CODE;
1144
+ const Instructions = authInstructions ?? (invalidFileName ? `Studio Web refused a file name in the uploaded solution ` + `package: a file inside a project folder has a name holding a ` + `control character or one of : * ? " < > |, and the platform ` + `does not say which file. Rename that file, or move it out ` + `of the project folder, and upload again. Retrying ` + `unchanged fails the same way.${bodySuffix}` : err.operation === "overwrite" ? `Studio Web refused to replace the contents of solution ` + `${target}. Nothing was uploaded and nothing ran, so the ` + `${subject} is not the cause: do not re-author it, and do not ` + `copy the project into another solution. Confirm that ${target} ` + `is a solution you can still write to, and that it is the one ` + `this project should publish to — it comes from the SolutionId ` + `recorded in the enclosing solution file. If it is right, report ` + `the platform response.${bodySuffix}` : `Studio Web refused to import the solution package. Nothing was ` + `uploaded and nothing ran, so no part of the ${subject} executed ` + `— but the package itself may be what was rejected.${importHint} ` + `Report the platform response if the ${subject} is ` + `well-formed.${bodySuffix}`);
1136
1145
  const Context = {
1137
1146
  httpStatus: err.status,
1138
1147
  stage,
@@ -1151,6 +1160,11 @@ function buildSolutionUploadFailureOutput2(err, options = {}) {
1151
1160
  if (err.status === 401 && options.identityType === "Application") {
1152
1161
  output.ErrorCode = "permission_denied";
1153
1162
  }
1163
+ if (invalidFileName) {
1164
+ output.ErrorCode = "invalid_argument";
1165
+ output.Retry = "RetryWillNotFix";
1166
+ return output;
1167
+ }
1154
1168
  if (err.operation === "overwrite" && err.status >= 500 && err.status < 600) {
1155
1169
  output.Retry = "RetryAfter30Seconds";
1156
1170
  }
@@ -1285,4 +1299,4 @@ async function uploadOrOverwriteSolution2(config, organizationName, fileBufferOr
1285
1299
  }
1286
1300
  export { buildSolutionPackageFromDir2, isSolutionUploadHttpError2, buildSolutionUploadFailureOutput2, uploadOrOverwriteSolution2 };
1287
1301
 
1288
- //# debugId=B887173F4A730FEF64756E2164756E21
1302
+ //# debugId=54155E12C4073FB064756E2164756E21
@@ -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,28 +1,28 @@
1
1
  import {
2
2
  catchError2
3
- } from "./packager-tool-6ewsbrnb.js";
3
+ } from "./packager-tool-j8mnpsv8.js";
4
4
  import {
5
5
  ElementsApi,
6
- createApiClient,
7
- createConfiguredActivityClient,
8
- assertActivityMetadataResolved,
9
- extractMultipartParameters,
10
- buildInputMetadata
11
- } from "./packager-tool-8n13ny0q.js";
6
+ createApiClient2,
7
+ createConfiguredActivityClient2,
8
+ assertActivityMetadataResolved2,
9
+ extractMultipartParameters2,
10
+ buildInputMetadata2
11
+ } from "./packager-tool-70a6y6t1.js";
12
12
  import {
13
13
  guardJsonString
14
- } from "./packager-tool-h2ar8xf8.js";
14
+ } from "./packager-tool-00ck60cc.js";
15
+ import {
16
+ fetchConnectorMetadata2
17
+ } from "./packager-tool-41j8ppy2.js";
15
18
  import {
16
19
  lookupTypeCacheEntry2,
17
20
  fetchConnectorConnections2
18
- } from "./packager-tool-wg91yz70.js";
21
+ } from "./packager-tool-1jtrz02q.js";
19
22
  import {
20
23
  buildErrorOutput,
21
24
  addVarIdsToInputsOutputs
22
- } from "./packager-tool-wy3a65rx.js";
23
- import {
24
- fetchConnectorMetadata2
25
- } from "./packager-tool-8h6tqbps.js";
25
+ } from "./packager-tool-bw4fsdq4.js";
26
26
  import {
27
27
  createConnectorBindings
28
28
  } from "./packager-tool-e1tx5mqg.js";
@@ -45,7 +45,7 @@ async function fetchMetadataSafe(connectorKey, objectName, connectionId) {
45
45
  return err ? undefined : result;
46
46
  }
47
47
  async function resolveActivityOperation2(connectorKey, displayName, operation) {
48
- const [apiError, api] = await catchError2(createApiClient(ElementsApi));
48
+ const [apiError, api] = await catchError2(createApiClient2(ElementsApi));
49
49
  if (apiError) {
50
50
  return operation;
51
51
  }
@@ -70,7 +70,7 @@ async function resolveActivityOperation2(connectorKey, displayName, operation) {
70
70
  return operation;
71
71
  }
72
72
  async function fetchObjectSwaggerPath2(connectorKey, objectName) {
73
- const [apiError, api] = await catchError2(createApiClient(ElementsApi));
73
+ const [apiError, api] = await catchError2(createApiClient2(ElementsApi));
74
74
  if (apiError) {
75
75
  return;
76
76
  }
@@ -89,7 +89,7 @@ async function fetchObjectSwaggerPath2(connectorKey, objectName) {
89
89
  return pathKeys[0];
90
90
  }
91
91
  async function fetchObjectMethodConfig2(connectorKey, objectName, httpMethod) {
92
- const [apiError, api] = await catchError2(createApiClient(ElementsApi));
92
+ const [apiError, api] = await catchError2(createApiClient2(ElementsApi));
93
93
  if (apiError) {
94
94
  return;
95
95
  }
@@ -111,14 +111,14 @@ async function fetchObjectMethodConfig2(connectorKey, objectName, httpMethod) {
111
111
  async function buildActivityPropertyConfig(params) {
112
112
  const { entry, uiPathActivityTypeId, connectionId } = params;
113
113
  const instanceParameters = parseEntryConfiguration2(entry);
114
- const activityClient = await createConfiguredActivityClient({
114
+ const activityClient = await createConfiguredActivityClient2({
115
115
  instanceParameters,
116
116
  connectionId
117
117
  });
118
118
  const { essentialConfiguration } = activityClient.getEssentialConfiguration();
119
- assertActivityMetadataResolved(essentialConfiguration, connectionId);
119
+ assertActivityMetadataResolved2(essentialConfiguration, connectionId);
120
120
  const essentialConfig = { essentialConfiguration };
121
- const multipartParams = extractMultipartParameters(params.objectMethodConfig?.parameters ?? []);
121
+ const multipartParams = extractMultipartParameters2(params.objectMethodConfig?.parameters ?? []);
122
122
  return {
123
123
  ...multipartParams.length > 0 ? { multipartParameters: multipartParams } : {},
124
124
  configuration: guardJsonString(JSON.stringify(essentialConfig)),
@@ -128,8 +128,8 @@ async function buildActivityPropertyConfig(params) {
128
128
  }
129
129
  function buildInputMetadataFromParams(objectMethodConfig, resolvedOperation) {
130
130
  const params = objectMethodConfig?.parameters ?? [];
131
- const multipartParams = extractMultipartParameters(params);
132
- return buildInputMetadata(multipartParams, resolvedOperation ?? "list") ?? undefined;
131
+ const multipartParams = extractMultipartParameters2(params);
132
+ return buildInputMetadata2(multipartParams, resolvedOperation ?? "list") ?? undefined;
133
133
  }
134
134
  function extractFields2(metadata) {
135
135
  if (metadata.fields) {
@@ -527,4 +527,4 @@ async function enrichConnectorActivity2(activityTypeId, connectionId, indexType
527
527
 
528
528
  export { parseEntryConfiguration2, resolveActivityOperation2, fetchObjectSwaggerPath2, fetchObjectMethodConfig2, extractFields2, normalizeFields2, mapISFieldsToInputOutputs2, buildParameterInputs2, buildConnectorContext2, extractFieldDefinitions2, enrichConnectorRegistryEntry2, enrichConnectorActivity2 };
529
529
 
530
- //# debugId=E98C74933F9F2C6D64756E2164756E21
530
+ //# debugId=39DE63A42F754E3364756E2164756E21
@@ -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