@uipath/codedagent-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.
package/dist/tool.js CHANGED
@@ -1,14 +1,15 @@
1
1
  import {
2
2
  metadata,
3
3
  registerCommands
4
- } from "./tool-csgcjkvd.js";
5
- import"./tool-5be0qe39.js";
4
+ } from "./tool-kst857r2.js";
5
+ import"./tool-thn7hw7k.js";
6
6
  import"./tool-9qecd4wb.js";
7
- import"./tool-nvhfxv67.js";
8
- import"./tool-vc9mne6b.js";
7
+ import"./tool-7eva0peq.js";
8
+ import"./tool-5arsyj36.js";
9
+ import"./tool-0v6na3yp.js";
9
10
  export {
10
11
  registerCommands,
11
12
  metadata
12
13
  };
13
14
 
14
- //# debugId=9858E4668130547464756E2164756E21
15
+ //# debugId=41CB38F55D92291A64756E2164756E21
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uipath/codedagent-tool",
3
3
  "license": "MIT",
4
- "version": "1.200.0-preview.109",
4
+ "version": "1.201.0-preview.115",
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": "fcc01cdae81bbd0c25d3d4fc287537a9d19d99f4"
35
+ "gitHead": "f1086b73654d7728cb71f280588b3e0c77d535fc"
36
36
  }
@@ -1,62 +0,0 @@
1
- import {
2
- catchError,
3
- getFileSystem,
4
- startServer
5
- } from "./tool-nvhfxv67.js";
6
- import"./tool-vc9mne6b.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