@pipelab/core-node 0.0.1

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/.oxfmtrc.json +3 -0
  2. package/.turbo/turbo-build.log +56 -0
  3. package/.turbo/turbo-format.log +6 -0
  4. package/.turbo/turbo-lint.log +618 -0
  5. package/CHANGELOG.md +62 -0
  6. package/LICENSE +110 -0
  7. package/README.md +10 -0
  8. package/dist/index.d.mts +449 -0
  9. package/dist/index.d.mts.map +1 -0
  10. package/dist/index.mjs +52693 -0
  11. package/dist/index.mjs.map +1 -0
  12. package/package.json +64 -0
  13. package/scratch/simulate-updates.ts +118 -0
  14. package/src/api.ts +115 -0
  15. package/src/config.ts +100 -0
  16. package/src/context.ts +74 -0
  17. package/src/handler-func.ts +234 -0
  18. package/src/handlers/agents.ts +32 -0
  19. package/src/handlers/auth.ts +95 -0
  20. package/src/handlers/build-history.ts +379 -0
  21. package/src/handlers/config.ts +109 -0
  22. package/src/handlers/engine.ts +229 -0
  23. package/src/handlers/fs.ts +97 -0
  24. package/src/handlers/history.ts +327 -0
  25. package/src/handlers/index.ts +41 -0
  26. package/src/handlers/shell.ts +57 -0
  27. package/src/handlers/system.ts +18 -0
  28. package/src/handlers.ts +2 -0
  29. package/src/heavy.ts +4 -0
  30. package/src/index.ts +17 -0
  31. package/src/ipc-core.ts +77 -0
  32. package/src/migrations.ts +72 -0
  33. package/src/paths.ts +1 -0
  34. package/src/plugins-registry.ts +84 -0
  35. package/src/presets/c3toSteam.ts +272 -0
  36. package/src/presets/demo.ts +123 -0
  37. package/src/presets/if.ts +69 -0
  38. package/src/presets/list.ts +30 -0
  39. package/src/presets/loop.ts +65 -0
  40. package/src/presets/moreToCome.ts +32 -0
  41. package/src/presets/newProject.ts +31 -0
  42. package/src/presets/preset.model.ts +0 -0
  43. package/src/presets/test-c3-offline.ts +78 -0
  44. package/src/presets/test-c3-unzip.ts +124 -0
  45. package/src/runner.ts +166 -0
  46. package/src/server.ts +101 -0
  47. package/src/types/runner.ts +101 -0
  48. package/src/utils/fs-extras.ts +220 -0
  49. package/src/utils/github.ts +119 -0
  50. package/src/utils/remote.ts +498 -0
  51. package/src/utils/storage.ts +99 -0
  52. package/src/utils.ts +268 -0
  53. package/src/websocket-server.ts +288 -0
  54. package/tsconfig.json +19 -0
