@uipath/cli 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 (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-1jpx8z2w.js +28 -0
  4. package/dist/cliInstaller-3dxg6fbd.js +23 -0
  5. package/dist/{contentStore-34hat2cd.js → contentStore-5p86z7qq.js} +7 -6
  6. package/dist/{environmentInfo-tr3pt6x1.js → environmentInfo-wp5jthdh.js} +6 -6
  7. package/dist/{feedbackPrompts-bx209g5v.js → feedbackPrompts-fc66gq0p.js} +3 -3
  8. package/dist/forcedUpdate-fm57455c.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-319vtrwd.js +264 -0
  12. package/dist/index-33wtbzyw.js +248 -0
  13. package/dist/index-5dbc9t09.js +41 -0
  14. package/dist/index-5ygg5mrs.js +1272 -0
  15. package/dist/{index-99emfvtm.js → index-65pyx6c9.js} +4 -2
  16. package/dist/{index-rr5hdtcy.js → index-81197qe5.js} +15 -17
  17. package/dist/{index-2mm750yx.js → index-8n0z4r6f.js} +69 -13
  18. package/dist/{index-8zhmg5tz.js → index-8pk6n4t9.js} +2 -2
  19. package/dist/{index-nsrrst23.js → index-ack311y7.js} +12 -2
  20. package/dist/index-afhekp0a.js +331 -0
  21. package/dist/{index-szbq3m4j.js → index-bf2mdvne.js} +8 -12
  22. package/dist/{index-2n2vr5w5.js → index-dt6mjnkf.js} +39 -57
  23. package/dist/{index-85fgzk87.js → index-dtgfa304.js} +1 -1
  24. package/dist/{index-y7d0cth0.js → index-e82sznr2.js} +7 -7
  25. package/dist/index-ej6eeger.js +23 -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-m780gg7f.js → index-hfvbp7ay.js} +30 -14
  29. package/dist/index-jk7em40j.js +37 -0
  30. package/dist/{index-691s5342.js → index-jn06044v.js} +2130 -834
  31. package/dist/{index-vhn8f5d2.js → index-kdr4xvby.js} +5 -5
  32. package/dist/{index-ckp8r4dh.js → index-mb62swmp.js} +2 -2
  33. package/dist/index-nzfpbep9.js +14 -0
  34. package/dist/{index-z070caqq.js → index-p64w2wrt.js} +30 -8
  35. package/dist/{index-8x2rp038.js → index-petywj9n.js} +81 -58
  36. package/dist/{index-nn8qzaxe.js → index-phkawd97.js} +2 -2
  37. package/dist/{index-ede5v6yy.js → index-q3f93ttm.js} +26 -17
  38. package/dist/{index-3s642t05.js → index-spnvnhbf.js} +7 -10
  39. package/dist/index-v7yphxb8.js +118 -0
  40. package/dist/index-vrfbee4d.js +340 -0
  41. package/dist/{index-69mcde3n.js → index-xw81b1gn.js} +196 -81
  42. package/dist/{index-wg3cne7n.js → index-xxms6rt8.js} +24 -5
  43. package/dist/{index-21kns9qg.js → index-y7v9rkq9.js} +1 -1
  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-9ze9zy34.js → prompt-5vbvcsds.js} +5 -5
  50. package/dist/{server-qg4rm5e3.js → server-8c4jwqjh.js} +5 -5
  51. package/dist/{skillCatalog-fvrcgryd.js → skillCatalog-bqya1aer.js} +8 -7
  52. package/dist/skillsService-8yjvmz8c.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-9qew50s3.js +377 -0
  56. package/dist/updateService.cli-xtqp78g7.js +15 -0
  57. package/dist/updateService.skills-e2pbe2w6.js +27 -0
  58. package/dist/updateService.tools-m58m2fbt.js +19 -0
  59. package/package.json +2 -2
  60. package/dist/cli-7rv7qys0.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-w3my9pw8.js +0 -45
  65. package/dist/skillsService-0387c5f0.js +0 -29
  66. package/dist/tree-4dhk82fh.js +0 -17
  67. package/dist/updateService-a3ypvwz8.js +0 -522
  68. package/dist/updateService.skills-nkdzyrwv.js +0 -22
  69. package/dist/updateService.tools-3zfct9yk.js +0 -16
