@uipath/cli 1.206.0-preview.312 → 1.206.0-preview.323

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 (50) hide show
  1. package/dist/{browser-strategy-p5fhwxqj.js → browser-strategy-5rfwnk5q.js} +1 -1
  2. package/dist/cli-scyadkbw.js +23 -0
  3. package/dist/{contentStore-c8qdg0wt.js → contentStore-1e7w7r8a.js} +5 -5
  4. package/dist/{environmentInfo-820krysw.js → environmentInfo-1xx9mb5r.js} +6 -6
  5. package/dist/{feedbackPrompts-bx209g5v.js → feedbackPrompts-r4sj086h.js} +3 -3
  6. package/dist/{handlers-jjwt24f2.js → handlers-cc8e03c5.js} +6 -6
  7. package/dist/{index-psza7d3s.js → index-0j733qxg.js} +2 -2
  8. package/dist/{index-z070caqq.js → index-2fcdfxh4.js} +26 -6
  9. package/dist/{index-g85a50s9.js → index-4g4zmq48.js} +5 -5
  10. package/dist/{index-vhn8f5d2.js → index-5b7pwqky.js} +3 -3
  11. package/dist/{index-99emfvtm.js → index-65pyx6c9.js} +4 -2
  12. package/dist/{index-3zf0ywpb.js → index-6mqg6tbj.js} +1 -1
  13. package/dist/{index-rbv6xxtn.js → index-9qzb89e3.js} +7 -7
  14. package/dist/{index-21kns9qg.js → index-b3v23nvm.js} +1 -1
  15. package/dist/{index-753mncpq.js → index-b4n6zsvg.js} +5 -5
  16. package/dist/{index-y7d0cth0.js → index-b724rwe7.js} +3 -3
  17. package/dist/{index-ckp8r4dh.js → index-dj8m0x6f.js} +2 -2
  18. package/dist/{index-wg3cne7n.js → index-dy8f1tj2.js} +2 -2
  19. package/dist/{index-2mm750yx.js → index-h9hs85dz.js} +51 -9
  20. package/dist/{index-69mcde3n.js → index-j5svw7d7.js} +3 -3
  21. package/dist/{index-3qp7d08f.js → index-k9x0gmjg.js} +5 -5
  22. package/dist/{index-7q9kcs3w.js → index-mpccw5zb.js} +2 -2
  23. package/dist/{index-wvg2kb7z.js → index-mtvawj1d.js} +2 -2
  24. package/dist/{index-72vztv2d.js → index-q3h60ae3.js} +48 -48
  25. package/dist/{index-rr5hdtcy.js → index-rmr19zen.js} +10 -10
  26. package/dist/{index-xtev15e6.js → index-tnd3wddc.js} +1 -1
  27. package/dist/{index-d68fbka0.js → index-tt21v7bm.js} +3 -3
  28. package/dist/{index-fdztq951.js → index-vc4s0ez7.js} +1 -1
  29. package/dist/{index-tt9ec7pe.js → index-we1qykrc.js} +6 -6
  30. package/dist/{index-2n2vr5w5.js → index-wk3rdk23.js} +3 -3
  31. package/dist/{index-jcnsbj5y.js → index-wx38dtjm.js} +4 -4
  32. package/dist/{index-8zhmg5tz.js → index-wz4gmvbj.js} +2 -2
  33. package/dist/{index-bxc30q35.js → index-yfwvasze.js} +2 -2
  34. package/dist/index.js +17 -17
  35. package/dist/{install-kgcwdbqs.js → install-e59jm3h6.js} +6 -6
  36. package/dist/{node-strategy-p1n8wr5s.js → node-strategy-2a6yf1ka.js} +2 -2
  37. package/dist/{project-context-caht70an.js → project-context-k0mgsyh6.js} +2 -2
  38. package/dist/{prompt-ycn509e8.js → prompt-779h1nzs.js} +5 -5
  39. package/dist/{server-ytgvcdd6.js → server-dpqwjbb6.js} +5 -5
  40. package/dist/{skillCatalog-36tf9fmk.js → skillCatalog-ac6wrftr.js} +6 -6
  41. package/dist/{skillsService-zr9kym0g.js → skillsService-qxgc9pce.js} +10 -10
  42. package/dist/{telemetry-drain-rt346cfz.js → telemetry-drain-ajjpnpcq.js} +2 -2
  43. package/dist/{tree-4dhk82fh.js → tree-amjg6aa3.js} +6 -6
  44. package/dist/{updateService-rwrqq3br.js → updateService-fk64c77k.js} +17 -17
  45. package/dist/updateService.skills-bc9qxnqm.js +22 -0
  46. package/dist/updateService.tools-6qyyc1bk.js +16 -0
  47. package/package.json +2 -2
  48. package/dist/cli-86a0cvqt.js +0 -23
  49. package/dist/updateService.skills-y4k083gn.js +0 -22
  50. package/dist/updateService.tools-3zfct9yk.js +0 -16
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AUTH_CANCELLED_ERROR_CODE2
3
- } from "./index-99emfvtm.js";
3
+ } from "./index-65pyx6c9.js";
4
4
  import {
5
5
  getGlobalThis
6
6
  } from "./index-zdqbp34f.js";
