@uipath/cli 1.206.0-preview.301 → 1.207.0-preview.305

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +48 -0
  2. package/dist/{browser-strategy-p5fhwxqj.js → browser-strategy-5rfwnk5q.js} +1 -1
  3. package/dist/cli-10857d67.js +28 -0
  4. package/dist/cliInstaller-3dxg6fbd.js +23 -0
  5. package/dist/{contentStore-cd7gxxmj.js → contentStore-z3t1yt3n.js} +7 -6
  6. package/dist/{environmentInfo-mbanfdjh.js → environmentInfo-dyhpheza.js} +6 -6
  7. package/dist/{feedbackPrompts-bx209g5v.js → feedbackPrompts-fc66gq0p.js} +3 -3
  8. package/dist/forcedUpdate-5hd8cp9x.js +21 -0
  9. package/dist/{handlers-jjwt24f2.js → handlers-rg3d62gb.js} +13 -9
  10. package/dist/index-2f6vv7yr.js +81 -0
  11. package/dist/{index-hweqs8nn.js → index-2g332j2f.js} +8 -12
  12. package/dist/index-319vtrwd.js +264 -0
  13. package/dist/{index-nn9v5yjd.js → index-3vkb4j13.js} +26 -17
  14. package/dist/index-5j78gm9c.js +41 -0
  15. package/dist/index-5ygg5mrs.js +1272 -0
  16. package/dist/{index-99emfvtm.js → index-65pyx6c9.js} +4 -2
  17. package/dist/{index-rr5hdtcy.js → index-81197qe5.js} +15 -17
  18. package/dist/{index-2mm750yx.js → index-8n0z4r6f.js} +69 -13
  19. package/dist/{index-8zhmg5tz.js → index-8pk6n4t9.js} +2 -2
  20. package/dist/{index-7wmyb1v6.js → index-9v7334md.js} +1 -1
  21. package/dist/{index-nsrrst23.js → index-ack311y7.js} +12 -2
  22. package/dist/{index-2n2vr5w5.js → index-dt6mjnkf.js} +39 -57
  23. package/dist/{index-y7d0cth0.js → index-e82sznr2.js} +7 -7
  24. package/dist/index-ej6eeger.js +23 -0
  25. package/dist/index-evcsjfyy.js +248 -0
  26. package/dist/{index-bxc30q35.js → index-gk5pc8xr.js} +2 -2
  27. package/dist/{index-7q9kcs3w.js → index-h2ctqv68.js} +14 -5
  28. package/dist/index-jk7em40j.js +37 -0
  29. package/dist/{index-vhn8f5d2.js → index-kdr4xvby.js} +5 -5
  30. package/dist/{index-h9f8kms8.js → index-kmacaa53.js} +2130 -834
  31. package/dist/{index-ckp8r4dh.js → index-mb62swmp.js} +2 -2
  32. package/dist/{index-24ffa480.js → index-md27nny8.js} +7 -10
  33. package/dist/{index-zj63x8ca.js → index-nex3q8cg.js} +2 -2
  34. package/dist/index-nyx7fh45.js +331 -0
  35. package/dist/index-nzfpbep9.js +14 -0
  36. package/dist/{index-z070caqq.js → index-p64w2wrt.js} +30 -8
  37. package/dist/{index-3aymb07j.js → index-t6hrzpm7.js} +30 -14
  38. package/dist/index-v7yphxb8.js +118 -0
  39. package/dist/index-vrfbee4d.js +340 -0
  40. package/dist/{index-69mcde3n.js → index-xw81b1gn.js} +196 -81
  41. package/dist/{index-wg3cne7n.js → index-xxms6rt8.js} +24 -5
  42. package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
  43. package/dist/{index-dst4pf6j.js → index-z3q16ts7.js} +81 -58
  44. package/dist/{index-fdztq951.js → index-zhp702kh.js} +393 -82
  45. package/dist/index.js +23 -18
  46. package/dist/{install-kgcwdbqs.js → install-h76qyy1e.js} +6 -7
  47. package/dist/{node-strategy-p1n8wr5s.js → node-strategy-9t0ttffv.js} +2 -2
  48. package/dist/{project-context-caht70an.js → project-context-rc4ghykm.js} +13 -5
  49. package/dist/{prompt-8emxd7jz.js → prompt-66bnttv7.js} +5 -5
  50. package/dist/{server-pzt8qbff.js → server-pxfn9w9m.js} +5 -5
  51. package/dist/{skillCatalog-ppk9wtx1.js → skillCatalog-7gh14b4s.js} +8 -7
  52. package/dist/skillsService-wz3c21qb.js +35 -0
  53. package/dist/{telemetry-drain-rt346cfz.js → telemetry-drain-8qr5tzmf.js} +2 -2
  54. package/dist/tree-fk9gwh4v.js +16 -0
  55. package/dist/updateService-ybs9274t.js +377 -0
  56. package/dist/updateService.cli-xtqp78g7.js +15 -0
  57. package/dist/updateService.skills-pgst1fyj.js +27 -0
  58. package/dist/updateService.tools-m58m2fbt.js +19 -0
  59. package/package.json +2 -2
  60. package/dist/cli-5679d26y.js +0 -23
  61. package/dist/index-3qp7d08f.js +0 -240
  62. package/dist/index-3zf0ywpb.js +0 -95
  63. package/dist/index-753mncpq.js +0 -271
  64. package/dist/index-7sm7r2tj.js +0 -45
  65. package/dist/skillsService-mzk0y9kz.js +0 -29
  66. package/dist/tree-4dhk82fh.js +0 -17
  67. package/dist/updateService-7bygdrjv.js +0 -522
  68. package/dist/updateService.skills-3rpemp0h.js +0 -22
  69. package/dist/updateService.tools-3zfct9yk.js +0 -16
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./index-z070caqq.js";
3
+ } from "./index-p64w2wrt.js";
4
4
  import {
5
5
  catchError,
6
6
  RESULTS,
@@ -10,11 +10,14 @@ import {
10
10
  processContext,
11
11
  wasInteractiveFlagPassed,
12
12
  canPrompt
13
- } from "./index-fdztq951.js";
13
+ } from "./index-zhp702kh.js";
14
14
  import {
15
- resolvePinnedVersion,
15
+ parseVersionPin,
16
16
  formatVersionPin
17
- } from "./index-753mncpq.js";
17
+ } from "./index-v7yphxb8.js";
18
+ import {
19
+ governingPins
20
+ } from "./index-evcsjfyy.js";
18
21
  import {
19
22
  ALL_AGENTS,
20
23
  AGENT_DEFS,
@@ -26,7 +29,7 @@ import {
26
29
  installSkillCommands,
27
30
  uninstallSkill,
28
31
  rejectIfGlobalOnly
29
- } from "./index-hweqs8nn.js";
32
+ } from "./index-2g332j2f.js";
30
33
  import {
31
34
  DEFAULT_SOURCE2,
32
35
  resolveSkillSource2,
@@ -38,14 +41,14 @@ import {
38
41
  removeFromManifest2,
39
42
  readExtraFiles2,
40
43
  recordExtraFiles2
41
- } from "./index-dst4pf6j.js";
44
+ } from "./index-z3q16ts7.js";
42
45
  import {
43
46
  promptAgentSelection2
44
- } from "./index-7wmyb1v6.js";
47
+ } from "./index-9v7334md.js";
45
48
  import {
46
49
  SKILL_CATALOG_SKILL_NAME2,
47
50
  writeSkillCatalog2
48
- } from "./index-24ffa480.js";
51
+ } from "./index-md27nny8.js";
49
52
 
