@uipath/coder-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
@@ -4,7 +4,7 @@ import {
4
4
  metadata,
5
5
  registerCommands,
6
6
  setPreviewBuild
7
- } from "./tool-p3vs4kc8.js";
7
+ } from "./tool-hpq9ykp1.js";
8
8
  import"./tool-9qecd4wb.js";
9
9
  import"./tool-7eva0peq.js";
10
10
  import"./tool-5arsyj36.js";
@@ -2161,6 +2161,7 @@ var TLS_ERROR_CODES = new Set([
2161
2161
  ]);
2162
2162
  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.";
2163
2163
  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.";
2164
+ var LOCAL_PERMISSION_ERROR_CODES = new Set(["EACCES", "EPERM", "EROFS"]);
2164
2165
  // ../../node_modules/commander/esm.mjs
2165
2166
  var import__ = __toESM(require_commander(), 1);
2166
2167
  var {
@@ -3346,6 +3347,7 @@ var CLI_ERROR_CODES = [
3346
3347
  "invalid_argument",
3347
3348
  "authentication_required",
3348
3349
  "permission_denied",
3350
+ "local_permission_denied",
3349
3351
  "not_found",
3350
3352
  "rate_limited",
3351
3353
  "network_error",
@@ -3781,12 +3783,16 @@ function defaultErrorCodeForHttpStatus(status) {
3781
3783
  return "server_error";
3782
3784
  return;
3783
3785
  }
3786
+ var LOCAL_PERMISSION_TEXT_PATTERN = /(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;
3784
3787
  function defaultErrorCodeForFailure(data) {
3785
3788
  if (data.Result === RESULTS.Failure) {
3786
3789
  const status = data.Context?.httpStatus ?? parseHttpStatusFromMessage(data.Message);
3787
3790
  const errorCode = defaultErrorCodeForHttpStatus(status);
3788
3791
  if (errorCode)
3789
3792
  return errorCode;
3793
+ if (status === undefined && (LOCAL_PERMISSION_TEXT_PATTERN.test(data.Message) || LOCAL_PERMISSION_TEXT_PATTERN.test(data.Instructions))) {
3794
+ return "local_permission_denied";
3795
+ }
3790
3796
  }
3791
3797
  return defaultErrorCodeForResult(data.Result);
3792
3798
  }
@@ -4275,16 +4281,15 @@ var ScreenLogger;
4275
4281
  })(ScreenLogger ||= {});
4276
4282
  // ../common/src/sdk-user-agent.ts
4277
4283
  var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
4278
- // ../common/src/tool-provider.ts
4279
- var factorySlot = singleton("PackagerFactoryProvider");
4280
- var moduleSlot = singleton("ToolModuleProvider");
4281
4284
  // ../common/src/telemetry/ship-succeeded.ts
4282
4285
  var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
4286
+ // ../common/src/tool-provider.ts
4287
+ var factorySlot = singleton("PackagerFactoryProvider");
4283
4288
  // package.json
4284
4289
  var package_default = {
4285
4290
  name: "@uipath/coder-tool",
4286
4291
  license: "MIT",
4287
- version: "1.201.0-preview.115",
4292
+ version: "1.201.0-preview.121",
4288
4293
  description: "Interactive coding agent (Pi) with UiPath LLM Gateway and BYO provider support.",
4289
4294
  type: "module",
4290
4295
  main: "./dist/tool.js",
@@ -5558,6 +5563,9 @@ function normalizeTokenRefreshUnavailableFailure() {
5558
5563
  function errorMessage(error) {
5559
5564
  return error instanceof Error ? error.message : String(error);
5560
5565
  }
5566
+ // ../auth/src/tenantSelection.ts
5567
+ var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
5568
+
5561
5569
  // ../auth/src/selectTenant.ts
5562
5570
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
5563
5571
  var INVALID_TENANT_CODE = "INVALID_TENANT";
@@ -5764,4 +5772,4 @@ var registerCommands = async (program2) => {
5764
5772
 
5765
5773
  export { Command, setPreviewBuild, metadata, registerCommands };
5766
5774
 
5767
- //# debugId=2FEF23B2805F257864756E2164756E21
5775
+ //# debugId=1C02AB862AACD93A64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-p3vs4kc8.js";
4
+ } from "./tool-hpq9ykp1.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/coder-tool",
3
3
  "license": "MIT",
4
- "version": "1.201.0-preview.115",
4
+ "version": "1.201.0-preview.121",
5
5
  "description": "Interactive coding agent (Pi) with UiPath LLM Gateway and BYO provider support.",
6
6
  "type": "module",
7
7
  "main": "./dist/tool.js",
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "registry": "https://registry.npmjs.org/"
19
19
  },
20
- "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
20
+ "gitHead": "c70ccfc0b12e637441d67df1d212b71d7784b5f8"
21
21
  }