@uipath/agent-tool 1.201.0 → 1.202.0-preview.136

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.
Files changed (54) hide show
  1. package/dist/agent-tool-OK5DK57D-hw5d866f.js +11 -0
  2. package/dist/{de-5KVP66U6-f7knj511.js → de-5KVP66U6-1bnf4zt5.js} +52 -52
  3. package/dist/{en-4KXU7N7B-66fntxa2.js → en-X3S6IZ5J-nhkg6pwn.js} +54 -60
  4. package/dist/{es-MX-XAVLOQW3-9b3cp9n8.js → es-MX-XAVLOQW3-q00km2y7.js} +52 -52
  5. package/dist/{es-VFPNVMP5-thm0z9sr.js → es-VFPNVMP5-bx2c337j.js} +52 -52
  6. package/dist/executor-tool.js +5 -13
  7. package/dist/{fr-E5MDO4EG-exvrs7ge.js → fr-E5MDO4EG-c3mkty2t.js} +52 -52
  8. package/dist/{index-hsadteg4.js → index-h8cph72k.js} +4 -4
  9. package/dist/{index-9f8q2ege.js → index-p3vk57z7.js} +27 -27
  10. package/dist/{index-26bymy67.js → index-vhhz1bs5.js} +160 -88
  11. package/dist/index.js +7 -17
  12. package/dist/{ja-DPO5PPLO-s2a7j3nj.js → ja-DPO5PPLO-mysfmznx.js} +52 -52
  13. package/dist/{js-yaml-cggj6w7q.js → js-yaml-87cdx6bm.js} +27 -19
  14. package/dist/{ko-ITOPNIYI-qz39kamf.js → ko-ITOPNIYI-hmxd2asd.js} +52 -52
  15. package/dist/{packager-tool-h5zqhhbj.js → packager-tool-0srzfhdr.js} +1089 -690
  16. package/dist/{packager-tool-wckvcay0.js → packager-tool-1yh8g550.js} +9 -7
  17. package/dist/{packager-tool-tq9q9m77.js → packager-tool-a42jnpy5.js} +3 -9
  18. package/dist/{packager-tool-kwp8tznh.js → packager-tool-g8yfc7ef.js} +9227 -6826
  19. package/dist/{packager-tool-1zt6rezn.js → packager-tool-hwy2sxr3.js} +858 -1171
  20. package/dist/{packager-tool-v02mthyt.js → packager-tool-vkv0j95b.js} +637 -637
  21. package/dist/packager-tool-y80gnt72.js +9753 -0
  22. package/dist/packager-tool.js +5 -6
  23. package/dist/{pt-BR-BXURWX4W-dqr4dnf9.js → pt-BR-BXURWX4W-bwfcwhk1.js} +52 -52
  24. package/dist/{pt-YI4VE4YQ-v7gjeg82.js → pt-YI4VE4YQ-wdkn2dcf.js} +52 -52
  25. package/dist/{ro-RKXZUG7Z-cm3xn3fj.js → ro-RKXZUG7Z-nndrrsq7.js} +52 -52
  26. package/dist/{ru-WBLQ5B2U-awt245ky.js → ru-WBLQ5B2U-8r3c7v6d.js} +1 -1
  27. package/dist/tool.js +9 -19
  28. package/dist/{tr-AA6O2WSR-ga1xnymp.js → tr-AA6O2WSR-86ba4bdf.js} +52 -52
  29. package/dist/{zh-CN-R2KLHXQV-wttmznep.js → zh-CN-R2KLHXQV-agqr45ds.js} +52 -52
  30. package/dist/{zh-TW-RJGCQANM-gqn0aca0.js → zh-TW-RJGCQANM-w0x3qc1p.js} +52 -52
  31. package/package.json +2 -2
  32. package/dist/agent-project-service-j4pgc7gk.js +0 -12
  33. package/dist/agent-tool-OK5DK57D-zenkdkdp.js +0 -12
  34. package/dist/browser-strategy-16yagjhr.js +0 -99
  35. package/dist/index-byw2z4xp.js +0 -141
  36. package/dist/index-k00qjyec.js +0 -2933
  37. package/dist/index-p50kx6jv.js +0 -48756
  38. package/dist/index-rqfxg3fq.js +0 -15
  39. package/dist/index-t82tsh16.js +0 -53
  40. package/dist/index.umd.min-drpc57vn.js +0 -7814
  41. package/dist/integration-tool-service-n214kzdn.js +0 -297
  42. package/dist/is-client-a1hbz77f.js +0 -124
  43. package/dist/node-strategy-1r3qegaf.js +0 -350
  44. package/dist/packager-tool-0gctz400.js +0 -17
  45. package/dist/packager-tool-4fge2k9c.js +0 -419
  46. package/dist/packager-tool-5xdkh3vm.js +0 -2573
  47. package/dist/packager-tool-8xv16pb3.js +0 -20663
  48. package/dist/packager-tool-bpegrcj1.js +0 -5336
  49. package/dist/packager-tool-gkvdytpj.js +0 -5085
  50. package/dist/packager-tool-nsrs2tm5.js +0 -114
  51. package/dist/packager-tool-q42rrs00.js +0 -12
  52. package/dist/packager-tool-qa9gftnj.js +0 -31
  53. package/dist/packager-tool-wzknj3dr.js +0 -394
  54. package/dist/packager-tool-yv3rvyas.js +0 -239