@@ -0,0 +1,23 @@
1
+ import"./index-2fcdfxh4.js";
2
+ import"./index-vc4s0ez7.js";
3
+ import {
4
+ runNode
5
+ } from "./index-q3h60ae3.js";
6
+ import"./index-b4n6zsvg.js";
7
+ import"./index-5b7pwqky.js";
8
+ import"./index-65pyx6c9.js";
9
+ import"./index-h9hs85dz.js";
10
+ import"./index-wz4gmvbj.js";
11
+ import"./index-wx38dtjm.js";
12
+ import"./index-6mqg6tbj.js";
13
+ import"./index-j5svw7d7.js";
14
+ import"./index-wk3rdk23.js";
15
+ import"./index-mtvawj1d.js";
16
+ import"./index-dy8f1tj2.js";
17
+ import"./index-dj8m0x6f.js";
18
+ import"./index-mpccw5zb.js";
19
+ export {
20
+ runNode as run
21
+ };
22
+
23
+ //# debugId=D5CE6D3967BC57AC64756E2164756E21
@@ -14,12 +14,12 @@ import {
14
14
  removeFromManifest2,
15
15
  readExtraFiles2,
16
16
  recordExtraFiles2
17
- } from "./index-g85a50s9.js";
18
- import"./index-ckp8r4dh.js";
19
- import"./index-3zf0ywpb.js";
20
- import"./index-fdztq951.js";
17
+ } from "./index-4g4zmq48.js";
18
+ import"./index-dj8m0x6f.js";
19
+ import"./index-6mqg6tbj.js";
20
+ import"./index-vc4s0ez7.js";
21
21
  import"./index-5gce5wfd.js";
22
- import"./index-z070caqq.js";
22
+ import"./index-2fcdfxh4.js";
23
23
  export {
24
24
  DEFAULT_SOURCE2 as DEFAULT_SOURCE,
25
25
  MANIFEST_NAME2 as MANIFEST_NAME,
@@ -1,17 +1,17 @@
1
- import"./index-z070caqq.js";
1
+ import"./index-2fcdfxh4.js";
2
2
  import {
3
3
  catchError,
4
4
  detectAgent
5
- } from "./index-fdztq951.js";
6
- import"./index-99emfvtm.js";
7
- import"./index-2mm750yx.js";
5
+ } from "./index-vc4s0ez7.js";
6
+ import"./index-65pyx6c9.js";
7
+ import"./index-h9hs85dz.js";
8
8
  import"./index-5j0bfd3e.js";
9
9
  import {
10
10
  auth
11
- } from "./index-rr5hdtcy.js";
11
+ } from "./index-rmr19zen.js";
12
12
  import {
13
13
  package_default
14
- } from "./index-psza7d3s.js";
14
+ } from "./index-0j733qxg.js";
15
15
 
16
16
  // src/services/environmentInfo.ts
17
17
  import { arch as osArch, release as osRelease, type as osType } from "node:os";
