dir-analysis-tool 3.0.0 → 3.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.
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
- import { A as formatBytes, F as parsePointInTime, I as AbortError, L as DatError, N as VERSION, R as errorCode, S as joinRelative, a as renderComparisonMarkdown, c as formatCount, g as compare, i as renderAnalysisMarkdown, j as parseSize, k as parseBudget, l as createStyle, n as renderAnalysisCsv, o as renderAnalysis, p as loadConfig, r as renderComparisonCsv, s as renderComparison, t as renderAnalysisHtml, u as supportsColor, w as Excluder, x as listDirectories, y as analyze, z as errorMessage } from "./shared-Cmryy0SH.js";
2
+ import { A as parseBudget, B as errorMessage, I as parsePointInTime, L as AbortError, M as parseSize, P as VERSION, R as DatError, S as joinRelative, a as renderComparisonMarkdown, c as formatCount, g as compare, i as renderAnalysisMarkdown, j as formatBytes, k as formatBudgetActual, l as createStyle, n as renderAnalysisCsv, o as renderAnalysis, p as loadConfig, r as renderComparisonCsv, s as renderComparison, t as renderAnalysisHtml, u as supportsColor, w as Excluder, x as listDirectories, y as analyze, z as errorCode } from "./shared-BhASrUSI.js";
3
3
  import { mkdir, writeFile } from "node:fs/promises";
4
4
  import { dirname, join, relative, resolve, sep } from "node:path";
5
5
  import { existsSync, watch } from "node:fs";
