Closed
Conversation
The backends/__init__.py file was empty, preventing the CLI from importing BeadsBackend and GitHubBackend. Added proper __all__ exports for all three backend implementations (Beads, GitHub, Notion). This fixes the ImportError that occurred when running any em command.
Found while testing with actual beads installation: 1. **BeadsBackend ID conversion bug**: The _entity_id_to_bead_id function was incorrectly prepending "bd-" to all IDs. Beads uses configurable project prefixes (e.g., "entity-manager-abc"), not just "bd-xxx". Fixed to return IDs as-is. 2. **BeadsBackend read() response handling**: The bd show command returns a list, not a dict. Updated to handle both formats. 3. **BeadsBackend link type mapping**: Added proper mapping from entity manager link types (blocked-by, blocking, parent, etc.) to beads dependency types (blocks, related, parent-child). 4. **CLI delete() naming collision**: The delete function was calling the list() command function instead of built-in list(), causing AttributeError. Fixed by using builtins.list(). 5. **Updated .gitignore**: Added beads artifacts and test coverage files. All fixes verified with working beads installation.
Added AGENTS.md, @AGENTS.md, and .gitattributes to .gitignore as these were created during beads testing and are not part of the project.
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.
The backends/init.py file was empty, preventing the CLI from importing
BeadsBackend and GitHubBackend. Added proper all exports for all three
backend implementations (Beads, GitHub, Notion).
This fixes the ImportError that occurred when running any em command.