@@ -3,15 +3,15 @@ import {
3
3
  dist_default3,
4
4
  dist_default4
5
5
  } from "./index-5j0bfd3e.js";
6
- import"./index-z070caqq.js";
6
+ import"./index-2fcdfxh4.js";
7
7
  import {
8
8
  catchError
9
- } from "./index-fdztq951.js";
9
+ } from "./index-vc4s0ez7.js";
10
10
  import {
11
11
  VALID_TYPES,
12
12
  VALID_PRIORITIES,
13
13
  normalizeUrl
14
- } from "./index-8zhmg5tz.js";
14
+ } from "./index-wz4gmvbj.js";
15
15
 
16
16
  // src/services/feedbackPrompts.ts
17
17
  function isExitPrompt(error) {
@@ -3,7 +3,7 @@ import {
3
3
  AUTH_TIMEOUT_ERROR_CODE2,
4
4
  AUTH_CANCELLED_ERROR_CODE2,
5
5
  AUTH_RECLAIMED_ERROR_CODE2
6
- } from "./index-99emfvtm.js";
6
+ } from "./index-65pyx6c9.js";
7
7
  import {
8
8
  getActiveAuthProfile2,
9
9
  getActiveAuthProfileFilePath2,
@@ -16,10 +16,10 @@ import {
16
16
  DEFAULT_ENV_FILENAME2,
17
17
  resolveEnvFileLocationAsync2,
18
18
  isTenantSelectionError2
19
- } from "./index-2mm750yx.js";
19
+ } from "./index-h9hs85dz.js";
20
20
  import {
21
21
  getFileSystem2
22
- } from "./index-z070caqq.js";
22
+ } from "./index-2fcdfxh4.js";
23
23
  import {
24
24
  catchError,
25
25
  formatErrorChain,
@@ -34,17 +34,17 @@ import {
34
34
  resolveEnvReference,
35
35
  canPrompt,
36
36
  splitScopeList
37
- } from "./index-fdztq951.js";
37
+ } from "./index-vc4s0ez7.js";
38
38
  import"./index-5j0bfd3e.js";
39
39
  import {
40
40
  auth
41
- } from "./index-rr5hdtcy.js";
41
+ } from "./index-rmr19zen.js";
42
42
  import {
43
43
  COPYRIGHT_NOTICE,
44
44
  trackAuthLogin,
45
45
  trackTenantSelection,
46
46
  trackTokenRefresh
47
- } from "./index-7q9kcs3w.js";
47
+ } from "./index-mpccw5zb.js";
48
48
 
49
49
  // src/commands/login/handlers.ts
