Skip to content

v1.7.3: Nearest-config lookup for compress/update

Choose a tag to compare

@Draco-Cheng Draco-Cheng released this 18 Jul 08:53
· 10 commits to main since this release

Bug fix

compress_ai_readme and update_ai_readme only receive a readmePath, and were inferring the project root as dirname(dirname(readmePath)) — a fixed two levels up. For an AI_README nested deeper than one level (e.g. apps/backend/AI_README.md), that missed a root-level .aireadme.config.json and silently fell back to the default token budget (400), ignoring a configured tokenBudget, excludePatterns, etc.

New ReadmeValidator.loadConfigNearest() walks up from the file's directory to the first .aireadme.config.json (or the filesystem root), so nested READMEs pick up the project config correctly. compress and update now use it.

Covered by new unit tests (ancestor-config lookup + null when none found).