@uipath/docsai-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 +1 -1
- package/dist/{tool-f1aza4b9.js → tool-wt15ysxa.js} +13 -5
- package/dist/tool.js +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -8698,7 +8698,7 @@ var require_dist = __commonJS((exports, module) => {
|
|
|
8698
8698
|
var package_default = {
|
|
8699
8699
|
name: "@uipath/docsai-tool",
|
|
8700
8700
|
license: "MIT",
|
|
8701
|
-
version: "1.201.0-preview.
|
|
8701
|
+
version: "1.201.0-preview.121",
|
|
8702
8702
|
description: "Search UiPath documentation with AI-powered answers.",
|
|
8703
8703
|
private: false,
|
|
8704
8704
|
repository: {
|
|
@@ -8794,6 +8794,7 @@ var TLS_ERROR_CODES = new Set([
|
|
|
8794
8794
|
]);
|
|
8795
8795
|
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.";
|
|
8796
8796
|
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.";
|
|
8797
|
+
var LOCAL_PERMISSION_ERROR_CODES = new Set(["EACCES", "EPERM", "EROFS"]);
|
|
8797
8798
|
function extractErrorMessageSync(error) {
|
|
8798
8799
|
if (error instanceof Error) {
|
|
8799
8800
|
return error.message;
|
|
@@ -9985,6 +9986,7 @@ var CLI_ERROR_CODES = [
|
|
|
9985
9986
|
"invalid_argument",
|
|
9986
9987
|
"authentication_required",
|
|
9987
9988
|
"permission_denied",
|
|
9989
|
+
"local_permission_denied",
|
|
9988
9990
|
"not_found",
|
|
9989
9991
|
"rate_limited",
|
|
9990
9992
|
"network_error",
|
|
@@ -10420,12 +10422,16 @@ function defaultErrorCodeForHttpStatus(status) {
|
|
|
10420
10422
|
return "server_error";
|
|
10421
10423
|
return;
|
|
10422
10424
|
}
|
|
10425
|
+
var LOCAL_PERMISSION_TEXT_PATTERN = /(?:\b|\()(?:EACCES|EPERM|EROFS)(?::\s|\))/;
|
|
10423
10426
|
function defaultErrorCodeForFailure(data) {
|
|
10424
10427
|
if (data.Result === RESULTS.Failure) {
|
|
10425
10428
|
const status = data.Context?.httpStatus ?? parseHttpStatusFromMessage(data.Message);
|
|
10426
10429
|
const errorCode = defaultErrorCodeForHttpStatus(status);
|
|
10427
10430
|
if (errorCode)
|
|
10428
10431
|
return errorCode;
|
|
10432
|
+
if (status === undefined && (LOCAL_PERMISSION_TEXT_PATTERN.test(data.Message) || LOCAL_PERMISSION_TEXT_PATTERN.test(data.Instructions))) {
|
|
10433
|
+
return "local_permission_denied";
|
|
10434
|
+
}
|
|
10429
10435
|
}
|
|
10430
10436
|
return defaultErrorCodeForResult(data.Result);
|
|
10431
10437
|
}
|
|
@@ -10931,11 +10937,10 @@ var ScreenLogger;
|
|
|
10931
10937
|
})(ScreenLogger ||= {});
|
|
10932
10938
|
// ../common/src/sdk-user-agent.ts
|
|
10933
10939
|
var sdkUserAgentHostToken = singleton("SdkUserAgentHostToken");
|
|
10934
|
-
// ../common/src/tool-provider.ts
|
|
10935
|
-
var factorySlot = singleton("PackagerFactoryProvider");
|
|
10936
|
-
var moduleSlot = singleton("ToolModuleProvider");
|
|
10937
10940
|
// ../common/src/telemetry/ship-succeeded.ts
|
|
10938
10941
|
var shippedKeysSlot = singleton("ShipSucceededDedupeKeys");
|
|
10942
|
+
// ../common/src/tool-provider.ts
|
|
10943
|
+
var factorySlot = singleton("PackagerFactoryProvider");
|
|
10939
10944
|
// ../auth/src/config.ts
|
|
10940
10945
|
var DEFAULT_CLIENT_ID = "36dea5b8-e8bb-423d-8e7b-c808df8f1c00";
|
|
10941
10946
|
var AUTH_FILE_CONFIG_KEY = Symbol.for("@uipath/auth/AuthFileConfig");
|
|
@@ -12176,6 +12181,9 @@ function normalizeTokenRefreshUnavailableFailure() {
|
|
|
12176
12181
|
function errorMessage(error) {
|
|
12177
12182
|
return error instanceof Error ? error.message : String(error);
|
|
12178
12183
|
}
|
|
12184
|
+
// ../auth/src/tenantSelection.ts
|
|
12185
|
+
var IDENTIFIER_STATUSES = new Set([400, 403, 404]);
|
|
12186
|
+
|
|
12179
12187
|
// ../auth/src/selectTenant.ts
|
|
12180
12188
|
var TENANT_SELECTION_REQUIRED_CODE = "TENANT_SELECTION_REQUIRED";
|
|
12181
12189
|
var INVALID_TENANT_CODE = "INVALID_TENANT";
|
|
@@ -21474,4 +21482,4 @@ var registerCommands = async (program2) => {
|
|
|
21474
21482
|
|
|
21475
21483
|
export { Command, metadata, registerCommands };
|
|
21476
21484
|
|
|
21477
|
-
//# debugId=
|
|
21485
|
+
//# debugId=13FFC8249CF381A764756E2164756E21
|
package/dist/tool.js
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uipath/docsai-tool",
|
|
3
3
|
"license": "MIT",
|
|
4
|
-
"version": "1.201.0-preview.
|
|
4
|
+
"version": "1.201.0-preview.121",
|
|
5
5
|
"description": "Search UiPath documentation with AI-powered answers.",
|
|
6
6
|
"private": false,
|
|
7
7
|
"repository": {
|
|
@@ -26,5 +26,5 @@
|
|
|
26
26
|
"files": [
|
|
27
27
|
"dist"
|
|
28
28
|
],
|
|
29
|
-
"gitHead": "
|
|
29
|
+
"gitHead": "c70ccfc0b12e637441d67df1d212b71d7784b5f8"
|
|
30
30
|
}
|