@donotdev/cli 0.1.45 → 0.1.46

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.
@@ -5,7 +5,7 @@ var __getOwnPropNames = Object.getOwnPropertyNames;
5
5
  var __getProtoOf = Object.getPrototypeOf;
6
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
7
  var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
- get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
8
+ get: (a2, b) => (typeof require !== "undefined" ? require : a2)[b]
9
9
  }) : x)(function(x) {
10
10
  if (typeof require !== "undefined") return require.apply(this, arguments);
11
11
  throw Error('Dynamic require of "' + x + '" is not supported');
@@ -33,17 +33,17 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
33
33
  mod
34
34
  ));
35
35
 
36
- // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js
36
+ // node_modules/.bun/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js
37
37
  var init_utils = __esm({
38
- "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/utils.js"() {
38
+ "node_modules/.bun/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/utils.js"() {
39
39
  init_utils2();
40
40
  }
41
41
  });
42
42
 
43
- // node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js
43
+ // node_modules/.bun/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js
44
44
  var EMOJI_RE, MODIFIER_RE;
45
45
  var init_dist = __esm({
46
- "node_modules/.bun/fast-string-truncated-width@1.2.1/node_modules/fast-string-truncated-width/dist/index.js"() {
46
+ "node_modules/.bun/fast-string-truncated-width@3.0.3/node_modules/fast-string-truncated-width/dist/index.js"() {
47
47
  init_utils2();
48
48
  init_utils();
49
49
  EMOJI_RE = new RegExp("[\\u{1F1E6}-\\u{1F1FF}]{2}|\\u{1F3F4}[\\u{E0061}-\\u{E007A}]{2}[\\u{E0030}-\\u{E0039}\\u{E0061}-\\u{E007A}]{1,3}\\u{E007F}|(?:\\p{Emoji}\\uFE0F\\u20E3?|\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation})(?:\\u200D(?:\\p{Emoji_Modifier_Base}\\p{Emoji_Modifier}?|\\p{Emoji_Presentation}|\\p{Emoji}\\uFE0F\\u20E3?))*", "yu");
@@ -51,18 +51,18 @@ var init_dist = __esm({
51
51
  }
52
52
  });
53
53
 
54
- // node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js
54
+ // node_modules/.bun/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js
55
55
  var init_dist2 = __esm({
56
- "node_modules/.bun/fast-string-width@1.1.0/node_modules/fast-string-width/dist/index.js"() {
56
+ "node_modules/.bun/fast-string-width@3.0.2/node_modules/fast-string-width/dist/index.js"() {
57
57
  init_utils2();
58
58
  init_dist();
59
59
  }
60
60
  });
61
61
 
62
- // node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js
62
+ // node_modules/.bun/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js
63
63
  var ANSI_ESCAPE_BELL, ANSI_CSI, ANSI_OSC, ANSI_ESCAPE_LINK, GROUP_REGEX;
64
64
  var init_main = __esm({
65
- "node_modules/.bun/fast-wrap-ansi@0.1.6/node_modules/fast-wrap-ansi/lib/main.js"() {
65
+ "node_modules/.bun/fast-wrap-ansi@0.2.2/node_modules/fast-wrap-ansi/lib/main.js"() {
66
66
  init_utils2();
67
67
  init_dist2();
68
68
  ANSI_ESCAPE_BELL = "\x07";
@@ -81,17 +81,17 @@ var require_src = __commonJS({
81
81
  var ESC = "\x1B";
82
82
  var CSI = `${ESC}[`;
83
83
  var beep = "\x07";
84
- var cursor = {
85
- to(x, y2) {
86
- if (!y2) return `${CSI}${x + 1}G`;
87
- return `${CSI}${y2 + 1};${x + 1}H`;
84
+ var cursor3 = {
85
+ to(x, y) {
86
+ if (!y) return `${CSI}${x + 1}G`;
87
+ return `${CSI}${y + 1};${x + 1}H`;
88
88
  },
89
- move(x, y2) {
89
+ move(x, y) {
90
90
  let ret = "";
91
91
  if (x < 0) ret += `${CSI}${-x}D`;
92
92
  else if (x > 0) ret += `${CSI}${x}C`;
93
- if (y2 < 0) ret += `${CSI}${-y2}A`;
94
- else if (y2 > 0) ret += `${CSI}${y2}B`;
93
+ if (y < 0) ret += `${CSI}${-y}A`;
94
+ else if (y > 0) ret += `${CSI}${y}B`;
95
95
  return ret;
96
96
  },
97
97
  up: (count = 1) => `${CSI}${count}A`,
@@ -110,7 +110,7 @@ var require_src = __commonJS({
110
110
  up: (count = 1) => `${CSI}S`.repeat(count),
111
111
  down: (count = 1) => `${CSI}T`.repeat(count)
112
112
  };
113
- var erase = {
113
+ var erase3 = {
114
114
  screen: `${CSI}2J`,
115
115
  up: (count = 1) => `${CSI}1J`.repeat(count),
116
116
  down: (count = 1) => `${CSI}J`.repeat(count),
@@ -119,106 +119,180 @@ var require_src = __commonJS({
119
119
  lineStart: `${CSI}1K`,
120
120
  lines(count) {
121
121
  let clear = "";
122
- for (let i = 0; i < count; i++)
123
- clear += this.line + (i < count - 1 ? cursor.up() : "");
122
+ for (let i2 = 0; i2 < count; i2++)
123
+ clear += this.line + (i2 < count - 1 ? cursor3.up() : "");
124
124
  if (count)
125
- clear += cursor.left;
125
+ clear += cursor3.left;
126
126
  return clear;
127
127
  }
128
128
  };
129
- module.exports = { cursor, scroll, erase, beep };
129
+ module.exports = { cursor: cursor3, scroll, erase: erase3, beep };
130
130
  }
131
131
  });
132
132
 
133
- // node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs
134
- import { styleText as y } from "node:util";
135
- import { stdout as S, stdin as $ } from "node:process";
136
- import { ReadStream as D } from "node:tty";
137
- var import_sisteransi, E, G, u, Y;
133
+ // node_modules/.bun/@clack+core@1.5.0/node_modules/@clack/core/dist/index.mjs
134
+ import { styleText } from "node:util";
135
+ import { stdout, stdin } from "node:process";
136
+ import { ReadStream } from "node:tty";
137
+ var import_sisteransi, a$1, t, settings, R;
138
138
  var init_dist3 = __esm({
139
- "node_modules/.bun/@clack+core@1.2.0/node_modules/@clack/core/dist/index.mjs"() {
139
+ "node_modules/.bun/@clack+core@1.5.0/node_modules/@clack/core/dist/index.mjs"() {
140
140
  init_utils2();
141
141
  init_main();
142
142
  import_sisteransi = __toESM(require_src(), 1);
143
- E = ["up", "down", "left", "right", "space", "enter", "cancel"];
144
- G = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
145
- u = { actions: new Set(E), aliases: /* @__PURE__ */ new Map([["k", "up"], ["j", "down"], ["h", "left"], ["l", "right"], ["", "cancel"], ["escape", "cancel"]]), messages: { cancel: "Canceled", error: "Something went wrong" }, withGuide: true, date: { monthNames: [...G], messages: { required: "Please enter a valid date", invalidMonth: "There are only 12 months in a year", invalidDay: (r, t2) => `There are only ${r} days in ${t2}`, afterMin: (r) => `Date must be on or after ${r.toISOString().slice(0, 10)}`, beforeMax: (r) => `Date must be on or before ${r.toISOString().slice(0, 10)}` } } };
146
- Y = globalThis.process.platform.startsWith("win");
143
+ a$1 = ["up", "down", "left", "right", "space", "enter", "cancel"];
144
+ t = [
145
+ "January",
146
+ "February",
147
+ "March",
148
+ "April",
149
+ "May",
150
+ "June",
151
+ "July",
152
+ "August",
153
+ "September",
154
+ "October",
155
+ "November",
156
+ "December"
157
+ ];
158
+ settings = {
159
+ actions: new Set(a$1),
160
+ aliases: /* @__PURE__ */ new Map([
161
+ // vim support
162
+ ["k", "up"],
163
+ ["j", "down"],
164
+ ["h", "left"],
165
+ ["l", "right"],
166
+ ["", "cancel"],
167
+ // opinionated defaults!
168
+ ["escape", "cancel"]
169
+ ]),
170
+ messages: {
171
+ cancel: "Canceled",
172
+ error: "Something went wrong"
173
+ },
174
+ withGuide: true,
175
+ accessible: void 0,
176
+ date: {
177
+ monthNames: [...t],
178
+ messages: {
179
+ required: "Please enter a valid date",
180
+ invalidMonth: "There are only 12 months in a year",
181
+ invalidDay: (n2, e) => `There are only ${n2} days in ${e}`,
182
+ afterMin: (n2) => `Date must be on or after ${n2.toISOString().slice(0, 10)}`,
183
+ beforeMax: (n2) => `Date must be on or before ${n2.toISOString().slice(0, 10)}`
184
+ }
185
+ }
186
+ };
187
+ R = globalThis.process.platform.startsWith("win");
147
188
  }
148
189
  });
149
190
 
150
- // node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs
151
- import { styleText as t, stripVTControlCharacters as ne } from "node:util";
152
- import P from "node:process";
153
- import { existsSync as Xe, lstatSync as we, readdirSync as ze } from "node:fs";
154
- import { dirname as be, join as Qe } from "node:path";
155
- function Ze() {
156
- return P.platform !== "win32" ? P.env.TERM !== "linux" : !!P.env.CI || !!P.env.WT_SESSION || !!P.env.TERMINUS_SUBLIME || P.env.ConEmuTask === "{cmd::Cmder}" || P.env.TERM_PROGRAM === "Terminus-Sublime" || P.env.TERM_PROGRAM === "vscode" || P.env.TERM === "xterm-256color" || P.env.TERM === "alacritty" || P.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
191
+ // node_modules/.bun/@clack+prompts@1.8.0/node_modules/@clack/prompts/dist/index.mjs
192
+ import { styleText as styleText2, stripVTControlCharacters } from "node:util";
193
+ import process$1 from "node:process";
194
+ import { existsSync, lstatSync, readdirSync } from "node:fs";
195
+ import { dirname, join } from "node:path";
196
+ function isUnicodeSupported() {
197
+ if (process$1.platform !== "win32") {
198
+ return process$1.env.TERM !== "linux";
199
+ }
200
+ return Boolean(process$1.env.CI) || Boolean(process$1.env.WT_SESSION) || Boolean(process$1.env.TERMINUS_SUBLIME) || process$1.env.ConEmuTask === "{cmd::Cmder}" || process$1.env.TERM_PROGRAM === "Terminus-Sublime" || process$1.env.TERM_PROGRAM === "vscode" || process$1.env.TERM === "xterm-256color" || process$1.env.TERM === "alacritty" || process$1.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
157
201
  }
158
- var import_sisteransi2, ee, w, _e, oe, ue, F, le, d, E2, Ie, Ee, z2, H2, te, U, J, xe, se, ce, Ge, $e, de, Oe, he, pe, me, ge, O2, Ve, je;
202
+ var import_sisteransi2, unicode, unicodeOr, S_STEP_ACTIVE, S_STEP_CANCEL, S_STEP_ERROR, S_STEP_SUBMIT, S_BAR_START, S_BAR, S_BAR_END, S_BAR_START_RIGHT, S_BAR_END_RIGHT, S_RADIO_ACTIVE, S_RADIO_INACTIVE, S_CHECKBOX_ACTIVE, S_CHECKBOX_SELECTED, S_CHECKBOX_INACTIVE, S_PASSWORD_MASK, S_BAR_H, S_CORNER_TOP_RIGHT, S_CONNECT_LEFT, S_CORNER_BOTTOM_RIGHT, S_CORNER_BOTTOM_LEFT, S_CORNER_TOP_LEFT, S_INFO, S_SUCCESS, S_WARN, S_ERROR, MULTISELECT_INSTRUCTIONS, log, u2, SELECT_INSTRUCTIONS, i;
159
203
  var init_dist4 = __esm({
160
- "node_modules/.bun/@clack+prompts@1.2.0/node_modules/@clack/prompts/dist/index.mjs"() {
204
+ "node_modules/.bun/@clack+prompts@1.8.0/node_modules/@clack/prompts/dist/index.mjs"() {
161
205
  init_utils2();
162
206
  init_dist3();
163
207
  init_dist3();
164
208
  init_main();
165
209
  init_dist2();
166
210
  import_sisteransi2 = __toESM(require_src(), 1);
167
- ee = Ze();
168
- w = (e, i) => ee ? e : i;
169
- _e = w("\u25C6", "*");
170
- oe = w("\u25A0", "x");
171
- ue = w("\u25B2", "x");
172
- F = w("\u25C7", "o");
173
- le = w("\u250C", "T");
174
- d = w("\u2502", "|");
175
- E2 = w("\u2514", "\u2014");
176
- Ie = w("\u2510", "T");
177
- Ee = w("\u2518", "\u2014");
178
- z2 = w("\u25CF", ">");
179
- H2 = w("\u25CB", " ");
180
- te = w("\u25FB", "[\u2022]");
181
- U = w("\u25FC", "[+]");
182
- J = w("\u25FB", "[ ]");
183
- xe = w("\u25AA", "\u2022");
184
- se = w("\u2500", "-");
185
- ce = w("\u256E", "+");
186
- Ge = w("\u251C", "+");
187
- $e = w("\u256F", "+");
188
- de = w("\u2570", "+");
189
- Oe = w("\u256D", "+");
190
- he = w("\u25CF", "\u2022");
191
- pe = w("\u25C6", "*");
192
- me = w("\u25B2", "!");
193
- ge = w("\u25A0", "x");
194
- O2 = { message: (e = [], { symbol: i = t("gray", d), secondarySymbol: s = t("gray", d), output: r = process.stdout, spacing: u2 = 1, withGuide: n } = {}) => {
195
- const o = [], c2 = n ?? u.withGuide, a = c2 ? s : "", l = c2 ? `${i} ` : "", $2 = c2 ? `${s} ` : "";
196
- for (let p = 0; p < u2; p++) o.push(a);
197
- const y2 = Array.isArray(e) ? e : e.split(`
211
+ unicode = isUnicodeSupported();
212
+ unicodeOr = (o, e) => unicode ? o : e;
213
+ S_STEP_ACTIVE = unicodeOr("\u25C6", "*");
214
+ S_STEP_CANCEL = unicodeOr("\u25A0", "x");
215
+ S_STEP_ERROR = unicodeOr("\u25B2", "x");
216
+ S_STEP_SUBMIT = unicodeOr("\u25C7", "o");
217
+ S_BAR_START = unicodeOr("\u250C", "T");
218
+ S_BAR = unicodeOr("\u2502", "|");
219
+ S_BAR_END = unicodeOr("\u2514", "\u2014");
220
+ S_BAR_START_RIGHT = unicodeOr("\u2510", "T");
221
+ S_BAR_END_RIGHT = unicodeOr("\u2518", "\u2014");
222
+ S_RADIO_ACTIVE = unicodeOr("\u25CF", ">");
223
+ S_RADIO_INACTIVE = unicodeOr("\u25CB", " ");
224
+ S_CHECKBOX_ACTIVE = unicodeOr("\u25FB", "[\u2022]");
225
+ S_CHECKBOX_SELECTED = unicodeOr("\u25FC", "[+]");
226
+ S_CHECKBOX_INACTIVE = unicodeOr("\u25FB", "[ ]");
227
+ S_PASSWORD_MASK = unicodeOr("\u25AA", "\u2022");
228
+ S_BAR_H = unicodeOr("\u2500", "-");
229
+ S_CORNER_TOP_RIGHT = unicodeOr("\u256E", "+");
230
+ S_CONNECT_LEFT = unicodeOr("\u251C", "+");
231
+ S_CORNER_BOTTOM_RIGHT = unicodeOr("\u256F", "+");
232
+ S_CORNER_BOTTOM_LEFT = unicodeOr("\u2570", "+");
233
+ S_CORNER_TOP_LEFT = unicodeOr("\u256D", "+");
234
+ S_INFO = unicodeOr("\u25CF", "\u2022");
235
+ S_SUCCESS = unicodeOr("\u25C6", "*");
236
+ S_WARN = unicodeOr("\u25B2", "!");
237
+ S_ERROR = unicodeOr("\u25A0", "x");
238
+ MULTISELECT_INSTRUCTIONS = [
239
+ `${styleText2("dim", "\u2191/\u2193")} to navigate`,
240
+ `${styleText2("dim", "Space:")} select`,
241
+ `${styleText2("dim", "Enter:")} confirm`
242
+ ];
243
+ log = {
244
+ message: (s = [], {
245
+ symbol: e = styleText2("gray", S_BAR),
246
+ secondarySymbol: r2 = styleText2("gray", S_BAR),
247
+ output: m = process.stdout,
248
+ spacing: l = 1,
249
+ withGuide: c
250
+ } = {}) => {
251
+ const t2 = [], o = c ?? settings.withGuide, f = o ? r2 : "", O = o ? `${e} ` : "", u3 = o ? `${r2} ` : "";
252
+ for (let i2 = 0; i2 < l; i2++)
253
+ t2.push(f);
254
+ const g = Array.isArray(s) ? s : s.split(`
198
255
  `);
199
- if (y2.length > 0) {
200
- const [p, ...m] = y2;
201
- p.length > 0 ? o.push(`${l}${p}`) : o.push(c2 ? i : "");
202
- for (const g of m) g.length > 0 ? o.push(`${$2}${g}`) : o.push(c2 ? s : "");
203
- }
204
- r.write(`${o.join(`
256
+ if (g.length > 0) {
257
+ const [i2, ...y] = g;
258
+ i2.length > 0 ? t2.push(`${O}${i2}`) : t2.push(o ? e : "");
259
+ for (const p of y)
260
+ p.length > 0 ? t2.push(`${u3}${p}`) : t2.push(o ? r2 : "");
261
+ }
262
+ m.write(`${t2.join(`
205
263
  `)}
206
264
  `);
207
- }, info: (e, i) => {
208
- O2.message(e, { ...i, symbol: t("blue", he) });
209
- }, success: (e, i) => {
210
- O2.message(e, { ...i, symbol: t("green", pe) });
211
- }, step: (e, i) => {
212
- O2.message(e, { ...i, symbol: t("green", F) });
213
- }, warn: (e, i) => {
214
- O2.message(e, { ...i, symbol: t("yellow", me) });
215
- }, warning: (e, i) => {
216
- O2.warn(e, i);
217
- }, error: (e, i) => {
218
- O2.message(e, { ...i, symbol: t("red", ge) });
219
- } };
220
- Ve = { light: w("\u2500", "-"), heavy: w("\u2501", "="), block: w("\u2588", "#") };
221
- je = `${t("gray", d)} `;
265
+ },
266
+ info: (s, e) => {
267
+ log.message(s, { ...e, symbol: styleText2("blue", S_INFO) });
268
+ },
269
+ success: (s, e) => {
270
+ log.message(s, { ...e, symbol: styleText2("green", S_SUCCESS) });
271
+ },
272
+ step: (s, e) => {
273
+ log.message(s, { ...e, symbol: styleText2("green", S_STEP_SUBMIT) });
274
+ },
275
+ warn: (s, e) => {
276
+ log.message(s, { ...e, symbol: styleText2("yellow", S_WARN) });
277
+ },
278
+ /** alias for `log.warn()`. */
279
+ warning: (s, e) => {
280
+ log.warn(s, e);
281
+ },
282
+ error: (s, e) => {
283
+ log.message(s, { ...e, symbol: styleText2("red", S_ERROR) });
284
+ }
285
+ };
286
+ u2 = {
287
+ light: unicodeOr("\u2500", "-"),
288
+ heavy: unicodeOr("\u2501", "="),
289
+ block: unicodeOr("\u2588", "#")
290
+ };
291
+ SELECT_INSTRUCTIONS = [
292
+ `${styleText2("dim", "\u2191/\u2193")} to navigate`,
293
+ `${styleText2("dim", "Enter:")} confirm`
294
+ ];
295
+ i = `${styleText2("gray", S_BAR)} `;
222
296
  }
223
297
  });
224
298
 
@@ -263,7 +337,7 @@ function stringify(value) {
263
337
  function formatMessage(...args) {
264
338
  return args.map(stringify).join(" ");
265
339
  }
266
- var colors, currentLogLevel, log, error, warn, info, success;
340
+ var colors, currentLogLevel, log2, error, warn, info, success;
267
341
  var init_cli_output = __esm({
268
342
  "packages/tooling/src/utils/cli-output.ts"() {
269
343
  "use strict";
@@ -296,7 +370,7 @@ var init_cli_output = __esm({
296
370
  currentLogLevel = envLevel;
297
371
  }
298
372
  }
299
- log = {
373
+ log2 = {
300
374
  /**
301
375
  * Logs an error message (always shows unless Quiet level)
302
376
  * Uses clack's log.error + explicit red color
@@ -304,7 +378,7 @@ var init_cli_output = __esm({
304
378
  error(...args) {
305
379
  if (currentLogLevel < 0 /* Quiet */) return;
306
380
  const message = formatMessage(...args);
307
- O2.error(colorize(message, colors.brightRed));
381
+ log.error(colorize(message, colors.brightRed));
308
382
  },
309
383
  /**
310
384
  * Logs a warning message (shows at Normal level and above)
@@ -313,7 +387,7 @@ var init_cli_output = __esm({
313
387
  warn(...args) {
314
388
  if (currentLogLevel < 1 /* Normal */) return;
315
389
  const message = formatMessage(...args);
316
- O2.warn(colorize(message, colors.brightYellow));
390
+ log.warn(colorize(message, colors.brightYellow));
317
391
  },
318
392
  /**
319
393
  * Logs an info message (shows at Normal level and above)
@@ -322,7 +396,7 @@ var init_cli_output = __esm({
322
396
  info(...args) {
323
397
  if (currentLogLevel < 1 /* Normal */) return;
324
398
  const message = formatMessage(...args);
325
- O2.info(colorize(message, colors.brightCyan));
399
+ log.info(colorize(message, colors.brightCyan));
326
400
  },
327
401
  /**
328
402
  * Logs a success message (shows at Normal level and above)
@@ -331,7 +405,7 @@ var init_cli_output = __esm({
331
405
  success(...args) {
332
406
  if (currentLogLevel < 1 /* Normal */) return;
333
407
  const message = formatMessage(...args);
334
- O2.success(colorize(message, colors.brightGreen));
408
+ log.success(colorize(message, colors.brightGreen));
335
409
  },
336
410
  /**
337
411
  * Logs a debug message (only shows at Verbose level and above)
@@ -340,7 +414,7 @@ var init_cli_output = __esm({
340
414
  debug(...args) {
341
415
  if (currentLogLevel < 2 /* Verbose */) return;
342
416
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
343
- O2.message(
417
+ log.message(
344
418
  colorize(
345
419
  `[${timeStamp}] \u{1F50D} DEBUG: ${formatMessage(...args)}`,
346
420
  colors.gray
@@ -354,7 +428,7 @@ var init_cli_output = __esm({
354
428
  trace(...args) {
355
429
  if (currentLogLevel < 3 /* Debug */) return;
356
430
  const timeStamp = (/* @__PURE__ */ new Date()).toISOString().slice(11, 19);
357
- O2.message(
431
+ log.message(
358
432
  colorize(
359
433
  `[${timeStamp}] \u{1F52C} TRACE: ${formatMessage(...args)}`,
360
434
  colors.gray
@@ -362,10 +436,10 @@ var init_cli_output = __esm({
362
436
  );
363
437
  }
364
438
  };
365
- error = log.error.bind(log);
366
- warn = log.warn.bind(log);
367
- info = log.info.bind(log);
368
- success = log.success.bind(log);
439
+ error = log2.error.bind(log2);
440
+ warn = log2.warn.bind(log2);
441
+ info = log2.info.bind(log2);
442
+ success = log2.success.bind(log2);
369
443
  }
370
444
  });
371
445
 
@@ -583,9 +657,9 @@ var require_is_glob = __commonJS({
583
657
  index += 2;
584
658
  var close = chars[open];
585
659
  if (close) {
586
- var n = str.indexOf(close, index);
587
- if (n !== -1) {
588
- index = n + 1;
660
+ var n2 = str.indexOf(close, index);
661
+ if (n2 !== -1) {
662
+ index = n2 + 1;
589
663
  }
590
664
  }
591
665
  if (str[index] === "!") {
@@ -611,9 +685,9 @@ var require_is_glob = __commonJS({
611
685
  index += 2;
612
686
  var close = chars[open];
613
687
  if (close) {
614
- var n = str.indexOf(close, index);
615
- if (n !== -1) {
616
- index = n + 1;
688
+ var n2 = str.indexOf(close, index);
689
+ if (n2 !== -1) {
690
+ index = n2 + 1;
617
691
  }
618
692
  }
619
693
  if (str[index] === "!") {
@@ -691,8 +765,8 @@ var require_utils = __commonJS({
691
765
  if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
692
766
  return (Number(max) - Number(min)) / Number(step) >= limit;
693
767
  };
694
- exports.escapeNode = (block, n = 0, type) => {
695
- const node = block.nodes[n];
768
+ exports.escapeNode = (block2, n2 = 0, type) => {
769
+ const node = block2.nodes[n2];
696
770
  if (!node) return;
697
771
  if (type && node.type === type || node.type === "open" || node.type === "close") {
698
772
  if (node.escaped !== true) {
@@ -709,15 +783,15 @@ var require_utils = __commonJS({
709
783
  }
710
784
  return false;
711
785
  };
712
- exports.isInvalidBrace = (block) => {
713
- if (block.type !== "brace") return false;
714
- if (block.invalid === true || block.dollar) return true;
715
- if (block.commas >> 0 + block.ranges >> 0 === 0) {
716
- block.invalid = true;
786
+ exports.isInvalidBrace = (block2) => {
787
+ if (block2.type !== "brace") return false;
788
+ if (block2.invalid === true || block2.dollar) return true;
789
+ if (block2.commas >> 0 + block2.ranges >> 0 === 0) {
790
+ block2.invalid = true;
717
791
  return true;
718
792
  }
719
- if (block.open !== true || block.close !== true) {
720
- block.invalid = true;
793
+ if (block2.open !== true || block2.close !== true) {
794
+ block2.invalid = true;
721
795
  return true;
722
796
  }
723
797
  return false;
@@ -736,8 +810,8 @@ var require_utils = __commonJS({
736
810
  exports.flatten = (...args) => {
737
811
  const result = [];
738
812
  const flat = (arr) => {
739
- for (let i = 0; i < arr.length; i++) {
740
- const ele = arr[i];
813
+ for (let i2 = 0; i2 < arr.length; i2++) {
814
+ const ele = arr[i2];
741
815
  if (Array.isArray(ele)) {
742
816
  flat(ele);
743
817
  continue;
@@ -831,9 +905,9 @@ var require_to_regex_range = __commonJS({
831
905
  if (toRegexRange.cache.hasOwnProperty(cacheKey)) {
832
906
  return toRegexRange.cache[cacheKey].result;
833
907
  }
834
- let a = Math.min(min, max);
908
+ let a2 = Math.min(min, max);
835
909
  let b = Math.max(min, max);
836
- if (Math.abs(a - b) === 1) {
910
+ if (Math.abs(a2 - b) === 1) {
837
911
  let result = min + "|" + max;
838
912
  if (opts.capture) {
839
913
  return `(${result})`;
@@ -844,20 +918,20 @@ var require_to_regex_range = __commonJS({
844
918
  return `(?:${result})`;
845
919
  }
846
920
  let isPadded = hasPadding(min) || hasPadding(max);
847
- let state = { min, max, a, b };
921
+ let state = { min, max, a: a2, b };
848
922
  let positives = [];
849
923
  let negatives = [];
850
924
  if (isPadded) {
851
925
  state.isPadded = isPadded;
852
926
  state.maxLen = String(state.max).length;
853
927
  }
854
- if (a < 0) {
928
+ if (a2 < 0) {
855
929
  let newMin = b < 0 ? Math.abs(b) : 1;
856
- negatives = splitToPatterns(newMin, Math.abs(a), state, opts);
857
- a = state.a = 0;
930
+ negatives = splitToPatterns(newMin, Math.abs(a2), state, opts);
931
+ a2 = state.a = 0;
858
932
  }
859
933
  if (b >= 0) {
860
- positives = splitToPatterns(a, b, state, opts);
934
+ positives = splitToPatterns(a2, b, state, opts);
861
935
  }
862
936
  state.negatives = negatives;
863
937
  state.positives = positives;
@@ -905,8 +979,8 @@ var require_to_regex_range = __commonJS({
905
979
  let digits = zipped.length;
906
980
  let pattern = "";
907
981
  let count = 0;
908
- for (let i = 0; i < digits; i++) {
909
- let [startDigit, stopDigit] = zipped[i];
982
+ for (let i2 = 0; i2 < digits; i2++) {
983
+ let [startDigit, stopDigit] = zipped[i2];
910
984
  if (startDigit === stopDigit) {
911
985
  pattern += startDigit;
912
986
  } else if (startDigit !== "0" || stopDigit !== "9") {
@@ -925,8 +999,8 @@ var require_to_regex_range = __commonJS({
925
999
  let tokens = [];
926
1000
  let start = min;
927
1001
  let prev;
928
- for (let i = 0; i < ranges.length; i++) {
929
- let max2 = ranges[i];
1002
+ for (let i2 = 0; i2 < ranges.length; i2++) {
1003
+ let max2 = ranges[i2];
930
1004
  let obj = rangeToPattern(String(start), String(max2), options);
931
1005
  let zeros = "";
932
1006
  if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
@@ -961,13 +1035,13 @@ var require_to_regex_range = __commonJS({
961
1035
  }
962
1036
  return result;
963
1037
  }
964
- function zip(a, b) {
1038
+ function zip(a2, b) {
965
1039
  let arr = [];
966
- for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
1040
+ for (let i2 = 0; i2 < a2.length; i2++) arr.push([a2[i2], b[i2]]);
967
1041
  return arr;
968
1042
  }
969
- function compare(a, b) {
970
- return a > b ? 1 : b > a ? -1 : 0;
1043
+ function compare(a2, b) {
1044
+ return a2 > b ? 1 : b > a2 ? -1 : 0;
971
1045
  }
972
1046
  function contains(arr, key, val) {
973
1047
  return arr.some((ele) => ele[key] === val);
@@ -985,8 +1059,8 @@ var require_to_regex_range = __commonJS({
985
1059
  }
986
1060
  return "";
987
1061
  }
988
- function toCharacterClass(a, b, options) {
989
- return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
1062
+ function toCharacterClass(a2, b, options) {
1063
+ return `[${a2}${b - a2 === 1 ? "" : "-"}${b}]`;
990
1064
  }
991
1065
  function hasPadding(str) {
992
1066
  return /^-?(0+)\d/.test(str);
@@ -1065,8 +1139,8 @@ var require_fill_range = __commonJS({
1065
1139
  return negative ? "-" + input : input;
1066
1140
  };
1067
1141
  var toSequence = (parts, options, maxLen) => {
1068
- parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1069
- parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
1142
+ parts.negatives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0);
1143
+ parts.positives.sort((a2, b) => a2 < b ? -1 : a2 > b ? 1 : 0);
1070
1144
  let prefix = options.capture ? "" : "?:";
1071
1145
  let positives = "";
1072
1146
  let negatives = "";
@@ -1087,12 +1161,12 @@ var require_fill_range = __commonJS({
1087
1161
  }
1088
1162
  return result;
1089
1163
  };
1090
- var toRange = (a, b, isNumbers, options) => {
1164
+ var toRange = (a2, b, isNumbers, options) => {
1091
1165
  if (isNumbers) {
1092
- return toRegexRange(a, b, { wrap: false, ...options });
1166
+ return toRegexRange(a2, b, { wrap: false, ...options });
1093
1167
  }
1094
- let start = String.fromCharCode(a);
1095
- if (a === b) return start;
1168
+ let start = String.fromCharCode(a2);
1169
+ if (a2 === b) return start;
1096
1170
  let stop = String.fromCharCode(b);
1097
1171
  return `[${start}-${stop}]`;
1098
1172
  };
@@ -1118,15 +1192,15 @@ var require_fill_range = __commonJS({
1118
1192
  return [];
1119
1193
  };
1120
1194
  var fillNumbers = (start, end, step = 1, options = {}) => {
1121
- let a = Number(start);
1195
+ let a2 = Number(start);
1122
1196
  let b = Number(end);
1123
- if (!Number.isInteger(a) || !Number.isInteger(b)) {
1197
+ if (!Number.isInteger(a2) || !Number.isInteger(b)) {
1124
1198
  if (options.strictRanges === true) throw rangeError([start, end]);
1125
1199
  return [];
1126
1200
  }
1127
- if (a === 0) a = 0;
1201
+ if (a2 === 0) a2 = 0;
1128
1202
  if (b === 0) b = 0;
1129
- let descending = a > b;
1203
+ let descending = a2 > b;
1130
1204
  let startString = String(start);
1131
1205
  let endString = String(end);
1132
1206
  let stepString = String(step);
@@ -1142,13 +1216,13 @@ var require_fill_range = __commonJS({
1142
1216
  let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
1143
1217
  let range = [];
1144
1218
  let index = 0;
1145
- while (descending ? a >= b : a <= b) {
1219
+ while (descending ? a2 >= b : a2 <= b) {
1146
1220
  if (options.toRegex === true && step > 1) {
1147
- push(a);
1221
+ push(a2);
1148
1222
  } else {
1149
- range.push(pad(format(a, index), maxLen, toNumber));
1223
+ range.push(pad(format(a2, index), maxLen, toNumber));
1150
1224
  }
1151
- a = descending ? a - step : a + step;
1225
+ a2 = descending ? a2 - step : a2 + step;
1152
1226
  index++;
1153
1227
  }
1154
1228
  if (options.toRegex === true) {
@@ -1161,19 +1235,19 @@ var require_fill_range = __commonJS({
1161
1235
  return invalidRange(start, end, options);
1162
1236
  }
1163
1237
  let format = options.transform || ((val) => String.fromCharCode(val));
1164
- let a = `${start}`.charCodeAt(0);
1238
+ let a2 = `${start}`.charCodeAt(0);
1165
1239
  let b = `${end}`.charCodeAt(0);
1166
- let descending = a > b;
1167
- let min = Math.min(a, b);
1168
- let max = Math.max(a, b);
1240
+ let descending = a2 > b;
1241
+ let min = Math.min(a2, b);
1242
+ let max = Math.max(a2, b);
1169
1243
  if (options.toRegex && step === 1) {
1170
1244
  return toRange(min, max, false, options);
1171
1245
  }
1172
1246
  let range = [];
1173
1247
  let index = 0;
1174
- while (descending ? a >= b : a <= b) {
1175
- range.push(format(a, index));
1176
- a = descending ? a - step : a + step;
1248
+ while (descending ? a2 >= b : a2 <= b) {
1249
+ range.push(format(a2, index));
1250
+ a2 = descending ? a2 - step : a2 + step;
1177
1251
  index++;
1178
1252
  }
1179
1253
  if (options.toRegex === true) {
@@ -1297,17 +1371,17 @@ var require_expand = __commonJS({
1297
1371
  const walk = (node, parent = {}) => {
1298
1372
  node.queue = [];
1299
1373
  let p = parent;
1300
- let q2 = parent.queue;
1374
+ let q = parent.queue;
1301
1375
  while (p.type !== "brace" && p.type !== "root" && p.parent) {
1302
1376
  p = p.parent;
1303
- q2 = p.queue;
1377
+ q = p.queue;
1304
1378
  }
1305
1379
  if (node.invalid || node.dollar) {
1306
- q2.push(append(q2.pop(), stringify2(node, options)));
1380
+ q.push(append(q.pop(), stringify2(node, options)));
1307
1381
  return;
1308
1382
  }
1309
1383
  if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
1310
- q2.push(append(q2.pop(), ["{}"]));
1384
+ q.push(append(q.pop(), ["{}"]));
1311
1385
  return;
1312
1386
  }
1313
1387
  if (node.nodes && node.ranges > 0) {
@@ -1319,26 +1393,26 @@ var require_expand = __commonJS({
1319
1393
  if (range.length === 0) {
1320
1394
  range = stringify2(node, options);
1321
1395
  }
1322
- q2.push(append(q2.pop(), range));
1396
+ q.push(append(q.pop(), range));
1323
1397
  node.nodes = [];
1324
1398
  return;
1325
1399
  }
1326
1400
  const enclose = utils.encloseBrace(node);
1327
1401
  let queue = node.queue;
1328
- let block = node;
1329
- while (block.type !== "brace" && block.type !== "root" && block.parent) {
1330
- block = block.parent;
1331
- queue = block.queue;
1402
+ let block2 = node;
1403
+ while (block2.type !== "brace" && block2.type !== "root" && block2.parent) {
1404
+ block2 = block2.parent;
1405
+ queue = block2.queue;
1332
1406
  }
1333
- for (let i = 0; i < node.nodes.length; i++) {
1334
- const child = node.nodes[i];
1407
+ for (let i2 = 0; i2 < node.nodes.length; i2++) {
1408
+ const child = node.nodes[i2];
1335
1409
  if (child.type === "comma" && node.type === "brace") {
1336
- if (i === 1) queue.push("");
1410
+ if (i2 === 1) queue.push("");
1337
1411
  queue.push("");
1338
1412
  continue;
1339
1413
  }
1340
1414
  if (child.type === "close") {
1341
- q2.push(append(q2.pop(), queue, enclose));
1415
+ q.push(append(q.pop(), queue, enclose));
1342
1416
  continue;
1343
1417
  }
1344
1418
  if (child.value && child.type !== "open") {
@@ -1505,7 +1579,7 @@ var require_parse = __commonJS({
1505
1579
  }
1506
1580
  const ast = { type: "root", input, nodes: [] };
1507
1581
  const stack = [ast];
1508
- let block = ast;
1582
+ let block2 = ast;
1509
1583
  let prev = ast;
1510
1584
  let brackets = 0;
1511
1585
  const length = input.length;
@@ -1521,15 +1595,15 @@ var require_parse = __commonJS({
1521
1595
  prev.value += node.value;
1522
1596
  return;
1523
1597
  }
1524
- block.nodes.push(node);
1525
- node.parent = block;
1598
+ block2.nodes.push(node);
1599
+ node.parent = block2;
1526
1600
  node.prev = prev;
1527
1601
  prev = node;
1528
1602
  return node;
1529
1603
  };
1530
1604
  push({ type: "bos" });
1531
1605
  while (index < length) {
1532
- block = stack[stack.length - 1];
1606
+ block2 = stack[stack.length - 1];
1533
1607
  value = advance();
1534
1608
  if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) {
1535
1609
  continue;
@@ -1566,19 +1640,19 @@ var require_parse = __commonJS({
1566
1640
  continue;
1567
1641
  }
1568
1642
  if (value === CHAR_LEFT_PARENTHESES) {
1569
- block = push({ type: "paren", nodes: [] });
1570
- stack.push(block);
1643
+ block2 = push({ type: "paren", nodes: [] });
1644
+ stack.push(block2);
1571
1645
  push({ type: "text", value });
1572
1646
  continue;
1573
1647
  }
1574
1648
  if (value === CHAR_RIGHT_PARENTHESES) {
1575
- if (block.type !== "paren") {
1649
+ if (block2.type !== "paren") {
1576
1650
  push({ type: "text", value });
1577
1651
  continue;
1578
1652
  }
1579
- block = stack.pop();
1653
+ block2 = stack.pop();
1580
1654
  push({ type: "text", value });
1581
- block = stack[stack.length - 1];
1655
+ block2 = stack[stack.length - 1];
1582
1656
  continue;
1583
1657
  }
1584
1658
  if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
@@ -1603,7 +1677,7 @@ var require_parse = __commonJS({
1603
1677
  }
1604
1678
  if (value === CHAR_LEFT_CURLY_BRACE) {
1605
1679
  depth++;
1606
- const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
1680
+ const dollar = prev.value && prev.value.slice(-1) === "$" || block2.dollar === true;
1607
1681
  const brace = {
1608
1682
  type: "brace",
1609
1683
  open: true,
@@ -1614,52 +1688,52 @@ var require_parse = __commonJS({
1614
1688
  ranges: 0,
1615
1689
  nodes: []
1616
1690
  };
1617
- block = push(brace);
1618
- stack.push(block);
1691
+ block2 = push(brace);
1692
+ stack.push(block2);
1619
1693
  push({ type: "open", value });
1620
1694
  continue;
1621
1695
  }
1622
1696
  if (value === CHAR_RIGHT_CURLY_BRACE) {
1623
- if (block.type !== "brace") {
1697
+ if (block2.type !== "brace") {
1624
1698
  push({ type: "text", value });
1625
1699
  continue;
1626
1700
  }
1627
1701
  const type = "close";
1628
- block = stack.pop();
1629
- block.close = true;
1702
+ block2 = stack.pop();
1703
+ block2.close = true;
1630
1704
  push({ type, value });
1631
1705
  depth--;
1632
- block = stack[stack.length - 1];
1706
+ block2 = stack[stack.length - 1];
1633
1707
  continue;
1634
1708
  }
1635
1709
  if (value === CHAR_COMMA && depth > 0) {
1636
- if (block.ranges > 0) {
1637
- block.ranges = 0;
1638
- const open = block.nodes.shift();
1639
- block.nodes = [open, { type: "text", value: stringify2(block) }];
1710
+ if (block2.ranges > 0) {
1711
+ block2.ranges = 0;
1712
+ const open = block2.nodes.shift();
1713
+ block2.nodes = [open, { type: "text", value: stringify2(block2) }];
1640
1714
  }
1641
1715
  push({ type: "comma", value });
1642
- block.commas++;
1716
+ block2.commas++;
1643
1717
  continue;
1644
1718
  }
1645
- if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
1646
- const siblings = block.nodes;
1719
+ if (value === CHAR_DOT && depth > 0 && block2.commas === 0) {
1720
+ const siblings = block2.nodes;
1647
1721
  if (depth === 0 || siblings.length === 0) {
1648
1722
  push({ type: "text", value });
1649
1723
  continue;
1650
1724
  }
1651
1725
  if (prev.type === "dot") {
1652
- block.range = [];
1726
+ block2.range = [];
1653
1727
  prev.value += value;
1654
1728
  prev.type = "range";
1655
- if (block.nodes.length !== 3 && block.nodes.length !== 5) {
1656
- block.invalid = true;
1657
- block.ranges = 0;
1729
+ if (block2.nodes.length !== 3 && block2.nodes.length !== 5) {
1730
+ block2.invalid = true;
1731
+ block2.ranges = 0;
1658
1732
  prev.type = "text";
1659
1733
  continue;
1660
1734
  }
1661
- block.ranges++;
1662
- block.args = [];
1735
+ block2.ranges++;
1736
+ block2.args = [];
1663
1737
  continue;
1664
1738
  }
1665
1739
  if (prev.type === "range") {
@@ -1667,7 +1741,7 @@ var require_parse = __commonJS({
1667
1741
  const before = siblings[siblings.length - 1];
1668
1742
  before.value += prev.value + value;
1669
1743
  prev = before;
1670
- block.ranges--;
1744
+ block2.ranges--;
1671
1745
  continue;
1672
1746
  }
1673
1747
  push({ type: "dot", value });
@@ -1676,9 +1750,9 @@ var require_parse = __commonJS({
1676
1750
  push({ type: "text", value });
1677
1751
  }
1678
1752
  do {
1679
- block = stack.pop();
1680
- if (block.type !== "root") {
1681
- block.nodes.forEach((node) => {
1753
+ block2 = stack.pop();
1754
+ if (block2.type !== "root") {
1755
+ block2.nodes.forEach((node) => {
1682
1756
  if (!node.nodes) {
1683
1757
  if (node.type === "open") node.isOpen = true;
1684
1758
  if (node.type === "close") node.isClose = true;
@@ -1687,8 +1761,8 @@ var require_parse = __commonJS({
1687
1761
  }
1688
1762
  });
1689
1763
  const parent = stack[stack.length - 1];
1690
- const index2 = parent.nodes.indexOf(block);
1691
- parent.nodes.splice(index2, 1, ...block.nodes);
1764
+ const index2 = parent.nodes.indexOf(block2);
1765
+ parent.nodes.splice(index2, 1, ...block2.nodes);
1692
1766
  }
1693
1767
  } while (stack.length > 0);
1694
1768
  push({ type: "eos" });
@@ -2321,9 +2395,9 @@ var require_scan = __commonJS({
2321
2395
  if (opts.parts === true || opts.tokens === true) {
2322
2396
  let prevIndex;
2323
2397
  for (let idx = 0; idx < slashes.length; idx++) {
2324
- const n = prevIndex ? prevIndex + 1 : start;
2325
- const i = slashes[idx];
2326
- const value = input.slice(n, i);
2398
+ const n2 = prevIndex ? prevIndex + 1 : start;
2399
+ const i2 = slashes[idx];
2400
+ const value = input.slice(n2, i2);
2327
2401
  if (opts.tokens) {
2328
2402
  if (idx === 0 && start !== 0) {
2329
2403
  tokens[idx].isPrefix = true;
@@ -2337,7 +2411,7 @@ var require_scan = __commonJS({
2337
2411
  if (idx !== 0 || value !== "") {
2338
2412
  parts.push(value);
2339
2413
  }
2340
- prevIndex = i;
2414
+ prevIndex = i2;
2341
2415
  }
2342
2416
  if (prevIndex && prevIndex + 1 < input.length) {
2343
2417
  const value = input.slice(prevIndex + 1);
@@ -2466,15 +2540,15 @@ var require_parse2 = __commonJS({
2466
2540
  };
2467
2541
  var hasRepeatedCharPrefixOverlap = (branches) => {
2468
2542
  const values = branches.map(normalizeSimpleBranch).filter(Boolean);
2469
- for (let i = 0; i < values.length; i++) {
2470
- for (let j = i + 1; j < values.length; j++) {
2471
- const a = values[i];
2543
+ for (let i2 = 0; i2 < values.length; i2++) {
2544
+ for (let j = i2 + 1; j < values.length; j++) {
2545
+ const a2 = values[i2];
2472
2546
  const b = values[j];
2473
- const char = a[0];
2474
- if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) {
2547
+ const char = a2[0];
2548
+ if (!char || a2 !== char.repeat(a2.length) || b !== char.repeat(b.length)) {
2475
2549
  continue;
2476
2550
  }
2477
- if (a === b || a.startsWith(b) || b.startsWith(a)) {
2551
+ if (a2 === b || a2.startsWith(b) || b.startsWith(a2)) {
2478
2552
  return true;
2479
2553
  }
2480
2554
  }
@@ -2489,8 +2563,8 @@ var require_parse2 = __commonJS({
2489
2563
  let paren = 0;
2490
2564
  let quote = 0;
2491
2565
  let escaped = false;
2492
- for (let i = 1; i < pattern.length; i++) {
2493
- const ch = pattern[i];
2566
+ for (let i2 = 1; i2 < pattern.length; i2++) {
2567
+ const ch = pattern[i2];
2494
2568
  if (escaped === true) {
2495
2569
  escaped = false;
2496
2570
  continue;
@@ -2524,13 +2598,13 @@ var require_parse2 = __commonJS({
2524
2598
  if (ch === ")") {
2525
2599
  paren--;
2526
2600
  if (paren === 0) {
2527
- if (requireEnd === true && i !== pattern.length - 1) {
2601
+ if (requireEnd === true && i2 !== pattern.length - 1) {
2528
2602
  return;
2529
2603
  }
2530
2604
  return {
2531
2605
  type: pattern[0],
2532
- body: pattern.slice(2, i),
2533
- end: i
2606
+ body: pattern.slice(2, i2),
2607
+ end: i2
2534
2608
  };
2535
2609
  }
2536
2610
  }
@@ -2662,7 +2736,7 @@ var require_parse2 = __commonJS({
2662
2736
  let prev = bos;
2663
2737
  let value;
2664
2738
  const eos = () => state.index === len - 1;
2665
- const peek = state.peek = (n = 1) => input[state.index + n];
2739
+ const peek = state.peek = (n2 = 1) => input[state.index + n2];
2666
2740
  const advance = state.advance = () => input[++state.index] || "";
2667
2741
  const remaining = () => input.slice(state.index + 1);
2668
2742
  const consume = (value2 = "", num = 0) => {
@@ -2743,10 +2817,10 @@ var require_parse2 = __commonJS({
2743
2817
  open.type = "text";
2744
2818
  open.value = literal;
2745
2819
  open.output = safeOutput || utils.escapeRegex(literal);
2746
- for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
2747
- tokens[i].value = "";
2748
- tokens[i].output = "";
2749
- delete tokens[i].suffix;
2820
+ for (let i2 = token.tokensIndex + 1; i2 < tokens.length; i2++) {
2821
+ tokens[i2].value = "";
2822
+ tokens[i2].output = "";
2823
+ delete tokens[i2].suffix;
2750
2824
  }
2751
2825
  state.output = token.output + open.output;
2752
2826
  state.backtrack = true;
@@ -2989,13 +3063,13 @@ var require_parse2 = __commonJS({
2989
3063
  if (brace.dots === true) {
2990
3064
  const arr = tokens.slice();
2991
3065
  const range = [];
2992
- for (let i = arr.length - 1; i >= 0; i--) {
3066
+ for (let i2 = arr.length - 1; i2 >= 0; i2--) {
2993
3067
  tokens.pop();
2994
- if (arr[i].type === "brace") {
3068
+ if (arr[i2].type === "brace") {
2995
3069
  break;
2996
3070
  }
2997
- if (arr[i].type !== "dots") {
2998
- range.unshift(arr[i].value);
3071
+ if (arr[i2].type !== "dots") {
3072
+ range.unshift(arr[i2].value);
2999
3073
  }
3000
3074
  }
3001
3075
  output = expandRange(range, opts);
@@ -3538,8 +3612,8 @@ var require_micromatch = __commonJS({
3538
3612
  options.onResult(state);
3539
3613
  }
3540
3614
  };
3541
- for (let i = 0; i < patterns.length; i++) {
3542
- let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
3615
+ for (let i2 = 0; i2 < patterns.length; i2++) {
3616
+ let isMatch = picomatch(String(patterns[i2]), { ...options, onResult }, true);
3543
3617
  let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
3544
3618
  if (negated) negatives++;
3545
3619
  for (let item of list) {
@@ -3787,7 +3861,7 @@ var require_pattern = __commonJS({
3787
3861
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
3788
3862
  function expandBraceExpansion(pattern) {
3789
3863
  const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
3790
- patterns.sort((a, b) => a.length - b.length);
3864
+ patterns.sort((a2, b) => a2.length - b.length);
3791
3865
  return patterns.filter((pattern2) => pattern2 !== "");
3792
3866
  }
3793
3867
  exports.expandBraceExpansion = expandBraceExpansion;
@@ -3868,8 +3942,8 @@ var require_merge2 = __commonJS({
3868
3942
  }
3869
3943
  const mergedStream = PassThrough(options);
3870
3944
  function addStream() {
3871
- for (let i = 0, len = arguments.length; i < len; i++) {
3872
- streamsQueue.push(pauseStreams(arguments[i], options));
3945
+ for (let i2 = 0, len = arguments.length; i2 < len; i2++) {
3946
+ streamsQueue.push(pauseStreams(arguments[i2], options));
3873
3947
  }
3874
3948
  mergeStream();
3875
3949
  return this;
@@ -3918,8 +3992,8 @@ var require_merge2 = __commonJS({
3918
3992
  stream.pipe(mergedStream, { end: false });
3919
3993
  stream.resume();
3920
3994
  }
3921
- for (let i = 0; i < streams.length; i++) {
3922
- pipe(streams[i]);
3995
+ for (let i2 = 0; i2 < streams.length; i2++) {
3996
+ pipe(streams[i2]);
3923
3997
  }
3924
3998
  next();
3925
3999
  }
@@ -3950,8 +4024,8 @@ var require_merge2 = __commonJS({
3950
4024
  }
3951
4025
  streams.pause();
3952
4026
  } else {
3953
- for (let i = 0, len = streams.length; i < len; i++) {
3954
- streams[i] = pauseStreams(streams[i], options);
4027
+ for (let i2 = 0, len = streams.length; i2 < len; i2++) {
4028
+ streams[i2] = pauseStreams(streams[i2], options);
3955
4029
  }
3956
4030
  }
3957
4031
  return streams;
@@ -4033,13 +4107,13 @@ var require_tasks = __commonJS({
4033
4107
  Object.defineProperty(exports, "__esModule", { value: true });
4034
4108
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
4035
4109
  var utils = require_utils3();
4036
- function generate(input, settings) {
4037
- const patterns = processPatterns(input, settings);
4038
- const ignore = processPatterns(settings.ignore, settings);
4110
+ function generate(input, settings2) {
4111
+ const patterns = processPatterns(input, settings2);
4112
+ const ignore = processPatterns(settings2.ignore, settings2);
4039
4113
  const positivePatterns = getPositivePatterns(patterns);
4040
4114
  const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
4041
- const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
4042
- const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
4115
+ const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings2));
4116
+ const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings2));
4043
4117
  const staticTasks = convertPatternsToTasks(
4044
4118
  staticPatterns,
4045
4119
  negativePatterns,
@@ -4055,12 +4129,12 @@ var require_tasks = __commonJS({
4055
4129
  return staticTasks.concat(dynamicTasks);
4056
4130
  }
4057
4131
  exports.generate = generate;
4058
- function processPatterns(input, settings) {
4132
+ function processPatterns(input, settings2) {
4059
4133
  let patterns = input;
4060
- if (settings.braceExpansion) {
4134
+ if (settings2.braceExpansion) {
4061
4135
  patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
4062
4136
  }
4063
- if (settings.baseNameMatch) {
4137
+ if (settings2.baseNameMatch) {
4064
4138
  patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
4065
4139
  }
4066
4140
  return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
@@ -4129,26 +4203,26 @@ var require_async = __commonJS({
4129
4203
  init_utils2();
4130
4204
  Object.defineProperty(exports, "__esModule", { value: true });
4131
4205
  exports.read = void 0;
4132
- function read(path, settings, callback) {
4133
- settings.fs.lstat(path, (lstatError, lstat) => {
4206
+ function read(path, settings2, callback) {
4207
+ settings2.fs.lstat(path, (lstatError, lstat) => {
4134
4208
  if (lstatError !== null) {
4135
4209
  callFailureCallback(callback, lstatError);
4136
4210
  return;
4137
4211
  }
4138
- if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
4212
+ if (!lstat.isSymbolicLink() || !settings2.followSymbolicLink) {
4139
4213
  callSuccessCallback(callback, lstat);
4140
4214
  return;
4141
4215
  }
4142
- settings.fs.stat(path, (statError, stat) => {
4216
+ settings2.fs.stat(path, (statError, stat) => {
4143
4217
  if (statError !== null) {
4144
- if (settings.throwErrorOnBrokenSymbolicLink) {
4218
+ if (settings2.throwErrorOnBrokenSymbolicLink) {
4145
4219
  callFailureCallback(callback, statError);
4146
4220
  return;
4147
4221
  }
4148
4222
  callSuccessCallback(callback, lstat);
4149
4223
  return;
4150
4224
  }
4151
- if (settings.markSymbolicLink) {
4225
+ if (settings2.markSymbolicLink) {
4152
4226
  stat.isSymbolicLink = () => true;
4153
4227
  }
4154
4228
  callSuccessCallback(callback, stat);
@@ -4172,19 +4246,19 @@ var require_sync = __commonJS({
4172
4246
  init_utils2();
4173
4247
  Object.defineProperty(exports, "__esModule", { value: true });
4174
4248
  exports.read = void 0;
4175
- function read(path, settings) {
4176
- const lstat = settings.fs.lstatSync(path);
4177
- if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
4249
+ function read(path, settings2) {
4250
+ const lstat = settings2.fs.lstatSync(path);
4251
+ if (!lstat.isSymbolicLink() || !settings2.followSymbolicLink) {
4178
4252
  return lstat;
4179
4253
  }
4180
4254
  try {
4181
- const stat = settings.fs.statSync(path);
4182
- if (settings.markSymbolicLink) {
4255
+ const stat = settings2.fs.statSync(path);
4256
+ if (settings2.markSymbolicLink) {
4183
4257
  stat.isSymbolicLink = () => true;
4184
4258
  }
4185
4259
  return stat;
4186
4260
  } catch (error2) {
4187
- if (!settings.throwErrorOnBrokenSymbolicLink) {
4261
+ if (!settings2.throwErrorOnBrokenSymbolicLink) {
4188
4262
  return lstat;
4189
4263
  }
4190
4264
  throw error2;
@@ -4261,8 +4335,8 @@ var require_out = __commonJS({
4261
4335
  }
4262
4336
  exports.stat = stat;
4263
4337
  function statSync2(path, optionsOrSettings) {
4264
- const settings = getSettings(optionsOrSettings);
4265
- return sync.read(path, settings);
4338
+ const settings2 = getSettings(optionsOrSettings);
4339
+ return sync.read(path, settings2);
4266
4340
  }
4267
4341
  exports.statSync = statSync2;
4268
4342
  function getSettings(settingsOrOptions = {}) {
@@ -4310,8 +4384,8 @@ var require_run_parallel = __commonJS({
4310
4384
  if (isSync) queueMicrotask2(end);
4311
4385
  else end();
4312
4386
  }
4313
- function each(i, err, result) {
4314
- results[i] = result;
4387
+ function each(i2, err, result) {
4388
+ results[i2] = result;
4315
4389
  if (--pending === 0 || err) {
4316
4390
  done(err);
4317
4391
  }
@@ -4325,9 +4399,9 @@ var require_run_parallel = __commonJS({
4325
4399
  });
4326
4400
  });
4327
4401
  } else {
4328
- tasks.forEach(function(task, i) {
4402
+ tasks.forEach(function(task, i2) {
4329
4403
  task(function(err, result) {
4330
- each(i, err, result);
4404
+ each(i2, err, result);
4331
4405
  });
4332
4406
  });
4333
4407
  }
@@ -4402,11 +4476,11 @@ var require_common = __commonJS({
4402
4476
  init_utils2();
4403
4477
  Object.defineProperty(exports, "__esModule", { value: true });
4404
4478
  exports.joinPathSegments = void 0;
4405
- function joinPathSegments(a, b, separator) {
4406
- if (a.endsWith(separator)) {
4407
- return a + b;
4479
+ function joinPathSegments(a2, b, separator) {
4480
+ if (a2.endsWith(separator)) {
4481
+ return a2 + b;
4408
4482
  }
4409
- return a + separator + b;
4483
+ return a2 + separator + b;
4410
4484
  }
4411
4485
  exports.joinPathSegments = joinPathSegments;
4412
4486
  }
@@ -4424,16 +4498,16 @@ var require_async2 = __commonJS({
4424
4498
  var constants_1 = require_constants3();
4425
4499
  var utils = require_utils4();
4426
4500
  var common = require_common();
4427
- function read(directory, settings, callback) {
4428
- if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
4429
- readdirWithFileTypes(directory, settings, callback);
4501
+ function read(directory, settings2, callback) {
4502
+ if (!settings2.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
4503
+ readdirWithFileTypes(directory, settings2, callback);
4430
4504
  return;
4431
4505
  }
4432
- readdir(directory, settings, callback);
4506
+ readdir(directory, settings2, callback);
4433
4507
  }
4434
4508
  exports.read = read;
4435
- function readdirWithFileTypes(directory, settings, callback) {
4436
- settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
4509
+ function readdirWithFileTypes(directory, settings2, callback) {
4510
+ settings2.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
4437
4511
  if (readdirError !== null) {
4438
4512
  callFailureCallback(callback, readdirError);
4439
4513
  return;
@@ -4441,13 +4515,13 @@ var require_async2 = __commonJS({
4441
4515
  const entries = dirents.map((dirent) => ({
4442
4516
  dirent,
4443
4517
  name: dirent.name,
4444
- path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
4518
+ path: common.joinPathSegments(directory, dirent.name, settings2.pathSegmentSeparator)
4445
4519
  }));
4446
- if (!settings.followSymbolicLinks) {
4520
+ if (!settings2.followSymbolicLinks) {
4447
4521
  callSuccessCallback(callback, entries);
4448
4522
  return;
4449
4523
  }
4450
- const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
4524
+ const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings2));
4451
4525
  rpl(tasks, (rplError, rplEntries) => {
4452
4526
  if (rplError !== null) {
4453
4527
  callFailureCallback(callback, rplError);
@@ -4458,15 +4532,15 @@ var require_async2 = __commonJS({
4458
4532
  });
4459
4533
  }
4460
4534
  exports.readdirWithFileTypes = readdirWithFileTypes;
4461
- function makeRplTaskEntry(entry, settings) {
4535
+ function makeRplTaskEntry(entry, settings2) {
4462
4536
  return (done) => {
4463
4537
  if (!entry.dirent.isSymbolicLink()) {
4464
4538
  done(null, entry);
4465
4539
  return;
4466
4540
  }
4467
- settings.fs.stat(entry.path, (statError, stats) => {
4541
+ settings2.fs.stat(entry.path, (statError, stats) => {
4468
4542
  if (statError !== null) {
4469
- if (settings.throwErrorOnBrokenSymbolicLink) {
4543
+ if (settings2.throwErrorOnBrokenSymbolicLink) {
4470
4544
  done(statError);
4471
4545
  return;
4472
4546
  }
@@ -4478,16 +4552,16 @@ var require_async2 = __commonJS({
4478
4552
  });
4479
4553
  };
4480
4554
  }
4481
- function readdir(directory, settings, callback) {
4482
- settings.fs.readdir(directory, (readdirError, names) => {
4555
+ function readdir(directory, settings2, callback) {
4556
+ settings2.fs.readdir(directory, (readdirError, names) => {
4483
4557
  if (readdirError !== null) {
4484
4558
  callFailureCallback(callback, readdirError);
4485
4559
  return;
4486
4560
  }
4487
4561
  const tasks = names.map((name) => {
4488
- const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
4562
+ const path = common.joinPathSegments(directory, name, settings2.pathSegmentSeparator);
4489
4563
  return (done) => {
4490
- fsStat.stat(path, settings.fsStatSettings, (error2, stats) => {
4564
+ fsStat.stat(path, settings2.fsStatSettings, (error2, stats) => {
4491
4565
  if (error2 !== null) {
4492
4566
  done(error2);
4493
4567
  return;
@@ -4497,7 +4571,7 @@ var require_async2 = __commonJS({
4497
4571
  path,
4498
4572
  dirent: utils.fs.createDirentFromStats(name, stats)
4499
4573
  };
4500
- if (settings.stats) {
4574
+ if (settings2.stats) {
4501
4575
  entry.stats = stats;
4502
4576
  }
4503
4577
  done(null, entry);
@@ -4534,27 +4608,27 @@ var require_sync2 = __commonJS({
4534
4608
  var constants_1 = require_constants3();
4535
4609
  var utils = require_utils4();
4536
4610
  var common = require_common();
4537
- function read(directory, settings) {
4538
- if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
4539
- return readdirWithFileTypes(directory, settings);
4611
+ function read(directory, settings2) {
4612
+ if (!settings2.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
4613
+ return readdirWithFileTypes(directory, settings2);
4540
4614
  }
4541
- return readdir(directory, settings);
4615
+ return readdir(directory, settings2);
4542
4616
  }
4543
4617
  exports.read = read;
4544
- function readdirWithFileTypes(directory, settings) {
4545
- const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
4618
+ function readdirWithFileTypes(directory, settings2) {
4619
+ const dirents = settings2.fs.readdirSync(directory, { withFileTypes: true });
4546
4620
  return dirents.map((dirent) => {
4547
4621
  const entry = {
4548
4622
  dirent,
4549
4623
  name: dirent.name,
4550
- path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
4624
+ path: common.joinPathSegments(directory, dirent.name, settings2.pathSegmentSeparator)
4551
4625
  };
4552
- if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) {
4626
+ if (entry.dirent.isSymbolicLink() && settings2.followSymbolicLinks) {
4553
4627
  try {
4554
- const stats = settings.fs.statSync(entry.path);
4628
+ const stats = settings2.fs.statSync(entry.path);
4555
4629
  entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
4556
4630
  } catch (error2) {
4557
- if (settings.throwErrorOnBrokenSymbolicLink) {
4631
+ if (settings2.throwErrorOnBrokenSymbolicLink) {
4558
4632
  throw error2;
4559
4633
  }
4560
4634
  }
@@ -4563,17 +4637,17 @@ var require_sync2 = __commonJS({
4563
4637
  });
4564
4638
  }
4565
4639
  exports.readdirWithFileTypes = readdirWithFileTypes;
4566
- function readdir(directory, settings) {
4567
- const names = settings.fs.readdirSync(directory);
4640
+ function readdir(directory, settings2) {
4641
+ const names = settings2.fs.readdirSync(directory);
4568
4642
  return names.map((name) => {
4569
- const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
4570
- const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
4643
+ const entryPath = common.joinPathSegments(directory, name, settings2.pathSegmentSeparator);
4644
+ const stats = fsStat.statSync(entryPath, settings2.fsStatSettings);
4571
4645
  const entry = {
4572
4646
  name,
4573
4647
  path: entryPath,
4574
4648
  dirent: utils.fs.createDirentFromStats(name, stats)
4575
4649
  };
4576
- if (settings.stats) {
4650
+ if (settings2.stats) {
4577
4651
  entry.stats = stats;
4578
4652
  }
4579
4653
  return entry;
@@ -4660,8 +4734,8 @@ var require_out2 = __commonJS({
4660
4734
  }
4661
4735
  exports.scandir = scandir;
4662
4736
  function scandirSync(path, optionsOrSettings) {
4663
- const settings = getSettings(optionsOrSettings);
4664
- return sync.read(path, settings);
4737
+ const settings2 = getSettings(optionsOrSettings);
4738
+ return sync.read(path, settings2);
4665
4739
  }
4666
4740
  exports.scandirSync = scandirSync;
4667
4741
  function getSettings(settingsOrOptions = {}) {
@@ -4997,11 +5071,11 @@ var require_common2 = __commonJS({
4997
5071
  init_utils2();
4998
5072
  Object.defineProperty(exports, "__esModule", { value: true });
4999
5073
  exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
5000
- function isFatalError(settings, error2) {
5001
- if (settings.errorFilter === null) {
5074
+ function isFatalError(settings2, error2) {
5075
+ if (settings2.errorFilter === null) {
5002
5076
  return true;
5003
5077
  }
5004
- return !settings.errorFilter(error2);
5078
+ return !settings2.errorFilter(error2);
5005
5079
  }
5006
5080
  exports.isFatalError = isFatalError;
5007
5081
  function isAppliedFilter(filter, value) {
@@ -5012,14 +5086,14 @@ var require_common2 = __commonJS({
5012
5086
  return filepath.split(/[/\\]/).join(separator);
5013
5087
  }
5014
5088
  exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
5015
- function joinPathSegments(a, b, separator) {
5016
- if (a === "") {
5089
+ function joinPathSegments(a2, b, separator) {
5090
+ if (a2 === "") {
5017
5091
  return b;
5018
5092
  }
5019
- if (a.endsWith(separator)) {
5020
- return a + b;
5093
+ if (a2.endsWith(separator)) {
5094
+ return a2 + b;
5021
5095
  }
5022
- return a + separator + b;
5096
+ return a2 + separator + b;
5023
5097
  }
5024
5098
  exports.joinPathSegments = joinPathSegments;
5025
5099
  }
@@ -5366,14 +5440,14 @@ var require_out3 = __commonJS({
5366
5440
  }
5367
5441
  exports.walk = walk;
5368
5442
  function walkSync(directory, optionsOrSettings) {
5369
- const settings = getSettings(optionsOrSettings);
5370
- const provider = new sync_1.default(directory, settings);
5443
+ const settings2 = getSettings(optionsOrSettings);
5444
+ const provider = new sync_1.default(directory, settings2);
5371
5445
  return provider.read();
5372
5446
  }
5373
5447
  exports.walkSync = walkSync;
5374
5448
  function walkStream(directory, optionsOrSettings) {
5375
- const settings = getSettings(optionsOrSettings);
5376
- const provider = new stream_1.default(directory, settings);
5449
+ const settings2 = getSettings(optionsOrSettings);
5450
+ const provider = new stream_1.default(directory, settings2);
5377
5451
  return provider.read();
5378
5452
  }
5379
5453
  exports.walkStream = walkStream;
@@ -5459,8 +5533,8 @@ var require_stream3 = __commonJS({
5459
5533
  done();
5460
5534
  }).catch(done);
5461
5535
  };
5462
- for (let i = 0; i < filepaths.length; i++) {
5463
- stream.write(i);
5536
+ for (let i2 = 0; i2 < filepaths.length; i2++) {
5537
+ stream.write(i2);
5464
5538
  }
5465
5539
  return stream;
5466
5540
  }
@@ -6121,14 +6195,14 @@ var require_out4 = __commonJS({
6121
6195
  function generateTasks(source, options) {
6122
6196
  assertPatternsInput(source);
6123
6197
  const patterns = [].concat(source);
6124
- const settings = new settings_1.default(options);
6125
- return taskManager.generate(patterns, settings);
6198
+ const settings2 = new settings_1.default(options);
6199
+ return taskManager.generate(patterns, settings2);
6126
6200
  }
6127
6201
  FastGlob2.generateTasks = generateTasks;
6128
6202
  function isDynamicPattern(source, options) {
6129
6203
  assertPatternsInput(source);
6130
- const settings = new settings_1.default(options);
6131
- return utils.pattern.isDynamicPattern(source, settings);
6204
+ const settings2 = new settings_1.default(options);
6205
+ return utils.pattern.isDynamicPattern(source, settings2);
6132
6206
  }
6133
6207
  FastGlob2.isDynamicPattern = isDynamicPattern;
6134
6208
  function escapePath(source) {
@@ -6170,9 +6244,9 @@ var require_out4 = __commonJS({
6170
6244
  })(FastGlob || (FastGlob = {}));
6171
6245
  function getWorks(source, _Provider, options) {
6172
6246
  const patterns = [].concat(source);
6173
- const settings = new settings_1.default(options);
6174
- const tasks = taskManager.generate(patterns, settings);
6175
- const provider = new _Provider(settings);
6247
+ const settings2 = new settings_1.default(options);
6248
+ const tasks = taskManager.generate(patterns, settings2);
6249
+ const provider = new _Provider(settings2);
6176
6250
  return tasks.map(provider.read, provider);
6177
6251
  }
6178
6252
  function assertPatternsInput(input) {
@@ -6350,8 +6424,8 @@ import "node:fs";
6350
6424
  import { createRequire } from "node:module";
6351
6425
  import {
6352
6426
  resolve,
6353
- join,
6354
- dirname,
6427
+ join as join2,
6428
+ dirname as dirname2,
6355
6429
  relative,
6356
6430
  normalize,
6357
6431
  sep,
@@ -6365,7 +6439,7 @@ function safeExecuteAsync(fn, message) {
6365
6439
  );
6366
6440
  });
6367
6441
  }
6368
- var import_fast_glob, constants, log2, PACKAGE_PATHS, PathResolver;
6442
+ var import_fast_glob, constants, log3, PACKAGE_PATHS, PathResolver;
6369
6443
  var init_PathResolver = __esm({
6370
6444
  "packages/core/config/utils/PathResolver.ts"() {
6371
6445
  "use strict";
@@ -6378,7 +6452,7 @@ var init_PathResolver = __esm({
6378
6452
  getPatternsFor: getPatternsFor || void 0,
6379
6453
  I18N_PATHS: I18N_PATHS || void 0
6380
6454
  };
6381
- log2 = {
6455
+ log3 = {
6382
6456
  error: (message, error2) => {
6383
6457
  },
6384
6458
  warn: (message, error2) => {
@@ -6499,7 +6573,7 @@ var init_PathResolver = __esm({
6499
6573
  */
6500
6574
  getDirname(path) {
6501
6575
  if (!path) return "";
6502
- return this.normalizePath(dirname(path));
6576
+ return this.normalizePath(dirname2(path));
6503
6577
  }
6504
6578
  /**
6505
6579
  * Resolve package path using Node's module resolution
@@ -6511,7 +6585,7 @@ var init_PathResolver = __esm({
6511
6585
  resolvePackage(packageSpecifier, fromPath = null) {
6512
6586
  try {
6513
6587
  const basePath = fromPath || this.getAppRoot();
6514
- const require3 = createRequire(join(basePath, "package.json"));
6588
+ const require3 = createRequire(join2(basePath, "package.json"));
6515
6589
  const resolved = require3.resolve(packageSpecifier);
6516
6590
  return this.normalizePath(resolved);
6517
6591
  } catch (error2) {
@@ -6663,7 +6737,7 @@ var init_PathResolver = __esm({
6663
6737
  return cleanContent;
6664
6738
  } catch (error2) {
6665
6739
  if (this.options.debug) {
6666
- log2.warn(`Failed to read file: ${filePath}`, error2);
6740
+ log3.warn(`Failed to read file: ${filePath}`, error2);
6667
6741
  }
6668
6742
  return null;
6669
6743
  }
@@ -6691,7 +6765,7 @@ var init_PathResolver = __esm({
6691
6765
  return cleanContent;
6692
6766
  } catch (error2) {
6693
6767
  if (this.options.debug) {
6694
- log2.warn(`Failed to read file: ${filePath}`, error2);
6768
+ log3.warn(`Failed to read file: ${filePath}`, error2);
6695
6769
  }
6696
6770
  return null;
6697
6771
  }
@@ -6713,16 +6787,16 @@ var init_PathResolver = __esm({
6713
6787
  verbose = false
6714
6788
  } = options;
6715
6789
  const normalizedPath = this.normalizePath(filePath);
6716
- const dir = this.normalizePath(dirname(normalizedPath));
6790
+ const dir = this.normalizePath(dirname2(normalizedPath));
6717
6791
  const fileExists = this.pathExists(normalizedPath);
6718
6792
  if (fileExists && !overwrite) {
6719
6793
  if (verbose) {
6720
- log2.info(`Skipping existing file: ${normalizedPath}`);
6794
+ log3.info(`Skipping existing file: ${normalizedPath}`);
6721
6795
  }
6722
6796
  return false;
6723
6797
  }
6724
6798
  if (dryRun) {
6725
- log2.info(`[DRY RUN] Would write file: ${normalizedPath}`);
6799
+ log3.info(`[DRY RUN] Would write file: ${normalizedPath}`);
6726
6800
  return true;
6727
6801
  }
6728
6802
  try {
@@ -6747,7 +6821,7 @@ var init_PathResolver = __esm({
6747
6821
  await fs.promises.writeFile(normalizedPath, writeContent, "utf8");
6748
6822
  }
6749
6823
  if (verbose) {
6750
- log2.info(
6824
+ log3.info(
6751
6825
  `${fileExists ? "Updated" : "Created"} file: ${normalizedPath}`
6752
6826
  );
6753
6827
  }
@@ -6774,16 +6848,16 @@ var init_PathResolver = __esm({
6774
6848
  verbose = false
6775
6849
  } = options;
6776
6850
  const normalizedPath = this.normalizePath(filePath);
6777
- const dir = this.normalizePath(dirname(normalizedPath));
6851
+ const dir = this.normalizePath(dirname2(normalizedPath));
6778
6852
  const fileExists = this.pathExists(normalizedPath);
6779
6853
  if (fileExists && !overwrite) {
6780
6854
  if (verbose) {
6781
- log2.info(`Skipping existing file: ${normalizedPath}`);
6855
+ log3.info(`Skipping existing file: ${normalizedPath}`);
6782
6856
  }
6783
6857
  return false;
6784
6858
  }
6785
6859
  if (dryRun) {
6786
- log2.info(`[DRY RUN] Would write file: ${normalizedPath}`);
6860
+ log3.info(`[DRY RUN] Would write file: ${normalizedPath}`);
6787
6861
  return true;
6788
6862
  }
6789
6863
  try {
@@ -6807,7 +6881,7 @@ var init_PathResolver = __esm({
6807
6881
  fs.writeFileSync(normalizedPath, writeContent, "utf8");
6808
6882
  }
6809
6883
  if (verbose) {
6810
- log2.info(
6884
+ log3.info(
6811
6885
  `${fileExists ? "Updated" : "Created"} file: ${normalizedPath}`
6812
6886
  );
6813
6887
  }
@@ -6832,15 +6906,15 @@ var init_PathResolver = __esm({
6832
6906
  const fileExists = this.pathExists(normalizedDestPath);
6833
6907
  if (fileExists && !overwrite) {
6834
6908
  if (verbose) {
6835
- log2.info(`Skipping existing file: ${normalizedDestPath}`);
6909
+ log3.info(`Skipping existing file: ${normalizedDestPath}`);
6836
6910
  }
6837
6911
  return false;
6838
6912
  }
6839
6913
  if (dryRun) {
6840
- log2.info(`[DRY RUN] Would copy file: ${normalizedDestPath}`);
6914
+ log3.info(`[DRY RUN] Would copy file: ${normalizedDestPath}`);
6841
6915
  return true;
6842
6916
  }
6843
- const dir = this.normalizePath(dirname(normalizedDestPath));
6917
+ const dir = this.normalizePath(dirname2(normalizedDestPath));
6844
6918
  try {
6845
6919
  await fs.promises.mkdir(dir, { recursive: true });
6846
6920
  } catch (error2) {
@@ -6850,7 +6924,7 @@ var init_PathResolver = __esm({
6850
6924
  return await safeExecuteAsync(async () => {
6851
6925
  await fs.promises.copyFile(srcPath, normalizedDestPath);
6852
6926
  if (verbose) {
6853
- log2.info(
6927
+ log3.info(
6854
6928
  `${fileExists ? "Updated" : "Created"} file: ${normalizedDestPath}`
6855
6929
  );
6856
6930
  }
@@ -6874,15 +6948,15 @@ var init_PathResolver = __esm({
6874
6948
  const fileExists = this.pathExists(normalizedDestPath);
6875
6949
  if (fileExists && !overwrite) {
6876
6950
  if (verbose) {
6877
- log2.info(`Skipping existing file: ${normalizedDestPath}`);
6951
+ log3.info(`Skipping existing file: ${normalizedDestPath}`);
6878
6952
  }
6879
6953
  return false;
6880
6954
  }
6881
6955
  if (dryRun) {
6882
- log2.info(`[DRY RUN] Would copy file: ${normalizedDestPath}`);
6956
+ log3.info(`[DRY RUN] Would copy file: ${normalizedDestPath}`);
6883
6957
  return true;
6884
6958
  }
6885
- const dir = this.normalizePath(dirname(normalizedDestPath));
6959
+ const dir = this.normalizePath(dirname2(normalizedDestPath));
6886
6960
  try {
6887
6961
  fs.mkdirSync(dir, { recursive: true });
6888
6962
  } catch (error2) {
@@ -6891,7 +6965,7 @@ var init_PathResolver = __esm({
6891
6965
  try {
6892
6966
  fs.copyFileSync(srcPath, normalizedDestPath);
6893
6967
  if (verbose) {
6894
- log2.info(
6968
+ log3.info(
6895
6969
  `${fileExists ? "Updated" : "Created"} file: ${normalizedDestPath}`
6896
6970
  );
6897
6971
  }
@@ -6908,7 +6982,7 @@ var init_PathResolver = __esm({
6908
6982
  return fs.existsSync(filePath);
6909
6983
  } catch (error2) {
6910
6984
  if (!silent) {
6911
- log2.error(`Error checking path existence: ${filePath}`, error2);
6985
+ log3.error(`Error checking path existence: ${filePath}`, error2);
6912
6986
  }
6913
6987
  return false;
6914
6988
  }
@@ -6934,7 +7008,7 @@ var init_PathResolver = __esm({
6934
7008
  return fs.readdirSync(dirPath, options);
6935
7009
  } catch (error2) {
6936
7010
  if (this.options.debug) {
6937
- log2.warn(`Failed to read directory: ${dirPath}`, error2);
7011
+ log3.warn(`Failed to read directory: ${dirPath}`, error2);
6938
7012
  }
6939
7013
  const isObjectOptions = options && typeof options === "object" && "withFileTypes" in options;
6940
7014
  return isObjectOptions && options.withFileTypes ? [] : [];
@@ -6952,7 +7026,7 @@ var init_PathResolver = __esm({
6952
7026
  return fs.statSync(filePath);
6953
7027
  } catch (error2) {
6954
7028
  if (this.options.debug) {
6955
- log2.warn(`Failed to stat file: ${filePath}`, error2);
7029
+ log3.warn(`Failed to stat file: ${filePath}`, error2);
6956
7030
  }
6957
7031
  return null;
6958
7032
  }
@@ -6969,7 +7043,7 @@ var init_PathResolver = __esm({
6969
7043
  return fs.lstatSync(filePath);
6970
7044
  } catch (error2) {
6971
7045
  if (this.options.debug) {
6972
- log2.warn(`Failed to lstat file: ${filePath}`, error2);
7046
+ log3.warn(`Failed to lstat file: ${filePath}`, error2);
6973
7047
  }
6974
7048
  return null;
6975
7049
  }
@@ -7058,7 +7132,7 @@ var init_PathResolver = __esm({
7058
7132
  * @returns True if repoRoot is the monorepo (has packages directory)
7059
7133
  */
7060
7134
  isMonorepo() {
7061
- const packagesDir = join(this._repoRoot, "packages");
7135
+ const packagesDir = join2(this._repoRoot, "packages");
7062
7136
  return this.pathExists(packagesDir);
7063
7137
  }
7064
7138
  /**
@@ -7075,7 +7149,7 @@ var init_PathResolver = __esm({
7075
7149
  * Find files matching pattern within directory
7076
7150
  */
7077
7151
  async findFiles(directory, pattern, options = {}) {
7078
- const searchPattern = this.normalizePath(join(directory, pattern));
7152
+ const searchPattern = this.normalizePath(join2(directory, pattern));
7079
7153
  const appRoot = this.getAppRoot();
7080
7154
  const normalizeAppRoot = this.normalizePath(appRoot);
7081
7155
  const relativePattern = searchPattern.startsWith(normalizeAppRoot) ? searchPattern.slice(normalizeAppRoot.length + 1) : searchPattern;
@@ -7122,7 +7196,7 @@ var init_PathResolver = __esm({
7122
7196
  return null;
7123
7197
  }
7124
7198
  const resolvedPath = this.normalizePath(
7125
- join(corePackageRoot, I18N_PATHS2.PUBLISHED_ROOT, i18nSubpath)
7199
+ join2(corePackageRoot, I18N_PATHS2.PUBLISHED_ROOT, i18nSubpath)
7126
7200
  );
7127
7201
  const resolvedDir = resolvedPath.replace(/\/[^/]*\*.*$/, "");
7128
7202
  if (this.pathExists(resolvedDir)) {
@@ -7318,13 +7392,13 @@ var init_PathResolver = __esm({
7318
7392
  const maxLevels = this.options.maxLevels;
7319
7393
  while (levelsChecked < maxLevels) {
7320
7394
  const toolingPath = this.normalizePath(
7321
- join(currentDir, PACKAGE_PATHS.TOOLING)
7395
+ join2(currentDir, PACKAGE_PATHS.TOOLING)
7322
7396
  );
7323
- const corePath = this.normalizePath(join(currentDir, PACKAGE_PATHS.CORE));
7397
+ const corePath = this.normalizePath(join2(currentDir, PACKAGE_PATHS.CORE));
7324
7398
  if (this.pathExists(toolingPath) && this.pathExists(corePath)) {
7325
7399
  return currentDir;
7326
7400
  }
7327
- const appsDir = join(currentDir, "apps");
7401
+ const appsDir = join2(currentDir, "apps");
7328
7402
  if (this.pathExists(appsDir)) {
7329
7403
  const appsDirStat = this.statSync(appsDir);
7330
7404
  if (appsDirStat?.isDirectory()) {
@@ -7332,15 +7406,15 @@ var init_PathResolver = __esm({
7332
7406
  }
7333
7407
  }
7334
7408
  const packageJsonPath = this.normalizePath(
7335
- join(currentDir, "package.json")
7409
+ join2(currentDir, "package.json")
7336
7410
  );
7337
7411
  if (this.pathExists(packageJsonPath)) {
7338
- const parentDir2 = this.normalizePath(dirname(currentDir));
7412
+ const parentDir2 = this.normalizePath(dirname2(currentDir));
7339
7413
  if (parentDir2 === currentDir) {
7340
7414
  return currentDir;
7341
7415
  }
7342
7416
  }
7343
- const parentDir = this.normalizePath(dirname(currentDir));
7417
+ const parentDir = this.normalizePath(dirname2(currentDir));
7344
7418
  if (parentDir === currentDir) {
7345
7419
  break;
7346
7420
  }
@@ -7356,8 +7430,8 @@ var init_PathResolver = __esm({
7356
7430
  // packages/tooling/src/utils/pathResolver.ts
7357
7431
  import { createRequire as createRequire2 } from "node:module";
7358
7432
  import {
7359
- join as join2,
7360
- dirname as dirname2,
7433
+ join as join3,
7434
+ dirname as dirname3,
7361
7435
  basename as basename2,
7362
7436
  extname as extname2,
7363
7437
  relative as relative2,
@@ -7375,7 +7449,7 @@ var init_pathResolver = __esm({
7375
7449
  pathResolverInstance = PathResolver.getInstance({ debug: false });
7376
7450
  getRepoRoot = () => pathResolverInstance.getRepoRoot();
7377
7451
  normalizePath = (...pathSegments) => {
7378
- return pathResolverInstance.normalizePath(join2(...pathSegments));
7452
+ return pathResolverInstance.normalizePath(join3(...pathSegments));
7379
7453
  };
7380
7454
  pathExists = (filePath, silent = false) => pathResolverInstance.pathExists(filePath, silent);
7381
7455
  readSync = (filePath, options) => pathResolverInstance.readSync(filePath, options);
@@ -7389,7 +7463,7 @@ var init_pathResolver = __esm({
7389
7463
  import { Buffer } from "node:buffer";
7390
7464
  import { copyFileSync as copyFileSync2, readFileSync as readFileSync2, writeFileSync as writeFileSync2, mkdirSync as mkdirSync2 } from "node:fs";
7391
7465
  import { createRequire as createRequire3 } from "node:module";
7392
- import { dirname as dirname3, resolve as resolve3 } from "node:path";
7466
+ import { dirname as dirname4, resolve as resolve3 } from "node:path";
7393
7467
  import process from "node:process";
7394
7468
  import { fileURLToPath as fileURLToPath3 } from "node:url";
7395
7469
  var require2, __filename, __dirname;
@@ -7398,7 +7472,7 @@ var init_utils2 = __esm({
7398
7472
  "use strict";
7399
7473
  require2 = createRequire3(import.meta.url);
7400
7474
  __filename = fileURLToPath3(import.meta.url);
7401
- __dirname = dirname3(__filename);
7475
+ __dirname = dirname4(__filename);
7402
7476
  if (typeof globalThis !== "undefined") {
7403
7477
  globalThis.require = require2;
7404
7478
  globalThis.__filename = __filename;
@@ -7438,20 +7512,20 @@ async function main() {
7438
7512
  }
7439
7513
  const projectRoot = getRepoRoot();
7440
7514
  if (!projectRoot) {
7441
- log.error("Not in a project directory. Run this from your project root.");
7515
+ log2.error("Not in a project directory. Run this from your project root.");
7442
7516
  return 1;
7443
7517
  }
7444
7518
  const agentsMdPath = joinPath(projectRoot, "AGENTS.md");
7445
7519
  if (!pathExists(agentsMdPath)) {
7446
- log.error("AGENTS.md not found in project root.");
7447
- log.warn(
7520
+ log2.error("AGENTS.md not found in project root.");
7521
+ log2.warn(
7448
7522
  'Run "dndev init" to scaffold a new project, or create AGENTS.md manually.'
7449
7523
  );
7450
7524
  return 1;
7451
7525
  }
7452
7526
  const content = readSync(agentsMdPath);
7453
7527
  if (!content) {
7454
- log.error("AGENTS.md is empty.");
7528
+ log2.error("AGENTS.md is empty.");
7455
7529
  return 1;
7456
7530
  }
7457
7531
  if (copyToClipboard) {
@@ -7460,30 +7534,30 @@ async function main() {
7460
7534
  const platform = process.platform;
7461
7535
  if (platform === "darwin") {
7462
7536
  execSync("pbcopy", { input: content });
7463
- log.success("Copied to clipboard! Paste into your AI agent.");
7537
+ log2.success("Copied to clipboard! Paste into your AI agent.");
7464
7538
  } else if (platform === "linux") {
7465
7539
  try {
7466
7540
  execSync("xclip -selection clipboard", { input: content });
7467
- log.success("Copied to clipboard! Paste into your AI agent.");
7541
+ log2.success("Copied to clipboard! Paste into your AI agent.");
7468
7542
  } catch {
7469
7543
  try {
7470
7544
  execSync("xsel --clipboard --input", { input: content });
7471
- log.success("Copied to clipboard! Paste into your AI agent.");
7545
+ log2.success("Copied to clipboard! Paste into your AI agent.");
7472
7546
  } catch {
7473
- log.warn("Could not copy to clipboard. Install xclip or xsel.");
7547
+ log2.warn("Could not copy to clipboard. Install xclip or xsel.");
7474
7548
  }
7475
7549
  }
7476
7550
  } else if (platform === "win32") {
7477
7551
  execSync("clip", { input: content });
7478
- log.success("Copied to clipboard! Paste into your AI agent.");
7552
+ log2.success("Copied to clipboard! Paste into your AI agent.");
7479
7553
  }
7480
7554
  } catch {
7481
- log.warn("Could not copy to clipboard automatically.");
7555
+ log2.warn("Could not copy to clipboard automatically.");
7482
7556
  }
7483
7557
  }
7484
- log.info("\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
7485
- log.info("Paste the above into your AI agent to start the WAI-WAY flow.");
7486
- log.info("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n");
7558
+ log2.info("\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500");
7559
+ log2.info("Paste the above into your AI agent to start the WAI-WAY flow.");
7560
+ log2.info("\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\n");
7487
7561
  return 0;
7488
7562
  }
7489
7563
  export {