You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Use the shared LOCKFILE list everywhere in src/ #97
#47 added one shared lockfile pattern, LOCKFILE in src/repo/lockfiles.ts, because separate copies had drifted apart. Several copies are still hand-written lists, and some still differ:
Export a list of lockfile names next to LOCKFILE (for code that needs names rather than a regex), and use it or LOCKFILE in each place above.
Done when: no other file in src/ spells out the lockfile names, and economics-context.ts includes npm-shrinkwrap.json, with a test that changing it changes the context hash. Leave CONFIG_PATTERNS in git-diff.ts alone, since changing it changes fallback behaviour. One PR per file is fine.
Setup and conventions are in CONTRIBUTING.md: run npm test, sign off commits with git commit -s (DCO). Comment here if you want to take it, and ask anything.
Thanks @sarankumar1325! #118, #119 and #120 are merged, and you're credited in the README. Splitting them one file each, with a test over every name in LOCKFILE_NAMES and a mutation check, made these easy to review.
Leaving this open for the copies that are still left in src/:
src/ci-inference/evidence.ts:65 (the full list)
src/planner/path-baseline.ts:146, which is missing npm-shrinkwrap.json and bun.lock
src/research/baseline/path-baseline.ts:54, which is missing npm-shrinkwrap.json
Activity
fix(cache): hash every lockfile in the economics context (#107)
refactor(file-references): use the shared lockfile list (#118)
refactor(impact): use the shared lockfile pattern in isLockfile (#119)
refactor(git-diff): use the shared lockfile names in the lockfile-fre…
adityankale190895 commentedon Nov 11, 2026
Thanks @sarankumar1325! #118, #119 and #120 are merged, and you're credited in the README. Splitting them one file each, with a test over every name in
LOCKFILE_NAMESand a mutation check, made these easy to review.Leaving this open for the copies that are still left in
src/:src/ci-inference/evidence.ts:65(the full list)src/planner/path-baseline.ts:146, which is missingnpm-shrinkwrap.jsonandbun.locksrc/research/baseline/path-baseline.ts:54, which is missingnpm-shrinkwrap.jsonYou're welcome to take these too if you'd like.
refactor(ci-inference): use the shared lockfile names in lockfileFacts
fix(planner): use the shared lockfile pattern in the path baseline
fix(research): use the shared LOCKFILE in the generic path baseline
docs: credit sarankumar1325's config-file discovery and impact lockfi…