dev-prune-darwin-arm64 1.21.0 → 1.22.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 +37 -16
- package/bin/dev-prune +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -52,7 +52,7 @@ gigabytes hostage for a build you are not running.
|
|
|
52
52
|
|
|
53
53
|
`dev-prune` finds those directories across every Git repository you register, and deletes
|
|
54
54
|
them — but only after proving the exact command that puts them back would succeed. It
|
|
55
|
-
knows
|
|
55
|
+
knows thirty-five package managers, not just the obvious four: Composer, Bundler, Mix,
|
|
56
56
|
CocoaPods and Terraform are as first-class as npm and pip. It is one Rust program,
|
|
57
57
|
installs its own background schedule, and answers to two names you type — `dev-prune` and
|
|
58
58
|
`devp` — alongside a third, windowless build, `devpw`, that exists only so the Windows
|
|
@@ -369,7 +369,7 @@ devp history # which pass reclaimed it, and what started that pas
|
|
|
369
369
|
devp history --pass 1 # the exact command line, and every directory it took
|
|
370
370
|
devp caches # every package manager cache, sized. The report deletes nothing
|
|
371
371
|
devp caches docker # what Docker holds, and the prune commands
|
|
372
|
-
devp caches clear docker # run the narrow ones —
|
|
372
|
+
devp caches clear docker # run the narrow ones — no volume unless you name it, never on a schedule
|
|
373
373
|
devp status --drift # anything installed that the lockfiles don't record?
|
|
374
374
|
devp doctor . # why is this repository not being pruned?
|
|
375
375
|
devp doctor --fix # repair a broken integration — never a first-time install
|
|
@@ -479,13 +479,26 @@ them and asking, and counts what came back on its own line in `devp stats`. Prin
|
|
|
479
479
|
commands and asking you to go and type one in another window meant whatever you reclaimed
|
|
480
480
|
on its advice was yours to have remembered, and dev-prune could not account for it.
|
|
481
481
|
|
|
482
|
-
**It will not
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
482
|
+
**It will not bulk-delete volumes, and no flag makes it.** No argument in the reclaim
|
|
483
|
+
table contains the word volume, a unit test fails the build if one appears, and dev-prune
|
|
484
|
+
never runs `volume prune` or `system prune --volumes`. That is a different promise from
|
|
485
|
+
the lockfile rule: an image can be pulled again and a build cache rebuilt, so those are a
|
|
486
|
+
question of consent and the prompt is the consent. What is inside a volume is the only
|
|
487
|
+
copy, so a volume goes only when someone names it. That naming has a spelling now:
|
|
488
|
+
`devp caches clear docker --include-volumes` (docker and podman) lists the unused
|
|
489
|
+
volumes by name after the narrow steps run and you type the numbers of the ones to
|
|
490
|
+
delete, each pick one unforced `volume rm`. It refuses `--yes`, `--json` and a piped
|
|
491
|
+
stdin, so no script or scheduler can reach it. The one unattended spelling is
|
|
492
|
+
`--include-volumes --dry-run`, which deletes nothing: it lists the unused volumes by
|
|
493
|
+
name with the command to paste, so an agent can prepare everything and a person runs
|
|
494
|
+
the final command at a terminal, and what the picks free is then counted on
|
|
495
|
+
`devp stats`, which a `volume rm` typed straight at the engine would not be. The pick
|
|
496
|
+
list arms only within ten minutes of a completed dry run for that engine: typed cold,
|
|
497
|
+
the real command runs the dry run instead and says so, and the same line typed again
|
|
498
|
+
within ten minutes reaches the picking. Without
|
|
499
|
+
the flag, the estimate still
|
|
500
|
+
says how much unused-volume space is being left alone rather than folding it into a
|
|
501
|
+
number these commands cannot deliver.
|
|
489
502
|
|
|
490
503
|
The figures come from the engine's own `system df`, not a walk of the disk. On Docker
|
|
491
504
|
Desktop and Podman the store lives inside a VM disk image the host filesystem cannot see,
|
|
@@ -564,7 +577,7 @@ process that leaves a dirty working tree is a surprise.
|
|
|
564
577
|
| 🧩 **Any number of ecosystems per repository** | uv, npm and cargo in one root, or spread across `frontend/`, `services/api/` and `tools/cli/` — each discovered, verified and pruned on its own terms |
|
|
565
578
|
| ↩️ **One-command restore** | `devp restore .` reinstalls a tree; `devp restore --last-run` puts back exactly what the most recent pass deleted, across every repository it touched |
|
|
566
579
|
| 🕒 **Activity-aware** | Combines `git log` timestamps with source-file `mtime`, so uncommitted work protects a repository just as a commit does |
|
|
567
|
-
| 🐳 **Container report** | `devp caches docker` (also `devp caches podman`, and `devp caches containers <engine>` for `nerdctl`, `finch` or Apple's `container` — the engine name is an argument to `containers`, never a subcommand of its own — or `devp caches containers` on its own for every engine it finds plus local Kubernetes clusters) breaks a container engine's disk into images, containers, local volumes and build cache, each with what the engine itself calls reclaimable, and prints the prune commands narrowest first with what each takes with it. `devp caches clear docker` then runs the narrow ones for you, after asking, and counts them in `devp stats` — **
|
|
580
|
+
| 🐳 **Container report** | `devp caches docker` (also `devp caches podman`, and `devp caches containers <engine>` for `nerdctl`, `finch` or Apple's `container` — the engine name is an argument to `containers`, never a subcommand of its own — or `devp caches containers` on its own for every engine it finds plus local Kubernetes clusters) breaks a container engine's disk into images, containers, local volumes and build cache, each with what the engine itself calls reclaimable, and prints the prune commands narrowest first with what each takes with it. `devp caches clear docker` then runs the narrow ones for you, after asking, and counts them in `devp stats` — **no volume unless you pick it by name** (`--include-volumes`, a terminal-only list you choose from, one unforced `volume rm` per pick, never `volume prune`), and never from a scheduler or a hook. `devp caches` carries a one-line summary per engine, outside its own total |
|
|
568
581
|
| 📊 **Cache report** | `devp caches` sizes every package manager cache and store on the machine — npm to cargo to conda, Maven, Gradle, NuGet, vcpkg, Conan, Composer, CocoaPods, Hex, Bundler, pub, SwiftPM, Terraform, Poetry, PDM and Deno — and prints the command that clears each. It also finds the stores that belong to no package manager at all and are routinely the largest things in the list: the Playwright and Puppeteer browser bundles, the Cypress binary cache, the Electron and electron-builder download caches, and the HuggingFace hub — a whole browser or model per version, and nothing ever removes the old one. The report is read-only; `devp caches clear <manager>` runs that command for you, after asking. `devp config set cache_max_gb default=10` says how big is too big — for every manager at once, or per manager with `default=10,npm=4` — and marks the ones past it — `devp caches clear --over-cap all` then empties exactly those, still only when you type it. Each manager also says how many of your registered repositories use it and what that works out to per repository, and `devp caches clear --unused all` empties the ones nothing uses at all. pnpm is reported once per filesystem, because a store it hardlinks into `node_modules` cannot cross one and projects kept off the system disk get a store of their own. Nothing on a schedule ever touches a cache, and Maven's `~/.m2/repository` is never cleared at all — it holds artifacts `mvn install:install-file` put there that no remote can hand back |
|
|
569
582
|
| 🩺 **`devp doctor`** | One read-only pass that ends by naming the *single* reason a repository would or would not be pruned. Runs no package manager, repairs nothing, safe to run twice. `devp doctor --fix` then mends what it found — installed-but-broken only |
|
|
570
583
|
| 🤖 **Self-installing automation** | OS-native scheduler (Task Scheduler, LaunchAgent, systemd user timer) and non-blocking Git hooks, installed once the first run’s walkthrough is accepted (quitting it installs nothing) and restored after an upgrade. `auto_setup`, `auto_hooks`, `auto_daemon` or `DEV_PRUNE_NO_AUTO_SETUP=1` turn it off |
|
|
@@ -592,7 +605,7 @@ process that leaves a dirty working tree is a surprise.
|
|
|
592
605
|
| `devp history` | `--pass N`, `--limit N`, `--all`, `--json`, `--export [PATH]` | Which pass deleted what, and what asked it to — one line per pass, then `--pass N` for the command line that ran it and every directory it removed. `--export` writes the lot to your documents folder |
|
|
593
606
|
| `devp completions` | `bash`, `zsh`, `fish`, `powershell`, `elvish` | Prints a shell completion script to stdout, generated from the same argument definitions the binary parses with |
|
|
594
607
|
| `devp caches` | `clear <manager\|all>`, `--json` | Sizes every package manager cache on the machine and prints the command that clears each. The report deletes nothing and nothing on a schedule ever will; `clear` empties one when you type it, after asking |
|
|
595
|
-
| `devp caches docker` | `podman`, `containers [ENGINE]` (`nerdctl`, `finch`, `container`), `--json` | What a container engine holds — images, containers, volumes, build cache — each sized, with what the engine calls reclaimable, then the prune commands. The report deletes nothing; `devp caches clear <engine>` runs the narrow ones when you name it
|
|
608
|
+
| `devp caches docker` | `podman`, `containers [ENGINE]` (`nerdctl`, `finch`, `container`), `--json` | What a container engine holds — images, containers, volumes, build cache — each sized, with what the engine calls reclaimable, then the prune commands. The report deletes nothing; `devp caches clear <engine>` runs the narrow ones when you name it — a volume only through `--include-volumes`, picked by name at a terminal |
|
|
596
609
|
| `devp trust` | `--json` | What dev-prune may do on this machine: the guarantees the code enforces, then the scheduler, hooks and settings read live, then every copy of dev-prune on the machine with the manager that installed it and its SHA-256. Read-only |
|
|
597
610
|
| `devp restore [PATH]` | `--last-run` | Reinstalls dependencies for every project in a tree; `--last-run` undoes the last prune pass |
|
|
598
611
|
| `devp doctor [PATH]` | `--fix` | Diagnoses the installation, or one repository — ending with the single reason a pass would or would not touch it. `--fix` repairs what the checks found; it never performs a first-time install |
|
|
@@ -634,6 +647,7 @@ Adapters detect the project, verify the lockfile, and own the bloat directories:
|
|
|
634
647
|
| **PDM** (Python) | `pdm.lock`, `[tool.pdm]` or `pdm.backend` in `pyproject.toml` | `.venv`, `__pypackages__` | `pdm lock --check` | `pdm install` |
|
|
635
648
|
| **Pipenv** (Python) | `Pipfile` | `.venv` *(in-project installs only)* | `pipenv verify` | `pipenv install --deploy` |
|
|
636
649
|
| **venv** (Python) | `requirements.txt` + a directory containing `pyvenv.cfg` | every directory containing `pyvenv.cfg` | `requirements.txt` must exist and list at least one package | `python -m venv .venv && pip install -r requirements.txt` |
|
|
650
|
+
| **pixi** (Python/conda) | `pixi.toml`, `pixi.lock`, `[tool.pixi]` in `pyproject.toml` | `.pixi` | `pixi.lock` carries its `version:` and records at least one conda or PyPI package | `pixi install` |
|
|
637
651
|
| **Cargo** (Rust) *(opt-in)* | `Cargo.toml` | `target` | `cargo metadata --locked` | *(rebuilt by the next `cargo build`)* |
|
|
638
652
|
| **Go** | `go.mod` | `vendor` | `go mod download` | `go mod vendor` |
|
|
639
653
|
| **Composer** (PHP) | `composer.json` | `vendor` | `composer validate --no-check-publish --no-check-all` | `composer install` |
|
|
@@ -649,15 +663,22 @@ Adapters detect the project, verify the lockfile, and own the bloat directories:
|
|
|
649
663
|
| **vcpkg** (C/C++) *(opt-in)* | `vcpkg.json` | `vcpkg_installed` | `vcpkg.json` declares a non-empty `dependencies` list | *(rebuilt by the next `vcpkg install`)* |
|
|
650
664
|
| **CMake** (C/C++) *(opt-in)* | `CMakeLists.txt` | any tree holding a `CMakeCache.txt` | the tree's own `CMakeCache.txt` names a source directory inside this repository | *(rebuilt by the next `cmake --build`)* |
|
|
651
665
|
| **.NET build** *(opt-in)* | `*.csproj`, `*.fsproj`, `*.vbproj` | `obj`, and `bin` beside it *(only while `bin` holds nothing but `Debug`/`Release`)* | `obj/project.assets.json` names a project file still sitting in this directory, and every project file here has a `<Project` root | *(rebuilt by the next `dotnet build`)* |
|
|
666
|
+
| **Zig** *(opt-in)* | `build.zig` | `.zig-cache`, `zig-cache`, `zig-out` | `build.zig` declares a `pub fn build` — the rebuild-from-source proof | *(rebuilt by the next `zig build`)* |
|
|
667
|
+
| **Stack** (Haskell) *(opt-in)* | `stack.yaml` | `.stack-work` | `stack.yaml` names its `resolver:` (or `snapshot:`) | *(rebuilt by the next `stack build`)* |
|
|
668
|
+
| **Cabal** (Haskell) *(opt-in)* | `cabal.project` | `dist-newstyle` | `cabal.project` declares its `packages` — a lone `*.cabal` file is never claimed | *(rebuilt by the next `cabal build`)* |
|
|
669
|
+
| **sbt** (Scala) *(opt-in)* | `build.sbt` | `target`, `project/target` | `build.sbt` carries a setting, or `project/build.properties` pins `sbt.version` | *(rebuilt by the next `sbt compile`)* |
|
|
652
670
|
|
|
653
671
|
A required binary that is missing is a reason to skip, never a reason to delete: if `npm`
|
|
654
672
|
is not on `PATH`, the `node_modules` it owns is left exactly where it is.
|
|
655
673
|
|
|
656
|
-
The
|
|
674
|
+
The eighteen build-tool adapters ship **disabled**, because a build tree is regenerated
|
|
657
675
|
by recompiling, not downloading — it costs more to get back. `devp config set
|
|
658
676
|
enable_cargo true` / `enable_gradle true` / `enable_maven true` / `enable_swift true` /
|
|
659
677
|
`enable_dart true` / `enable_mix_build true` / `enable_vcpkg true` /
|
|
660
|
-
`enable_cmake_build true` / `enable_dotnet_build true`
|
|
678
|
+
`enable_cmake_build true` / `enable_dotnet_build true` / `enable_godot true` /
|
|
679
|
+
`enable_unity true` / `enable_unreal true` / `enable_defold true` /
|
|
680
|
+
`enable_cocos true` / `enable_zig true` / `enable_stack true` /
|
|
681
|
+
`enable_cabal true` / `enable_sbt true` switches them on, and their candidates wait for
|
|
661
682
|
`build_idle_days` (45 by default), applied as the *maximum* of it and `idle_days` — the
|
|
662
683
|
build-tool gate only ever makes pruning later, never earlier.
|
|
663
684
|
|
|
@@ -768,12 +789,12 @@ once on a first install — so the defaults are something you agreed to rather t
|
|
|
768
789
|
inherited — and again after an upgrade adds a setting you have never been shown.
|
|
769
790
|
|
|
770
791
|
If you already know what you want, `devp config recommended` is the one-command version:
|
|
771
|
-
it turns on the
|
|
792
|
+
it turns on the eighteen adapters and build trees that are off by default because they are
|
|
772
793
|
not universally wanted, and leaves `allow_manifest_rewrite` — the one recommendation
|
|
773
794
|
that edits files Git tracks — named, explained and off unless you add
|
|
774
795
|
`--with-cautious`. `devp config show` lists whatever you have not taken yet.
|
|
775
796
|
|
|
776
|
-
|
|
797
|
+
Forty-one settings, in the seven groups the configurator asks them in — the order the
|
|
777
798
|
decisions actually arrive in. Every key, with its full description and range, is in the
|
|
778
799
|
[CLI reference](docs/CLI_REFERENCE.md#8-devp-config-action).
|
|
779
800
|
|
|
@@ -806,7 +827,7 @@ rather than downloading. That is the whole reason each one is a switch.
|
|
|
806
827
|
|
|
807
828
|
| Key | Default | Meaning |
|
|
808
829
|
| :--- | :---: | :--- |
|
|
809
|
-
| `enable_cargo` … `
|
|
830
|
+
| `enable_cargo` … `enable_sbt` | `false` | Turn on an opt-in build-tool adapter; `build_idle_days` (`45`) gates all eighteen |
|
|
810
831
|
|
|
811
832
|
**Shared download caches** — one key, because the cap only ever marks.
|
|
812
833
|
|
package/bin/dev-prune
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dev-prune-darwin-arm64",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.22.0",
|
|
4
4
|
"description": "Prebuilt dev-prune binary for darwin arm64. Installed automatically by the 'dev-prune' package; not meant to be depended on directly.",
|
|
5
5
|
"os": ["darwin"],
|
|
6
6
|
"cpu": ["arm64"],
|