Repository navigation
Read LPM CLI logins keyed without the registry's trailing slash - #3
Merged
Merged
Conversation
LPM CLI now keys logins by the registry URL without trailing slashes, so https://lpm.dev/ and https://lpm.dev share one keychain account. The MCP server derives the account the same way, and for a slashed LPM_REGISTRY_URL also tries the account earlier CLI releases used for that spelling. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A login an older LPM CLI made with `--registry https://lpm.dev/` stays under the slashed account until the new CLI reads it, so the MCP server tries that account after the canonical one whether or not LPM_REGISTRY_URL ends with a slash. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Merged
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.
Change
LPM CLI now keys logins by the registry URL without trailing slashes (lpm-dev/rust-client#1113), so
https://lpm.dev/andhttps://lpm.devshare one keychain account.getKeychainAccounttrims trailing slashes before hashing.LPM_REGISTRY_URL,getTokenalso tries the account that CLI releases before 0.86 used for that spelling. This version therefore reads logins stored by both older and newer CLIs.Tests
https://lpm.dev/now matches the trimmed account, as the CLI's vectors do.reads a login an older LPM CLI stored under the trailing-slash registry.npm test: 320 tests pass.biome checkis clean.Council review follow-up
LPM_REGISTRY_URLends, since an older CLI's--registry https://lpm.dev/login stays there until the new CLI reads it. Test:reads a login an older LPM CLI stored under the trailing-slash spelling of the default registry.🤖 Generated with Claude Code