@@ -1,15 +1,18 @@
1
1
  import {
2
- CHANNEL_PLACEHOLDER,
3
- formatVersionPin
4
- } from "./index-753mncpq.js";
2
+ CHANNEL_PLACEHOLDER
3
+ } from "./index-ej6eeger.js";
5
4
  import {
6
5
  getFileSystem2
7
- } from "./index-z070caqq.js";
6
+ } from "./index-p64w2wrt.js";
8
7
  import {
9
8
  catchError,
10
9
  logger,
11
10
  UIPATH_HOME_DIR
12
- } from "./index-fdztq951.js";
11
+ } from "./index-zhp702kh.js";
12
+ import {
13
+ refreshGlobalNpmUipathDir,
14
+ getEnvToolsDirsDeclaration
15
+ } from "./index-xw81b1gn.js";
13
16
 
14
17
  // src/commands/tools/tool-helpers.ts
15
18
  function getInstalledTools(state) {
@@ -17,70 +20,34 @@ function getInstalledTools(state) {
17
20
  name: d.toolName,
18
21
  version: d.version,
19
22
  description: d.description,
20
- commandPrefix: d.commandPrefix
23
+ commandPrefix: d.commandPrefix,
24
+ path: d.toolPath
21
25
  }));
22
26
  }
23
27
 
24
28
  // src/services/updateFailureFormat.ts
25
- var PINNED_LINE_REMEDIATION = "Pin a published version line with `uip config set version <major.minor>`, " + `switch channels with \`uip config set updateChannel ${CHANNEL_PLACEHOLDER}\`, ` + "or clear the pin with `uip config clear version` to track the latest " + "release, then re-run `uip update`.";
26
- var LATEST_LINE_REMEDIATION = "Pin a published version line with `uip config set version <major.minor>`, " + `or switch channels with \`uip config set updateChannel ${CHANNEL_PLACEHOLDER}\`, ` + "then re-run `uip update`.";
27
- function pinnedLineRemediation(origin) {
28
- if (origin === "latest")
29
- return LATEST_LINE_REMEDIATION;
30
- return PINNED_LINE_REMEDIATION;
31
- }
32
29
  function toolFailureRemediation(origin) {
33
- const changeTarget = origin === "latest" ? "pin a version line with `uip config set version <major.minor>`" : "adjust the pinned `core.version`";
34
- return `Check tool compatibility with the current CLI version, ${changeTarget}, ` + `or run \`uip config set updateChannel ${CHANNEL_PLACEHOLDER}\` to switch release channels.`;
35
- }
36
- function isPinnedLineMissing(error) {
37
- return error.Kind === "pinned-line-missing";
30
+ if (origin === "latest") {
31
+ return `Check that the tool works with this CLI version, or run \`uip config set updateChannel ${CHANNEL_PLACEHOLDER}\` to switch release channels.`;
32
+ }
33
+ return `Check that the tool works with this CLI version, or run \`uip config set updateChannel ${CHANNEL_PLACEHOLDER} --force\` to switch release channels.`;
38
34
  }
39
35
  function describeSearchedRegistry(registry) {
40
36
  return registry ? ` (searched ${registry})` : "";
41
37
  }
42
- function describeMissingLine(opts) {
43
- const { pin, origin, targetLine, searched } = opts;
44
- const suffix = describeSearchedRegistry(searched);
45
- if (origin === "latest") {
46
- return `No version found in the latest ${targetLine} line${suffix}`;
47
- }
48
- return `No version found matching pinned ${formatVersionPin(pin)} in the ${targetLine} line${suffix}`;
49
- }
50
38
  function describeDowngradeReason(origin) {
51
39
  if (origin === "latest")
52
40
  return "the latest version line";
53
41
  return "the pinned version";
54
42
  }
