@uipath/cli 1.205.0-preview.281 → 1.206.0-preview.282

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. package/dist/{applicationinsights-s28k1t0d.js → applicationinsights-pwe8sf3y.js} +1269 -1269
  2. package/dist/{browser-strategy-6atc7v8s.js → browser-strategy-p5fhwxqj.js} +6 -7
  3. package/dist/cli-s27j1n5p.js +23 -0
  4. package/dist/contentStore-m1z06vbp.js +41 -0
  5. package/dist/environmentInfo-687282b3.js +71 -0
  6. package/dist/feedbackPrompts-t1enxv1x.js +144 -0
  7. package/dist/handlers-93z27zrr.js +805 -0
  8. package/dist/index-090cbg51.js +72 -0
  9. package/dist/index-16d4evd1.js +1051 -0
  10. package/dist/index-1vyte4ma.js +14 -0
  11. package/dist/index-1z45q8dr.js +365 -0
  12. package/dist/index-21kns9qg.js +10 -0
  13. package/dist/{index-30618bjs.js → index-2mm750yx.js} +174 -234
  14. package/dist/{index-622x1qb5.js → index-3fvbddpw.js} +7092 -7092
  15. package/dist/{index-d3w0wn6k.js → index-5gce5wfd.js} +16 -16
  16. package/dist/index-5j0bfd3e.js +4744 -0
  17. package/dist/index-5r4q8h0q.js +30 -0
  18. package/dist/index-68xmrb9x.js +237 -0
  19. package/dist/index-6wj58qka.js +59 -0
  20. package/dist/index-99emfvtm.js +13 -0
  21. package/dist/{index-pj3g8ftz.js → index-9db5vwx9.js} +2429 -1693
  22. package/dist/index-ayg25v46.js +151 -0
  23. package/dist/index-bf0e4evz.js +6180 -0
  24. package/dist/index-bpqx6f8h.js +92 -0
  25. package/dist/index-bpxh3fqv.js +392 -0
  26. package/dist/index-c6fsnn8s.js +200 -0
  27. package/dist/{index-m5nwse9v.js → index-cj4v0jct.js} +21 -69
  28. package/dist/index-ckafghar.js +274 -0
  29. package/dist/{index-469jgr1w.js → index-dsj3jrm0.js} +105 -106
  30. package/dist/{index-1yh8g550.js → index-epsr41wx.js} +8 -12
  31. package/dist/index-gbdz3pb5.js +668 -0
  32. package/dist/{index-yb4er9vd.js → index-jjejkkg4.js} +474 -528
  33. package/dist/index-jmz7bmca.js +1327 -0
  34. package/dist/{index-wwyf05nx.js → index-k9t8g78x.js} +331 -2595
  35. package/dist/index-kg1xrq51.js +171 -0
  36. package/dist/index-m8vqyv3g.js +72 -0
  37. package/dist/index-nht90rae.js +45 -0
  38. package/dist/index-nsrrst23.js +44 -0
  39. package/dist/{index-h8cph72k.js → index-nzr4mx5p.js} +2 -22
  40. package/dist/index-qadhm1gn.js +271 -0
  41. package/dist/index-qwbyt2q5.js +95 -0
  42. package/dist/index-rr5hdtcy.js +95 -0
  43. package/dist/{index-qa9gftnj.js → index-xd2w5pct.js} +3 -3
  44. package/dist/{index-925304r7.js → index-y085rpen.js} +29 -25
  45. package/dist/index-y5ncb93a.js +240 -0
  46. package/dist/index-y7d0cth0.js +93 -0
  47. package/dist/{index-hdxtgckw.js → index-z070caqq.js} +56 -12
  48. package/dist/index-zdqbp34f.js +14 -0
  49. package/dist/index.js +38 -36
  50. package/dist/install-3gw33jcf.js +558 -0
  51. package/dist/{jmespath-e4a59c8w.js → jmespath-ab6tdc42.js} +1 -1
  52. package/dist/js-yaml-0c4svjwq.js +36 -0
  53. package/dist/{mcp-jssaz3wr.js → mcp-s50h6d56.js} +236 -472
  54. package/dist/{node-strategy-ggx3nmyj.js → node-strategy-p1n8wr5s.js} +16 -19
  55. package/dist/project-context-285hydnd.js +94 -0
  56. package/dist/prompt-yxpm7mfr.js +13 -0
  57. package/dist/{server-7jza1fyx.js → server-900wc6vc.js} +28 -43
  58. package/dist/skillCatalog-d1t2qec8.js +22 -0
  59. package/dist/skillsService-tpvbx5g8.js +29 -0
  60. package/dist/{stdio-tmngemcz.js → stdio-kpsab5bz.js} +2 -4
  61. package/dist/{telemetry-drain-r92f0e4r.js → telemetry-drain-bw59e8f5.js} +8 -9
  62. package/dist/tree-j4w7p0pg.js +17 -0
  63. package/dist/updateService-mt6d51p1.js +522 -0
  64. package/dist/updateService.skills-491vfgt8.js +22 -0
  65. package/dist/updateService.tools-f7tr6kc6.js +16 -0
  66. package/package.json +2 -2
  67. package/dist/cli-kyp49kdm.js +0 -19
  68. package/dist/index-0gctz400.js +0 -17
  69. package/dist/index-4cq44eth.js +0 -19427
  70. package/dist/index-7tshyfxx.js +0 -157
  71. package/dist/index-g8ck9tv6.js +0 -2
  72. package/dist/index-ngs0a2he.js +0 -15
  73. package/dist/index-pr8kzdte.js +0 -9867
  74. package/dist/index-yc4kw997.js +0 -13
  75. package/dist/js-yaml-69tsdrrf.js +0 -37
  76. package/dist/updateService-t3yq8936.js +0 -14
