__init__.py python
17 lines 730 B
Raw
sha256:cf6265cea8c21d9228d90dec13ef6ec2dab5103d466db9cc4590681832de4bf8 docs(KD-STAGING): sync governance after KD-6b DONE Human 12 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:cf6265cea8c21d9228d90dec13ef6ec2dab5103d466db9cc4590681832de4bf8 docs(KD-STAGING): sync governance after KD-6b DONE Human 12 days ago