fix(drift): treat compound extensions like .d.ts as not-paths - #216
Open
dyk1454683243-sudo wants to merge 1 commit into
Open
dyk1454683243-sudo wants to merge 1 commit into
dyk1454683243-sudo wants to merge 1 commit into
Conversation
Widen EXTENSION_ONLY so `.d.ts` / `.d.mts` / `.d.cts` are extension-only prose instead of MISSING_PATH claims. Real paths with extensions stay checked. Addresses mex-memory#202 bullet 2 only. Co-authored-by: David <dyk1454683243-sudo@users.noreply.github.com>
This was referenced Sep 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Widen
EXTENSION_ONLYso compound file-extension tokens such as`.d.ts`,`.d.mts`, and`.d.cts`are treated as extension-only prose and never become path claims.The previous pattern
/^\.[A-Za-z0-9]+$/matched.ts/.yamlbut not extra dotted segments. Inline`.d.ts`still hitKNOWN_EXTENSIONS(ends with.ts) and was not filtered byisNotAPath, so the SDK prose example in #202 becameMISSING_PATHtwice.Real paths with extensions stay claims:
src/index.ts,.mex/ROUTER.md,.github/workflows/ci.yml.Why
Addresses #202 (bullet 2 only).
Do not treat this as
Fixes #202orCloses #202— that would auto-close the whole mega-issue.Remaining #202 bullets stay open for follow-ups:
src/auth/login.validateToken)./x,x.ts,x/index.ts)tests/grounding\\|traversal\\|…)@scope/pkg/package.jsonvs bare specifier)Type of change
How to test
npx vitest run src/drift`.d.ts`/`.d.mts`/`.d.cts`produce zero path claims and zeroMISSING_PATH.src/index.ts,.mex/ROUTER.md,.github/workflows/ci.yml) are still checked.npm run typecheckChecklist
npx vitest run src/drift— 12 passed, 1 skipped#201version-shaped case left untouched)npm run typecheck)npm test) — full suite is not the gate for this one-regex changeCode-graph changes
mainLanguageExtractororFrameworkResolverinterfacecore / discuss-firstissue is linked aboveThis is a drift claim-extraction filter only. It does not change graph identity, extractors, or the other #202 bullets.