@uipath/docsai-tool 1.200.0-preview.109 → 1.201.0-preview.115

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.
@@ -45,13 +45,6 @@ var __export = (target, all) => {
45
45
  };
46
46
  var __require = /* @__PURE__ */ createRequire(import.meta.url);
47
47
 
48
- // ../auth/src/constants.ts
49
- var UIPATH_HOME_DIR = ".uipath";
50
- var AUTH_FILENAME = ".auth";
51
- var DEFAULT_BASE_URL = "https://cloud.uipath.com";
52
- var DEFAULT_AUTH_TIMEOUT_MS = 5 * 60 * 1000;
53
- var AUTH_CANCELLED_ERROR_CODE = "EAUTHCANCELLED";
48
+ export { __toESM, __commonJS, __export, __require };
54
49
 
55
- export { __toESM, __commonJS, __export, __require, UIPATH_HOME_DIR, AUTH_FILENAME, DEFAULT_BASE_URL, DEFAULT_AUTH_TIMEOUT_MS, AUTH_CANCELLED_ERROR_CODE };
56
-
57
- //# debugId=20BB441244A4FAC464756E2164756E21
50
+ //# debugId=42F86BC5AE2E70AC64756E2164756E21
package/dist/tool.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-d2rpzc6q.js";
4
+ } from "./tool-f1aza4b9.js";
5
5
  import"./tool-9qecd4wb.js";
6
- import"./tool-hxjzwxa7.js";
7
- import"./tool-rthwe9ky.js";
6
+ import"./tool-4pvh3k50.js";
7
+ import"./tool-5arsyj36.js";
8
+ import"./tool-wckvcay0.js";
8
9
  export {
9
10
  registerCommands,
10
11
  metadata
11
12
  };
12
13
 
13
- //# debugId=5715B6FADCC2981964756E2164756E21
14
+ //# debugId=9858E4668130547464756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/docsai-tool",
3
3
  "license": "MIT",
4
- "version": "1.200.0-preview.109",
4
+ "version": "1.201.0-preview.115",
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": "fcc01cdae81bbd0c25d3d4fc287537a9d19d99f4"
29
+ "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
30
30
  }
@@ -1,62 +0,0 @@
1
- import {
2
- catchError,
3
- getFileSystem,
4
- startServer
5
- } from "./tool-hxjzwxa7.js";
6
- import"./tool-rthwe9ky.js";
7
-
8
- // ../auth/src/strategies/node-strategy.ts
9
- class NodeAuthStrategy {
10
- async execute(url, redirectUri, expectedState, opts) {
11
- const fs = getFileSystem();
12
- const callbackUrl = await startServer({
13
- redirectUri,
14
- timeoutMs: opts?.timeoutMs,
15
- signal: opts?.signal,
16
- onListening: async () => {
17
- let safeUrl = "";
18
- for (const ch of url) {
19
- const c = ch.charCodeAt(0);
20
- if (c > 31 && (c < 128 || c > 159))
21
- safeUrl += ch;
22
- }
23
- if (opts?.noBrowser) {
24
- if (!opts.onAuthUrl) {
25
- throw new Error("Headless login (noBrowser) requires an onAuthUrl handler " + "to surface the authorize URL, but none was provided.");
26
- }
27
- opts.onAuthUrl(safeUrl);
28
- return;
29
- }
30
- const [openError] = await catchError(fs.utils.open(url));
31
- if (!openError)
32
- return;
33
- const isSpawnError = "code" in openError && openError.code === "ENOENT";
34
- if (isSpawnError) {
35
- throw new Error("Could not open a browser. No supported browser launcher was found. " + `On a headless or minimal system, use non-interactive login instead:
36
-
37
- ` + ` uip login --client-id <id> --client-secret <secret> -t <tenant>
38
-
39
- ` + "Or install a browser opener for your OS (e.g. xdg-utils on Linux).", { cause: openError });
40
- }
41
- throw new Error("Could not open the browser automatically. " + `Visit this URL to authenticate:
42
-
43
- ${safeUrl}
44
- `, { cause: openError });
45
- }
46
- });
47
- const returnedState = callbackUrl.searchParams.get("state");
48
- if (returnedState !== expectedState) {
49
- throw new Error("OAuth state mismatch — the callback state does not match the expected value. " + "This may indicate a CSRF attack. Please try signing in again.");
50
- }
51
- const code = callbackUrl.searchParams.get("code");
52
- if (!code) {
53
- throw new Error("No authorization code received");
54
- }
55
- return code;
56
- }
57
- }
58
- export {
59
- NodeAuthStrategy
60
- };
61
-
62
- //# debugId=A474411E22F056AC64756E2164756E21