50
53
  // src/commands/skills/skillsService.ts
51
54
  class SkillsError2 extends Error {
@@ -62,11 +65,17 @@ var NO_AGENT_DETECTED_REASON = "NoAgentDetected";
62
65
  function sourceOf(resolved) {
63
66
  return resolved.source ?? DEFAULT_SOURCE2;
64
67
  }
65
- function resolveSkillsTargetVersion2(source) {
68
+ async function resolveSkillsTarget2(source, resolveInstallPath) {
66
69
  if (!source.isDefault)
67
- return;
68
- const pin = resolvePinnedVersion();
69
- return pin ? formatVersionPin(pin) : undefined;
70
+ return {};
71
+ const pins = await governingPins(resolveInstallPath);
72
+ const skillsPin = parseVersionPin(pins.skills);
73
+ if (skillsPin) {
74
+ const version = formatVersionPin(skillsPin);
75
+ return { targetVersion: version, exactVersion: version };
76
+ }
77
+ const cliPin = parseVersionPin(pins.cli);
78
+ return { targetVersion: cliPin ? formatVersionPin(cliPin) : undefined };
70
79
  }
71
80
  async function resolveRootDir2(options) {
72
81
  const fs = getFileSystem2();
@@ -98,7 +107,7 @@ function canRenderPicker() {
98
107
  const caps = getOutputSink().capabilities;
99
108
  return canPrompt() && caps.isInteractive && caps.canReadInput;
100
109
  }
101
- async function resolveSkillsContext2(options, operation) {
110
+ async function resolveSkillsContext2(options, operation, resolveInstallPath) {
102
111
  const root = await resolveRootDir2(options);
103
112
  if (!root)
104
113
  return null;
@@ -173,8 +182,8 @@ async function resolveSkillsContext2(options, operation) {
173
182
  agents = selected;
174
183
  }
175
184
  }
176
- const targetVersion = resolveSkillsTargetVersion2(source);
177
- const storePath = await getContentStore2(rootDir, source, targetVersion);
185
+ const { targetVersion, exactVersion } = await resolveSkillsTarget2(source, resolveInstallPath);
186
+ const storePath = await getContentStore2(rootDir, source, targetVersion, exactVersion);
178
187
  const shadowedSkills = [];
179
188
  const availableSkills = await getAvailableSkills2(storePath, shadowedSkills);
180
189
  const selectedSkills = availableSkills.filter((skill) => skill.name !== SKILL_CATALOG_SKILL_NAME2);
@@ -360,6 +369,6 @@ async function cleanupStaleSkills2(resolved) {
360
369
  }
361
370
  }
362
371
 
363
- export { SkillsError2, resolveSkillsTargetVersion2, resolveRootDir2, resolveSkillsContext2, runAgentInstalls2, cleanupStaleSkills2 };
372
+ export { SkillsError2, resolveSkillsTarget2, resolveRootDir2, resolveSkillsContext2, runAgentInstalls2, cleanupStaleSkills2 };
364
373
 
365
- //# debugId=12E927CE7D024CB564756E2164756E21
374
+ //# debugId=71B8C73FC8A8D2E064756E2164756E21
@@ -0,0 +1,41 @@
1
+ import {
2
+ VALID_CHANNELS,
3
+ versionChannel,
4
+ parsePrereleaseTag
5
+ } from "./index-ej6eeger.js";
6
+ import {
7
+ getCachedConfig
8
+ } from "./index-5ygg5mrs.js";
9
+ import {
10
+ package_default
11
+ } from "./index-nex3q8cg.js";
12
+
13
+ // src/services/channel.ts
14
+ function resolveUpdateChannel(cliVersion = package_default.version) {
15
+ return configChannel() ?? versionChannel(cliVersion) ?? "stable";
16
+ }
17
+ function resolveRuntimeChannel(cliVersion = package_default.version) {
18
+ return runtimeChannelFor(getCachedConfig().core?.updateChannel, cliVersion);
19
+ }
20
+ function runtimeChannelFor(updateChannel, cliVersion = package_default.version) {
21
+ return versionChannel(cliVersion) ?? knownChannel(updateChannel) ?? "stable";
22
+ }
23
+ function isPreviewVersion(cliVersion = package_default.version) {
24
+ return parsePrereleaseTag(cliVersion) !== undefined;
25
+ }
26
+ function channelForVersion(version) {
27
+ return parsePrereleaseTag(version) === undefined ? "stable" : versionChannel(version);
28
+ }
29
+ function configChannel() {
30
+ return knownChannel(getCachedConfig().core?.updateChannel);
31
+ }
32
+ function knownChannel(value) {
33
+ if (typeof value === "string" && VALID_CHANNELS.has(value)) {
34
+ return value;
35
+ }
36
+ return;
37
+ }
38
+
39
+ export { resolveUpdateChannel, resolveRuntimeChannel, runtimeChannelFor, isPreviewVersion, channelForVersion };
40
+
41
+ //# debugId=FC4F1C57B40FFBC064756E2164756E21