55
- function describeMissing(missing) {
56
- const parts = [];
57
- if (missing.some((e) => e.Subsystem === "cli"))
58
- parts.push("the CLI");
59
- const toolCount = missing.filter((e) => e.Subsystem === "tools").length;
60
- if (toolCount > 0) {
61
- parts.push(`${toolCount} tool${toolCount === 1 ? "" : "s"}`);
62
- }
63
- return parts.length > 0 ? parts.join(" and ") : "the pinned line";
64
- }
65
- function describePinnedLine(target) {
66
- if (!target?.pin)
67
- return "the pinned version line";
68
- const line = `${target.pin.major}.${target.pin.minor}`;
69
- if (target.origin === "latest") {
70
- return `the latest version line ${line}`;
71
- }
72
- return `the pinned version line ${line}`;
73
- }
74
- function collapsePinnedLineErrors(report, target) {
75
- const missing = report.Errors.filter(isPinnedLineMissing);
76
- if (missing.length <= 1) {
77
- return { collapsed: null, individual: report.Errors };
78
- }
79
- const searched = missing.find((e) => e.Registry)?.Registry;
80
- return {
81
- collapsed: `No published release found for ${describeMissing(missing)} on ` + `${describePinnedLine(target)} (channel: ${report.Channel}${searched ? `; searched ${searched}` : ""}). ` + pinnedLineRemediation(target?.origin),
82
- individual: report.Errors.filter((e) => !isPinnedLineMissing(e))
83
- };
43
+
44
+ // src/utils/globalInstallDir.ts
45
+ async function globalInstallDirFor(location) {
46
+ if (!location.global || location.prefix)
47
+ return null;
48
+ if (await getEnvToolsDirsDeclaration())
49
+ return null;
50
+ return refreshGlobalNpmUipathDir();
84
51
  }
85
52
 
86
53
  // src/services/versionSyncState.ts
@@ -107,6 +74,9 @@ async function readState(fs = getFileSystem2()) {
107
74
  if (typeof parsed.lastUpdateDate === "string") {
108
75
  state.lastUpdateDate = parsed.lastUpdateDate;
109
76
  }
77
+ if (typeof parsed.frozenEnvWarningDate === "string") {
78
+ state.frozenEnvWarningDate = parsed.frozenEnvWarningDate;
79
+ }
110
80
  if (isPlainRecord(parsed.toolUpdateDates)) {
111
81
  const dates = {};
112
82
  for (const [name, date] of Object.entries(parsed.toolUpdateDates)) {
@@ -136,6 +106,18 @@ async function mergeState(patch, fs = getFileSystem2()) {
136
106
  return next;
137
107
  }, fs);
138
108
  }
109
+ async function claimFrozenEnvWarning(today, fs = getFileSystem2()) {
110
+ if ((await readState(fs)).frozenEnvWarningDate === today)
111
+ return false;
112
+ let claimed = false;
113
+ const persisted = await updateState((current) => {
114
+ if (current.frozenEnvWarningDate === today)
115
+ return current;
116
+ claimed = true;
117
+ return { ...current, frozenEnvWarningDate: today };
118
+ }, fs);
119
+ return claimed && persisted;
120
+ }
139
121
  async function updateState(mutate, fs) {
140
122
  const target = stateFilePath(fs);
141
123
  await catchError(fs.mkdir(fs.path.dirname(target)));
@@ -166,6 +148,6 @@ async function updateState(mutate, fs) {
166
148
  }
167
149
  }
168
150
 
169
- export { getInstalledTools, pinnedLineRemediation, toolFailureRemediation, describeSearchedRegistry, describeMissingLine, describeDowngradeReason, collapsePinnedLineErrors, todayLocal, readState, recordToolUpdateDate, mergeState };
151
+ export { getInstalledTools, toolFailureRemediation, describeSearchedRegistry, describeDowngradeReason, globalInstallDirFor, todayLocal, readState, recordToolUpdateDate, mergeState, claimFrozenEnvWarning };
170
152
 
171
- //# debugId=F8E8AEC37A3D02A864756E2164756E21
153
+ //# debugId=E5213B2D4F35F19364756E2164756E21
@@ -6,7 +6,7 @@ import {
6
6
  AGENT_DISPLAY_NAMES,
7
7
  AGENT_DEFS,
8
8
  getSkillsDestinationHint
9
- } from "./index-szbq3m4j.js";
9
+ } from "./index-bf2mdvne.js";
10
10
 
11
11
  // src/commands/skills/prompt.ts
12
12
  async function promptAgentSelection2(operation, isLocal, preselected = [], isDefaultSource = true) {
@@ -26,7 +26,6 @@ import {
26
26
  resolveEnvFileLocationAsync2,
27
27
  resolveEnvFilePathAsync2,
28
28
  loadEnvFileAsync2,
29
- saveEnvFileAsync2,
30
29
  CredentialSource2,
31
30
  getLoginStatusAsync2,
32
31
  describeAuthProfilesAsync2,
@@ -34,18 +33,19 @@ import {
34
33
  isTenantSelectionError2,
35
34
  interactiveLogin2,
36
35
  logout2,
36
+ updateEnvFileLockedAsync2,
37
37
  authenticate2
38
- } from "./index-2mm750yx.js";
38
+ } from "./index-8n0z4r6f.js";
39
39
  import {
40
40
  isBrowser2
41
41
  } from "./index-zdqbp34f.js";
42
- import"./index-z070caqq.js";
42
+ import"./index-p64w2wrt.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,
@@ -85,9 +85,9 @@ export {
85
85
  resolveEnvFileLocationAsync2 as resolveEnvFileLocationAsync,
86
86
  resolveEnvFilePathAsync2 as resolveEnvFilePathAsync,
87
87
  runWithAuthProfile2 as runWithAuthProfile,
88
- saveEnvFileAsync2 as saveEnvFileAsync,
89
88
  setActiveAuthProfile2 as setActiveAuthProfile,
90
- setAuthFileConfig2 as setAuthFileConfig
89
+ setAuthFileConfig2 as setAuthFileConfig,
90
+ updateEnvFileLockedAsync2 as updateEnvFileLockedAsync
91
91
  };
92
92
 
93
- //# debugId=229181B84AFBC77464756E2164756E21
93
+ //# debugId=178347A5F87C5B2964756E2164756E21
@@ -0,0 +1,23 @@
1
+ // src/services/channels.ts
2
+ var CHANNELS = ["stable", "preview", "dev"];
3
+ var VALID_CHANNELS = new Set(CHANNELS);
4
+ var HIDDEN_CHANNELS = ["dev"];
5
+ var PUBLIC_CHANNELS = CHANNELS.filter((channel) => !HIDDEN_CHANNELS.includes(channel));
6
+ var CHANNEL_PLACEHOLDER = `<${PUBLIC_CHANNELS.join("|")}>`;
7
+ function versionChannel(cliVersion) {
8
+ const prerelease = parsePrereleaseTag(cliVersion);
9
+ if (prerelease && VALID_CHANNELS.has(prerelease)) {
10
+ return prerelease;
11
+ }
12
+ return;
13
+ }
14
+ function parsePrereleaseTag(version) {
15
+ const dashIdx = version.indexOf("-");
16
+ if (dashIdx === -1)
17
+ return;
18
+ return version.slice(dashIdx + 1).split(".")[0];
19
+ }
20
+
21
+ export { CHANNELS, VALID_CHANNELS, HIDDEN_CHANNELS, PUBLIC_CHANNELS, CHANNEL_PLACEHOLDER, versionChannel, parsePrereleaseTag };
22
+
23
+ //# debugId=5888AF5FC772513064756E2164756E21
@@ -3,10 +3,10 @@ import {
3
3
  Command,
4
4
  logger,
5
5
  getCompleter
6
- } from "./index-fdztq951.js";
6
+ } from "./index-zhp702kh.js";
7
7
  import {
8
8
  importTool
9
- } from "./index-vhn8f5d2.js";
9
+ } from "./index-kdr4xvby.js";
10
10
 