@@ -1,10 +1,9 @@
1
1
  import {
2
- getGlobalThis
3
- } from "./index-0gctz400.js";
2
+ AUTH_CANCELLED_ERROR_CODE2
3
+ } from "./index-99emfvtm.js";
4
4
  import {
5
- AUTH_CANCELLED_ERROR_CODE
6
- } from "./index-yc4kw997.js";
7
- import"./index-1yh8g550.js";
5
+ getGlobalThis
6
+ } from "./index-zdqbp34f.js";
8
7
 
9
8
  // ../auth/src/strategies/browser-strategy.ts
10
9
  class BrowserAuthStrategy {
@@ -67,7 +66,7 @@ class BrowserAuthStrategy {
67
66
  const err = new Error(`Authentication was cancelled.
68
67
 
69
68
  ` + "The sign-in was cancelled before completing the login process. " + "Please try again and complete the authentication flow.");
70
- err.code = AUTH_CANCELLED_ERROR_CODE;
69
+ err.code = AUTH_CANCELLED_ERROR_CODE2;
71
70
  reject(err);
72
71
  popup.close();
73
72
  };
@@ -96,4 +95,4 @@ export {
96
95
  BrowserAuthStrategy
97
96
  };
98
97
 
99
- //# debugId=B13A3005E9EE6C6564756E2164756E21
98
+ //# debugId=6DA120A5D148296564756E2164756E21
@@ -0,0 +1,23 @@
1
+ import"./index-z070caqq.js";
2
+ import"./index-9db5vwx9.js";
3
+ import {
4
+ runNode
5
+ } from "./index-k9t8g78x.js";
6
+ import"./index-qadhm1gn.js";
7
+ import"./index-bpxh3fqv.js";
8
+ import"./index-99emfvtm.js";
9
+ import"./index-2mm750yx.js";
10
+ import"./index-68xmrb9x.js";
11
+ import"./index-gbdz3pb5.js";
12
+ import"./index-qwbyt2q5.js";
13
+ import"./index-16d4evd1.js";
14
+ import"./index-kg1xrq51.js";
15
+ import"./index-nht90rae.js";
16
+ import"./index-6wj58qka.js";
17
+ import"./index-bpqx6f8h.js";
18
+ import"./index-ayg25v46.js";
19
+ export {
20
+ runNode as run
21
+ };
22
+
23
+ //# debugId=D5CE6D3967BC57AC64756E2164756E21
@@ -0,0 +1,41 @@
1
+ import {
2
+ REPO_URL2,
3
+ DEFAULT_SOURCE2,
4
+ resolveSkillSource2,
5
+ fetchSkillsTo2,
6
+ getContentStore2,
7
+ getContentStoreForRead2,
8
+ getAvailableSkills2,
9
+ parseSkillMd2,
10
+ addToGitignore2,
11
+ MANIFEST_NAME2,
12
+ readManifest2,
13
+ updateManifestAfterInstall2,
14
+ removeFromManifest2,
15
+ readExtraFiles2,
16
+ recordExtraFiles2
17
+ } from "./index-jmz7bmca.js";
18
+ import"./index-bpqx6f8h.js";
19
+ import"./index-qwbyt2q5.js";
20
+ import"./index-9db5vwx9.js";
21
+ import"./index-5gce5wfd.js";
22
+ import"./index-z070caqq.js";
23
+ export {
24
+ DEFAULT_SOURCE2 as DEFAULT_SOURCE,
25
+ MANIFEST_NAME2 as MANIFEST_NAME,
26
+ REPO_URL2 as REPO_URL,
27
+ addToGitignore2 as addToGitignore,
28
+ fetchSkillsTo2 as fetchSkillsTo,
29
+ getAvailableSkills2 as getAvailableSkills,
30
+ getContentStore2 as getContentStore,
31
+ getContentStoreForRead2 as getContentStoreForRead,
32
+ parseSkillMd2 as parseSkillMd,
33
+ readExtraFiles2 as readExtraFiles,
34
+ readManifest2 as readManifest,
35
+ recordExtraFiles2 as recordExtraFiles,
36
+ removeFromManifest2 as removeFromManifest,
37
+ resolveSkillSource2 as resolveSkillSource,
38
+ updateManifestAfterInstall2 as updateManifestAfterInstall
39
+ };
40
+
41
+ //# debugId=7B98EE0BBA67415B64756E2164756E21
@@ -0,0 +1,71 @@
1
+ import"./index-z070caqq.js";
2
+ import {
3
+ catchError,
4
+ detectAgent
5
+ } from "./index-9db5vwx9.js";
6
+ import"./index-99emfvtm.js";
7
+ import"./index-2mm750yx.js";
8
+ import"./index-5j0bfd3e.js";
9
+ import {
10
+ auth
11
+ } from "./index-rr5hdtcy.js";
12
+ import {
13
+ package_default
14
+ } from "./index-090cbg51.js";
15
+
16
+ // src/services/environmentInfo.ts
17
+ import { arch as osArch, release as osRelease, type as osType } from "node:os";
18
+ function decodeJwtPayload(token) {
19
+ const parts = token.split(".");
20
+ if (parts.length !== 3)
21
+ return;
22
+ const base64 = parts[1].replace(/-/g, "+").replace(/_/g, "/");
23
+ const padded = base64 + "=".repeat((4 - base64.length % 4) % 4);
24
+ const [, parsed] = catchError(() => JSON.parse(atob(padded)));
25
+ return parsed;
26
+ }
27
+ async function getAuthContext() {
28
+ const [statusError, status] = await catchError(auth.getLoginStatus());
29
+ if (statusError || status.loginStatus !== "Logged in" || !status.accessToken) {
30
+ return {};
31
+ }
32
+ const claims = decodeJwtPayload(status.accessToken);
33
+ return {
34
+ email: claims?.email ?? claims?.preferred_username,
35
+ userId: claims?.sub,
36
+ organizationId: status.organizationId,
37
+ organizationName: status.organizationName,
38
+ tenantId: status.tenantId,
39
+ tenantName: status.tenantName
40
+ };
41
+ }
42
+ function buildEnvironmentString(authCtx) {
43
+ const lines = [];
44
+ if (authCtx.email)
45
+ lines.push(`User Email: ${authCtx.email}`);
46
+ lines.push(`CLI Version: ${package_default.version}`, `Node Version: ${process.version}`, `OS: ${osType()} ${osRelease()} (${osArch()})`, `Platform: ${process.platform}`);
47
+ const agent = detectAgent();
48
+ if (agent)
49
+ lines.push(`Coding Agent: ${agent}`);
50
+ const skillsVersion = process.env.UIPATH_SKILLS_VERSION;
51
+ if (skillsVersion)
52
+ lines.push(`Skills Plugin Version: ${skillsVersion}`);
53
+ if (authCtx.userId)
54
+ lines.push(`Cloud User ID: ${authCtx.userId}`);
55
+ if (authCtx.organizationName)
56
+ lines.push(`Cloud Organization: ${authCtx.organizationName}`);
57
+ if (authCtx.organizationId)
58
+ lines.push(`Cloud Organization ID: ${authCtx.organizationId}`);
59
+ if (authCtx.tenantName)
60
+ lines.push(`Tenant: ${authCtx.tenantName}`);
61
+ if (authCtx.tenantId)
62
+ lines.push(`Tenant ID: ${authCtx.tenantId}`);
63
+ return lines.join(`
64
+ `);
65
+ }
66
+ export {
67
+ buildEnvironmentString,
68
+ getAuthContext
69
+ };
70
+
71
+ //# debugId=95397DA60BC38FDD64756E2164756E21
@@ -0,0 +1,144 @@
1
+ import {
2
+ dist_default2,
3
+ dist_default3,
4
+ dist_default4
5
+ } from "./index-5j0bfd3e.js";
6
+ import"./index-z070caqq.js";
7
+ import {
8
+ catchError
9
+ } from "./index-9db5vwx9.js";
10
+ import {
11
+ VALID_TYPES,
12
+ VALID_PRIORITIES,
13
+ normalizeUrl
14
+ } from "./index-68xmrb9x.js";
15
+
16
+ // src/services/feedbackPrompts.ts
17
+ function isExitPrompt(error) {
18
+ return error instanceof Error && error.name === "ExitPromptError";
19
+ }
20
+ function validateNonEmpty(value, field) {
21
+ return value.trim().length > 0 ? true : `${field} cannot be empty.`;
22
+ }
23
+ var INVALID_URL_MESSAGE = "Enter a valid URL (must be http or https).";
24
+ function validateUrl(value) {
25
+ const normalized = normalizeUrl(value);
26
+ if (normalized.length === 0) {
27
+ return INVALID_URL_MESSAGE;
28
+ }
29
+ const [parseError, parsed] = catchError(() => new URL(normalized));
30
+ if (parseError || !parsed) {
31
+ return INVALID_URL_MESSAGE;
32
+ }
33
+ return parsed.protocol === "http:" || parsed.protocol === "https:" ? true : INVALID_URL_MESSAGE;
34
+ }
35
+ async function promptSlackThread(existing) {
36
+ if (existing !== undefined) {
37
+ const normalized = normalizeUrl(existing);
38
+ return normalized.length > 0 ? normalized : undefined;
39
+ }
40
+ return askSlackThread();
41
+ }
42
+ async function askSlackThread(current) {
43
+ const hasThread = await dist_default2({
44
+ message: "Is there a related Slack thread?",
45
+ default: current !== undefined
46
+ });
47
+ if (!hasThread) {
48
+ return;
49
+ }
50
+ const url = await dist_default3({
51
+ message: "Slack thread URL:",
52
+ default: current,
53
+ validate: validateUrl
54
+ });
55
+ return normalizeUrl(url);
56
+ }
57
+ function renderPreview(draft, context) {
58
+ const lines = [
59
+ "",
60
+ "Review your feedback before sending:",
61
+ ` Type: ${draft.type}`,
62
+ ` Priority: ${draft.priority}`,
63
+ ` Title: ${draft.title}`,
64
+ ` Description: ${draft.description}`
65
+ ];
66
+ if (context.email) {
67
+ lines.push(` Email: ${context.email}`);
68
+ }
69
+ if (draft.slackThreadUrl) {
70
+ lines.push(` Slack: ${draft.slackThreadUrl}`);
71
+ }
72
+ if (context.attachmentCount > 0) {
73
+ lines.push(` Attachments: ${context.attachmentCount}`);
74
+ }
75
+ lines.push("");
76
+ return lines.join(`
77
+ `);
78
+ }
79
+ async function editDraft(draft) {
80
+ const type = await dist_default4({
81
+ message: "Type:",
82
+ default: draft.type,
83
+ choices: VALID_TYPES.map((value) => ({ name: value, value }))
84
+ });
85
+ const priority = await dist_default4({
86
+ message: "Priority:",
87
+ default: draft.priority,
88
+ choices: VALID_PRIORITIES.map((value) => ({ name: value, value }))
89
+ });
90
+ const title = await dist_default3({
91
+ message: "Title:",
92
+ default: draft.title,
93
+ validate: (value) => validateNonEmpty(value, "Title")
94
+ });
95
+ const description = await dist_default3({
96
+ message: "Description:",
97
+ default: draft.description,
98
+ validate: (value) => validateNonEmpty(value, "Description")
99
+ });
100
+ const slackThreadUrl = await askSlackThread(draft.slackThreadUrl);
101
+ return {
102
+ type,
103
+ priority,
104
+ title: title.trim(),
105
+ description: description.trim(),
106
+ slackThreadUrl
107
+ };
108
+ }
109
+ async function confirmFeedback(initial, context, print) {
110
+ let draft = initial;
111
+ try {
112
+ while (true) {
113
+ print(renderPreview(draft, context));
114
+ const action = await dist_default4({
115
+ message: "What would you like to do?",
116
+ choices: [
117
+ { name: "Send feedback", value: "send" },
118
+ { name: "Edit details", value: "edit" },
119
+ { name: "Cancel", value: "cancel" }
120
+ ]
121
+ });
122
+ if (action === "send") {
123
+ return { action: "send", draft };
124
+ }
125
+ if (action === "cancel") {
126
+ return { action: "cancel" };
127
+ }
128
+ draft = await editDraft(draft);
129
+ }
130
+ } catch (error) {
131
+ if (isExitPrompt(error)) {
132
+ return { action: "cancel" };
133
+ }
134
+ throw error;
135
+ }
136
+ }
137
+ export {
138
+ confirmFeedback,
139
+ isExitPrompt,
140
+ promptSlackThread,
141
+ validateUrl
142
+ };
143
+
144
+ //# debugId=38D9AB3C8CC841F364756E2164756E21