@@ -1,239 +0,0 @@
1
- import {
2
- __require
3
- } from "./packager-tool-wckvcay0.js";
4
-
5
- // ../filesystem/src/node.ts
6
- import { randomUUID } from "node:crypto";
7
- import { existsSync } from "node:fs";
8
- import * as fs from "node:fs/promises";
9
- import * as os from "node:os";
10
- import * as path from "node:path";
11
- var LOCK_HEARTBEAT_MS = 5000;
12
- var LOCK_STALE_MS = 15000;
13
- var LOCK_MAX_WAIT_MS = 20000;
14
- var LOCK_MAX_HOLD_MS = 60000;
15
- var LOCK_RETRY_MIN_MS = 100;
16
- var LOCK_RETRY_JITTER_MS = 200;
17
-
18
- class NodeFileSystem {
19
- path = {
20
- join: path.join,
21
- resolve: path.resolve,
22
- relative: path.relative,
23
- dirname: path.dirname,
24
- isAbsolute: path.isAbsolute,
25
- basename: path.basename
26
- };
27
- env = {
28
- cwd: process.cwd,
29
- homedir: os.homedir,
30
- tmpdir: os.tmpdir,
31
- getenv: (key) => process.env[key]
32
- };
33
- utils = {
34
- open: async (url) => {
35
- const { default: open } = await import("./index-hsadteg4.js");
36
- await open(url);
37
- }
38
- };
39
- async readFile(path2, options) {
40
- try {
41
- if (options) {
42
- return await fs.readFile(path2, "utf-8");
43
- }
44
- return await fs.readFile(path2);
45
- } catch (error) {
46
- if (this.isEnoent(error))
47
- return null;
48
- throw error;
49
- }
50
- }
51
- async writeFile(filePath, data) {
52
- const dir = path.dirname(filePath);
53
- if (dir) {
54
- await fs.mkdir(dir, { recursive: true });
55
- }
56
- await fs.writeFile(filePath, data);
57
- }
58
- async appendFile(filePath, data) {
59
- const dir = path.dirname(filePath);
60
- if (dir) {
61
- await fs.mkdir(dir, { recursive: true });
62
- }
63
- await fs.appendFile(filePath, data);
64
- }
65
- async readdir(dirPath) {
66
- try {
67
- return await fs.readdir(dirPath);
68
- } catch (error) {
69
- if (this.isEnoent(error))
70
- return [];
71
- throw error;
72
- }
73
- }
74
- async stat(filePath) {
75
- try {
76
- const stats = await fs.stat(filePath);
77
- return {
78
- isFile: () => stats.isFile(),
79
- isDirectory: () => stats.isDirectory(),
80
- size: stats.size,
81
- mtimeMs: stats.mtimeMs
82
- };
83
- } catch (error) {
84
- if (this.isEnoent(error))
85
- return null;
86
- throw error;
87
- }
88
- }
89
- async exists(filePath) {
90
- return existsSync(filePath);
91
- }
92
- async mkdir(dirPath) {
93
- await fs.mkdir(dirPath, { recursive: true });
94
- }
95
- async acquireLock(lockPath) {
96
- const canonicalPath = await this.canonicalizeLockTarget(lockPath);
97
- const lockFile = `${canonicalPath}.lock`;
98
- const ownerId = randomUUID();
99
- const start = Date.now();
100
- while (true) {
101
- try {
102
- await fs.writeFile(lockFile, ownerId, { flag: "wx" });
103
- return this.createLockRelease(lockFile, ownerId);
104
- } catch (error) {
105
- if (!this.hasErrnoCode(error, "EEXIST")) {
106
- throw error;
107
- }
108
- const stats = await fs.stat(lockFile).catch(() => null);
109
- if (stats && Date.now() - stats.mtimeMs > LOCK_STALE_MS) {
110
- const reclaimed = await fs.rm(lockFile, { force: true }).then(() => true).catch(() => false);
111
- if (reclaimed)
112
- continue;
113
- }
114
- if (Date.now() - start > LOCK_MAX_WAIT_MS) {
115
- throw new Error(`ELOCKED: timed out waiting for lock on ${canonicalPath}`);
116
- }
117
- await new Promise((resolve2) => setTimeout(resolve2, LOCK_RETRY_MIN_MS + Math.random() * LOCK_RETRY_JITTER_MS));
118
- }
119
- }
120
- }
121
- async canonicalizeLockTarget(lockPath) {
122
- const absolute = path.resolve(lockPath);
123
- const fullReal = await fs.realpath(absolute).catch(() => null);
124
- if (fullReal)
125
- return fullReal;
126
- const parent = path.dirname(absolute);
127
- const base = path.basename(absolute);
128
- const canonicalParent = await fs.realpath(parent).catch(() => parent);
129
- return path.join(canonicalParent, base);
130
- }
131
- createLockRelease(lockFile, ownerId) {
132
- const heartbeatStart = Date.now();
133
- let heartbeatTimer;
134
- let stopped = false;
135
- const stopHeartbeat = () => {
136
- stopped = true;
137
- if (heartbeatTimer)
138
- clearTimeout(heartbeatTimer);
139
- };
140
- const scheduleNextHeartbeat = () => {
141
- if (stopped)
142
- return;
143
- if (Date.now() - heartbeatStart >= LOCK_MAX_HOLD_MS) {
144
- stopped = true;
145
- return;
146
- }
147
- heartbeatTimer = setTimeout(() => {
148
- runHeartbeat();
149
- }, LOCK_HEARTBEAT_MS);
150
- heartbeatTimer.unref?.();
151
- };
152
- const runHeartbeat = async () => {
153
- if (stopped)
154
- return;
155
- const current = await fs.readFile(lockFile, "utf-8").catch(() => null);
156
- if (stopped)
157
- return;
158
- if (current !== ownerId) {
159
- stopped = true;
160
- return;
161
- }
162
- const now = Date.now() / 1000;
163
- await fs.utimes(lockFile, now, now).catch(() => {});
164
- scheduleNextHeartbeat();
165
- };
166
- scheduleNextHeartbeat();
167
- let released = false;
168
- return async () => {
169
- if (released)
170
- return;
171
- released = true;
172
- stopHeartbeat();
173
- const current = await fs.readFile(lockFile, "utf-8").catch(() => null);
174
- if (current === ownerId) {
175
- await fs.rm(lockFile, { force: true });
176
- }
177
- };
178
- }
179
- async rm(filePath) {
180
- await fs.rm(filePath, { recursive: true, force: true });
181
- }
182
- async rename(oldPath, newPath) {
183
- await fs.rename(oldPath, newPath);
184
- }
185
- async realpath(filePath) {
186
- try {
187
- return await fs.realpath(filePath);
188
- } catch (error) {
189
- if (this.isEnoent(error))
190
- return filePath;
191
- throw error;
192
- }
193
- }
194
- async getTempDir() {
195
- return await fs.mkdtemp(path.join(os.tmpdir(), "uipath-fs-"));
196
- }
197
- async copyDirectory(sourcePath, destPath) {
198
- const sourceStats = await this.stat(sourcePath);
199
- if (!sourceStats) {
200
- throw new Error(`Source directory does not exist: ${sourcePath}`);
201
- }
202
- if (!sourceStats.isDirectory()) {
203
- throw new Error(`Source path is not a directory: ${sourcePath}`);
204
- }
205
- await this.mkdir(destPath);
206
- const entries = await this.readdir(sourcePath);
207
- for (const entry of entries) {
208
- const srcEntry = path.join(sourcePath, entry);
209
- const destEntry = path.join(destPath, entry);
210
- const entryStats = await this.stat(srcEntry);
211
- if (!entryStats)
212
- continue;
213
- if (entryStats.isDirectory()) {
214
- await this.copyDirectory(srcEntry, destEntry);
215
- } else if (entryStats.isFile()) {
216
- const content = await this.readFile(srcEntry);
217
- if (content !== null) {
218
- await this.writeFile(destEntry, content);
219
- }
220
- }
221
- }
222
- }
223
- isEnoent(error) {
224
- return this.hasErrnoCode(error, "ENOENT");
225
- }
226
- hasErrnoCode(error, code) {
227
- return typeof error === "object" && error !== null && "code" in error && error.code === code;
228
- }
229
- }
230
-
231
- // ../filesystem/src/index.ts
232
- var fsInstance = new NodeFileSystem;
233
- var setFileSystem = (_fs) => () => {};
234
- var getFileSystem = () => fsInstance;
235
- var getFileSystemAsync = async () => fsInstance;
236
-
237
- export { NodeFileSystem, setFileSystem, getFileSystem, getFileSystemAsync };
238
-
239
- //# debugId=3E49815A855BD0ED64756E2164756E21