gestate
Set a minimum release age on local package managers so installs ignore versions younger than N days. Most malicious packages are caught and yanked within days of publishing; refusing fresh versions blocks the bulk of supply-chain attacks.
Run
uvx gestate # interactive
uvx gestate set 3 # 3-day minimum, installed tools only
uvx gestate set 3 --all # also pre-configure file-based tools (bun, deno, uv)
uvx gestate revert # remove gestate's settings
uvx gestate explain bun # show how one tool's setting is stored
uvx gestate trust my-pkg --python # exempt a package from the age delay
uvx gestate trust --rm my-pkg # remove an exemption
uvx gestate trust # list trusted packages
Interactive mode always shows a plan and asks for explicit confirmation before touching anything. The subcommands skip the confirm — meant for scripts, not your daily shell. Running with no subcommand outside a TTY exits with an error.
Plain text output is used when stdout isn't a terminal (no Rich tables/colors).
What it sets
| Tool | Where | Key (unit) |
|---|---|---|
| npm | ~/.npmrc |
min-release-age (days) |
| pnpm | global pnpm config | minimumReleaseAge (minutes) |
| yarn | ~/.yarnrc.yml (4.10+) |
npmMinimalAgeGate (minutes) |
| bun | ~/.bunfig.toml |
[install] minimumReleaseAge (seconds) |
| deno | shell profile | alias deno='command deno --minimum-dependency-age=P<N>D' |
| pip | user pip config | global.uploaded-prior-to (P<N>D) |
| uv | ~/.config/uv/uv.toml |
exclude-newer ("N days") |
gestate explain <tool> prints that tool's current value and the exact mechanism set / revert use.
Scope:
- default — only configure installed tools
--all— also pre-write config files forbun,deno,uveven if they aren't installed yet
Revert
uvx gestate revert removes everything gestate set:
- CLI tools —
config delete/config unset bun/uv— remove the key; delete the file if it was the only keydeno— remove our alias line; leave foreignalias deno=lines alone
Backups (.bak) are written next to any edited shell-profile or TOML file.
Per-package exemptions (trust)
gestate trust lets you exempt specific packages from the age delay so they always get the latest version:
gestate trust @myorg/* # auto-detects Node (scoped package)
gestate trust my-lib --python # exempt in uv
gestate trust --rm my-lib --python # remove exemption
gestate trust # list all trusted packages
gestate trust --python # list Python ecosystem only
The --python / --node flags are optional — gestate auto-detects the ecosystem from scoped packages (@scope/name → Node) or the current directory (pyproject.toml → Python, package.json → Node). When it can't tell, it asks you to specify.
Supported tools: bun, uv, yarn, pnpm (project-local only). npm, deno, and pip don't support per-package allowlists and print a warning. For manual config details, see docs/allowlists.md.
Caveats
- yarn: 4.10+ only. Older yarn is detected and skipped.
- deno: no global config exists; the shell alias only covers interactive shells. For CI, pass
--minimum-dependency-age=P<N>Dtodeno install/deno update, or commit a projectdeno.jsonwith"minimumDependencyAge": "P<N>D". - npm exclude: tracked in npm/cli#8994.
- pip exclude: none —
global.uploaded-prior-tois global only.
For PR-creation guards (Dependabot, Renovate) and adjacent layers, see docs/complementary.md.
Development
uv sync
uv run pytest
Requires Python 3.11+, macOS or Linux.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file gestate-1.1.0.tar.gz.
File metadata
- Download URL: gestate-1.1.0.tar.gz
- Upload date:
- Size: 60.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
367d5ecb86f0a02bb9775f8636a38c6ac0ce2661c03db4574e78705f00a5f04e
|
|
| MD5 |
0f214c2e396360d271c657c4878398f1
|
|
| BLAKE2b-256 |
6f3e524afcfad33361d190290329d51481ac1d946f37377d561f4a53de3f1c36
|
File details
Details for the file gestate-1.1.0-py3-none-any.whl.
File metadata
- Download URL: gestate-1.1.0-py3-none-any.whl
- Upload date:
- Size: 17.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Manjaro Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fd771b1a45ad8938286a893e27decee05dd191005b6a0a63115198fced6c32bc
|
|
| MD5 |
acef829c9c7d0f3fb5803e3986fa09b9
|
|
| BLAKE2b-256 |
eac11126c64dbda001a98f98537613effe6ef62484656ed5351d92bc4a0b61c7
|