Skip to content

Add color-coded filtering, fix registry resolution, and track provenance - #303

Merged
g5t merged 1 commit into
mainfrom
enhance-embedded-provenance
Aug 17, 2026
Merged

Add color-coded filtering, fix registry resolution, and track provenance#303
g5t merged 1 commit into
mainfrom
enhance-embedded-provenance

Conversation

@g5t

@g5t g5t commented Aug 17, 2026

Copy link
Copy Markdown
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.
@g5t
g5t merged commit 19c19e0 into main Aug 17, 2026
12 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant