Skip to content

feat: add path normalization and deduplication utilities#7

Merged
TonyStef merged 1 commit intomainfrom
test/add-symbols
Mar 18, 2026
Merged

feat: add path normalization and deduplication utilities#7
TonyStef merged 1 commit intomainfrom
test/add-symbols

Conversation

@TonyStef
Copy link
Copy Markdown
Owner

Adds src/utils.ts with shared helper functions:

  • normalizePath() — strips extensions and /index suffixes for consistent symbol path matching
  • deduplicateRefs() — removes duplicate symbol references by name+file+kind
  • formatDuration() — human-readable duration formatting for CLI output

These will be used by upcoming parser fixes (barrel file resolution, re-export chain tracing).

Testing note: This PR is also used to test the git-regress store phase. After merging, the action should store a footprint with these 3 functions as symbols_added.

Add src/utils.ts with shared helper functions:
- normalizePath: strips extensions and /index suffixes for consistent matching
- deduplicateRefs: removes duplicate symbol references by name+file+kind
- formatDuration: human-readable duration formatting for CLI output
@TonyStef TonyStef merged commit bc48e5c into main Mar 18, 2026
1 check passed
@TonyStef TonyStef deleted the test/add-symbols branch March 24, 2026 14:11
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