11
11
  // src/commands/completion/tree.ts
12
12
  var isHiddenCommand = (cmd) => cmd._hidden === true;
@@ -1,24 +1,25 @@
1
1
  import {
2
2
  getActiveAuthProfileFilePath2,
3
3
  parseAuthFlow2,
4
+ ENV_AUTH_ENABLE_VAR2,
4
5
  isEnvAuthEnabled2,
5
6
  readAuthFromEnv2,
6
7
  AUTH_FLOW_ENV_VAR2,
7
8
  DEFAULT_ENV_FILENAME2,
8
9
  resolveEnvFilePathAsync2,
9
10
  loadEnvFileAsync2
10
- } from "./index-2mm750yx.js";
11
+ } from "./index-8n0z4r6f.js";
11
12
  import {
12
13
  BaseDimensions,
13
14
  CommandDimensions,
14
15
  AuthDimensions,
15
16
  catchError,
16
17
  logger,
18
+ setGlobalTelemetryProperties,
17
19
  buildEnvironmentProperties,
18
20
  setExecutionContextAuthSignal,
19
- setGlobalTelemetryProperties,
20
21
  telemetry
21
- } from "./index-fdztq951.js";
22
+ } from "./index-zhp702kh.js";
22
23
 
23
24
  // src/copyright.ts
24
25
  var COPYRIGHT_NOTICE = "© 2026 UiPath";
@@ -146,6 +147,14 @@ var trackAuthLogout = (result) => {
146
147
  });
