@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.
- package/dist/{browser-strategy-p5fhwxqj.js → browser-strategy-5rfwnk5q.js} +1 -1
- package/dist/cli-scyadkbw.js +23 -0
- package/dist/{contentStore-c8qdg0wt.js → contentStore-1e7w7r8a.js} +5 -5
- package/dist/{environmentInfo-820krysw.js → environmentInfo-1xx9mb5r.js} +6 -6
- package/dist/{feedbackPrompts-bx209g5v.js → feedbackPrompts-r4sj086h.js} +3 -3
- package/dist/{handlers-jjwt24f2.js → handlers-cc8e03c5.js} +6 -6
- package/dist/{index-psza7d3s.js → index-0j733qxg.js} +2 -2
- package/dist/{index-z070caqq.js → index-2fcdfxh4.js} +26 -6
- package/dist/{index-g85a50s9.js → index-4g4zmq48.js} +5 -5
- package/dist/{index-vhn8f5d2.js → index-5b7pwqky.js} +3 -3
- package/dist/{index-99emfvtm.js → index-65pyx6c9.js} +4 -2
- package/dist/{index-3zf0ywpb.js → index-6mqg6tbj.js} +1 -1
- package/dist/{index-rbv6xxtn.js → index-9qzb89e3.js} +7 -7
- package/dist/{index-21kns9qg.js → index-b3v23nvm.js} +1 -1
- package/dist/{index-753mncpq.js → index-b4n6zsvg.js} +5 -5
- package/dist/{index-y7d0cth0.js → index-b724rwe7.js} +3 -3
- package/dist/{index-ckp8r4dh.js → index-dj8m0x6f.js} +2 -2
- package/dist/{index-wg3cne7n.js → index-dy8f1tj2.js} +2 -2
- package/dist/{index-2mm750yx.js → index-h9hs85dz.js} +51 -9
- package/dist/{index-69mcde3n.js → index-j5svw7d7.js} +3 -3
- package/dist/{index-3qp7d08f.js → index-k9x0gmjg.js} +5 -5
- package/dist/{index-7q9kcs3w.js → index-mpccw5zb.js} +2 -2
- package/dist/{index-wvg2kb7z.js → index-mtvawj1d.js} +2 -2
- package/dist/{index-72vztv2d.js → index-q3h60ae3.js} +48 -48
- package/dist/{index-rr5hdtcy.js → index-rmr19zen.js} +10 -10
- package/dist/{index-xtev15e6.js → index-tnd3wddc.js} +1 -1
- package/dist/{index-d68fbka0.js → index-tt21v7bm.js} +3 -3
- package/dist/{index-fdztq951.js → index-vc4s0ez7.js} +1 -1
- package/dist/{index-tt9ec7pe.js → index-we1qykrc.js} +6 -6
- package/dist/{index-2n2vr5w5.js → index-wk3rdk23.js} +3 -3
- package/dist/{index-jcnsbj5y.js → index-wx38dtjm.js} +4 -4
- package/dist/{index-8zhmg5tz.js → index-wz4gmvbj.js} +2 -2
- package/dist/{index-bxc30q35.js → index-yfwvasze.js} +2 -2
- package/dist/index.js +17 -17
- package/dist/{install-kgcwdbqs.js → install-e59jm3h6.js} +6 -6
- package/dist/{node-strategy-p1n8wr5s.js → node-strategy-2a6yf1ka.js} +2 -2
- package/dist/{project-context-caht70an.js → project-context-k0mgsyh6.js} +2 -2
- package/dist/{prompt-ycn509e8.js → prompt-779h1nzs.js} +5 -5
- package/dist/{server-ytgvcdd6.js → server-dpqwjbb6.js} +5 -5
- package/dist/{skillCatalog-36tf9fmk.js → skillCatalog-ac6wrftr.js} +6 -6
- package/dist/{skillsService-zr9kym0g.js → skillsService-qxgc9pce.js} +10 -10
- package/dist/{telemetry-drain-rt346cfz.js → telemetry-drain-ajjpnpcq.js} +2 -2
- package/dist/{tree-4dhk82fh.js → tree-amjg6aa3.js} +6 -6
- package/dist/{updateService-rwrqq3br.js → updateService-fk64c77k.js} +17 -17
- package/dist/updateService.skills-bc9qxnqm.js +22 -0
- package/dist/updateService.tools-6qyyc1bk.js +16 -0
- package/package.json +2 -2
- package/dist/cli-86a0cvqt.js +0 -23
- package/dist/updateService.skills-y4k083gn.js +0 -22
- package/dist/updateService.tools-3zfct9yk.js +0 -16
|
@@ -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-
|
|
18
|
-
import"./index-
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
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-
|
|
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-
|
|
1
|
+
import"./index-2fcdfxh4.js";
|
|
2
2
|
import {
|
|
3
3
|
catchError,
|
|
4
4
|
detectAgent
|
|
5
|
-
} from "./index-
|
|
6
|
-
import"./index-
|
|
7
|
-
import"./index-
|
|
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-
|
|
11
|
+
} from "./index-rmr19zen.js";
|
|
12
12
|
import {
|
|
13
13
|
package_default
|
|
14
|
-
} from "./index-
|
|
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-
|
|
6
|
+
import"./index-2fcdfxh4.js";
|
|
7
7
|
import {
|
|
8
8
|
catchError
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-vc4s0ez7.js";
|
|
10
10
|
import {
|
|
11
11
|
VALID_TYPES,
|
|
12
12
|
VALID_PRIORITIES,
|
|
13
13
|
normalizeUrl
|
|
14
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
19
|
+
} from "./index-h9hs85dz.js";
|
|
20
20
|
import {
|
|
21
21
|
getFileSystem2
|
|
22
|
-
} from "./index-
|
|
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-
|
|
37
|
+
} from "./index-vc4s0ez7.js";
|
|
38
38
|
import"./index-5j0bfd3e.js";
|
|
39
39
|
import {
|
|
40
40
|
auth
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-rmr19zen.js";
|
|
42
42
|
import {
|
|
43
43
|
COPYRIGHT_NOTICE,
|
|
44
44
|
trackAuthLogin,
|
|
45
45
|
trackTenantSelection,
|
|
46
46
|
trackTokenRefresh
|
|
47
|
-
} from "./index-
|
|
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.
|
|
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=
|
|
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
|
-
|
|
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=
|
|
313
|
+
//# debugId=94CFD3450B8BBA6B64756E2164756E21
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-2fcdfxh4.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError,
|
|
6
6
|
logger,
|
|
7
7
|
UIPATH_HOME_DIR
|
|
8
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
27
|
+
} from "./index-dj8m0x6f.js";
|
|
28
28
|
import {
|
|
29
29
|
package_default
|
|
30
|
-
} from "./index-
|
|
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-
|
|
4
|
+
} from "./index-2fcdfxh4.js";
|
|
5
5
|
import {
|
|
6
6
|
catchError,
|
|
7
7
|
Command,
|
|
8
8
|
logger,
|
|
9
9
|
REGISTER_EXPORT
|
|
10
|
-
} from "./index-
|
|
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-
|
|
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=
|
|
15
|
+
//# debugId=2785918410A7056B64756E2164756E21
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem2
|
|
3
|
-
} from "./index-
|
|
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-
|
|
13
|
+
} from "./index-vc4s0ez7.js";
|
|
14
14
|
import {
|
|
15
15
|
resolvePinnedVersion,
|
|
16
16
|
formatVersionPin
|
|
17
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
41
|
+
} from "./index-4g4zmq48.js";
|
|
42
42
|
import {
|
|
43
43
|
promptAgentSelection2
|
|
44
|
-
} from "./index-
|
|
44
|
+
} from "./index-tnd3wddc.js";
|
|
45
45
|
import {
|
|
46
46
|
SKILL_CATALOG_SKILL_NAME2,
|
|
47
47
|
writeSkillCatalog2
|
|
48
|
-
} from "./index-
|
|
48
|
+
} from "./index-tt21v7bm.js";
|
|
49
49
|
|
|
50
50
|
// src/commands/skills/skillsService.ts
|
|
51
51
|
class SkillsError2 extends Error {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
OUTPUT_FORMATS,
|
|
5
5
|
UIPATH_HOME_DIR,
|
|
6
6
|
CONFIG_FILENAME
|
|
7
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
38
|
+
} from "./index-h9hs85dz.js";
|
|
39
39
|
import {
|
|
40
40
|
isBrowser2
|
|
41
41
|
} from "./index-zdqbp34f.js";
|
|
42
|
-
import"./index-
|
|
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-
|
|
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-
|
|
3
|
+
} from "./index-2fcdfxh4.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError
|
|
6
|
-
} from "./index-
|
|
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-
|
|
3
|
+
} from "./index-6mqg6tbj.js";
|
|
4
4
|
import {
|
|
5
5
|
isPermissionError
|
|
6
|
-
} from "./index-
|
|
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-
|
|
8
|
+
} from "./index-65pyx6c9.js";
|
|
7
9
|
import {
|
|
8
10
|
getFileSystem2
|
|
9
|
-
} from "./index-
|
|
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
|
|
1304
|
-
|
|
1305
|
-
|
|
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-
|
|
2480
|
+
const { BrowserAuthStrategy } = await import("./browser-strategy-5rfwnk5q.js");
|
|
2439
2481
|
strategy = new BrowserAuthStrategy;
|
|
2440
2482
|
} else {
|
|
2441
|
-
const { NodeAuthStrategy } = await import("./node-strategy-
|
|
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=
|
|
2505
|
+
//# debugId=6332069E3077684C64756E2164756E21
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getFileSystem2
|
|
3
|
-
} from "./index-
|
|
3
|
+
} from "./index-2fcdfxh4.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError,
|
|
6
6
|
extractErrorMessageSync,
|
|
7
7
|
logger
|
|
8
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
3
|
+
} from "./index-2fcdfxh4.js";
|
|
4
4
|
import {
|
|
5
5
|
catchError,
|
|
6
6
|
logger
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-vc4s0ez7.js";
|
|
8
8
|
import {
|
|
9
9
|
compareSemver,
|
|
10
10
|
resolveToolPackageName,
|
|
11
11
|
getEffectiveRegistry,
|
|
12
12
|
toolService
|
|
13
|
-
} from "./index-
|
|
13
|
+
} from "./index-j5svw7d7.js";
|
|
14
14
|
import {
|
|
15
15
|
pinnedPrefix,
|
|
16
16
|
formatVersionPin
|
|
17
|
-
} from "./index-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
4
|
+
} from "./index-b4n6zsvg.js";
|
|
5
5
|
import {
|
|
6
6
|
package_default
|
|
7
|
-
} from "./index-
|
|
7
|
+
} from "./index-0j733qxg.js";
|
|
8
8
|
|
|
9
9
|
// src/services/channel.ts
|
|
10
10
|
function resolveUpdateChannel(cliVersion = package_default.version) {
|