Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
All notable changes to this project are documented here, following
[Keep a Changelog](https://keepachangelog.com/) and semantic versioning.

## [0.1.12] - 2026-09-16

### Fixed

- Classify common Python, Bun, Deno, and Pixi lockfiles as trimmable lockfiles.

## [0.1.11] - 2026-09-16

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ctxtrim",
"version": "0.1.11",
"version": "0.1.12",
"description": "Trim what bloats your AI coding context. Scan a repo, find the high-cost/low-value files ballooning your Claude Code / Cursor / Codex context, and write ignore files to cut token cost. Zero dependencies.",
"type": "module",
"bin": {
Expand Down
1 change: 1 addition & 0 deletions src/classify.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ const LOCKFILES = new Set([
"package-lock.json", "yarn.lock", "pnpm-lock.yaml", "npm-shrinkwrap.json",
"cargo.lock", "poetry.lock", "gemfile.lock", "composer.lock", "go.sum",
"pubspec.lock", "podfile.lock", "packages.lock.json", "flake.lock", "uv.lock",
"pipfile.lock", "bun.lockb", "bun.lock", "deno.lock", "pixi.lock",
]);

const DATA_EXT = new Set([
Expand Down
4 changes: 4 additions & 0 deletions test/ctxtrim.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ test("token estimate is ~chars/4", () => {

test("classify buckets files correctly", () => {
assert.equal(classify("package-lock.json", {}).category, "lockfile");
for (const name of ["Pipfile.lock", "bun.lockb", "bun.lock", "deno.lock", "pixi.lock"]) {
assert.equal(classify(name, {}).category, "lockfile");
assert.equal(classify(name, {}).trim, true);
}
assert.equal(classify("node_modules/x/index.js", {}).category, "vendored");
assert.equal(classify("dist/app.js", {}).category, "build");
assert.equal(classify("app.min.js", {}).category, "minified");
Expand Down
Loading