From c84ba3367b55175f1f6a0679177bcdf84f2d02a0 Mon Sep 17 00:00:00 2001 From: akadeepesh Date: Thu, 3 Sep 2026 08:46:50 +0530 Subject: [PATCH] chore: update version to 0.4.2 and enhance changelog with limits.redact_secrets enforcement --- CHANGELOG.md | 25 +++++++++++++++++++++++++ contextzip/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 07bdef4..d34393e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -758,3 +758,28 @@ This project uses [Semantic Versioning](https://semver.org/). - `.gitignore patterns applied` is no longer printed (no signal, dead weight). - Opening the output folder no longer prints a confirmation line. + + +## [0.4.2] — 2026-08-31 + +### Added +- **`limits.redact_secrets` is now enforced.** Previously persisted in + config and editable in the config UI but silently ignored by + packaging (flagged as a known limitation in 0.4.0). Now, text files + already going into the archive are scanned for secret-shaped values + — AWS/Google/GitHub/Slack/Stripe/Anthropic/OpenAI keys, JWTs, + private-key blocks, and a conservative generic + `key`/`secret`/`token`/`password` assignment pattern — and matched + values are replaced with `[REDACTED]` before writing. Only scans + files already known to be text and within `limits.max_file_size_mb`; + binary and oversized files are never touched. Surfaced in a terminal + warning and itemized in the `.report.txt` file, never applied + silently. + +### Changed +- **`.contextzip/` is now fully local by default, no exceptions.** + `config.json` was previously carved out of the workspace's + `.gitignore` so it stayed trackable automatically. It's now ignored + like everything else in the workspace — nothing under `.contextzip/` + is ever pushed unless you explicitly opt in with + `git add -f .contextzip/config.json`. diff --git a/contextzip/__init__.py b/contextzip/__init__.py index ec51507..2f982a2 100644 --- a/contextzip/__init__.py +++ b/contextzip/__init__.py @@ -1,6 +1,6 @@ """contextzip — intelligent codebase packager for AI tools.""" -__version__ = "0.4.1" +__version__ = "0.4.2" from contextzip.api import ( FileCollection, diff --git a/pyproject.toml b/pyproject.toml index 413aaa8..23761be 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "contextzip" -version = "0.4.1" +version = "0.4.2" description = "Intelligently package your codebase for AI tools" readme = "README.md" requires-python = ">=3.9"