fix: preserve CodeDiff version alternatives - #328
Merged
Conversation
Retain backend-ranked version and ref pairs through the bounded CodeDiff parser and shared CLI/MCP error envelope. Render explicit version/ref alternatives in CLI text without treating ref-only values as package versions.
Distinguish CodeDiff source-ref candidates from the already-indexed alternatives used by code-navigation target and indexing errors.
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.
Outcome
available_versionsin backend order through the bounded core parser and shared CLI/MCP error envelope.availableVersionssemantics and add patch release impact for bothgithitsand@githits/mcp.Verification
bun test packages/core-internal/src/services/code-navigation-service.test.ts packages/mcp/src/shared/code-navigation-error-map.test.ts src/tools/code-diff-parity.test.ts src/commands/code/diff.test.ts— 145 passed, 0 failed.bun run typecheckand targeted Biome lint/format — passed.@githits/mcpbuilds — passed.bun run validate:packages— passed.details.availableVersionsentries fornpm:express 3.21.2..4.15.5; text rendered explicit version/ref pairs with the existing bounded list.Review
b2f1080; follow-up round clean.Known validation note
The exact direct
bun run devinvocation stayed idle and was stopped. Authenticated source smoke exercised CodeDiff successfully, and the exact rebuilt Node artifact validated the failing dev error path in JSON and text.