50
50
  function resolveCallbackTimeoutOverrideMs() {
@@ -3,7 +3,7 @@ var package_default = {
3
3
  name: "@uipath/cli",
4
4
  author: "UiPath",
5
5
  license: "SEE LICENSE IN LICENSE.txt",
6
- version: "1.206.0-preview.312",
6
+ version: "1.206.0-preview.323",
7
7
  description: "Cross platform CLI for UiPath",
8
8
  repository: {
9
9
  type: "git",
@@ -69,4 +69,4 @@ var package_default = {
69
69
 
70
70
  export { package_default };
71
71
 
72
- //# debugId=02B316DEACFB875064756E2164756E21
72
+ //# debugId=2B9D124F0C94F3FA64756E2164756E21
@@ -47,12 +47,26 @@ class NodeFileSystem {
47
47
  throw error;
48
48
  }
49
49
  }
50
- async writeFile(filePath, data) {
50
+ async writeFile(filePath, data, options) {
51
51
  const dir = path.dirname(filePath);
52
52
  if (dir) {
53
53
  await fs.mkdir(dir, { recursive: true });
54
54
  }
55
- await fs.writeFile(filePath, data);
55
+ if (options?.mode === undefined || process.platform === "win32") {
56
+ if (options?.exclusive) {
57
+ await fs.writeFile(filePath, data, { flag: "wx" });
58
+ } else {
59
+ await fs.writeFile(filePath, data);
60
+ }
61
+ return;
62
+ }
63
+ const handle = await fs.open(filePath, options.exclusive ? "wx" : "w", options.mode);
64
+ try {
65
+ await handle.chmod(options.mode);
66
+ await handle.writeFile(data);
67
+ } finally {
68
+ await handle.close();
69
+ }
56
70
  }
57
71
  async appendFile(filePath, data) {
58
72
  const dir = path.dirname(filePath);
@@ -87,7 +101,8 @@ class NodeFileSystem {
87
101
  isDirectory: () => stats.isDirectory(),
88
102
  size: stats.size,
89
103
  mtimeMs: stats.mtimeMs,
90
- ctimeMs: stats.ctimeMs
104
+ ctimeMs: stats.ctimeMs,
105
+ mode: stats.mode
91
106
  };
92
107
  } catch (error) {
93
108
  if (this.isEnoent(error))
@@ -98,8 +113,13 @@ class NodeFileSystem {
98
113
  async exists(filePath) {
99
114
  return existsSync(filePath);
100
115
  }
101
- async mkdir(dirPath) {
102
- await fs.mkdir(dirPath, { recursive: true });
116
+ async mkdir(dirPath, options) {
117
+ await fs.mkdir(dirPath, { recursive: true, mode: options?.mode });
118
+ }
119
+ async chmod(targetPath, mode) {
120
+ if (process.platform === "win32")
121
+ return;
122
+ await fs.chmod(targetPath, mode);
103
123
  }
104
124
  async acquireLock(lockPath) {
105
125
  const canonicalPath = await this.canonicalizeLockTarget(lockPath);
@@ -290,4 +310,4 @@ var getFileSystemAsync2 = async () => fsInstance;
290
310
 
291
311
  export { getFileSystem2, getFileSystemAsync2 };
292
312
 
293
- //# debugId=69A68E101956586864756E2164756E21
313
+ //# debugId=94CFD3450B8BBA6B64756E2164756E21
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./index-z070caqq.js";
3
+ } from "./index-2fcdfxh4.js";
4
4
  import {
5
5
  catchError,
6
6
  logger,
7
7
  UIPATH_HOME_DIR
8
- } from "./index-fdztq951.js";
8
+ } from "./index-vc4s0ez7.js";
9
9
  import {
10
10
  yaml
11
11
  } from "./index-5gce5wfd.js";
@@ -15,7 +15,7 @@ import {
15
15
  NPM_FETCH_RETRY_ENV,
16
16
  RegistryTlsError,
17
17
  npmTlsErrorCode
18
- } from "./index-3zf0ywpb.js";
18
+ } from "./index-6mqg6tbj.js";
19
19
  import {
20
20
  SkillSourceError,
21
21
  SkillsRegistryAuthError,
@@ -24,10 +24,10 @@ import {
24
24
  } from "./index-nsrrst23.js";
25
25
  import {
26
26
  commandOnPath
27
- } from "./index-ckp8r4dh.js";
27
+ } from "./index-dj8m0x6f.js";
28
28
  import {
29
29
  package_default
30
- } from "./index-psza7d3s.js";
30
+ } from "./index-0j733qxg.js";
31
31
 
32
32
  // src/commands/skills/contentStore.ts
33
33
  import { createHash, randomUUID } from "node:crypto";
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  getFileSystem2,
3
3
  getFileSystemAsync2
4
- } from "./index-z070caqq.js";
4
+ } from "./index-2fcdfxh4.js";
5
5
  import {
6
6
  catchError,
7
7
  Command,
8
8
  logger,
9
9
  REGISTER_EXPORT
10
- } from "./index-fdztq951.js";
10
+ } from "./index-vc4s0ez7.js";
11
11
  import {
12
12
  getGlobalNpmUipathDir,
13
13
  getEnvToolsDirsDeclaration,
14
14
  TOOLS_WHITELIST,
15
15
  WHITELIST_BY_SHORT_NAME
16
- } from "./index-69mcde3n.js";
16
+ } from "./index-j5svw7d7.js";
17
17
 
18
18
  // src/services/storage.ts
