@uipath/codedagent-tool 1.201.0-preview.115 → 1.201.0-preview.122

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
@@ -2,10 +2,10 @@
2
2
  import {
3
3
  metadata,
4
4
  registerCommands
5
- } from "./tool-kst857r2.js";
5
+ } from "./tool-hwsbhp96.js";
6
6
  import {
7
7
  Command
8
- } from "./tool-thn7hw7k.js";
8
+ } from "./tool-26zbdsea.js";
9
9
  import"./tool-9qecd4wb.js";
10
10
  import"./tool-7eva0peq.js";
11
11
  import"./tool-5arsyj36.js";
package/dist/init.js CHANGED
@@ -2,7 +2,7 @@ import {
2
2
  COMMAND_RULES,
3
3
  codedAgentCommandPreflight,
4
4
  runUipathPythonCommand
5
- } from "./tool-thn7hw7k.js";
5
+ } from "./tool-26zbdsea.js";
6
6
  import"./tool-9qecd4wb.js";
7
7
  import"./tool-7eva0peq.js";
8
8
  import"./tool-5arsyj36.js";
@@ -3299,6 +3299,7 @@ var CLI_ERROR_CODES = [
3299
3299
  "invalid_argument",
3300
3300
  "authentication_required",
3301
3301
  "permission_denied",
3302
+ "local_permission_denied",
3302
3303
  "not_found",
3303
3304
  "rate_limited",
3304
3305
  "network_error",
@@ -3734,12 +3735,16 @@ function defaultErrorCodeForHttpStatus(status) {
3734
3735
  return "server_error";
3735
3736
  return;
3736
3737
  }
3738
+ var LOCAL_PERMISSION_TEXT_PATTERN = /(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;
3737
3739
  function defaultErrorCodeForFailure(data) {
3738
3740
  if (data.Result === RESULTS.Failure) {
3739
3741
  const status = data.Context?.httpStatus ?? parseHttpStatusFromMessage(data.Message);
3740
3742
  const errorCode = defaultErrorCodeForHttpStatus(status);
3741
3743
  if (errorCode)
3742
3744
  return errorCode;
3745
+ if (status === undefined && (LOCAL_PERMISSION_TEXT_PATTERN.test(data.Message) || LOCAL_PERMISSION_TEXT_PATTERN.test(data.Instructions))) {
3746
+ return "local_permission_denied";
3747
+ }
3743
3748
  }
3744
3749
  return defaultErrorCodeForResult(data.Result);
3745
3750
  }
@@ -4215,6 +4220,7 @@ var TLS_ERROR_CODES2 = new Set([
4215
4220
  ]);
4216
4221
  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.";
4217
4222
  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.";
4223
+ var LOCAL_PERMISSION_ERROR_CODES = new Set(["EACCES", "EPERM", "EROFS"]);
4218
4224
  function extractErrorMessageSync(error) {
4219
4225
  if (error instanceof Error) {
4220
4226
  return error.message;
@@ -4319,7 +4325,6 @@ var ScreenLogger;
4319
4325
  var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
4320
4326
  // ../common/src/tool-provider.ts
4321
4327
  var factorySlot = singleton("PackagerFactoryProvider");
4322
- var moduleSlot = singleton("ToolModuleProvider");
4323
4328
  // ../uipath-python-bridge/src/execute.ts
4324
4329
  import { spawn } from "node:child_process";
4325
4330
 
@@ -5593,6 +5598,9 @@ var getAuthEnv = async (options = {}) => {
5593
5598
  }
5594
5599
  return { authEnv, loginStatus: status };
5595
5600
  };
5601
+ // ../auth/src/tenantSelection.ts
5602
+ var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
5603
+
5596
5604
  // ../auth/src/selectTenant.ts
5597
5605
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
5598
5606
  var INVALID_TENANT_CODE = "INVALID_TENANT";
@@ -6426,4 +6434,4 @@ var codedAgentCommandPreflight = ({
6426
6434
 
6427
6435
  export { catchError2 as catchError, extractErrorMessageSync, Command, RESULTS, OutputFormatter, processContext, trackShipSucceeded, runUipathPythonCommand, createExecuteCommand, createSetupCommand, WHITELISTED_COMMANDS, COMMAND_RULES, codedAgentCommandPreflight };
6428
6436
 
6429
- //# debugId=3FBB50F85812681964756E2164756E21
6437
+ //# debugId=CB45BA43292E1F1C64756E2164756E21
@@ -10,7 +10,7 @@ import {
10
10
  extractErrorMessageSync,
11
11
  processContext,
12
12
  trackShipSucceeded
13
- } from "./tool-thn7hw7k.js";
13
+ } from "./tool-26zbdsea.js";
14
14
  import {
15
15
  getFileSystem
16
16
  } from "./tool-7eva0peq.js";
@@ -21,7 +21,7 @@ import {
21
21
  var package_default = {
22
22
  name: "@uipath/codedagent-tool",
23
23
  license: "MIT",
24
- version: "1.201.0-preview.115",
24
+ version: "1.201.0-preview.122",
25
25
  description: "Build, run, deploy, and manage AI Agents.",
26
26
  keywords: [
27
27
  "cli-tool",
@@ -2771,6 +2771,7 @@ function errorMessage(error) {
2771
2771
  }
2772
2772
  init_constants();
2773
2773
  init_src();
2774
+ var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
2774
2775
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
2775
2776
  var INVALID_TENANT_CODE = "INVALID_TENANT";
2776
2777
  var TENANT_SELECTION_CODES = new Set([
@@ -3181,4 +3182,4 @@ var registerCommands = async (program) => {
3181
3182
 
3182
3183
  export { metadata, registerCommands };
3183
3184
 
3184
- //# debugId=BD6D1CCB31FE2BEA64756E2164756E21
3185
+ //# debugId=6A551C740A1DC00E64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-kst857r2.js";
5
- import"./tool-thn7hw7k.js";
4
+ } from "./tool-hwsbhp96.js";
5
+ import"./tool-26zbdsea.js";
6
6
  import"./tool-9qecd4wb.js";
7
7
  import"./tool-7eva0peq.js";
8
8
  import"./tool-5arsyj36.js";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/codedagent-tool",
3
3
  "license": "MIT",
4
- "version": "1.201.0-preview.115",
4
+ "version": "1.201.0-preview.122",
5
5
  "description": "Build, run, deploy, and manage AI Agents.",
6
6
  "keywords": [
7
7
  "cli-tool",
@@ -32,5 +32,5 @@
32
32
  "publishConfig": {
33
33
  "registry": "https://registry.npmjs.org/"
34
34
  },
35
- "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
35
+ "gitHead": "6c56f56100be96231fccbaa59e99d64d94808d58"
36
36
  }