@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
@@ -0,0 +1,118 @@
1
+ import {
2
+ versionChannel
3
+ } from "./index-ej6eeger.js";
4
+
5
+ // src/config/pinValidation.ts
6
+ var NUMBER = String.raw`(0|[1-9]\d*)`;
7
+ var IDENT = String.raw`(?:0|[1-9]\d*|\d*[A-Za-z-][0-9A-Za-z-]*)`;
8
+ var TAG = String.raw`${IDENT}(?:\.${IDENT})*`;
9
+ var VERSION_PIN_RE = new RegExp(String.raw`^${NUMBER}\.${NUMBER}\.${NUMBER}(?:-(${TAG}))?$`);
10
+ var VERSION_PIN_FORM = "major.minor.patch with an optional prerelease tag (e.g. 1.2.3 or 1.2.3-preview.1)";
11
+
12
+ class InvalidPinsError extends Error {
13
+ constructor(message) {
14
+ super(message);
15
+ this.name = "InvalidPinsError";
16
+ }
17
+ }
18
+ var LINE_RULE = "A tool or skills pin must be on the line of the CLI pin.";
19
+ function pinLine(pin) {
20
+ const match = VERSION_PIN_RE.exec(pin);
21
+ return match ? `${match[1]}.${match[2]}` : undefined;
22
+ }
23
+ function channelOffPinMessage(cli, updateChannel) {
24
+ const pinChannel = cli === undefined ? undefined : versionChannel(cli);
25
+ if (pinChannel === undefined)
26
+ return;
27
+ if (updateChannel === undefined || updateChannel === pinChannel) {
28
+ return;
29
+ }
30
+ return `The CLI pin ${cli} is a ${pinChannel} build, so core.updateChannel must be ${pinChannel}, not ${String(updateChannel)}.`;
31
+ }
32
+ function listSome(items) {
33
+ const shown = items.slice(0, 3).join(", ");
34
+ return items.length > 3 ? `${shown} and ${items.length - 3} more` : shown;
35
+ }
36
+ function validatePins(versions, updateChannel) {
37
+ if (versions === undefined)
38
+ return;
39
+ const { cli, skills, tools = {} } = versions;
40
+ const channelProblem = channelOffPinMessage(cli, updateChannel);
41
+ if (channelProblem !== undefined) {
42
+ throw new InvalidPinsError(channelProblem);
43
+ }
44
+ const dependent = [
45
+ ["@uipath/skills", skills],
46
+ ...Object.entries(tools)
47
+ ].filter((entry) => entry[1] !== undefined);
48
+ if (dependent.length === 0)
49
+ return;
50
+ const line = pinLine(cli);
51
+ const offLine = dependent.filter(([, pin]) => pinLine(pin) !== line);
52
+ if (offLine.length === 0)
53
+ return;
54
+ const [[name, pin]] = offLine;
55
+ const problem = offLine.length === 1 ? `The pin for ${name} ${pin} is not on the CLI line ${line} that this freeze pins` : `These pins are not on the CLI line ${line} that this freeze pins: ${listSome(offLine.map((entry) => entry.join(" ")))}`;
56
+ throw new InvalidPinsError(`${problem}. ${LINE_RULE}`);
57
+ }
58
+
59
+ // src/services/versionPin.ts
60
+ function parseVersionPin(raw) {
61
+ if (raw === undefined)
62
+ return null;
63
+ const match = VERSION_PIN_RE.exec(raw.trim());
64
+ if (!match)
65
+ return null;
66
+ const pin = {
67
+ major: Number(match[1]),
68
+ minor: Number(match[2]),
69
+ patch: Number(match[3])
70
+ };
71
+ if (match[4] !== undefined)
72
+ pin.prerelease = match[4];
73
+ return pin;
74
+ }
75
+ function majorOf(version) {
76
+ const [rawMajor] = version.trim().split(/[.\-+]/);
77
+ if (rawMajor === undefined || !/^\d+$/.test(rawMajor))
78
+ return null;
79
+ return Number(rawMajor);
80
+ }
81
+ function versionLinePrefix(version) {
82
+ const [major, minor] = version.split(".");
83
+ return `${major}.${minor}.`;
84
+ }
85
+ async function skillsPinFor(installed, pinned, linePrefix, isPublished) {
86
+ if (installed !== undefined) {
87
+ if (installed.startsWith(linePrefix)) {
88
+ return { reason: "installed", skills: installed };
89
+ }
90
+ return { reason: "installedOffLine", installed };
91
+ }
92
+ if (pinned === undefined)
93
+ return { reason: "noPin" };
94
+ if (versionLinePrefix(pinned) !== linePrefix) {
95
+ return { reason: "pinOffLine", pin: pinned };
96
+ }
97
+ const published = await isPublished?.(pinned);
98
+ if (published === false)
99
+ return { reason: "pinUnpublished", pin: pinned };
100
+ if (published === null)
101
+ return { reason: "pinUnchecked", skills: pinned };
102
+ return { reason: "pinKept", skills: pinned };
103
+ }
104
+ function formatVersionPin(pin) {
105
+ const tag = pin.prerelease === undefined ? "" : `-${pin.prerelease}`;
106
+ return `${pin.major}.${pin.minor}.${pin.patch}${tag}`;
107
+ }
108
+ function matchesPin(pin, version) {
109
+ const parsed = parseVersionPin(pin);
110
+ return parsed !== null && formatVersionPin(parsed) === version;
111
+ }
112
+ function sortedByName(tools) {
113
+ return Object.fromEntries(Object.entries(tools).sort(([nameA], [nameB]) => nameA.localeCompare(nameB)));
114
+ }
115
+
116
+ export { VERSION_PIN_RE, VERSION_PIN_FORM, InvalidPinsError, channelOffPinMessage, listSome, validatePins, parseVersionPin, majorOf, versionLinePrefix, skillsPinFor, formatVersionPin, matchesPin, sortedByName };
117
+
118
+ //# debugId=F5B3415D742ADF8564756E2164756E21
@@ -0,0 +1,340 @@
1
+ import {
2
+ getFileSystem2
3
+ } from "./index-p64w2wrt.js";
4
+ import {
5
+ catchError,
6
+ carriedErrorCode,
7
+ carriedRetry,
8
+ carriedInstructions,
9
+ logger
10
+ } from "./index-zhp702kh.js";
11
+ import {
12
+ TOOLS_WHITELIST,
13
+ resolveToolPackageName,
14
+ toolPackageName,
15
+ toolShortName,
16
+ getEffectiveRegistry,
17
+ toolService
18
+ } from "./index-xw81b1gn.js";
19
+ import {
20
+ getInstalledTools,
21
+ describeSearchedRegistry,
22
+ globalInstallDirFor,
23
+ recordToolUpdateDate
24
+ } from "./index-dt6mjnkf.js";
25
+
26
+ // src/services/updateService.tools.ts
27
+ var TOOLS_UPDATE_PHASES2 = {
28
+ Checking: "checking",
29
+ Installing: "installing"
30
+ };
31
+ function formatTargetLine(prefix) {
32
+ const trimmed = prefix.endsWith(".") ? prefix.slice(0, -1) : prefix;
33
+ return `${trimmed}.x`;
34
+ }
35
+ function buildToolUpdatePolicy(cliVersionPrefix) {
36
+ const targetLine = formatTargetLine(cliVersionPrefix);
37
+ return {
38
+ resolvedBy: "cli-version",
39
+ targetLine,
40
+ reason: `Using CLI version line ${targetLine}; tools resolve within ${targetLine}.`
41
+ };
42
+ }
43
+ function withPolicy(entry, policy) {
44
+ const result = {
45
+ ...entry,
46
+ resolvedBy: policy.resolvedBy,
47
+ reason: policy.reason
48
+ };
49
+ if (policy.targetLine !== undefined) {
50
+ result.targetLine = policy.targetLine;
51
+ }
52
+ return result;
53
+ }
54
+ function isListedTool2(pins, name) {
55
+ return pins !== undefined && Object.hasOwn(pins, resolveToolPackageName(name));
56
+ }
57
+ async function runToolsUpdate2(opts, state) {
58
+ const pins = opts.toolPins;
59
+ if (pins) {
60
+ if (opts.name !== undefined && !isListedTool2(pins, opts.name)) {
61
+ return { entries: [] };
62
+ }
63
+ return syncToolsToPins(pins, state, {
64
+ ...opts,
65
+ packageName: opts.name && resolveToolPackageName(opts.name)
66
+ });
67
+ }
68
+ const installed = getInstalledTools(state);
69
+ if (installed.length === 0) {
70
+ return {
71
+ entries: [],
72
+ fatal: {
73
+ code: "NO_TOOLS_INSTALLED",
74
+ result: "ConfigError",
75
+ message: "No tools installed.",
76
+ instructions: "Use 'uip tools install <package>' to install a tool."
77
+ }
78
+ };
79
+ }
80
+ const [locationError, location] = await catchError(state.resolveInstallPath());
81
+ if (locationError) {
82
+ return locationErrorReport(locationError);
83
+ }
84
+ const resolvedName = opts.name ? resolveToolPackageName(opts.name) : undefined;
85
+ const toUpdate = resolvedName ? installed.filter((t) => t.name === resolvedName || `@uipath/${t.name}` === resolvedName) : installed;
86
+ if (resolvedName && toUpdate.length === 0) {
87
+ return {
88
+ entries: [],
89
+ fatal: {
90
+ code: "NAME_NOT_INSTALLED",
91
+ result: "ValidationError",
92
+ message: `Tool '${opts.name}' is not installed.`,
93
+ instructions: "Use 'uip tools list' to see installed tools."
94
+ }
95
+ };
96
+ }
97
+ const entries = [];
98
+ const previousVersions = new Map(toUpdate.map((t) => [t.name, t.version]));
99
+ const total = toUpdate.length;
100
+ const cliVersionPrefix = opts.cliVersionPrefix ?? state.getCliVersionPrefix();
101
+ const policy = buildToolUpdatePolicy(cliVersionPrefix);
102
+ let index = 0;
103
+ for (const tool of toUpdate) {
104
+ index++;
105
+ const fullName = `@uipath/${tool.name}`;
106
+ opts.onProgress?.({
107
+ current: index,
108
+ total,
109
+ tool: tool.name,
110
+ phase: TOOLS_UPDATE_PHASES2.Checking
111
+ });
112
+ const [updateError] = await catchError((async () => {
113
+ const prefix = cliVersionPrefix;
114
+ const targetVersion = await toolService.searchLatestVersion(fullName, prefix, { channel: opts.channel });
115
+ if (!targetVersion) {
116
+ const searched = await getEffectiveRegistry(fullName);
117
+ entries.push(withPolicy({
118
+ name: tool.name,
119
+ status: "failed",
120
+ from: tool.version,
121
+ error: `No compatible ${opts.channel} version found in the CLI's ${formatTargetLine(prefix)} line${describeSearchedRegistry(searched)}`,
122
+ ...searched ? { searchedRegistry: searched } : {}
123
+ }, policy));
124
+ return;
125
+ }
126
+ const currentVersion = tool.version;
127
+ if (currentVersion === targetVersion) {
128
+ entries.push(withPolicy({
129
+ name: tool.name,
130
+ status: "up-to-date",
131
+ from: currentVersion,
132
+ to: currentVersion
133
+ }, policy));
134
+ return;
135
+ }
136
+ if (opts.dryRun) {
137
+ entries.push(withPolicy({
138
+ name: tool.name,
139
+ status: "updated",
140
+ from: currentVersion,
141
+ to: targetVersion
142
+ }, policy));
143
+ return;
144
+ }
145
+ opts.onProgress?.({
146
+ current: index,
147
+ total,
148
+ tool: tool.name,
149
+ phase: TOOLS_UPDATE_PHASES2.Installing
150
+ });
151
+ const packageName = `${fullName}@${targetVersion}`;
152
+ await toolService.install(packageName, location.path, {
153
+ global: location.global,
154
+ prefix: location.prefix
155
+ });
156
+ })());
157
+ if (updateError) {
158
+ entries.push(withPolicy({
159
+ name: tool.name,
160
+ status: "failed",
161
+ from: previousVersions.get(tool.name),
162
+ error: updateError.message
163
+ }, policy));
164
+ }
165
+ }
166
+ if (opts.dryRun) {
167
+ return { entries, instructions: policy.reason };
168
+ }
169
+ const updatedVersions = await readOnDiskVersions(state.toolsDirs, toUpdate.map((tool) => tool.name));
170
+ const recordedNames = new Set(entries.map((r) => r.name));
171
+ for (const tool of toUpdate) {
172
+ const name = tool.name;
173
+ if (recordedNames.has(name))
174
+ continue;
175
+ const from = previousVersions.get(name) ?? "unknown";
176
+ const to = updatedVersions.get(name) ?? from;
177
+ if (from === to) {
178
+ entries.push(withPolicy({
179
+ name,
180
+ status: "failed",
181
+ from,
182
+ to,
183
+ error: `Version unchanged after install (still ${from})`
184
+ }, policy));
185
+ } else {
186
+ entries.push(withPolicy({ name, status: "updated", from, to }, policy));
187
+ }
188
+ }
189
+ const failed = entries.filter((r) => r.status === "failed");
190
+ if (failed.length > 0) {
191
+ logger.debug(`Failed to update ${failed.length} tool(s): ${failed.map((f) => `${f.name}: ${f.error}`).join("; ")}`);
192
+ }
193
+ await recordDailyMarkers(entries);
194
+ return { entries, instructions: policy.reason };
195
+ }
196
+ async function recordDailyMarkers(entries) {
197
+ for (const entry of entries) {
198
+ if (entry.status !== "updated" && entry.status !== "up-to-date") {
199
+ continue;
200
+ }
201
+ const [markerErr, persisted] = await catchError(recordToolUpdateDate(entry.name));
202
+ if (markerErr || !persisted) {
203
+ logger.debug(`Could not persist the daily update marker for '${entry.name}'${markerErr ? `: ${markerErr.message}` : ""}`);
204
+ }
205
+ }
206
+ }
207
+ async function readOnDiskVersions(toolsDirs, names) {
208
+ const fs = getFileSystem2();
209
+ const versions = new Map;
210
+ for (const dir of toolsDirs) {
211
+ for (const name of names) {
212
+ if (versions.has(name))
213
+ continue;
214
+ const pkgPath = fs.path.join(dir, name, "package.json");
215
+ if (!await fs.exists(pkgPath))
216
+ continue;
217
+ const [readError, raw] = await catchError(fs.readFile(pkgPath, "utf-8"));
218
+ if (readError || !raw)
219
+ continue;
220
+ const [parseError, pkg] = catchError(() => JSON.parse(raw));
221
+ if (parseError || !pkg.version)
222
+ continue;
223
+ versions.set(name, pkg.version);
224
+ }
225
+ }
226
+ return versions;
227
+ }
228
+ function locationErrorReport(error) {
229
+ return {
230
+ entries: [],
231
+ fatal: {
232
+ code: "LOCATION_ERROR",
233
+ result: "ConfigError",
234
+ message: error.message,
235
+ instructions: carriedInstructions(error) ?? "Please ensure the CLI is installed correctly.",
236
+ errorCode: carriedErrorCode(error),
237
+ retry: carriedRetry(error)
238
+ }
239
+ };
240
+ }
241
+ var FROZEN_REASON = "Using the frozen tool versions.";
242
+ async function syncToolsToPins(pins, state, opts) {
243
+ const [locationError, location] = await catchError(state.resolveInstallPath());
244
+ if (locationError) {
245
+ return locationErrorReport(locationError);
246
+ }
247
+ const listed = Object.entries(pins).filter(([packageName]) => opts.packageName === undefined || packageName === opts.packageName);
248
+ const installed = new Map((state.discoveredTools ?? []).map((d) => [d.packageName, d.version]));
249
+ const entries = [];
250
+ for (const [index, [packageName, pin]] of listed.entries()) {
251
+ entries.push(await syncToolToPin(packageName, pin, {
252
+ from: installed.get(packageName),
253
+ location,
254
+ opts,
255
+ progress: { current: index + 1, total: listed.length }
256
+ }));
257
+ }
258
+ if (opts.dryRun)
259
+ return { entries, instructions: FROZEN_REASON };
260
+ await failShadowedInstalls(entries, location, state);
261
+ await recordDailyMarkers(entries);
262
+ return { entries, instructions: FROZEN_REASON };
263
+ }
264
+ async function syncToolToPin(packageName, pin, context) {
265
+ const { from, location, opts, progress } = context;
266
+ const name = toolShortName(packageName);
267
+ const failed = (error, to, errorKind) => ({
268
+ name,
269
+ status: "failed",
270
+ from,
271
+ to,
272
+ error,
273
+ ...errorKind && { errorKind },
274
+ reason: FROZEN_REASON
275
+ });
276
+ const target = await resolveListedVersion(packageName, pin);
277
+ if ("error" in target)
278
+ return failed(target.error, pin, target.errorKind);
279
+ const { version } = target;
280
+ const moved = { name, from, to: version, reason: FROZEN_REASON };
281
+ if (from === version)
282
+ return { ...moved, status: "up-to-date" };
283
+ if (opts.dryRun)
284
+ return { ...moved, status: "updated" };
285
+ opts.onProgress?.({
286
+ ...progress,
287
+ tool: name,
288
+ phase: TOOLS_UPDATE_PHASES2.Installing
289
+ });
290
+ const [installError] = await catchError(toolService.install(`${packageName}@${version}`, location.path, {
291
+ global: location.global,
292
+ prefix: location.prefix
293
+ }));
294
+ if (installError) {
295
+ return failed(`Could not install ${packageName}@${version}: ${installError.message}`, version);
296
+ }
297
+ return {
298
+ ...moved,
299
+ status: "updated",
300
+ reason: from === undefined ? "Installed at its frozen version." : FROZEN_REASON
301
+ };
302
+ }
303
+ function resolveListedVersion(packageName, pin) {
304
+ if (!TOOLS_WHITELIST.has(packageName)) {
305
+ return {
306
+ error: `The freeze lists ${packageName}, which is not a known tool, so it was not installed.`,
307
+ errorKind: "tool-pin"
308
+ };
309
+ }
310
+ return { version: pin };
311
+ }
312
+ async function toolDirsWithGlobal(location, state) {
313
+ const globalDir = await globalInstallDirFor(location);
314
+ return globalDir && !state.toolsDirs.includes(globalDir) ? [...state.toolsDirs, globalDir] : state.toolsDirs;
315
+ }
316
+ async function readToolVersionsOnDisk2(state, names) {
317
+ const [, location] = await catchError(state.resolveInstallPath());
318
+ const dirs = location ? await toolDirsWithGlobal(location, state) : state.toolsDirs;
319
+ return readOnDiskVersions(dirs, names);
320
+ }
321
+ async function failShadowedInstalls(entries, location, state) {
322
+ const installedNow = entries.filter((entry) => entry.status === "updated").map((entry) => entry.name);
323
+ if (installedNow.length === 0)
324
+ return;
325
+ const onDisk = await readOnDiskVersions(await toolDirsWithGlobal(location, state), installedNow);
326
+ for (const entry of entries) {
327
+ if (entry.status !== "updated")
328
+ continue;
329
+ const actual = onDisk.get(entry.name);
330
+ if (actual === entry.to)
331
+ continue;
332
+ const packageName = toolPackageName(entry.name);
333
+ entry.status = "failed";
334
+ entry.error = actual ? `${packageName} is still ${actual} after installing ${entry.to} for the freeze. Another command may have moved it at the same time; if not, remove the other copy of ${packageName} from the directory that shadows it.` : `${packageName} is not on disk after installing ${entry.to} for the freeze. Another command may have moved it at the same time.`;
335
+ }
336
+ }
337
+
338
+ export { TOOLS_UPDATE_PHASES2, isListedTool2, runToolsUpdate2, readToolVersionsOnDisk2 };
339
+
340
+ //# debugId=871C472D56A4F75564756E2164756E21