dir-analysis-tool 3.1.0 → 3.2.0
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/README.md +11 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,6 +52,7 @@ npx dir-analysis-tool
|
|
|
52
52
|
- [Output formats](#output-formats)
|
|
53
53
|
- [Configuration](#configuration)
|
|
54
54
|
- [Library API](#library-api)
|
|
55
|
+
- [Agent skill](#agent-skill)
|
|
55
56
|
- [How it works](#how-it-works)
|
|
56
57
|
- [Exit codes](#exit-codes)
|
|
57
58
|
- [Migrating from v2](#migrating-from-v2)
|
|
@@ -425,6 +426,16 @@ await writeFile('report.md', renderAnalysisMarkdown(result));
|
|
|
425
426
|
|
|
426
427
|
Sizes and times accept the same strings as the CLI (`minSize: '10MB'`, `modifiedAfter: '30d'`), as well as numbers and `Date`s.
|
|
427
428
|
|
|
429
|
+
## Agent skill
|
|
430
|
+
|
|
431
|
+
An official [Agent Skill](https://agentskills.io) lets coding agents such as Claude Code, Codex, Gemini CLI, and OpenCode use `dat` to explain what takes up space in a repository, find duplicate assets, and check size budgets. The agents run the CLI and read its JSON output instead of guessing.
|
|
432
|
+
|
|
433
|
+
```bash
|
|
434
|
+
npx skills add KhaledSaeed18/dir-analysis-tool --skill dir-analysis-tool
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
Then ask in your own words, for example "why is this repo so big?" or "fail CI if `dist` goes over 2 MB". See [skills/README.md](skills/README.md) for other ways to install it, tested agents, and the evals.
|
|
438
|
+
|
|
428
439
|
## How it works
|
|
429
440
|
|
|
430
441
|
- **Scanning.** Directories are read with `readdir({ withFileTypes })`, so they never need a `stat`, and each regular file is `lstat`ed once. All filesystem calls go through one concurrency limiter (32 operations in flight by default), so no tree, however wide, can exhaust file handles. Work is scheduled depth-first to keep the queue small.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dir-analysis-tool",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.0",
|
|
4
4
|
"description": "Fast, zero-dependency 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": {
|