19
19
  class GeneralizedStorage {
@@ -1,6 +1,8 @@
1
1
  // ../auth/src/constants.ts
2
2
  var UIPATH_HOME_DIR2 = ".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_DIR2, 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_DIR2, 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=056E9CDCB7772FA664756E2164756E21
15
+ //# debugId=2785918410A7056B64756E2164756E21
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  logger
3
- } from "./index-fdztq951.js";
3
+ } from "./index-vc4s0ez7.js";
4
4
 
5
5
  // src/system-ca.ts
6
6
  function installSystemCaTrust(tlsModule) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./index-z070caqq.js";
3
+ } from "./index-2fcdfxh4.js";
4
4
  import {
5
5
  catchError,
6
6
  RESULTS,
@@ -10,11 +10,11 @@ import {
10
10
  processContext,
11
11
  wasInteractiveFlagPassed,
12
12
  canPrompt
13
- } from "./index-fdztq951.js";
13
+ } from "./index-vc4s0ez7.js";
14
14
  import {
15
15
  resolvePinnedVersion,
16
16
  formatVersionPin
17
- } from "./index-753mncpq.js";
17
+ } from "./index-b4n6zsvg.js";
18
18
  import {
19
19
  ALL_AGENTS,
20
20
  AGENT_DEFS,
@@ -26,7 +26,7 @@ import {
26
26
  installSkillCommands,
27
27
  uninstallSkill,
28
28
  rejectIfGlobalOnly
29
- } from "./index-jcnsbj5y.js";
29
+ } from "./index-wx38dtjm.js";
30
30
  import {
31
31
  DEFAULT_SOURCE2,
32
32
  resolveSkillSource2,
@@ -38,14 +38,14 @@ import {
38
38
  removeFromManifest2,
39
39
  readExtraFiles2,
40
40
  recordExtraFiles2
41
- } from "./index-g85a50s9.js";
41
+ } from "./index-4g4zmq48.js";
42
42
  import {
43
43
  promptAgentSelection2
44
- } from "./index-xtev15e6.js";
44
+ } from "./index-tnd3wddc.js";
45
45
  import {
46
46
  SKILL_CATALOG_SKILL_NAME2,
47
47
  writeSkillCatalog2
48
- } from "./index-d68fbka0.js";
48
+ } from "./index-tt21v7bm.js";
49
49
 
50
50
  // src/commands/skills/skillsService.ts
