From 51d417aab83f008765bd05b8687c2c8516f8461e Mon Sep 17 00:00:00 2001 From: Rayan-and-beyond <263488867+Rayan-and-beyond@users.noreply.github.com> Date: Tue, 15 Sep 2026 18:58:24 +0000 Subject: [PATCH 1/3] fix: recognize common lockfiles --- CHANGELOG.md | 7 ++++--- package-lock.json | 4 ++-- package.json | 2 +- src/classify.js | 1 + test/ctxtrim.test.js | 4 ++++ 5 files changed, 12 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e9cb818..6a5b498 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,8 @@ -# Changelog +## [0.1.10] - 2026-09-15 -All notable changes to this project are documented here, following -[Keep a Changelog](https://keepachangelog.com/) and semantic versioning. +### Fixed + +- Classify common Python, Bun, Deno, and Pixi lockfiles as trimmable lockfiles. ## [0.1.9] - 2026-09-12 diff --git a/package-lock.json b/package-lock.json index 15863cf..12f379c 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ctxtrim", - "version": "0.1.9", + "version": "0.1.10", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ctxtrim", - "version": "0.1.9", + "version": "0.1.10", "license": "MIT", "bin": { "ctxtrim": "bin/ctxtrim.js" diff --git a/package.json b/package.json index 3f9e1ad..7bea5cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ctxtrim", - "version": "0.1.9", + "version": "0.1.10", "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": { diff --git a/src/classify.js b/src/classify.js index e648cfd..6883658 100644 --- a/src/classify.js +++ b/src/classify.js @@ -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([ diff --git a/test/ctxtrim.test.js b/test/ctxtrim.test.js index da50d9f..22f5cd8 100644 --- a/test/ctxtrim.test.js +++ b/test/ctxtrim.test.js @@ -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"); From 2f759661e94d58e2e3fa710b0a13cdc6bf5660d5 Mon Sep 17 00:00:00 2001 From: royalpinto007 Date: Wed, 16 Sep 2026 15:12:12 +0530 Subject: [PATCH 2/3] restore changelog header, release as 0.1.11 --- CHANGELOG.md | 7 ++++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6a5b498..5bde524 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -## [0.1.10] - 2026-09-15 +# Changelog + +All notable changes to this project are documented here, following +[Keep a Changelog](https://keepachangelog.com/) and semantic versioning. + +## [0.1.11] - 2026-09-16 ### Fixed diff --git a/package-lock.json b/package-lock.json index 12f379c..b469704 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ctxtrim", - "version": "0.1.10", + "version": "0.1.11", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ctxtrim", - "version": "0.1.10", + "version": "0.1.11", "license": "MIT", "bin": { "ctxtrim": "bin/ctxtrim.js" diff --git a/package.json b/package.json index 7bea5cc..8ce0d65 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ctxtrim", - "version": "0.1.10", + "version": "0.1.11", "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": { From 3d772d95c125a8d31c1fd3a1894c48a0b09e0991 Mon Sep 17 00:00:00 2001 From: royalpinto007 Date: Wed, 16 Sep 2026 15:19:10 +0530 Subject: [PATCH 3/3] resolve merge: keep 0.1.12 version --- package-lock.json | 8 -------- package.json | 4 ---- 2 files changed, 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 583c070..71e5608 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,20 +1,12 @@ { "name": "ctxtrim", -<<<<<<< HEAD "version": "0.1.12", -======= - "version": "0.1.11", ->>>>>>> origin/main "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ctxtrim", -<<<<<<< HEAD "version": "0.1.12", -======= - "version": "0.1.11", ->>>>>>> origin/main "license": "MIT", "bin": { "ctxtrim": "bin/ctxtrim.js" diff --git a/package.json b/package.json index d66c2cb..95b3207 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,6 @@ { "name": "ctxtrim", -<<<<<<< HEAD "version": "0.1.12", -======= - "version": "0.1.11", ->>>>>>> origin/main "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": {