147
148
  };
148
149
 
149
- export { COPYRIGHT_NOTICE, populateTelemetryAuthContext, trackAuthLogin, trackTenantSelection, trackTokenRefresh, trackAuthLogout };
150
+ // src/services/envAuthOverride.ts
151
+ function warnIfEnvAuthOverrides(savedLogin) {
152
+ if (!isEnvAuthEnabled2()) {
153
+ return;
154
+ }
155
+ logger.warn(`Environment-variable authentication is on (${ENV_AUTH_ENABLE_VAR2}=true), so commands sign in with the UIPATH_CLI_* variables, not ${savedLogin}. Unset ${ENV_AUTH_ENABLE_VAR2} to use it.`);
156
+ }
157
+
158
+ export { COPYRIGHT_NOTICE, populateTelemetryAuthContext, trackAuthLogin, trackTenantSelection, trackTokenRefresh, trackAuthLogout, warnIfEnvAuthOverrides };
150
159
 
151
- //# debugId=C8FEFA9AACD890EB64756E2164756E21
160
+ //# debugId=D6A20C87F8C39A6364756E2164756E21
@@ -1,9 +1,12 @@
1
1
  import {
2
2
  getFileSystem2
3
- } from "./index-z070caqq.js";
3
+ } from "./index-p64w2wrt.js";
4
4
  import {
5
5
  catchError
6
- } from "./index-fdztq951.js";
6
+ } from "./index-zhp702kh.js";
7
+ import {
8
+ readStoreSkillsVersion
9
+ } from "./index-jk7em40j.js";
7
10
  import {
8
11
  resolveSkillSource2,
9
12
  fetchSkillsTo2,
@@ -11,18 +14,18 @@ import {
11
14
  getAvailableSkills2,
12
15
  MANIFEST_NAME2,
13
16
  readManifest2
14
- } from "./index-8x2rp038.js";
17
+ } from "./index-petywj9n.js";
15
18
  import {
16
19
  ALL_AGENTS
17
- } from "./index-szbq3m4j.js";
20
+ } from "./index-bf2mdvne.js";
18
21
  import {
19
22
  SkillsError2,
20
23
  runAgentInstalls2,
21
24
  cleanupStaleSkills2
22
- } from "./index-ede5v6yy.js";
25
+ } from "./index-q3f93ttm.js";
23
26
  import {
24
27
  getSkillsSourceFailureDetails
25
- } from "./index-wg3cne7n.js";
28
+ } from "./index-xxms6rt8.js";
26
29
 
27
30
  // src/services/updateService.skills.ts
28
31
  import { randomUUID } from "node:crypto";
