fix: upgrade agentdb dependency from v2 to v3 (broken exports)#126
Open
a-man-gupta wants to merge 1 commit intoruvnet:mainfrom
Open
fix: upgrade agentdb dependency from v2 to v3 (broken exports)#126a-man-gupta wants to merge 1 commit intoruvnet:mainfrom
a-man-gupta wants to merge 1 commit intoruvnet:mainfrom
Conversation
The v2 line (^2.0.0-alpha.3.6 resolving to 2.0.0-alpha.3.7) has broken package.json exports — 18 controller and CLI export paths point to ./dist/controllers/ but the actual build output is at ./dist/src/controllers/. This causes runtime errors: [AgentDB Patch] Controller index not found: node_modules/agentdb/dist/controllers/index.js The v3 line (3.0.0-alpha.3+) already has the correct exports map with all paths pointing to ./dist/src/. No further v2 patches are planned. Co-Authored-By: claude-flow <ruv@ruv.net>
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.
Summary
agentdbfrom^2.0.0-alpha.3.6to^3.0.0-alpha.3in rootpackage.json2.0.0-alpha.3.7) has 18 broken exports in itspackage.json— all./controllers/*and./clipaths point to./dist/controllers/but the TypeScript build outputs to./dist/src/controllers/3.0.0-alpha.3+, already published to npm) has the correct exports mapProblem
Every consumer of
agentic-flowthat transitively importsagentdb/controllershits:Broken paths in agentdb v2 (
2.0.0-alpha.3.7)./controllers./dist/controllers/index.js./dist/src/controllers/index.js./controllers/HNSWIndex./dist/controllers/HNSWIndex.js./dist/src/controllers/HNSWIndex.js./dist/controllers/*./dist/src/controllers/*./cli./dist/cli/agentdb-cli.js./dist/src/cli/agentdb-cli.jsAlready fixed in agentdb v3 (
packages/agentdb/package.jsonon main)All exports correctly use
./dist/src/controllers/paths.Test plan
npm installresolvesagentdb@^3.0.0-alpha.3(latest:3.0.0-alpha.10)node -e "import('agentdb/controllers')"succeeds without errors🤖 Generated with claude-flow