Add color-coded filtering, fix registry resolution, and track provenance - #303
Merged
Conversation
g5t
commented
Aug 17, 2026
Collaborator
- mccode-antlr extract -l/--list now color-codes output by source and adds REPOSITORY/LOCATION columns; new -r/--repository glob filter selects by originating repository (matches a remote registry's URL or a local registry's root path).
- Fix resolve_registry_and_path's unanchored substring matching, which could misattribute a file to the wrong registry when one registry's filename is a substring of another's (e.g. "Masked_ESS_butterfly.comp" falsely matching a lookup for "ESS_butterfly.comp").
- Deduplicate manifest entries when a file is both embedded and resolvable from a live (e.g. --trust-local-registries) registry.
- Track per-file provenance for embedded dependency files (InMemoryRegistry.origins) and per-component provenance (Comp.origin), so mccode-antlr extract -l can attribute a file/component to its originating local directory even when the original registry isn't currently trusted or resolvable -- without ever exposing a filesystem path.
- Rename tests/reader/in_memory_registry.py to test_in_memory_registry.py: it didn't match pytest's discovery pattern and was silently never run, including in CI.
…ion bugs, and track file/component provenance - mccode-antlr extract -l/--list now color-codes output by source and adds REPOSITORY/LOCATION columns; new -r/--repository glob filter selects by originating repository (matches a remote registry's URL or a local registry's root path). - Fix resolve_registry_and_path's unanchored substring matching, which could misattribute a file to the wrong registry when one registry's filename is a substring of another's (e.g. "Masked_ESS_butterfly.comp" falsely matching a lookup for "ESS_butterfly.comp"). - Deduplicate manifest entries when a file is both embedded and resolvable from a live (e.g. --trust-local-registries) registry. - Track per-file provenance for embedded dependency files (InMemoryRegistry.origins) and per-component provenance (Comp.origin), so mccode-antlr extract -l can attribute a file/component to its originating local directory even when the original registry isn't currently trusted or resolvable -- without ever exposing a filesystem path. - Rename tests/reader/in_memory_registry.py to test_in_memory_registry.py: it didn't match pytest's discovery pattern and was silently never run, including in CI.
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.