@uipath/context-grounding-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 +1 -1
- package/dist/{tool-g9wpxj4g.js → tool-1r424qwm.js} +13 -5
- package/dist/tool.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -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.
|
|
6337
|
+
version: "1.201.0-preview.122",
|
|
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=
|
|
6438
|
+
//# debugId=9709B4CF6D81181664756E2164756E21
|
package/dist/tool.js
CHANGED
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.
|
|
4
|
+
"version": "1.201.0-preview.122",
|
|
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": "
|
|
31
|
+
"gitHead": "6c56f56100be96231fccbaa59e99d64d94808d58"
|
|
32
32
|
}
|