@uipath/context-grounding-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-g9wpxj4g.js";
6
+ } from "./tool-6fxtrpc9.js";
7
7
  import"./tool-9qecd4wb.js";
8
8
  import"./tool-7eva0peq.js";
9
9
  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 {
@@ -3341,6 +3342,7 @@ var CLI_ERROR_CODES = [
3341
3342
  "invalid_argument",
3342
3343
  "authentication_required",
3343
3344
  "permission_denied",
3345
+ "local_permission_denied",
3344
3346
  "not_found",
3345
3347
  "rate_limited",
3346
3348
  "network_error",
@@ -3776,12 +3778,16 @@ function defaultErrorCodeForHttpStatus(status) {
3776
3778
  return "server_error";
3777
3779
  return;
3778
3780
  }
3781
+ var LOCAL_PERMISSION_TEXT_PATTERN = /(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;
3779
3782
  function defaultErrorCodeForFailure(data) {
3780
3783
  if (data.Result === RESULTS.Failure) {
3781
3784
  const status = data.Context?.httpStatus ?? parseHttpStatusFromMessage(data.Message);
3782
3785
  const errorCode = defaultErrorCodeForHttpStatus(status);
3783
3786
  if (errorCode)
3784
3787
  return errorCode;
3788
+ if (status === undefined && (LOCAL_PERMISSION_TEXT_PATTERN.test(data.Message) || LOCAL_PERMISSION_TEXT_PATTERN.test(data.Instructions))) {
3789
+ return "local_permission_denied";
3790
+ }
3785
3791
  }
3786
3792
  return defaultErrorCodeForResult(data.Result);
3787
3793
  }
@@ -4271,11 +4277,10 @@ var ScreenLogger;
4271
4277
  })(ScreenLogger ||= {});
4272
4278
  // ../common/src/sdk-user-agent.ts
4273
4279
  var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
4274
- // ../common/src/tool-provider.ts
4275
- var factorySlot = singleton("PackagerFactoryProvider");
4276
- var moduleSlot = singleton("ToolModuleProvider");
4277
4280
  // ../common/src/telemetry/ship-succeeded.ts
4278
4281
  var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
4282
+ // ../common/src/tool-provider.ts
4283
+ var factorySlot = singleton("PackagerFactoryProvider");
4279
4284
  // ../uipath-python-bridge/src/cache.ts
4280
4285
  async function readCache(cacheFile) {
4281
4286
  const fs = getFileSystem();
@@ -5640,6 +5645,9 @@ var getAuthEnv = async (options = {}) => {
5640
5645
  }
5641
5646
  return { authEnv, loginStatus: status };
5642
5647
  };
5648
+ // ../auth/src/tenantSelection.ts
5649
+ var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
5650
+
5643
5651
  // ../auth/src/selectTenant.ts
5644
5652
  var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
5645
5653
  var INVALID_TENANT_CODE = "INVALID_TENANT";
@@ -6326,7 +6334,7 @@ function createCommandForwarder(executeCommand) {
6326
6334
  var package_default = {
6327
6335
  name: "@uipath/context-grounding-tool",
6328
6336
  license: "MIT",
6329
- version: "1.201.0-preview.115",
6337
+ version: "1.201.0-preview.121",
6330
6338
  description: "Tool for context grounding operations via the UiPath Python SDK",
6331
6339
  keywords: [
6332
6340
  "uipcli-tool",
@@ -6427,4 +6435,4 @@ var registerCommands = async (program2) => {
6427
6435
 
6428
6436
  export { Command, metadata, registerCommands };
6429
6437
 
6430
- //# debugId=73063243B40AD8CC64756E2164756E21
6438
+ //# debugId=5E67DC3C6A0786ED64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-g9wpxj4g.js";
4
+ } from "./tool-6fxtrpc9.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/context-grounding-tool",
3
3
  "license": "MIT",
4
- "version": "1.201.0-preview.115",
4
+ "version": "1.201.0-preview.121",
5
5
  "description": "Tool for context grounding operations via the UiPath Python SDK",
6
6
  "keywords": [
7
7
  "uipcli-tool",
@@ -28,5 +28,5 @@
28
28
  "publishConfig": {
29
29
  "registry": "https://registry.npmjs.org/"
30
30
  },
31
- "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
31
+ "gitHead": "c70ccfc0b12e637441d67df1d212b71d7784b5f8"
32
32
  }