Add file-level dependency visualization support#78
Open
mircealungu wants to merge 3 commits intomasterfrom
Open
Add file-level dependency visualization support#78mircealungu wants to merge 3 commits intomasterfrom
mircealungu wants to merge 3 commits intomasterfrom
Conversation
Replace parenthetical (+N)/(-N) dependency change indicators with colored triangle symbols: green ▲ for increases, red ▼ for decreases. Also increase the thickness of colored diff lines to 2px for better visibility. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
…theses - Move triangle indicator to new line below dependency count - Make indicator text smaller (size 10) and bold - Wrap indicator in parentheses for clarity 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
Enable showing individual Python files as nodes in architecture diagrams,
not just packages/modules. This helps visualize dependencies at a more
granular level.
Key changes:
- Add "files" config key to explicitly include specific files as nodes
- Files render as white rectangles with .py suffix (distinct from packages)
- Strip common prefix from all node labels, show in diagram title
- Fix relative import resolution (from .module import)
- Detect imports inside functions/classes, not just top-level
- Add parent-path fallback for dependency matching
Example config:
"llm-services-files": {
"packages": ["core.llm_services.prompts"],
"files": [
"core.llm_services.anthropic_service",
"core.llm_services.llm_service"
]
}
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Contributor
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
filesconfig key to explicitly include specific files as nodes.pysuffix to distinguish from packagesTechnical Changes
from .module import), detect imports inside functions/classes usingnodes_of_class()get_all_bt_files_as_nodes_map()methodViewPackagepolymorphic to accept bothBTModuleandBTFile, add parent-path fallback for dependency matching_get_requested_files()helper, only create file nodes when explicitly requestedExample Config
Test plan
.pysuffix and white background🤖 Generated with Claude Code