@@ -99,7 +102,8 @@ async function runSkillsUpdate2(opts) {
99
102
  const [sectionErr, section] = await catchError(updateOneSection(opts, candidate, source));
100
103
  if (sectionErr) {
101
104
  const skillsErr = sectionErr instanceof SkillsError2 ? sectionErr : null;
102
- const instructions = skillsErr?.instructions ?? getSkillsSourceFailureDetails(sectionErr).instructions;
105
+ const details = getSkillsSourceFailureDetails(sectionErr);
106
+ const instructions = skillsErr?.instructions ?? details.instructions;
103
107
  sections.push({
104
108
  rootDir: candidate.rootDir,
105
109
  scope: candidate.scope,
@@ -111,7 +115,9 @@ async function runSkillsUpdate2(opts) {
111
115
  error: {
112
116
  result: skillsErr?.result ?? "Failure",
113
117
  message: sectionErr.message,
114
- instructions
118
+ instructions,
119
+ errorCode: skillsErr ? undefined : details.errorCode,
120
+ retry: skillsErr ? undefined : details.retry
115
121
  }
116
122
  });
117
123
  continue;
@@ -124,7 +130,9 @@ async function runSkillsUpdate2(opts) {
124
130
  async function updateOneSection(opts, candidate, source) {
125
131
  const fs = getFileSystem2();
126
132
  const isLocal = candidate.scope === "local";
127
- const previousManifest = await readManifest2(fs.path.join(candidate.rootDir, source.storeName));
133
+ const previousStore = fs.path.join(candidate.rootDir, source.storeName);
134
+ const previousManifest = await readManifest2(previousStore);
135
+ const from = await readStoreSkillsVersion(previousStore);
128
136
  const previousSkills = Object.keys(previousManifest.skills);
129
137
  let agents;
130
138
  if (opts.agent) {
@@ -152,7 +160,7 @@ async function updateOneSection(opts, candidate, source) {
152
160
  try {
153
161
  await fs.mkdir(tmpRoot);
154
162
  const tmpStore = fs.path.join(tmpRoot, "store");
155
- await fetchSkillsTo2(tmpStore, tmpRoot, source, opts.targetVersion);
163
+ await fetchSkillsTo2(tmpStore, tmpRoot, source, opts.targetVersion, opts.skillsVersion);
156
164
  const remoteSkills = await getAvailableSkills2(tmpStore);
157
165
  const remoteNames = remoteSkills.map((s) => s.name);
158
166
  return {
@@ -162,13 +170,14 @@ async function updateOneSection(opts, candidate, source) {
162
170
  skills: remoteNames,
163
171
  added: remoteNames.filter((n) => !previousSkills.includes(n)),
164
172
  removed: previousSkills.filter((n) => !remoteNames.includes(n)),
165
- refreshed: 0
173
+ refreshed: 0,
174
+ ...versionMove(from, await readStoreSkillsVersion(tmpStore))
166
175
  };
167
176
  } finally {
168
177
  await catchError(fs.rm(tmpRoot));
169
178
  }
170
179
  }
171
- const storePath = await getContentStore2(candidate.rootDir, source, opts.targetVersion);
180
+ const storePath = await getContentStore2(candidate.rootDir, source, opts.targetVersion, opts.skillsVersion);
172
181
  const availableSkills = await getAvailableSkills2(storePath);
173
182
  const availableNames = availableSkills.map((s) => s.name);
174
183
  const added = availableNames.filter((n) => !previousSkills.includes(n));
@@ -191,10 +200,17 @@ async function updateOneSection(opts, candidate, source) {
191
200
  skills: availableNames,
192
201
  added,
193
202
  removed,
194
- refreshed: installed.length
203
+ refreshed: installed.length,
204
+ ...versionMove(from, await readStoreSkillsVersion(storePath))
205
+ };
206
+ }
207
+ function versionMove(from, to) {
208
+ return {
209
+ ...from !== undefined && { from },
210
+ ...to !== undefined && { to }
195
211
  };
196
212
  }
197
213
 
198
214
  export { runSkillsUpdate2 };
199
215
 
200
- //# debugId=88AF4A5DB1FF04D064756E2164756E21
216
+ //# debugId=73D09576CD8237C364756E2164756E21
@@ -0,0 +1,37 @@
1
+ import {
2
+ getFileSystem2
3
+ } from "./index-p64w2wrt.js";
4
+ import {
5
+ catchError,
6
+ UIPATH_HOME_DIR
7
+ } from "./index-zhp702kh.js";
8
+
9
+ // src/utils/asRecord.ts
10
+ function asRecord(value) {
11
+ return value !== null && typeof value === "object" && !Array.isArray(value) ? value : undefined;
12
+ }
13
+
14
+ // src/commands/skills/storeMarker.ts
15
+ var SOURCE_MARKER_NAME = ".uipath-skills-source.json";
16
+ var STORE_NAME = `${UIPATH_HOME_DIR}/.skills`;
17
+ async function readStoreSkillsVersion(storePath) {
18
+ const fs = getFileSystem2();
19
+ const [markerErr, markerText] = await catchError(fs.readFile(fs.path.join(storePath, SOURCE_MARKER_NAME), {
20
+ encoding: "utf-8"
21
+ }));
22
+ if (markerErr || !markerText)
23
+ return;
24
+ const [parseErr, marker] = catchError(() => JSON.parse(markerText));
25
+ if (parseErr)
26
+ return;
27
+ const version = asRecord(marker)?.version;
28
+ return typeof version === "string" ? version : undefined;
29
+ }
30
+ async function readInstalledSkillsVersion() {
31
+ const fs = getFileSystem2();
32
+ return await readStoreSkillsVersion(fs.path.join(fs.env.cwd(), STORE_NAME)) ?? readStoreSkillsVersion(fs.path.join(fs.env.homedir(), STORE_NAME));
33
+ }
34
+
35
+ export { asRecord, SOURCE_MARKER_NAME, STORE_NAME, readStoreSkillsVersion, readInstalledSkillsVersion };
36
+
37
+ //# debugId=4D7C898A4FCD5C9D64756E2164756E21