@uipath/cli 1.203.0-preview.233 → 1.203.0-preview.237

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.
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  runNode
3
- } from "./index-vqejyze0.js";
4
- import"./index-vmn69waj.js";
5
- import"./index-e2y988my.js";
6
- import"./index-7pvwjzsq.js";
3
+ } from "./index-q3b8r738.js";
4
+ import"./index-982kyq65.js";
5
+ import"./index-wxfv80wf.js";
6
+ import"./index-nab7xkhc.js";
7
7
  import"./index-g8ck9tv6.js";
8
8
  import"./index-hrt7fpkk.js";
9
9
  import"./index-d3w0wn6k.js";
@@ -50,6 +50,7 @@ import {
50
50
  parseAuthFlow,
51
51
  parseJWT,
52
52
  readAuthFromEnv,
53
+ readTokenScopes,
53
54
  refreshAccessToken,
54
55
  refreshTokenFingerprint,
55
56
  registerRobotClientLoader,
@@ -64,7 +65,7 @@ import {
64
65
  selectTenantWithDeps,
65
66
  setActiveAuthProfile,
66
67
  setAuthFileConfig
67
- } from "./index-vmn69waj.js";
68
+ } from "./index-982kyq65.js";
68
69
  import {
69
70
  isBrowser,
70
71
  isNode
@@ -136,6 +137,7 @@ export {
136
137
  parseAuthFlow,
137
138
  parseJWT,
138
139
  readAuthFromEnv,
140
+ readTokenScopes,
139
141
  refreshAccessToken,
140
142
  refreshTokenFingerprint,
141
143
  registerRobotClientLoader,
@@ -152,4 +154,4 @@ export {
152
154
  setAuthFileConfig
153
155
  };
154
156
 
155
- //# debugId=D4B556A791F0412A64756E2164756E21
157
+ //# debugId=DC7911E6798428D864756E2164756E21
@@ -757,6 +757,12 @@ var resolveSessionIdentity = (accessToken, authFlow) => {
757
757
  identity.clientId = clientId;
758
758
  return identity;
759
759
  };
760
+ var pickScopes = (claims) => {
761
+ const raw = claims?.scope;
762
+ const scopes = Array.isArray(raw) ? raw.filter((entry) => asString(entry) !== undefined) : typeof raw === "string" ? raw.split(/\s+/).filter(Boolean) : [];
763
+ return scopes.length > 0 ? scopes : undefined;
764
+ };
765
+ var readTokenScopes = (accessToken) => accessToken ? pickScopes(decodeClaims(accessToken)) : undefined;
760
766
 
761
767
  // ../auth/src/envAuth.ts
762
768
  var ENV_AUTH_ENABLE_VAR = "UIPATH_CLI_ENABLE_ENV_AUTH";
@@ -2437,6 +2443,6 @@ var authenticate = async ({
2437
2443
  });
2438
2444
  };
2439
2445
 
2440
- export { setAuthFileConfig, InvalidBaseUrlError, DEFAULT_AUTH_PROFILE, AuthProfileValidationError, normalizeAuthProfileName, setActiveAuthProfile, clearActiveAuthProfile, getActiveAuthProfile, runWithAuthProfile, resolveAuthProfileFilePath, getActiveAuthProfileFilePath, getAuthProfilesRootPath, resolveAuthProfileDirPath, listAuthProfileNamesAsync, authProfileExistsAsync, deleteAuthProfileAsync, parseJWT, parseAuthFlow, resolveSessionIdentity, ENV_AUTH_ENABLE_VAR, ENFORCE_ROBOT_AUTH_VAR, ENV_AUTH_VARS, EnvAuthConfigError, isEnvAuthEnabled, isRobotAuthEnforced, readAuthFromEnv, refreshTokenFingerprint, loadRefreshBreaker, saveRefreshBreaker, clearRefreshBreaker, registerRobotClientLoader, TokenRefreshOAuthError, isTokenRefreshOAuthFailure, refreshAccessToken, AUTH_FLOW_ENV_VAR, DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, loadEnvFileAsync, saveEnvFileAsync, CredentialSource, getLoginStatusAsync, getLoginStatusWithDeps, getAuthContext, getAuthEnv, describeAuthProfilesAsync, ClientCredentialsAuthenticationError, clientCredentialsLogin, JWT_BEARER_ASSERTION_TYPE, FederatedCredentialsAuthenticationError, federatedCredentialsLogin, fetchTenantsAndOrganizations, TENANT_SELECTION_REQUIRED_CODE, INVALID_TENANT_CODE, TenantSelectionError, TenantSelectionRequiredError, InvalidTenantError, isTenantSelectionError, selectTenantWithDeps, interactiveLoginWithDeps, interactiveLogin, logoutWithDeps, logout, authenticate };
2446
+ export { setAuthFileConfig, InvalidBaseUrlError, DEFAULT_AUTH_PROFILE, AuthProfileValidationError, normalizeAuthProfileName, setActiveAuthProfile, clearActiveAuthProfile, getActiveAuthProfile, runWithAuthProfile, resolveAuthProfileFilePath, getActiveAuthProfileFilePath, getAuthProfilesRootPath, resolveAuthProfileDirPath, listAuthProfileNamesAsync, authProfileExistsAsync, deleteAuthProfileAsync, parseJWT, parseAuthFlow, resolveSessionIdentity, readTokenScopes, ENV_AUTH_ENABLE_VAR, ENFORCE_ROBOT_AUTH_VAR, ENV_AUTH_VARS, EnvAuthConfigError, isEnvAuthEnabled, isRobotAuthEnforced, readAuthFromEnv, refreshTokenFingerprint, loadRefreshBreaker, saveRefreshBreaker, clearRefreshBreaker, registerRobotClientLoader, TokenRefreshOAuthError, isTokenRefreshOAuthFailure, refreshAccessToken, AUTH_FLOW_ENV_VAR, DEFAULT_AUTH_FILENAME, DEFAULT_ENV_FILENAME, resolveEnvFileLocationAsync, resolveEnvFilePathAsync, loadEnvFileAsync, saveEnvFileAsync, CredentialSource, getLoginStatusAsync, getLoginStatusWithDeps, getAuthContext, getAuthEnv, describeAuthProfilesAsync, ClientCredentialsAuthenticationError, clientCredentialsLogin, JWT_BEARER_ASSERTION_TYPE, FederatedCredentialsAuthenticationError, federatedCredentialsLogin, fetchTenantsAndOrganizations, TENANT_SELECTION_REQUIRED_CODE, INVALID_TENANT_CODE, TenantSelectionError, TenantSelectionRequiredError, InvalidTenantError, isTenantSelectionError, selectTenantWithDeps, interactiveLoginWithDeps, interactiveLogin, logoutWithDeps, logout, authenticate };
2441
2447
 
2442
- //# debugId=05DE97FE1B9FF5A064756E2164756E21
2448
+ //# debugId=85BE0EBE155A7C6D64756E2164756E21
@@ -5441,7 +5441,165 @@ class FilterImplicitLimitError extends Error {
5441
5441
  this.instructions = "Pass --limit <n> to choose how many records the filter applies to. " + "To filter over all records, pass the command's maximum accepted --limit (see the option's description in --help).";
5442
5442
  }
5443
5443
  }