51
51
  class SkillsError2 extends Error {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  getFileSystem2,
3
3
  getFileSystemAsync2
4
- } from "./index-z070caqq.js";
4
+ } from "./index-2fcdfxh4.js";
5
5
  export {
6
6
  getFileSystem2 as getFileSystem,
7
7
  getFileSystemAsync2 as getFileSystemAsync
@@ -4,7 +4,7 @@ import {
4
4
  OUTPUT_FORMATS,
5
5
  UIPATH_HOME_DIR,
6
6
  CONFIG_FILENAME
7
- } from "./index-fdztq951.js";
7
+ } from "./index-vc4s0ez7.js";
8
8
  import {
9
9
  string,
10
10
  array,
@@ -22,7 +22,7 @@ var CHANNEL_PLACEHOLDER = `<${PUBLIC_CHANNELS.join("|")}>`;
22
22
  // src/config/configLock.ts
23
23
  import { randomUUID } from "node:crypto";
24
24
  async function withConfigLock(targetPath, fn) {
25
- const { getFileSystemAsync } = await import("./index-21kns9qg.js");
25
+ const { getFileSystemAsync } = await import("./index-b3v23nvm.js");
26
26
  const fs = await getFileSystemAsync();
27
27
  const dir = fs.path.dirname(targetPath);
28
28
  const [mkdirErr] = await catchError(fs.mkdir(dir));
@@ -37,7 +37,7 @@ async function withConfigLock(targetPath, fn) {
37
37
  }
38
38
  }
39
39
  async function readConfigFileAt(path) {
40
- const { getFileSystem } = await import("./index-21kns9qg.js");
40
+ const { getFileSystem } = await import("./index-b3v23nvm.js");
41
41
  const fs = getFileSystem();
42
42
  if (!await fs.exists(path)) {
43
43
  return {};
@@ -53,7 +53,7 @@ async function readConfigFileAt(path) {
53
53
  return parsed;
54
54
  }
55
55
  async function writeConfigFileAt(path, config) {
56
- const { getFileSystem } = await import("./index-21kns9qg.js");
56
+ const { getFileSystem } = await import("./index-b3v23nvm.js");
57
57
  const fs = getFileSystem();
58
58
  const dir = fs.path.dirname(path);
59
59
  await fs.mkdir(dir);
@@ -155,7 +155,7 @@ var cleanUpConfigKeys = async (parsed, absolutePath) => {
155
155
  };
156
156
  var getCachedConfig = () => cachedConfig ?? {};
157
157
  var getFs = async () => {
158
- const { getFileSystemAsync } = await import("./index-21kns9qg.js");
158
+ const { getFileSystemAsync } = await import("./index-b3v23nvm.js");
159
159
  return getFileSystemAsync();
160
160
  };
161
161
  var LOCAL_CONFIG_REL = `${UIPATH_HOME_DIR}/${CONFIG_FILENAME}`;
@@ -35,17 +35,17 @@ import {
35
35
  interactiveLogin2,
36
36
  logout2,
37
37
  authenticate2
38
- } from "./index-2mm750yx.js";
38
+ } from "./index-h9hs85dz.js";
39
39
  import {
40
40
  isBrowser2
41
41
  } from "./index-zdqbp34f.js";
42
- import"./index-z070caqq.js";
42
+ import"./index-2fcdfxh4.js";
43
43
  import {
44
44
  DEFAULT_AUTH_TIMEOUT_MS2,
45
45
  AUTH_TIMEOUT_ERROR_CODE2,
46
46
  AUTH_CANCELLED_ERROR_CODE2,
47
47
  AUTH_RECLAIMED_ERROR_CODE2
48
- } from "./index-99emfvtm.js";
48
+ } from "./index-65pyx6c9.js";
49
49
  export {
50
50
  AUTH_CANCELLED_ERROR_CODE2 as AUTH_CANCELLED_ERROR_CODE,
51
51
  AUTH_FLOW_ENV_VAR2 as AUTH_FLOW_ENV_VAR,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./index-z070caqq.js";
3
+ } from "./index-2fcdfxh4.js";
4
4
  import {
5
5
  catchError
6
- } from "./index-fdztq951.js";
6
+ } from "./index-vc4s0ez7.js";
7
7
 
8
8
  // src/commands/skills/agents/detect.ts
9
9
  import { spawn } from "node:child_process";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  isRegistryTlsError
3
- } from "./index-3zf0ywpb.js";
3
+ } from "./index-6mqg6tbj.js";
4
4
  import {
5
5
  isPermissionError
6
- } from "./index-69mcde3n.js";
6
+ } from "./index-j5svw7d7.js";
7
7
  import {
8
8
  isSkillsRegistryAuthError,
9
9
  isSkillsPackageMetadataError,
@@ -1,12 +1,14 @@
1
1
  import {
2
2
  UIPATH_HOME_DIR2,
3
3
  AUTH_FILENAME,
4
+ AUTH_FILE_MODE,
5
+ AUTH_DIR_MODE,
4
6
  DEFAULT_BASE_URL,
5
7
  DEFAULT_REDIRECT_URI
6
- } from "./index-99emfvtm.js";
8
+ } from "./index-65pyx6c9.js";
7
9
  import {
8
10
  getFileSystem2
9
- } from "./index-z070caqq.js";
11
+ } from "./index-2fcdfxh4.js";
10
12
  import {
11
13
  isBrowser2,
12
14
  getGlobalThis
@@ -1272,6 +1274,38 @@ var loadEnvFileAsync2 = async ({ envPath }) => {
1272
1274
  }
1273
1275
  return parseEnvContent(content);
1274
1276
  };
