@uipath/pm-tool 1.201.0-preview.115 → 1.201.0-preview.121

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.
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import {
3
3
  Command,
4
4
  metadata,
5
5
  registerCommands
6
- } from "./tool-4wg71f2g.js";
6
+ } from "./tool-fkde72kw.js";
7
7
  import"./tool-9qecd4wb.js";
8
8
  import"./tool-7eva0peq.js";
9
9
  import"./tool-5arsyj36.js";
@@ -2112,7 +2112,7 @@ var require_commander = __commonJS((exports) => {
2112
2112
  var package_default = {
2113
2113
  name: "@uipath/pm-tool",
2114
2114
  license: "MIT",
2115
- version: "1.201.0-preview.115",
2115
+ version: "1.201.0-preview.121",
2116
2116
  description: "Process Mining — process apps, transformations, and data ingestion.",
2117
2117
  private: false,
2118
2118
  repository: {
@@ -2206,6 +2206,7 @@ var TLS_ERROR_CODES = new Set([
2206
2206
  ]);
2207
2207
  var TLS_INSTRUCTIONS = "The server's TLS certificate could not be verified. Most often a " + "corporate proxy/firewall re-signs HTTPS with a root CA that Node does " + "not trust — set NODE_EXTRA_CA_CERTS to that CA's PEM file (and HTTPS_PROXY " + "if you connect through a proxy). If the certificate is instead expired or " + "its hostname does not match, fix the endpoint URL or the system clock. " + "Then retry.";
2208
2208
  var NETWORK_INSTRUCTIONS = "Could not reach the UiPath service. Check your network connection and " + "VPN, confirm any HTTP_PROXY/HTTPS_PROXY/NO_PROXY settings are correct, " + "then retry.";
2209
+ var LOCAL_PERMISSION_ERROR_CODES = new Set(["EACCES", "EPERM", "EROFS"]);
2209
2210
  // ../../node_modules/commander/esm.mjs
2210
2211
  var import__ = __toESM(require_commander(), 1);
2211
2212
  var {
@@ -3383,6 +3384,7 @@ var CLI_ERROR_CODES = [
3383
3384
  "invalid_argument",
3384
3385
  "authentication_required",
3385
3386
  "permission_denied",
3387
+ "local_permission_denied",
3386
3388
  "not_found",
3387
3389
  "rate_limited",
3388
3390
  "network_error",
@@ -3818,12 +3820,16 @@ function defaultErrorCodeForHttpStatus(status) {
3818
3820
  return "server_error";
3819
3821
  return;
3820
3822
  }
3823
+ var LOCAL_PERMISSION_TEXT_PATTERN = /(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;
3821
3824
  function defaultErrorCodeForFailure(data) {
3822
3825
  if (data.Result === RESULTS.Failure) {
3823
3826
  const status = data.Context?.httpStatus ?? parseHttpStatusFromMessage(data.Message);
3824
3827
  const errorCode = defaultErrorCodeForHttpStatus(status);
3825
3828
  if (errorCode)
3826
3829
  return errorCode;
3830
+ if (status === undefined && (LOCAL_PERMISSION_TEXT_PATTERN.test(data.Message) || LOCAL_PERMISSION_TEXT_PATTERN.test(data.Instructions))) {
3831
+ return "local_permission_denied";
3832
+ }
3827
3833
  }
3828
3834
  return defaultErrorCodeForResult(data.Result);
3829
3835
  }
@@ -4325,11 +4331,10 @@ var ScreenLogger;
4325
4331
  })(ScreenLogger ||= {});
4326
4332
  // ../common/src/sdk-user-agent.ts
4327
4333
  var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
4328
- // ../common/src/tool-provider.ts
4329
- var factorySlot = singleton("PackagerFactoryProvider");
4330
- var moduleSlot = singleton("ToolModuleProvider");
4331
4334
  // ../common/src/telemetry/ship-succeeded.ts
4332
4335
  var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
4336
+ // ../common/src/tool-provider.ts
4337
+ var factorySlot = singleton("PackagerFactoryProvider");
4333
4338
  // ../auth/src/config.ts
4334
4339
  var DEFAULT_CLIENT_ID = "36dea5b8-e8bb-423d-8e7b-c808df8f1c00";
4335
4340
  var AUTH_FILE_CONFIG_KEY = Symbol.for("@uipath/auth/AuthFileConfig");
@@ -5602,6 +5607,9 @@ var getAuthContext = async (options = {}) => {
5602
5607
  tenantName
5603
5608
  };
5604
5609
  };
5610
+ // ../auth/src/tenantSelection.ts
5611
+ var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
5612
+
5605
5613
  // ../auth/src/selectTenant.ts
5606
5614
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
5607
5615
  var INVALID_TENANT_CODE = "INVALID_TENANT";
@@ -7745,4 +7753,4 @@ var registerCommands = async (program2) => {
7745
7753
 
7746
7754
  export { Command, metadata, registerCommands };
7747
7755
 
7748
- //# debugId=D9E349A5B3591AC464756E2164756E21
7756
+ //# debugId=59D8F66F1722F75464756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-4wg71f2g.js";
4
+ } from "./tool-fkde72kw.js";
5
5
  import"./tool-9qecd4wb.js";
6
6
  import"./tool-7eva0peq.js";
7
7
  import"./tool-5arsyj36.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/pm-tool",
3
3
  "license": "MIT",
4
- "version": "1.201.0-preview.115",
4
+ "version": "1.201.0-preview.121",
5
5
  "description": "Process Mining — process apps, transformations, and data ingestion.",
6
6
  "private": false,
7
7
  "repository": {
@@ -26,5 +26,5 @@
26
26
  "files": [
27
27
  "dist"
28
28
  ],
29
- "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
29
+ "gitHead": "c70ccfc0b12e637441d67df1d212b71d7784b5f8"
30
30
  }