5444
- function applyFilter(data, filter) {
5444
+ function countRecords(data) {
5445
+ if (Array.isArray(data))
5446
+ return data.length;
5447
+ return data == null ? 0 : 1;
5448
+ }
5449
+ function availableFields(data) {
5450
+ const records = Array.isArray(data) ? data : [data];
5451
+ const keys = new Set;
5452
+ for (const record of records) {
5453
+ if (record && typeof record === "object" && !Array.isArray(record)) {
5454
+ for (const key of Object.keys(record))
5455
+ keys.add(key);
5456
+ }
5457
+ }
5458
+ return [...keys];
5459
+ }
5460
+ function decodeQuotedIdentifier(whole, inner) {
5461
+ const [error, decoded] = catchError(() => JSON.parse(whole));
5462
+ if (!error && typeof decoded === "string")
5463
+ return decoded;
5464
+ return inner.replace(/\\(.)/g, "$1");
5465
+ }
5466
+ function referencedFields(filter) {
5467
+ const top = new Set;
5468
+ const nested = new Set;
5469
+ const withoutValueLiterals = filter.replace(/'(?:\\.|[^'\\])*'/g, " ").replace(/`(?:\\.|[^`\\])*`/g, " ");
5470
+ const isPathTail = (text, index) => text[index - 1] === "." && /[A-Za-z0-9_"]/.test(text[index - 2] ?? "");
5471
+ const quoted = [];
5472
+ const withoutLiterals = withoutValueLiterals.replace(/"((?:\\.|[^"\\])*)"/g, (whole, name, index) => {
5473
+ const isAlias = /^\s*:/.test(withoutValueLiterals.slice(index + whole.length));
5474
+ if (!isAlias) {
5475
+ quoted.push({
5476
+ name: decodeQuotedIdentifier(whole, name),
5477
+ index,
5478
+ tail: isPathTail(withoutValueLiterals, index)
5479
+ });
5480
+ }
5481
+ return `"${" ".repeat(whole.length - 2)}"`;
5482
+ });
5483
+ const descent = /[A-Za-z0-9_"]\s*[.[]/.exec(withoutLiterals);
5484
+ const rootEnd = descent ? descent.index + 1 : Number.POSITIVE_INFINITY;
5485
+ const place = (name, index, tail) => {
5486
+ if (tail || index >= rootEnd)
5487
+ nested.add(name);
5488
+ else
5489
+ top.add(name);
5490
+ };
5491
+ for (const entry of quoted)
5492
+ place(entry.name, entry.index, entry.tail);
5493
+ const identifiers = withoutLiterals.matchAll(/([A-Za-z_][A-Za-z0-9_]*)(\s*[:(])?/g);
5494
+ const reserved = new Set(["true", "false", "null", "and", "or", "not"]);
5495
+ for (const match of identifiers) {
5496
+ const [, name, trailing] = match;
5497
+ if (trailing || reserved.has(name))
5498
+ continue;
5499
+ place(name, match.index, isPathTail(withoutLiterals, match.index));
5500
+ }
5501
+ return {
5502
+ top: [...top],
5503
+ nested: [...nested].filter((name) => !top.has(name)),
5504
+ hasPredicate: /\[\s*\?/.test(withoutValueLiterals)
5505
+ };
5506
+ }
5507
+ function appearsBelowTopLevel(data, name) {
5508
+ let budget = 2000;
5509
+ const visit = (value, depth) => {
5510
+ if (budget-- <= 0 || depth > 4)
5511
+ return false;
5512
+ if (value === null || typeof value !== "object")
5513
+ return false;
5514
+ if (Array.isArray(value))
5515
+ return value.some((entry) => visit(entry, depth));
5516
+ const record = value;
5517
+ if (depth > 0 && Object.hasOwn(record, name))
5518
+ return true;
5519
+ return Object.values(record).some((entry) => visit(entry, depth + 1));
5520
+ };
5521
+ return visit(data, 0);
5522
+ }
5523
+ function alwaysNullKeys(records) {
5524
+ const objects = records.filter((r) => r != null && typeof r === "object" && !Array.isArray(r));
5525
+ if (objects.length === 0 || objects.length !== records.length)
5526
+ return [];
5527
+ const keys = [...new Set(objects.flatMap((o) => Object.keys(o)))];
5528
+ if (keys.length === 0)
5529
+ return [];
5530
+ const nullKeys = keys.filter((key) => objects.every((record) => record[key] === null));
5531
+ return nullKeys.length === keys.length ? nullKeys : [];
5532
+ }
5533
+ function carriesOnlyNulls(value) {
5534
+ if (value === null)
5535
+ return true;
5536
+ if (Array.isArray(value)) {
5537
+ return value.length > 0 && value.every(carriesOnlyNulls);
5538
+ }
5539
+ if (typeof value === "object" && value !== undefined) {
5540
+ const values = Object.values(value);
5541
+ return values.length > 0 && values.every(carriesOnlyNulls);
5542
+ }
5543
+ return false;
5544
+ }
5545
+ function nameList(names, cap2 = 12) {
5546
+ const shown = names.slice(0, cap2).map((n) => `\`${n}\``);
5547
+ const rest = names.length - shown.length;
5548
+ return shown.join(", ") + (rest > 0 ? `, and ${rest} more` : "");
5549
+ }
5550
+ function buildFilterWarning(filter, data, outcome) {
5551
+ const present = availableFields(data);
5552
+ const refs = referencedFields(filter);
5553
+ const unknown = refs.top.filter((name) => !present.includes(name) && !appearsBelowTopLevel(data, name));
5554
+ const unchecked = refs.nested.filter((name) => !present.includes(name));
5555
+ const count = countRecords(data);
5556
+ const scope = `${count} record(s)`;
5557
+ const isNotAField = (names) => `${nameList(names)} ${names.length === 1 ? "is not a field" : "are not fields"} on the ${scope} it read`;
5558
+ const soundness = unchecked.length > 0 ? `${nameList(unchecked)} ${unchecked.length === 1 ? "reads" : "read"} below the top level, so ${unchecked.length === 1 ? "it was" : "they were"} not checked against the record keys` : refs.top.length > 0 ? "every field it names exists" : "";
5559
+ const withSoundness = (base) => soundness ? `${base}, and ${soundness}` : base;
5560
+ let detail;
5561
+ let lede;
5562
+ if (outcome.kind === "null-elements") {
5563
+ lede = "returned only null values";
5564
+ const projected = `all ${outcome.count} of the elements it projected are null`;
5565
+ if (unknown.length > 0) {
5566
+ detail = `${projected}, because ${isNotAField(unknown)}`;
5567
+ } else if (unchecked.length > 0) {
5568
+ detail = withSoundness(projected);
5569
+ } else {
5570
+ detail = `${projected}, and every field it names exists — a multi-select list ` + `(\`[A, B]\`) reads each entry against \`Data\` itself, so on a list ` + `result use \`[].[A, B]\` or \`[].{a: A, b: B}\` to read the records`;
5571
+ }
5572
+ } else if (outcome.kind === "null-rows") {
5573
+ lede = "returned only null values";
5574
+ const projected = `every value it projected is null on all ${outcome.count} row(s)`;
5575
+ detail = unknown.length > 0 ? `${projected}, because ${isNotAField(unknown)}` : withSoundness(projected);
5576
+ } else if (outcome.kind === "null-values") {
5577
+ lede = "returned only null values";
5578
+ const projected = `every key it projected (${nameList(outcome.keys)}) is null`;
5579
+ const sameSet = unknown.length === outcome.keys.length && outcome.keys.every((k) => unknown.includes(k));
5580
+ if (sameSet) {
5581
+ detail = `${isNotAField(outcome.keys)}, so every key it projected is null`;
5582
+ } else if (unknown.length > 0) {
5583
+ detail = `${projected}, because ${isNotAField(unknown)}`;
5584
+ } else {
5585
+ detail = withSoundness(`${projected} on all ${scope}`);
5586
+ }
5587
+ } else {
5588
+ lede = "returned nothing";
5589
+ if (unknown.length > 0) {
5590
+ detail = isNotAField(unknown);
5591
+ } else {
5592
+ const selection = refs.hasPredicate ? "no record matched" : "the expression resolved to no value";
5593
+ detail = withSoundness(`${selection} — it read ${scope}`);
5594
+ }
5595
+ }
5596
+ const fields = present.length > 0 ? ` Available fields: ${nameList(present)}.` : "";
5597
+ return `--output-filter ${JSON.stringify(filter)} ${lede}: ${detail}.${fields}`;
5598
+ }
5599
+ function appendWarning(existing, note) {
5600
+ return existing ? `${existing} ${note}` : note;
5601
+ }
5602
+ function applyFilter(data, filter, onWarning) {
5445
5603
  const codec = requireJmespath();
5446
5604
  let result;
5447
5605
  try {
@@ -5449,9 +5607,34 @@ function applyFilter(data, filter) {
5449
5607
  } catch (err) {
5450
5608
  throw new FilterEvaluationError(filter, err);
5451
5609
  }
5452
- if (result == null)
5610
+ const inputCount = countRecords(data);
5611
+ const warn = (outcome) => {
5612
+ if (inputCount === 0)
5613
+ return;
5614
+ const note = buildFilterWarning(filter, data, outcome);
5615
+ getOutputSink().writeErr(`[WARN] ${note}
5616
+ `);
5617
+ onWarning?.(note);
5618
+ };
5619
+ const warnIfAllNull = (records) => {
5620
+ const keys = alwaysNullKeys(records);
5621
+ if (keys.length > 0)
5622
+ warn({ kind: "null-values", keys });
5623
+ };
5624
+ if (result == null) {
5625
+ warn({ kind: "empty" });
5453
5626
  return [];
5627
+ }
5454
5628
  if (Array.isArray(result)) {
5629
+ if (result.length === 0) {
5630
+ warn({ kind: "empty" });
5631
+ } else if (result.every((entry) => entry === null)) {
5632
+ warn({ kind: "null-elements", count: result.length });
5633
+ } else if (result.every((entry) => Array.isArray(entry)) && carriesOnlyNulls(result)) {
5634
+ warn({ kind: "null-rows", count: result.length });
5635
+ } else {
5636
+ warnIfAllNull(result);
5637
+ }
5455
5638
  if (result.length > 0 && typeof result[0] !== "object") {
5456
5639
  const fieldMatch = filter.match(/\.(\w+)$/);
5457
5640
  const key = fieldMatch ? fieldMatch[1] : "Value";
@@ -5459,10 +5642,30 @@ function applyFilter(data, filter) {
5459
5642
  }
5460
5643
  return result;
5461
5644
  }
5462
- if (typeof result === "object")
5645
+ if (typeof result === "object") {
5646
+ warnIfAllNull([result]);
5463
5647
  return result;
5648
+ }
5464
5649
  return { Value: result };
5465
5650
  }
5651
+ function filterFailureData(envelope) {
5652
+ const filter = getOutputFilter();
5653
+ const data = envelope.Data;
5654
+ if (!filter || data == null)
5655
+ return;
5656
+ let note;
5657
+ const [filterError, filtered] = catchError(() => applyFilter(data, filter, (n) => {
5658
+ note = n;
5659
+ }));
5660
+ if (filterError) {
5661
+ envelope.Warning = appendWarning(envelope.Warning, `--output-filter was not applied, so Data is shown in full: ${filterError.message}`);
5662
+ return;
5663
+ }
5664
+ envelope.Data = filtered;
5665
+ if (note) {
5666
+ envelope.Warning = appendWarning(envelope.Warning, note);
5667
+ }
5668
+ }
5466
5669
  function defaultErrorCodeForResult(result) {
5467
5670
  switch (result) {
5468
5671
  case RESULTS.AuthenticationError:
@@ -5545,8 +5748,14 @@ var OutputFormatter;
5545
5748
  }
5546
5749
  const filter = getOutputFilter();
5547
5750
  if (filter) {
5548
- const filtered = applyFilter(data.Data, filter);
5751
+ let note;
5752
+ const filtered = applyFilter(data.Data, filter, (n) => {
5753
+ note = n;
5754
+ });
5549
5755
  data.Data = normalize ? normalizeDataKeys(filtered, verbatim, subtrees && { refs: subtrees.refs, mode: "skip" }) : filtered;
5756
+ if (note) {
5757
+ data.Warning = appendWarning(data.Warning, note);
5758
+ }
5550
5759
  }
5551
5760
  logOutput(normalizeOutputKeys(data), getOutputFormat(), options?.tableRowStyle);
5552
5761
  }
@@ -5574,6 +5783,7 @@ var OutputFormatter;
5574
5783
  delete envelope.TelemetryErrorClass;
5575
5784
  delete envelope.TelemetryTerminalOutcome;
5576
5785
  delete envelope.TelemetryTerminalSignal;
5786
+ filterFailureData(envelope);
5577
5787
  if (!suppressTelemetry) {
5578
5788
  telemetry.trackEvent(CommonTelemetryEvents.Error, {
5579
5789
  result: data.Result,
@@ -5622,13 +5832,20 @@ var OutputFormatter;
5622
5832
  OutputFormatter.log = log;
5623
5833
  function formatToString(data) {
5624
5834
  const filter = getOutputFilter();
5835
+ const envelope = data;
5625
5836
  if ("Data" in data && data.Data != null) {
5626
5837
  data.Data = normalizeDataKeys(data.Data);
5627
5838
  if (filter) {
5628
- data.Data = normalizeDataKeys(applyFilter(data.Data, filter));
5839
+ let note;
5840
+ data.Data = normalizeDataKeys(applyFilter(data.Data, filter, (n) => {
5841
+ note = n;
5842
+ }));
5843
+ if (note) {
5844
+ envelope.Warning = appendWarning(envelope.Warning, note);
5845
+ }
5629
5846
  }
5630
5847
  }
5631
- const output = normalizeOutputKeys(data);
5848
+ const output = normalizeOutputKeys(envelope);
5632
5849
  const lines = [];
5633
5850
  const sink = getOutputSink();
5634
5851
  printOutput(output, getOutputFormat(), (msg) => {
@@ -6757,4 +6974,4 @@ function setPackagerFactoryProvider(provider) {
6757
6974
  }
6758
6975
  export { redactProperties, catchError, carriedInstructions, formatErrorChain, describeConnectivityError, extractErrorMessageSync, setExitCode, getExitCode, runWithSink, getOutputSink, setGlobalSink, LogLevel, logger, configureLogger, loadOutputCodecsAsync, setOutputFormat, getOutputFormat, setOutputFormatExplicit, getOutputFormatExplicit, setHelpRequested, getHelpRequested, setOutputFilter, OUTPUT_FORMATS, isOutputFormat, takeRecordedCommandFailureTelemetry, buildCommandTerminalTelemetryProperties, detectAgent, detectAgentVersion, buildEnvironmentProperties, setExecutionContextAuthSignal, setGlobalTelemetryProperties, runWithTimings, setTimingCommand, recordExitCode, suppressTimingReport, makeTrackedFetch, setProxyAuthHttpsAgent, isTelemetryDisabled, TELEMETRY_DRAIN_ARGV, setTelemetrySidecarEntry, claimPendingSpoolFiles, releaseClaimedSpoolFile, discardClaimedSpoolFile, sweepTelemetrySpool, getTelemetryIngestionOrigin, telemetry, telemetryInit, telemetryFlushAndShutdown, telemetryShutdownWithoutFlush, carriedErrorCode, carriedRetry, RESULTS, EXIT_CODES, Pagination, validateOutputFilter, OutputFormatter, Command, setPreviewBuild, buildSkillEventTelemetryAttribution, commandTelemetryName, runWithInvocationRequest, emitInvocationRequest, processContext, setProcessContextPollSignal, TELEMETRY_ARG_VALUE_WITHHELD, extractCommandHelp, collectCommands, getCompleter, requireConfirmation, installConsoleGuard, UIPATH_HOME_DIR, CONFIG_FILENAME, DEFAULT_FETCH_TIMEOUT_MS, resolveEnvReference, setInteractivityMode, setInteractiveFlag, wasInteractiveFlagPassed, canPrompt, parseBoundedInt, splitScopeList, REGISTER_EXPORT, createPollAbortController, setSdkUserAgentHostToken, readStdinWithTimeout, setPackagerFactoryProvider };
6759
6976
 
6760
- //# debugId=F60436A5F15C93B464756E2164756E21
6977
+ //# debugId=84F1D0E0ED53595364756E2164756E21
@@ -24,7 +24,7 @@ import {
24
24
  readAuthFromEnv,
25
25
  resolveEnvFileLocationAsync,
26
26
  resolveEnvFilePathAsync
27
- } from "./index-vmn69waj.js";
27
+ } from "./index-982kyq65.js";
28
28
  import {
29
29
  AGENT_DEFS,
30
30
  AGENT_DISPLAY_NAMES,
@@ -108,7 +108,7 @@ import {
108
108
  versionLinePrefix,
109
109
  versionMigrationNotice,
110
110
  withConfigLock
111
- } from "./index-e2y988my.js";
111
+ } from "./index-wxfv80wf.js";
112
112
  import {
113
113
  CONFIG_FILENAME,
114
114
  Command,
@@ -178,7 +178,7 @@ import {
178
178
  telemetryInit,
179
179
  telemetryShutdownWithoutFlush,
180
180
  validateOutputFilter
181
- } from "./index-7pvwjzsq.js";
181
+ } from "./index-nab7xkhc.js";
182
182
  import {
183
183
  isBrowser
184
184
  } from "./index-0gctz400.js";
@@ -2936,26 +2936,26 @@ var promptSelect = async (options, message) => {
2936
2936
  // src/services/auth.ts
2937
2937
  class NodeAuth {
2938
2938
  async interactiveLogin(options) {
2939
- const { interactiveLogin } = await import("./index-hgvsratt.js");
2939
+ const { interactiveLogin } = await import("./index-80eyd89e.js");
2940
2940
  return await interactiveLogin({
2941
2941
  ...options,
2942
2942
  selectFromList: promptSelect
2943
2943
  });
2944
2944
  }
2945
2945
  async clientCredentialsLogin(options) {
2946
- const { clientCredentialsLogin } = await import("./index-hgvsratt.js");
2946
+ const { clientCredentialsLogin } = await import("./index-80eyd89e.js");
2947
2947
  return await clientCredentialsLogin(options);
2948
2948
  }
2949
2949
  async getLoginStatus(options) {
2950
- const { getLoginStatusAsync: getLoginStatusAsync2 } = await import("./index-hgvsratt.js");
2950
+ const { getLoginStatusAsync: getLoginStatusAsync2 } = await import("./index-80eyd89e.js");
2951
2951
  return getLoginStatusAsync2(options);
2952
2952
  }
2953
2953
  async fetchTenants(baseUrl, accessToken, organizationId) {
2954
- const { fetchTenantsAndOrganizations } = await import("./index-hgvsratt.js");
2954
+ const { fetchTenantsAndOrganizations } = await import("./index-80eyd89e.js");
2955
2955
  return fetchTenantsAndOrganizations(baseUrl, accessToken, organizationId);
2956
2956
  }
2957
2957
  async saveTenantSelection(envFilePath, tenantName, tenantId) {
2958
- const { saveEnvFileAsync } = await import("./index-hgvsratt.js");
2958
+ const { saveEnvFileAsync } = await import("./index-80eyd89e.js");
2959
2959
  await saveEnvFileAsync({
2960
2960
  envPath: envFilePath,
2961
2961
  data: {
@@ -2969,23 +2969,23 @@ class NodeAuth {
2969
2969
 
2970
2970
  class BrowserAuth {
2971
2971
  async interactiveLogin(options) {
2972
- const { interactiveLogin } = await import("./index-hgvsratt.js");
2972
+ const { interactiveLogin } = await import("./index-80eyd89e.js");
2973
2973
  return await interactiveLogin(options);
2974
2974
  }
2975
2975
  async clientCredentialsLogin(options) {
2976
- const { clientCredentialsLogin } = await import("./index-hgvsratt.js");
2976
+ const { clientCredentialsLogin } = await import("./index-80eyd89e.js");
2977
2977
  return await clientCredentialsLogin(options);
2978
2978
  }
2979
2979
  async getLoginStatus(options) {
2980
- const { getLoginStatusAsync: getLoginStatusAsync2 } = await import("./index-hgvsratt.js");
2980
+ const { getLoginStatusAsync: getLoginStatusAsync2 } = await import("./index-80eyd89e.js");
2981
2981
  return getLoginStatusAsync2(options);
2982
2982
  }
2983
2983
  async fetchTenants(baseUrl, accessToken, organizationId) {
2984
- const { fetchTenantsAndOrganizations } = await import("./index-hgvsratt.js");
2984
+ const { fetchTenantsAndOrganizations } = await import("./index-80eyd89e.js");
2985
2985
  return fetchTenantsAndOrganizations(baseUrl, accessToken, organizationId);
2986
2986
  }
2987
2987
  async saveTenantSelection(envFilePath, tenantName, tenantId) {
2988
- const { saveEnvFileAsync } = await import("./index-hgvsratt.js");
2988
+ const { saveEnvFileAsync } = await import("./index-80eyd89e.js");
2989
2989
  await saveEnvFileAsync({
2990
2990
  envPath: envFilePath,
2991
2991
  data: {
@@ -4390,7 +4390,7 @@ function registerLogoutCommand(program, context) {
4390
4390
  function registerMcpCommand(program) {
4391
4391
  const mcpCommand = program.command("mcp").description("Model Context Protocol (MCP) server");
4392
4392
  mcpCommand.command("serve").description("Start the MCP server (stdio transport)").trackedAction(processContext, async () => {
4393
- const { startMcpServer } = await import("./server-j04zmkep.js");
4393
+ const { startMcpServer } = await import("./server-ce8akyq6.js");
4394
4394
  await startMcpServer(program);
4395
4395
  });
4396
4396
  }
@@ -6780,7 +6780,7 @@ async function resolveUpdateLocation(state, context) {
6780
6780
  return location;
6781
6781
  }
6782
6782
  async function runUpdateEngine(state, location, context, target) {
6783
- const { runUpdate: runUpdate2 } = await import("./updateService-0r0d7g33.js");
6783
+ const { runUpdate: runUpdate2 } = await import("./updateService-pf24khwz.js");
6784
6784
  const spinner = await startSpinner(formatUpdateStartMessage(target));
6785
6785
  if (!spinner) {
6786
6786
  writeSyncStatus(context, formatUpdateStartMessage(target));
@@ -7400,7 +7400,7 @@ async function buildNodeProgram(context) {
7400
7400
  if (shouldPopulateTelemetryInstallContext(context.args)) {
7401
7401
  await populateTelemetryInstallContext();
7402
7402
  }
7403
- const { setActiveAuthProfile, setAuthFileConfig } = await import("./index-hgvsratt.js");
7403
+ const { setActiveAuthProfile, setAuthFileConfig } = await import("./index-80eyd89e.js");
7404
7404
  setActiveAuthProfile(profile);
7405
7405
  const [configErr, config] = await catchError(loadConfigAsync());
7406
7406
  if (configErr) {
@@ -11,7 +11,7 @@ import {
11
11
  logger,
12
12
  processContext,
13
13
  wasInteractiveFlagPassed
14
- } from "./index-7pvwjzsq.js";
14
+ } from "./index-nab7xkhc.js";
15
15
  import {
16
16
  exports_external
17
17
  } from "./index-hrt7fpkk.js";
@@ -551,7 +551,7 @@ var package_default = {
551
551
  name: "@uipath/cli",
552
552
  author: "UiPath",
553
553
  license: "SEE LICENSE IN LICENSE.txt",
554
- version: "1.203.0-preview.233",
554
+ version: "1.203.0-preview.237",
555
555
  description: "Cross platform CLI for UiPath",
556
556
  repository: {
557
557
  type: "git",
@@ -9721,4 +9721,4 @@ function getManualCommandForInstallError(error, fallback) {
9721
9721
 
9722
9722
  export { package_default, VALID_CHANNELS, HIDDEN_CHANNELS, PUBLIC_CHANNELS, withConfigLock, SECRET_FIELD_PATHS, migrateVersionConfig, versionMigrationNotice, resolveConfigFilePathAsync, loadConfigAsync, resolveUpdateChannel, resolveRuntimeChannel, isPreviewVersion, isValidVersionPin, majorOf, resolvePinnedVersion, isExactPin, versionLinePrefix, formatVersionPin, dist_default5 as dist_default, dist_default6 as dist_default1, dist_default7 as dist_default2, getGlobalNpmUipathDir, DISABLE_AUTOINSTALL_ENV, DISABLE_TOOL_LINE_CHECK_ENV, InstallRefusedError, isBundledDistribution, isAutoInstallDisabled, isToolLineCheckDisabled, TOOLS_WHITELIST, COMMAND_ALIASES, ALIASES_BY_COMMAND, WHITELIST_BY_COMMAND, WHITELIST_BY_SHORT_NAME, isValidSemver, compareSemver, resolveToolPackageName, parsePackageSpec, describeCandidateFailure, getEffectiveRegistry, isDevMode, truncateVersionsForDisplay, toolService, SkillSourceError, SkillsRegistryAuthError, resolveSkillSource, getContentStoreForRead, getAvailableSkills, readManifest, removeFromManifest, readExtraFiles, AGENT_DEFS, getSkillsDir, getSkillsDestinationHint, hasDistinctGlobalPath, skillOwnerOf, uninstallExtraFolders, uninstallSkill, rejectIfGlobalOnly, getSkillsSourceFailureDetails, buildSkillCatalog, removeSkillCatalog, searchSkillCatalog, ALL_AGENTS, AGENT_DISPLAY_NAMES, promptAgentSelection, SkillsError, resolveSkillsTargetVersion, resolveRootDir, resolveSkillsContext, runAgentInstalls, runSkillsUpdate, getInstalledTools, toolFailureRemediation, collapsePinnedLineErrors, todayLocal, readState, recordToolUpdateDate, mergeState, TOOLS_UPDATE_PHASES, runToolsUpdate, runUpdate };
9723
9723
 
9724
- //# debugId=D7AB14D86EAA918B64756E2164756E21
9724
+ //# debugId=F2F80F60CBF383B264756E2164756E21
package/dist/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env node
2
2
  import {
3
3
  runNode
4
- } from "./index-vqejyze0.js";
4
+ } from "./index-q3b8r738.js";
5
5
  import {
6
6
  registerRobotClientLoader
7
- } from "./index-vmn69waj.js";
8
- import"./index-e2y988my.js";
7
+ } from "./index-982kyq65.js";
8
+ import"./index-wxfv80wf.js";
9
9
  import {
10
10
  TELEMETRY_DRAIN_ARGV,
11
11
  configureLogger,
@@ -18,7 +18,7 @@ import {
18
18
  setProcessContextPollSignal,
19
19
  setProxyAuthHttpsAgent,
20
20
  setTelemetrySidecarEntry
21
- } from "./index-7pvwjzsq.js";
21
+ } from "./index-nab7xkhc.js";
22
22
  import"./index-g8ck9tv6.js";
23
23
  import"./index-hrt7fpkk.js";
24
24
  import"./index-d3w0wn6k.js";
@@ -192,7 +192,7 @@ var isMain = __require.main == __require.module ?? process.argv[1] === currentFi
192
192
  if (isMain) {
193
193
  setTelemetrySidecarEntry(currentFile);
194
194
  if (process.argv[2] === TELEMETRY_DRAIN_ARGV) {
195
- const { drainPendingTelemetry } = await import("./telemetry-drain-zkrm8xja.js");
195
+ const { drainPendingTelemetry } = await import("./telemetry-drain-6nwpzydf.js");
196
196
  await drainPendingTelemetry();
197
197
  process.exit(0);
198
198
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  runWithAuthProfile
3
- } from "./index-vmn69waj.js";
3
+ } from "./index-982kyq65.js";
4
4
  import {
5
5
  OUTPUT_FORMATS,
6
6
  catchError,
@@ -9,7 +9,7 @@ import {
9
9
  logger,
10
10
  runWithSink,
11
11
  setGlobalSink
12
- } from "./index-7pvwjzsq.js";
12
+ } from "./index-nab7xkhc.js";
13
13
  import"./index-g8ck9tv6.js";
14
14
  import {
15
15
  exports_external
@@ -84,7 +84,7 @@ async function executeCommand(command) {
84
84
  const previousSink = getOutputSink();
85
85
  setGlobalSink(sink);
86
86
  const [error] = await catchError(async () => {
87
- const { run } = await import("./cli-vcdxxdtf.js");
87
+ const { run } = await import("./cli-gcnsgwvz.js");
88
88
  await runWithAuthProfile(undefined, () => runWithSink(sink, () => run(context)));
89
89
  });
90
90
  if (error) {
@@ -7,7 +7,7 @@ import {
7
7
  logger,
8
8
  releaseClaimedSpoolFile,
9
9
  sweepTelemetrySpool
10
- } from "./index-7pvwjzsq.js";
10
+ } from "./index-nab7xkhc.js";
11
11
  import"./index-xdxr3ync.js";
12
12
  import"./index-1yh8g550.js";
13
13
 
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  runUpdate
3
- } from "./index-e2y988my.js";
4
- import"./index-7pvwjzsq.js";
3
+ } from "./index-wxfv80wf.js";
4
+ import"./index-nab7xkhc.js";
5
5
  import"./index-g8ck9tv6.js";
6
6
  import"./index-hrt7fpkk.js";
7
7
  import"./index-d3w0wn6k.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@uipath/cli",
3
3
  "author": "UiPath",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
- "version": "1.203.0-preview.233",
5
+ "version": "1.203.0-preview.237",
6
6
  "description": "Cross platform CLI for UiPath",
7
7
  "repository": {
8
8
  "type": "git",
@@ -36,5 +36,5 @@
36
36
  "kerberos": "7.0.0",
37
37
  "node-expose-sspi": "0.1.60"
38
38
  },
39
- "gitHead": "641614a6f9817662baaf51dabdebbfa2a9334b1b"
39
+ "gitHead": "4ad3e17a66f2c7fb7fe1f0e3e04a5b6175a0a9a3"
40
40
  }