__init__.py python
17 lines 730 B
Raw
sha256:0e3697f29ae6c62f39818a19861d4db6276465de16481fadf866eb93cbf4aae4 test: validate staging push and MP workflow for aaronrene Human 16 days ago
1 """Code domain plugin — semantic version control for source code.
2
3 Treats code as a structured, semantic system rather than text files.
4 The unit of change is a *symbol* (function, class, method, variable) —
5 not a line. Two commits that reformat a file without changing semantics
6 produce identical symbol content IDs and therefore no delta.
7
8 Language support
9 ----------------
10 - Python (*.py, *.pyi): Full AST-based symbol extraction via stdlib ``ast``.
11 - All other files: file-level tracking with raw-bytes identity.
12
13 Extending the language support
14 -------------------------------
15 Implement :class:`~muse.plugins.code.ast_parser.LanguageAdapter` and
16 register the instance in :data:`~muse.plugins.code.ast_parser.ADAPTERS`.
17 """
File History 1 commit
sha256:0e3697f29ae6c62f39818a19861d4db6276465de16481fadf866eb93cbf4aae4 test: validate staging push and MP workflow for aaronrene Human 16 days ago