@@ -0,0 +1,618 @@
1
+
2
+
3
+ > @pipelab/core-node@1.0.0-beta.1 lint /run/media/armaldio/SSD/Projects/Pipelab/pipelab/packages/core-node
4
+ > oxlint .
5
+
6
+
7
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/unicorn/no-empty-file.html\eslint-plugin-unicorn(no-empty-file)]8;;\: Empty files are not allowed.
8
+ โ•ญโ”€[src/presets/preset.model.ts:1:1]
9
+ โ•ฐโ”€โ”€โ”€โ”€
10
+  help: Delete this file or add some code to it.
11
+
12
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'registerPlugins' is declared but never used. Unused variables should start with a '_'.
13
+ โ•ญโ”€[src/handlers/index.ts:28:11]
14
+ 27 โ”‚
15
+ 28 โ”‚ const { registerPlugins } = usePlugins();
16
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€
17
+ ยท โ•ฐโ”€โ”€ 'registerPlugins' is declared here
18
+ 29 โ”‚ // Execute in the background! The plugins will be dynamically registered and broadcasted to the UI.
19
+ โ•ฐโ”€โ”€โ”€โ”€
20
+  help: Consider removing this declaration.
21
+
22
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'resolve' is imported but never used.
23
+ โ•ญโ”€[src/context.ts:1:25]
24
+ 1 โ”‚ import { join, dirname, resolve } from "node:path";
25
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€
26
+ ยท โ•ฐโ”€โ”€ 'resolve' is imported here
27
+ 2 โ”‚ import { homedir, platform } from "node:os";
28
+ โ•ฐโ”€โ”€โ”€โ”€
29
+  help: Consider removing this import.
30
+
31
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'e' is caught but never used.
32
+ โ•ญโ”€[src/plugins-registry.ts:37:16]
33
+ 36 โ”‚ console.log(`[Plugins] [${id}] Directory contents:`, files);
34
+ 37 โ”‚ } catch (e) {}
35
+ ยท  โ”ฌ
36
+ ยท โ•ฐโ”€โ”€ 'e' is declared here
37
+ 38 โ”‚ }
38
+ โ•ฐโ”€โ”€โ”€โ”€
39
+  help: Consider handling this error.
40
+
41
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'e' is caught but never used.
42
+ โ•ญโ”€[src/handlers/fs.ts:63:20]
43
+ 62 โ”‚ stats = await stat(fullPath);
44
+ 63 โ”‚ } catch (e) {
45
+ ยท  โ”ฌ
46
+ ยท โ•ฐโ”€โ”€ 'e' is declared here
47
+ 64 โ”‚ // Might happen for broken symlinks etc
48
+ โ•ฐโ”€โ”€โ”€โ”€
49
+  help: Consider handling this error.
50
+
51
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'e' is caught but never used.
52
+ โ•ญโ”€[src/handlers/auth.ts:37:14]
53
+ 36 โ”‚ return send({ type: "end", data: { type: "success", result: { user: data.user } } });
54
+ 37 โ”‚ } catch (e) {
55
+ ยท  โ”ฌ
56
+ ยท โ•ฐโ”€โ”€ 'e' is declared here
57
+ 38 โ”‚ return send({ type: "end", data: { type: "success", result: { user: null } } });
58
+ โ•ฐโ”€โ”€โ”€โ”€
59
+  help: Consider handling this error.
60
+
61
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Type 'Tagged' is imported but never used.
62
+ โ•ญโ”€[src/api.ts:5:15]
63
+ 4 โ”‚
64
+ 5 โ”‚ import type { Tagged } from "type-fest";
65
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
66
+ ยท โ•ฐโ”€โ”€ 'Tagged' is imported here
67
+ 6 โ”‚ import { ILogObjMeta } from "tslog";
68
+ โ•ฐโ”€โ”€โ”€โ”€
69
+  help: Consider removing this import.
70
+
71
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'ILogObjMeta' is imported but never used.
72
+ โ•ญโ”€[src/api.ts:6:10]
73
+ 5 โ”‚ import type { Tagged } from "type-fest";
74
+ 6 โ”‚ import { ILogObjMeta } from "tslog";
75
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€
76
+ ยท โ•ฐโ”€โ”€ 'ILogObjMeta' is imported here
77
+ 7 โ”‚ import { useLogger } from "@pipelab/shared";
78
+ โ•ฐโ”€โ”€โ”€โ”€
79
+  help: Consider removing this import.
80
+
81
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'BaseHandleListenerRenderer' is imported but never used.
82
+ โ•ญโ”€[src/api.ts:18:29]
83
+ 17 โ”‚ HandleListenerRendererSendFn,
84
+ 18 โ”‚ HandleListenerRenderer as BaseHandleListenerRenderer,
85
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
86
+ ยท โ•ฐโ”€โ”€ 'BaseHandleListenerRenderer' is imported here
87
+ 19 โ”‚ } from "@pipelab/shared";
88
+ โ•ฐโ”€โ”€โ”€โ”€
89
+  help: Consider removing this import.
90
+
91
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'configRegistry' is imported but never used.
92
+ โ•ญโ”€[src/handlers/config.ts:2:21]
93
+ 1 โ”‚ import { useAPI } from "../ipc-core";
94
+ 2 โ”‚ import { useLogger, configRegistry } from "@pipelab/shared";
95
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€
96
+ ยท โ•ฐโ”€โ”€ 'configRegistry' is imported here
97
+ 3 โ”‚ import { setupConfigFile, getMigrator } from "../config";
98
+ โ•ฐโ”€โ”€โ”€โ”€
99
+  help: Consider removing this import.
100
+
101
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'isDev' is imported but never used.
102
+ โ•ญโ”€[src/runner.ts:3:10]
103
+ 2 โ”‚ import { setupConfigFile } from "./config";
104
+ 3 โ”‚ import { isDev, PipelabContext } from "./context";
105
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
106
+ ยท โ•ฐโ”€โ”€ 'isDev' is imported here
107
+ 4 โ”‚ import { readFile, access, writeFile, mkdir } from "node:fs/promises";
108
+ โ•ฐโ”€โ”€โ”€โ”€
109
+  help: Consider removing this import.
110
+
111
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'tmpdir' is imported but never used.
112
+ โ•ญโ”€[src/runner.ts:6:10]
113
+ 5 โ”‚ import { resolve, isAbsolute, join, dirname } from "node:path";
114
+ 6 โ”‚ import { tmpdir } from "node:os";
115
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
116
+ ยท โ•ฐโ”€โ”€ 'tmpdir' is imported here
117
+ 7 โ”‚ import { savedFileMigrator } from "@pipelab/shared";
118
+ โ•ฐโ”€โ”€โ”€โ”€
119
+  help: Consider removing this import.
120
+
121
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'e' is caught but never used.
122
+ โ•ญโ”€[src/runner.ts:24:12]
123
+ 23 โ”‚ await access(pipelinePath);
124
+ 24 โ”‚ } catch (e) {
125
+ ยท  โ”ฌ
126
+ ยท โ•ฐโ”€โ”€ 'e' is declared here
127
+ 25 โ”‚ throw new Error(`Pipeline file not found at ${pipelinePath}`);
128
+ โ•ฐโ”€โ”€โ”€โ”€
129
+  help: Consider handling this error.
130
+
131
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'config' is declared but never used. Unused variables should start with a '_'.
132
+ โ•ญโ”€[src/runner.ts:72:9]
133
+ 71 โ”‚ const settings = await setupConfigFile<AppConfig>("settings", { context });
134
+ 72 โ”‚ const config = await settings.getConfig();
135
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
136
+ ยท โ•ฐโ”€โ”€ 'config' is declared here
137
+ 73 โ”‚ const cachePath = join(context.userDataPath, "cache");
138
+ โ•ฐโ”€โ”€โ”€โ”€
139
+  help: Consider removing this declaration.
140
+
141
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'join' is declared but never used. Unused variables should start with a '_'.
142
+ โ•ญโ”€[src/handler-func.ts:13:9]
143
+ 12 โ”‚ import path from "node:path";
144
+ 13 โ”‚ const { join } = path;
145
+ ยท  โ”€โ”€โ”ฌโ”€
146
+ ยท โ•ฐโ”€โ”€ 'join' is declared here
147
+ 14 โ”‚
148
+ โ•ฐโ”€โ”€โ”€โ”€
149
+  help: Consider removing this declaration.
150
+
151
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'WebSocketServerConfig' is imported but never used.
152
+ โ•ญโ”€[src/websocket-server.ts:7:3]
153
+ 6 โ”‚ import {
154
+ 7 โ”‚ WebSocketServerConfig,
155
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
156
+ ยท โ•ฐโ”€โ”€ 'WebSocketServerConfig' is imported here
157
+ 8 โ”‚ WebSocketServerEvents,
158
+ โ•ฐโ”€โ”€โ”€โ”€
159
+  help: Consider removing this import.
160
+
161
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'WebSocketServerEvents' is imported but never used.
162
+ โ•ญโ”€[src/websocket-server.ts:8:3]
163
+ 7 โ”‚ WebSocketServerConfig,
164
+ 8 โ”‚ WebSocketServerEvents,
165
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
166
+ ยท โ•ฐโ”€โ”€ 'WebSocketServerEvents' is imported here
167
+ 9 โ”‚ WebSocketConnectionState,
168
+ โ•ฐโ”€โ”€โ”€โ”€
169
+  help: Consider removing this import.
170
+
171
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'mkdir' is imported but never used.
172
+ โ•ญโ”€[src/utils/fs-extras.ts:1:10]
173
+ 1 โ”‚ import { mkdir, createWriteStream, createReadStream } from "node:fs";
174
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
175
+ ยท โ•ฐโ”€โ”€ 'mkdir' is imported here
176
+ 2 โ”‚ import { execa, Options, Subprocess } from "execa";
177
+ โ•ฐโ”€โ”€โ”€โ”€
178
+  help: Consider removing this import.
179
+
180
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'createReadStream' is imported but never used.
181
+ โ•ญโ”€[src/utils/fs-extras.ts:1:36]
182
+ 1 โ”‚ import { mkdir, createWriteStream, createReadStream } from "node:fs";
183
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€
184
+ ยท โ•ฐโ”€โ”€ 'createReadStream' is imported here
185
+ 2 โ”‚ import { execa, Options, Subprocess } from "execa";
186
+ โ•ฐโ”€โ”€โ”€โ”€
187
+  help: Consider removing this import.
188
+
189
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'chmod' is imported but never used.
190
+ โ•ญโ”€[src/utils/fs-extras.ts:9:3]
191
+  8 โ”‚ mkdtemp,
192
+  9 โ”‚ chmod,
193
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
194
+ ยท โ•ฐโ”€โ”€ 'chmod' is imported here
195
+ 10 โ”‚ stat,
196
+ โ•ฐโ”€โ”€โ”€โ”€
197
+  help: Consider removing this import.
198
+
199
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/unicorn/prefer-string-starts-ends-with.html\eslint-plugin-unicorn(prefer-string-starts-ends-with)]8;;\: Prefer String#endsWith over a regex with a dollar sign.
200
+ โ•ญโ”€[src/utils/fs-extras.ts:66:13]
201
+ 65 โ”‚ const entryPath = join(destinationDir, entry.fileName);
202
+ 66 โ”‚ if (/\/$/.test(entry.fileName)) {
203
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
204
+ 67 โ”‚ mkdirP(entryPath, { recursive: true })
205
+ โ•ฐโ”€โ”€โ”€โ”€
206
+  help: Replace `/\/$/.test(entry.fileName)` with `entry.fileName.endsWith('/')`.
207
+
208
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'ensurePNPM' is imported but never used.
209
+ โ•ญโ”€[src/server.ts:2:3]
210
+ 1 โ”‚ import {
211
+ 2 โ”‚ ensurePNPM,
212
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
213
+ ยท โ•ฐโ”€โ”€ 'ensurePNPM' is imported here
214
+ 3 โ”‚ PipelabContext,
215
+ โ•ฐโ”€โ”€โ”€โ”€
216
+  help: Consider removing this import.
217
+
218
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'readFile' is imported but never used.
219
+ โ•ญโ”€[src/server.ts:11:10]
220
+ 10 โ”‚ import { existsSync } from "node:fs";
221
+ 11 โ”‚ import { readFile } from "node:fs/promises";
222
+ ยท  โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€
223
+ ยท โ•ฐโ”€โ”€ 'readFile' is imported here
224
+ 12 โ”‚ import { join } from "node:path";
225
+ โ•ฐโ”€โ”€โ”€โ”€
226
+  help: Consider removing this import.
227
+
228
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'join' is imported but never used.
229
+ โ•ญโ”€[src/server.ts:12:10]
230
+ 11 โ”‚ import { readFile } from "node:fs/promises";
231
+ 12 โ”‚ import { join } from "node:path";
232
+ ยท  โ”€โ”€โ”ฌโ”€
233
+ ยท โ•ฐโ”€โ”€ 'join' is imported here
234
+ 13 โ”‚ import http from "http";
235
+ โ•ฐโ”€โ”€โ”€โ”€
236
+  help: Consider removing this import.
237
+
238
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'downloadFile' is imported but never used.
239
+ โ•ญโ”€[src/utils.ts:4:10]
240
+ 3 โ”‚ import { RendererPluginDefinition } from "@pipelab/shared";
241
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
242
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€
243
+ ยท โ•ฐโ”€โ”€ 'downloadFile' is imported here
244
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
245
+ โ•ฐโ”€โ”€โ”€โ”€
246
+  help: Consider removing this import.
247
+
248
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'DownloadHooks' is imported but never used.
249
+ โ•ญโ”€[src/utils.ts:4:24]
250
+ 3 โ”‚ import { RendererPluginDefinition } from "@pipelab/shared";
251
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
252
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€
253
+ ยท โ•ฐโ”€โ”€ 'DownloadHooks' is imported here
254
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
255
+ โ•ฐโ”€โ”€โ”€โ”€
256
+  help: Consider removing this import.
257
+
258
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'access' is imported but never used.
259
+ โ•ญโ”€[src/utils.ts:5:10]
260
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
261
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
262
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
263
+ ยท โ•ฐโ”€โ”€ 'access' is imported here
264
+ 6 โ”‚ import { dirname, join } from "node:path";
265
+ โ•ฐโ”€โ”€โ”€โ”€
266
+  help: Consider removing this import.
267
+
268
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'chmod' is imported but never used.
269
+ โ•ญโ”€[src/utils.ts:5:18]
270
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
271
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
272
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
273
+ ยท โ•ฐโ”€โ”€ 'chmod' is imported here
274
+ 6 โ”‚ import { dirname, join } from "node:path";
275
+ โ•ฐโ”€โ”€โ”€โ”€
276
+  help: Consider removing this import.
277
+
278
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'mkdir' is imported but never used.
279
+ โ•ญโ”€[src/utils.ts:5:25]
280
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
281
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
282
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
283
+ ยท โ•ฐโ”€โ”€ 'mkdir' is imported here
284
+ 6 โ”‚ import { dirname, join } from "node:path";
285
+ โ•ฐโ”€โ”€โ”€โ”€
286
+  help: Consider removing this import.
287
+
288
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'writeFile' is imported but never used.
289
+ โ•ญโ”€[src/utils.ts:5:36]
290
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
291
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
292
+ ยท  โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
293
+ ยท โ•ฐโ”€โ”€ 'writeFile' is imported here
294
+ 6 โ”‚ import { dirname, join } from "node:path";
295
+ โ•ฐโ”€โ”€โ”€โ”€
296
+  help: Consider removing this import.
297
+
298
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'readdir' is imported but never used.
299
+ โ•ญโ”€[src/utils.ts:5:47]
300
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
301
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
302
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€
303
+ ยท โ•ฐโ”€โ”€ 'readdir' is imported here
304
+ 6 โ”‚ import { dirname, join } from "node:path";
305
+ โ•ฐโ”€โ”€โ”€โ”€
306
+  help: Consider removing this import.
307
+
308
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'cp' is imported but never used.
309
+ โ•ญโ”€[src/utils.ts:5:56]
310
+ 4 โ”‚ import { downloadFile, DownloadHooks } from "./utils/fs-extras";
311
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
312
+ ยท  โ”€โ”ฌ
313
+ ยท โ•ฐโ”€โ”€ 'cp' is imported here
314
+ 6 โ”‚ import { dirname, join } from "node:path";
315
+ โ•ฐโ”€โ”€โ”€โ”€
316
+  help: Consider removing this import.
317
+
318
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'dirname' is imported but never used.
319
+ โ•ญโ”€[src/utils.ts:6:10]
320
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
321
+ 6 โ”‚ import { dirname, join } from "node:path";
322
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€
323
+ ยท โ•ฐโ”€โ”€ 'dirname' is imported here
324
+ 7 โ”‚ import { pathToFileURL } from "node:url";
325
+ โ•ฐโ”€โ”€โ”€โ”€
326
+  help: Consider removing this import.
327
+
328
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'join' is imported but never used.
329
+ โ•ญโ”€[src/utils.ts:6:19]
330
+ 5 โ”‚ import { access, chmod, mkdir, rm, writeFile, readdir, cp } from "node:fs/promises";
331
+ 6 โ”‚ import { dirname, join } from "node:path";
332
+ ยท  โ”€โ”€โ”ฌโ”€
333
+ ยท โ•ฐโ”€โ”€ 'join' is imported here
334
+ 7 โ”‚ import { pathToFileURL } from "node:url";
335
+ โ•ฐโ”€โ”€โ”€โ”€
336
+  help: Consider removing this import.
337
+
338
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'pathToFileURL' is imported but never used.
339
+ โ•ญโ”€[src/utils.ts:7:10]
340
+ 6 โ”‚ import { dirname, join } from "node:path";
341
+ 7 โ”‚ import { pathToFileURL } from "node:url";
342
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€
343
+ ยท โ•ฐโ”€โ”€ 'pathToFileURL' is imported here
344
+ 8 โ”‚ import { isDev, projectRoot, PipelabContext } from "./context";
345
+ โ•ฐโ”€โ”€โ”€โ”€
346
+  help: Consider removing this import.
347
+
348
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'isDev' is imported but never used.
349
+ โ•ญโ”€[src/utils.ts:8:10]
350
+ 7 โ”‚ import { pathToFileURL } from "node:url";
351
+ 8 โ”‚ import { isDev, projectRoot, PipelabContext } from "./context";
352
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
353
+ ยท โ•ฐโ”€โ”€ 'isDev' is imported here
354
+ 9 โ”‚ import { constants, existsSync } from "node:fs";
355
+ โ•ฐโ”€โ”€โ”€โ”€
356
+  help: Consider removing this import.
357
+
358
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'projectRoot' is imported but never used.
359
+ โ•ญโ”€[src/utils.ts:8:17]
360
+ 7 โ”‚ import { pathToFileURL } from "node:url";
361
+ 8 โ”‚ import { isDev, projectRoot, PipelabContext } from "./context";
362
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€
363
+ ยท โ•ฐโ”€โ”€ 'projectRoot' is imported here
364
+ 9 โ”‚ import { constants, existsSync } from "node:fs";
365
+ โ•ฐโ”€โ”€โ”€โ”€
366
+  help: Consider removing this import.
367
+
368
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'constants' is imported but never used.
369
+ โ•ญโ”€[src/utils.ts:9:10]
370
+  8 โ”‚ import { isDev, projectRoot, PipelabContext } from "./context";
371
+  9 โ”‚ import { constants, existsSync } from "node:fs";
372
+ ยท  โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
373
+ ยท โ•ฐโ”€โ”€ 'constants' is imported here
374
+ 10 โ”‚ import { processGraph } from "@pipelab/shared";
375
+ โ•ฐโ”€โ”€โ”€โ”€
376
+  help: Consider removing this import.
377
+
378
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'existsSync' is imported but never used.
379
+ โ•ญโ”€[src/utils.ts:9:21]
380
+  8 โ”‚ import { isDev, projectRoot, PipelabContext } from "./context";
381
+  9 โ”‚ import { constants, existsSync } from "node:fs";
382
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
383
+ ยท โ•ฐโ”€โ”€ 'existsSync' is imported here
384
+ 10 โ”‚ import { processGraph } from "@pipelab/shared";
385
+ โ•ฐโ”€โ”€โ”€โ”€
386
+  help: Consider removing this import.
387
+
388
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'ensure' is imported but never used.
389
+ โ•ญโ”€[src/utils.ts:17:10]
390
+ 16 โ”‚
391
+ 17 โ”‚ import { ensure, generateTempFolder, extractTarGz, extractZip, zipFolder } from "./utils/fs-extras";
392
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
393
+ ยท โ•ฐโ”€โ”€ 'ensure' is imported here
394
+ 18 โ”‚ import { fetchPipelabAsset } from "./utils/remote";
395
+ โ•ฐโ”€โ”€โ”€โ”€
396
+  help: Consider removing this import.
397
+
398
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'extractTarGz' is imported but never used.
399
+ โ•ญโ”€[src/utils.ts:17:38]
400
+ 16 โ”‚
401
+ 17 โ”‚ import { ensure, generateTempFolder, extractTarGz, extractZip, zipFolder } from "./utils/fs-extras";
402
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€
403
+ ยท โ•ฐโ”€โ”€ 'extractTarGz' is imported here
404
+ 18 โ”‚ import { fetchPipelabAsset } from "./utils/remote";
405
+ โ•ฐโ”€โ”€โ”€โ”€
406
+  help: Consider removing this import.
407
+
408
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'extractZip' is imported but never used.
409
+ โ•ญโ”€[src/utils.ts:17:52]
410
+ 16 โ”‚
411
+ 17 โ”‚ import { ensure, generateTempFolder, extractTarGz, extractZip, zipFolder } from "./utils/fs-extras";
412
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
413
+ ยท โ•ฐโ”€โ”€ 'extractZip' is imported here
414
+ 18 โ”‚ import { fetchPipelabAsset } from "./utils/remote";
415
+ โ•ฐโ”€โ”€โ”€โ”€
416
+  help: Consider removing this import.
417
+
418
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'zipFolder' is imported but never used.
419
+ โ•ญโ”€[src/utils.ts:17:64]
420
+ 16 โ”‚
421
+ 17 โ”‚ import { ensure, generateTempFolder, extractTarGz, extractZip, zipFolder } from "./utils/fs-extras";
422
+ ยท  โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
423
+ ยท โ•ฐโ”€โ”€ 'zipFolder' is imported here
424
+ 18 โ”‚ import { fetchPipelabAsset } from "./utils/remote";
425
+ โ•ฐโ”€โ”€โ”€โ”€
426
+  help: Consider removing this import.
427
+
428
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'fetchPipelabAsset' is imported but never used.
429
+ โ•ญโ”€[src/utils.ts:18:10]
430
+ 17 โ”‚ import { ensure, generateTempFolder, extractTarGz, extractZip, zipFolder } from "./utils/fs-extras";
431
+ 18 โ”‚ import { fetchPipelabAsset } from "./utils/remote";
432
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€
433
+ ยท โ•ฐโ”€โ”€ 'fetchPipelabAsset' is imported here
434
+ 19 โ”‚ import { loadPipelabPlugin } from "./plugins-registry";
435
+ โ•ฐโ”€โ”€โ”€โ”€
436
+  help: Consider removing this import.
437
+
438
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'ensureNodeJS' is imported but never used.
439
+ โ•ญโ”€[src/utils.ts:68:10]
440
+ 67 โ”‚
441
+ 68 โ”‚ import { ensureNodeJS, ensurePNPM } from "./utils/remote";
442
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€
443
+ ยท โ•ฐโ”€โ”€ 'ensureNodeJS' is imported here
444
+ 69 โ”‚
445
+ โ•ฐโ”€โ”€โ”€โ”€
446
+  help: Consider removing this import.
447
+
448
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'ensurePNPM' is imported but never used.
449
+ โ•ญโ”€[src/utils.ts:68:24]
450
+ 67 โ”‚
451
+ 68 โ”‚ import { ensureNodeJS, ensurePNPM } from "./utils/remote";
452
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
453
+ ยท โ•ฐโ”€โ”€ 'ensurePNPM' is imported here
454
+ 69 โ”‚
455
+ โ•ฐโ”€โ”€โ”€โ”€
456
+  help: Consider removing this import.
457
+
458
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'failedSteps' is declared but never used. Unused variables should start with a '_'.
459
+ โ•ญโ”€[src/utils.ts:130:7]
460
+ 129 โ”‚ let completedSteps = 0;
461
+ 130 โ”‚ let failedSteps = 0;
462
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€
463
+ ยท โ•ฐโ”€โ”€ 'failedSteps' is declared here
464
+ 131 โ”‚ let cancelledSteps = 0;
465
+ โ•ฐโ”€โ”€โ”€โ”€
466
+  help: Consider removing this declaration.
467
+
468
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'cancelledSteps' is declared but never used. Unused variables should start with a '_'.
469
+ โ•ญโ”€[src/utils.ts:131:7]
470
+ 130 โ”‚ let failedSteps = 0;
471
+ 131 โ”‚ let cancelledSteps = 0;
472
+ ยท  โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€
473
+ ยท โ•ฐโ”€โ”€ 'cancelledSteps' is declared here
474
+ 132 โ”‚
475
+ โ•ฐโ”€โ”€โ”€โ”€
476
+  help: Consider removing this declaration.
477
+
478
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Variable 'config' is declared but never used. Unused variables should start with a '_'.
479
+ โ•ญโ”€[src/utils.ts:156:9]
480
+ 155 โ”‚ const settingsFile = await setupConfigFile<AppConfig>("settings", { context: ctx });
481
+ 156 โ”‚ const config = await settingsFile.getConfig();
482
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
483
+ ยท โ•ฐโ”€โ”€ 'config' is declared here
484
+ 157 โ”‚ const shouldCleanup = true;
485
+ โ•ฐโ”€โ”€โ”€โ”€
486
+  help: Consider removing this declaration.
487
+
488
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Parameter 'steps' is declared but never used. Unused parameters should start with a '_'.
489
+ โ•ญโ”€[src/utils.ts:166:43]
490
+ 165 โ”‚ context: {},
491
+ 166 โ”‚ onExecuteItem: async (node, params, steps) => {
492
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
493
+ ยท โ•ฐโ”€โ”€ 'steps' is declared here
494
+ 167 โ”‚ if (node.type === "action") {
495
+ โ•ฐโ”€โ”€โ”€โ”€
496
+  help: Consider removing this parameter.
497
+
498
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Parameter 'event' is declared but never used. Unused parameters should start with a '_'.
499
+ โ•ญโ”€[src/handlers/history.ts:9:47]
500
+  8 โ”‚ // Helper function to check build history authorization
501
+  9 โ”‚ const checkBuildHistoryAuthorization = async (event: WsEvent): Promise<boolean> => {
502
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
503
+ ยท โ•ฐโ”€โ”€ 'event' is declared here
504
+ 10 โ”‚ const { logger } = useLogger();
505
+ โ•ฐโ”€โ”€โ”€โ”€
506
+  help: Consider removing this parameter.
507
+
508
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'tmpdir' is imported but never used.
509
+ โ•ญโ”€[src/handlers/build-history.ts:4:10]
510
+ 3 โ”‚ import { writeFile, readFile, unlink, mkdir, stat, readdir } from "node:fs/promises";
511
+ 4 โ”‚ import { tmpdir } from "node:os";
512
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
513
+ ยท โ•ฐโ”€โ”€ 'tmpdir' is imported here
514
+ 5 โ”‚ import { useLogger, BuildHistoryEntry, IBuildHistoryStorage, AppConfig } from "@pipelab/shared";
515
+ โ•ฐโ”€โ”€โ”€โ”€
516
+  help: Consider removing this import.
517
+
518
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'error' is caught but never used.
519
+ โ•ญโ”€[src/handlers/build-history.ts:48:14]
520
+ 47 โ”‚ return JSON.parse(data);
521
+ 48 โ”‚ } catch (error) {
522
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
523
+ ยท โ•ฐโ”€โ”€ 'error' is declared here
524
+ 49 โ”‚ // File doesn't exist or is corrupted, return empty array
525
+ โ•ฐโ”€โ”€โ”€โ”€
526
+  help: Consider handling this error.
527
+
528
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'error' is caught but never used.
529
+ โ•ญโ”€[src/handlers/build-history.ts:340:16]
530
+ 339 โ”‚ }
531
+ 340 โ”‚ } catch (error) {
532
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
533
+ ยท โ•ฐโ”€โ”€ 'error' is declared here
534
+ 341 โ”‚ totalSize = allEntries.length * 1024; // Rough estimate
535
+ โ•ฐโ”€โ”€โ”€โ”€
536
+  help: Consider handling this error.
537
+
538
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'error' is caught but never used.
539
+ โ•ญโ”€[src/handlers/build-history.ts:375:14]
540
+ 374 โ”‚ return files.filter((file) => file.startsWith("pipeline-") && file.endsWith(".json"));
541
+ 375 โ”‚ } catch (error) {
542
+ ยท  โ”€โ”€โ”ฌโ”€โ”€
543
+ ยท โ•ฐโ”€โ”€ 'error' is declared here
544
+ 376 โ”‚ return [];
545
+ โ•ฐโ”€โ”€โ”€โ”€
546
+  help: Consider handling this error.
547
+
548
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-useless-escape.html\eslint(no-useless-escape)]8;;\: Unnecessary escape character ':'
549
+ โ•ญโ”€[src/handlers/build-history.ts:27:19]
550
+ 26 โ”‚ const sanitizedId = pipelineId
551
+ 27 โ”‚ .replace(/[/\:*?"<>|]/g, "_")
552
+ ยท  โ”€โ”€
553
+ 28 โ”‚ .replace(/__/g, "_") // Replace multiple underscores with single
554
+ โ•ฐโ”€โ”€โ”€โ”€
555
+  help: Replace `\:` with `:`.
556
+
557
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'writeFile' is imported but never used.
558
+ โ•ญโ”€[src/utils/remote.ts:3:36]
559
+ 2 โ”‚ import { tmpdir } from "node:os";
560
+ 3 โ”‚ import { mkdir, readdir, readFile, writeFile, access, chmod, rm, cp } from "node:fs/promises";
561
+ ยท  โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
562
+ ยท โ•ฐโ”€โ”€ 'writeFile' is imported here
563
+ 4 โ”‚ import { existsSync, constants } from "node:fs";
564
+ โ•ฐโ”€โ”€โ”€โ”€
565
+  help: Consider removing this import.
566
+
567
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'access' is imported but never used.
568
+ โ•ญโ”€[src/utils/remote.ts:3:47]
569
+ 2 โ”‚ import { tmpdir } from "node:os";
570
+ 3 โ”‚ import { mkdir, readdir, readFile, writeFile, access, chmod, rm, cp } from "node:fs/promises";
571
+ ยท  โ”€โ”€โ”€โ”ฌโ”€โ”€
572
+ ยท โ•ฐโ”€โ”€ 'access' is imported here
573
+ 4 โ”‚ import { existsSync, constants } from "node:fs";
574
+ โ•ฐโ”€โ”€โ”€โ”€
575
+  help: Consider removing this import.
576
+
577
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Identifier 'constants' is imported but never used.
578
+ โ•ญโ”€[src/utils/remote.ts:4:22]
579
+ 3 โ”‚ import { mkdir, readdir, readFile, writeFile, access, chmod, rm, cp } from "node:fs/promises";
580
+ 4 โ”‚ import { existsSync, constants } from "node:fs";
581
+ ยท  โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€
582
+ ยท โ•ฐโ”€โ”€ 'constants' is imported here
583
+ 5 โ”‚ import pacote from "pacote";
584
+ โ•ฐโ”€โ”€โ”€โ”€
585
+  help: Consider removing this import.
586
+
587
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'e' is caught but never used.
588
+ โ•ญโ”€[src/utils/remote.ts:283:14]
589
+ 282 โ”‚ }
590
+ 283 โ”‚ } catch (e) {
591
+ ยท  โ”ฌ
592
+ ยท โ•ฐโ”€โ”€ 'e' is declared here
593
+ 284 โ”‚ // Continue to install if readdir fails
594
+ โ•ฐโ”€โ”€โ”€โ”€
595
+  help: Consider handling this error.
596
+
597
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'e' is caught but never used.
598
+ โ•ญโ”€[src/utils/remote.ts:438:22]
599
+ 437 โ”‚ }
600
+ 438 โ”‚ } catch (e) {}
601
+ ยท  โ”ฌ
602
+ ยท โ•ฐโ”€โ”€ 'e' is declared here
603
+ 439 โ”‚ }
604
+ โ•ฐโ”€โ”€โ”€โ”€
605
+  help: Consider handling this error.
606
+
607
+ โš  ]8;;https://oxc.rs/docs/guide/usage/linter/rules/eslint/no-unused-vars.html\eslint(no-unused-vars)]8;;\: Catch parameter 'e' is caught but never used.
608
+ โ•ญโ”€[src/utils/remote.ts:442:14]
609
+ 441 โ”‚ }
610
+ 442 โ”‚ } catch (e) {}
611
+ ยท  โ”ฌ
612
+ ยท โ•ฐโ”€โ”€ 'e' is declared here
613
+ 443 โ”‚ }
614
+ โ•ฐโ”€โ”€โ”€โ”€
615
+  help: Consider handling this error.
616
+
617
+ Found 62 warnings and 0 errors.
618
+ Finished in 38ms on 40 files with 93 rules using 16 threads.