fix: pin privy dependency versions#751
Merged
Merged
Conversation
✅ Heimdall Review Status
|
CarsonRoscoe
marked this pull request as ready for review
June 9, 2025 21:22
CarsonRoscoe
force-pushed
the
fix/privy-dependency-bug
branch
3 times, most recently
from
June 9, 2025 21:44
7f4639e to
b96b49e
Compare
CarsonRoscoe
force-pushed
the
fix/privy-dependency-bug
branch
from
June 9, 2025 21:52
b96b49e to
cfc0ad9
Compare
0xRAG
approved these changes
Jun 9, 2025
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.
Description
Privy, specifically
@privyio/server-auth, had a bunch of recent back-to-back updates that changed the underlying dependencies of the package. In doing so, a number of changes were made recently that break installing AgentKit.I attempted to find the last version of
@privyio/server-auth(and a corresponding@privyio/public-apireleased the same day) that satisfies this issue. However, in doing so, I discovered that there have been interface-breaking Privy updates. We cannot trust the minor versions or even patch versions to not introducing breaking changes to either dependencies or interfaces.Therefore, this PR simply goes back to the last guaranteed trusted version, and pins it by removing the
^on the dependency.We can fast-follow with a more robust solution, however this hotfix is needed to fix new installations of AgentKit.
Tests
Validate the issue by running
npm run create onchain-agent@latest, and run through the setup with Langchain. Run npm install, try to chat with the bot, and you will see a series of dependency issues in the console, all stemming from privyio server.Doing the same locally with this new version produces an agent example which works out of the box