Skip to content

Add tree-sitter discovery foundation (#125)#140

Merged
Dimwiddle merged 3 commits intofeature/discovery-layerfrom
feature/discovery-layer-125-tree-sitter-and-language-registry
Mar 6, 2026
Merged

Add tree-sitter discovery foundation (#125)#140
Dimwiddle merged 3 commits intofeature/discovery-layerfrom
feature/discovery-layer-125-tree-sitter-and-language-registry

Conversation

@Dimwiddle
Copy link
Copy Markdown
Contributor

Description

Implement issue #125 discovery-layer foundation for language-aware file discovery:

  • Add LanguageRegistry with shared tree-sitter language/parser cache and parse helpers.
  • Add FileIndex for repository file indexing, extension/language filtering, and directory pattern queries.
  • Add language ratio detection utility (detect_project_languages).
  • Add discovery-oriented feature spec stub and parser fixtures.
  • Add focused discovery unit tests for registry, index, and language detection.

Type of Change

  • Feature

Testing

  • make lint
  • PYTHONPATH=src pytest tests/discovery/test_file_index.py tests/discovery/test_language_registry.py tests/discovery/test_language_detect.py
  • make pre-commit
  • PYTHONPATH=src make test (currently fails on 2 existing subprocess import-path cases in acceptance/integration scenarios: generated tests require specleft installed in subprocess execution environment)

Related Issues

Closes #125

@Dimwiddle Dimwiddle merged commit 6612b31 into feature/discovery-layer Mar 6, 2026
4 checks passed
@Dimwiddle Dimwiddle deleted the feature/discovery-layer-125-tree-sitter-and-language-registry branch March 6, 2026 16:24
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