@@ -45,12 +45,14 @@ const OPTIONAL_VALUE_FLAGS = [
45
45
  {
46
46
  names: ["-l", "--large-files"],
47
47
  long: "--large-files",
48
- accepts: isSize
48
+ accepts: isSize,
49
+ looksLikeValue: /^\.?\d/
49
50
  },
50
51
  {
51
52
  names: ["--stale"],
52
53
  long: "--stale",
53
- accepts: isPointInTime
54
+ accepts: isPointInTime,
55
+ looksLikeValue: /^\d/
54
56
  },
55
57
  {
56
58
  names: ["--html"],
@@ -63,7 +65,7 @@ const OPTIONAL_VALUE_FLAGS = [
63
65
  accepts: (v) => /\.csv$/i.test(v)
64
66
  }
65
67
  ];
66
- function normalizeArgv(argv) {
68
+ function normalizeArgv(argv, cwd = process.cwd()) {
67
69
  const out = [];
68
70
  for (let i = 0; i < argv.length; i++) {
69
71
  const token = argv[i];
@@ -74,8 +76,10 @@ function normalizeArgv(argv) {
74
76
  const flag = OPTIONAL_VALUE_FLAGS.find((f) => f.names.includes(token));
75
77
  const next = argv[i + 1];
76
78
  if (flag && next !== void 0 && !next.startsWith("-") && !flag.accepts(next)) {
77
- out.push(`${flag.long}=`);
78
- continue;
79
+ if (!(flag.looksLikeValue?.test(next) && !existsSync(resolve(cwd, next)))) {
80
+ out.push(`${flag.long}=`);
81
+ continue;
82
+ }
79
83
  }
80
84
  out.push(token);
81
85
  }
@@ -385,12 +389,7 @@ function reportBudgets(ctx, result, display) {
385
389
  ctx.exitCode = ExitCode.BudgetFailed;
386
390
  if (display.format === "pretty" && !display.output) return;
387
391
  for (const budget of failed) {
388
- const actual = [
389
- "size",
390
- "disk",
391
- "largest",
392
- "wasted"
393
- ].includes(budget.metric) ? formatBytes(budget.actual, display.units) : String(budget.actual);
392
+ const actual = formatBudgetActual(budget, display.units);
394
393
  ctx.io.stderr.write(`${ctx.err.red("budget failed")} ${budget.rule} (actual ${actual})\n`);
395
394
  }
396
395
  }
@@ -761,7 +760,7 @@ function describeChange(previous, current, units) {
761
760
  if (bytes === 0 && files === 0) return "no size change";
762
761
  const parts = [];
763
762
  if (bytes !== 0) parts.push(`${bytes > 0 ? "+" : ""}${formatBytes(bytes, units)}`);
764
- if (files !== 0) parts.push(`${files > 0 ? "+" : ""}${formatCount(files)} files`);
763
+ if (files !== 0) parts.push(`${files > 0 ? "+" : ""}${formatCount(files)} ${Math.abs(files) === 1 ? "file" : "files"}`);
765
764
  return parts.join(", ");
766
765
  }
767
766
  //#endregion
@@ -841,7 +840,7 @@ async function run(argv, io = processIO()) {
841
840
  const ctx = new Context(io);
842
841
  const program = createProgram(ctx);
843
842
  try {
844
- await program.parseAsync(normalizeArgv(argv), { from: "user" });
843
+ await program.parseAsync(normalizeArgv(argv, io.cwd), { from: "user" });
845
844
  return ctx.exitCode;
846
845
  } catch (error) {
847
846
  return handleError(error, ctx);
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- export { I as AbortError, D as BUDGET_METRICS, M as CATEGORIES, d as CONFIG_FILE_NAMES, b as DEFAULT_CONCURRENCY, C as DEFAULT_EXCLUDES, _ as DEFAULT_LARGE_FILE_THRESHOLD, v as DEFAULT_STALE_AGE, L as DatError, N as VERSION, y as analyze, m as buildJsonSchema, T as classify, g as compare, l as createStyle, O as evaluateBudgets, E as extensionOf, f as findConfigFile, A as formatBytes, x as listDirectories, p as loadConfig, k as parseBudget, P as parseDuration, F as parsePointInTime, j as parseSize, o as renderAnalysis, n as renderAnalysisCsv, t as renderAnalysisHtml, i as renderAnalysisMarkdown, s as renderComparison, r as renderComparisonCsv, a as renderComparisonMarkdown, h as validateConfig } from "./shared-Cmryy0SH.js";
1
+ export { L as AbortError, D as BUDGET_METRICS, N as CATEGORIES, d as CONFIG_FILE_NAMES, b as DEFAULT_CONCURRENCY, C as DEFAULT_EXCLUDES, _ as DEFAULT_LARGE_FILE_THRESHOLD, v as DEFAULT_STALE_AGE, R as DatError, P as VERSION, y as analyze, m as buildJsonSchema, T as classify, g as compare, l as createStyle, O as evaluateBudgets, E as extensionOf, f as findConfigFile, j as formatBytes, x as listDirectories, p as loadConfig, A as parseBudget, F as parseDuration, I as parsePointInTime, M as parseSize, o as renderAnalysis, n as renderAnalysisCsv, t as renderAnalysisHtml, i as renderAnalysisMarkdown, s as renderComparison, r as renderComparisonCsv, a as renderComparisonMarkdown, h as validateConfig } from "./shared-BhASrUSI.js";
@@ -178,6 +178,19 @@ function formatBytes(bytes, units = "iec") {
178
178
  function trimZeros(text) {
179
179
  return text.includes(".") ? text.replace(/\.?0+$/, "") : text;
180
180
  }
181
+ /**
182
+ * The unit system a byte count was most likely written in, so a value can be
183
+ * shown back the way the user typed it: 1,000,000 bytes ("1MB") is SI and
184
+ * 1,048,576 ("1MiB") is IEC. Returns `fallback` when it is ambiguous.
185
+ */
186
+ function unitsOf(bytes, fallback) {
187
+ if (!(bytes > 0)) return fallback;
188
+ const si = bytes % 1e3 === 0;
189
+ const iec = bytes % 1024 === 0;
190
+ if (si && !iec) return "si";
191
+ if (iec && !si) return "iec";
192
+ return fallback;
193
+ }
181
194
  const SIZE_PATTERN = /^\s*(\d+(?:\.\d+)?|\.\d+)\s*([a-z]*)\s*$/i;
182
195
  const SIZE_MULTIPLIERS = {
183
196
  "": 1,
@@ -345,6 +358,14 @@ function compare$1(actual, operator, limit) {
345
358
  case "!=": return actual !== limit;
346
359
  }
347
360
  }
361
+ /**
362
+ * Formats a budget's measured value for display. Sizes use the unit system of
363
+ * the rule's own limit, so "size<=500MB" reads "actual 312 MB", not "297 MiB".
364
+ */
365
+ function formatBudgetActual(budget, units) {
366
+ if (BUDGET_METRICS[budget.metric].kind === "count") return budget.actual.toLocaleString("en-US");
367
+ return formatBytes(budget.actual, unitsOf(budget.limit, units));
368
+ }
348
369
  //#endregion
349
370
  //#region src/core/classify.ts
350
371
  const EXTENSIONS = {
@@ -1123,6 +1144,7 @@ var Scanner = class {
1123
1144
  try {
1124
1145
  entries = await readdir(absPath, { withFileTypes: true });
1125
1146
  } catch (error) {
1147
+ this.dirs[index].entries = -1;
1126
1148
  this.recordError(this.relativePath(index), error);
1127
1149
  return;
1128
1150
  }
@@ -1509,12 +1531,20 @@ async function analyze(path, options = {}) {
1509
1531
  let duplicates;
1510
1532
  if (features.duplicates) {
1511
1533
  progress.stop();
1512
- duplicates = await collector.findDuplicates(scanOptions.concurrency, scanOptions.signal, (p) => report?.({
1513
- phase: "hash",
1514
- files: scanner.counters.files,
1515
- bytes: scanner.counters.bytes,
1516
- ...p
1517
- }));
1534
+ const interval = options.progressInterval ?? 100;
1535
+ let last = 0;
1536
+ duplicates = await collector.findDuplicates(scanOptions.concurrency, scanOptions.signal, (p) => {
1537
+ if (!report) return;
1538
+ const now = performance.now();
1539
+ if (p.done !== p.total && p.done !== 0 && now - last < interval) return;
1540
+ last = now;
1541
+ report({
1542
+ phase: "hash",
1543
+ files: scanner.counters.files,
1544
+ bytes: scanner.counters.bytes,
1545
+ ...p
1546
+ });
1547
+ });
1518
1548
  }
1519
1549
  const result = collector.build(scanner, {
1520
1550
  root: scanOptions.root,
@@ -2572,7 +2602,7 @@ function renderAnalysis(result, options = {}) {
2572
2602
  row("Files", formatCount(sum.files));
2573
2603
  row("Folders", formatCount(sum.directories));
2574
2604
  if (sum.symlinks > 0) row("Symlinks", `${formatCount(sum.symlinks)} ${s.dim(result.settings.followSymlinks ? "(followed)" : "(not followed)")}`);
2575
- if (sum.hardlinks > 0) row("Hardlinks", `${formatCount(sum.hardlinks)} ${s.dim("extra links counted once")}`);
2605
+ if (sum.hardlinks > 0) row("Hardlinks", `${formatCount(sum.hardlinks)} ${s.dim(`extra ${sum.hardlinks === 1 ? "link" : "links"} counted once`)}`);
2576
2606
  const skipped = [];
2577
2607
  if (sum.excluded > 0) skipped.push(`${formatCount(sum.excluded)} excluded`);
2578
2608
  if (sum.filtered > 0) skipped.push(`${formatCount(sum.filtered)} filtered`);
@@ -2596,7 +2626,7 @@ function renderAnalysis(result, options = {}) {
2596
2626
  }
2597
2627
  if (result.largeFiles) {
2598
2628
  const lf = result.largeFiles;
2599
- r.heading(`Large files ≥ ${r.bytes(lf.threshold)}`, lf.count > 0 ? `${plural(lf.count, "file")} · ${r.bytes(lf.bytes)}` : "none");
2629
+ r.heading(`Large files ≥ ${formatBytes(lf.threshold, unitsOf(lf.threshold, r.units))}`, lf.count > 0 ? `${plural(lf.count, "file")} · ${r.bytes(lf.bytes)}` : "none");
2600
2630
  r.fileList(lf.items, lf.count);
2601
2631
  }
2602
2632
  if (result.duplicates) renderDuplicates(r, result.duplicates);
@@ -2633,12 +2663,7 @@ function renderAnalysis(result, options = {}) {
2633
2663
  const failed = result.budgets.filter((b) => !b.passed).length;
2634
2664
  r.heading("Budgets", failed > 0 ? s.red(`${failed} failed`) : s.green("all passed"));
2635
2665
  for (const budget of result.budgets) {
2636
- const actual = [
2637
- "size",
2638
- "disk",
2639
- "largest",
2640
- "wasted"
2641
- ].includes(budget.metric) ? r.bytes(budget.actual) : formatCount(budget.actual);
2666
+ const actual = formatBudgetActual(budget, r.units);
2642
2667
  const mark = budget.passed ? s.green("✔") : s.red("✘");
2643
2668
  r.line(` ${mark} ${padEndVisible(budget.rule, 24)} ${s.dim("actual")} ${budget.passed ? actual : s.red(actual)}`);
2644
2669
  }
@@ -2701,7 +2726,7 @@ function renderComparison(result, options = {}) {
2701
2726
  const signed = (n) => n > 0 ? s.green(`+${r.bytes(n)}`) : n < 0 ? s.red(r.bytes(n)) : s.dim("±0");
2702
2727
  const signedCount = (n) => n > 0 ? s.green(`+${formatCount(n)}`) : n < 0 ? s.red(`-${formatCount(-n)}`) : s.dim("±0");
2703
2728
  const pct = (left, right) => {
2704
- if (left === 0) return "";
2729
+ if (left === 0 || left === right) return "";
2705
2730
  const value = (right - left) / left * 100;
2706
2731
  return s.dim(` (${value > 0 ? "+" : ""}${Math.abs(value) < .1 && value !== 0 ? value.toFixed(2) : value.toFixed(1)}%)`);
2707
2732
  };
@@ -2724,7 +2749,7 @@ function renderComparison(result, options = {}) {
2724
2749
  for (const c of changedTypes) {
2725
2750
  const l = result.left.types[c];
2726
2751
  const rt = result.right.types[c];
2727
- r.line(` ${padEndVisible(CATEGORY_LABELS[c], 10)}${col(r.bytes(l.bytes))}${col(r.bytes(rt.bytes))} ${signed(rt.bytes - l.bytes)} ${s.dim(`${signedCount(rt.files - l.files)} files`)}`);
2752
+ r.line(` ${padEndVisible(CATEGORY_LABELS[c], 10)}${col(r.bytes(l.bytes))}${col(r.bytes(rt.bytes))} ${signed(rt.bytes - l.bytes)} ${s.dim(`${signedCount(rt.files - l.files)} ${Math.abs(rt.files - l.files) === 1 ? "file" : "files"}`)}`);
2728
2753
  }
2729
2754
  }
2730
2755
  const fileSection = (title, list, mark) => {
@@ -2804,12 +2829,7 @@ function renderAnalysisMarkdown(result, options = {}) {
2804
2829
  ], result.budgets.map((x) => [
2805
2830
  x.passed ? "✅" : "❌",
2806
2831
  mdCode(x.rule),
2807
- [
2808
- "size",
2809
- "disk",
2810
- "largest",
2811
- "wasted"
2812
- ].includes(x.metric) ? b(x.actual) : formatCount(x.actual)
2832
+ formatBudgetActual(x, units)
2813
2833
  ])));
2814
2834
  }
2815
2835
  const types = CATEGORIES.filter((c) => result.types[c].files > 0).sort((x, y) => result.types[y].bytes - result.types[x].bytes);
@@ -2854,7 +2874,7 @@ function renderAnalysisMarkdown(result, options = {}) {
2854
2874
  }
2855
2875
  if (result.largeFiles && result.largeFiles.count > 0) {
2856
2876
  const lf = result.largeFiles;
2857
- out.push("", `### Large files (≥ ${b(lf.threshold)}): ${plural(lf.count, "file")}, ${b(lf.bytes)}`, "");
2877
+ out.push("", `### Large files (≥ ${formatBytes(lf.threshold, unitsOf(lf.threshold, units))}): ${plural(lf.count, "file")}, ${b(lf.bytes)}`, "");
2858
2878
  fileTable(lf.items, lf.count);
2859
2879
  }
2860
2880
  if (result.duplicates) {
@@ -3137,6 +3157,8 @@ function renderComparisonCsv(result) {
3137
3157
  }
3138
3158
  //#endregion
3139
3159
  //#region src/reporters/html.ts
3160
+ /** Duplicate groups listed in the HTML report; the full list is in JSON and CSV. */
3161
+ const DUPLICATE_GROUPS_SHOWN = 100;
3140
3162
  const CATEGORY_COLORS = {
3141
3163
  code: "#6366f1",
3142
3164
  documents: "#0ea5e9",
@@ -3167,17 +3189,12 @@ function renderAnalysisHtml(result, options = {}) {
3167
3189
  const fileTable = (items, total, showModified = false) => {
3168
3190
  const shown = items.slice(0, limit);
3169
3191
  const max = shown[0]?.bytes ?? 0;
3170
- return `<table class="filterable"><thead><tr><th class="num">Size</th><th>Path</th>${showModified ? "<th>Modified</th>" : ""}</tr></thead><tbody>${shown.map((f) => `<tr><td class="num">${e(b(f.bytes))}</td><td class="path">${meter(f.bytes, max)}<span>${e(f.path)}</span></td>${showModified ? `<td class="muted">${e(f.modified.slice(0, 10))}</td>` : ""}</tr>`).join("")}</tbody></table>${truncatedNote(shown.length, total)}`;
3192
+ return `<table class="filterable"><thead><tr><th class="num">Size</th><th>Path</th>${showModified ? "<th>Modified</th>" : ""}</tr></thead><tbody>${shown.map((f) => `<tr><td class="num">${e(b(f.bytes))}</td><td class="path">${meter(f.bytes, max)}<span>${e(f.path)}</span></td>${showModified ? `<td class="muted date">${e(f.modified.slice(0, 10))}</td>` : ""}</tr>`).join("")}</tbody></table>${truncatedNote(shown.length, total)}`;
3171
3193
  };
3172
3194
  if (result.budgets && result.budgets.length > 0) {
3173
3195
  const failed = result.budgets.filter((x) => !x.passed).length;
3174
3196
  sections.push(section("Budgets", failed > 0 ? `${failed} failed` : "all passed", `<ul class="budgets">${result.budgets.map((x) => {
3175
- const actual = [
3176
- "size",
3177
- "disk",
3178
- "largest",
3179
- "wasted"
3180
- ].includes(x.metric) ? b(x.actual) : formatCount(x.actual);
3197
+ const actual = formatBudgetActual(x, units);
3181
3198
  return `<li class="${x.passed ? "pass" : "fail"}"><span>${x.passed ? "✔" : "✘"}</span><code>${e(x.rule)}</code><span class="muted">actual ${e(actual)}</span></li>`;
3182
3199
  }).join("")}</ul>`));
3183
3200
  }
@@ -3197,12 +3214,12 @@ function renderAnalysisHtml(result, options = {}) {
3197
3214
  }
3198
3215
  if (result.largeFiles) {
3199
3216
  const lf = result.largeFiles;
3200
- sections.push(section(`Large files ≥ ${b(lf.threshold)}`, lf.count > 0 ? `${plural(lf.count, "file")} · ${b(lf.bytes)}` : "none", lf.count > 0 ? fileTable(lf.items, lf.count, true) : ""));
3217
+ sections.push(section(`Large files ≥ ${formatBytes(lf.threshold, unitsOf(lf.threshold, units))}`, lf.count > 0 ? `${plural(lf.count, "file")} · ${b(lf.bytes)}` : "none", lf.count > 0 ? fileTable(lf.items, lf.count, true) : ""));
3201
3218
  }
3202
3219
  if (result.duplicates) {
3203
3220
  const d = result.duplicates;
3204
- const groups = d.items.slice(0, limit);
3205
- sections.push(section("Duplicates", d.count > 0 ? `${plural(d.count, "group")} · ${b(d.wastedBytes)} reclaimable` : "none found", groups.map((g) => `<details class="group"><summary><strong>${e(b(g.wastedBytes))}</strong> reclaimable <span class="muted">· ${g.files.length} × ${e(b(g.bytes))}</span></summary><ul>${g.files.map((f) => `<li class="path">${e(f)}</li>`).join("")}</ul><p class="muted hash">sha256 ${e(g.hash)}</p></details>`).join("") + truncatedNote(groups.length, d.count)));
3221
+ const groups = d.items.slice(0, Math.min(limit, DUPLICATE_GROUPS_SHOWN));
3222
+ sections.push(section("Duplicates", d.count > 0 ? `${plural(d.count, "group")} · ${b(d.wastedBytes)} reclaimable` : "none found", groups.map((g) => `<details class="group"><summary><strong>${e(b(g.wastedBytes))}</strong> <span class="muted">${g.files.length} × ${e(b(g.bytes))}</span> <span class="path first">${e(g.files[0])}</span>${g.files.length > 1 ? ` <span class="muted">and ${g.files.length - 1} more</span>` : ""}</summary><ul>${g.files.map((f) => `<li class="path">${e(f)}</li>`).join("")}</ul><p class="muted hash">sha256 ${e(g.hash)}</p></details>`).join("") + truncatedNote(groups.length, d.count)));
3206
3223
  }
3207
3224
  if (result.emptyFiles || result.emptyDirectories) {
3208
3225
  const files = result.emptyFiles?.items ?? [];
@@ -3318,13 +3335,15 @@ th{font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--mute
3318
3335
  tr:last-child td{border-bottom:0}
3319
3336
  .num{text-align:right;white-space:nowrap}
3320
3337
  td.path{position:relative;word-break:break-all}
3338
+ td.date{white-space:nowrap}
3321
3339
  td.path span{position:relative}
3322
3340
  .meter{position:absolute;left:0;top:4px;bottom:4px;background:var(--meter);border-radius:4px}
3323
3341
  .types{display:grid;grid-template-columns:180px 1fr;gap:24px;align-items:center}
3324
3342
  .donut{width:180px;height:180px;transform:rotate(0)}
3325
3343
  .swatch{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:8px}
3326
3344
  .group{border:1px solid var(--line);border-radius:10px;padding:10px 14px;margin:8px 0}
3327
- .group summary{cursor:pointer}
3345
+ .group summary{cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
3346
+ .group .first{margin-left:6px}
3328
3347
  .group ul,.plain{margin:8px 0 0;padding-left:18px}
3329
3348
  .hash{font-family:ui-monospace,monospace;font-size:11px;margin:6px 0 0;word-break:break-all}
3330
3349
  .budgets{list-style:none;padding:0;margin:0}
@@ -3332,7 +3351,11 @@ td.path span{position:relative}
3332
3351
  .pass span:first-child{color:var(--ok)}.fail span:first-child{color:var(--bad)}.fail code{color:var(--bad)}
3333
3352
  .tree details>details,.tree details>.leaf{margin-left:22px}
3334
3353
  .tree summary,.tree .leaf{display:flex;gap:12px;padding:3px 0;cursor:default}
3335
- .tree summary{cursor:pointer}
3354
+ .tree summary{cursor:pointer;list-style:none}
3355
+ .tree summary::-webkit-details-marker{display:none}
3356
+ .tree summary::before,.tree .leaf::before{content:'';width:12px;flex:none;color:var(--muted)}
3357
+ .tree summary::before{content:'▸'}
3358
+ .tree details[open]>summary::before{content:'▾'}
3336
3359
  .tree .num{min-width:84px}.tree .share{min-width:40px;color:var(--muted);font-size:12px;text-align:right}
3337
3360
  .hidden{display:none}
3338
3361
  footer{padding:24px;color:var(--muted);font-size:13px;text-align:center}
@@ -3348,4 +3371,4 @@ document.getElementById('filter').addEventListener('input', function (event) {
3348
3371
  });
3349
3372
  `;
3350
3373
  //#endregion
3351
- export { formatBytes as A, DEFAULT_EXCLUDES as C, BUDGET_METRICS as D, extensionOf as E, parsePointInTime as F, AbortError as I, DatError as L, CATEGORIES as M, VERSION as N, evaluateBudgets as O, parseDuration as P, errorCode as R, joinRelative as S, classify as T, DEFAULT_LARGE_FILE_THRESHOLD as _, renderComparisonMarkdown as a, DEFAULT_CONCURRENCY as b, formatCount as c, CONFIG_FILE_NAMES as d, findConfigFile as f, compare as g, validateConfig as h, renderAnalysisMarkdown as i, parseSize as j, parseBudget as k, createStyle as l, buildJsonSchema as m, renderAnalysisCsv as n, renderAnalysis as o, loadConfig as p, renderComparisonCsv as r, renderComparison as s, renderAnalysisHtml as t, supportsColor as u, DEFAULT_STALE_AGE as v, Excluder as w, listDirectories as x, analyze as y, errorMessage as z };
3374
+ export { parseBudget as A, errorMessage as B, DEFAULT_EXCLUDES as C, BUDGET_METRICS as D, extensionOf as E, parseDuration as F, parsePointInTime as I, AbortError as L, parseSize as M, CATEGORIES as N, evaluateBudgets as O, VERSION as P, DatError as R, joinRelative as S, classify as T, DEFAULT_LARGE_FILE_THRESHOLD as _, renderComparisonMarkdown as a, DEFAULT_CONCURRENCY as b, formatCount as c, CONFIG_FILE_NAMES as d, findConfigFile as f, compare as g, validateConfig as h, renderAnalysisMarkdown as i, formatBytes as j, formatBudgetActual as k, createStyle as l, buildJsonSchema as m, renderAnalysisCsv as n, renderAnalysis as o, loadConfig as p, renderComparisonCsv as r, renderComparison as s, renderAnalysisHtml as t, supportsColor as u, DEFAULT_STALE_AGE as v, Excluder as w, listDirectories as x, analyze as y, errorCode as z };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dir-analysis-tool",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "description": "Fast, memory-bounded directory analysis for your terminal and CI: largest folders and files, type and extension breakdowns, staged duplicate detection, size budgets, directory diffs, and self-contained HTML, Markdown, JSON, and CSV reports.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -38,7 +38,8 @@
38
38
  "check": "pnpm typecheck && pnpm lint && pnpm format:check && pnpm build && pnpm test:coverage && pnpm check:package",
39
39
  "check:package": "publint --strict && attw --pack . --profile esm-only",
40
40
  "prepare": "husky",
41
- "prepublishOnly": "pnpm build"
41
+ "prepublishOnly": "pnpm build",
42
+ "banner": "node scripts/banner.ts"
42
43
  },
43
44
  "keywords": [
44
45
  "cli",