1277
+ var findAuthHomeDir = (fs, dir) => {
1278
+ let current = dir;
1279
+ for (;; ) {
1280
+ if (fs.path.basename(current) === UIPATH_HOME_DIR2)
1281
+ return current;
1282
+ const parent = fs.path.dirname(current);
1283
+ if (parent === current)
1284
+ return;
1285
+ current = parent;
1286
+ }
1287
+ };
1288
+ var TEMP_FILE_ATTEMPTS = 5;
1289
+ var isFileExists = (error) => error instanceof Error && error.code === "EEXIST";
1290
+ var writeTempFile = async (fs, targetPath, content) => {
1291
+ for (let attempt = 1;; attempt++) {
1292
+ const tempPath = `${targetPath}.${crypto.randomUUID()}.tmp`;
1293
+ try {
1294
+ await fs.writeFile(tempPath, content, {
1295
+ mode: AUTH_FILE_MODE,
1296
+ exclusive: true
1297
+ });
1298
+ return tempPath;
1299
+ } catch (error) {
1300
+ if (!isFileExists(error)) {
1301
+ await fs.rm(tempPath).catch(() => {});
1302
+ throw error;
1303
+ }
1304
+ if (attempt === TEMP_FILE_ATTEMPTS)
1305
+ throw error;
1306
+ }
1307
+ }
1308
+ };
1275
1309
  var saveEnvFileAsync2 = async ({
1276
1310
  envPath,
1277
1311
  data,
@@ -1299,10 +1333,18 @@ var saveEnvFileAsync2 = async ({
1299
1333
  `)}
1300
1334
  `;
1301
1335
  const dir = fs.path.dirname(absolutePath);
1302
- await fs.mkdir(dir);
1303
- const tempPath = `${absolutePath}.tmp`;
1304
- await fs.writeFile(tempPath, content);
1305
- await fs.rename(tempPath, absolutePath);
1336
+ await fs.mkdir(dir, { mode: AUTH_DIR_MODE });
1337
+ const authHomeDir = findAuthHomeDir(fs, dir);
1338
+ if (authHomeDir !== undefined) {
1339
+ await fs.chmod?.(authHomeDir, AUTH_DIR_MODE);
1340
+ }
1341
+ const tempPath = await writeTempFile(fs, absolutePath, content);
1342
+ try {
1343
+ await fs.rename(tempPath, absolutePath);
1344
+ } catch (error) {
1345
+ await fs.rm(tempPath).catch(() => {});
1346
+ throw error;
1347
+ }
1306
1348
  };
1307
1349
 
1308
1350
  // ../auth/src/loginStatus.ts
@@ -2435,10 +2477,10 @@ var authenticate2 = async ({
2435
2477
  const authUrl = `${authorizationEndpoint}?${authParams.toString()}`;
2436
2478
  let strategy;
2437
2479
  if (isBrowser2()) {
2438
- const { BrowserAuthStrategy } = await import("./browser-strategy-p5fhwxqj.js");
2480
+ const { BrowserAuthStrategy } = await import("./browser-strategy-5rfwnk5q.js");
2439
2481
  strategy = new BrowserAuthStrategy;
2440
2482
  } else {
2441
- const { NodeAuthStrategy } = await import("./node-strategy-p1n8wr5s.js");
2483
+ const { NodeAuthStrategy } = await import("./node-strategy-2a6yf1ka.js");
2442
2484
  strategy = new NodeAuthStrategy;
2443
2485
  }
2444
2486
  const code = await strategy.execute(authUrl, effectiveRedirectUriUrl, state, {
@@ -2460,4 +2502,4 @@ var authenticate2 = async ({
2460
2502
 
2461
2503
  export { setAuthFileConfig2, DEFAULT_AUTH_PROFILE2, INHERITED_AUTH_PROFILE_ENV2, AuthProfileValidationError2, normalizeAuthProfileName2, setActiveAuthProfile2, getActiveAuthProfile2, runWithAuthProfile2, getActiveAuthProfileFilePath2, listAuthProfileNamesAsync2, authProfileExistsAsync2, deleteAuthProfileAsync2, parseJWT2, parseAuthFlow2, ENV_AUTH_ENABLE_VAR2, ENV_AUTH_VARS2, EnvAuthConfigError2, isEnvAuthEnabled2, readAuthFromEnv2, registerRobotClientLoader2, fetchTenantsAndOrganizations2, AUTH_FLOW_ENV_VAR2, DEFAULT_AUTH_FILENAME2, DEFAULT_ENV_FILENAME2, resolveEnvFileLocationAsync2, resolveEnvFilePathAsync2, loadEnvFileAsync2, saveEnvFileAsync2, CredentialSource2, getLoginStatusAsync2, describeAuthProfilesAsync2, clientCredentialsLogin2, isTenantSelectionError2, interactiveLogin2, logout2, authenticate2 };
2462
2504
 
2463
- //# debugId=AACB48AAE1655F8C64756E2164756E21
2505
+ //# debugId=6332069E3077684C64756E2164756E21
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./index-z070caqq.js";
3
+ } from "./index-2fcdfxh4.js";
4
4
  import {
5
5
  catchError,
6
6
  extractErrorMessageSync,
7
7
  logger
8
- } from "./index-fdztq951.js";
8
+ } from "./index-vc4s0ez7.js";
9
9
  import {
10
10
  withSystemCaEnv,
11
11
  mergeEnvCaseInsensitive,
@@ -14,7 +14,7 @@ import {
14
14
  RegistryTlsError,
15
15
  isRegistryTlsError,
16
16
  npmTlsErrorCode
17
- } from "./index-3zf0ywpb.js";
17
+ } from "./index-6mqg6tbj.js";
18
18
 
19
19
  // src/utils/globalNpmRoot.ts
20
20
  var NPM_ROOT_TIMEOUT_MS = 5000;
@@ -1,27 +1,27 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./index-z070caqq.js";
3
+ } from "./index-2fcdfxh4.js";
4
4
  import {
5
5
  catchError,
6
6
  logger
7
- } from "./index-fdztq951.js";
7
+ } from "./index-vc4s0ez7.js";
8
8
  import {
9
9
  compareSemver,
10
10
  resolveToolPackageName,
11
11
  getEffectiveRegistry,
12
12
  toolService
13
- } from "./index-69mcde3n.js";
13
+ } from "./index-j5svw7d7.js";
14
14
  import {
15
15
  pinnedPrefix,
16
16
  formatVersionPin
17
- } from "./index-753mncpq.js";
17
+ } from "./index-b4n6zsvg.js";
18
18
  import {
19
19
  getInstalledTools,
20
20
  describeSearchedRegistry,
21
21
  describeMissingLine,
22
22
  describeDowngradeReason,
23
23
  recordToolUpdateDate
24
- } from "./index-2n2vr5w5.js";
24
+ } from "./index-wk3rdk23.js";
25
25
 
26
26
  // src/services/updateService.tools.ts
27
27
  var TOOLS_UPDATE_PHASES2 = {
@@ -7,7 +7,7 @@ import {
7
7
  DEFAULT_ENV_FILENAME2,
8
8
  resolveEnvFilePathAsync2,
9
9
  loadEnvFileAsync2
10
- } from "./index-2mm750yx.js";
10
+ } from "./index-h9hs85dz.js";
11
11
  import {
12
12
  BaseDimensions,
13
13
  CommandDimensions,
@@ -18,7 +18,7 @@ import {
18
18
  setExecutionContextAuthSignal,
19
19
  setGlobalTelemetryProperties,
20
20
  telemetry
21
- } from "./index-fdztq951.js";
21
+ } from "./index-vc4s0ez7.js";
22
22
 
23
23
  // src/copyright.ts
24
24
  var COPYRIGHT_NOTICE = "© 2026 UiPath";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  VALID_CHANNELS,
3
3
  getCachedConfig
4
- } from "./index-753mncpq.js";
4
+ } from "./index-b4n6zsvg.js";
5
5
  import {
6
6
  package_default
7
- } from "./index-psza7d3s.js";
7
+ } from "./index-0j733qxg.js";
8
8
 
9
9
  // src/services/channel.ts
10
10
  function resolveUpdateChannel(cliVersion = package_default.version) {